@apollosproject/canvas-embeds 2.1.1658 → 2.1.1660
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/widget/index.js +1 -1
package/package.json
CHANGED
package/widget/index.js
CHANGED
|
@@ -769,7 +769,7 @@ Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}
|
|
|
769
769
|
}
|
|
770
770
|
...LivestreamPlayerFragment
|
|
771
771
|
}
|
|
772
|
-
`);var cY0={};const sY0=typeof process<"u"&&cY0.NODE_ENV==="development"?"http://localhost:4000":"https://l.apollos.app";function mY0({church:a,accessToken:t,children:n}){const r=e.useCallback(i=>{const o=new URLSearchParams({link:i,church:a});return t&&o.append("token",`Bearer ${t}`),`${sY0}/r?${o.toString()}`},[a,t]),l=i=>{const o=i.target;if(o&&o.tagName==="A"){const c=o.href,m=o.getAttribute("to"),u=c||m;if(u){if(u.includes("/auth/logout")||u.startsWith("http"))return;i.preventDefault();try{const h=r(u);window.location.href=h}catch(h){console.error("Error during redirection:",h),window.location.href=u}}}};return P.jsx(ym0.Provider,{value:{church:a,accessToken:t},children:P.jsx("div",{onClick:l,children:n})})}function tb(){return Math.random().toString(36).slice(2)}function dY0(a){const{churchSlug:t,onAsk:n,onTrack:r,initialTurns:l,buildOptions:i}=a,[o,c]=e.useState(l||[]),[m,u]=e.useState(!1),[h,f]=e.useState(null),[A,Z]=e.useState(()=>tb()),H=e.useCallback(()=>{c(l||[]),f(null),Z(tb())},[l]),V=e.useCallback(L=>{c(L||[]),f(null),Z(tb())},[]),F=e.useCallback((L,_)=>{Z(L),c(Array.isArray(_)?_:[]),f(null)},[]),S=e.useCallback(async L=>{const _=(L||"").trim();if(!_)return;u(!0),f(null);const w=i?.()??{},b={search_id:A,type:"user",data:{prompt:_,options:w}};c(O=>[...O,b]),r?.("ask_submit",{churchSlug:t});const N={churchSlug:t,search_id:A,options:{...w,prompt:_}};try{const R=(await n(N)||[]).filter(z=>z.type==="assistant");c(z=>[...z,...R]),r?.("ask_response",{churchSlug:t})}catch(O){const R=O instanceof Error?O.message:"Unknown error";f(R)}finally{u(!1)}},[t,n,r,A]);return{turns:o,loading:m,error:h,submit:S,reset:H,sessionId:A,newSession:V,loadSession:F}}const uY0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]]),nb=e.forwardRef((a,t)=>e.createElement(E,{ref:t,...a,weights:uY0}));nb.displayName="ArrowCounterClockwiseIcon";const tu0=nb,pY0=Object.freeze(Object.defineProperty({__proto__:null,ArrowCounterClockwise:tu0,ArrowCounterClockwiseIcon:nb},Symbol.toStringTag,{value:"Module"})),hY0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),e.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),rb=e.forwardRef((a,t)=>e.createElement(E,{ref:t,...a,weights:hY0}));rb.displayName="MagnifyingGlassIcon";const xv=rb,fY0=Object.freeze(Object.defineProperty({__proto__:null,MagnifyingGlass:xv,MagnifyingGlassIcon:rb},Symbol.toStringTag,{value:"Module"}));function AY0({placeholder:a,disabled:t,onSubmit:n,onReset:r,showReset:l,value:i,onValueChange:o,autoFocus:c,rightAdornment:m,loading:u}){const[h,f]=e.useState(""),A=e.useMemo(()=>i!==void 0?i:h,[i,h]),Z=H=>{H.key==="Enter"&&(H.preventDefault(),!t&&A.trim()&&n(A))};return P.jsx("div",{className:"w-full",children:P.jsx("div",{className:["relative w-full h-[60px] rounded-3xl shadow-md dark:shadow-none","border border-system-thin dark:border-system-regular-dark","bg-system-chrome dark:bg-material-regular-dark","transition-colors",t?"opacity-90":""].filter(Boolean).join(" "),children:P.jsxs("div",{className:"flex items-center h-full w-full",children:[P.jsx("div",{className:"px-3",children:P.jsx("div",{className:"bg-brand text-white rounded-full p-2 leading-none",children:P.jsx(xv,{size:18,weight:"bold"})})}),P.jsx("input",{type:"text",className:["flex-1 h-full bg-transparent border-none outline-none","text-[20px] text-fg-primary dark:text-fg-primary-dark","placeholder:text-fg-tertiary dark:placeholder:text-fg-tertiary-dark","px-1"].join(" "),placeholder:a||"What are you looking for?",value:A,onChange:H=>o?o(H.target.value):f(H.target.value),onKeyDown:Z,disabled:t,autoComplete:"off",autoFocus:c}),P.jsxs("div",{className:"pr-3 flex items-center gap-1",children:[m,u?P.jsx(Hm0,{size:18,className:"text-brand animate-spin"}):null,l&&r?P.jsx("button",{type:"button","aria-label":"Start over",className:["p-2 rounded-full transition-colors","hover:bg-system-ultrathin dark:hover:bg-system-ultrathin-dark"].join(" "),onClick:r,children:P.jsx(tu0,{size:18,className:"text-fg-secondary dark:text-fg-secondary-dark"})}):null]})]})})})}function qle(){}function Wle(){}function vY0(a,t){const n={};return(a[a.length-1]===""?[...a,""]:a).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const gY0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZY0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HY0={};function nu0(a,t){return(HY0.jsx?ZY0:gY0).test(a)}const MY0=/[ \t\n\f\r]/g;function EY0(a){return typeof a=="object"?a.type==="text"?ru0(a.value):!1:ru0(a)}function ru0(a){return a.replace(MY0,"")===""}class Nd{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Nd.prototype.normal={},Nd.prototype.property={},Nd.prototype.space=void 0;function lu0(a,t){const n={},r={};for(const l of a)Object.assign(n,l.property),Object.assign(r,l.normal);return new Nd(n,r,t)}function lb(a){return a.toLowerCase()}class Va{constructor(t,n){this.attribute=n,this.property=t}}Va.prototype.attribute="",Va.prototype.booleanish=!1,Va.prototype.boolean=!1,Va.prototype.commaOrSpaceSeparated=!1,Va.prototype.commaSeparated=!1,Va.prototype.defined=!1,Va.prototype.mustUseProperty=!1,Va.prototype.number=!1,Va.prototype.overloadedBoolean=!1,Va.prototype.property="",Va.prototype.spaceSeparated=!1,Va.prototype.space=void 0;let VY0=0;const Ie=K5(),o6=K5(),ib=K5(),A1=K5(),i8=K5(),j9=K5(),Ya=K5();function K5(){return 2**++VY0}const ob=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:o6,commaOrSpaceSeparated:Ya,commaSeparated:j9,number:A1,overloadedBoolean:ib,spaceSeparated:i8},Symbol.toStringTag,{value:"Module"})),cb=Object.keys(ob);class sb extends Va{constructor(t,n,r,l){let i=-1;if(super(t,n),iu0(this,"space",l),typeof r=="number")for(;++i<cb.length;){const o=cb[i];iu0(this,cb[i],(r&ob[o])===ob[o])}}}sb.prototype.defined=!0;function iu0(a,t,n){n&&(a[t]=n)}function x9(a){const t={},n={};for(const[r,l]of Object.entries(a.properties)){const i=new sb(r,a.transform(a.attributes||{},r),l,a.space);a.mustUseProperty&&a.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[lb(r)]=r,n[lb(i.attribute)]=r}return new Nd(t,n,a.space)}const ou0=x9({properties:{ariaActiveDescendant:null,ariaAtomic:o6,ariaAutoComplete:null,ariaBusy:o6,ariaChecked:o6,ariaColCount:A1,ariaColIndex:A1,ariaColSpan:A1,ariaControls:i8,ariaCurrent:null,ariaDescribedBy:i8,ariaDetails:null,ariaDisabled:o6,ariaDropEffect:i8,ariaErrorMessage:null,ariaExpanded:o6,ariaFlowTo:i8,ariaGrabbed:o6,ariaHasPopup:null,ariaHidden:o6,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:i8,ariaLevel:A1,ariaLive:null,ariaModal:o6,ariaMultiLine:o6,ariaMultiSelectable:o6,ariaOrientation:null,ariaOwns:i8,ariaPlaceholder:null,ariaPosInSet:A1,ariaPressed:o6,ariaReadOnly:o6,ariaRelevant:null,ariaRequired:o6,ariaRoleDescription:i8,ariaRowCount:A1,ariaRowIndex:A1,ariaRowSpan:A1,ariaSelected:o6,ariaSetSize:A1,ariaSort:null,ariaValueMax:A1,ariaValueMin:A1,ariaValueNow:A1,ariaValueText:null,role:null},transform(a,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cu0(a,t){return t in a?a[t]:t}function su0(a,t){return cu0(a,t.toLowerCase())}const yY0=x9({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:j9,acceptCharset:i8,accessKey:i8,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:i8,autoFocus:Ie,autoPlay:Ie,blocking:i8,capture:null,charSet:null,checked:Ie,cite:null,className:i8,cols:A1,colSpan:null,content:null,contentEditable:o6,controls:Ie,controlsList:i8,coords:A1|j9,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:ib,draggable:o6,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:i8,height:A1,hidden:ib,high:A1,href:null,hrefLang:null,htmlFor:i8,httpEquiv:i8,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:i8,itemRef:i8,itemScope:Ie,itemType:i8,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:A1,manifest:null,max:null,maxLength:A1,media:null,method:null,min:null,minLength:A1,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:A1,pattern:null,ping:i8,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:i8,required:Ie,reversed:Ie,rows:A1,rowSpan:A1,sandbox:i8,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shape:null,size:A1,sizes:null,slot:null,span:A1,spellCheck:o6,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A1,step:null,style:null,tabIndex:A1,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:o6,width:A1,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:i8,axis:null,background:null,bgColor:null,border:A1,borderColor:null,bottomMargin:A1,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:A1,leftMargin:A1,link:null,longDesc:null,lowSrc:null,marginHeight:A1,marginWidth:A1,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:A1,rules:null,scheme:null,scrolling:o6,standby:null,summary:null,text:null,topMargin:A1,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A1,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:A1,security:null,unselectable:null},space:"html",transform:su0}),FY0=x9({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ya,accentHeight:A1,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A1,amplitude:A1,arabicForm:null,ascent:A1,attributeName:null,attributeType:null,azimuth:A1,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A1,by:null,calcMode:null,capHeight:A1,className:i8,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:A1,diffuseConstant:A1,direction:null,display:null,dur:null,divisor:A1,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:A1,enableBackground:null,end:null,event:null,exponent:A1,externalResourcesRequired:null,fill:null,fillOpacity:A1,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:j9,g2:j9,glyphName:j9,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A1,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A1,horizOriginX:A1,horizOriginY:A1,id:null,ideographic:A1,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A1,k:A1,k1:A1,k2:A1,k3:A1,k4:A1,kernelMatrix:Ya,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A1,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A1,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:A1,overlineThickness:A1,paintOrder:null,panose1:null,path:null,pathLength:A1,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:i8,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A1,pointsAtY:A1,pointsAtZ:A1,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ya,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ya,rev:Ya,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ya,requiredFeatures:Ya,requiredFonts:Ya,requiredFormats:Ya,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:A1,specularExponent:A1,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A1,strikethroughThickness:A1,string:null,stroke:null,strokeDashArray:Ya,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A1,strokeOpacity:A1,strokeWidth:null,style:null,surfaceScale:A1,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ya,tabIndex:A1,tableValues:null,target:null,targetX:A1,targetY:A1,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ya,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A1,underlineThickness:A1,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A1,values:null,vAlphabetic:A1,vMathematical:A1,vectorEffect:null,vHanging:A1,vIdeographic:A1,version:null,vertAdvY:A1,vertOriginX:A1,vertOriginY:A1,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A1,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cu0}),mu0=x9({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(a,t){return"xlink:"+t.slice(5).toLowerCase()}}),du0=x9({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:su0}),uu0=x9({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(a,t){return"xml:"+t.slice(3).toLowerCase()}}),SY0={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"},kY0=/[A-Z]/g,pu0=/-[a-z]/g,bY0=/^data[-\w.:]+$/i;function LY0(a,t){const n=lb(t);let r=t,l=Va;if(n in a.normal)return a.property[a.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&bY0.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(pu0,wY0);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!pu0.test(i)){let o=i.replace(kY0,_Y0);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=sb}return new l(r,t)}function _Y0(a){return"-"+a.toLowerCase()}function wY0(a){return a.charAt(1).toUpperCase()}const CY0=lu0([ou0,yY0,mu0,du0,uu0],"html"),mb=lu0([ou0,FY0,mu0,du0,uu0],"svg");function NY0(a){return a.join(" ").trim()}var R9={},db,hu0;function TY0(){if(hu0)return db;hu0=1;var a=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,m=`
|
|
772
|
+
`);var cY0={};const sY0=typeof process<"u"&&cY0.NODE_ENV==="development"?"http://localhost:4000":"https://l.apollos.app";function mY0({church:a,accessToken:t,children:n}){const r=e.useCallback(i=>{const o=new URLSearchParams({link:i,church:a});return t&&o.append("token",`Bearer ${t}`),`${sY0}/r?${o.toString()}`},[a,t]),l=i=>{const o=i.target;if(o&&o.tagName==="A"){const c=o.href,m=o.getAttribute("to"),u=c||m;if(u){if(u.includes("/auth/logout")||u.startsWith("http")||u.startsWith("mailto:")||u.startsWith("tel:"))return;i.preventDefault();try{const h=r(u);window.location.href=h}catch(h){console.error("Error during redirection:",h),window.location.href=u}}}};return P.jsx(ym0.Provider,{value:{church:a,accessToken:t},children:P.jsx("div",{onClick:l,children:n})})}function tb(){return Math.random().toString(36).slice(2)}function dY0(a){const{churchSlug:t,onAsk:n,onTrack:r,initialTurns:l,buildOptions:i}=a,[o,c]=e.useState(l||[]),[m,u]=e.useState(!1),[h,f]=e.useState(null),[A,Z]=e.useState(()=>tb()),H=e.useCallback(()=>{c(l||[]),f(null),Z(tb())},[l]),V=e.useCallback(L=>{c(L||[]),f(null),Z(tb())},[]),F=e.useCallback((L,_)=>{Z(L),c(Array.isArray(_)?_:[]),f(null)},[]),S=e.useCallback(async L=>{const _=(L||"").trim();if(!_)return;u(!0),f(null);const w=i?.()??{},b={search_id:A,type:"user",data:{prompt:_,options:w}};c(O=>[...O,b]),r?.("ask_submit",{churchSlug:t});const N={churchSlug:t,search_id:A,options:{...w,prompt:_}};try{const R=(await n(N)||[]).filter(z=>z.type==="assistant");c(z=>[...z,...R]),r?.("ask_response",{churchSlug:t})}catch(O){const R=O instanceof Error?O.message:"Unknown error";f(R)}finally{u(!1)}},[t,n,r,A]);return{turns:o,loading:m,error:h,submit:S,reset:H,sessionId:A,newSession:V,loadSession:F}}const uY0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]]),nb=e.forwardRef((a,t)=>e.createElement(E,{ref:t,...a,weights:uY0}));nb.displayName="ArrowCounterClockwiseIcon";const tu0=nb,pY0=Object.freeze(Object.defineProperty({__proto__:null,ArrowCounterClockwise:tu0,ArrowCounterClockwiseIcon:nb},Symbol.toStringTag,{value:"Module"})),hY0=new Map([["bold",e.createElement(e.Fragment,null,e.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",e.createElement(e.Fragment,null,e.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),e.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",e.createElement(e.Fragment,null,e.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",e.createElement(e.Fragment,null,e.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",e.createElement(e.Fragment,null,e.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",e.createElement(e.Fragment,null,e.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),rb=e.forwardRef((a,t)=>e.createElement(E,{ref:t,...a,weights:hY0}));rb.displayName="MagnifyingGlassIcon";const xv=rb,fY0=Object.freeze(Object.defineProperty({__proto__:null,MagnifyingGlass:xv,MagnifyingGlassIcon:rb},Symbol.toStringTag,{value:"Module"}));function AY0({placeholder:a,disabled:t,onSubmit:n,onReset:r,showReset:l,value:i,onValueChange:o,autoFocus:c,rightAdornment:m,loading:u}){const[h,f]=e.useState(""),A=e.useMemo(()=>i!==void 0?i:h,[i,h]),Z=H=>{H.key==="Enter"&&(H.preventDefault(),!t&&A.trim()&&n(A))};return P.jsx("div",{className:"w-full",children:P.jsx("div",{className:["relative w-full h-[60px] rounded-3xl shadow-md dark:shadow-none","border border-system-thin dark:border-system-regular-dark","bg-system-chrome dark:bg-material-regular-dark","transition-colors",t?"opacity-90":""].filter(Boolean).join(" "),children:P.jsxs("div",{className:"flex items-center h-full w-full",children:[P.jsx("div",{className:"px-3",children:P.jsx("div",{className:"bg-brand text-white rounded-full p-2 leading-none",children:P.jsx(xv,{size:18,weight:"bold"})})}),P.jsx("input",{type:"text",className:["flex-1 h-full bg-transparent border-none outline-none","text-[20px] text-fg-primary dark:text-fg-primary-dark","placeholder:text-fg-tertiary dark:placeholder:text-fg-tertiary-dark","px-1"].join(" "),placeholder:a||"What are you looking for?",value:A,onChange:H=>o?o(H.target.value):f(H.target.value),onKeyDown:Z,disabled:t,autoComplete:"off",autoFocus:c}),P.jsxs("div",{className:"pr-3 flex items-center gap-1",children:[m,u?P.jsx(Hm0,{size:18,className:"text-brand animate-spin"}):null,l&&r?P.jsx("button",{type:"button","aria-label":"Start over",className:["p-2 rounded-full transition-colors","hover:bg-system-ultrathin dark:hover:bg-system-ultrathin-dark"].join(" "),onClick:r,children:P.jsx(tu0,{size:18,className:"text-fg-secondary dark:text-fg-secondary-dark"})}):null]})]})})})}function qle(){}function Wle(){}function vY0(a,t){const n={};return(a[a.length-1]===""?[...a,""]:a).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const gY0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ZY0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HY0={};function nu0(a,t){return(HY0.jsx?ZY0:gY0).test(a)}const MY0=/[ \t\n\f\r]/g;function EY0(a){return typeof a=="object"?a.type==="text"?ru0(a.value):!1:ru0(a)}function ru0(a){return a.replace(MY0,"")===""}class Nd{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Nd.prototype.normal={},Nd.prototype.property={},Nd.prototype.space=void 0;function lu0(a,t){const n={},r={};for(const l of a)Object.assign(n,l.property),Object.assign(r,l.normal);return new Nd(n,r,t)}function lb(a){return a.toLowerCase()}class Va{constructor(t,n){this.attribute=n,this.property=t}}Va.prototype.attribute="",Va.prototype.booleanish=!1,Va.prototype.boolean=!1,Va.prototype.commaOrSpaceSeparated=!1,Va.prototype.commaSeparated=!1,Va.prototype.defined=!1,Va.prototype.mustUseProperty=!1,Va.prototype.number=!1,Va.prototype.overloadedBoolean=!1,Va.prototype.property="",Va.prototype.spaceSeparated=!1,Va.prototype.space=void 0;let VY0=0;const Ie=K5(),o6=K5(),ib=K5(),A1=K5(),i8=K5(),j9=K5(),Ya=K5();function K5(){return 2**++VY0}const ob=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:o6,commaOrSpaceSeparated:Ya,commaSeparated:j9,number:A1,overloadedBoolean:ib,spaceSeparated:i8},Symbol.toStringTag,{value:"Module"})),cb=Object.keys(ob);class sb extends Va{constructor(t,n,r,l){let i=-1;if(super(t,n),iu0(this,"space",l),typeof r=="number")for(;++i<cb.length;){const o=cb[i];iu0(this,cb[i],(r&ob[o])===ob[o])}}}sb.prototype.defined=!0;function iu0(a,t,n){n&&(a[t]=n)}function x9(a){const t={},n={};for(const[r,l]of Object.entries(a.properties)){const i=new sb(r,a.transform(a.attributes||{},r),l,a.space);a.mustUseProperty&&a.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[lb(r)]=r,n[lb(i.attribute)]=r}return new Nd(t,n,a.space)}const ou0=x9({properties:{ariaActiveDescendant:null,ariaAtomic:o6,ariaAutoComplete:null,ariaBusy:o6,ariaChecked:o6,ariaColCount:A1,ariaColIndex:A1,ariaColSpan:A1,ariaControls:i8,ariaCurrent:null,ariaDescribedBy:i8,ariaDetails:null,ariaDisabled:o6,ariaDropEffect:i8,ariaErrorMessage:null,ariaExpanded:o6,ariaFlowTo:i8,ariaGrabbed:o6,ariaHasPopup:null,ariaHidden:o6,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:i8,ariaLevel:A1,ariaLive:null,ariaModal:o6,ariaMultiLine:o6,ariaMultiSelectable:o6,ariaOrientation:null,ariaOwns:i8,ariaPlaceholder:null,ariaPosInSet:A1,ariaPressed:o6,ariaReadOnly:o6,ariaRelevant:null,ariaRequired:o6,ariaRoleDescription:i8,ariaRowCount:A1,ariaRowIndex:A1,ariaRowSpan:A1,ariaSelected:o6,ariaSetSize:A1,ariaSort:null,ariaValueMax:A1,ariaValueMin:A1,ariaValueNow:A1,ariaValueText:null,role:null},transform(a,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cu0(a,t){return t in a?a[t]:t}function su0(a,t){return cu0(a,t.toLowerCase())}const yY0=x9({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:j9,acceptCharset:i8,accessKey:i8,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:i8,autoFocus:Ie,autoPlay:Ie,blocking:i8,capture:null,charSet:null,checked:Ie,cite:null,className:i8,cols:A1,colSpan:null,content:null,contentEditable:o6,controls:Ie,controlsList:i8,coords:A1|j9,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:ib,draggable:o6,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:i8,height:A1,hidden:ib,high:A1,href:null,hrefLang:null,htmlFor:i8,httpEquiv:i8,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:i8,itemRef:i8,itemScope:Ie,itemType:i8,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:A1,manifest:null,max:null,maxLength:A1,media:null,method:null,min:null,minLength:A1,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:A1,pattern:null,ping:i8,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:i8,required:Ie,reversed:Ie,rows:A1,rowSpan:A1,sandbox:i8,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shape:null,size:A1,sizes:null,slot:null,span:A1,spellCheck:o6,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A1,step:null,style:null,tabIndex:A1,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:o6,width:A1,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:i8,axis:null,background:null,bgColor:null,border:A1,borderColor:null,bottomMargin:A1,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:A1,leftMargin:A1,link:null,longDesc:null,lowSrc:null,marginHeight:A1,marginWidth:A1,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:A1,rules:null,scheme:null,scrolling:o6,standby:null,summary:null,text:null,topMargin:A1,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A1,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:A1,security:null,unselectable:null},space:"html",transform:su0}),FY0=x9({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ya,accentHeight:A1,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A1,amplitude:A1,arabicForm:null,ascent:A1,attributeName:null,attributeType:null,azimuth:A1,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A1,by:null,calcMode:null,capHeight:A1,className:i8,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:A1,diffuseConstant:A1,direction:null,display:null,dur:null,divisor:A1,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:A1,enableBackground:null,end:null,event:null,exponent:A1,externalResourcesRequired:null,fill:null,fillOpacity:A1,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:j9,g2:j9,glyphName:j9,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A1,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A1,horizOriginX:A1,horizOriginY:A1,id:null,ideographic:A1,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A1,k:A1,k1:A1,k2:A1,k3:A1,k4:A1,kernelMatrix:Ya,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A1,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A1,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:A1,overlineThickness:A1,paintOrder:null,panose1:null,path:null,pathLength:A1,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:i8,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A1,pointsAtY:A1,pointsAtZ:A1,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ya,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ya,rev:Ya,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ya,requiredFeatures:Ya,requiredFonts:Ya,requiredFormats:Ya,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:A1,specularExponent:A1,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A1,strikethroughThickness:A1,string:null,stroke:null,strokeDashArray:Ya,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A1,strokeOpacity:A1,strokeWidth:null,style:null,surfaceScale:A1,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ya,tabIndex:A1,tableValues:null,target:null,targetX:A1,targetY:A1,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ya,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A1,underlineThickness:A1,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A1,values:null,vAlphabetic:A1,vMathematical:A1,vectorEffect:null,vHanging:A1,vIdeographic:A1,version:null,vertAdvY:A1,vertOriginX:A1,vertOriginY:A1,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A1,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cu0}),mu0=x9({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(a,t){return"xlink:"+t.slice(5).toLowerCase()}}),du0=x9({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:su0}),uu0=x9({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(a,t){return"xml:"+t.slice(3).toLowerCase()}}),SY0={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"},kY0=/[A-Z]/g,pu0=/-[a-z]/g,bY0=/^data[-\w.:]+$/i;function LY0(a,t){const n=lb(t);let r=t,l=Va;if(n in a.normal)return a.property[a.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&bY0.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(pu0,wY0);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!pu0.test(i)){let o=i.replace(kY0,_Y0);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=sb}return new l(r,t)}function _Y0(a){return"-"+a.toLowerCase()}function wY0(a){return a.charAt(1).toUpperCase()}const CY0=lu0([ou0,yY0,mu0,du0,uu0],"html"),mb=lu0([ou0,FY0,mu0,du0,uu0],"svg");function NY0(a){return a.join(" ").trim()}var R9={},db,hu0;function TY0(){if(hu0)return db;hu0=1;var a=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,c=/^\s+|\s+$/g,m=`
|
|
773
773
|
`,u="/",h="*",f="",A="comment",Z="declaration";db=function(V,F){if(typeof V!="string")throw new TypeError("First argument must be a string");if(!V)return[];F=F||{};var S=1,L=1;function _(o0){var X=o0.match(t);X&&(S+=X.length);var G=o0.lastIndexOf(m);L=~G?o0.length-G:L+o0.length}function w(){var o0={line:S,column:L};return function(X){return X.position=new b(o0),R(),X}}function b(o0){this.start=o0,this.end={line:S,column:L},this.source=F.source}b.prototype.content=V;function N(o0){var X=new Error(F.source+":"+S+":"+L+": "+o0);if(X.reason=o0,X.filename=F.source,X.line=S,X.column=L,X.source=V,!F.silent)throw X}function O(o0){var X=o0.exec(V);if(X){var G=X[0];return _(G),V=V.slice(G.length),X}}function R(){O(n)}function z(o0){var X;for(o0=o0||[];X=x();)X!==!1&&o0.push(X);return o0}function x(){var o0=w();if(!(u!=V.charAt(0)||h!=V.charAt(1))){for(var X=2;f!=V.charAt(X)&&(h!=V.charAt(X)||u!=V.charAt(X+1));)++X;if(X+=2,f===V.charAt(X-1))return N("End of comment missing");var G=V.slice(2,X-2);return L+=2,_(G),V=V.slice(X),L+=2,o0({type:A,comment:G})}}function J(){var o0=w(),X=O(r);if(X){if(x(),!O(l))return N("property missing ':'");var G=O(i),g0=o0({type:Z,property:H(X[0].replace(a,f)),value:G?H(G[0].replace(a,f)):f});return O(o),g0}}function t0(){var o0=[];z(o0);for(var X;X=J();)X!==!1&&(o0.push(X),z(o0));return o0}return R(),t0()};function H(V){return V?V.replace(c,f):f}return db}var fu0;function PY0(){if(fu0)return R9;fu0=1;var a=R9&&R9.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(R9,"__esModule",{value:!0}),R9.default=n;var t=a(TY0());function n(r,l){var i=null;if(!r||typeof r!="string")return i;var o=(0,t.default)(r),c=typeof l=="function";return o.forEach(function(m){if(m.type==="declaration"){var u=m.property,h=m.value;c?l(u,h,m):h&&(i=i||{},i[u]=h)}}),i}return R9}var Td={},Au0;function IY0(){if(Au0)return Td;Au0=1,Object.defineProperty(Td,"__esModule",{value:!0}),Td.camelCase=void 0;var a=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,i=function(u){return!u||n.test(u)||a.test(u)},o=function(u,h){return h.toUpperCase()},c=function(u,h){return"".concat(h,"-")},m=function(u,h){return h===void 0&&(h={}),i(u)?u:(u=u.toLowerCase(),h.reactCompat?u=u.replace(l,c):u=u.replace(r,c),u.replace(t,o))};return Td.camelCase=m,Td}var Pd,vu0;function OY0(){if(vu0)return Pd;vu0=1;var a=Pd&&Pd.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=a(PY0()),n=IY0();function r(l,i){var o={};return!l||typeof l!="string"||(0,t.default)(l,function(c,m){c&&m&&(o[(0,n.camelCase)(c,i)]=m)}),o}return r.default=r,Pd=r,Pd}var $Y0=OY0();const jY0=d2($Y0),gu0=Zu0("end"),ub=Zu0("start");function Zu0(a){return t;function t(n){const r=n&&n.position&&n.position[a]||{};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 xY0(a){const t=ub(a),n=gu0(a);if(t&&n)return{start:t,end:n}}function Id(a){return!a||typeof a!="object"?"":"position"in a||"type"in a?Hu0(a.position):"start"in a||"end"in a?Hu0(a):"line"in a||"column"in a?pb(a):""}function pb(a){return Mu0(a&&a.line)+":"+Mu0(a&&a.column)}function Hu0(a){return pb(a&&a.start)+"-"+pb(a&&a.end)}function Mu0(a){return a&&typeof a=="number"?a:1}class V4 extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const m=r.indexOf(":");m===-1?i.ruleId=r:(i.source=r.slice(0,m),i.ruleId=r.slice(m+1))}if(!i.place&&i.ancestors&&i.ancestors){const m=i.ancestors[i.ancestors.length-1];m&&(i.place=m.position)}const c=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=c?c.line:void 0,this.name=Id(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}V4.prototype.file="",V4.prototype.name="",V4.prototype.reason="",V4.prototype.message="",V4.prototype.stack="",V4.prototype.column=void 0,V4.prototype.line=void 0,V4.prototype.ancestors=void 0,V4.prototype.cause=void 0,V4.prototype.fatal=void 0,V4.prototype.place=void 0,V4.prototype.ruleId=void 0,V4.prototype.source=void 0;const hb={}.hasOwnProperty,RY0=new Map,DY0=/[A-Z]/g,zY0=new Set(["table","tbody","thead","tfoot","tr"]),BY0=new Set(["td","th"]),Eu0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function UY0(a,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=JY0(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=XY0(n,t.jsx,t.jsxs)}const l={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"?mb:CY0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Vu0(l,a,void 0);return i&&typeof i!="string"?i:l.create(a,l.Fragment,{children:i||void 0},void 0)}function Vu0(a,t,n){if(t.type==="element")return qY0(a,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return WY0(a,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return KY0(a,t,n);if(t.type==="mdxjsEsm")return GY0(a,t);if(t.type==="root")return YY0(a,t,n);if(t.type==="text")return QY0(a,t)}function qY0(a,t,n){const r=a.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=mb,a.schema=l),a.ancestors.push(t);const i=Fu0(a,t.tagName,!1),o=eQ0(a,t);let c=Ab(a,t);return zY0.has(t.tagName)&&(c=c.filter(function(m){return typeof m=="string"?!EY0(m):!0})),yu0(a,o,i,t),fb(o,c),a.ancestors.pop(),a.schema=r,a.create(t,i,o,n)}function WY0(a,t){if(t.data&&t.data.estree&&a.evaluater){const r=t.data.estree.body[0];return r.type,a.evaluater.evaluateExpression(r.expression)}Od(a,t.position)}function GY0(a,t){if(t.data&&t.data.estree&&a.evaluater)return a.evaluater.evaluateProgram(t.data.estree);Od(a,t.position)}function KY0(a,t,n){const r=a.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=mb,a.schema=l),a.ancestors.push(t);const i=t.name===null?a.Fragment:Fu0(a,t.name,!0),o=aQ0(a,t),c=Ab(a,t);return yu0(a,o,i,t),fb(o,c),a.ancestors.pop(),a.schema=r,a.create(t,i,o,n)}function YY0(a,t,n){const r={};return fb(r,Ab(a,t)),a.create(t,a.Fragment,r,n)}function QY0(a,t){return t.value}function yu0(a,t,n,r){typeof n!="string"&&n!==a.Fragment&&a.passNode&&(t.node=r)}function fb(a,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(a.children=n)}}function XY0(a,t,n){return r;function r(l,i,o,c){const u=Array.isArray(o.children)?n:t;return c?u(i,o,c):u(i,o)}}function JY0(a,t){return n;function n(r,l,i,o){const c=Array.isArray(i.children),m=ub(r);return t(l,i,o,c,{columnNumber:m?m.column-1:void 0,fileName:a,lineNumber:m?m.line:void 0},void 0)}}function eQ0(a,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&hb.call(t.properties,l)){const i=tQ0(a,l,t.properties[l]);if(i){const[o,c]=i;a.tableCellAlignToStyle&&o==="align"&&typeof c=="string"&&BY0.has(t.tagName)?r=c:n[o]=c}}if(r){const i=n.style||(n.style={});i[a.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function aQ0(a,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&a.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const c=o.properties[0];c.type,Object.assign(n,a.evaluater.evaluateExpression(c.argument))}else Od(a,t.position);else{const l=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&a.evaluater){const c=r.value.data.estree.body[0];c.type,i=a.evaluater.evaluateExpression(c.expression)}else Od(a,t.position);else i=r.value===null?!0:r.value;n[l]=i}return n}function Ab(a,t){const n=[];let r=-1;const l=a.passKeys?new Map:RY0;for(;++r<t.children.length;){const i=t.children[r];let o;if(a.passKeys){const m=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(m){const u=l.get(m)||0;o=m+"-"+u,l.set(m,u+1)}}const c=Vu0(a,i,o);c!==void 0&&n.push(c)}return n}function tQ0(a,t,n){const r=LY0(a.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?vY0(n):NY0(n)),r.property==="style"){let l=typeof n=="object"?n:nQ0(a,String(n));return a.stylePropertyNameCase==="css"&&(l=rQ0(l)),["style",l]}return[a.elementAttributeNameCase==="react"&&r.space?SY0[r.property]||r.property:r.attribute,n]}}function nQ0(a,t){try{return jY0(t,{reactCompat:!0})}catch(n){if(a.ignoreInvalidStyle)return{};const r=n,l=new V4("Cannot parse `style` attribute",{ancestors:a.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=a.filePath||void 0,l.url=Eu0+"#cannot-parse-style-attribute",l}}function Fu0(a,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let i=-1,o;for(;++i<l.length;){const c=nu0(l[i])?{type:"Identifier",name:l[i]}:{type:"Literal",value:l[i]};o=o?{type:"MemberExpression",object:o,property:c,computed:!!(i&&c.type==="Literal"),optional:!1}:c}r=o}else r=nu0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return hb.call(a.components,l)?a.components[l]:l}if(a.evaluater)return a.evaluater.evaluateExpression(r);Od(a)}function Od(a,t){const n=new V4("Cannot handle MDX estrees without `createEvaluater`",{ancestors:a.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=a.filePath||void 0,n.url=Eu0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function rQ0(a){const t={};let n;for(n in a)hb.call(a,n)&&(t[lQ0(n)]=a[n]);return t}function lQ0(a){let t=a.replace(DY0,iQ0);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function iQ0(a){return"-"+a.toLowerCase()}const vb={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"]},oQ0={};function gb(a,t){const n=oQ0,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Su0(a,r,l)}function Su0(a,t,n){if(cQ0(a)){if("value"in a)return a.type==="html"&&!n?"":a.value;if(t&&"alt"in a&&a.alt)return a.alt;if("children"in a)return ku0(a.children,t,n)}return Array.isArray(a)?ku0(a,t,n):""}function ku0(a,t,n){const r=[];let l=-1;for(;++l<a.length;)r[l]=Su0(a[l],t,n);return r.join("")}function cQ0(a){return!!(a&&typeof a=="object")}const bu0=document.createElement("i");function Zb(a){const t="&"+a+";";bu0.innerHTML=t;const n=bu0.textContent;return n.charCodeAt(n.length-1)===59&&a!=="semi"||n===t?!1:n}function Qa(a,t,n,r){const l=a.length;let i=0,o;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),a.splice(...o);else for(n&&a.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),a.splice(...o),i+=1e4,t+=1e4}function Vt(a,t){return a.length>0?(Qa(a,a.length,0,t),a):t}const Lu0={}.hasOwnProperty;function _u0(a){const t={};let n=-1;for(;++n<a.length;)sQ0(t,a[n]);return t}function sQ0(a,t){let n;for(n in t){const l=(Lu0.call(a,n)?a[n]:void 0)||(a[n]={}),i=t[n];let o;if(i)for(o in i){Lu0.call(l,o)||(l[o]=[]);const c=i[o];mQ0(l[o],Array.isArray(c)?c:c?[c]:[])}}}function mQ0(a,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?a:r).push(t[n]);Qa(a,0,0,r)}function wu0(a,t){const n=Number.parseInt(a,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 on(a){return a.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Y4=R3(/[A-Za-z]/),y4=R3(/[\dA-Za-z]/),dQ0=R3(/[#-'*+\--9=?A-Z^-~]/);function Rv(a){return a!==null&&(a<32||a===127)}const Hb=R3(/\d/),uQ0=R3(/[\dA-Fa-f]/),pQ0=R3(/[!-/:-@[-`{-~]/);function se(a){return a!==null&&a<-2}function Q2(a){return a!==null&&(a<0||a===32)}function Je(a){return a===-2||a===-1||a===32}const Dv=R3(new RegExp("\\p{P}|\\p{S}","u")),Y5=R3(/\s/);function R3(a){return t;function t(n){return n!==null&&n>-1&&a.test(String.fromCharCode(n))}}function D9(a){const t=[];let n=-1,r=0,l=0;for(;++n<a.length;){const i=a.charCodeAt(n);let o="";if(i===37&&y4(a.charCodeAt(n+1))&&y4(a.charCodeAt(n+2)))l=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const c=a.charCodeAt(n+1);i<56320&&c>56319&&c<57344?(o=String.fromCharCode(i,c),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(a.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+a.slice(r)}function u2(a,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(m){return Je(m)?(a.enter(n),c(m)):t(m)}function c(m){return Je(m)&&i++<l?(a.consume(m),c):(a.exit(n),t(m))}}const hQ0={tokenize:fQ0};function fQ0(a){const t=a.attempt(this.parser.constructs.contentInitial,r,l);let n;return t;function r(c){if(c===null){a.consume(c);return}return a.enter("lineEnding"),a.consume(c),a.exit("lineEnding"),u2(a,t,"linePrefix")}function l(c){return a.enter("paragraph"),i(c)}function i(c){const m=a.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=m),n=m,o(c)}function o(c){if(c===null){a.exit("chunkText"),a.exit("paragraph"),a.consume(c);return}return se(c)?(a.consume(c),a.exit("chunkText"),i):(a.consume(c),o)}}const AQ0={tokenize:vQ0},Cu0={tokenize:gQ0};function vQ0(a){const t=this,n=[];let r=0,l,i,o;return c;function c(_){if(r<n.length){const w=n[r];return t.containerState=w[1],a.attempt(w[0].continuation,m,u)(_)}return u(_)}function m(_){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&L();const w=t.events.length;let b=w,N;for(;b--;)if(t.events[b][0]==="exit"&&t.events[b][1].type==="chunkFlow"){N=t.events[b][1].end;break}S(r);let O=w;for(;O<t.events.length;)t.events[O][1].end={...N},O++;return Qa(t.events,b+1,0,t.events.slice(w)),t.events.length=O,u(_)}return c(_)}function u(_){if(r===n.length){if(!l)return A(_);if(l.currentConstruct&&l.currentConstruct.concrete)return H(_);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},a.check(Cu0,h,f)(_)}function h(_){return l&&L(),S(r),A(_)}function f(_){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,H(_)}function A(_){return t.containerState={},a.attempt(Cu0,Z,H)(_)}function Z(_){return r++,n.push([t.currentConstruct,t.containerState]),A(_)}function H(_){if(_===null){l&&L(),S(0),a.consume(_);return}return l=l||t.parser.flow(t.now()),a.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:i}),V(_)}function V(_){if(_===null){F(a.exit("chunkFlow"),!0),S(0),a.consume(_);return}return se(_)?(a.consume(_),F(a.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(a.consume(_),V)}function F(_,w){const b=t.sliceStream(_);if(w&&b.push(null),_.previous=i,i&&(i.next=_),i=_,l.defineSkip(_.start),l.write(b),t.parser.lazy[_.start.line]){let N=l.events.length;for(;N--;)if(l.events[N][1].start.offset<o&&(!l.events[N][1].end||l.events[N][1].end.offset>o))return;const O=t.events.length;let R=O,z,x;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(z){x=t.events[R][1].end;break}z=!0}for(S(r),N=O;N<t.events.length;)t.events[N][1].end={...x},N++;Qa(t.events,R+1,0,t.events.slice(O)),t.events.length=N}}function S(_){let w=n.length;for(;w-- >_;){const b=n[w];t.containerState=b[1],b[0].exit.call(t,a)}n.length=_}function L(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function gQ0(a,t,n){return u2(a,a.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function z9(a){if(a===null||Q2(a)||Y5(a))return 1;if(Dv(a))return 2}function zv(a,t,n){const r=[];let l=-1;for(;++l<a.length;){const i=a[l].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Mb={name:"attention",resolveAll:ZQ0,tokenize:HQ0};function ZQ0(a,t){let n=-1,r,l,i,o,c,m,u,h;for(;++n<a.length;)if(a[n][0]==="enter"&&a[n][1].type==="attentionSequence"&&a[n][1]._close){for(r=n;r--;)if(a[r][0]==="exit"&&a[r][1].type==="attentionSequence"&&a[r][1]._open&&t.sliceSerialize(a[r][1]).charCodeAt(0)===t.sliceSerialize(a[n][1]).charCodeAt(0)){if((a[r][1]._close||a[n][1]._open)&&(a[n][1].end.offset-a[n][1].start.offset)%3&&!((a[r][1].end.offset-a[r][1].start.offset+a[n][1].end.offset-a[n][1].start.offset)%3))continue;m=a[r][1].end.offset-a[r][1].start.offset>1&&a[n][1].end.offset-a[n][1].start.offset>1?2:1;const f={...a[r][1].end},A={...a[n][1].start};Nu0(f,-m),Nu0(A,m),o={type:m>1?"strongSequence":"emphasisSequence",start:f,end:{...a[r][1].end}},c={type:m>1?"strongSequence":"emphasisSequence",start:{...a[n][1].start},end:A},i={type:m>1?"strongText":"emphasisText",start:{...a[r][1].end},end:{...a[n][1].start}},l={type:m>1?"strong":"emphasis",start:{...o.start},end:{...c.end}},a[r][1].end={...o.start},a[n][1].start={...c.end},u=[],a[r][1].end.offset-a[r][1].start.offset&&(u=Vt(u,[["enter",a[r][1],t],["exit",a[r][1],t]])),u=Vt(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Vt(u,zv(t.parser.constructs.insideSpan.null,a.slice(r+1,n),t)),u=Vt(u,[["exit",i,t],["enter",c,t],["exit",c,t],["exit",l,t]]),a[n][1].end.offset-a[n][1].start.offset?(h=2,u=Vt(u,[["enter",a[n][1],t],["exit",a[n][1],t]])):h=0,Qa(a,r-1,n-r+3,u),n=r+u.length-h-2;break}}for(n=-1;++n<a.length;)a[n][1].type==="attentionSequence"&&(a[n][1].type="data");return a}function HQ0(a,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,l=z9(r);let i;return o;function o(m){return i=m,a.enter("attentionSequence"),c(m)}function c(m){if(m===i)return a.consume(m),c;const u=a.exit("attentionSequence"),h=z9(m),f=!h||h===2&&l||n.includes(m),A=!l||l===2&&h||n.includes(r);return u._open=!!(i===42?f:f&&(l||!A)),u._close=!!(i===42?A:A&&(h||!f)),t(m)}}function Nu0(a,t){a.column+=t,a.offset+=t,a._bufferIndex+=t}const MQ0={name:"autolink",tokenize:EQ0};function EQ0(a,t,n){let r=0;return l;function l(Z){return a.enter("autolink"),a.enter("autolinkMarker"),a.consume(Z),a.exit("autolinkMarker"),a.enter("autolinkProtocol"),i}function i(Z){return Y4(Z)?(a.consume(Z),o):Z===64?n(Z):u(Z)}function o(Z){return Z===43||Z===45||Z===46||y4(Z)?(r=1,c(Z)):u(Z)}function c(Z){return Z===58?(a.consume(Z),r=0,m):(Z===43||Z===45||Z===46||y4(Z))&&r++<32?(a.consume(Z),c):(r=0,u(Z))}function m(Z){return Z===62?(a.exit("autolinkProtocol"),a.enter("autolinkMarker"),a.consume(Z),a.exit("autolinkMarker"),a.exit("autolink"),t):Z===null||Z===32||Z===60||Rv(Z)?n(Z):(a.consume(Z),m)}function u(Z){return Z===64?(a.consume(Z),h):dQ0(Z)?(a.consume(Z),u):n(Z)}function h(Z){return y4(Z)?f(Z):n(Z)}function f(Z){return Z===46?(a.consume(Z),r=0,h):Z===62?(a.exit("autolinkProtocol").type="autolinkEmail",a.enter("autolinkMarker"),a.consume(Z),a.exit("autolinkMarker"),a.exit("autolink"),t):A(Z)}function A(Z){if((Z===45||y4(Z))&&r++<63){const H=Z===45?A:f;return a.consume(Z),H}return n(Z)}}const $d={partial:!0,tokenize:VQ0};function VQ0(a,t,n){return r;function r(i){return Je(i)?u2(a,l,"linePrefix")(i):l(i)}function l(i){return i===null||se(i)?t(i):n(i)}}const Tu0={continuation:{tokenize:FQ0},exit:SQ0,name:"blockQuote",tokenize:yQ0};function yQ0(a,t,n){const r=this;return l;function l(o){if(o===62){const c=r.containerState;return c.open||(a.enter("blockQuote",{_container:!0}),c.open=!0),a.enter("blockQuotePrefix"),a.enter("blockQuoteMarker"),a.consume(o),a.exit("blockQuoteMarker"),i}return n(o)}function i(o){return Je(o)?(a.enter("blockQuotePrefixWhitespace"),a.consume(o),a.exit("blockQuotePrefixWhitespace"),a.exit("blockQuotePrefix"),t):(a.exit("blockQuotePrefix"),t(o))}}function FQ0(a,t,n){const r=this;return l;function l(o){return Je(o)?u2(a,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return a.attempt(Tu0,t,n)(o)}}function SQ0(a){a.exit("blockQuote")}const Pu0={name:"characterEscape",tokenize:kQ0};function kQ0(a,t,n){return r;function r(i){return a.enter("characterEscape"),a.enter("escapeMarker"),a.consume(i),a.exit("escapeMarker"),l}function l(i){return pQ0(i)?(a.enter("characterEscapeValue"),a.consume(i),a.exit("characterEscapeValue"),a.exit("characterEscape"),t):n(i)}}const Iu0={name:"characterReference",tokenize:bQ0};function bQ0(a,t,n){const r=this;let l=0,i,o;return c;function c(f){return a.enter("characterReference"),a.enter("characterReferenceMarker"),a.consume(f),a.exit("characterReferenceMarker"),m}function m(f){return f===35?(a.enter("characterReferenceMarkerNumeric"),a.consume(f),a.exit("characterReferenceMarkerNumeric"),u):(a.enter("characterReferenceValue"),i=31,o=y4,h(f))}function u(f){return f===88||f===120?(a.enter("characterReferenceMarkerHexadecimal"),a.consume(f),a.exit("characterReferenceMarkerHexadecimal"),a.enter("characterReferenceValue"),i=6,o=uQ0,h):(a.enter("characterReferenceValue"),i=7,o=Hb,h(f))}function h(f){if(f===59&&l){const A=a.exit("characterReferenceValue");return o===y4&&!Zb(r.sliceSerialize(A))?n(f):(a.enter("characterReferenceMarker"),a.consume(f),a.exit("characterReferenceMarker"),a.exit("characterReference"),t)}return o(f)&&l++<i?(a.consume(f),h):n(f)}}const Ou0={partial:!0,tokenize:_Q0},$u0={concrete:!0,name:"codeFenced",tokenize:LQ0};function LQ0(a,t,n){const r=this,l={partial:!0,tokenize:b};let i=0,o=0,c;return m;function m(N){return u(N)}function u(N){const O=r.events[r.events.length-1];return i=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,c=N,a.enter("codeFenced"),a.enter("codeFencedFence"),a.enter("codeFencedFenceSequence"),h(N)}function h(N){return N===c?(o++,a.consume(N),h):o<3?n(N):(a.exit("codeFencedFenceSequence"),Je(N)?u2(a,f,"whitespace")(N):f(N))}function f(N){return N===null||se(N)?(a.exit("codeFencedFence"),r.interrupt?t(N):a.check(Ou0,V,w)(N)):(a.enter("codeFencedFenceInfo"),a.enter("chunkString",{contentType:"string"}),A(N))}function A(N){return N===null||se(N)?(a.exit("chunkString"),a.exit("codeFencedFenceInfo"),f(N)):Je(N)?(a.exit("chunkString"),a.exit("codeFencedFenceInfo"),u2(a,Z,"whitespace")(N)):N===96&&N===c?n(N):(a.consume(N),A)}function Z(N){return N===null||se(N)?f(N):(a.enter("codeFencedFenceMeta"),a.enter("chunkString",{contentType:"string"}),H(N))}function H(N){return N===null||se(N)?(a.exit("chunkString"),a.exit("codeFencedFenceMeta"),f(N)):N===96&&N===c?n(N):(a.consume(N),H)}function V(N){return a.attempt(l,w,F)(N)}function F(N){return a.enter("lineEnding"),a.consume(N),a.exit("lineEnding"),S}function S(N){return i>0&&Je(N)?u2(a,L,"linePrefix",i+1)(N):L(N)}function L(N){return N===null||se(N)?a.check(Ou0,V,w)(N):(a.enter("codeFlowValue"),_(N))}function _(N){return N===null||se(N)?(a.exit("codeFlowValue"),L(N)):(a.consume(N),_)}function w(N){return a.exit("codeFenced"),t(N)}function b(N,O,R){let z=0;return x;function x(G){return N.enter("lineEnding"),N.consume(G),N.exit("lineEnding"),J}function J(G){return N.enter("codeFencedFence"),Je(G)?u2(N,t0,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):t0(G)}function t0(G){return G===c?(N.enter("codeFencedFenceSequence"),o0(G)):R(G)}function o0(G){return G===c?(z++,N.consume(G),o0):z>=o?(N.exit("codeFencedFenceSequence"),Je(G)?u2(N,X,"whitespace")(G):X(G)):R(G)}function X(G){return G===null||se(G)?(N.exit("codeFencedFence"),O(G)):R(G)}}}function _Q0(a,t,n){const r=this;return l;function l(o){return o===null?n(o):(a.enter("lineEnding"),a.consume(o),a.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Eb={name:"codeIndented",tokenize:CQ0},wQ0={partial:!0,tokenize:NQ0};function CQ0(a,t,n){const r=this;return l;function l(u){return a.enter("codeIndented"),u2(a,i,"linePrefix",5)(u)}function i(u){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?m(u):se(u)?a.attempt(wQ0,o,m)(u):(a.enter("codeFlowValue"),c(u))}function c(u){return u===null||se(u)?(a.exit("codeFlowValue"),o(u)):(a.consume(u),c)}function m(u){return a.exit("codeIndented"),t(u)}}function NQ0(a,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):se(o)?(a.enter("lineEnding"),a.consume(o),a.exit("lineEnding"),l):u2(a,i,"linePrefix",5)(o)}function i(o){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):se(o)?l(o):n(o)}}const TQ0={name:"codeText",previous:IQ0,resolve:PQ0,tokenize:OQ0};function PQ0(a){let t=a.length-4,n=3,r,l;if((a[n][1].type==="lineEnding"||a[n][1].type==="space")&&(a[t][1].type==="lineEnding"||a[t][1].type==="space")){for(r=n;++r<t;)if(a[r][1].type==="codeTextData"){a[n][1].type="codeTextPadding",a[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)l===void 0?r!==t&&a[r][1].type!=="lineEnding"&&(l=r):(r===t||a[r][1].type==="lineEnding")&&(a[l][1].type="codeTextData",r!==l+2&&(a[l][1].end=a[r-1][1].end,a.splice(l+2,r-l-2),t-=r-l-2,r=l+2),l=void 0);return a}function IQ0(a){return a!==96||this.events[this.events.length-1][1].type==="characterEscape"}function OQ0(a,t,n){let r=0,l,i;return o;function o(f){return a.enter("codeText"),a.enter("codeTextSequence"),c(f)}function c(f){return f===96?(a.consume(f),r++,c):(a.exit("codeTextSequence"),m(f))}function m(f){return f===null?n(f):f===32?(a.enter("space"),a.consume(f),a.exit("space"),m):f===96?(i=a.enter("codeTextSequence"),l=0,h(f)):se(f)?(a.enter("lineEnding"),a.consume(f),a.exit("lineEnding"),m):(a.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||se(f)?(a.exit("codeTextData"),m(f)):(a.consume(f),u)}function h(f){return f===96?(a.consume(f),l++,h):l===r?(a.exit("codeTextSequence"),a.exit("codeText"),t(f)):(i.type="codeTextData",u(f))}}class $Q0{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 l=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&jd(this.left,r),i.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),jd(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),jd(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);jd(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);jd(this.left,n.reverse())}}}function jd(a,t){let n=0;if(t.length<1e4)a.push(...t);else for(;n<t.length;)a.push(...t.slice(n,n+1e4)),n+=1e4}function ju0(a){const t={};let n=-1,r,l,i,o,c,m,u;const h=new $Q0(a);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(m=r[1]._tokenizer.events,i=0,i<m.length&&m[i][1].type==="lineEndingBlank"&&(i+=2),i<m.length&&m[i][1].type==="content"))for(;++i<m.length&&m[i][1].type!=="content";)m[i][1].type==="chunkText"&&(m[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,jQ0(h,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,l=void 0;i--;)if(o=h.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(l&&(h.get(l)[1].type="lineEndingBlank"),o[1].type="lineEnding",l=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;l&&(r[1].end={...h.get(l)[1].start},c=h.slice(l,n),c.unshift(r),h.splice(l,n-l+1,c))}}return Qa(a,0,Number.POSITIVE_INFINITY,h.slice(0)),!u}function jQ0(a,t){const n=a.get(t)[1],r=a.get(t)[2];let l=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const c=o.events,m=[],u={};let h,f,A=-1,Z=n,H=0,V=0;const F=[V];for(;Z;){for(;a.get(++l)[1]!==Z;);i.push(l),Z._tokenizer||(h=r.sliceStream(Z),Z.next||h.push(null),f&&o.defineSkip(Z.start),Z._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(h),Z._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=Z,Z=Z.next}for(Z=n;++A<c.length;)c[A][0]==="exit"&&c[A-1][0]==="enter"&&c[A][1].type===c[A-1][1].type&&c[A][1].start.line!==c[A][1].end.line&&(V=A+1,F.push(V),Z._tokenizer=void 0,Z.previous=void 0,Z=Z.next);for(o.events=[],Z?(Z._tokenizer=void 0,Z.previous=void 0):F.pop(),A=F.length;A--;){const S=c.slice(F[A],F[A+1]),L=i.pop();m.push([L,L+S.length-1]),a.splice(L,2,S)}for(m.reverse(),A=-1;++A<m.length;)u[H+m[A][0]]=H+m[A][1],H+=m[A][1]-m[A][0]-1;return u}const xQ0={resolve:DQ0,tokenize:zQ0},RQ0={partial:!0,tokenize:BQ0};function DQ0(a){return ju0(a),a}function zQ0(a,t){let n;return r;function r(c){return a.enter("content"),n=a.enter("chunkContent",{contentType:"content"}),l(c)}function l(c){return c===null?i(c):se(c)?a.check(RQ0,o,i)(c):(a.consume(c),l)}function i(c){return a.exit("chunkContent"),a.exit("content"),t(c)}function o(c){return a.consume(c),a.exit("chunkContent"),n.next=a.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function BQ0(a,t,n){const r=this;return l;function l(o){return a.exit("chunkContent"),a.enter("lineEnding"),a.consume(o),a.exit("lineEnding"),u2(a,i,"linePrefix")}function i(o){if(o===null||se(o))return n(o);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(o):a.interrupt(r.parser.constructs.flow,n,t)(o)}}function xu0(a,t,n,r,l,i,o,c,m){const u=m||Number.POSITIVE_INFINITY;let h=0;return f;function f(S){return S===60?(a.enter(r),a.enter(l),a.enter(i),a.consume(S),a.exit(i),A):S===null||S===32||S===41||Rv(S)?n(S):(a.enter(r),a.enter(o),a.enter(c),a.enter("chunkString",{contentType:"string"}),V(S))}function A(S){return S===62?(a.enter(i),a.consume(S),a.exit(i),a.exit(l),a.exit(r),t):(a.enter(c),a.enter("chunkString",{contentType:"string"}),Z(S))}function Z(S){return S===62?(a.exit("chunkString"),a.exit(c),A(S)):S===null||S===60||se(S)?n(S):(a.consume(S),S===92?H:Z)}function H(S){return S===60||S===62||S===92?(a.consume(S),Z):Z(S)}function V(S){return!h&&(S===null||S===41||Q2(S))?(a.exit("chunkString"),a.exit(c),a.exit(o),a.exit(r),t(S)):h<u&&S===40?(a.consume(S),h++,V):S===41?(a.consume(S),h--,V):S===null||S===32||S===40||Rv(S)?n(S):(a.consume(S),S===92?F:V)}function F(S){return S===40||S===41||S===92?(a.consume(S),V):V(S)}}function Ru0(a,t,n,r,l,i){const o=this;let c=0,m;return u;function u(Z){return a.enter(r),a.enter(l),a.consume(Z),a.exit(l),a.enter(i),h}function h(Z){return c>999||Z===null||Z===91||Z===93&&!m||Z===94&&!c&&"_hiddenFootnoteSupport"in o.parser.constructs?n(Z):Z===93?(a.exit(i),a.enter(l),a.consume(Z),a.exit(l),a.exit(r),t):se(Z)?(a.enter("lineEnding"),a.consume(Z),a.exit("lineEnding"),h):(a.enter("chunkString",{contentType:"string"}),f(Z))}function f(Z){return Z===null||Z===91||Z===93||se(Z)||c++>999?(a.exit("chunkString"),h(Z)):(a.consume(Z),m||(m=!Je(Z)),Z===92?A:f)}function A(Z){return Z===91||Z===92||Z===93?(a.consume(Z),c++,f):f(Z)}}function Du0(a,t,n,r,l,i){let o;return c;function c(A){return A===34||A===39||A===40?(a.enter(r),a.enter(l),a.consume(A),a.exit(l),o=A===40?41:A,m):n(A)}function m(A){return A===o?(a.enter(l),a.consume(A),a.exit(l),a.exit(r),t):(a.enter(i),u(A))}function u(A){return A===o?(a.exit(i),m(o)):A===null?n(A):se(A)?(a.enter("lineEnding"),a.consume(A),a.exit("lineEnding"),u2(a,u,"linePrefix")):(a.enter("chunkString",{contentType:"string"}),h(A))}function h(A){return A===o||A===null||se(A)?(a.exit("chunkString"),u(A)):(a.consume(A),A===92?f:h)}function f(A){return A===o||A===92?(a.consume(A),h):h(A)}}function xd(a,t){let n;return r;function r(l){return se(l)?(a.enter("lineEnding"),a.consume(l),a.exit("lineEnding"),n=!0,r):Je(l)?u2(a,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const UQ0={name:"definition",tokenize:WQ0},qQ0={partial:!0,tokenize:GQ0};function WQ0(a,t,n){const r=this;let l;return i;function i(Z){return a.enter("definition"),o(Z)}function o(Z){return Ru0.call(r,a,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(Z)}function c(Z){return l=on(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),Z===58?(a.enter("definitionMarker"),a.consume(Z),a.exit("definitionMarker"),m):n(Z)}function m(Z){return Q2(Z)?xd(a,u)(Z):u(Z)}function u(Z){return xu0(a,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Z)}function h(Z){return a.attempt(qQ0,f,f)(Z)}function f(Z){return Je(Z)?u2(a,A,"whitespace")(Z):A(Z)}function A(Z){return Z===null||se(Z)?(a.exit("definition"),r.parser.defined.push(l),t(Z)):n(Z)}}function GQ0(a,t,n){return r;function r(c){return Q2(c)?xd(a,l)(c):n(c)}function l(c){return Du0(a,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function i(c){return Je(c)?u2(a,o,"whitespace")(c):o(c)}function o(c){return c===null||se(c)?t(c):n(c)}}const KQ0={name:"hardBreakEscape",tokenize:YQ0};function YQ0(a,t,n){return r;function r(i){return a.enter("hardBreakEscape"),a.consume(i),l}function l(i){return se(i)?(a.exit("hardBreakEscape"),t(i)):n(i)}}const QQ0={name:"headingAtx",resolve:XQ0,tokenize:JQ0};function XQ0(a,t){let n=a.length-2,r=3,l,i;return a[r][1].type==="whitespace"&&(r+=2),n-2>r&&a[n][1].type==="whitespace"&&(n-=2),a[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&a[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:a[r][1].start,end:a[n][1].end},i={type:"chunkText",start:a[r][1].start,end:a[n][1].end,contentType:"text"},Qa(a,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),a}function JQ0(a,t,n){let r=0;return l;function l(h){return a.enter("atxHeading"),i(h)}function i(h){return a.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&r++<6?(a.consume(h),o):h===null||Q2(h)?(a.exit("atxHeadingSequence"),c(h)):n(h)}function c(h){return h===35?(a.enter("atxHeadingSequence"),m(h)):h===null||se(h)?(a.exit("atxHeading"),t(h)):Je(h)?u2(a,c,"whitespace")(h):(a.enter("atxHeadingText"),u(h))}function m(h){return h===35?(a.consume(h),m):(a.exit("atxHeadingSequence"),c(h))}function u(h){return h===null||h===35||Q2(h)?(a.exit("atxHeadingText"),c(h)):(a.consume(h),u)}}const eX0=["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"],zu0=["pre","script","style","textarea"],aX0={concrete:!0,name:"htmlFlow",resolveTo:rX0,tokenize:lX0},tX0={partial:!0,tokenize:oX0},nX0={partial:!0,tokenize:iX0};function rX0(a){let t=a.length;for(;t--&&!(a[t][0]==="enter"&&a[t][1].type==="htmlFlow"););return t>1&&a[t-2][1].type==="linePrefix"&&(a[t][1].start=a[t-2][1].start,a[t+1][1].start=a[t-2][1].start,a.splice(t-2,2)),a}function lX0(a,t,n){const r=this;let l,i,o,c,m;return u;function u(B){return h(B)}function h(B){return a.enter("htmlFlow"),a.enter("htmlFlowData"),a.consume(B),f}function f(B){return B===33?(a.consume(B),A):B===47?(a.consume(B),i=!0,V):B===63?(a.consume(B),l=3,r.interrupt?t:K):Y4(B)?(a.consume(B),o=String.fromCharCode(B),F):n(B)}function A(B){return B===45?(a.consume(B),l=2,Z):B===91?(a.consume(B),l=5,c=0,H):Y4(B)?(a.consume(B),l=4,r.interrupt?t:K):n(B)}function Z(B){return B===45?(a.consume(B),r.interrupt?t:K):n(B)}function H(B){const M0="CDATA[";return B===M0.charCodeAt(c++)?(a.consume(B),c===M0.length?r.interrupt?t:t0:H):n(B)}function V(B){return Y4(B)?(a.consume(B),o=String.fromCharCode(B),F):n(B)}function F(B){if(B===null||B===47||B===62||Q2(B)){const M0=B===47,L0=o.toLowerCase();return!M0&&!i&&zu0.includes(L0)?(l=1,r.interrupt?t(B):t0(B)):eX0.includes(o.toLowerCase())?(l=6,M0?(a.consume(B),S):r.interrupt?t(B):t0(B)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(B):i?L(B):_(B))}return B===45||y4(B)?(a.consume(B),o+=String.fromCharCode(B),F):n(B)}function S(B){return B===62?(a.consume(B),r.interrupt?t:t0):n(B)}function L(B){return Je(B)?(a.consume(B),L):x(B)}function _(B){return B===47?(a.consume(B),x):B===58||B===95||Y4(B)?(a.consume(B),w):Je(B)?(a.consume(B),_):x(B)}function w(B){return B===45||B===46||B===58||B===95||y4(B)?(a.consume(B),w):b(B)}function b(B){return B===61?(a.consume(B),N):Je(B)?(a.consume(B),b):_(B)}function N(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(a.consume(B),m=B,O):Je(B)?(a.consume(B),N):R(B)}function O(B){return B===m?(a.consume(B),m=null,z):B===null||se(B)?n(B):(a.consume(B),O)}function R(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Q2(B)?b(B):(a.consume(B),R)}function z(B){return B===47||B===62||Je(B)?_(B):n(B)}function x(B){return B===62?(a.consume(B),J):n(B)}function J(B){return B===null||se(B)?t0(B):Je(B)?(a.consume(B),J):n(B)}function t0(B){return B===45&&l===2?(a.consume(B),g0):B===60&&l===1?(a.consume(B),w0):B===62&&l===4?(a.consume(B),Y):B===63&&l===3?(a.consume(B),K):B===93&&l===5?(a.consume(B),u0):se(B)&&(l===6||l===7)?(a.exit("htmlFlowData"),a.check(tX0,a0,o0)(B)):B===null||se(B)?(a.exit("htmlFlowData"),o0(B)):(a.consume(B),t0)}function o0(B){return a.check(nX0,X,a0)(B)}function X(B){return a.enter("lineEnding"),a.consume(B),a.exit("lineEnding"),G}function G(B){return B===null||se(B)?o0(B):(a.enter("htmlFlowData"),t0(B))}function g0(B){return B===45?(a.consume(B),K):t0(B)}function w0(B){return B===47?(a.consume(B),o="",i0):t0(B)}function i0(B){if(B===62){const M0=o.toLowerCase();return zu0.includes(M0)?(a.consume(B),Y):t0(B)}return Y4(B)&&o.length<8?(a.consume(B),o+=String.fromCharCode(B),i0):t0(B)}function u0(B){return B===93?(a.consume(B),K):t0(B)}function K(B){return B===62?(a.consume(B),Y):B===45&&l===2?(a.consume(B),K):t0(B)}function Y(B){return B===null||se(B)?(a.exit("htmlFlowData"),a0(B)):(a.consume(B),Y)}function a0(B){return a.exit("htmlFlow"),t(B)}}function iX0(a,t,n){const r=this;return l;function l(o){return se(o)?(a.enter("lineEnding"),a.consume(o),a.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function oX0(a,t,n){return r;function r(l){return a.enter("lineEnding"),a.consume(l),a.exit("lineEnding"),a.attempt($d,t,n)}}const cX0={name:"htmlText",tokenize:sX0};function sX0(a,t,n){const r=this;let l,i,o;return c;function c(K){return a.enter("htmlText"),a.enter("htmlTextData"),a.consume(K),m}function m(K){return K===33?(a.consume(K),u):K===47?(a.consume(K),b):K===63?(a.consume(K),_):Y4(K)?(a.consume(K),R):n(K)}function u(K){return K===45?(a.consume(K),h):K===91?(a.consume(K),i=0,H):Y4(K)?(a.consume(K),L):n(K)}function h(K){return K===45?(a.consume(K),Z):n(K)}function f(K){return K===null?n(K):K===45?(a.consume(K),A):se(K)?(o=f,w0(K)):(a.consume(K),f)}function A(K){return K===45?(a.consume(K),Z):f(K)}function Z(K){return K===62?g0(K):K===45?A(K):f(K)}function H(K){const Y="CDATA[";return K===Y.charCodeAt(i++)?(a.consume(K),i===Y.length?V:H):n(K)}function V(K){return K===null?n(K):K===93?(a.consume(K),F):se(K)?(o=V,w0(K)):(a.consume(K),V)}function F(K){return K===93?(a.consume(K),S):V(K)}function S(K){return K===62?g0(K):K===93?(a.consume(K),S):V(K)}function L(K){return K===null||K===62?g0(K):se(K)?(o=L,w0(K)):(a.consume(K),L)}function _(K){return K===null?n(K):K===63?(a.consume(K),w):se(K)?(o=_,w0(K)):(a.consume(K),_)}function w(K){return K===62?g0(K):_(K)}function b(K){return Y4(K)?(a.consume(K),N):n(K)}function N(K){return K===45||y4(K)?(a.consume(K),N):O(K)}function O(K){return se(K)?(o=O,w0(K)):Je(K)?(a.consume(K),O):g0(K)}function R(K){return K===45||y4(K)?(a.consume(K),R):K===47||K===62||Q2(K)?z(K):n(K)}function z(K){return K===47?(a.consume(K),g0):K===58||K===95||Y4(K)?(a.consume(K),x):se(K)?(o=z,w0(K)):Je(K)?(a.consume(K),z):g0(K)}function x(K){return K===45||K===46||K===58||K===95||y4(K)?(a.consume(K),x):J(K)}function J(K){return K===61?(a.consume(K),t0):se(K)?(o=J,w0(K)):Je(K)?(a.consume(K),J):z(K)}function t0(K){return K===null||K===60||K===61||K===62||K===96?n(K):K===34||K===39?(a.consume(K),l=K,o0):se(K)?(o=t0,w0(K)):Je(K)?(a.consume(K),t0):(a.consume(K),X)}function o0(K){return K===l?(a.consume(K),l=void 0,G):K===null?n(K):se(K)?(o=o0,w0(K)):(a.consume(K),o0)}function X(K){return K===null||K===34||K===39||K===60||K===61||K===96?n(K):K===47||K===62||Q2(K)?z(K):(a.consume(K),X)}function G(K){return K===47||K===62||Q2(K)?z(K):n(K)}function g0(K){return K===62?(a.consume(K),a.exit("htmlTextData"),a.exit("htmlText"),t):n(K)}function w0(K){return a.exit("htmlTextData"),a.enter("lineEnding"),a.consume(K),a.exit("lineEnding"),i0}function i0(K){return Je(K)?u2(a,u0,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):u0(K)}function u0(K){return a.enter("htmlTextData"),o(K)}}const Vb={name:"labelEnd",resolveAll:pX0,resolveTo:hX0,tokenize:fX0},mX0={tokenize:AX0},dX0={tokenize:vX0},uX0={tokenize:gX0};function pX0(a){let t=-1;const n=[];for(;++t<a.length;){const r=a[t][1];if(n.push(a[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const l=r.type==="labelImage"?4:2;r.type="data",t+=l}}return a.length!==n.length&&Qa(a,0,a.length,n),a}function hX0(a,t){let n=a.length,r=0,l,i,o,c;for(;n--;)if(l=a[n][1],i){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;a[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(o){if(a[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(i=n,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(o=n);const m={type:a[i][1].type==="labelLink"?"link":"image",start:{...a[i][1].start},end:{...a[a.length-1][1].end}},u={type:"label",start:{...a[i][1].start},end:{...a[o][1].end}},h={type:"labelText",start:{...a[i+r+2][1].end},end:{...a[o-2][1].start}};return c=[["enter",m,t],["enter",u,t]],c=Vt(c,a.slice(i+1,i+r+3)),c=Vt(c,[["enter",h,t]]),c=Vt(c,zv(t.parser.constructs.insideSpan.null,a.slice(i+r+4,o-3),t)),c=Vt(c,[["exit",h,t],a[o-2],a[o-1],["exit",u,t]]),c=Vt(c,a.slice(o+1)),c=Vt(c,[["exit",m,t]]),Qa(a,i,a.length,c),a}function fX0(a,t,n){const r=this;let l=r.events.length,i,o;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){i=r.events[l][1];break}return c;function c(A){return i?i._inactive?f(A):(o=r.parser.defined.includes(on(r.sliceSerialize({start:i.end,end:r.now()}))),a.enter("labelEnd"),a.enter("labelMarker"),a.consume(A),a.exit("labelMarker"),a.exit("labelEnd"),m):n(A)}function m(A){return A===40?a.attempt(mX0,h,o?h:f)(A):A===91?a.attempt(dX0,h,o?u:f)(A):o?h(A):f(A)}function u(A){return a.attempt(uX0,h,f)(A)}function h(A){return t(A)}function f(A){return i._balanced=!0,n(A)}}function AX0(a,t,n){return r;function r(f){return a.enter("resource"),a.enter("resourceMarker"),a.consume(f),a.exit("resourceMarker"),l}function l(f){return Q2(f)?xd(a,i)(f):i(f)}function i(f){return f===41?h(f):xu0(a,o,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Q2(f)?xd(a,m)(f):h(f)}function c(f){return n(f)}function m(f){return f===34||f===39||f===40?Du0(a,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):h(f)}function u(f){return Q2(f)?xd(a,h)(f):h(f)}function h(f){return f===41?(a.enter("resourceMarker"),a.consume(f),a.exit("resourceMarker"),a.exit("resource"),t):n(f)}}function vX0(a,t,n){const r=this;return l;function l(c){return Ru0.call(r,a,i,o,"reference","referenceMarker","referenceString")(c)}function i(c){return r.parser.defined.includes(on(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function o(c){return n(c)}}function gX0(a,t,n){return r;function r(i){return a.enter("reference"),a.enter("referenceMarker"),a.consume(i),a.exit("referenceMarker"),l}function l(i){return i===93?(a.enter("referenceMarker"),a.consume(i),a.exit("referenceMarker"),a.exit("reference"),t):n(i)}}const ZX0={name:"labelStartImage",resolveAll:Vb.resolveAll,tokenize:HX0};function HX0(a,t,n){const r=this;return l;function l(c){return a.enter("labelImage"),a.enter("labelImageMarker"),a.consume(c),a.exit("labelImageMarker"),i}function i(c){return c===91?(a.enter("labelMarker"),a.consume(c),a.exit("labelMarker"),a.exit("labelImage"),o):n(c)}function o(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const MX0={name:"labelStartLink",resolveAll:Vb.resolveAll,tokenize:EX0};function EX0(a,t,n){const r=this;return l;function l(o){return a.enter("labelLink"),a.enter("labelMarker"),a.consume(o),a.exit("labelMarker"),a.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const yb={name:"lineEnding",tokenize:VX0};function VX0(a,t){return n;function n(r){return a.enter("lineEnding"),a.consume(r),a.exit("lineEnding"),u2(a,t,"linePrefix")}}const Bv={name:"thematicBreak",tokenize:yX0};function yX0(a,t,n){let r=0,l;return i;function i(u){return a.enter("thematicBreak"),o(u)}function o(u){return l=u,c(u)}function c(u){return u===l?(a.enter("thematicBreakSequence"),m(u)):r>=3&&(u===null||se(u))?(a.exit("thematicBreak"),t(u)):n(u)}function m(u){return u===l?(a.consume(u),r++,m):(a.exit("thematicBreakSequence"),Je(u)?u2(a,c,"whitespace")(u):c(u))}}const ya={continuation:{tokenize:bX0},exit:_X0,name:"list",tokenize:kX0},FX0={partial:!0,tokenize:wX0},SX0={partial:!0,tokenize:LX0};function kX0(a,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return c;function c(Z){const H=r.containerState.type||(Z===42||Z===43||Z===45?"listUnordered":"listOrdered");if(H==="listUnordered"?!r.containerState.marker||Z===r.containerState.marker:Hb(Z)){if(r.containerState.type||(r.containerState.type=H,a.enter(H,{_container:!0})),H==="listUnordered")return a.enter("listItemPrefix"),Z===42||Z===45?a.check(Bv,n,u)(Z):u(Z);if(!r.interrupt||Z===49)return a.enter("listItemPrefix"),a.enter("listItemValue"),m(Z)}return n(Z)}function m(Z){return Hb(Z)&&++o<10?(a.consume(Z),m):(!r.interrupt||o<2)&&(r.containerState.marker?Z===r.containerState.marker:Z===41||Z===46)?(a.exit("listItemValue"),u(Z)):n(Z)}function u(Z){return a.enter("listItemMarker"),a.consume(Z),a.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||Z,a.check($d,r.interrupt?n:h,a.attempt(FX0,A,f))}function h(Z){return r.containerState.initialBlankLine=!0,i++,A(Z)}function f(Z){return Je(Z)?(a.enter("listItemPrefixWhitespace"),a.consume(Z),a.exit("listItemPrefixWhitespace"),A):n(Z)}function A(Z){return r.containerState.size=i+r.sliceSerialize(a.exit("listItemPrefix"),!0).length,t(Z)}}function bX0(a,t,n){const r=this;return r.containerState._closeFlow=void 0,a.check($d,l,i);function l(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,u2(a,t,"listItemIndent",r.containerState.size+1)(c)}function i(c){return r.containerState.furtherBlankLines||!Je(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a.attempt(SX0,t,o)(c))}function o(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,u2(a,a.attempt(ya,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function LX0(a,t,n){const r=this;return u2(a,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function _X0(a){a.exit(this.containerState.type)}function wX0(a,t,n){const r=this;return u2(a,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!Je(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Bu0={name:"setextUnderline",resolveTo:CX0,tokenize:NX0};function CX0(a,t){let n=a.length,r,l,i;for(;n--;)if(a[n][0]==="enter"){if(a[n][1].type==="content"){r=n;break}a[n][1].type==="paragraph"&&(l=n)}else a[n][1].type==="content"&&a.splice(n,1),!i&&a[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...a[r][1].start},end:{...a[a.length-1][1].end}};return a[l][1].type="setextHeadingText",i?(a.splice(l,0,["enter",o,t]),a.splice(i+1,0,["exit",a[r][1],t]),a[r][1].end={...a[i][1].end}):a[r][1]=o,a.push(["exit",o,t]),a}function NX0(a,t,n){const r=this;let l;return i;function i(u){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(a.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return a.enter("setextHeadingLineSequence"),c(u)}function c(u){return u===l?(a.consume(u),c):(a.exit("setextHeadingLineSequence"),Je(u)?u2(a,m,"lineSuffix")(u):m(u))}function m(u){return u===null||se(u)?(a.exit("setextHeadingLine"),t(u)):n(u)}}const TX0={tokenize:PX0};function PX0(a){const t=this,n=a.attempt($d,r,a.attempt(this.parser.constructs.flowInitial,l,u2(a,a.attempt(this.parser.constructs.flow,l,a.attempt(xQ0,l)),"linePrefix")));return n;function r(i){if(i===null){a.consume(i);return}return a.enter("lineEndingBlank"),a.consume(i),a.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){a.consume(i);return}return a.enter("lineEnding"),a.consume(i),a.exit("lineEnding"),t.currentConstruct=void 0,n}}const IX0={resolveAll:qu0()},OX0=Uu0("string"),$X0=Uu0("text");function Uu0(a){return{resolveAll:qu0(a==="text"?jX0:void 0),tokenize:t};function t(n){const r=this,l=this.parser.constructs[a],i=n.attempt(l,o,c);return o;function o(h){return u(h)?i(h):c(h)}function c(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),m}function m(h){return u(h)?(n.exit("data"),i(h)):(n.consume(h),m)}function u(h){if(h===null)return!0;const f=l[h];let A=-1;if(f)for(;++A<f.length;){const Z=f[A];if(!Z.previous||Z.previous.call(r,r.previous))return!0}return!1}}}function qu0(a){return t;function t(n,r){let l=-1,i;for(;++l<=n.length;)i===void 0?n[l]&&n[l][1].type==="data"&&(i=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==i+2&&(n[i][1].end=n[l-1][1].end,n.splice(i+2,l-i-2),l=i+2),i=void 0);return a?a(n,r):n}}function jX0(a,t){let n=0;for(;++n<=a.length;)if((n===a.length||a[n][1].type==="lineEnding")&&a[n-1][1].type==="data"){const r=a[n-1][1],l=t.sliceStream(r);let i=l.length,o=-1,c=0,m;for(;i--;){const u=l[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)c++,o--;if(o)break;o=-1}else if(u===-2)m=!0,c++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===a.length&&(c=0),c){const u={type:n===a.length||m||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(a.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return a}const xX0=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:UQ0},disable:{null:[]},document:{42:ya,43:ya,45:ya,48:ya,49:ya,50:ya,51:ya,52:ya,53:ya,54:ya,55:ya,56:ya,57:ya,62:Tu0},flow:{35:QQ0,42:Bv,45:[Bu0,Bv],60:aX0,61:Bu0,95:Bv,96:$u0,126:$u0},flowInitial:{[-2]:Eb,[-1]:Eb,32:Eb},insideSpan:{null:[Mb,IX0]},string:{38:Iu0,92:Pu0},text:{[-5]:yb,[-4]:yb,[-3]:yb,33:ZX0,38:Iu0,42:Mb,60:[MQ0,cX0],91:MX0,92:[KQ0,Pu0],93:Vb,95:Mb,96:TQ0}},Symbol.toStringTag,{value:"Module"}));function RX0(a,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},i=[];let o=[],c=[];const m={attempt:O(b),check:O(N),consume:L,enter:_,exit:w,interrupt:O(N,{interrupt:!0})},u={code:null,containerState:{},defineSkip:V,events:[],now:H,parser:a,previous:null,sliceSerialize:A,sliceStream:Z,write:f};let h=t.tokenize.call(u,m);return t.resolveAll&&i.push(t),u;function f(J){return o=Vt(o,J),F(),o[o.length-1]!==null?[]:(R(t,0),u.events=zv(i,u.events,u),u.events)}function A(J,t0){return zX0(Z(J),t0)}function Z(J){return DX0(o,J)}function H(){const{_bufferIndex:J,_index:t0,line:o0,column:X,offset:G}=r;return{_bufferIndex:J,_index:t0,line:o0,column:X,offset:G}}function V(J){l[J.line]=J.column,x()}function F(){let J;for(;r._index<o.length;){const t0=o[r._index];if(typeof t0=="string")for(J=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===J&&r._bufferIndex<t0.length;)S(t0.charCodeAt(r._bufferIndex));else S(t0)}}function S(J){h=h(J)}function L(J){se(J)?(r.line++,r.column=1,r.offset+=J===-3?2:1,x()):J!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=J}function _(J,t0){const o0=t0||{};return o0.type=J,o0.start=H(),u.events.push(["enter",o0,u]),c.push(o0),o0}function w(J){const t0=c.pop();return t0.end=H(),u.events.push(["exit",t0,u]),t0}function b(J,t0){R(J,t0.from)}function N(J,t0){t0.restore()}function O(J,t0){return o0;function o0(X,G,g0){let w0,i0,u0,K;return Array.isArray(X)?a0(X):"tokenize"in X?a0([X]):Y(X);function Y(p0){return W0;function W0(r0){const d0=r0!==null&&p0[r0],A0=r0!==null&&p0.null,y0=[...Array.isArray(d0)?d0:d0?[d0]:[],...Array.isArray(A0)?A0:A0?[A0]:[]];return a0(y0)(r0)}}function a0(p0){return w0=p0,i0=0,p0.length===0?g0:B(p0[i0])}function B(p0){return W0;function W0(r0){return K=z(),u0=p0,p0.partial||(u.currentConstruct=p0),p0.name&&u.parser.constructs.disable.null.includes(p0.name)?L0():p0.tokenize.call(t0?Object.assign(Object.create(u),t0):u,m,M0,L0)(r0)}}function M0(p0){return J(u0,K),G}function L0(p0){return K.restore(),++i0<w0.length?B(w0[i0]):g0}}}function R(J,t0){J.resolveAll&&!i.includes(J)&&i.push(J),J.resolve&&Qa(u.events,t0,u.events.length-t0,J.resolve(u.events.slice(t0),u)),J.resolveTo&&(u.events=J.resolveTo(u.events,u))}function z(){const J=H(),t0=u.previous,o0=u.currentConstruct,X=u.events.length,G=Array.from(c);return{from:X,restore:g0};function g0(){r=J,u.previous=t0,u.currentConstruct=o0,u.events.length=X,c=G,x()}}function x(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function DX0(a,t){const n=t.start._index,r=t.start._bufferIndex,l=t.end._index,i=t.end._bufferIndex;let o;if(n===l)o=[a[n].slice(r,i)];else{if(o=a.slice(n,l),r>-1){const c=o[0];typeof c=="string"?o[0]=c.slice(r):o.shift()}i>0&&o.push(a[l].slice(0,i))}return o}function zX0(a,t){let n=-1;const r=[];let l;for(;++n<a.length;){const i=a[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
774
774
|
`;break}case-3:{o=`\r
|
|
775
775
|
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&l)continue;o=" ";break}default:o=String.fromCharCode(i)}l=i===-2,r.push(o)}return r.join("")}function BX0(a){const r={constructs:_u0([xX0,...(a||{}).extensions||[]]),content:l(hQ0),defined:[],document:l(AQ0),flow:l(TX0),lazy:{},string:l(OX0),text:l($X0)};return r;function l(i){return o;function o(c){return RX0(r,i,c)}}}function UX0(a){for(;!ju0(a););return a}const Wu0=/[\0\t\n\r]/g;function qX0(){let a=1,t="",n=!0,r;return l;function l(i,o,c){const m=[];let u,h,f,A,Z;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(Wu0.lastIndex=f,u=Wu0.exec(i),A=u&&u.index!==void 0?u.index:i.length,Z=i.charCodeAt(A),!u){t=i.slice(f);break}if(Z===10&&f===A&&r)m.push(-3),r=void 0;else switch(r&&(m.push(-5),r=void 0),f<A&&(m.push(i.slice(f,A)),a+=A-f),Z){case 0:{m.push(65533),a++;break}case 9:{for(h=Math.ceil(a/4)*4,m.push(-2);a++<h;)m.push(-1);break}case 10:{m.push(-4),a=1;break}default:r=!0,a=1}f=A+1}return c&&(r&&m.push(-5),t&&m.push(t),m.push(null)),m}}const WX0=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function GX0(a){return a.replace(WX0,KX0)}function KX0(a,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),i=l===120||l===88;return wu0(n.slice(i?2:1),i?16:10)}return Zb(n)||a}const Gu0={}.hasOwnProperty;function YX0(a,t,n){return typeof t!="string"&&(n=t,t=void 0),QX0(n)(UX0(BX0(n).document().write(qX0()(a,t,!0))))}function QX0(a){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(f1),autolinkProtocol:z,autolinkEmail:z,atxHeading:i(l0),blockQuote:i(A0),characterEscape:z,characterReference:z,codeFenced:i(y0),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(y0,o),codeText:i(C0,o),codeTextData:z,data:z,codeFlowValue:z,definition:i(q),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(e0),hardBreakEscape:i(E0),hardBreakTrailing:i(E0),htmlFlow:i(I0,o),htmlFlowData:z,htmlText:i(I0,o),htmlTextData:z,image:i(J0),label:o,link:i(f1),listItem:i(Y1),listItemValue:A,listOrdered:i(Z1,f),listUnordered:i(Z1),paragraph:i(l1),reference:B,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(l0),strong:i(X0),thematicBreak:i(i1)},exit:{atxHeading:m(),atxHeadingSequence:b,autolink:m(),autolinkEmail:d0,autolinkProtocol:r0,blockQuote:m(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:L0,characterReferenceMarkerNumeric:L0,characterReferenceValue:p0,characterReference:W0,codeFenced:m(F),codeFencedFence:V,codeFencedFenceInfo:Z,codeFencedFenceMeta:H,codeFlowValue:x,codeIndented:m(S),codeText:m(G),codeTextData:x,data:x,definition:m(),definitionDestinationString:w,definitionLabelString:L,definitionTitleString:_,emphasis:m(),hardBreakEscape:m(t0),hardBreakTrailing:m(t0),htmlFlow:m(o0),htmlFlowData:x,htmlText:m(X),htmlTextData:x,image:m(w0),label:u0,labelText:i0,lineEnding:J,link:m(g0),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:M0,resourceDestinationString:K,resourceTitleString:Y,resource:a0,setextHeading:m(R),setextHeadingLineSequence:O,setextHeadingText:N,strong:m(),thematicBreak:m()}};Ku0(t,(a||{}).mdastExtensions||[]);const n={};return r;function r(_0){let z0={type:"root",children:[]};const t1={stack:[z0],tokenStack:[],config:t,enter:c,exit:u,buffer:o,resume:h,data:n},_1=[];let J1=-1;for(;++J1<_0.length;)if(_0[J1][1].type==="listOrdered"||_0[J1][1].type==="listUnordered")if(_0[J1][0]==="enter")_1.push(J1);else{const n1=_1.pop();J1=l(_0,n1,J1)}for(J1=-1;++J1<_0.length;){const n1=t[_0[J1][0]];Gu0.call(n1,_0[J1][1].type)&&n1[_0[J1][1].type].call(Object.assign({sliceSerialize:_0[J1][2].sliceSerialize},t1),_0[J1][1])}if(t1.tokenStack.length>0){const n1=t1.tokenStack[t1.tokenStack.length-1];(n1[1]||Yu0).call(t1,void 0,n1[0])}for(z0.position={start:D3(_0.length>0?_0[0][1].start:{line:1,column:1,offset:0}),end:D3(_0.length>0?_0[_0.length-2][1].end:{line:1,column:1,offset:0})},J1=-1;++J1<t.transforms.length;)z0=t.transforms[J1](z0)||z0;return z0}function l(_0,z0,t1){let _1=z0-1,J1=-1,n1=!1,b1,S1,me,be;for(;++_1<=t1;){const Ae=_0[_1];switch(Ae[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ae[0]==="enter"?J1++:J1--,be=void 0;break}case"lineEndingBlank":{Ae[0]==="enter"&&(b1&&!be&&!J1&&!me&&(me=_1),be=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:be=void 0}if(!J1&&Ae[0]==="enter"&&Ae[1].type==="listItemPrefix"||J1===-1&&Ae[0]==="exit"&&(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered")){if(b1){let Ke=_1;for(S1=void 0;Ke--;){const l2=_0[Ke];if(l2[1].type==="lineEnding"||l2[1].type==="lineEndingBlank"){if(l2[0]==="exit")continue;S1&&(_0[S1][1].type="lineEndingBlank",n1=!0),l2[1].type="lineEnding",S1=Ke}else if(!(l2[1].type==="linePrefix"||l2[1].type==="blockQuotePrefix"||l2[1].type==="blockQuotePrefixWhitespace"||l2[1].type==="blockQuoteMarker"||l2[1].type==="listItemIndent"))break}me&&(!S1||me<S1)&&(b1._spread=!0),b1.end=Object.assign({},S1?_0[S1][1].start:Ae[1].end),_0.splice(S1||_1,0,["exit",b1,Ae[2]]),_1++,t1++}if(Ae[1].type==="listItemPrefix"){const Ke={type:"listItem",_spread:!1,start:Object.assign({},Ae[1].start),end:void 0};b1=Ke,_0.splice(_1,0,["enter",Ke,Ae[2]]),_1++,t1++,me=void 0,be=!0}}}return _0[z0][1]._spread=n1,t1}function i(_0,z0){return t1;function t1(_1){c.call(this,_0(_1),_1),z0&&z0.call(this,_1)}}function o(){this.stack.push({type:"fragment",children:[]})}function c(_0,z0,t1){this.stack[this.stack.length-1].children.push(_0),this.stack.push(_0),this.tokenStack.push([z0,t1||void 0]),_0.position={start:D3(z0.start),end:void 0}}function m(_0){return z0;function z0(t1){_0&&_0.call(this,t1),u.call(this,t1)}}function u(_0,z0){const t1=this.stack.pop(),_1=this.tokenStack.pop();if(_1)_1[0].type!==_0.type&&(z0?z0.call(this,_0,_1[0]):(_1[1]||Yu0).call(this,_0,_1[0]));else throw new Error("Cannot close `"+_0.type+"` ("+Id({start:_0.start,end:_0.end})+"): it’s not open");t1.position.end=D3(_0.end)}function h(){return gb(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function A(_0){if(this.data.expectingFirstListItemValue){const z0=this.stack[this.stack.length-2];z0.start=Number.parseInt(this.sliceSerialize(_0),10),this.data.expectingFirstListItemValue=void 0}}function Z(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.lang=_0}function H(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.meta=_0}function V(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function F(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.value=_0.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.value=_0.replace(/(\r?\n|\r)$/g,"")}function L(_0){const z0=this.resume(),t1=this.stack[this.stack.length-1];t1.label=z0,t1.identifier=on(this.sliceSerialize(_0)).toLowerCase()}function _(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.title=_0}function w(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.url=_0}function b(_0){const z0=this.stack[this.stack.length-1];if(!z0.depth){const t1=this.sliceSerialize(_0).length;z0.depth=t1}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function O(_0){const z0=this.stack[this.stack.length-1];z0.depth=this.sliceSerialize(_0).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function z(_0){const t1=this.stack[this.stack.length-1].children;let _1=t1[t1.length-1];(!_1||_1.type!=="text")&&(_1=G0(),_1.position={start:D3(_0.start),end:void 0},t1.push(_1)),this.stack.push(_1)}function x(_0){const z0=this.stack.pop();z0.value+=this.sliceSerialize(_0),z0.position.end=D3(_0.end)}function J(_0){const z0=this.stack[this.stack.length-1];if(this.data.atHardBreak){const t1=z0.children[z0.children.length-1];t1.position.end=D3(_0.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z0.type)&&(z.call(this,_0),x.call(this,_0))}function t0(){this.data.atHardBreak=!0}function o0(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.value=_0}function X(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.value=_0}function G(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.value=_0}function g0(){const _0=this.stack[this.stack.length-1];if(this.data.inReference){const z0=this.data.referenceType||"shortcut";_0.type+="Reference",_0.referenceType=z0,delete _0.url,delete _0.title}else delete _0.identifier,delete _0.label;this.data.referenceType=void 0}function w0(){const _0=this.stack[this.stack.length-1];if(this.data.inReference){const z0=this.data.referenceType||"shortcut";_0.type+="Reference",_0.referenceType=z0,delete _0.url,delete _0.title}else delete _0.identifier,delete _0.label;this.data.referenceType=void 0}function i0(_0){const z0=this.sliceSerialize(_0),t1=this.stack[this.stack.length-2];t1.label=GX0(z0),t1.identifier=on(z0).toLowerCase()}function u0(){const _0=this.stack[this.stack.length-1],z0=this.resume(),t1=this.stack[this.stack.length-1];if(this.data.inReference=!0,t1.type==="link"){const _1=_0.children;t1.children=_1}else t1.alt=z0}function K(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.url=_0}function Y(){const _0=this.resume(),z0=this.stack[this.stack.length-1];z0.title=_0}function a0(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function M0(_0){const z0=this.resume(),t1=this.stack[this.stack.length-1];t1.label=z0,t1.identifier=on(this.sliceSerialize(_0)).toLowerCase(),this.data.referenceType="full"}function L0(_0){this.data.characterReferenceType=_0.type}function p0(_0){const z0=this.sliceSerialize(_0),t1=this.data.characterReferenceType;let _1;t1?(_1=wu0(z0,t1==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_1=Zb(z0);const J1=this.stack[this.stack.length-1];J1.value+=_1}function W0(_0){const z0=this.stack.pop();z0.position.end=D3(_0.end)}function r0(_0){x.call(this,_0);const z0=this.stack[this.stack.length-1];z0.url=this.sliceSerialize(_0)}function d0(_0){x.call(this,_0);const z0=this.stack[this.stack.length-1];z0.url="mailto:"+this.sliceSerialize(_0)}function A0(){return{type:"blockquote",children:[]}}function y0(){return{type:"code",lang:null,meta:null,value:""}}function C0(){return{type:"inlineCode",value:""}}function q(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function e0(){return{type:"emphasis",children:[]}}function l0(){return{type:"heading",depth:0,children:[]}}function E0(){return{type:"break"}}function I0(){return{type:"html",value:""}}function J0(){return{type:"image",title:null,url:"",alt:null}}function f1(){return{type:"link",title:null,url:"",children:[]}}function Z1(_0){return{type:"list",ordered:_0.type==="listOrdered",start:null,spread:_0._spread,children:[]}}function Y1(_0){return{type:"listItem",spread:_0._spread,checked:null,children:[]}}function l1(){return{type:"paragraph",children:[]}}function X0(){return{type:"strong",children:[]}}function G0(){return{type:"text",value:""}}function i1(){return{type:"thematicBreak"}}}function D3(a){return{line:a.line,column:a.column,offset:a.offset}}function Ku0(a,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ku0(a,r):XX0(a,r)}}function XX0(a,t){let n;for(n in t)if(Gu0.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&a[n].push(...r);break}case"transforms":{const r=t[n];r&&a[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(a[n],r);break}}}function Yu0(a,t){throw a?new Error("Cannot close `"+a.type+"` ("+Id({start:a.start,end:a.end})+"): a different token (`"+t.type+"`, "+Id({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Id({start:t.start,end:t.end})+") is still open")}function JX0(a){const t=this;t.parser=n;function n(r){return YX0(r,{...t.data("settings"),...a,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function eJ0(a,t){const n={type:"element",tagName:"blockquote",properties:{},children:a.wrap(a.all(t),!0)};return a.patch(t,n),a.applyData(t,n)}function aJ0(a,t){const n={type:"element",tagName:"br",properties:{},children:[]};return a.patch(t,n),[a.applyData(t,n),{type:"text",value:`
|