import{j as e,O as t,a as n,X as r,C as i,d as o,H as s,Q as a,K as l,r as c,c as u,v as h,W as d,Y as p,f}from"./ui-0c1fdf09.js";import{e as m,g as E,r as T,f as g,L as A}from"./vendor-d03f97b3.js";import{a as _,b as S,c as N,i as I}from"./contentful-a43c2678.js";import{H as C,u as y,P as k}from"./index-650af140.js";import b from"./AnimatedSection-8f01cd43.js";import{f as D}from"./format-6bc33007.js";import"./contentful-9d731e8d.js";import"./isPlainObject-bf45ffc7.js";function O(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(i,r).trim();!e&&o||t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function L(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const R=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,x=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,v={};function P(e,t){return((t||v).jsx?x:R).test(e)}const M=/[ \t\n\f\r]/g;function w(e){return""===e.replace(M,"")}let B=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function F(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new B(n,r,t)}function H(e){return e.toLowerCase()}B.prototype.normal={},B.prototype.property={},B.prototype.space=void 0;let U=class{constructor(e,t){this.attribute=t,this.property=e}};U.prototype.attribute="",U.prototype.booleanish=!1,U.prototype.boolean=!1,U.prototype.commaOrSpaceSeparated=!1,U.prototype.commaSeparated=!1,U.prototype.defined=!1,U.prototype.mustUseProperty=!1,U.prototype.number=!1,U.prototype.overloadedBoolean=!1,U.prototype.property="",U.prototype.spaceSeparated=!1,U.prototype.space=void 0;let G=0;const j=Q(),Y=Q(),K=Q(),z=Q(),q=Q(),W=Q(),V=Q();function Q(){return 2**++G}const X=Object.freeze(Object.defineProperty({__proto__:null,boolean:j,booleanish:Y,commaOrSpaceSeparated:V,commaSeparated:W,number:z,overloadedBoolean:K,spaceSeparated:q},Symbol.toStringTag,{value:"Module"})),$=Object.keys(X);let J=class extends U{constructor(e,t,n,r){let i=-1;if(super(e,t),Z(this,"space",r),"number"==typeof n)for(;++i<$.length;){const e=$[i];Z(this,$[i],(n&X[e])===X[e])}}};function Z(e,t,n){n&&(e[t]=n)}function ee(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new J(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[H(r)]=r,n[H(o.attribute)]=r}return new B(t,n,e.space)}J.prototype.defined=!0;const te=ee({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:q,ariaCurrent:null,ariaDescribedBy:q,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:q,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:q,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:q,ariaLevel:z,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:q,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:q,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:Y,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function ne(e,t){return t in e?e[t]:t}function re(e,t){return ne(e,t.toLowerCase())}const ie=ee({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:W,acceptCharset:q,accessKey:q,action:null,allow:null,allowFullScreen:j,allowPaymentRequest:j,allowUserMedia:j,alt:null,as:null,async:j,autoCapitalize:null,autoComplete:q,autoFocus:j,autoPlay:j,blocking:q,capture:null,charSet:null,checked:j,cite:null,className:q,cols:z,colSpan:null,content:null,contentEditable:Y,controls:j,controlsList:q,coords:z|W,crossOrigin:null,data:null,dateTime:null,decoding:null,default:j,defer:j,dir:null,dirName:null,disabled:j,download:K,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:j,formTarget:null,headers:q,height:z,hidden:j,high:z,href:null,hrefLang:null,htmlFor:q,httpEquiv:q,id:null,imageSizes:null,imageSrcSet:null,inert:j,inputMode:null,integrity:null,is:null,isMap:j,itemId:null,itemProp:q,itemRef:q,itemScope:j,itemType:q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:j,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:j,muted:j,name:null,nonce:null,noModule:j,noValidate:j,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:j,optimum:z,pattern:null,ping:q,placeholder:null,playsInline:j,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:j,referrerPolicy:null,rel:q,required:j,reversed:j,rows:z,rowSpan:z,sandbox:q,scope:null,scoped:j,seamless:j,selected:j,shadowRootClonable:j,shadowRootDelegatesFocus:j,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:j,useMap:null,value:Y,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:q,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:j,declare:j,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:j,noHref:j,noShade:j,noWrap:j,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:j,disableRemotePlayback:j,prefix:null,property:null,results:z,security:null,unselectable:null},space:"html",transform:re}),oe=ee({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:V,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:q,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:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:j,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,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:W,g2:W,glyphName:W,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:V,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,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:z,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:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:V,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:V,rev:V,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:V,requiredFeatures:V,requiredFonts:V,requiredFormats:V,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:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:V,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:V,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:V,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ne}),se=ee({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),ae=ee({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:re}),le=ee({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ce={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"},ue=/[A-Z]/g,he=/-[a-z]/g,de=/^data[-\w.:]+$/i;function pe(e,t){const n=H(t);let r=t,i=U;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&de.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(he,me);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!he.test(e)){let n=e.replace(ue,fe);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=J}return new i(r,t)}function fe(e){return"-"+e.toLowerCase()}function me(e){return e.charAt(1).toUpperCase()}const Ee=F([te,ie,se,ae,le],"html"),Te=F([te,oe,se,ae,le],"svg");function ge(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ae(e){return e.join(" ").trim()}var _e={},Se=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ne=/\n/g,Ie=/^\s*/,Ce=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ye=/^:\s*/,ke=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,be=/^[;\s]*/,De=/^\s+|\s+$/g,Oe="";function Le(e){return e?e.replace(De,Oe):Oe}var Re=m&&m.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,xe.default)(e),i="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,o=e.value;i?t(r,o,e):o&&((n=n||{})[r]=o)}})),n};var xe=Re((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(Ne);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new s(e),c(),t}}function s(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function a(i){var o=new Error(t.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function l(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function c(){l(Ie)}function u(e){var t;for(e=e||[];t=h();)!1!==t&&e.push(t);return e}function h(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;Oe!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,Oe===e.charAt(n-1))return a("End of comment missing");var s=e.slice(2,n-2);return r+=2,i(s),e=e.slice(n),r+=2,t({type:"comment",comment:s})}}function d(){var e=o(),t=l(Ce);if(t){if(h(),!l(ye))return a("property missing ':'");var n=l(ke),r=e({type:"declaration",property:Le(t[0].replace(Se,Oe)),value:n?Le(n[0].replace(Se,Oe)):Oe});return l(be),r}}return s.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=d();)!1!==e&&(t.push(e),u(t));return t}()}));var ve={};Object.defineProperty(ve,"__esModule",{value:!0}),ve.camelCase=void 0;var Pe=/^--[a-zA-Z0-9_-]+$/,Me=/-([a-z])/g,we=/^[^-]+$/,Be=/^-(webkit|moz|ms|o|khtml)-/,Fe=/^-(ms)-/,He=function(e,t){return t.toUpperCase()},Ue=function(e,t){return"".concat(t,"-")};ve.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||we.test(e)||Pe.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Fe,Ue):e.replace(Be,Ue)).replace(Me,He))};var Ge=(m&&m.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(_e),je=ve;function Ye(e,t){var n={};return e&&"string"==typeof e?((0,Ge.default)(e,(function(e,r){e&&r&&(n[(0,je.camelCase)(e,t)]=r)})),n):n}Ye.default=Ye;const Ke=E(Ye),ze=We("end"),qe=We("start");function We(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Ve(e){return e&&"object"==typeof e?"position"in e||"type"in e?Xe(e.position):"start"in e||"end"in e?Xe(e):"line"in e||"column"in e?Qe(e):"":""}function Qe(e){return $e(e&&e.line)+":"+$e(e&&e.column)}function Xe(e){return Qe(e&&e.start)+"-"+Qe(e&&e.end)}function $e(e){return e&&"number"==typeof e?e:1}class Je extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const s=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=s?s.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=s?s.line:void 0,this.name=Ve(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&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Je.prototype.file="",Je.prototype.name="",Je.prototype.reason="",Je.prototype.message="",Je.prototype.stack="",Je.prototype.column=void 0,Je.prototype.line=void 0,Je.prototype.ancestors=void 0,Je.prototype.cause=void 0,Je.prototype.fatal=void 0,Je.prototype.place=void 0,Je.prototype.ruleId=void 0,Je.prototype.source=void 0;const Ze={}.hasOwnProperty,et=new Map,tt=/[A-Z]/g,nt=new Set(["table","tbody","thead","tfoot","tr"]),rt=new Set(["td","th"]),it="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ot(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,i,o){const s=Array.isArray(i.children),a=qe(n);return t(r,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,i,o){const s=Array.isArray(i.children)?n:t;return o?s(r,i,o):s(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Te:Ee,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=st(i,e,void 0);return o&&"string"!=typeof o?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function st(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=Te,e.schema=i);e.ancestors.push(t);const o=ht(e,t.tagName,!1),s=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&Ze.call(t.properties,i)){const o=ut(e,i,t.properties[i]);if(o){const[i,s]=o;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof s&&rt.has(t.tagName)?r=s:n[i]=s}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let a=ct(e,t);nt.has(t.tagName)&&(a=a.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&w(t.value):w(t));var t})));return at(e,s,o,t),lt(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}dt(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=Te,e.schema=i);e.ancestors.push(t);const o=null===t.name?e.Fragment:ht(e,t.name,!0),s=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const i=t.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else dt(e,t.position);else{const i=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,o=e.evaluater.evaluateExpression(t.expression)}else dt(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),a=ct(e,t);return at(e,s,o,t),lt(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);dt(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return lt(r,ct(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function at(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function lt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ct(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:et;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=i.get(e)||0;s=e+"-"+t,i.set(e,t+1)}}const a=st(e,o,s);void 0!==a&&n.push(a)}return n}function ut(e,t,n){const r=pe(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?L(n):Ae(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Ke(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new Je("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=it+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)Ze.call(e,n)&&(t[pt(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ce[r.property]||r.property:r.attribute,n]}}function ht(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++i<e.length;){const t=P(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}r=n}else r=P(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return Ze.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);dt(e)}function dt(e,t){const n=new Je("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=it+"#cannot-handle-mdx-estrees-without-createevaluater",n}function pt(e){let t=e.replace(tt,ft);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function ft(e){return"-"+e.toLowerCase()}const mt={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"]},Et={};function Tt(e,t){const n=t||Et;return gt(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function gt(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return At(e.children,t,n)}return Array.isArray(e)?At(e,t,n):""}function At(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=gt(e[i],t,n);return r.join("")}const _t=document.createElement("i");function St(e){const t="&"+e+";";_t.innerHTML=t;const n=_t.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function Nt(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function It(e,t){return e.length>0?(Nt(e,e.length,0,t),e):t}const Ct={}.hasOwnProperty;function yt(e){const t={};let n=-1;for(;++n<e.length;)kt(t,e[n]);return t}function kt(e,t){let n;for(n in t){const r=(Ct.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Ct.call(r,o)||(r[o]=[]);const e=i[o];bt(r[o],Array.isArray(e)?e:e?[e]:[])}}}function bt(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Nt(e,0,0,r)}function Dt(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Ot(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lt=jt(/[A-Za-z]/),Rt=jt(/[\dA-Za-z]/),xt=jt(/[#-'*+\--9=?A-Z^-~]/);function vt(e){return null!==e&&(e<32||127===e)}const Pt=jt(/\d/),Mt=jt(/[\dA-Fa-f]/),wt=jt(/[!-/:-@[-`{-~]/);function Bt(e){return null!==e&&e<-2}function Ft(e){return null!==e&&(e<0||32===e)}function Ht(e){return-2===e||-1===e||32===e}const Ut=jt(/\p{P}|\p{S}/u),Gt=jt(/\s/);function jt(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Yt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(37===o&&Rt(e.charCodeAt(n+1))&&Rt(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Kt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(Ht(r))return e.enter(n),s(r);return t(r)};function s(r){return Ht(r)&&o++<i?(e.consume(r),s):(e.exit(n),t(r))}}const zt={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Kt(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Bt(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const qt={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&g();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}T(s);let a=n;for(;a<t.events.length;)t.events[a][1].end={...i},a++;return Nt(t.events,o+1,0,t.events.slice(n)),t.events.length=a,c(e)}return a(e)}function c(i){if(s===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wt,u,h)(i)}function u(e){return r&&g(),T(s),d(e)}function h(e){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,f(e)}function d(n){return t.containerState={},e.attempt(Wt,p,f)(n)}function p(e){return s++,n.push([t.currentConstruct,t.containerState]),d(e)}function f(n){return null===n?(r&&g(),T(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:i}),m(n))}function m(n){return null===n?(E(e.exit("chunkFlow"),!0),T(0),void e.consume(n)):Bt(n)?(e.consume(n),E(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),m)}function E(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,a,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){a=t.events[l][1].end;break}i=!0}for(T(s),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;Nt(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function T(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function g(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Wt={tokenize:function(e,t,n){return Kt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Vt(e){return null===e||Ft(e)||Gt(e)?1:Ut(e)?2:void 0}function Qt(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Xt={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,a,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h={...e[n][1].end},d={...e[u][1].start};$t(h,-a),$t(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:d},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=It(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=It(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=It(l,Qt(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=It(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=It(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Nt(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Vt(r);let o;return function(t){return o=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===o)return e.consume(a),s;const l=e.exit("attentionSequence"),c=Vt(a),u=!c||2===c&&i||n.includes(a),h=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!h)),l._close=Boolean(42===o?h:h&&(c||!u)),t(a)}}};function $t(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Jt={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Lt(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(e){return 43===e||45===e||46===e||Rt(e)?(r=1,s(e)):l(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||Rt(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||vt(r)?n(r):(e.consume(r),a)}function l(t){return 64===t?(e.consume(t),c):xt(t)?(e.consume(t),l):n(t)}function c(e){return Rt(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):h(n)}function h(t){if((45===t||Rt(t))&&r++<63){const n=45===t?h:u;return e.consume(t),n}return n(t)}}};const Zt={partial:!0,tokenize:function(e,t,n){return function(t){return Ht(t)?Kt(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Bt(e)?t(e):n(e)}}};const en={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Ht(t))return Kt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(en,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Ht(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const tn={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return wt(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const nn={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=Rt,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Mt,c):(e.enter("characterReferenceValue"),i=7,o=Pt,c(t))}function c(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==Rt||St(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++<i?(e.consume(a),c):n(a)}}};const rn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},on={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Ht(t)?Kt(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=a?(e.exit("codeFencedFenceSequence"),Ht(t)?Kt(e,h,"whitespace")(t):h(t)):n(t)}function h(r){return null===r||Bt(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),Ht(t)?Kt(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Bt(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(rn,p,g)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Bt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Ht(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Kt(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function h(t){return null===t||Bt(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||Bt(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),d)}function p(t){return e.attempt(i,g,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&Ht(t)?Kt(e,E,"linePrefix",s+1)(t):E(t)}function E(t){return null===t||Bt(t)?e.check(rn,p,g)(t):(e.enter("codeFlowValue"),T(t))}function T(t){return null===t||Bt(t)?(e.exit("codeFlowValue"),E(t)):(e.consume(t),T)}function g(n){return e.exit("codeFenced"),t(n)}}};const sn={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Kt(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):Bt(t)?e.attempt(an,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||Bt(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},an={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Bt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Kt(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Bt(e)?i(e):n(e)}}};const ln={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),o++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):Bt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||Bt(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}}};class cn{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&un(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),un(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),un(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);un(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);un(this.left,t.reverse())}}}function un(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function hn(e){const t={};let n,r,i,o,s,a,l,c=-1;const u=new cn(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(a=n[1]._tokenizer.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,dn(u,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--;)if(o=u.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...u.get(r)[1].start},s=u.slice(r,c),s.unshift(n),u.splice(r,c-r+1,s))}}return Nt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function dn(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],c={};let u,h,d=-1,p=n,f=0,m=0;const E=[m];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),h&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=n;++d<a.length;)"exit"===a[d][0]&&"enter"===a[d-1][0]&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(m=d+1,E.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):E.pop(),d=E.length;d--;){const t=a.slice(E[d],E[d+1]),n=o.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),d=-1;++d<l.length;)c[f+l[d][0]]=f+l[d][1],f+=l[d][1]-l[d][0]-1;return c}const pn={resolve:function(e){return hn(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):Bt(t)?e.check(fn,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},fn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Kt(e,i,"linePrefix")};function i(i){if(null===i||Bt(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function mn(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||32===t||41===t||vt(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(t)};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),h(t)):null===t||60===t||Bt(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function f(i){return u||null!==i&&41!==i&&!Ft(i)?u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||vt(i)?n(i):(e.consume(i),92===i?m:f):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function En(e,t,n,r,i,o){const s=this;let a,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(h){return l>999||null===h||91===h||93===h&&!a||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):Bt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||Bt(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!Ht(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Tn(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):Bt(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Kt(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||Bt(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function gn(e,t){let n;return function r(i){if(Bt(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(Ht(i))return Kt(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}const An={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return En.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=Ot(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return Ft(t)?gn(e,a)(t):a(t)}function a(t){return mn(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(_n,c,c)(t)}function c(t){return Ht(t)?Kt(e,u,"whitespace")(t):u(t)}function u(o){return null===o||Bt(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},_n={partial:!0,tokenize:function(e,t,n){return function(t){return Ft(t)?gn(e,r)(t):n(t)};function r(t){return Tn(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Ht(t)?Kt(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Bt(e)?t(e):n(e)}}};const Sn={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Bt(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Nn={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Nt(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||Ft(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||Bt(n)?(e.exit("atxHeading"),t(n)):Ht(n)?Kt(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||Ft(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}}};const In=["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"],Cn=["pre","script","style","textarea"],yn={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),o=!0,p):63===a?(e.consume(a),i=3,r.interrupt?t:P):Lt(a)?(e.consume(a),s=String.fromCharCode(a),f):n(a)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a=0,d):Lt(o)?(e.consume(o),i=4,r.interrupt?t:P):n(o)}function h(i){return 45===i?(e.consume(i),r.interrupt?t:P):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:k:d):n(i)}function p(t){return Lt(t)?(e.consume(t),s=String.fromCharCode(t),f):n(t)}function f(a){if(null===a||47===a||62===a||Ft(a)){const l=47===a,c=s.toLowerCase();return l||o||!Cn.includes(c)?In.includes(s.toLowerCase())?(i=6,l?(e.consume(a),m):r.interrupt?t(a):k(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?E(a):T(a)):(i=1,r.interrupt?t(a):k(a))}return 45===a||Rt(a)?(e.consume(a),s+=String.fromCharCode(a),f):n(a)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:k):n(i)}function E(t){return Ht(t)?(e.consume(t),E):C(t)}function T(t){return 47===t?(e.consume(t),C):58===t||95===t||Lt(t)?(e.consume(t),g):Ht(t)?(e.consume(t),T):C(t)}function g(t){return 45===t||46===t||58===t||95===t||Rt(t)?(e.consume(t),g):A(t)}function A(t){return 61===t?(e.consume(t),_):Ht(t)?(e.consume(t),A):T(t)}function _(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,S):Ht(t)?(e.consume(t),_):N(t)}function S(t){return t===l?(e.consume(t),l=null,I):null===t||Bt(t)?n(t):(e.consume(t),S)}function N(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Ft(t)?A(t):(e.consume(t),N)}function I(e){return 47===e||62===e||Ht(e)?T(e):n(e)}function C(t){return 62===t?(e.consume(t),y):n(t)}function y(t){return null===t||Bt(t)?k(t):Ht(t)?(e.consume(t),y):n(t)}function k(t){return 45===t&&2===i?(e.consume(t),L):60===t&&1===i?(e.consume(t),R):62===t&&4===i?(e.consume(t),M):63===t&&3===i?(e.consume(t),P):93===t&&5===i?(e.consume(t),v):!Bt(t)||6!==i&&7!==i?null===t||Bt(t)?(e.exit("htmlFlowData"),b(t)):(e.consume(t),k):(e.exit("htmlFlowData"),e.check(kn,w,b)(t))}function b(t){return e.check(bn,D,w)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||Bt(t)?b(t):(e.enter("htmlFlowData"),k(t))}function L(t){return 45===t?(e.consume(t),P):k(t)}function R(t){return 47===t?(e.consume(t),s="",x):k(t)}function x(t){if(62===t){const n=s.toLowerCase();return Cn.includes(n)?(e.consume(t),M):k(t)}return Lt(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),x):k(t)}function v(t){return 93===t?(e.consume(t),P):k(t)}function P(t){return 62===t?(e.consume(t),M):45===t&&2===i?(e.consume(t),P):k(t)}function M(t){return null===t||Bt(t)?(e.exit("htmlFlowData"),w(t)):(e.consume(t),M)}function w(n){return e.exit("htmlFlow"),t(n)}}},kn={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Zt,t,n)}}},bn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Bt(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Dn={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),_):63===t?(e.consume(t),g):Lt(t)?(e.consume(t),I):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,p):Lt(t)?(e.consume(t),T):n(t)}function c(t){return 45===t?(e.consume(t),d):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):Bt(t)?(s=u,x(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),d):u(t)}function d(e){return 62===e?R(e):45===e?h(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):Bt(t)?(s=f,x(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),E):f(t)}function E(t){return 62===t?R(t):93===t?(e.consume(t),E):f(t)}function T(t){return null===t||62===t?R(t):Bt(t)?(s=T,x(t)):(e.consume(t),T)}function g(t){return null===t?n(t):63===t?(e.consume(t),A):Bt(t)?(s=g,x(t)):(e.consume(t),g)}function A(e){return 62===e?R(e):g(e)}function _(t){return Lt(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||Rt(t)?(e.consume(t),S):N(t)}function N(t){return Bt(t)?(s=N,x(t)):Ht(t)?(e.consume(t),N):R(t)}function I(t){return 45===t||Rt(t)?(e.consume(t),I):47===t||62===t||Ft(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),R):58===t||95===t||Lt(t)?(e.consume(t),y):Bt(t)?(s=C,x(t)):Ht(t)?(e.consume(t),C):R(t)}function y(t){return 45===t||46===t||58===t||95===t||Rt(t)?(e.consume(t),y):k(t)}function k(t){return 61===t?(e.consume(t),b):Bt(t)?(s=k,x(t)):Ht(t)?(e.consume(t),k):C(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,D):Bt(t)?(s=b,x(t)):Ht(t)?(e.consume(t),b):(e.consume(t),O)}function D(t){return t===i?(e.consume(t),i=void 0,L):null===t?n(t):Bt(t)?(s=D,x(t)):(e.consume(t),D)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Ft(t)?C(t):(e.consume(t),O)}function L(e){return 47===e||62===e||Ft(e)?C(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function x(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),v}function v(t){return Ht(t)?Kt(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),s(t)}}};const On={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Nt(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=It(o,e.slice(r+1,r+a+3)),o=It(o,[["enter",u,t]]),o=It(o,Qt(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=It(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=It(o,e.slice(i+1)),o=It(o,[["exit",l,t]]),Nt(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1]._balanced){i=r.events[s][1];break}return function(t){if(!i)return n(t);if(i._inactive)return u(t);return o=r.parser.defined.includes(Ot(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(Ln,c,o?c:u)(t):91===t?e.attempt(Rn,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(xn,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}}},Ln={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Ft(t)?gn(e,i)(t):i(t)}function i(t){return 41===t?c(t):mn(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Ft(t)?gn(e,a)(t):c(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?Tn(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Ft(t)?gn(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Rn={tokenize:function(e,t,n){const r=this;return function(t){return En.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(Ot(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},xn={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const vn={name:"labelStartImage",resolveAll:On.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Pn={name:"labelStartLink",resolveAll:On.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Mn={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Kt(e,t,"linePrefix")}}};const wn={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||Bt(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),Ht(t)?Kt(e,o,"whitespace")(t):o(t))}}};const Bn={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Zt,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Kt(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!Ht(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Hn,t,i)(n)}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Kt(e,e.attempt(Bn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Pt(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(wn,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return Pt(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Zt,r.interrupt?n:c,e.attempt(Fn,h,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return Ht(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Fn={partial:!0,tokenize:function(e,t,n){const r=this;return Kt(e,(function(e){const i=r.events[r.events.length-1];return!Ht(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Hn={partial:!0,tokenize:function(e,t,n){const r=this;return Kt(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const Un={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s;return e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Ht(t)?Kt(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||Bt(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const Gn={tokenize:function(e){const t=this,n=e.attempt(Zt,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,Kt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(pn,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const jn={resolveAll:qn()},Yn=zn("string"),Kn=zn("text");function zn(e){return{resolveAll:qn("text"===e?Wn:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function qn(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function Wn(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,l=0;for(;s--;){const e=i[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===e)o=!0,l++;else if(-1!==e){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const Vn={42:Bn,43:Bn,45:Bn,48:Bn,49:Bn,50:Bn,51:Bn,52:Bn,53:Bn,54:Bn,55:Bn,56:Bn,57:Bn,62:en},Qn={91:An},Xn={[-2]:sn,[-1]:sn,32:sn},$n={35:Nn,42:wn,45:[Un,wn],60:yn,61:Un,95:wn,96:on,126:on},Jn={38:nn,92:tn},Zn={[-5]:Mn,[-4]:Mn,[-3]:Mn,33:vn,38:nn,42:Xt,60:[Jt,Dn],91:Pn,92:[Sn,tn],93:On,95:Xt,96:ln},er={null:[Xt,jn]},tr=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Qn,disable:{null:[]},document:Vn,flow:$n,flowInitial:Xn,insideSpan:er,string:Jn,text:Zn},Symbol.toStringTag,{value:"Module"}));function nr(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:E((function(e,t){T(e,t.from)})),check:E(m),consume:function(e){Bt(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=d(),c.events.push(["enter",n,c]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=d(),c.events.push(["exit",t,c]),t},interrupt:E(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if("string"==typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(h(e),t)},sliceStream:h,write:function(e){if(s=It(s,e),p(),null!==s[s.length-1])return[];return T(t,0),c.events=Qt(o,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const e=s[0];"string"==typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function d(){const{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function p(){let e;for(;r._index<s.length;){const t=s[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}function f(e){u=u(e)}function m(e,t){t.restore()}function E(e,t){return function(n,i,o){let s,u,h,p;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return s=e,u=0,0===e.length?o:m(e[u])}function m(e){return function(n){p=function(){const e=d(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(a);return{from:i,restore:s};function s(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,a=o,g()}}(),h=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return T();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,E,T)(n)}}function E(t){return e(h,p),i}function T(e){return p.restore(),++u<s.length?m(s[u]):o}}}function T(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Nt(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const rr=/[\0\t\n\r]/g;const ir=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function or(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Dt(n.slice(t?2:1),t?16:10)}return St(n)||e}const sr={}.hasOwnProperty;function ar(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:y,autolinkEmail:y,atxHeading:o($),blockQuote:o(q),characterEscape:y,characterReference:y,codeFenced:o(W),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(W,s),codeText:o(V,s),codeTextData:y,data:y,codeFlowValue:y,definition:o(Q),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(X),hardBreakEscape:o(J),hardBreakTrailing:o(J),htmlFlow:o(Z,s),htmlFlowData:y,htmlText:o(Z,s),htmlTextData:y,image:o(ee),label:s,link:o(te),listItem:o(re),listItemValue:d,listOrdered:o(ne,h),listUnordered:o(ne),paragraph:o(ie),reference:H,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o($),strong:o(oe),thematicBreak:o(ae)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:z,autolinkProtocol:K,blockQuote:l(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:G,characterReferenceMarkerNumeric:G,characterReferenceValue:j,characterReference:Y,codeFenced:l(E),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:f,codeFlowValue:k,codeIndented:l(T),codeText:l(R),codeTextData:k,data:k,definition:l(),definitionDestinationString:_,definitionLabelString:g,definitionTitleString:A,emphasis:l(),hardBreakEscape:l(D),hardBreakTrailing:l(D),htmlFlow:l(O),htmlFlowData:k,htmlText:l(L),htmlTextData:k,image:l(v),label:M,labelText:P,lineEnding:b,link:l(x),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:w,resourceTitleString:B,resource:F,setextHeading:l(C),setextHeadingLineSequence:I,setextHeadingText:N,strong:l(),thematicBreak:l()}};cr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:n},l=[];let h=-1;for(;++h<e.length;)if("listOrdered"===e[h][1].type||"listUnordered"===e[h][1].type)if("enter"===e[h][0])l.push(h);else{h=i(e,l.pop(),h)}for(h=-1;++h<e.length;){const n=t[e[h][0]];sr.call(n,e[h][1].type)&&n[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},o),e[h][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||hr).call(o,void 0,e[0])}for(r.position={start:lr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:lr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<t.transforms.length;)r=t.transforms[h](r)||r;return r}function i(e,t,n){let r,i,o,s,a=t-1,l=-1,c=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(i=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,s=!0}}}return e[t][1]._spread=c,n}function o(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:lr(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Ve({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||hr).call(this,e,r[0])}n.position.end=lr(e.end)}function u(){return Tt(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function g(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ot(this.sliceSerialize(e)).toLowerCase()}function A(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function I(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function y(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=se(),n.position={start:lr(e.start),end:void 0},t.push(n)),this.stack.push(n)}function k(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=lr(e.end)}function b(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=lr(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(y.call(this,e),k.call(this,e))}function D(){this.data.atHardBreak=!0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function L(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function x(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function v(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(ir,or)}(t),n.identifier=Ot(t).toLowerCase()}function M(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function w(){const e=this.resume();this.stack[this.stack.length-1].url=e}function B(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function H(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ot(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function G(e){this.data.characterReferenceType=e.type}function j(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Dt(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=St(t)}this.stack[this.stack.length-1].value+=r}function Y(e){this.stack.pop().position.end=lr(e.end)}function K(e){k.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function z(e){k.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function q(){return{type:"blockquote",children:[]}}function W(){return{type:"code",lang:null,meta:null,value:""}}function V(){return{type:"inlineCode",value:""}}function Q(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function $(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function Z(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(n)(function(e){for(;!hn(e););return e}(function(e){const t={constructs:yt([tr,...(e||{}).extensions||[]]),content:n(zt),defined:[],document:n(qt),flow:n(Gn),lazy:{},string:n(Yn),text:n(Kn)};return t;function n(e){return function(n){return nr(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,s){const a=[];let l,c,u,h,d;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(rr.lastIndex=u,l=rr.exec(i),h=l&&void 0!==l.index?l.index:i.length,d=i.charCodeAt(h),!l){n=i.slice(u);break}if(10===d&&u===h&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),u<h&&(a.push(i.slice(u,h)),t+=h-u),d){case 0:a.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),a.push(-2);t++<c;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function lr(e){return{line:e.line,column:e.column,offset:e.offset}}function cr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?cr(e,r):ur(e,r)}}function ur(e,t){let n;for(n in t)if(sr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function hr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ve({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ve({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ve({start:t.start,end:t.end})+") is still open")}function dr(e){const t=this;t.parser=function(n){return ar(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function pr(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function fr(e){const t=e.spread;return null==t?e.children.length>1:t}function mr(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Er(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Er(t.slice(i),i>0,!1)),o.join("")}function Er(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const Tr={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Yt(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pr(e,t);const i={src:Yt(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Yt(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pr(e,t);const i={href:Yt(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Yt(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=fr(n[r])}return t}(n):fr(t),o={},s=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=qe(t.children[1]),s=ze(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const l=[];for(;++a<s;){const n=t.children[a],r={},s=o?o[a]:void 0;s&&(r.align=s);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:mr(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:gr,yaml:gr,definition:gr,footnoteDefinition:gr};function gr(){}const Ar="object"==typeof self?self:globalThis,_r=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case 0:case-1:return n(s,i);case 1:{const e=n([],i);for(const t of s)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{const{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of s)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of s)e.add(r(t));return e}case 7:{const{name:e,message:t}=s;return n(new Ar[e](t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new Ar[o](s),i)};return r})(new Map,e)(0),Sr="",{toString:Nr}={},{keys:Ir}=Object,Cr=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Nr.call(e).slice(8,-1);switch(n){case"Array":return[1,Sr];case"Object":return[2,Sr];case"Date":return[3,Sr];case"RegExp":return[4,Sr];case"Map":return[5,Sr];case"Set":return[6,Sr];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},yr=([e,t])=>0===e&&("function"===t||"symbol"===t),kr=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[s,a]=Cr(r);switch(s){case 0:{let t=r;switch(a){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([s,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}const e=[],t=i([s,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],l=i([s,n],r);for(const t of Ir(r))!e&&yr(Cr(r[t]))||n.push([o(t),o(r[t])]);return l}case 3:return i([s,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([s,{source:e,flags:t}],r)}case 5:{const t=[],n=i([s,t],r);for(const[i,s]of r)(e||!yr(Cr(i))&&!yr(Cr(s)))&&t.push([o(i),o(s)]);return n}case 6:{const t=[],n=i([s,t],r);for(const i of r)!e&&yr(Cr(i))||t.push(o(i));return n}}const{message:l}=r;return i([s,{name:a,message:l}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},br="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?_r(kr(e,t)):structuredClone(e):(e,t)=>_r(kr(e,t));function Dr(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Or(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Lr=function(e){if(null==e)return xr;if("function"==typeof e)return Rr(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Lr(e[n]);return Rr(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return Rr(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"==typeof e)return function(e){return Rr(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Rr(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function xr(){return!0}const vr=[],Pr=!0,Mr=!1;function wr(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const o=Lr(i),s=r?-1:1;!function e(i,a,l){const c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,h,d=vr;if((!t||o(i,a,l[l.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Pr,e];return null==e?vr:[e]}(n(i,l)),d[0]===Mr))return d;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==d[0])for(u=(r?t.children.length:-1)+s,h=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,h)(),c[0]===Mr)return c;u="number"==typeof c[1]?c[1]:u+s}}return d}}(e,void 0,[])()}function Br(e,t,n,r){let i,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,i=n):(o=t,s=n,i=r),wr(e,o,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)}),i)}const Fr={}.hasOwnProperty,Hr={};function Ur(e,t){e.position&&(t.position=function(e){const t=qe(e),n=ze(e);if(t&&n)return{start:t,end:n}}(e))}function Gr(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&i&&Object.assign(n.properties,br(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function jr(e,t){const n=t.data||{},r=!("value"in t)||Fr.call(n,"hProperties")||Fr.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Yr(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Kr(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function zr(e,t){const n=function(e,t){const n=t||Hr,r=new Map,i=new Map,o=new Map,s={...Tr,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=Kr(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=Kr(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:Gr,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:function(e,t){const n=e.type,r=a.handlers[n];if(Fr.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=br(n);return r.children=a.all(e),r}return br(e)}return(a.options.unknownHandler||jr)(a,e,t)},options:n,patch:Ur,wrap:Yr};return Br(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),a}(e,t),r=n.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Dr,r=e.options.footnoteBackLabel||Or,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;const o=e.all(i),s=String(i.identifier).toUpperCase(),c=Yt(s.toLowerCase());let u=0;const h=[],d=e.footnoteCounts.get(s);for(;void 0!==d&&++u<=d;){h.length>0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=o[o.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...h)}else o.push(...h);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,f),a.push(f)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...br(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function qr(e,t){return e&&"run"in e?async function(n,r){const i=zr(n,{file:r,...t});await e.run(i,r)}:function(n,r){return zr(n,{file:r,...e||t})}}function Wr(e){if(e)throw e}var Vr=Object.prototype.hasOwnProperty,Qr=Object.prototype.toString,Xr=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,Jr=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Qr.call(e)},Zr=function(e){if(!e||"[object Object]"!==Qr.call(e))return!1;var t,n=Vr.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Vr.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Vr.call(e,t)},ei=function(e,t){Xr&&"__proto__"===t.name?Xr(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ti=function(e,t){if("__proto__"===t){if(!Vr.call(e,t))return;if($r)return $r(e,t).value}return e[t]};const ni=E((function e(){var t,n,r,i,o,s,a=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[1]||{},l=2),(null==a||"object"!=typeof a&&"function"!=typeof a)&&(a={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ti(a,n),a!==(i=ti(t,n))&&(u&&i&&(Zr(i)||(o=Jr(i)))?(o?(o=!1,s=r&&Jr(r)?r:[]):s=r&&Zr(r)?r:{},ei(a,{name:n,newValue:e(u,s,i)})):void 0!==i&&ei(a,{name:n,newValue:i}));return a}));function ri(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ii(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...s){const a=e[++n];let l=-1;if(o)r(o);else{for(;++l<t.length;)null!==s[l]&&void 0!==s[l]||(s[l]=t[l]);t=s,a?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(i);try{a=e.apply(this,t)}catch(o){if(r&&n)throw o;return i(o)}r||(a&&a.then&&"function"==typeof a.then?a.then(s,i):a instanceof Error?i(a):s(a))}function i(e,...r){n||(n=!0,t(e,...r))}function s(e){i(null,e)}}(a,i)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const oi={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');si(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(si(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){si(e);let t,n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)si(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){si(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,s=-1,a=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(s===l-1||1===a);else if(s!==l-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=l,a=0;continue}}else if(i.length>0){i="",o=0,s=l,a=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),o=l-s-1;s=l,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function si(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ai={cwd:function(){return"/"}};function li(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function ci(e){if("string"==typeof e)e=new URL(e);else if(!li(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const ui=["history","path","basename","stem","extname","dirname"];class hi{constructor(e){let t;t=e?li(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":ai.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<ui.length;){const e=ui[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ui.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?oi.basename(this.path):void 0}set basename(e){pi(e,"basename"),di(e,"basename"),this.path=oi.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?oi.dirname(this.path):void 0}set dirname(e){fi(this.basename,"dirname"),this.path=oi.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?oi.extname(this.path):void 0}set extname(e){if(di(e,"extname"),fi(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=oi.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){li(e)&&(e=ci(e)),pi(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?oi.basename(this.path,this.extname):void 0}set stem(e){pi(e,"stem"),di(e,"stem"),this.path=oi.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Je(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function di(e,t){if(e&&e.includes(oi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+oi.sep+"`")}function pi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fi(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const mi=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Ei={}.hasOwnProperty;class Ti extends mi{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ii()}copy(){const e=new Ti;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(ni(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Si("data",this.frozen),this.namespace[e]=t,this):Ei.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Si("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Ci(e),n=this.parser||this.Parser;return Ai("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Ai("process",this.parser||this.Parser),_i("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=Ci(e),s=n.parse(o);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(s,o,(function(e,t,r){if(e||!t||!r)return a(e);const i=t,o=n.stringify(i,r);var s;"string"==typeof(s=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(s)?r.value=o:r.result=o,a(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),Ai("processSync",this.parser||this.Parser),_i("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,Wr(e),t=r})),Ii("processSync","process",n),t}run(e,t,n){Ni(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const s=Ci(t);r.run(e,s,(function(t,r,s){const a=r||e;t?o(t):i?i(a):n(void 0,a,s)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){Wr(e),n=t,r=!0})),Ii("runSync","run",r),n}stringify(e,t){this.freeze();const n=Ci(t),r=this.compiler||this.Compiler;return _i("stringify",r),Ni(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Si("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):o(e)}return this;function i(e){if("function"==typeof e)a(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=ni(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const s=n[i][1];ri(s)&&ri(r)&&(r=ni(!0,s,r)),n[i]=[e,r,...o]}}}}const gi=(new Ti).freeze();function Ai(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function _i(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Si(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ni(e){if(!ri(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ii(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ci(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new hi(e)}const yi=[],ki={allowDangerousHtml:!0},bi=/^(https?|ircs?|mailto|xmpp)$/i,Di=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Oi(t){const n=function(e){const t=e.rehypePlugins||yi,n=e.remarkPlugins||yi,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ki}:ki,i=gi().use(dr).use(n).use(qr,r).use(t);return i}(t),r=function(e){const t=e.children||"",n=new hi;"string"==typeof t&&(n.value=t);return n}(t);return function(t,n){const r=n.allowedElements,i=n.allowElement,o=n.components,s=n.disallowedElements,a=n.skipHtml,l=n.unwrapDisallowed,c=n.urlTransform||Li;for(const e of Di)Object.hasOwn(n,e.from)&&(e.from,e.to&&e.to,e.id);n.className&&(t={type:"element",tagName:"div",properties:{className:n.className},children:"root"===t.type?t.children:[t]});return Br(t,u),ot(t,{Fragment:e.Fragment,components:o,ignoreInvalidStyle:!0,jsx:e.jsx,jsxs:e.jsxs,passKeys:!0,passNode:!0});function u(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return a?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in mt)if(Object.hasOwn(mt,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=mt[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!s&&s.includes(e.tagName);if(!o&&i&&"number"==typeof t&&(o=!i(e,t,n)),o&&n&&"number"==typeof t)return l&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(n.runSync(n.parse(r),r),t)}function Li(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||bi.test(e.slice(0,t))?e:""}function Ri(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function xi(e,t,n){const r=Lr((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([vi(e[0]),Pi(e[1])])}return t}(t);let o=-1;for(;++o<i.length;)wr(e,"text",s);function s(e,t){let n,s=-1;for(;++s<t.length;){const e=t[s],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[o][0],s=i[o][1];let a=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){const n=h.index,i={index:h.index,input:h.input,stack:[...t,e]};let o=s(...h,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),a=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}c?(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function vi(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Pi(e){return"function"==typeof e?e:function(){return e}}const Mi="phrasing",wi=["autolink","link","image","label"];function Bi(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Fi(e){this.config.enter.autolinkProtocol.call(this,e)}function Hi(e){this.config.exit.autolinkProtocol.call(this,e)}function Ui(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Gi(e){this.config.exit.autolinkEmail.call(this,e)}function ji(e){this.exit(e)}function Yi(e){xi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ki],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),zi]],{ignore:["link","linkReference"]})}function Ki(e,t,n,r,i){let o="";if(!qi(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Ri(e,"(");let o=Ri(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function zi(e,t,n,r){return!(!qi(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function qi(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Gt(n)||Ut(n))&&(!t||47!==n)}function Wi(){this.buffer()}function Vi(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Qi(){this.buffer()}function Xi(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $i(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ot(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ji(e){this.exit(e)}function Zi(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ot(this.sliceSerialize(e)).toLowerCase(),n.label=t}function eo(e){this.exit(e)}function to(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=i.move("]"),o}function no(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){const o=r.createTracker(i);let s=o.move("[^");const a=r.enter("footnoteDefinition"),l=r.enter("label");s+=o.move(r.safe(r.associationId(e),{before:s,after:"]"})),l(),s+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),s+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?io:ro)));return a(),s},footnoteReference:to},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function ro(e,t,n){return 0===t?e:io(e,t,n)}function io(e,t,n){return(n?"":" ")+e}to.peek=function(){return"["};const oo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function so(e){this.enter({type:"delete",children:[]},e)}function ao(e){this.exit(e)}function lo(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function co(e){return e.length}function uo(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}lo.peek=function(){return"~"};const ho={}.hasOwnProperty;function po(e,t){const n=t||{};function r(t,...n){let i=r.invalid;const o=r.handlers;if(t&&ho.call(t,e)){const n=String(t[e]);i=ho.call(o,n)?o[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function fo(e,t,n){return">"+(n?"":" ")+e}function mo(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Eo(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&(o=n.stack,s=n.unsafe[i],mo(o,s.inConstruct,!0)&&!mo(o,s.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,s;return"\\\n"}function To(e,t,n){return(n?"":" ")+e}function go(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ao(e){return"&#x"+e.toString(16).toUpperCase()+";"}function _o(e,t,n){const r=Vt(e),i=Vt(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function So(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=l.charCodeAt(0),u=_o(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Ao(c)+l.slice(1));const h=l.charCodeAt(l.length-1),d=_o(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+Ao(h));const p=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},a+l+p}function No(e){return e.value||""}function Io(e,t,n,r){const i=go(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function Co(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function yo(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function ko(e,t){const n=Tt(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function bo(e,t,n,r){const i=go(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(ko(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),l()),c+=s.move(")"),a(),c}function Do(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(h+"]"),l}function Oo(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Lo(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}So.peek=function(e,t,n){return n.options.emphasis||"*"},No.peek=function(){return"<"},Io.peek=function(){return"!"},Co.peek=function(){return"!"},yo.peek=function(){return"`"},bo.peek=function(e,t,n){return ko(e,n)?"<":"["},Do.peek=function(){return"["};const Ro=Lr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function xo(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=l.charCodeAt(0),u=_o(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=Ao(c)+l.slice(1));const h=l.charCodeAt(l.length-1),d=_o(r.after.charCodeAt(0),h,i);d.inside&&(l=l.slice(0,-1)+Ao(h));const p=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},a+l+p}xo.peek=function(e,t,n){return n.options.strong||"*"};const vo={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),fo);return i(),s},break:Eo,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,To);return e(),t}const a=n.createTracker(r),l=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}(o,i)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const t=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),o&&(u+=a.move(o+"\n")),u+=a.move(l),c(),u},definition:function(e,t,n,r){const i=go(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c},emphasis:So,hardBreak:Eo,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return Br(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Mr})),Boolean((!e.depth||e.depth<3)&&Tt(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=Ao(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),a(),c},html:No,image:Io,imageReference:Co,inlineCode:yo,link:bo,linkReference:Do,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Oo(n);const a=e.ordered?"."===s?")":".":function(e){const t=Oo(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Lo(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||Oo(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){return(e.children.some((function(e){return Ro(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:xo,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Lo(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Po(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Mo(e){this.exit(e),this.data.inTable=void 0}function wo(e){this.enter({type:"tableRow",children:[]},e)}function Bo(e){this.exit(e)}function Fo(e){this.enter({type:"tableCell",children:[]},e)}function Ho(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Uo));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Uo(e,t){return"|"===t?t:e}function Go(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=vo.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return s(),o}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){const i=a([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function s(e,t,n,r){const i=n.enter("tableCell"),s=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:o,after:o});return s(),i(),a}function a(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||co,o=[],s=[],a=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){const s=null==(h=e[u][o])?"":String(h);if(!1!==n.alignDelimiters){const e=i(s);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(s)}s[u]=t,a[u]=r}var h;let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)o[d]=uo(r[d]);else{const e=uo(r);for(;++d<c;)o[d]=e}d=-1;const p=[],f=[];for(;++d<c;){const e=o[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const s=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=t.length+i+r.length,i>l[d]&&(l[d]=i),f[d]=i),p[d]=s}s.splice(1,0,p),a.splice(1,0,f),u=-1;const m=[];for(;++u<s.length;){const e=s[u],t=a[u];d=-1;const r=[];for(;++d<c;){const i=e[d]||"";let s="",a="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=o[d];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):(s=" ".repeat(e/2),a=s):a=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===i||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=s(r[i],0,t,n);return a(),o}}function jo(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Yo(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Ko(e,t,n,r){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let l=vo.listItem(e,t,n,{...r,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+s}))),l}const zo={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),i;return n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},qo={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(Vo,l,a)(t):null===t||Ft(t)||Gt(t)||45!==t&&Ut(t)?l(t):(o=!0,e.consume(t),s)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},Wo={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(Vo,t,o)(s):null===s||Ft(s)||Gt(s)?t(s):(e.consume(s),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},Vo={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),o):93===s?(e.consume(s),i):60===s||null===s||Ft(s)||Gt(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||Ft(e)||Gt(e)?t(e):r(e)}function o(e){return Lt(e)?s(e):n(e)}function s(t){return 59===t?(e.consume(t),r):Lt(t)?(e.consume(t),s):n(t)}},partial:!0},Qo={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Rt(e)?n(e):t(e)}},partial:!0},Xo={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!ts.call(r,r.previous)||os(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(zo,e.attempt(qo,e.attempt(Wo,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:ts},$o={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){if((72===t||104===t)&&ns.call(r,r.previous)&&!os(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s;return n(t)};function s(t){if(Lt(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),o?l:(o=!0,a)):n(t)}function l(t){return null===t||vt(t)||Ft(t)||Gt(t)||Ut(t)?n(t):e.attempt(qo,e.attempt(Wo,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:ns},Jo={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,o;return function(t){if(!is(t)||!rs.call(r,r.previous)||os(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)};function s(t){return is(t)?(e.consume(t),s):64===t?(e.consume(t),a):n(t)}function a(t){return 46===t?e.check(Qo,c,l)(t):45===t||95===t||Rt(t)?(o=!0,e.consume(t),a):c(t)}function l(t){return e.consume(t),i=!0,a}function c(s){return o&&i&&Lt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:rs},Zo={};let es=48;for(;es<123;)Zo[es]=Jo,es++,58===es?es=65:91===es&&(es=97);function ts(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Ft(e)}function ns(e){return!Lt(e)}function rs(e){return!(47===e||is(e))}function is(e){return 43===e||45===e||46===e||95===e||Rt(e)}function os(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Zo[43]=Jo,Zo[45]=Jo,Zo[46]=Jo,Zo[95]=Jo,Zo[72]=[Jo,$o],Zo[104]=[Jo,$o],Zo[87]=[Jo,Xo],Zo[119]=[Jo,Xo];const ss={tokenize:function(e,t,n){const r=this;return Kt(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function as(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s._balanced)return n(i);const a=Ot(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function ls(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function cs(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(a){if(s>999||93===a&&!o||null===a||91===a||Ft(a))return n(a);if(93===a){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Ot(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return Ft(a)||(o=!0),s++,e.consume(a),92===a?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function us(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!s||null===t||91===t||Ft(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Ot(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Ft(t)||(s=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),Kt(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function hs(e,t,n){return e.check(Zt,t,e.attempt(ss,t,n))}function ds(e){e.exit("gfmFootnoteDefinition")}function ps(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const l=Vt(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=Vt(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&Nt(s,s.length,0,Qt(a,e.slice(r+1,n),t)),Nt(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),Nt(e,r-1,n-r+3,s),n=r+s.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class fs{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0===n&&0===r.length)return;for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function ms(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function Es(e,t,n){const r=this;let i,o=0,s=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?_:a;if(o===_&&r.parser.lazy[r.now().line])return n(e);return o(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,s+=1,l(e)}(t)}function l(t){return null===t?n(t):Bt(t)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):Ht(t)?Kt(e,l,"whitespace")(t):(s+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Ft(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,Ht(t)?Kt(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?f(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):A(t)}function p(t){return Ht(t)?Kt(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||Bt(t)?g(t):A(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),E(t)):A(t)}function E(t){return 45===t?(e.consume(t),E):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(t))}function T(t){return Ht(t)?Kt(e,g,"whitespace")(t):g(t)}function g(n){return 124===n?d(n):(null===n||Bt(n))&&i&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):A(n)}function A(e){return n(e)}function _(t){return e.enter("tableRow"),S(t)}function S(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),S):null===n||Bt(n)?(e.exit("tableRow"),t(n)):Ht(n)?Kt(e,S,"whitespace")(n):(e.enter("data"),N(n))}function N(t){return null===t||124===t||Ft(t)?(e.exit("data"),S(t)):(e.consume(t),92===t?I:N)}function I(t){return 92===t||124===t?(e.consume(t),N):N(t)}}function Ts(e,t){let n,r,i,o=-1,s=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const d=new fs;for(;++o<e.length;){const p=e[o],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==h&&(As(d,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(s=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},d.add(o,0,[["enter",r,t]])),a="tableDelimiterRow"===f.type?2:r?3:1):!a||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(s?s=!1:(0!==l[1]&&(c[0]=c[1],i=gs(d,t,l,a,void 0,i)),l=c,c=[l[1],o,0,0])):(s=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=gs(d,t,l,a,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===f.type?(u=!0,h=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(h=o,0!==l[1]?(c[0]=c[1],i=gs(d,t,l,a,o,i)):0!==c[1]&&(i=gs(d,t,c,a,o,i)),a=0):!a||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=o)}for(0!==h&&As(d,t,h,n,r),d.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=ms(t.events,o))}return e}function gs(e,t,n,r,i,o){const s=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},_s(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=_s(t.events,n[1]);if(o={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=_s(t.events,n[2]),o=_s(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},_s(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function As(e,t,n,r,i){const o=[],s=_s(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function _s(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Ss={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return Ft(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return Bt(r)?t(r):Ht(r)?e.check({tokenize:Ns},t,n)(r):n(r)}}};function Ns(e,t,n){return Kt(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const Is={};function Cs(e){const t=e||Is,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return yt([{text:Zo},{document:{91:{name:"gfmFootnoteDefinition",tokenize:us,continuation:{tokenize:hs},exit:ds}},text:{91:{name:"gfmFootnoteCall",tokenize:cs},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:as,resolveTo:ls}}},ps(e),{flow:{null:{name:"table",tokenize:Es,resolveAll:Ts}}},{text:{91:Ss}}])}(t)),i.push([{transforms:[Yi],enter:{literalAutolink:Bi,literalAutolinkEmail:Fi,literalAutolinkHttp:Fi,literalAutolinkWww:Fi},exit:{literalAutolink:ji,literalAutolinkEmail:Gi,literalAutolinkHttp:Hi,literalAutolinkWww:Ui}},{enter:{gfmFootnoteCallString:Wi,gfmFootnoteCall:Vi,gfmFootnoteDefinitionLabelString:Qi,gfmFootnoteDefinition:Xi},exit:{gfmFootnoteCallString:$i,gfmFootnoteCall:Ji,gfmFootnoteDefinitionLabelString:Zi,gfmFootnoteDefinition:eo}},{canContainEols:["delete"],enter:{strikethrough:so},exit:{strikethrough:ao}},{enter:{table:Po,tableData:Fo,tableHeader:Fo,tableRow:wo},exit:{codeText:Ho,table:Mo,tableData:Bo,tableHeader:Bo,tableRow:Bo}},{exit:{taskListCheckValueChecked:jo,taskListCheckValueUnchecked:jo,paragraph:Yo}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mi,notInConstruct:wi},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mi,notInConstruct:wi},{character:":",before:"[ps]",after:"\\/",inConstruct:Mi,notInConstruct:wi}]},no(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:oo}],handlers:{delete:lo}},Go(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ko}}]}}(t))}const ys=/[#.]/g;function ks(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i,...o){let s;if(null==n){s={type:"root",children:[]};const e=i;o.unshift(e)}else{s=function(e,t){const n=e||"",r={};let i,o,s=0;for(;s<n.length;){ys.lastIndex=s;const e=ys.exec(n),t=n.slice(s,e?e.index:n.length);t&&(i?"#"===i?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,s+=t.length),e&&(i=e[0],s++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t);const a=s.tagName.toLowerCase(),l=r?r.get(a):void 0;if(s.tagName=l||a,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(i))o.unshift(i);else for(const[t,n]of Object.entries(i))bs(e,s.properties,t,n)}for(const e of o)Ds(s.children,e);return"element"===s.type&&"template"===s.tagName&&(s.content={type:"root",children:s.children},s.children=[]),s}}function bs(e,t,n,r){const i=pe(e,n);let o;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?ge(r):i.commaSeparated?O(r):i.commaOrSpaceSeparated?ge(O(r).join(" ")):Os(i,i.property,r):Array.isArray(r)?[...r]:"style"===i.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(const t of o)e.push(Os(i,i.property,t));o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function Ds(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Ds(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Ds(e,t.children):e.push(t)}}function Os(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||H(n)===H(t)))return!0}return n}const Ls=ks(Ee,"div"),Rs=ks(Te,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function xs(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const vs={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ps={}.hasOwnProperty,Ms=Object.prototype;function ws(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Fs(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:Bs(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=xs(t,e),i=-1===r?t.length+1:r+1;if(e===i)break;n.push(i)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let i=n[r];if(void 0===i){const e=xs(t,n[r-1]);i=-1===e?t.length+1:e+1,n[r]=i}if(i>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),i=r.toPoint(0),o=r.toPoint(t.length);n.position={start:i,end:o}}return n}case"#documentType":return n={type:"doctype"},Fs(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},Fs(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===vs.svg?Te:Ee;let r=-1;const i={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;Ps.call(Ms,n)||(i[n]=e.value)}const o="svg"===e.schema.space?Rs:Ls,s=o(t.tagName,i,Bs(e,t.childNodes));if(Fs(e,t,s),"template"===s.tagName){const n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&Hs(r.startTag),o=r&&r.endTag&&Hs(r.endTag),a=ws(e,n.content);i&&o&&e.file&&(a.position={start:i.end,end:o.start}),s.content=a}return e.schema=n,s}(e,t),n}}function Bs(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=ws(e,t[n]);r.push(i)}return r}function Fs(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=Hs(n);if("element"===t.type){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const r={};let i;if(n.attrs)for(i in n.attrs)Ps.call(n.attrs,i)&&(r[pe(e.schema,i).property]=Hs(n.attrs[i]));n.startTag;const o=Hs(n.startTag),s=n.endTag?Hs(n.endTag):void 0,a={opening:o};s&&(a.closing=s),a.properties=r,t.data={position:a}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Hs(e){const t=Us({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Us({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Us(e){return e.line&&e.column?e:void 0}class Gs{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function js(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Gs(n,r,t)}function Ys(e){return e.toLowerCase()}Gs.prototype.property={},Gs.prototype.normal={},Gs.prototype.space=null;class Ks{constructor(e,t){this.property=e,this.attribute=t}}Ks.prototype.space=null,Ks.prototype.boolean=!1,Ks.prototype.booleanish=!1,Ks.prototype.overloadedBoolean=!1,Ks.prototype.number=!1,Ks.prototype.commaSeparated=!1,Ks.prototype.spaceSeparated=!1,Ks.prototype.commaOrSpaceSeparated=!1,Ks.prototype.mustUseProperty=!1,Ks.prototype.defined=!1;let zs=0;const qs=Zs(),Ws=Zs(),Vs=Zs(),Qs=Zs(),Xs=Zs(),$s=Zs(),Js=Zs();function Zs(){return 2**++zs}const ea=Object.freeze(Object.defineProperty({__proto__:null,boolean:qs,booleanish:Ws,commaOrSpaceSeparated:Js,commaSeparated:$s,number:Qs,overloadedBoolean:Vs,spaceSeparated:Xs},Symbol.toStringTag,{value:"Module"})),ta=Object.keys(ea);class na extends Ks{constructor(e,t,n,r){let i=-1;if(super(e,t),ra(this,"space",r),"number"==typeof n)for(;++i<ta.length;){const e=ta[i];ra(this,ta[i],(n&ea[e])===ea[e])}}}function ra(e,t,n){n&&(e[t]=n)}na.prototype.defined=!0;const ia={}.hasOwnProperty;function oa(e){const t={},n={};let r;for(r in e.properties)if(ia.call(e.properties,r)){const i=e.properties[r],o=new na(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ys(r)]=r,n[Ys(o.attribute)]=r}return new Gs(t,n,e.space)}const sa=oa({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),aa=oa({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function la(e,t){return t in e?e[t]:t}function ca(e,t){return la(e,t.toLowerCase())}const ua=oa({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ca,properties:{xmlns:null,xmlnsXLink:null}}),ha=oa({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ws,ariaAutoComplete:null,ariaBusy:Ws,ariaChecked:Ws,ariaColCount:Qs,ariaColIndex:Qs,ariaColSpan:Qs,ariaControls:Xs,ariaCurrent:null,ariaDescribedBy:Xs,ariaDetails:null,ariaDisabled:Ws,ariaDropEffect:Xs,ariaErrorMessage:null,ariaExpanded:Ws,ariaFlowTo:Xs,ariaGrabbed:Ws,ariaHasPopup:null,ariaHidden:Ws,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Xs,ariaLevel:Qs,ariaLive:null,ariaModal:Ws,ariaMultiLine:Ws,ariaMultiSelectable:Ws,ariaOrientation:null,ariaOwns:Xs,ariaPlaceholder:null,ariaPosInSet:Qs,ariaPressed:Ws,ariaReadOnly:Ws,ariaRelevant:null,ariaRequired:Ws,ariaRoleDescription:Xs,ariaRowCount:Qs,ariaRowIndex:Qs,ariaRowSpan:Qs,ariaSelected:Ws,ariaSetSize:Qs,ariaSort:null,ariaValueMax:Qs,ariaValueMin:Qs,ariaValueNow:Qs,ariaValueText:null,role:null}}),da=oa({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ca,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$s,acceptCharset:Xs,accessKey:Xs,action:null,allow:null,allowFullScreen:qs,allowPaymentRequest:qs,allowUserMedia:qs,alt:null,as:null,async:qs,autoCapitalize:null,autoComplete:Xs,autoFocus:qs,autoPlay:qs,blocking:Xs,capture:null,charSet:null,checked:qs,cite:null,className:Xs,cols:Qs,colSpan:null,content:null,contentEditable:Ws,controls:qs,controlsList:Xs,coords:Qs|$s,crossOrigin:null,data:null,dateTime:null,decoding:null,default:qs,defer:qs,dir:null,dirName:null,disabled:qs,download:Vs,draggable:Ws,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:qs,formTarget:null,headers:Xs,height:Qs,hidden:qs,high:Qs,href:null,hrefLang:null,htmlFor:Xs,httpEquiv:Xs,id:null,imageSizes:null,imageSrcSet:null,inert:qs,inputMode:null,integrity:null,is:null,isMap:qs,itemId:null,itemProp:Xs,itemRef:Xs,itemScope:qs,itemType:Xs,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:qs,low:Qs,manifest:null,max:null,maxLength:Qs,media:null,method:null,min:null,minLength:Qs,multiple:qs,muted:qs,name:null,nonce:null,noModule:qs,noValidate:qs,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:qs,optimum:Qs,pattern:null,ping:Xs,placeholder:null,playsInline:qs,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:qs,referrerPolicy:null,rel:Xs,required:qs,reversed:qs,rows:Qs,rowSpan:Qs,sandbox:Xs,scope:null,scoped:qs,seamless:qs,selected:qs,shadowRootClonable:qs,shadowRootDelegatesFocus:qs,shadowRootMode:null,shape:null,size:Qs,sizes:null,slot:null,span:Qs,spellCheck:Ws,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Qs,step:null,style:null,tabIndex:Qs,target:null,title:null,translate:null,type:null,typeMustMatch:qs,useMap:null,value:Ws,width:Qs,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Xs,axis:null,background:null,bgColor:null,border:Qs,borderColor:null,bottomMargin:Qs,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:qs,declare:qs,event:null,face:null,frame:null,frameBorder:null,hSpace:Qs,leftMargin:Qs,link:null,longDesc:null,lowSrc:null,marginHeight:Qs,marginWidth:Qs,noResize:qs,noHref:qs,noShade:qs,noWrap:qs,object:null,profile:null,prompt:null,rev:null,rightMargin:Qs,rules:null,scheme:null,scrolling:Ws,standby:null,summary:null,text:null,topMargin:Qs,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Qs,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:qs,disableRemotePlayback:qs,prefix:null,property:null,results:Qs,security:null,unselectable:null}}),pa=oa({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:la,properties:{about:Js,accentHeight:Qs,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Qs,amplitude:Qs,arabicForm:null,ascent:Qs,attributeName:null,attributeType:null,azimuth:Qs,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Qs,by:null,calcMode:null,capHeight:Qs,className:Xs,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:Qs,diffuseConstant:Qs,direction:null,display:null,dur:null,divisor:Qs,dominantBaseline:null,download:qs,dx:null,dy:null,edgeMode:null,editable:null,elevation:Qs,enableBackground:null,end:null,event:null,exponent:Qs,externalResourcesRequired:null,fill:null,fillOpacity:Qs,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:$s,g2:$s,glyphName:$s,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Qs,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Qs,horizOriginX:Qs,horizOriginY:Qs,id:null,ideographic:Qs,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Qs,k:Qs,k1:Qs,k2:Qs,k3:Qs,k4:Qs,kernelMatrix:Js,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Qs,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:Qs,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:Qs,overlineThickness:Qs,paintOrder:null,panose1:null,path:null,pathLength:Qs,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Xs,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Qs,pointsAtY:Qs,pointsAtZ:Qs,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Js,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Js,rev:Js,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Js,requiredFeatures:Js,requiredFonts:Js,requiredFormats:Js,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:Qs,specularExponent:Qs,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Qs,strikethroughThickness:Qs,string:null,stroke:null,strokeDashArray:Js,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Qs,strokeOpacity:Qs,strokeWidth:null,style:null,surfaceScale:Qs,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Js,tabIndex:Qs,tableValues:null,target:null,targetX:Qs,targetY:Qs,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Js,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Qs,underlineThickness:Qs,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Qs,values:null,vAlphabetic:Qs,vMathematical:Qs,vectorEffect:null,vHanging:Qs,vIdeographic:Qs,version:null,vertAdvY:Qs,vertOriginX:Qs,vertOriginY:Qs,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Qs,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),fa=/^data[-\w.:]+$/i,ma=/-[a-z]/g,Ea=/[A-Z]/g;function Ta(e){return"-"+e.toLowerCase()}function ga(e){return e.charAt(1).toUpperCase()}const Aa=js([aa,sa,ua,ha,da],"html"),_a=js([aa,sa,ua,ha,pa],"svg"),Sa={},Na={}.hasOwnProperty,Ia=po("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ya(e.children,n,t),ka(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=_a);const i=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&Na.call(e.properties,o)){const t=Ca(r,o,e.properties[o]);t&&i.push(t)}const s=r.space,a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:vs[s],childNodes:[],parentNode:null};a.childNodes=ya(e.children,a,r),ka(e,a),"template"===e.tagName&&e.content&&(a.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ya(e.children,n,t),ka(e,n),n}(e.content,r));return a},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ka(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ka(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ka(e,t),t}}});function Ca(e,t,n){const r=function(e,t){const n=Ys(t);let r=t,i=Ks;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&fa.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ma,ga);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ma.test(e)){let n=e.replace(Ea,Ta);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=na}return new i(r,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?L(n):Ae(n));const i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=vs[r.space]}return i}function ya(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=Ia(e[r],n);o.parentNode=t,i.push(o)}return i}function ka(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const ba=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Da=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Oa="�";var La,Ra;(Ra=La||(La={}))[Ra.EOF=-1]="EOF",Ra[Ra.NULL=0]="NULL",Ra[Ra.TABULATION=9]="TABULATION",Ra[Ra.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",Ra[Ra.LINE_FEED=10]="LINE_FEED",Ra[Ra.FORM_FEED=12]="FORM_FEED",Ra[Ra.SPACE=32]="SPACE",Ra[Ra.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",Ra[Ra.QUOTATION_MARK=34]="QUOTATION_MARK",Ra[Ra.AMPERSAND=38]="AMPERSAND",Ra[Ra.APOSTROPHE=39]="APOSTROPHE",Ra[Ra.HYPHEN_MINUS=45]="HYPHEN_MINUS",Ra[Ra.SOLIDUS=47]="SOLIDUS",Ra[Ra.DIGIT_0=48]="DIGIT_0",Ra[Ra.DIGIT_9=57]="DIGIT_9",Ra[Ra.SEMICOLON=59]="SEMICOLON",Ra[Ra.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",Ra[Ra.EQUALS_SIGN=61]="EQUALS_SIGN",Ra[Ra.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",Ra[Ra.QUESTION_MARK=63]="QUESTION_MARK",Ra[Ra.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",Ra[Ra.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",Ra[Ra.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",Ra[Ra.GRAVE_ACCENT=96]="GRAVE_ACCENT",Ra[Ra.LATIN_SMALL_A=97]="LATIN_SMALL_A",Ra[Ra.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const xa="--",va="[CDATA[",Pa="doctype",Ma="script",wa="public",Ba="system";function Fa(e){return e>=55296&&e<=57343}function Ha(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Ua(e){return e>=64976&&e<=65007||Da.has(e)}var Ga,ja;(ja=Ga||(Ga={})).controlCharacterInInputStream="control-character-in-input-stream",ja.noncharacterInInputStream="noncharacter-in-input-stream",ja.surrogateInInputStream="surrogate-in-input-stream",ja.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",ja.endTagWithAttributes="end-tag-with-attributes",ja.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",ja.unexpectedSolidusInTag="unexpected-solidus-in-tag",ja.unexpectedNullCharacter="unexpected-null-character",ja.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",ja.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",ja.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",ja.missingEndTagName="missing-end-tag-name",ja.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",ja.unknownNamedCharacterReference="unknown-named-character-reference",ja.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",ja.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",ja.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",ja.eofBeforeTagName="eof-before-tag-name",ja.eofInTag="eof-in-tag",ja.missingAttributeValue="missing-attribute-value",ja.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",ja.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",ja.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",ja.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",ja.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",ja.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",ja.missingDoctypePublicIdentifier="missing-doctype-public-identifier",ja.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",ja.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",ja.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",ja.cdataInHtmlContent="cdata-in-html-content",ja.incorrectlyOpenedComment="incorrectly-opened-comment",ja.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",ja.eofInDoctype="eof-in-doctype",ja.nestedComment="nested-comment",ja.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",ja.eofInComment="eof-in-comment",ja.incorrectlyClosedComment="incorrectly-closed-comment",ja.eofInCdata="eof-in-cdata",ja.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",ja.nullCharacterReference="null-character-reference",ja.surrogateCharacterReference="surrogate-character-reference",ja.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",ja.controlCharacterReference="control-character-reference",ja.noncharacterCharacterReference="noncharacter-character-reference",ja.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",ja.missingDoctypeName="missing-doctype-name",ja.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",ja.duplicateAttribute="duplicate-attribute",ja.nonConformingDoctype="non-conforming-doctype",ja.missingDoctype="missing-doctype",ja.misplacedDoctype="misplaced-doctype",ja.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",ja.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",ja.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",ja.openElementsLeftAfterEof="open-elements-left-after-eof",ja.abandonedHeadElementChild="abandoned-head-element-child",ja.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",ja.nestedNoscriptInHead="nested-noscript-in-head",ja.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class Ya{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:i}=this,o=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,La.EOF;return this._err(Ga.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,La.EOF;const n=this.html.charCodeAt(t);return n===La.CARRIAGE_RETURN?La.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,La.EOF;let e=this.html.charCodeAt(this.pos);if(e===La.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,La.LINE_FEED;if(e===La.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,Fa(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===La.LINE_FEED||e===La.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){Ha(e)?this._err(Ga.controlCharacterInInputStream):Ua(e)&&this._err(Ga.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ka,za;function qa(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(za=Ka||(Ka={}))[za.CHARACTER=0]="CHARACTER",za[za.NULL_CHARACTER=1]="NULL_CHARACTER",za[za.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",za[za.START_TAG=3]="START_TAG",za[za.END_TAG=4]="END_TAG",za[za.COMMENT=5]="COMMENT",za[za.DOCTYPE=6]="DOCTYPE",za[za.EOF=7]="EOF",za[za.HIBERNATION=8]="HIBERNATION";const Wa=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),Va=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));var Qa;const Xa=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),$a=null!==(Qa=String.fromCodePoint)&&void 0!==Qa?Qa:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var Ja,Za;(Za=Ja||(Ja={}))[Za.NUM=35]="NUM",Za[Za.SEMI=59]="SEMI",Za[Za.EQUALS=61]="EQUALS",Za[Za.ZERO=48]="ZERO",Za[Za.NINE=57]="NINE",Za[Za.LOWER_A=97]="LOWER_A",Za[Za.LOWER_F=102]="LOWER_F",Za[Za.LOWER_X=120]="LOWER_X",Za[Za.LOWER_Z=122]="LOWER_Z",Za[Za.UPPER_A=65]="UPPER_A",Za[Za.UPPER_F=70]="UPPER_F",Za[Za.UPPER_Z=90]="UPPER_Z";var el,tl,nl,rl,il,ol,sl,al,ll,cl,ul,hl,dl,pl,fl,ml;function El(e){return e>=Ja.ZERO&&e<=Ja.NINE}function Tl(e){return e===Ja.EQUALS||function(e){return e>=Ja.UPPER_A&&e<=Ja.UPPER_Z||e>=Ja.LOWER_A&&e<=Ja.LOWER_Z||El(e)}(e)}(tl=el||(el={}))[tl.VALUE_LENGTH=49152]="VALUE_LENGTH",tl[tl.BRANCH_LENGTH=16256]="BRANCH_LENGTH",tl[tl.JUMP_TABLE=127]="JUMP_TABLE",(rl=nl||(nl={}))[rl.EntityStart=0]="EntityStart",rl[rl.NumericStart=1]="NumericStart",rl[rl.NumericDecimal=2]="NumericDecimal",rl[rl.NumericHex=3]="NumericHex",rl[rl.NamedEntity=4]="NamedEntity",(ol=il||(il={}))[ol.Legacy=0]="Legacy",ol[ol.Strict=1]="Strict",ol[ol.Attribute=2]="Attribute";class gl{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=nl.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=il.Strict}startEntity(e){this.decodeMode=e,this.state=nl.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case nl.EntityStart:return e.charCodeAt(t)===Ja.NUM?(this.state=nl.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=nl.NamedEntity,this.stateNamedEntity(e,t));case nl.NumericStart:return this.stateNumericStart(e,t);case nl.NumericDecimal:return this.stateNumericDecimal(e,t);case nl.NumericHex:return this.stateNumericHex(e,t);case nl.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Ja.LOWER_X?(this.state=nl.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=nl.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!(El(i)||(r=i,r>=Ja.UPPER_A&&r<=Ja.UPPER_F||r>=Ja.LOWER_A&&r<=Ja.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!El(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ja.SEMI)this.consumed+=1;else if(this.decodeMode===il.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Xa.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==Ja.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&el.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=_l(n,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===il.Attribute&&(0===i||Tl(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&el.VALUE_LENGTH)>>14,0!==i){if(o===Ja.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==il.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&el.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~el.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case nl.NamedEntity:return 0===this.result||this.decodeMode===il.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case nl.NumericDecimal:return this.emitNumericEntity(0,2);case nl.NumericHex:return this.emitNumericEntity(0,3);case nl.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case nl.EntityStart:return 0}}}function Al(e){let t="";const n=new gl(e,(e=>t+=$a(e)));return function(e,r){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);const s=n.write(e,o+1);if(s<0){i=o+n.end();break}i=o+s,o=0===s?i+1:i}const s=t+e.slice(i);return t="",s}}function _l(e,t,n,r){const i=(t&el.BRANCH_LENGTH)>>7,o=t&el.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let s=n,a=s+i-1;for(;s<=a;){const t=s+a>>>1,n=e[t];if(n<r)s=t+1;else{if(!(n>r))return e[t+i];a=t-1}}return-1}Al(Wa),Al(Va),(al=sl||(sl={})).HTML="http://www.w3.org/1999/xhtml",al.MATHML="http://www.w3.org/1998/Math/MathML",al.SVG="http://www.w3.org/2000/svg",al.XLINK="http://www.w3.org/1999/xlink",al.XML="http://www.w3.org/XML/1998/namespace",al.XMLNS="http://www.w3.org/2000/xmlns/",(cl=ll||(ll={})).TYPE="type",cl.ACTION="action",cl.ENCODING="encoding",cl.PROMPT="prompt",cl.NAME="name",cl.COLOR="color",cl.FACE="face",cl.SIZE="size",(hl=ul||(ul={})).NO_QUIRKS="no-quirks",hl.QUIRKS="quirks",hl.LIMITED_QUIRKS="limited-quirks",(pl=dl||(dl={})).A="a",pl.ADDRESS="address",pl.ANNOTATION_XML="annotation-xml",pl.APPLET="applet",pl.AREA="area",pl.ARTICLE="article",pl.ASIDE="aside",pl.B="b",pl.BASE="base",pl.BASEFONT="basefont",pl.BGSOUND="bgsound",pl.BIG="big",pl.BLOCKQUOTE="blockquote",pl.BODY="body",pl.BR="br",pl.BUTTON="button",pl.CAPTION="caption",pl.CENTER="center",pl.CODE="code",pl.COL="col",pl.COLGROUP="colgroup",pl.DD="dd",pl.DESC="desc",pl.DETAILS="details",pl.DIALOG="dialog",pl.DIR="dir",pl.DIV="div",pl.DL="dl",pl.DT="dt",pl.EM="em",pl.EMBED="embed",pl.FIELDSET="fieldset",pl.FIGCAPTION="figcaption",pl.FIGURE="figure",pl.FONT="font",pl.FOOTER="footer",pl.FOREIGN_OBJECT="foreignObject",pl.FORM="form",pl.FRAME="frame",pl.FRAMESET="frameset",pl.H1="h1",pl.H2="h2",pl.H3="h3",pl.H4="h4",pl.H5="h5",pl.H6="h6",pl.HEAD="head",pl.HEADER="header",pl.HGROUP="hgroup",pl.HR="hr",pl.HTML="html",pl.I="i",pl.IMG="img",pl.IMAGE="image",pl.INPUT="input",pl.IFRAME="iframe",pl.KEYGEN="keygen",pl.LABEL="label",pl.LI="li",pl.LINK="link",pl.LISTING="listing",pl.MAIN="main",pl.MALIGNMARK="malignmark",pl.MARQUEE="marquee",pl.MATH="math",pl.MENU="menu",pl.META="meta",pl.MGLYPH="mglyph",pl.MI="mi",pl.MO="mo",pl.MN="mn",pl.MS="ms",pl.MTEXT="mtext",pl.NAV="nav",pl.NOBR="nobr",pl.NOFRAMES="noframes",pl.NOEMBED="noembed",pl.NOSCRIPT="noscript",pl.OBJECT="object",pl.OL="ol",pl.OPTGROUP="optgroup",pl.OPTION="option",pl.P="p",pl.PARAM="param",pl.PLAINTEXT="plaintext",pl.PRE="pre",pl.RB="rb",pl.RP="rp",pl.RT="rt",pl.RTC="rtc",pl.RUBY="ruby",pl.S="s",pl.SCRIPT="script",pl.SEARCH="search",pl.SECTION="section",pl.SELECT="select",pl.SOURCE="source",pl.SMALL="small",pl.SPAN="span",pl.STRIKE="strike",pl.STRONG="strong",pl.STYLE="style",pl.SUB="sub",pl.SUMMARY="summary",pl.SUP="sup",pl.TABLE="table",pl.TBODY="tbody",pl.TEMPLATE="template",pl.TEXTAREA="textarea",pl.TFOOT="tfoot",pl.TD="td",pl.TH="th",pl.THEAD="thead",pl.TITLE="title",pl.TR="tr",pl.TRACK="track",pl.TT="tt",pl.U="u",pl.UL="ul",pl.SVG="svg",pl.VAR="var",pl.WBR="wbr",pl.XMP="xmp",(ml=fl||(fl={}))[ml.UNKNOWN=0]="UNKNOWN",ml[ml.A=1]="A",ml[ml.ADDRESS=2]="ADDRESS",ml[ml.ANNOTATION_XML=3]="ANNOTATION_XML",ml[ml.APPLET=4]="APPLET",ml[ml.AREA=5]="AREA",ml[ml.ARTICLE=6]="ARTICLE",ml[ml.ASIDE=7]="ASIDE",ml[ml.B=8]="B",ml[ml.BASE=9]="BASE",ml[ml.BASEFONT=10]="BASEFONT",ml[ml.BGSOUND=11]="BGSOUND",ml[ml.BIG=12]="BIG",ml[ml.BLOCKQUOTE=13]="BLOCKQUOTE",ml[ml.BODY=14]="BODY",ml[ml.BR=15]="BR",ml[ml.BUTTON=16]="BUTTON",ml[ml.CAPTION=17]="CAPTION",ml[ml.CENTER=18]="CENTER",ml[ml.CODE=19]="CODE",ml[ml.COL=20]="COL",ml[ml.COLGROUP=21]="COLGROUP",ml[ml.DD=22]="DD",ml[ml.DESC=23]="DESC",ml[ml.DETAILS=24]="DETAILS",ml[ml.DIALOG=25]="DIALOG",ml[ml.DIR=26]="DIR",ml[ml.DIV=27]="DIV",ml[ml.DL=28]="DL",ml[ml.DT=29]="DT",ml[ml.EM=30]="EM",ml[ml.EMBED=31]="EMBED",ml[ml.FIELDSET=32]="FIELDSET",ml[ml.FIGCAPTION=33]="FIGCAPTION",ml[ml.FIGURE=34]="FIGURE",ml[ml.FONT=35]="FONT",ml[ml.FOOTER=36]="FOOTER",ml[ml.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",ml[ml.FORM=38]="FORM",ml[ml.FRAME=39]="FRAME",ml[ml.FRAMESET=40]="FRAMESET",ml[ml.H1=41]="H1",ml[ml.H2=42]="H2",ml[ml.H3=43]="H3",ml[ml.H4=44]="H4",ml[ml.H5=45]="H5",ml[ml.H6=46]="H6",ml[ml.HEAD=47]="HEAD",ml[ml.HEADER=48]="HEADER",ml[ml.HGROUP=49]="HGROUP",ml[ml.HR=50]="HR",ml[ml.HTML=51]="HTML",ml[ml.I=52]="I",ml[ml.IMG=53]="IMG",ml[ml.IMAGE=54]="IMAGE",ml[ml.INPUT=55]="INPUT",ml[ml.IFRAME=56]="IFRAME",ml[ml.KEYGEN=57]="KEYGEN",ml[ml.LABEL=58]="LABEL",ml[ml.LI=59]="LI",ml[ml.LINK=60]="LINK",ml[ml.LISTING=61]="LISTING",ml[ml.MAIN=62]="MAIN",ml[ml.MALIGNMARK=63]="MALIGNMARK",ml[ml.MARQUEE=64]="MARQUEE",ml[ml.MATH=65]="MATH",ml[ml.MENU=66]="MENU",ml[ml.META=67]="META",ml[ml.MGLYPH=68]="MGLYPH",ml[ml.MI=69]="MI",ml[ml.MO=70]="MO",ml[ml.MN=71]="MN",ml[ml.MS=72]="MS",ml[ml.MTEXT=73]="MTEXT",ml[ml.NAV=74]="NAV",ml[ml.NOBR=75]="NOBR",ml[ml.NOFRAMES=76]="NOFRAMES",ml[ml.NOEMBED=77]="NOEMBED",ml[ml.NOSCRIPT=78]="NOSCRIPT",ml[ml.OBJECT=79]="OBJECT",ml[ml.OL=80]="OL",ml[ml.OPTGROUP=81]="OPTGROUP",ml[ml.OPTION=82]="OPTION",ml[ml.P=83]="P",ml[ml.PARAM=84]="PARAM",ml[ml.PLAINTEXT=85]="PLAINTEXT",ml[ml.PRE=86]="PRE",ml[ml.RB=87]="RB",ml[ml.RP=88]="RP",ml[ml.RT=89]="RT",ml[ml.RTC=90]="RTC",ml[ml.RUBY=91]="RUBY",ml[ml.S=92]="S",ml[ml.SCRIPT=93]="SCRIPT",ml[ml.SEARCH=94]="SEARCH",ml[ml.SECTION=95]="SECTION",ml[ml.SELECT=96]="SELECT",ml[ml.SOURCE=97]="SOURCE",ml[ml.SMALL=98]="SMALL",ml[ml.SPAN=99]="SPAN",ml[ml.STRIKE=100]="STRIKE",ml[ml.STRONG=101]="STRONG",ml[ml.STYLE=102]="STYLE",ml[ml.SUB=103]="SUB",ml[ml.SUMMARY=104]="SUMMARY",ml[ml.SUP=105]="SUP",ml[ml.TABLE=106]="TABLE",ml[ml.TBODY=107]="TBODY",ml[ml.TEMPLATE=108]="TEMPLATE",ml[ml.TEXTAREA=109]="TEXTAREA",ml[ml.TFOOT=110]="TFOOT",ml[ml.TD=111]="TD",ml[ml.TH=112]="TH",ml[ml.THEAD=113]="THEAD",ml[ml.TITLE=114]="TITLE",ml[ml.TR=115]="TR",ml[ml.TRACK=116]="TRACK",ml[ml.TT=117]="TT",ml[ml.U=118]="U",ml[ml.UL=119]="UL",ml[ml.SVG=120]="SVG",ml[ml.VAR=121]="VAR",ml[ml.WBR=122]="WBR",ml[ml.XMP=123]="XMP";const Sl=new Map([[dl.A,fl.A],[dl.ADDRESS,fl.ADDRESS],[dl.ANNOTATION_XML,fl.ANNOTATION_XML],[dl.APPLET,fl.APPLET],[dl.AREA,fl.AREA],[dl.ARTICLE,fl.ARTICLE],[dl.ASIDE,fl.ASIDE],[dl.B,fl.B],[dl.BASE,fl.BASE],[dl.BASEFONT,fl.BASEFONT],[dl.BGSOUND,fl.BGSOUND],[dl.BIG,fl.BIG],[dl.BLOCKQUOTE,fl.BLOCKQUOTE],[dl.BODY,fl.BODY],[dl.BR,fl.BR],[dl.BUTTON,fl.BUTTON],[dl.CAPTION,fl.CAPTION],[dl.CENTER,fl.CENTER],[dl.CODE,fl.CODE],[dl.COL,fl.COL],[dl.COLGROUP,fl.COLGROUP],[dl.DD,fl.DD],[dl.DESC,fl.DESC],[dl.DETAILS,fl.DETAILS],[dl.DIALOG,fl.DIALOG],[dl.DIR,fl.DIR],[dl.DIV,fl.DIV],[dl.DL,fl.DL],[dl.DT,fl.DT],[dl.EM,fl.EM],[dl.EMBED,fl.EMBED],[dl.FIELDSET,fl.FIELDSET],[dl.FIGCAPTION,fl.FIGCAPTION],[dl.FIGURE,fl.FIGURE],[dl.FONT,fl.FONT],[dl.FOOTER,fl.FOOTER],[dl.FOREIGN_OBJECT,fl.FOREIGN_OBJECT],[dl.FORM,fl.FORM],[dl.FRAME,fl.FRAME],[dl.FRAMESET,fl.FRAMESET],[dl.H1,fl.H1],[dl.H2,fl.H2],[dl.H3,fl.H3],[dl.H4,fl.H4],[dl.H5,fl.H5],[dl.H6,fl.H6],[dl.HEAD,fl.HEAD],[dl.HEADER,fl.HEADER],[dl.HGROUP,fl.HGROUP],[dl.HR,fl.HR],[dl.HTML,fl.HTML],[dl.I,fl.I],[dl.IMG,fl.IMG],[dl.IMAGE,fl.IMAGE],[dl.INPUT,fl.INPUT],[dl.IFRAME,fl.IFRAME],[dl.KEYGEN,fl.KEYGEN],[dl.LABEL,fl.LABEL],[dl.LI,fl.LI],[dl.LINK,fl.LINK],[dl.LISTING,fl.LISTING],[dl.MAIN,fl.MAIN],[dl.MALIGNMARK,fl.MALIGNMARK],[dl.MARQUEE,fl.MARQUEE],[dl.MATH,fl.MATH],[dl.MENU,fl.MENU],[dl.META,fl.META],[dl.MGLYPH,fl.MGLYPH],[dl.MI,fl.MI],[dl.MO,fl.MO],[dl.MN,fl.MN],[dl.MS,fl.MS],[dl.MTEXT,fl.MTEXT],[dl.NAV,fl.NAV],[dl.NOBR,fl.NOBR],[dl.NOFRAMES,fl.NOFRAMES],[dl.NOEMBED,fl.NOEMBED],[dl.NOSCRIPT,fl.NOSCRIPT],[dl.OBJECT,fl.OBJECT],[dl.OL,fl.OL],[dl.OPTGROUP,fl.OPTGROUP],[dl.OPTION,fl.OPTION],[dl.P,fl.P],[dl.PARAM,fl.PARAM],[dl.PLAINTEXT,fl.PLAINTEXT],[dl.PRE,fl.PRE],[dl.RB,fl.RB],[dl.RP,fl.RP],[dl.RT,fl.RT],[dl.RTC,fl.RTC],[dl.RUBY,fl.RUBY],[dl.S,fl.S],[dl.SCRIPT,fl.SCRIPT],[dl.SEARCH,fl.SEARCH],[dl.SECTION,fl.SECTION],[dl.SELECT,fl.SELECT],[dl.SOURCE,fl.SOURCE],[dl.SMALL,fl.SMALL],[dl.SPAN,fl.SPAN],[dl.STRIKE,fl.STRIKE],[dl.STRONG,fl.STRONG],[dl.STYLE,fl.STYLE],[dl.SUB,fl.SUB],[dl.SUMMARY,fl.SUMMARY],[dl.SUP,fl.SUP],[dl.TABLE,fl.TABLE],[dl.TBODY,fl.TBODY],[dl.TEMPLATE,fl.TEMPLATE],[dl.TEXTAREA,fl.TEXTAREA],[dl.TFOOT,fl.TFOOT],[dl.TD,fl.TD],[dl.TH,fl.TH],[dl.THEAD,fl.THEAD],[dl.TITLE,fl.TITLE],[dl.TR,fl.TR],[dl.TRACK,fl.TRACK],[dl.TT,fl.TT],[dl.U,fl.U],[dl.UL,fl.UL],[dl.SVG,fl.SVG],[dl.VAR,fl.VAR],[dl.WBR,fl.WBR],[dl.XMP,fl.XMP]]);function Nl(e){var t;return null!==(t=Sl.get(e))&&void 0!==t?t:fl.UNKNOWN}const Il=fl,Cl={[sl.HTML]:new Set([Il.ADDRESS,Il.APPLET,Il.AREA,Il.ARTICLE,Il.ASIDE,Il.BASE,Il.BASEFONT,Il.BGSOUND,Il.BLOCKQUOTE,Il.BODY,Il.BR,Il.BUTTON,Il.CAPTION,Il.CENTER,Il.COL,Il.COLGROUP,Il.DD,Il.DETAILS,Il.DIR,Il.DIV,Il.DL,Il.DT,Il.EMBED,Il.FIELDSET,Il.FIGCAPTION,Il.FIGURE,Il.FOOTER,Il.FORM,Il.FRAME,Il.FRAMESET,Il.H1,Il.H2,Il.H3,Il.H4,Il.H5,Il.H6,Il.HEAD,Il.HEADER,Il.HGROUP,Il.HR,Il.HTML,Il.IFRAME,Il.IMG,Il.INPUT,Il.LI,Il.LINK,Il.LISTING,Il.MAIN,Il.MARQUEE,Il.MENU,Il.META,Il.NAV,Il.NOEMBED,Il.NOFRAMES,Il.NOSCRIPT,Il.OBJECT,Il.OL,Il.P,Il.PARAM,Il.PLAINTEXT,Il.PRE,Il.SCRIPT,Il.SECTION,Il.SELECT,Il.SOURCE,Il.STYLE,Il.SUMMARY,Il.TABLE,Il.TBODY,Il.TD,Il.TEMPLATE,Il.TEXTAREA,Il.TFOOT,Il.TH,Il.THEAD,Il.TITLE,Il.TR,Il.TRACK,Il.UL,Il.WBR,Il.XMP]),[sl.MATHML]:new Set([Il.MI,Il.MO,Il.MN,Il.MS,Il.MTEXT,Il.ANNOTATION_XML]),[sl.SVG]:new Set([Il.TITLE,Il.FOREIGN_OBJECT,Il.DESC]),[sl.XLINK]:new Set,[sl.XML]:new Set,[sl.XMLNS]:new Set},yl=new Set([Il.H1,Il.H2,Il.H3,Il.H4,Il.H5,Il.H6]);var kl,bl;dl.STYLE,dl.SCRIPT,dl.XMP,dl.IFRAME,dl.NOEMBED,dl.NOFRAMES,dl.PLAINTEXT,(bl=kl||(kl={}))[bl.DATA=0]="DATA",bl[bl.RCDATA=1]="RCDATA",bl[bl.RAWTEXT=2]="RAWTEXT",bl[bl.SCRIPT_DATA=3]="SCRIPT_DATA",bl[bl.PLAINTEXT=4]="PLAINTEXT",bl[bl.TAG_OPEN=5]="TAG_OPEN",bl[bl.END_TAG_OPEN=6]="END_TAG_OPEN",bl[bl.TAG_NAME=7]="TAG_NAME",bl[bl.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",bl[bl.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",bl[bl.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",bl[bl.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",bl[bl.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",bl[bl.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",bl[bl.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",bl[bl.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",bl[bl.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",bl[bl.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",bl[bl.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",bl[bl.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",bl[bl.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",bl[bl.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",bl[bl.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",bl[bl.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",bl[bl.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",bl[bl.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",bl[bl.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",bl[bl.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",bl[bl.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",bl[bl.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",bl[bl.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",bl[bl.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",bl[bl.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",bl[bl.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",bl[bl.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",bl[bl.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",bl[bl.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",bl[bl.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",bl[bl.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",bl[bl.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",bl[bl.BOGUS_COMMENT=40]="BOGUS_COMMENT",bl[bl.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",bl[bl.COMMENT_START=42]="COMMENT_START",bl[bl.COMMENT_START_DASH=43]="COMMENT_START_DASH",bl[bl.COMMENT=44]="COMMENT",bl[bl.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",bl[bl.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",bl[bl.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",bl[bl.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",bl[bl.COMMENT_END_DASH=49]="COMMENT_END_DASH",bl[bl.COMMENT_END=50]="COMMENT_END",bl[bl.COMMENT_END_BANG=51]="COMMENT_END_BANG",bl[bl.DOCTYPE=52]="DOCTYPE",bl[bl.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",bl[bl.DOCTYPE_NAME=54]="DOCTYPE_NAME",bl[bl.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",bl[bl.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",bl[bl.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",bl[bl.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",bl[bl.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",bl[bl.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",bl[bl.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",bl[bl.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",bl[bl.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",bl[bl.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",bl[bl.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",bl[bl.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",bl[bl.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",bl[bl.CDATA_SECTION=68]="CDATA_SECTION",bl[bl.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",bl[bl.CDATA_SECTION_END=70]="CDATA_SECTION_END",bl[bl.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",bl[bl.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const Dl={DATA:kl.DATA,RCDATA:kl.RCDATA,RAWTEXT:kl.RAWTEXT,SCRIPT_DATA:kl.SCRIPT_DATA,PLAINTEXT:kl.PLAINTEXT,CDATA_SECTION:kl.CDATA_SECTION};function Ol(e){return e>=La.LATIN_CAPITAL_A&&e<=La.LATIN_CAPITAL_Z}function Ll(e){return function(e){return e>=La.LATIN_SMALL_A&&e<=La.LATIN_SMALL_Z}(e)||Ol(e)}function Rl(e){return Ll(e)||function(e){return e>=La.DIGIT_0&&e<=La.DIGIT_9}(e)}function xl(e){return e+32}function vl(e){return e===La.SPACE||e===La.LINE_FEED||e===La.TABULATION||e===La.FORM_FEED}function Pl(e){return vl(e)||e===La.SOLIDUS||e===La.GREATER_THAN_SIGN}class Ml{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=kl.DATA,this.returnState=kl.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Ya(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new gl(Wa,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ga.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(Ga.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===La.NULL?Ga.nullCharacterReference:e>1114111?Ga.characterReferenceOutsideUnicodeRange:Fa(e)?Ga.surrogateCharacterReference:Ua(e)?Ga.noncharacterCharacterReference:Ha(e)||e===La.CARRIAGE_RETURN?Ga.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Ka.START_TAG,tagName:"",tagID:fl.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ka.END_TAG,tagName:"",tagID:fl.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Ka.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Ka.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===qa(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(Ga.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=Nl(e.tagName),e.type===Ka.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(Ga.endTagWithAttributes),e.selfClosing&&this._err(Ga.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Ka.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Ka.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Ka.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Ka.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=vl(e)?Ka.WHITESPACE_CHARACTER:e===La.NULL?Ka.NULL_CHARACTER:Ka.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Ka.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=kl.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?il.Attribute:il.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===kl.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===kl.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===kl.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case kl.DATA:this._stateData(e);break;case kl.RCDATA:this._stateRcdata(e);break;case kl.RAWTEXT:this._stateRawtext(e);break;case kl.SCRIPT_DATA:this._stateScriptData(e);break;case kl.PLAINTEXT:this._statePlaintext(e);break;case kl.TAG_OPEN:this._stateTagOpen(e);break;case kl.END_TAG_OPEN:this._stateEndTagOpen(e);break;case kl.TAG_NAME:this._stateTagName(e);break;case kl.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case kl.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case kl.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case kl.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case kl.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case kl.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case kl.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case kl.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case kl.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case kl.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case kl.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case kl.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case kl.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case kl.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case kl.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case kl.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case kl.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case kl.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case kl.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case kl.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case kl.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case kl.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case kl.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case kl.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case kl.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case kl.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case kl.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case kl.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case kl.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case kl.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case kl.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case kl.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case kl.BOGUS_COMMENT:this._stateBogusComment(e);break;case kl.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case kl.COMMENT_START:this._stateCommentStart(e);break;case kl.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case kl.COMMENT:this._stateComment(e);break;case kl.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case kl.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case kl.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case kl.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case kl.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case kl.COMMENT_END:this._stateCommentEnd(e);break;case kl.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case kl.DOCTYPE:this._stateDoctype(e);break;case kl.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case kl.DOCTYPE_NAME:this._stateDoctypeName(e);break;case kl.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case kl.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case kl.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case kl.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case kl.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case kl.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case kl.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case kl.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case kl.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case kl.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case kl.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case kl.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case kl.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case kl.CDATA_SECTION:this._stateCdataSection(e);break;case kl.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case kl.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case kl.CHARACTER_REFERENCE:this._stateCharacterReference();break;case kl.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case La.LESS_THAN_SIGN:this.state=kl.TAG_OPEN;break;case La.AMPERSAND:this._startCharacterReference();break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this._emitCodePoint(e);break;case La.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case La.AMPERSAND:this._startCharacterReference();break;case La.LESS_THAN_SIGN:this.state=kl.RCDATA_LESS_THAN_SIGN;break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this._emitChars(Oa);break;case La.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case La.LESS_THAN_SIGN:this.state=kl.RAWTEXT_LESS_THAN_SIGN;break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this._emitChars(Oa);break;case La.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case La.LESS_THAN_SIGN:this.state=kl.SCRIPT_DATA_LESS_THAN_SIGN;break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this._emitChars(Oa);break;case La.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case La.NULL:this._err(Ga.unexpectedNullCharacter),this._emitChars(Oa);break;case La.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Ll(e))this._createStartTagToken(),this.state=kl.TAG_NAME,this._stateTagName(e);else switch(e){case La.EXCLAMATION_MARK:this.state=kl.MARKUP_DECLARATION_OPEN;break;case La.SOLIDUS:this.state=kl.END_TAG_OPEN;break;case La.QUESTION_MARK:this._err(Ga.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=kl.BOGUS_COMMENT,this._stateBogusComment(e);break;case La.EOF:this._err(Ga.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Ga.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=kl.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Ll(e))this._createEndTagToken(),this.state=kl.TAG_NAME,this._stateTagName(e);else switch(e){case La.GREATER_THAN_SIGN:this._err(Ga.missingEndTagName),this.state=kl.DATA;break;case La.EOF:this._err(Ga.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(Ga.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=kl.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:this.state=kl.BEFORE_ATTRIBUTE_NAME;break;case La.SOLIDUS:this.state=kl.SELF_CLOSING_START_TAG;break;case La.GREATER_THAN_SIGN:this.state=kl.DATA,this.emitCurrentTagToken();break;case La.NULL:this._err(Ga.unexpectedNullCharacter),t.tagName+=Oa;break;case La.EOF:this._err(Ga.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(Ol(e)?xl(e):e)}}_stateRcdataLessThanSign(e){e===La.SOLIDUS?this.state=kl.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=kl.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Ll(e)?(this.state=kl.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=kl.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=kl.BEFORE_ATTRIBUTE_NAME,!1;case La.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=kl.SELF_CLOSING_START_TAG,!1;case La.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=kl.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=kl.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===La.SOLIDUS?this.state=kl.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=kl.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Ll(e)?(this.state=kl.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=kl.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=kl.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case La.SOLIDUS:this.state=kl.SCRIPT_DATA_END_TAG_OPEN;break;case La.EXCLAMATION_MARK:this.state=kl.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=kl.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Ll(e)?(this.state=kl.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=kl.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=kl.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===La.HYPHEN_MINUS?(this.state=kl.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=kl.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===La.HYPHEN_MINUS?(this.state=kl.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=kl.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case La.HYPHEN_MINUS:this.state=kl.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case La.LESS_THAN_SIGN:this.state=kl.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this._emitChars(Oa);break;case La.EOF:this._err(Ga.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case La.HYPHEN_MINUS:this.state=kl.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case La.LESS_THAN_SIGN:this.state=kl.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this.state=kl.SCRIPT_DATA_ESCAPED,this._emitChars(Oa);break;case La.EOF:this._err(Ga.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=kl.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case La.HYPHEN_MINUS:this._emitChars("-");break;case La.LESS_THAN_SIGN:this.state=kl.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case La.GREATER_THAN_SIGN:this.state=kl.SCRIPT_DATA,this._emitChars(">");break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this.state=kl.SCRIPT_DATA_ESCAPED,this._emitChars(Oa);break;case La.EOF:this._err(Ga.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=kl.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===La.SOLIDUS?this.state=kl.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ll(e)?(this._emitChars("<"),this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=kl.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Ll(e)?(this.state=kl.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=kl.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=kl.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Ma,!1)&&Pl(this.preprocessor.peek(Ma.length))){this._emitCodePoint(e);for(let e=0;e<Ma.length;e++)this._emitCodePoint(this._consume());this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=kl.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case La.HYPHEN_MINUS:this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case La.LESS_THAN_SIGN:this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this._emitChars(Oa);break;case La.EOF:this._err(Ga.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case La.HYPHEN_MINUS:this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case La.LESS_THAN_SIGN:this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Oa);break;case La.EOF:this._err(Ga.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case La.HYPHEN_MINUS:this._emitChars("-");break;case La.LESS_THAN_SIGN:this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case La.GREATER_THAN_SIGN:this.state=kl.SCRIPT_DATA,this._emitChars(">");break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Oa);break;case La.EOF:this._err(Ga.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===La.SOLIDUS?(this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Ma,!1)&&Pl(this.preprocessor.peek(Ma.length))){this._emitCodePoint(e);for(let e=0;e<Ma.length;e++)this._emitCodePoint(this._consume());this.state=kl.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=kl.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:break;case La.SOLIDUS:case La.GREATER_THAN_SIGN:case La.EOF:this.state=kl.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case La.EQUALS_SIGN:this._err(Ga.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=kl.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=kl.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:case La.SOLIDUS:case La.GREATER_THAN_SIGN:case La.EOF:this._leaveAttrName(),this.state=kl.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case La.EQUALS_SIGN:this._leaveAttrName(),this.state=kl.BEFORE_ATTRIBUTE_VALUE;break;case La.QUOTATION_MARK:case La.APOSTROPHE:case La.LESS_THAN_SIGN:this._err(Ga.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this.currentAttr.name+=Oa;break;default:this.currentAttr.name+=String.fromCodePoint(Ol(e)?xl(e):e)}}_stateAfterAttributeName(e){switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:break;case La.SOLIDUS:this.state=kl.SELF_CLOSING_START_TAG;break;case La.EQUALS_SIGN:this.state=kl.BEFORE_ATTRIBUTE_VALUE;break;case La.GREATER_THAN_SIGN:this.state=kl.DATA,this.emitCurrentTagToken();break;case La.EOF:this._err(Ga.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=kl.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:break;case La.QUOTATION_MARK:this.state=kl.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case La.APOSTROPHE:this.state=kl.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case La.GREATER_THAN_SIGN:this._err(Ga.missingAttributeValue),this.state=kl.DATA,this.emitCurrentTagToken();break;default:this.state=kl.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case La.QUOTATION_MARK:this.state=kl.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case La.AMPERSAND:this._startCharacterReference();break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this.currentAttr.value+=Oa;break;case La.EOF:this._err(Ga.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case La.APOSTROPHE:this.state=kl.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case La.AMPERSAND:this._startCharacterReference();break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this.currentAttr.value+=Oa;break;case La.EOF:this._err(Ga.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:this._leaveAttrValue(),this.state=kl.BEFORE_ATTRIBUTE_NAME;break;case La.AMPERSAND:this._startCharacterReference();break;case La.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=kl.DATA,this.emitCurrentTagToken();break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this.currentAttr.value+=Oa;break;case La.QUOTATION_MARK:case La.APOSTROPHE:case La.LESS_THAN_SIGN:case La.EQUALS_SIGN:case La.GRAVE_ACCENT:this._err(Ga.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case La.EOF:this._err(Ga.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:this._leaveAttrValue(),this.state=kl.BEFORE_ATTRIBUTE_NAME;break;case La.SOLIDUS:this._leaveAttrValue(),this.state=kl.SELF_CLOSING_START_TAG;break;case La.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=kl.DATA,this.emitCurrentTagToken();break;case La.EOF:this._err(Ga.eofInTag),this._emitEOFToken();break;default:this._err(Ga.missingWhitespaceBetweenAttributes),this.state=kl.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case La.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=kl.DATA,this.emitCurrentTagToken();break;case La.EOF:this._err(Ga.eofInTag),this._emitEOFToken();break;default:this._err(Ga.unexpectedSolidusInTag),this.state=kl.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case La.GREATER_THAN_SIGN:this.state=kl.DATA,this.emitCurrentComment(t);break;case La.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case La.NULL:this._err(Ga.unexpectedNullCharacter),t.data+=Oa;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(xa,!0)?(this._createCommentToken(xa.length+1),this.state=kl.COMMENT_START):this._consumeSequenceIfMatch(Pa,!1)?(this.currentLocation=this.getCurrentLocation(Pa.length+1),this.state=kl.DOCTYPE):this._consumeSequenceIfMatch(va,!0)?this.inForeignNode?this.state=kl.CDATA_SECTION:(this._err(Ga.cdataInHtmlContent),this._createCommentToken(va.length+1),this.currentToken.data="[CDATA[",this.state=kl.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Ga.incorrectlyOpenedComment),this._createCommentToken(2),this.state=kl.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case La.HYPHEN_MINUS:this.state=kl.COMMENT_START_DASH;break;case La.GREATER_THAN_SIGN:{this._err(Ga.abruptClosingOfEmptyComment),this.state=kl.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=kl.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case La.HYPHEN_MINUS:this.state=kl.COMMENT_END;break;case La.GREATER_THAN_SIGN:this._err(Ga.abruptClosingOfEmptyComment),this.state=kl.DATA,this.emitCurrentComment(t);break;case La.EOF:this._err(Ga.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=kl.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case La.HYPHEN_MINUS:this.state=kl.COMMENT_END_DASH;break;case La.LESS_THAN_SIGN:t.data+="<",this.state=kl.COMMENT_LESS_THAN_SIGN;break;case La.NULL:this._err(Ga.unexpectedNullCharacter),t.data+=Oa;break;case La.EOF:this._err(Ga.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case La.EXCLAMATION_MARK:t.data+="!",this.state=kl.COMMENT_LESS_THAN_SIGN_BANG;break;case La.LESS_THAN_SIGN:t.data+="<";break;default:this.state=kl.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===La.HYPHEN_MINUS?this.state=kl.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=kl.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===La.HYPHEN_MINUS?this.state=kl.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=kl.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==La.GREATER_THAN_SIGN&&e!==La.EOF&&this._err(Ga.nestedComment),this.state=kl.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case La.HYPHEN_MINUS:this.state=kl.COMMENT_END;break;case La.EOF:this._err(Ga.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=kl.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case La.GREATER_THAN_SIGN:this.state=kl.DATA,this.emitCurrentComment(t);break;case La.EXCLAMATION_MARK:this.state=kl.COMMENT_END_BANG;break;case La.HYPHEN_MINUS:t.data+="-";break;case La.EOF:this._err(Ga.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=kl.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case La.HYPHEN_MINUS:t.data+="--!",this.state=kl.COMMENT_END_DASH;break;case La.GREATER_THAN_SIGN:this._err(Ga.incorrectlyClosedComment),this.state=kl.DATA,this.emitCurrentComment(t);break;case La.EOF:this._err(Ga.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=kl.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:this.state=kl.BEFORE_DOCTYPE_NAME;break;case La.GREATER_THAN_SIGN:this.state=kl.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case La.EOF:{this._err(Ga.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(Ga.missingWhitespaceBeforeDoctypeName),this.state=kl.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(Ol(e))this._createDoctypeToken(String.fromCharCode(xl(e))),this.state=kl.DOCTYPE_NAME;else switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:break;case La.NULL:this._err(Ga.unexpectedNullCharacter),this._createDoctypeToken(Oa),this.state=kl.DOCTYPE_NAME;break;case La.GREATER_THAN_SIGN:{this._err(Ga.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=kl.DATA;break}case La.EOF:{this._err(Ga.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=kl.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:this.state=kl.AFTER_DOCTYPE_NAME;break;case La.GREATER_THAN_SIGN:this.state=kl.DATA,this.emitCurrentDoctype(t);break;case La.NULL:this._err(Ga.unexpectedNullCharacter),t.name+=Oa;break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(Ol(e)?xl(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:break;case La.GREATER_THAN_SIGN:this.state=kl.DATA,this.emitCurrentDoctype(t);break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(wa,!1)?this.state=kl.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ba,!1)?this.state=kl.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Ga.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=kl.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:this.state=kl.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case La.QUOTATION_MARK:this._err(Ga.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=kl.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case La.APOSTROPHE:this._err(Ga.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=kl.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case La.GREATER_THAN_SIGN:this._err(Ga.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=kl.DATA,this.emitCurrentDoctype(t);break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Ga.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=kl.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:break;case La.QUOTATION_MARK:t.publicId="",this.state=kl.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case La.APOSTROPHE:t.publicId="",this.state=kl.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case La.GREATER_THAN_SIGN:this._err(Ga.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=kl.DATA,this.emitCurrentDoctype(t);break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Ga.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=kl.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case La.QUOTATION_MARK:this.state=kl.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case La.NULL:this._err(Ga.unexpectedNullCharacter),t.publicId+=Oa;break;case La.GREATER_THAN_SIGN:this._err(Ga.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=kl.DATA;break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case La.APOSTROPHE:this.state=kl.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case La.NULL:this._err(Ga.unexpectedNullCharacter),t.publicId+=Oa;break;case La.GREATER_THAN_SIGN:this._err(Ga.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=kl.DATA;break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:this.state=kl.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case La.GREATER_THAN_SIGN:this.state=kl.DATA,this.emitCurrentDoctype(t);break;case La.QUOTATION_MARK:this._err(Ga.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=kl.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case La.APOSTROPHE:this._err(Ga.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=kl.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Ga.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kl.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:break;case La.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=kl.DATA;break;case La.QUOTATION_MARK:t.systemId="",this.state=kl.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case La.APOSTROPHE:t.systemId="",this.state=kl.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Ga.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kl.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:this.state=kl.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case La.QUOTATION_MARK:this._err(Ga.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=kl.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case La.APOSTROPHE:this._err(Ga.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=kl.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case La.GREATER_THAN_SIGN:this._err(Ga.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kl.DATA,this.emitCurrentDoctype(t);break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Ga.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kl.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:break;case La.QUOTATION_MARK:t.systemId="",this.state=kl.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case La.APOSTROPHE:t.systemId="",this.state=kl.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case La.GREATER_THAN_SIGN:this._err(Ga.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kl.DATA,this.emitCurrentDoctype(t);break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Ga.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=kl.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case La.QUOTATION_MARK:this.state=kl.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case La.NULL:this._err(Ga.unexpectedNullCharacter),t.systemId+=Oa;break;case La.GREATER_THAN_SIGN:this._err(Ga.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=kl.DATA;break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case La.APOSTROPHE:this.state=kl.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case La.NULL:this._err(Ga.unexpectedNullCharacter),t.systemId+=Oa;break;case La.GREATER_THAN_SIGN:this._err(Ga.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=kl.DATA;break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case La.SPACE:case La.LINE_FEED:case La.TABULATION:case La.FORM_FEED:break;case La.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=kl.DATA;break;case La.EOF:this._err(Ga.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Ga.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=kl.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case La.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=kl.DATA;break;case La.NULL:this._err(Ga.unexpectedNullCharacter);break;case La.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case La.RIGHT_SQUARE_BRACKET:this.state=kl.CDATA_SECTION_BRACKET;break;case La.EOF:this._err(Ga.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===La.RIGHT_SQUARE_BRACKET?this.state=kl.CDATA_SECTION_END:(this._emitChars("]"),this.state=kl.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case La.GREATER_THAN_SIGN:this.state=kl.DATA;break;case La.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=kl.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(La.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Rl(this.preprocessor.peek(1))?kl.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){Rl(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===La.SEMICOLON&&this._err(Ga.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const wl=new Set([fl.DD,fl.DT,fl.LI,fl.OPTGROUP,fl.OPTION,fl.P,fl.RB,fl.RP,fl.RT,fl.RTC]),Bl=new Set([...wl,fl.CAPTION,fl.COLGROUP,fl.TBODY,fl.TD,fl.TFOOT,fl.TH,fl.THEAD,fl.TR]),Fl=new Set([fl.APPLET,fl.CAPTION,fl.HTML,fl.MARQUEE,fl.OBJECT,fl.TABLE,fl.TD,fl.TEMPLATE,fl.TH]),Hl=new Set([...Fl,fl.OL,fl.UL]),Ul=new Set([...Fl,fl.BUTTON]),Gl=new Set([fl.ANNOTATION_XML,fl.MI,fl.MN,fl.MO,fl.MS,fl.MTEXT]),jl=new Set([fl.DESC,fl.FOREIGN_OBJECT,fl.TITLE]),Yl=new Set([fl.TR,fl.TEMPLATE,fl.HTML]),Kl=new Set([fl.TBODY,fl.TFOOT,fl.THEAD,fl.TEMPLATE,fl.HTML]),zl=new Set([fl.TABLE,fl.TEMPLATE,fl.HTML]),ql=new Set([fl.TD,fl.TH]);class Wl{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=fl.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===fl.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===sl.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==sl.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(yl,sl.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ql,sl.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(zl,sl.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Kl,sl.HTML)}clearBackToTableRowContext(){this.clearBackTo(Yl,sl.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===fl.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===fl.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case sl.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case sl.SVG:if(jl.has(r))return!1;break;case sl.MATHML:if(Gl.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,Fl)}hasInListItemScope(e){return this.hasInDynamicScope(e,Hl)}hasInButtonScope(e){return this.hasInDynamicScope(e,Ul)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case sl.HTML:if(yl.has(t))return!0;if(Fl.has(t))return!1;break;case sl.SVG:if(jl.has(t))return!1;break;case sl.MATHML:if(Gl.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===sl.HTML)switch(this.tagIDs[t]){case e:return!0;case fl.TABLE:case fl.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===sl.HTML)switch(this.tagIDs[e]){case fl.TBODY:case fl.THEAD:case fl.TFOOT:return!0;case fl.TABLE:case fl.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===sl.HTML)switch(this.tagIDs[t]){case e:return!0;case fl.OPTION:case fl.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;wl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Bl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&Bl.has(this.currentTagId);)this.pop()}}var Vl,Ql;(Ql=Vl||(Vl={}))[Ql.Marker=0]="Marker",Ql[Ql.Element=1]="Element";const Xl={type:Vl.Marker};class $l{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let s=0;s<this.entries.length;s++){const e=this.entries[s];if(e.type===Vl.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===i&&this.treeAdapter.getNamespaceURI(t)===o){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:s,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map((e=>[e.name,e.value])));let i=0;for(let o=0;o<n.length;o++){const e=n[o];e.attrs.every((e=>r.get(e.name)===e.value))&&(i+=1,i>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(Xl)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Vl.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Vl.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Xl);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===Vl.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Vl.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Vl.Element&&t.element===e))}}const Jl={createDocument:()=>({nodeName:"#document",mode:ul.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const i=e.childNodes.find((e=>"#documentType"===e.nodeName));if(i)i.name=t,i.publicId=n,i.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Jl.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Jl.isTextNode(n))return void(n.value+=t)}Jl.appendChild(e,Jl.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Jl.isTextNode(r)?r.value+=t:Jl.insertBefore(e,Jl.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Zl="html",ec=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],tc=[...ec,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],nc=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),rc=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ic=[...rc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function oc(e,t){return t.some((t=>e.startsWith(t)))}const sc="text/html",ac="application/xhtml+xml",lc=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),cc=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:sl.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:sl.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:sl.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:sl.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:sl.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:sl.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:sl.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:sl.XML}],["xml:space",{prefix:"xml",name:"space",namespace:sl.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:sl.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:sl.XMLNS}]]),uc=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),hc=new Set([fl.B,fl.BIG,fl.BLOCKQUOTE,fl.BODY,fl.BR,fl.CENTER,fl.CODE,fl.DD,fl.DIV,fl.DL,fl.DT,fl.EM,fl.EMBED,fl.H1,fl.H2,fl.H3,fl.H4,fl.H5,fl.H6,fl.HEAD,fl.HR,fl.I,fl.IMG,fl.LI,fl.LISTING,fl.MENU,fl.META,fl.NOBR,fl.OL,fl.P,fl.PRE,fl.RUBY,fl.S,fl.SMALL,fl.SPAN,fl.STRONG,fl.STRIKE,fl.SUB,fl.SUP,fl.TABLE,fl.TT,fl.U,fl.UL,fl.VAR]);function dc(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function pc(e){for(let t=0;t<e.attrs.length;t++){const n=lc.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function fc(e){for(let t=0;t<e.attrs.length;t++){const n=cc.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function mc(e,t,n,r){return(!r||r===sl.HTML)&&function(e,t,n){if(t===sl.MATHML&&e===fl.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===ll.ENCODING){const e=n[r].value.toLowerCase();return e===sc||e===ac}return t===sl.SVG&&(e===fl.FOREIGN_OBJECT||e===fl.DESC||e===fl.TITLE)}(e,t,n)||(!r||r===sl.MATHML)&&function(e,t){return t===sl.MATHML&&(e===fl.MI||e===fl.MO||e===fl.MN||e===fl.MS||e===fl.MTEXT)}(e,t)}var Ec,Tc;(Tc=Ec||(Ec={}))[Tc.INITIAL=0]="INITIAL",Tc[Tc.BEFORE_HTML=1]="BEFORE_HTML",Tc[Tc.BEFORE_HEAD=2]="BEFORE_HEAD",Tc[Tc.IN_HEAD=3]="IN_HEAD",Tc[Tc.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",Tc[Tc.AFTER_HEAD=5]="AFTER_HEAD",Tc[Tc.IN_BODY=6]="IN_BODY",Tc[Tc.TEXT=7]="TEXT",Tc[Tc.IN_TABLE=8]="IN_TABLE",Tc[Tc.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",Tc[Tc.IN_CAPTION=10]="IN_CAPTION",Tc[Tc.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",Tc[Tc.IN_TABLE_BODY=12]="IN_TABLE_BODY",Tc[Tc.IN_ROW=13]="IN_ROW",Tc[Tc.IN_CELL=14]="IN_CELL",Tc[Tc.IN_SELECT=15]="IN_SELECT",Tc[Tc.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",Tc[Tc.IN_TEMPLATE=17]="IN_TEMPLATE",Tc[Tc.AFTER_BODY=18]="AFTER_BODY",Tc[Tc.IN_FRAMESET=19]="IN_FRAMESET",Tc[Tc.AFTER_FRAMESET=20]="AFTER_FRAMESET",Tc[Tc.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",Tc[Tc.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const gc={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ac=new Set([fl.TABLE,fl.TBODY,fl.TFOOT,fl.THEAD,fl.TR]),_c={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Jl,onParseError:null};class Sc{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Ec.INITIAL,this.originalInsertionMode=Ec.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={..._c,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new Ml(this.options,this),this.activeFormattingElements=new $l(this.treeAdapter),this.fragmentContextID=n?Nl(this.treeAdapter.getTagName(n)):fl.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new Wl(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={..._c,...t};null!=e||(e=n.treeAdapter.createElement(dl.TEMPLATE,sl.HTML,[]));const r=n.treeAdapter.createElement("documentmock",sl.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===fl.TEMPLATE&&i.tmplInsertionModeStack.unshift(Ec.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const i=null!==(r=e.location)&&void 0!==r?r:gc,o={code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(o)}onItemPush(e,t,n){var r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===sl.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,sl.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ec.TEXT}switchToPlaintextParsing(){this.insertionMode=Ec.TEXT,this.originalInsertionMode=Ec.IN_BODY,this.tokenizer.state=Dl.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===dl.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===sl.HTML)switch(this.fragmentContextID){case fl.TITLE:case fl.TEXTAREA:this.tokenizer.state=Dl.RCDATA;break;case fl.STYLE:case fl.XMP:case fl.IFRAME:case fl.NOEMBED:case fl.NOFRAMES:case fl.NOSCRIPT:this.tokenizer.state=Dl.RAWTEXT;break;case fl.SCRIPT:this.tokenizer.state=Dl.SCRIPT_DATA;break;case fl.PLAINTEXT:this.tokenizer.state=Dl.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,sl.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,sl.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(dl.HTML,sl.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,fl.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,o=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===Ka.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==fl.SVG||this.treeAdapter.getTagName(t)!==dl.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==sl.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===fl.MGLYPH||e.tagID===fl.MALIGNMARK)&&!this._isIntegrationPoint(n,t,sl.HTML))}_processToken(e){switch(e.type){case Ka.CHARACTER:this.onCharacter(e);break;case Ka.NULL_CHARACTER:this.onNullCharacter(e);break;case Ka.COMMENT:this.onComment(e);break;case Ka.DOCTYPE:this.onDoctype(e);break;case Ka.START_TAG:this._processStartTag(e);break;case Ka.END_TAG:this.onEndTag(e);break;case Ka.EOF:this.onEof(e);break;case Ka.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return mc(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===Vl.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ec.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(fl.P),this.openElements.popUntilTagNamePopped(fl.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case fl.TR:return void(this.insertionMode=Ec.IN_ROW);case fl.TBODY:case fl.THEAD:case fl.TFOOT:return void(this.insertionMode=Ec.IN_TABLE_BODY);case fl.CAPTION:return void(this.insertionMode=Ec.IN_CAPTION);case fl.COLGROUP:return void(this.insertionMode=Ec.IN_COLUMN_GROUP);case fl.TABLE:return void(this.insertionMode=Ec.IN_TABLE);case fl.BODY:return void(this.insertionMode=Ec.IN_BODY);case fl.FRAMESET:return void(this.insertionMode=Ec.IN_FRAMESET);case fl.SELECT:return void this._resetInsertionModeForSelect(e);case fl.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case fl.HTML:return void(this.insertionMode=this.headElement?Ec.AFTER_HEAD:Ec.BEFORE_HEAD);case fl.TD:case fl.TH:if(e>0)return void(this.insertionMode=Ec.IN_CELL);break;case fl.HEAD:if(e>0)return void(this.insertionMode=Ec.IN_HEAD)}this.insertionMode=Ec.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===fl.TEMPLATE)break;if(e===fl.TABLE)return void(this.insertionMode=Ec.IN_SELECT_IN_TABLE)}this.insertionMode=Ec.IN_SELECT}_isElementCausesFosterParenting(e){return Ac.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case fl.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===sl.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case fl.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Cl[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Ec.INITIAL:Rc(this,e);break;case Ec.BEFORE_HTML:xc(this,e);break;case Ec.BEFORE_HEAD:vc(this,e);break;case Ec.IN_HEAD:wc(this,e);break;case Ec.IN_HEAD_NO_SCRIPT:Bc(this,e);break;case Ec.AFTER_HEAD:Fc(this,e);break;case Ec.IN_BODY:case Ec.IN_CAPTION:case Ec.IN_CELL:case Ec.IN_TEMPLATE:Gc(this,e);break;case Ec.TEXT:case Ec.IN_SELECT:case Ec.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Ec.IN_TABLE:case Ec.IN_TABLE_BODY:case Ec.IN_ROW:Xc(this,e);break;case Ec.IN_TABLE_TEXT:tu(this,e);break;case Ec.IN_COLUMN_GROUP:ou(this,e);break;case Ec.AFTER_BODY:fu(this,e);break;case Ec.AFTER_AFTER_BODY:mu(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=Oa,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Ec.INITIAL:Rc(this,e);break;case Ec.BEFORE_HTML:xc(this,e);break;case Ec.BEFORE_HEAD:vc(this,e);break;case Ec.IN_HEAD:wc(this,e);break;case Ec.IN_HEAD_NO_SCRIPT:Bc(this,e);break;case Ec.AFTER_HEAD:Fc(this,e);break;case Ec.TEXT:this._insertCharacters(e);break;case Ec.IN_TABLE:case Ec.IN_TABLE_BODY:case Ec.IN_ROW:Xc(this,e);break;case Ec.IN_COLUMN_GROUP:ou(this,e);break;case Ec.AFTER_BODY:fu(this,e);break;case Ec.AFTER_AFTER_BODY:mu(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)Oc(this,e);else switch(this.insertionMode){case Ec.INITIAL:case Ec.BEFORE_HTML:case Ec.BEFORE_HEAD:case Ec.IN_HEAD:case Ec.IN_HEAD_NO_SCRIPT:case Ec.AFTER_HEAD:case Ec.IN_BODY:case Ec.IN_TABLE:case Ec.IN_CAPTION:case Ec.IN_COLUMN_GROUP:case Ec.IN_TABLE_BODY:case Ec.IN_ROW:case Ec.IN_CELL:case Ec.IN_SELECT:case Ec.IN_SELECT_IN_TABLE:case Ec.IN_TEMPLATE:case Ec.IN_FRAMESET:case Ec.AFTER_FRAMESET:Oc(this,e);break;case Ec.IN_TABLE_TEXT:nu(this,e);break;case Ec.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Ec.AFTER_AFTER_BODY:case Ec.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Ec.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?ul.QUIRKS:function(e){if(e.name!==Zl)return ul.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return ul.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),nc.has(n))return ul.QUIRKS;let e=null===t?tc:ec;if(oc(n,e))return ul.QUIRKS;if(e=null===t?rc:ic,oc(n,e))return ul.LIMITED_QUIRKS}return ul.NO_QUIRKS}(t);(function(e){return e.name===Zl&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,Ga.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Ec.BEFORE_HTML}(this,e);break;case Ec.BEFORE_HEAD:case Ec.IN_HEAD:case Ec.IN_HEAD_NO_SCRIPT:case Ec.AFTER_HEAD:this._err(e,Ga.misplacedDoctype);break;case Ec.IN_TABLE_TEXT:nu(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Ga.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===fl.FONT&&e.attrs.some((({name:e})=>e===ll.COLOR||e===ll.SIZE||e===ll.FACE))||hc.has(t)}(t))Eu(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===sl.MATHML?dc(t):r===sl.SVG&&(!function(e){const t=uc.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Nl(e.tagName))}(t),pc(t)),fc(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Ec.INITIAL:Rc(this,e);break;case Ec.BEFORE_HTML:!function(e,t){t.tagID===fl.HTML?(e._insertElement(t,sl.HTML),e.insertionMode=Ec.BEFORE_HEAD):xc(e,t)}(this,e);break;case Ec.BEFORE_HEAD:!function(e,t){switch(t.tagID){case fl.HTML:qc(e,t);break;case fl.HEAD:e._insertElement(t,sl.HTML),e.headElement=e.openElements.current,e.insertionMode=Ec.IN_HEAD;break;default:vc(e,t)}}(this,e);break;case Ec.IN_HEAD:Pc(this,e);break;case Ec.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case fl.HTML:qc(e,t);break;case fl.BASEFONT:case fl.BGSOUND:case fl.HEAD:case fl.LINK:case fl.META:case fl.NOFRAMES:case fl.STYLE:Pc(e,t);break;case fl.NOSCRIPT:e._err(t,Ga.nestedNoscriptInHead);break;default:Bc(e,t)}}(this,e);break;case Ec.AFTER_HEAD:!function(e,t){switch(t.tagID){case fl.HTML:qc(e,t);break;case fl.BODY:e._insertElement(t,sl.HTML),e.framesetOk=!1,e.insertionMode=Ec.IN_BODY;break;case fl.FRAMESET:e._insertElement(t,sl.HTML),e.insertionMode=Ec.IN_FRAMESET;break;case fl.BASE:case fl.BASEFONT:case fl.BGSOUND:case fl.LINK:case fl.META:case fl.NOFRAMES:case fl.SCRIPT:case fl.STYLE:case fl.TEMPLATE:case fl.TITLE:e._err(t,Ga.abandonedHeadElementChild),e.openElements.push(e.headElement,fl.HEAD),Pc(e,t),e.openElements.remove(e.headElement);break;case fl.HEAD:e._err(t,Ga.misplacedStartTagForHeadElement);break;default:Fc(e,t)}}(this,e);break;case Ec.IN_BODY:qc(this,e);break;case Ec.IN_TABLE:$c(this,e);break;case Ec.IN_TABLE_TEXT:nu(this,e);break;case Ec.IN_CAPTION:!function(e,t){const n=t.tagID;ru.has(n)?e.openElements.hasInTableScope(fl.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(fl.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ec.IN_TABLE,$c(e,t)):qc(e,t)}(this,e);break;case Ec.IN_COLUMN_GROUP:iu(this,e);break;case Ec.IN_TABLE_BODY:su(this,e);break;case Ec.IN_ROW:lu(this,e);break;case Ec.IN_CELL:!function(e,t){const n=t.tagID;ru.has(n)?(e.openElements.hasInTableScope(fl.TD)||e.openElements.hasInTableScope(fl.TH))&&(e._closeTableCell(),lu(e,t)):qc(e,t)}(this,e);break;case Ec.IN_SELECT:uu(this,e);break;case Ec.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===fl.CAPTION||n===fl.TABLE||n===fl.TBODY||n===fl.TFOOT||n===fl.THEAD||n===fl.TR||n===fl.TD||n===fl.TH?(e.openElements.popUntilTagNamePopped(fl.SELECT),e._resetInsertionMode(),e._processStartTag(t)):uu(e,t)}(this,e);break;case Ec.IN_TEMPLATE:!function(e,t){switch(t.tagID){case fl.BASE:case fl.BASEFONT:case fl.BGSOUND:case fl.LINK:case fl.META:case fl.NOFRAMES:case fl.SCRIPT:case fl.STYLE:case fl.TEMPLATE:case fl.TITLE:Pc(e,t);break;case fl.CAPTION:case fl.COLGROUP:case fl.TBODY:case fl.TFOOT:case fl.THEAD:e.tmplInsertionModeStack[0]=Ec.IN_TABLE,e.insertionMode=Ec.IN_TABLE,$c(e,t);break;case fl.COL:e.tmplInsertionModeStack[0]=Ec.IN_COLUMN_GROUP,e.insertionMode=Ec.IN_COLUMN_GROUP,iu(e,t);break;case fl.TR:e.tmplInsertionModeStack[0]=Ec.IN_TABLE_BODY,e.insertionMode=Ec.IN_TABLE_BODY,su(e,t);break;case fl.TD:case fl.TH:e.tmplInsertionModeStack[0]=Ec.IN_ROW,e.insertionMode=Ec.IN_ROW,lu(e,t);break;default:e.tmplInsertionModeStack[0]=Ec.IN_BODY,e.insertionMode=Ec.IN_BODY,qc(e,t)}}(this,e);break;case Ec.AFTER_BODY:!function(e,t){t.tagID===fl.HTML?qc(e,t):fu(e,t)}(this,e);break;case Ec.IN_FRAMESET:!function(e,t){switch(t.tagID){case fl.HTML:qc(e,t);break;case fl.FRAMESET:e._insertElement(t,sl.HTML);break;case fl.FRAME:e._appendElement(t,sl.HTML),t.ackSelfClosing=!0;break;case fl.NOFRAMES:Pc(e,t)}}(this,e);break;case Ec.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case fl.HTML:qc(e,t);break;case fl.NOFRAMES:Pc(e,t)}}(this,e);break;case Ec.AFTER_AFTER_BODY:!function(e,t){t.tagID===fl.HTML?qc(e,t):mu(e,t)}(this,e);break;case Ec.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case fl.HTML:qc(e,t);break;case fl.NOFRAMES:Pc(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===fl.P||t.tagID===fl.BR)return Eu(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===sl.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Ec.INITIAL:Rc(this,e);break;case Ec.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==fl.HTML&&n!==fl.HEAD&&n!==fl.BODY&&n!==fl.BR||xc(e,t)}(this,e);break;case Ec.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===fl.HEAD||n===fl.BODY||n===fl.HTML||n===fl.BR?vc(e,t):e._err(t,Ga.endTagWithoutMatchingOpenElement)}(this,e);break;case Ec.IN_HEAD:!function(e,t){switch(t.tagID){case fl.HEAD:e.openElements.pop(),e.insertionMode=Ec.AFTER_HEAD;break;case fl.BODY:case fl.BR:case fl.HTML:wc(e,t);break;case fl.TEMPLATE:Mc(e,t);break;default:e._err(t,Ga.endTagWithoutMatchingOpenElement)}}(this,e);break;case Ec.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case fl.NOSCRIPT:e.openElements.pop(),e.insertionMode=Ec.IN_HEAD;break;case fl.BR:Bc(e,t);break;default:e._err(t,Ga.endTagWithoutMatchingOpenElement)}}(this,e);break;case Ec.AFTER_HEAD:!function(e,t){switch(t.tagID){case fl.BODY:case fl.HTML:case fl.BR:Fc(e,t);break;case fl.TEMPLATE:Mc(e,t);break;default:e._err(t,Ga.endTagWithoutMatchingOpenElement)}}(this,e);break;case Ec.IN_BODY:Vc(this,e);break;case Ec.TEXT:!function(e,t){var n;t.tagID===fl.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Ec.IN_TABLE:Jc(this,e);break;case Ec.IN_TABLE_TEXT:nu(this,e);break;case Ec.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case fl.CAPTION:case fl.TABLE:e.openElements.hasInTableScope(fl.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(fl.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ec.IN_TABLE,n===fl.TABLE&&Jc(e,t));break;case fl.BODY:case fl.COL:case fl.COLGROUP:case fl.HTML:case fl.TBODY:case fl.TD:case fl.TFOOT:case fl.TH:case fl.THEAD:case fl.TR:break;default:Vc(e,t)}}(this,e);break;case Ec.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case fl.COLGROUP:e.openElements.currentTagId===fl.COLGROUP&&(e.openElements.pop(),e.insertionMode=Ec.IN_TABLE);break;case fl.TEMPLATE:Mc(e,t);break;case fl.COL:break;default:ou(e,t)}}(this,e);break;case Ec.IN_TABLE_BODY:au(this,e);break;case Ec.IN_ROW:cu(this,e);break;case Ec.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case fl.TD:case fl.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ec.IN_ROW);break;case fl.TABLE:case fl.TBODY:case fl.TFOOT:case fl.THEAD:case fl.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),cu(e,t));break;case fl.BODY:case fl.CAPTION:case fl.COL:case fl.COLGROUP:case fl.HTML:break;default:Vc(e,t)}}(this,e);break;case Ec.IN_SELECT:hu(this,e);break;case Ec.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===fl.CAPTION||n===fl.TABLE||n===fl.TBODY||n===fl.TFOOT||n===fl.THEAD||n===fl.TR||n===fl.TD||n===fl.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(fl.SELECT),e._resetInsertionMode(),e.onEndTag(t)):hu(e,t)}(this,e);break;case Ec.IN_TEMPLATE:!function(e,t){t.tagID===fl.TEMPLATE&&Mc(e,t)}(this,e);break;case Ec.AFTER_BODY:pu(this,e);break;case Ec.IN_FRAMESET:!function(e,t){t.tagID!==fl.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===fl.FRAMESET||(e.insertionMode=Ec.AFTER_FRAMESET))}(this,e);break;case Ec.AFTER_FRAMESET:!function(e,t){t.tagID===fl.HTML&&(e.insertionMode=Ec.AFTER_AFTER_FRAMESET)}(this,e);break;case Ec.AFTER_AFTER_BODY:mu(this,e)}}onEof(e){switch(this.insertionMode){case Ec.INITIAL:Rc(this,e);break;case Ec.BEFORE_HTML:xc(this,e);break;case Ec.BEFORE_HEAD:vc(this,e);break;case Ec.IN_HEAD:wc(this,e);break;case Ec.IN_HEAD_NO_SCRIPT:Bc(this,e);break;case Ec.AFTER_HEAD:Fc(this,e);break;case Ec.IN_BODY:case Ec.IN_TABLE:case Ec.IN_CAPTION:case Ec.IN_COLUMN_GROUP:case Ec.IN_TABLE_BODY:case Ec.IN_ROW:case Ec.IN_CELL:case Ec.IN_SELECT:case Ec.IN_SELECT_IN_TABLE:Qc(this,e);break;case Ec.TEXT:!function(e,t){e._err(t,Ga.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Ec.IN_TABLE_TEXT:nu(this,e);break;case Ec.IN_TEMPLATE:du(this,e);break;case Ec.AFTER_BODY:case Ec.IN_FRAMESET:case Ec.AFTER_FRAMESET:case Ec.AFTER_AFTER_BODY:case Ec.AFTER_AFTER_FRAMESET:Lc(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===La.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Ec.IN_HEAD:case Ec.IN_HEAD_NO_SCRIPT:case Ec.AFTER_HEAD:case Ec.TEXT:case Ec.IN_COLUMN_GROUP:case Ec.IN_SELECT:case Ec.IN_SELECT_IN_TABLE:case Ec.IN_FRAMESET:case Ec.AFTER_FRAMESET:this._insertCharacters(e);break;case Ec.IN_BODY:case Ec.IN_CAPTION:case Ec.IN_CELL:case Ec.IN_TEMPLATE:case Ec.AFTER_BODY:case Ec.AFTER_AFTER_BODY:case Ec.AFTER_AFTER_FRAMESET:Uc(this,e);break;case Ec.IN_TABLE:case Ec.IN_TABLE_BODY:case Ec.IN_ROW:Xc(this,e);break;case Ec.IN_TABLE_TEXT:eu(this,e)}}}function Nc(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Wc(e,t),n}function Ic(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Cc(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,s=i;s!==n;o++,s=i){i=e.openElements.getCommonAncestor(s);const n=e.activeFormattingElements.getElementEntry(s),a=n&&o>=3;!n||a?(a&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=yc(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function yc(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function kc(e,t,n){const r=Nl(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===fl.TEMPLATE&&i===sl.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function bc(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function Dc(e,t){for(let n=0;n<8;n++){const n=Nc(e,t);if(!n)break;const r=Ic(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const i=Cc(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),o&&kc(e,o,i),bc(e,r,n)}}function Oc(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Lc(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Rc(e,t){e._err(t,Ga.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ul.QUIRKS),e.insertionMode=Ec.BEFORE_HTML,e._processToken(t)}function xc(e,t){e._insertFakeRootElement(),e.insertionMode=Ec.BEFORE_HEAD,e._processToken(t)}function vc(e,t){e._insertFakeElement(dl.HEAD,fl.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ec.IN_HEAD,e._processToken(t)}function Pc(e,t){switch(t.tagID){case fl.HTML:qc(e,t);break;case fl.BASE:case fl.BASEFONT:case fl.BGSOUND:case fl.LINK:case fl.META:e._appendElement(t,sl.HTML),t.ackSelfClosing=!0;break;case fl.TITLE:e._switchToTextParsing(t,Dl.RCDATA);break;case fl.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Dl.RAWTEXT):(e._insertElement(t,sl.HTML),e.insertionMode=Ec.IN_HEAD_NO_SCRIPT);break;case fl.NOFRAMES:case fl.STYLE:e._switchToTextParsing(t,Dl.RAWTEXT);break;case fl.SCRIPT:e._switchToTextParsing(t,Dl.SCRIPT_DATA);break;case fl.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ec.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ec.IN_TEMPLATE);break;case fl.HEAD:e._err(t,Ga.misplacedStartTagForHeadElement);break;default:wc(e,t)}}function Mc(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==fl.TEMPLATE&&e._err(t,Ga.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(fl.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Ga.endTagWithoutMatchingOpenElement)}function wc(e,t){e.openElements.pop(),e.insertionMode=Ec.AFTER_HEAD,e._processToken(t)}function Bc(e,t){const n=t.type===Ka.EOF?Ga.openElementsLeftAfterEof:Ga.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Ec.IN_HEAD,e._processToken(t)}function Fc(e,t){e._insertFakeElement(dl.BODY,fl.BODY),e.insertionMode=Ec.IN_BODY,Hc(e,t)}function Hc(e,t){switch(t.type){case Ka.CHARACTER:Gc(e,t);break;case Ka.WHITESPACE_CHARACTER:Uc(e,t);break;case Ka.COMMENT:Oc(e,t);break;case Ka.START_TAG:qc(e,t);break;case Ka.END_TAG:Vc(e,t);break;case Ka.EOF:Qc(e,t)}}function Uc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Gc(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function jc(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,sl.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Yc(e){const t=qa(e,ll.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function Kc(e,t){e._switchToTextParsing(t,Dl.RAWTEXT)}function zc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,sl.HTML)}function qc(e,t){switch(t.tagID){case fl.I:case fl.S:case fl.B:case fl.U:case fl.EM:case fl.TT:case fl.BIG:case fl.CODE:case fl.FONT:case fl.SMALL:case fl.STRIKE:case fl.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,sl.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case fl.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(dl.A);n&&(Dc(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,sl.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case fl.H1:case fl.H2:case fl.H3:case fl.H4:case fl.H5:case fl.H6:!function(e,t){e.openElements.hasInButtonScope(fl.P)&&e._closePElement(),yl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,sl.HTML)}(e,t);break;case fl.P:case fl.DL:case fl.OL:case fl.UL:case fl.DIV:case fl.DIR:case fl.NAV:case fl.MAIN:case fl.MENU:case fl.ASIDE:case fl.CENTER:case fl.FIGURE:case fl.FOOTER:case fl.HEADER:case fl.HGROUP:case fl.DIALOG:case fl.DETAILS:case fl.ADDRESS:case fl.ARTICLE:case fl.SEARCH:case fl.SECTION:case fl.SUMMARY:case fl.FIELDSET:case fl.BLOCKQUOTE:case fl.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(fl.P)&&e._closePElement(),e._insertElement(t,sl.HTML)}(e,t);break;case fl.LI:case fl.DD:case fl.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===fl.LI&&t===fl.LI||(n===fl.DD||n===fl.DT)&&(t===fl.DD||t===fl.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==fl.ADDRESS&&t!==fl.DIV&&t!==fl.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(fl.P)&&e._closePElement(),e._insertElement(t,sl.HTML)}(e,t);break;case fl.BR:case fl.IMG:case fl.WBR:case fl.AREA:case fl.EMBED:case fl.KEYGEN:jc(e,t);break;case fl.HR:!function(e,t){e.openElements.hasInButtonScope(fl.P)&&e._closePElement(),e._appendElement(t,sl.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case fl.RB:case fl.RTC:!function(e,t){e.openElements.hasInScope(fl.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,sl.HTML)}(e,t);break;case fl.RT:case fl.RP:!function(e,t){e.openElements.hasInScope(fl.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(fl.RTC),e._insertElement(t,sl.HTML)}(e,t);break;case fl.PRE:case fl.LISTING:!function(e,t){e.openElements.hasInButtonScope(fl.P)&&e._closePElement(),e._insertElement(t,sl.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case fl.XMP:!function(e,t){e.openElements.hasInButtonScope(fl.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Dl.RAWTEXT)}(e,t);break;case fl.SVG:!function(e,t){e._reconstructActiveFormattingElements(),pc(t),fc(t),t.selfClosing?e._appendElement(t,sl.SVG):e._insertElement(t,sl.SVG),t.ackSelfClosing=!0}(e,t);break;case fl.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case fl.BASE:case fl.LINK:case fl.META:case fl.STYLE:case fl.TITLE:case fl.SCRIPT:case fl.BGSOUND:case fl.BASEFONT:case fl.TEMPLATE:Pc(e,t);break;case fl.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case fl.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(fl.P)&&e._closePElement(),e._insertElement(t,sl.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case fl.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(fl.NOBR)&&(Dc(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,sl.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case fl.MATH:!function(e,t){e._reconstructActiveFormattingElements(),dc(t),fc(t),t.selfClosing?e._appendElement(t,sl.MATHML):e._insertElement(t,sl.MATHML),t.ackSelfClosing=!0}(e,t);break;case fl.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==ul.QUIRKS&&e.openElements.hasInButtonScope(fl.P)&&e._closePElement(),e._insertElement(t,sl.HTML),e.framesetOk=!1,e.insertionMode=Ec.IN_TABLE}(e,t);break;case fl.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,sl.HTML),Yc(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case fl.PARAM:case fl.TRACK:case fl.SOURCE:!function(e,t){e._appendElement(t,sl.HTML),t.ackSelfClosing=!0}(e,t);break;case fl.IMAGE:!function(e,t){t.tagName=dl.IMG,t.tagID=fl.IMG,jc(e,t)}(e,t);break;case fl.BUTTON:!function(e,t){e.openElements.hasInScope(fl.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(fl.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,sl.HTML),e.framesetOk=!1}(e,t);break;case fl.APPLET:case fl.OBJECT:case fl.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,sl.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case fl.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Dl.RAWTEXT)}(e,t);break;case fl.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,sl.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ec.IN_TABLE||e.insertionMode===Ec.IN_CAPTION||e.insertionMode===Ec.IN_TABLE_BODY||e.insertionMode===Ec.IN_ROW||e.insertionMode===Ec.IN_CELL?Ec.IN_SELECT_IN_TABLE:Ec.IN_SELECT}(e,t);break;case fl.OPTION:case fl.OPTGROUP:!function(e,t){e.openElements.currentTagId===fl.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,sl.HTML)}(e,t);break;case fl.NOEMBED:case fl.NOFRAMES:Kc(e,t);break;case fl.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,sl.HTML),e.insertionMode=Ec.IN_FRAMESET)}(e,t);break;case fl.TEXTAREA:!function(e,t){e._insertElement(t,sl.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Dl.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ec.TEXT}(e,t);break;case fl.NOSCRIPT:e.options.scriptingEnabled?Kc(e,t):zc(e,t);break;case fl.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(fl.P)&&e._closePElement(),e._insertElement(t,sl.HTML),e.tokenizer.state=Dl.PLAINTEXT}(e,t);break;case fl.COL:case fl.TH:case fl.TD:case fl.TR:case fl.HEAD:case fl.FRAME:case fl.TBODY:case fl.TFOOT:case fl.THEAD:case fl.CAPTION:case fl.COLGROUP:break;default:zc(e,t)}}function Wc(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const t=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==fl.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(t,o))break}}function Vc(e,t){switch(t.tagID){case fl.A:case fl.B:case fl.I:case fl.S:case fl.U:case fl.EM:case fl.TT:case fl.BIG:case fl.CODE:case fl.FONT:case fl.NOBR:case fl.SMALL:case fl.STRIKE:case fl.STRONG:Dc(e,t);break;case fl.P:!function(e){e.openElements.hasInButtonScope(fl.P)||e._insertFakeElement(dl.P,fl.P),e._closePElement()}(e);break;case fl.DL:case fl.UL:case fl.OL:case fl.DIR:case fl.DIV:case fl.NAV:case fl.PRE:case fl.MAIN:case fl.MENU:case fl.ASIDE:case fl.BUTTON:case fl.CENTER:case fl.FIGURE:case fl.FOOTER:case fl.HEADER:case fl.HGROUP:case fl.DIALOG:case fl.ADDRESS:case fl.ARTICLE:case fl.DETAILS:case fl.SEARCH:case fl.SECTION:case fl.SUMMARY:case fl.LISTING:case fl.FIELDSET:case fl.BLOCKQUOTE:case fl.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case fl.LI:!function(e){e.openElements.hasInListItemScope(fl.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(fl.LI),e.openElements.popUntilTagNamePopped(fl.LI))}(e);break;case fl.DD:case fl.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case fl.H1:case fl.H2:case fl.H3:case fl.H4:case fl.H5:case fl.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case fl.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(dl.BR,fl.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case fl.BODY:!function(e,t){if(e.openElements.hasInScope(fl.BODY)&&(e.insertionMode=Ec.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case fl.HTML:!function(e,t){e.openElements.hasInScope(fl.BODY)&&(e.insertionMode=Ec.AFTER_BODY,pu(e,t))}(e,t);break;case fl.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(fl.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(fl.FORM):n&&e.openElements.remove(n))}(e);break;case fl.APPLET:case fl.OBJECT:case fl.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case fl.TEMPLATE:Mc(e,t);break;default:Wc(e,t)}}function Qc(e,t){e.tmplInsertionModeStack.length>0?du(e,t):Lc(e,t)}function Xc(e,t){if(Ac.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ec.IN_TABLE_TEXT,t.type){case Ka.CHARACTER:tu(e,t);break;case Ka.WHITESPACE_CHARACTER:eu(e,t)}else Zc(e,t)}function $c(e,t){switch(t.tagID){case fl.TD:case fl.TH:case fl.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(dl.TBODY,fl.TBODY),e.insertionMode=Ec.IN_TABLE_BODY,su(e,t)}(e,t);break;case fl.STYLE:case fl.SCRIPT:case fl.TEMPLATE:Pc(e,t);break;case fl.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(dl.COLGROUP,fl.COLGROUP),e.insertionMode=Ec.IN_COLUMN_GROUP,iu(e,t)}(e,t);break;case fl.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,sl.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case fl.TABLE:!function(e,t){e.openElements.hasInTableScope(fl.TABLE)&&(e.openElements.popUntilTagNamePopped(fl.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case fl.TBODY:case fl.TFOOT:case fl.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,sl.HTML),e.insertionMode=Ec.IN_TABLE_BODY}(e,t);break;case fl.INPUT:!function(e,t){Yc(t)?e._appendElement(t,sl.HTML):Zc(e,t),t.ackSelfClosing=!0}(e,t);break;case fl.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,sl.HTML),e.insertionMode=Ec.IN_CAPTION}(e,t);break;case fl.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,sl.HTML),e.insertionMode=Ec.IN_COLUMN_GROUP}(e,t);break;default:Zc(e,t)}}function Jc(e,t){switch(t.tagID){case fl.TABLE:e.openElements.hasInTableScope(fl.TABLE)&&(e.openElements.popUntilTagNamePopped(fl.TABLE),e._resetInsertionMode());break;case fl.TEMPLATE:Mc(e,t);break;case fl.BODY:case fl.CAPTION:case fl.COL:case fl.COLGROUP:case fl.HTML:case fl.TBODY:case fl.TD:case fl.TFOOT:case fl.TH:case fl.THEAD:case fl.TR:break;default:Zc(e,t)}}function Zc(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Hc(e,t),e.fosterParentingEnabled=n}function eu(e,t){e.pendingCharacterTokens.push(t)}function tu(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function nu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Zc(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const ru=new Set([fl.CAPTION,fl.COL,fl.COLGROUP,fl.TBODY,fl.TD,fl.TFOOT,fl.TH,fl.THEAD,fl.TR]);function iu(e,t){switch(t.tagID){case fl.HTML:qc(e,t);break;case fl.COL:e._appendElement(t,sl.HTML),t.ackSelfClosing=!0;break;case fl.TEMPLATE:Pc(e,t);break;default:ou(e,t)}}function ou(e,t){e.openElements.currentTagId===fl.COLGROUP&&(e.openElements.pop(),e.insertionMode=Ec.IN_TABLE,e._processToken(t))}function su(e,t){switch(t.tagID){case fl.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,sl.HTML),e.insertionMode=Ec.IN_ROW;break;case fl.TH:case fl.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(dl.TR,fl.TR),e.insertionMode=Ec.IN_ROW,lu(e,t);break;case fl.CAPTION:case fl.COL:case fl.COLGROUP:case fl.TBODY:case fl.TFOOT:case fl.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ec.IN_TABLE,$c(e,t));break;default:$c(e,t)}}function au(e,t){const n=t.tagID;switch(t.tagID){case fl.TBODY:case fl.TFOOT:case fl.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ec.IN_TABLE);break;case fl.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ec.IN_TABLE,Jc(e,t));break;case fl.BODY:case fl.CAPTION:case fl.COL:case fl.COLGROUP:case fl.HTML:case fl.TD:case fl.TH:case fl.TR:break;default:Jc(e,t)}}function lu(e,t){switch(t.tagID){case fl.TH:case fl.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,sl.HTML),e.insertionMode=Ec.IN_CELL,e.activeFormattingElements.insertMarker();break;case fl.CAPTION:case fl.COL:case fl.COLGROUP:case fl.TBODY:case fl.TFOOT:case fl.THEAD:case fl.TR:e.openElements.hasInTableScope(fl.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ec.IN_TABLE_BODY,su(e,t));break;default:$c(e,t)}}function cu(e,t){switch(t.tagID){case fl.TR:e.openElements.hasInTableScope(fl.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ec.IN_TABLE_BODY);break;case fl.TABLE:e.openElements.hasInTableScope(fl.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ec.IN_TABLE_BODY,au(e,t));break;case fl.TBODY:case fl.TFOOT:case fl.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(fl.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ec.IN_TABLE_BODY,au(e,t));break;case fl.BODY:case fl.CAPTION:case fl.COL:case fl.COLGROUP:case fl.HTML:case fl.TD:case fl.TH:break;default:Jc(e,t)}}function uu(e,t){switch(t.tagID){case fl.HTML:qc(e,t);break;case fl.OPTION:e.openElements.currentTagId===fl.OPTION&&e.openElements.pop(),e._insertElement(t,sl.HTML);break;case fl.OPTGROUP:e.openElements.currentTagId===fl.OPTION&&e.openElements.pop(),e.openElements.currentTagId===fl.OPTGROUP&&e.openElements.pop(),e._insertElement(t,sl.HTML);break;case fl.HR:e.openElements.currentTagId===fl.OPTION&&e.openElements.pop(),e.openElements.currentTagId===fl.OPTGROUP&&e.openElements.pop(),e._appendElement(t,sl.HTML),t.ackSelfClosing=!0;break;case fl.INPUT:case fl.KEYGEN:case fl.TEXTAREA:case fl.SELECT:e.openElements.hasInSelectScope(fl.SELECT)&&(e.openElements.popUntilTagNamePopped(fl.SELECT),e._resetInsertionMode(),t.tagID!==fl.SELECT&&e._processStartTag(t));break;case fl.SCRIPT:case fl.TEMPLATE:Pc(e,t)}}function hu(e,t){switch(t.tagID){case fl.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===fl.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===fl.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===fl.OPTGROUP&&e.openElements.pop();break;case fl.OPTION:e.openElements.currentTagId===fl.OPTION&&e.openElements.pop();break;case fl.SELECT:e.openElements.hasInSelectScope(fl.SELECT)&&(e.openElements.popUntilTagNamePopped(fl.SELECT),e._resetInsertionMode());break;case fl.TEMPLATE:Mc(e,t)}}function du(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(fl.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Lc(e,t)}function pu(e,t){var n;if(t.tagID===fl.HTML){if(e.fragmentContext||(e.insertionMode=Ec.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===fl.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else fu(e,t)}function fu(e,t){e.insertionMode=Ec.IN_BODY,Hc(e,t)}function mu(e,t){e.insertionMode=Ec.IN_BODY,Hc(e,t)}function Eu(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==sl.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}dl.AREA,dl.BASE,dl.BASEFONT,dl.BGSOUND,dl.BR,dl.COL,dl.EMBED,dl.FRAME,dl.HR,dl.IMG,dl.INPUT,dl.KEYGEN,dl.LINK,dl.META,dl.PARAM,dl.SOURCE,dl.TRACK,dl.WBR;const Tu=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,gu=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Au={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function _u(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=po("type",{handlers:{root:Nu,element:Iu,text:Cu,comment:bu,doctype:yu,raw:Du},unknown:Ou}),i={parser:n?new Sc(Au):Sc.getFragmentParser(void 0,Au),handle(e){r(e,i)},stitches:!1,options:t||{}};r(e,i),Lu(i,qe());const o=function(e,t){const n=t||{};return ws({file:n.file||void 0,location:!1,schema:"svg"===n.space?Te:Ee,verbose:n.verbose||!1},e)}(n?i.parser.document:i.parser.getFragment(),{file:i.options.file});return i.stitches&&Br(o,"comment",(function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}})),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function Su(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Nu(e,t){Su(e.children,t)}function Iu(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Dl.PLAINTEXT)return;Lu(t,qe(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:vs.html;i===vs.html&&"svg"===n&&(i=vs.svg);const o=function(e,t){const n=(t||Sa).space;return Ia(e,"svg"===n?_a:Aa)}({...e,children:[]},{space:i===vs.svg?"svg":"html"}),s={type:Ka.START_TAG,tagName:n,tagID:Nl(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:xu(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),Su(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&ba.includes(n))return;if(t.parser.tokenizer.state===Dl.PLAINTEXT)return;Lu(t,ze(e));const r={type:Ka.END_TAG,tagName:n,tagID:Nl(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:xu(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==Dl.RCDATA&&t.parser.tokenizer.state!==Dl.RAWTEXT&&t.parser.tokenizer.state!==Dl.SCRIPT_DATA||(t.parser.tokenizer.state=Dl.DATA)}(e,t)}function Cu(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ka.CHARACTER,chars:e.value,location:xu(e)};Lu(t,qe(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function yu(e,t){const n={type:Ka.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:xu(e)};Lu(t,qe(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ku(e,t){t.stitches=!0;const n=function(e){return br("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=_u({type:"root",children:e.children},t.options);n.children=r.children}bu({type:"comment",value:{stitch:n}},t)}function bu(e,t){const n=e.value,r={type:Ka.COMMENT,data:n,location:xu(e)};Lu(t,qe(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Du(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Ru(t,qe(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Tu,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function Ou(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw gu.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}ku(n,t)}function Lu(e,t){Ru(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Dl.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ru(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function xu(e){const t=qe(e)||{line:void 0,column:void 0,offset:void 0},n=ze(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function vu(e){return function(t,n){return _u(t,{...e,file:n})}}var Pu={},Mu=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype};!function(e){var t,n,r,i=Mu;e.BLOCKS=void 0,(t=e.BLOCKS||(e.BLOCKS={})).DOCUMENT="document",t.PARAGRAPH="paragraph",t.HEADING_1="heading-1",t.HEADING_2="heading-2",t.HEADING_3="heading-3",t.HEADING_4="heading-4",t.HEADING_5="heading-5",t.HEADING_6="heading-6",t.OL_LIST="ordered-list",t.UL_LIST="unordered-list",t.LIST_ITEM="list-item",t.HR="hr",t.QUOTE="blockquote",t.EMBEDDED_ENTRY="embedded-entry-block",t.EMBEDDED_ASSET="embedded-asset-block",t.EMBEDDED_RESOURCE="embedded-resource-block",t.TABLE="table",t.TABLE_ROW="table-row",t.TABLE_CELL="table-cell",t.TABLE_HEADER_CELL="table-header-cell",e.INLINES=void 0,(n=e.INLINES||(e.INLINES={})).ASSET_HYPERLINK="asset-hyperlink",n.EMBEDDED_ENTRY="embedded-entry-inline",n.EMBEDDED_RESOURCE="embedded-resource-inline",n.ENTRY_HYPERLINK="entry-hyperlink",n.HYPERLINK="hyperlink",n.RESOURCE_HYPERLINK="resource-hyperlink",e.MARKS=void 0,(r=e.MARKS||(e.MARKS={})).BOLD="bold",r.ITALIC="italic",r.UNDERLINE="underline",r.CODE="code",r.SUPERSCRIPT="superscript",r.SUBSCRIPT="subscript",r.STRIKETHROUGH="strikethrough";var o,s=function(e,t){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function l(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var c=[e.BLOCKS.PARAGRAPH,e.BLOCKS.HEADING_1,e.BLOCKS.HEADING_2,e.BLOCKS.HEADING_3,e.BLOCKS.HEADING_4,e.BLOCKS.HEADING_5,e.BLOCKS.HEADING_6,e.BLOCKS.OL_LIST,e.BLOCKS.UL_LIST,e.BLOCKS.HR,e.BLOCKS.QUOTE,e.BLOCKS.EMBEDDED_ENTRY,e.BLOCKS.EMBEDDED_ASSET,e.BLOCKS.EMBEDDED_RESOURCE,e.BLOCKS.TABLE],u=[e.BLOCKS.PARAGRAPH,e.BLOCKS.HEADING_1,e.BLOCKS.HEADING_2,e.BLOCKS.HEADING_3,e.BLOCKS.HEADING_4,e.BLOCKS.HEADING_5,e.BLOCKS.HEADING_6,e.BLOCKS.OL_LIST,e.BLOCKS.UL_LIST,e.BLOCKS.HR,e.BLOCKS.QUOTE,e.BLOCKS.EMBEDDED_ENTRY,e.BLOCKS.EMBEDDED_ASSET,e.BLOCKS.EMBEDDED_RESOURCE],h=[e.BLOCKS.TABLE,e.BLOCKS.TABLE_ROW,e.BLOCKS.TABLE_CELL,e.BLOCKS.TABLE_HEADER_CELL],d=[e.BLOCKS.HR,e.BLOCKS.EMBEDDED_ENTRY,e.BLOCKS.EMBEDDED_ASSET,e.BLOCKS.EMBEDDED_RESOURCE],p=((o={})[e.BLOCKS.OL_LIST]=[e.BLOCKS.LIST_ITEM],o[e.BLOCKS.UL_LIST]=[e.BLOCKS.LIST_ITEM],o[e.BLOCKS.LIST_ITEM]=u,o[e.BLOCKS.QUOTE]=[e.BLOCKS.PARAGRAPH],o[e.BLOCKS.TABLE]=[e.BLOCKS.TABLE_ROW],o[e.BLOCKS.TABLE_ROW]=[e.BLOCKS.TABLE_CELL,e.BLOCKS.TABLE_HEADER_CELL],o[e.BLOCKS.TABLE_CELL]=[e.BLOCKS.PARAGRAPH,e.BLOCKS.UL_LIST,e.BLOCKS.OL_LIST],o[e.BLOCKS.TABLE_HEADER_CELL]=[e.BLOCKS.PARAGRAPH],o),f=[e.BLOCKS.HEADING_1,e.BLOCKS.HEADING_2,e.BLOCKS.HEADING_3,e.BLOCKS.HEADING_4,e.BLOCKS.HEADING_5,e.BLOCKS.HEADING_6],m=l([e.BLOCKS.PARAGRAPH],f,!0),E=[e.BLOCKS.DOCUMENT,e.BLOCKS.PARAGRAPH,e.BLOCKS.HEADING_1,e.BLOCKS.HEADING_2,e.BLOCKS.HEADING_3,e.BLOCKS.HEADING_4,e.BLOCKS.HEADING_5,e.BLOCKS.HEADING_6,e.BLOCKS.OL_LIST,e.BLOCKS.UL_LIST,e.BLOCKS.LIST_ITEM,e.BLOCKS.HR,e.BLOCKS.QUOTE,e.BLOCKS.EMBEDDED_ENTRY,e.BLOCKS.EMBEDDED_ASSET,e.INLINES.HYPERLINK,e.INLINES.ENTRY_HYPERLINK,e.INLINES.ASSET_HYPERLINK,e.INLINES.EMBEDDED_ENTRY,"text"],T=[e.MARKS.BOLD,e.MARKS.CODE,e.MARKS.ITALIC,e.MARKS.UNDERLINE],g={nodeType:e.BLOCKS.DOCUMENT,data:{},content:[{nodeType:e.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};function A(e,t){for(var n=0,r=Object.keys(e);n<r.length;n++){if(t===e[r[n]])return!0}return!1}var _,S=Object.freeze({__proto__:null,isBlock:function(t){return A(e.BLOCKS,t.nodeType)},isInline:function(t){return A(e.INLINES,t.nodeType)},isText:function(e){return"text"===e.nodeType}}),N=function(e){var t=e.path,n=e.property,r=e.typeName,i=e.value;return{details:'The type of "'.concat(n,'" is incorrect, expected type: ').concat(r),name:"type",path:t.toArray(),type:r,value:i}},I=function(){function e(e,t){var n=this;this.obj=e,this.path=t,this._errors=[],this.catch=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(e=n._errors).push.apply(e,t)},this.exists=function(e){return e in n.obj||(n.catch(function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:n.toArray()}}({property:e,path:n.path.of(e)})),!1)},this.object=function(e){var t,r=e?n.obj[e]:n.obj;if(e&&!n.exists(e))return!1;if(i(r))return!0;var o=e?n.path.of(e):n.path,s=null!==(t=null!=e?e:n.path.last())&&void 0!==t?t:"value";return n.catch(N({typeName:"Object",property:s,path:o,value:r})),!1},this.string=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&("string"==typeof t||(n.catch(N({typeName:"String",property:e,path:n.path.of(e),value:t})),!1))},this.number=function(e,t){var r=n.obj[e];return!(!t||e in n.obj)||!!n.exists(e)&&("number"==typeof r&&!Number.isNaN(r)||(n.catch(N({typeName:"Number",property:e,path:n.path.of(e),value:r})),!1))},this.array=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&(!!Array.isArray(t)||(n.catch(N({typeName:"Array",property:e,path:n.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=n.obj[e];return!("string"!=typeof r||!t.includes(r))||(n.catch(function(e){var t=e.expected,n=e.value,r=e.path;return{details:"Value must be one of expected values",name:"in",expected:l([],t,!0).sort(),path:r.toArray(),value:n}}({expected:t,value:r,path:n.path.of(e)})),!1)},this.empty=function(e){if(!n.array(e))return!1;var t=n.obj[e];return 0===t.length||(n.catch(function(e){var t=e.max,n=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:n}}({max:0,value:t,path:n.path.of(e)})),!1)},this.minLength=function(e,t){if(!n.array(e))return!1;var r=n.obj[e];return r.length>=t||(n.catch(function(e){var t=e.min,n=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:n}}({min:t,value:r,path:n.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(n.obj).sort().filter((function(t){return!e.includes(t)}));return t.forEach((function(e){return n.catch(function(e){var t=e.property,n=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:n.toArray()}}({property:e,path:n.path.of(e)}))})),0===t.length},this.each=function(e,t){if(n.array(e)){var r=n.obj[e],i=!1;r.forEach((function(r,o){if(!i){var s=t(r,n.path.of(e).of(o));s.length>0&&(i=!0),n.catch.apply(n,s)}}))}}}return Object.defineProperty(e.prototype,"errors",{get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter((function(n,r){return e._errors.findIndex((function(e){return t(n)===t(e)}))===r}))},enumerable:!1,configurable:!0}),e}(),C=[],y=function(){function e(e,t){this.contentRule=e,this.validateData=t}return e.prototype.assert=function(e,t){var n,r,i=new I(e,t);if(!i.object())return i.errors;i.noAdditionalProperties(["nodeType","data","content"]);var o=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),s=o.nodeTypes,a=o.min,l=void 0===a?0:a;if(0===s.length&&l>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(l," with no nodeTypes"));if(i.minLength("content",l),0===s.length?i.empty("content"):i.each("content",(function(e,t){var n=new I(e,t);return n.object()?(n.enum("nodeType",s),n.errors):n.errors})),i.object("data")){var c=null!==(r=null===(n=this.validateData)||void 0===n?void 0:n.call(this,e.data,t.of("data")))&&void 0!==r?r:[];i.catch.apply(i,c)}return i.errors},e}(),k=function(e){function t(t,n){var r=e.call(this,n,(function(e,t){return r.assertLink(e,t)}))||this;return r.linkType=t,r.assertLink=function(e,t){var n=new I(e,t);if(n.object("target")){var i=new I(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[r.type]),i.enum("linkType",[r.linkType]),"Link"===r.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===r.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),n.catch.apply(n,i.errors)}return n.noAdditionalProperties(["target"]),n.errors},r.type=r.linkType.startsWith("Contentful:")?"ResourceLink":"Link",r}return a(t,e),t}(y),b=function(e){function t(){var t=e.call(this,["text"],(function(e,n){return t.assertLink(e,n)}))||this;return t.assertLink=function(e,t){var n=new I(e,t);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors},t}return a(t,e),t}(y),D=function(e,t){return new y(e,t)},O=function(e,t){return new k(e,t)},L=function e(t){void 0===t&&(t=[]);var n=this;this.path=t,this.of=function(t){return new e(l(l([],n.path,!0),[t],!1))},this.isRoot=function(){return 0===n.path.length},this.last=function(){return n.path[n.path.length-1]},this.toArray=function(){return n.path}};var R=D(l(l([],Object.values(e.INLINES),!0),["text"],!1).sort()),x=D([e.BLOCKS.LIST_ITEM]),v=O("Entry",C),P=D((function(){return{nodeTypes:[e.BLOCKS.PARAGRAPH],min:1}}),(function(e,t){var n=new I(e,t);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors})),M=((_={})[e.BLOCKS.DOCUMENT]=D(c),_[e.BLOCKS.PARAGRAPH]=R,_[e.BLOCKS.HEADING_1]=R,_[e.BLOCKS.HEADING_2]=R,_[e.BLOCKS.HEADING_3]=R,_[e.BLOCKS.HEADING_4]=R,_[e.BLOCKS.HEADING_5]=R,_[e.BLOCKS.HEADING_6]=R,_[e.BLOCKS.QUOTE]=D(p[e.BLOCKS.QUOTE]),_[e.BLOCKS.EMBEDDED_ENTRY]=v,_[e.BLOCKS.EMBEDDED_ASSET]=O("Asset",C),_[e.BLOCKS.EMBEDDED_RESOURCE]=O("Contentful:Entry",C),_[e.BLOCKS.HR]=D(C),_[e.BLOCKS.OL_LIST]=x,_[e.BLOCKS.UL_LIST]=x,_[e.BLOCKS.LIST_ITEM]=D(l([],u,!0).sort()),_[e.BLOCKS.TABLE]=D((function(){return{nodeTypes:[e.BLOCKS.TABLE_ROW],min:1}})),_[e.BLOCKS.TABLE_ROW]=D((function(){return{nodeTypes:[e.BLOCKS.TABLE_CELL,e.BLOCKS.TABLE_HEADER_CELL],min:1}})),_[e.BLOCKS.TABLE_CELL]=P,_[e.BLOCKS.TABLE_HEADER_CELL]=P,_[e.INLINES.HYPERLINK]=new b,_[e.INLINES.EMBEDDED_ENTRY]=v,_[e.INLINES.EMBEDDED_RESOURCE]=O("Contentful:Entry",C),_[e.INLINES.ENTRY_HYPERLINK]=O("Entry",["text"]),_[e.INLINES.ASSET_HYPERLINK]=O("Asset",["text"]),_[e.INLINES.RESOURCE_HYPERLINK]=O("Contentful:Entry",["text"]),_);function w(e,t){if("text"===e.nodeType)return function(e,t){var n=new I(e,t);return n.object()?(n.noAdditionalProperties(["nodeType","data","value","marks"]),n.object("data"),n.each("marks",(function(e,t){var n=new I(e,t);return n.object()?(n.string("type"),n.errors):n.errors})),n.string("value"),n.errors):n.errors}(e,t);var n=M[e.nodeType].assert(e,t);if(n.length>0)return n;var r=new I(e,t);return r.each("content",(function(e,t){return w(e,t)})),r.errors}e.CONTAINERS=p,e.EMPTY_DOCUMENT=g,e.HEADINGS=f,e.LIST_ITEM_BLOCKS=u,e.TABLE_BLOCKS=h,e.TEXT_CONTAINERS=m,e.TOP_LEVEL_BLOCKS=c,e.V1_MARKS=T,e.V1_NODE_TYPES=E,e.VOID_BLOCKS=d,e.helpers=S,e.validateRichTextDocument=function(t){var n=new L,r=new I(t,n);return r.object()&&r.enum("nodeType",[e.BLOCKS.DOCUMENT]),r.errors.length>0?r.errors:w(t,n)}}(Pu);var wu,Bu,Fu=T,Hu=Pu,Uu=function(){return Uu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Uu.apply(this,arguments)};function Gu(e,t){return e.map((function(e,n){return r=ju(e,t),i=n,Fu.isValidElement(r)&&null===r.key?Fu.cloneElement(r,{key:i}):r;var r,i}))}function ju(e,t){var n=t.renderNode,r=t.renderMark,i=t.renderText,o=t.preserveWhitespace;if(Hu.helpers.isText(e)){var s=i?i(e.value):e.value;if(o&&!i){var a=(s=s.replace(/ {2,}/g,(function(e){return" ".repeat(e.length)}))).split("\n"),l=[];a.forEach((function(e,t){l.push(e),t!==a.length-1&&l.push(Fu.createElement("br",null))})),s=l}return e.marks.reduce((function(e,t){return r[t.type]?r[t.type](e):e}),s)}var c=Gu(e.content,t);return e.nodeType&&n[e.nodeType]?n[e.nodeType](e,c):Fu.createElement(Fu.Fragment,null,c)}"function"==typeof SuppressedError&&SuppressedError;var Yu=((wu={})[Hu.BLOCKS.DOCUMENT]=function(e,t){return t},wu[Hu.BLOCKS.PARAGRAPH]=function(e,t){return Fu.createElement("p",null,t)},wu[Hu.BLOCKS.HEADING_1]=function(e,t){return Fu.createElement("h1",null,t)},wu[Hu.BLOCKS.HEADING_2]=function(e,t){return Fu.createElement("h2",null,t)},wu[Hu.BLOCKS.HEADING_3]=function(e,t){return Fu.createElement("h3",null,t)},wu[Hu.BLOCKS.HEADING_4]=function(e,t){return Fu.createElement("h4",null,t)},wu[Hu.BLOCKS.HEADING_5]=function(e,t){return Fu.createElement("h5",null,t)},wu[Hu.BLOCKS.HEADING_6]=function(e,t){return Fu.createElement("h6",null,t)},wu[Hu.BLOCKS.EMBEDDED_ENTRY]=function(e,t){return Fu.createElement("div",null,t)},wu[Hu.BLOCKS.EMBEDDED_RESOURCE]=function(e,t){return Fu.createElement("div",null,t)},wu[Hu.BLOCKS.UL_LIST]=function(e,t){return Fu.createElement("ul",null,t)},wu[Hu.BLOCKS.OL_LIST]=function(e,t){return Fu.createElement("ol",null,t)},wu[Hu.BLOCKS.LIST_ITEM]=function(e,t){return Fu.createElement("li",null,t)},wu[Hu.BLOCKS.QUOTE]=function(e,t){return Fu.createElement("blockquote",null,t)},wu[Hu.BLOCKS.HR]=function(){return Fu.createElement("hr",null)},wu[Hu.BLOCKS.TABLE]=function(e,t){return Fu.createElement("table",null,Fu.createElement("tbody",null,t))},wu[Hu.BLOCKS.TABLE_ROW]=function(e,t){return Fu.createElement("tr",null,t)},wu[Hu.BLOCKS.TABLE_HEADER_CELL]=function(e,t){return Fu.createElement("th",null,t)},wu[Hu.BLOCKS.TABLE_CELL]=function(e,t){return Fu.createElement("td",null,t)},wu[Hu.INLINES.ASSET_HYPERLINK]=function(e){return zu(Hu.INLINES.ASSET_HYPERLINK,e)},wu[Hu.INLINES.ENTRY_HYPERLINK]=function(e){return zu(Hu.INLINES.ENTRY_HYPERLINK,e)},wu[Hu.INLINES.RESOURCE_HYPERLINK]=function(e){return qu(Hu.INLINES.RESOURCE_HYPERLINK,e)},wu[Hu.INLINES.EMBEDDED_ENTRY]=function(e){return zu(Hu.INLINES.EMBEDDED_ENTRY,e)},wu[Hu.INLINES.EMBEDDED_RESOURCE]=function(e,t){return qu(Hu.INLINES.EMBEDDED_RESOURCE,e)},wu[Hu.INLINES.HYPERLINK]=function(e,t){return Fu.createElement("a",{href:e.data.uri},t)},wu),Ku=((Bu={})[Hu.MARKS.BOLD]=function(e){return Fu.createElement("b",null,e)},Bu[Hu.MARKS.ITALIC]=function(e){return Fu.createElement("i",null,e)},Bu[Hu.MARKS.UNDERLINE]=function(e){return Fu.createElement("u",null,e)},Bu[Hu.MARKS.CODE]=function(e){return Fu.createElement("code",null,e)},Bu[Hu.MARKS.SUPERSCRIPT]=function(e){return Fu.createElement("sup",null,e)},Bu[Hu.MARKS.SUBSCRIPT]=function(e){return Fu.createElement("sub",null,e)},Bu[Hu.MARKS.STRIKETHROUGH]=function(e){return Fu.createElement("s",null,e)},Bu);function zu(e,t){return Fu.createElement("span",{key:t.data.target.sys.id},"type: ",t.nodeType," id: ",t.data.target.sys.id)}function qu(e,t){return Fu.createElement("span",{key:t.data.target.sys.urn},"type: ",t.nodeType," urn: ",t.data.target.sys.urn)}var Wu=function(e,t){return void 0===t&&(t={}),e?ju(e,{renderNode:Uu(Uu({},Yu),t.renderNode),renderMark:Uu(Uu({},Ku),t.renderMark),renderText:t.renderText,preserveWhitespace:t.preserveWhitespace}):null};const Vu=({seoData:t})=>{if(console.log("BLOGSEO COMPONENT RENDERING WITH:",{title:null==t?void 0:t.title,description:null==t?void 0:t.description,ogTitle:null==t?void 0:t.ogTitle,ogDescription:null==t?void 0:t.ogDescription,ogImage:(null==t?void 0:t.ogImage)?"Present":"Missing",twitterCard:null==t?void 0:t.twitterCard,twitterImage:(null==t?void 0:t.twitterImage)?"Present":"Missing"}),!t)return console.warn("BLOGSEO: No SEO data provided, using fallback"),e.jsxs(C,{children:[e.jsx("title",{children:"Blog | Enri Zhulati"}),e.jsx("meta",{name:"description",content:"Read the latest articles and insights."}),e.jsx("meta",{property:"og:title",content:"Blog | Enri Zhulati"}),e.jsx("meta",{property:"og:description",content:"Read the latest articles and insights."}),e.jsx("meta",{property:"og:type",content:"website"})]});const n={"@context":"https://schema.org","@type":t.schemaType,headline:t.title,description:t.description,image:t.ogImage,datePublished:t.publishDate,dateModified:t.modifiedDate,author:{"@type":"Person",name:t.authorName}};return e.jsxs(C,{children:[e.jsx("title",{children:t.title}),e.jsx("meta",{name:"description",content:t.excerpt||t.description}),e.jsx("meta",{name:"keywords",content:t.keywords}),e.jsx("link",{rel:"canonical",href:t.canonicalUrl}),e.jsx("meta",{property:"og:type",content:t.ogType}),e.jsx("meta",{property:"og:title",content:t.ogTitle}),e.jsx("meta",{property:"og:description",content:t.excerpt||t.ogDescription||t.description}),t.ogImage&&e.jsx("meta",{property:"og:image",content:t.ogImage}),e.jsx("meta",{property:"og:url",content:t.canonicalUrl}),e.jsx("meta",{property:"og:site_name",content:"Enri Zhulati"}),t.ogImage&&e.jsx("meta",{property:"og:image:width",content:"1200"}),t.ogImage&&e.jsx("meta",{property:"og:image:height",content:"630"}),e.jsx("meta",{property:"og:locale",content:"en_US"}),e.jsx("meta",{property:"article:published_time",content:t.publishDate}),e.jsx("meta",{property:"article:modified_time",content:t.modifiedDate}),e.jsx("meta",{property:"article:author",content:t.authorName}),t.keywords&&e.jsx("meta",{property:"article:tag",content:t.keywords}),e.jsx("meta",{name:"twitter:card",content:t.twitterCard}),e.jsx("meta",{name:"twitter:title",content:t.twitterTitle}),e.jsx("meta",{name:"twitter:description",content:t.excerpt||t.twitterDescription||t.description}),t.twitterImage&&e.jsx("meta",{name:"twitter:image",content:t.twitterImage}),e.jsx("meta",{name:"twitter:site",content:"@enrizhulati"}),e.jsx("meta",{name:"twitter:creator",content:"@enrizhulati"}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify(n)})]})},Qu=({contentSelector:s,headingSelector:a="h2, h3, h4",maxDepth:l=3,smooth:c=!0,offset:u=80,title:h="Table of Contents",containerClassName:d=""})=>{const[p,f]=T.useState([]),[m,E]=T.useState(""),[g,A]=T.useState(!1),[_,S]=T.useState(!1),[N,I]=T.useState(!1),[C,k]=T.useState(null),[b,D]=T.useState(null),[O,L]=T.useState(!1),[R,x]=T.useState(0),v=T.useRef(null),P=T.useRef(null),{isDarkMode:M}=y();T.useEffect((()=>(p.length>0&&(v.current&&v.current.disconnect(),v.current=new IntersectionObserver((e=>{if(N)return;const t=e.filter((e=>e.isIntersecting));if(t.length>0)E(t[0].target.id);else if(e.length>0){const t=[...e].sort(((e,t)=>{const n=e.boundingClientRect.y,r=t.boundingClientRect.y;return Math.abs(n)-Math.abs(r)}));E(t[0].target.id)}}),{rootMargin:`-${u}px 0px -20% 0px`,threshold:[0,.25,.5,.75,1]}),p.forEach((e=>{var t;e.element&&(null==(t=v.current)||t.observe(e.element))}))),()=>{var e;null==(e=v.current)||e.disconnect()})),[p,u,N]),T.useEffect((()=>{const e=setTimeout((()=>{const e=(()=>{const e=document.querySelector(s);return e?Array.from(e.querySelectorAll(a)).filter((e=>parseInt(e.tagName.charAt(1))<=l)).map(((e,t)=>{if(!e.id){const n=`heading-${(e.textContent||"").toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-")}-${t}`;e.id=n}return{id:e.id,text:e.textContent||"",level:parseInt(e.tagName.charAt(1)),element:e}})):[]})();f(e),e.length>0&&!m&&E(e[0].id)}),500);return()=>clearTimeout(e)}),[s,a,l]);const w=()=>{S(!_),document.body.style.overflow=_?"":"hidden"};T.useEffect((()=>{const e=e=>{_&&P.current&&!P.current.contains(e.target)&&(S(!1),document.body.style.overflow="")};return _&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),document.body.style.overflow=""}}),[_]);if(0===p.length)return null;const B=M?"bg-gray-800 border-gray-700 text-gray-300":"bg-white border-gray-200 text-gray-700",F=M?"text-white":"text-gray-900",H=M?"text-blue-400 border-blue-500 bg-blue-900/20":"text-blue-600 border-blue-500 bg-blue-50",U=M?"text-gray-400 hover:text-gray-300 hover:bg-gray-800/60":"text-gray-600 hover:text-gray-900 hover:bg-gray-50",G=M?"bg-gray-800 border-gray-700 text-gray-300 hover:bg-gray-700":"bg-gray-100 border-gray-200 text-gray-700 hover:bg-gray-200",j=M?"bg-blue-600 border-blue-700 text-white":"bg-blue-600 border-blue-500 text-white",Y=M?"bg-gray-900/80":"bg-gray-800/50",K=M?"bg-gray-600":"bg-gray-300",z=O&&R>0?{transform:`translateY(${R}%)`}:{};return e.jsxs(e.Fragment,{children:[e.jsx("button",{onClick:w,className:`lg:hidden fixed right-4 bottom-20 z-40 p-3 rounded-full shadow-lg border ${j} flex items-center justify-center transition-transform toc-mobile-trigger`,"aria-label":"Toggle table of contents",children:e.jsx(t,{size:20})}),_&&e.jsx("div",{className:`lg:hidden fixed inset-0 z-40 ${Y} backdrop-blur-sm transition-opacity toc-backdrop`,onClick:()=>{S(!1),document.body.style.overflow=""},style:{opacity:O?1-R/100:1}}),e.jsxs("div",{ref:P,className:`${d} ${B} border rounded-lg overflow-hidden shadow-lg transition-all duration-300\n lg:sticky lg:top-24 lg:max-h-[calc(100vh-120px)] lg:max-w-xs lg:w-full lg:overflow-y-auto\n ${g?"lg:max-h-14":""}\n ${_?"fixed bottom-16 left-4 right-4 z-50 max-h-[70vh] overflow-y-auto rounded-lg toc-mobile-open animate-slide-up":"hidden lg:block"}\n `,onTouchStart:e=>{k(e.touches[0].clientY),D(e.touches[0].clientY),L(!0)},onTouchMove:e=>{var t;if(!O||null===C)return;const n=e.touches[0].clientY;D(n);const r=n-C;if(r>0){const e=(null==(t=P.current)?void 0:t.offsetHeight)||300,n=Math.min(100,r/e*100);x(n)}},onTouchEnd:()=>{O&&(L(!1),R>20&&(S(!1),document.body.style.overflow=""),x(0),k(null),D(null))},style:z,children:[_&&e.jsx("div",{className:"lg:hidden flex justify-center py-1.5 touch-none",children:e.jsx("div",{className:`w-12 h-1 rounded-full ${K}`})}),e.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-gray-200 dark:border-gray-800 sticky top-0 z-10 bg-inherit",children:[e.jsxs("h2",{className:`text-base font-semibold ${F} flex items-center`,children:[e.jsx(n,{size:16,className:"mr-2"}),h]}),_&&e.jsx("button",{onClick:w,className:"lg:hidden p-2 rounded-full bg-gray-100 dark:bg-gray-700 text-gray-500 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors","aria-label":"Close table of contents",children:e.jsx(r,{size:18})}),e.jsx("button",{onClick:()=>A(!g),className:`p-1.5 rounded ${G} transition-colors lg:block hidden`,"aria-label":g?"Expand table of contents":"Collapse table of contents",children:g?e.jsx(i,{size:16}):e.jsx(o,{size:16})})]}),e.jsx("nav",{className:`p-2 ${g?"lg:hidden":""} toc-nav`,children:e.jsx("ul",{className:"space-y-1",children:p.map((t=>{const n=m===t.id,r="ml-"+4*(t.level-2);return e.jsx("li",{className:r,children:e.jsx("a",{href:`#${t.id}`,onClick:e=>{e.preventDefault(),(e=>{const t=document.getElementById(e);if(!t)return;I(!0),E(e),_&&S(!1);const n=t.getBoundingClientRect().top+window.pageYOffset-u;c?(window.scrollTo({top:n,behavior:"smooth"}),setTimeout((()=>I(!1)),1e3)):(window.scrollTo(0,n),I(!1))})(t.id)},className:"block py-1.5 px-3 text-sm rounded-md border-l-2 transition-all "+(n?`${H} border-l-2 font-medium`:`${U} border-transparent`),children:t.text})},t.id)}))})}),_&&e.jsxs("div",{className:"lg:hidden flex justify-center items-center py-3 text-sm text-gray-500 dark:text-gray-400 border-t border-gray-200 dark:border-gray-800",children:[e.jsx(o,{size:14,className:"mr-2"}),e.jsx("span",{children:"Swipe down to close"})]})]})]})},Xu=()=>{var t,n,r,i,o,m,E,C,O,L,R,x,v,P,M,w,B,F,H,U,G,j,Y,K,z,q,W,V,Q,X,$,J,Z,ee,te,ne,re,ie,oe,se,ae,le;const{slug:ce}=g(),[ue,he]=T.useState(null),[de,pe]=T.useState(!0),[fe,me]=T.useState(null),[Ee,Te]=T.useState(!1),[ge,Ae]=T.useState(!1),[_e,Se]=T.useState(!1),[Ne,Ie]=T.useState(""),[Ce,ye]=T.useState(null),[ke,be]=T.useState([]),{isDarkMode:De}=y(),Oe=I();T.useEffect((()=>{console.log("Setting up global error handler");const e=e=>{console.error("GLOBAL ERROR:",e);const t=document.createElement("div");t.style.position="fixed",t.style.bottom="0",t.style.left="0",t.style.right="0",t.style.background="red",t.style.color="white",t.style.padding="20px",t.style.zIndex="9999",t.innerText=`Error: ${e.message||"Unknown error"}`,document.body.appendChild(t)};window.addEventListener("error",e);const t=window.location.pathname;if(console.log("CURRENT URL PATH:",t),t.includes("/blog/")){const e=t.split("/blog/")[1];console.log("POST ID FROM URL:",e)}return()=>{window.removeEventListener("error",e)}}),[]),T.useEffect((()=>{console.log("BLOG POST COMPONENT MOUNTED. Slug:",ce)}),[ce]),T.useEffect((()=>{if(!ce)return void console.log("NO SLUG FOUND");(async()=>{var e,t;console.log("FETCHING POST WITH SLUG OR CUSTOM URL:",ce),pe(!0);try{0,console.log("TRYING TO FETCH BY SLUG:",ce);let i=await _(ce);if(i||(console.log(`POST NOT FOUND BY SLUG "${ce}", TRYING AS CUSTOM URL...`),i=await S(ce)),i||(console.log(`POST NOT FOUND BY CUSTOM URL "${ce}", TRYING AS ID...`),i=await N(ce)),i){console.log("POST FOUND!",{id:null==(e=i.sys)?void 0:e.id,title:null==(t=i.fields)?void 0:t.title,bodyType:typeof i.fields.body,hasBody:!!i.fields.body,hasRecommendedPosts:!!i.fields.recommendedPosts});try{const e=await(async e=>{var t,n,r,i,o,s,a,l,c,u,h,d,p,f,m,E;let T=await _(e);return T||(T=await S(e)),T||(T=await N(e)),T?(console.log("SEO FIELDS FROM CONTENTFUL:",{title:T.fields.title,metaTitle:T.fields.metaTitle,metaDescription:T.fields.metaDescription,featuredImage:T.fields.featuredImage?"Present":"Missing",image:T.fields.image?"Present":"Missing",ogTitle:T.fields.ogTitle,ogDescription:T.fields.ogDescription,canonicalUrl:T.fields.canonicalUrl,twitterCardType:T.fields.twitterCardType,seoKeywords:T.fields.seoKeywords}),{title:T.fields.metaTitle||T.fields.title||"",description:T.fields.metaDescription||T.fields.excerpt||"",excerpt:T.fields.excerpt||"",keywords:(null==(t=T.fields.seoKeywords)?void 0:t.join(", "))||(null==(n=T.fields.categories)?void 0:n.join(", "))||"",canonicalUrl:T.fields.canonicalUrl||`${window.location.origin}/blog/${T.fields.customUrl||T.fields.slug||T.sys.id||""}`,ogTitle:T.fields.ogTitle||T.fields.metaTitle||T.fields.title||"",ogDescription:T.fields.ogDescription||T.fields.metaDescription||T.fields.excerpt||"",ogImage:(null==(o=null==(i=null==(r=T.fields.featuredImage)?void 0:r.fields)?void 0:i.file)?void 0:o.url)?`https:${T.fields.featuredImage.fields.file.url}?fm=webp&w=1200&h=630&fit=fill`:(null==(l=null==(a=null==(s=T.fields.image)?void 0:s.fields)?void 0:a.file)?void 0:l.url)?`https:${T.fields.image.fields.file.url}?fm=webp&w=1200&h=630&fit=fill`:null,ogType:"article",twitterCard:T.fields.twitterCardType||"summary_large_image",twitterTitle:T.fields.ogTitle||T.fields.metaTitle||T.fields.title||"",twitterDescription:T.fields.ogDescription||T.fields.metaDescription||T.fields.excerpt||"",twitterImage:(null==(h=null==(u=null==(c=T.fields.featuredImage)?void 0:c.fields)?void 0:u.file)?void 0:h.url)?`https:${T.fields.featuredImage.fields.file.url}?fm=webp&w=1200&h=630&fit=fill`:(null==(f=null==(p=null==(d=T.fields.image)?void 0:d.fields)?void 0:p.file)?void 0:f.url)?`https:${T.fields.image.fields.file.url}?fm=webp&w=1200&h=630&fit=fill`:null,schemaType:T.fields.schemaType||"BlogPosting",publishDate:T.fields.articlePublishDate||T.fields.publishedDate||T.sys.createdAt,modifiedDate:T.fields.articleModifiedDate||T.sys.updatedAt,authorName:(null==(E=null==(m=T.fields.author)?void 0:m.fields)?void 0:E.name)||("4teKNzPkzDPysbkdacG8D0"===T.sys.id?"Enri Zhulati":"Unknown Author")}):(console.error("SEO: Post not found for identifier:",e),null)})(ce||"");console.log("SEO DATA LOADED:",e),e?ye(e):console.error("Failed to load SEO data for:",ce)}catch(n){console.error("Error loading SEO data:",n)}if("string"==typeof i.fields.body)Ie(i.fields.body);else if(i.fields.body)try{const e=`\n <h1 class="text-2xl font-bold mb-4">${i.fields.title||"Blog Post"}</h1>\n <p>${i.fields.excerpt||""}</p>\n <div>\n <p>The original content is in Rich Text format and requires proper rendering.</p>\n <p>If you're seeing this, the automatic conversion process failed.</p>\n </div>\n `;Ie(e)}catch(r){console.error("ERROR CREATING RAW HTML:",r),Ie(`<p>Error rendering content: ${(null==r?void 0:r.message)||"Unknown error"}</p>`)}if(i.fields.recommendedPosts&&i.fields.recommendedPosts.length>0)try{const e=i.fields.recommendedPosts;if(console.log("RECOMMENDED POSTS:",e),e[0]&&(e[0].fields||e[0].sys))be(e);else{const t=await Promise.all(e.map((async e=>e.sys&&e.sys.id?await N(e.sys.id):"string"==typeof e?await N(e):null)));be(t.filter(Boolean))}}catch(r){console.error("ERROR FETCHING RECOMMENDED POSTS:",r)}else console.log("NO RECOMMENDED POSTS FOUND")}else console.error(`BLOG POST NOT FOUND WITH SLUG/ID: ${ce}`),me("Blog post not found");he(i);const o=JSON.parse(localStorage.getItem("blog-bookmarks")||"[]");Te(o.includes(ce))}catch(r){console.error(`ERROR FETCHING BLOG POST WITH SLUG ${ce}:`,r),me(`Failed to load blog post: ${(null==r?void 0:r.message)||"Unknown error"}`)}finally{pe(!1)}window.scrollTo(0,0)})()}),[ce,Oe]),T.useEffect((()=>{!de&&ue&&setTimeout((()=>{const e=document.querySelector(".prose");e&&0===e.innerHTML.trim().length&&ue.fields.body&&(console.log("Primary rendering produced empty result, using alternative rendering"),Se(!0))}),500)}),[de,ue]);if(ge)return e.jsx("div",{className:"p-6 rounded-lg border "+(De?"bg-yellow-900/30 border-yellow-800 text-yellow-200":"bg-yellow-50 border-yellow-200 text-yellow-800"),children:e.jsxs("div",{className:"flex items-start",children:[e.jsx(s,{className:"h-5 w-5 mr-3 mt-0.5 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-medium text-lg mb-2",children:"Contentful Configuration Required"}),e.jsx("p",{className:"mb-3",children:"Missing Contentful environment variables. To display blog content, please set up the following in your .env file:"}),e.jsxs("ul",{className:"list-disc pl-5 mb-4 space-y-1 text-sm",children:[e.jsx("li",{children:"VITE_CONTENTFUL_SPACE_ID"}),e.jsx("li",{children:"VITE_CONTENTFUL_ACCESS_TOKEN"}),e.jsx("li",{children:"VITE_CONTENTFUL_PREVIEW_TOKEN (optional for preview mode)"})]}),e.jsx("p",{className:"text-sm",children:"See the README.md file for complete setup instructions."})]})]})});if(de)return e.jsxs("div",{className:"min-h-[400px] flex flex-col items-center justify-center py-12",children:[e.jsx("div",{className:"w-10 h-10 border-4 border-blue-500 border-t-transparent rounded-full animate-spin mb-4"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-300",children:"Loading article..."})]});if(fe||!ue)return e.jsx("div",{className:"min-h-[400px] flex items-center justify-center py-12",children:e.jsxs("div",{className:"text-center p-8 max-w-md",children:[e.jsx("div",{className:"text-red-500 text-5xl mb-4",children:"😕"}),e.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white mb-2",children:fe||"Blog post not found"}),e.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-6",children:"The article you're looking for doesn't seem to exist or has been moved."}),e.jsxs(A,{to:"/blog",className:"inline-flex items-center px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg transition-colors",children:[e.jsx(a,{size:16,className:"mr-2"}),"Back to all articles"]})]})});const Le=ue.fields.publishedDate?D(new Date(ue.fields.publishedDate),"MMMM d, yyyy"):D(new Date(ue.sys.createdAt),"MMMM d, yyyy"),Re=(null==(r=null==(n=null==(t=ue.fields.featuredImage)?void 0:t.fields)?void 0:n.file)?void 0:r.url)?`https:${ue.fields.featuredImage.fields.file.url}?fm=webp&w=1200&h=600&fit=fill`:(null==(m=null==(o=null==(i=ue.fields.image)?void 0:i.fields)?void 0:o.file)?void 0:m.url)?`https:${ue.fields.image.fields.file.url}?fm=webp&w=1200&h=600&fit=fill`:"https://images.unsplash.com/photo-1519681393784-d120267933ba?fm=webp&w=1200&h=600&fit=fill",xe=ue.fields.body||"",ve="string"==typeof xe?xe.split(/\s+/).length:500,Pe=Math.max(1,Math.ceil(ve/200));return e.jsxs(k,{children:[e.jsx(Vu,{seoData:Ce||{title:(null==ue?void 0:ue.fields.metaTitle)||(null==ue?void 0:ue.fields.title)||"Blog Post",description:(null==ue?void 0:ue.fields.metaDescription)||(null==ue?void 0:ue.fields.excerpt)||"",excerpt:(null==ue?void 0:ue.fields.excerpt)||"",keywords:(null==(E=null==ue?void 0:ue.fields.seoKeywords)?void 0:E.join(", "))||(null==(C=null==ue?void 0:ue.fields.categories)?void 0:C.join(", "))||"",canonicalUrl:(null==ue?void 0:ue.fields.canonicalUrl)||window.location.href,ogTitle:(null==ue?void 0:ue.fields.ogTitle)||(null==ue?void 0:ue.fields.metaTitle)||(null==ue?void 0:ue.fields.title)||"Blog Post",ogDescription:(null==ue?void 0:ue.fields.ogDescription)||(null==ue?void 0:ue.fields.metaDescription)||(null==ue?void 0:ue.fields.excerpt)||"",ogImage:(null==(R=null==(L=null==(O=null==ue?void 0:ue.fields.featuredImage)?void 0:O.fields)?void 0:L.file)?void 0:R.url)?`https:${null==ue?void 0:ue.fields.featuredImage.fields.file.url}?fm=webp&w=1200&h=630&fit=fill`:(null==(P=null==(v=null==(x=null==ue?void 0:ue.fields.image)?void 0:x.fields)?void 0:v.file)?void 0:P.url)?`https:${null==ue?void 0:ue.fields.image.fields.file.url}?fm=webp&w=1200&h=630&fit=fill`:null,ogType:"article",twitterCard:(null==ue?void 0:ue.fields.twitterCardType)||"summary_large_image",twitterTitle:(null==ue?void 0:ue.fields.ogTitle)||(null==ue?void 0:ue.fields.metaTitle)||(null==ue?void 0:ue.fields.title)||"Blog Post",twitterDescription:(null==ue?void 0:ue.fields.ogDescription)||(null==ue?void 0:ue.fields.metaDescription)||(null==ue?void 0:ue.fields.excerpt)||"",twitterImage:(null==(B=null==(w=null==(M=null==ue?void 0:ue.fields.featuredImage)?void 0:M.fields)?void 0:w.file)?void 0:B.url)?`https:${null==ue?void 0:ue.fields.featuredImage.fields.file.url}?fm=webp&w=1200&h=630&fit=fill`:(null==(U=null==(H=null==(F=null==ue?void 0:ue.fields.image)?void 0:F.fields)?void 0:H.file)?void 0:U.url)?`https:${null==ue?void 0:ue.fields.image.fields.file.url}?fm=webp&w=1200&h=630&fit=fill`:null,schemaType:(null==ue?void 0:ue.fields.schemaType)||"BlogPosting",publishDate:(null==ue?void 0:ue.fields.articlePublishDate)||(null==ue?void 0:ue.fields.publishedDate)||(null==ue?void 0:ue.sys.createdAt)||(new Date).toISOString(),modifiedDate:(null==ue?void 0:ue.fields.articleModifiedDate)||(null==ue?void 0:ue.sys.updatedAt)||(new Date).toISOString(),authorName:(null==(j=null==(G=null==ue?void 0:ue.fields.author)?void 0:G.fields)?void 0:j.name)||"Enri Zhulati"}}),e.jsxs("article",{className:"max-w-6xl mx-auto px-4 py-12 pt-16 lg:pt-28",children:[e.jsx("div",{className:"mb-10",children:e.jsxs(A,{to:"/blog",className:"inline-flex items-center text-sm font-medium transition-all hover:translate-x-[-3px] "+(De?"text-gray-400 hover:text-blue-400":"text-gray-500 hover:text-blue-600"),children:[e.jsx(a,{size:16,className:"mr-2"}),"Back to all articles"]})}),e.jsxs(b,{children:[ue.fields.categories&&ue.fields.categories.length>0&&e.jsx("div",{className:"flex flex-wrap gap-2 mb-5",children:ue.fields.categories.map((t=>e.jsxs(A,{to:`/blog?category=${encodeURIComponent(t)}`,className:"inline-flex items-center rounded-full px-3 py-1 text-xs font-medium transition-colors "+(De?"bg-blue-900/80 text-blue-200 hover:bg-blue-800/80":"bg-blue-100 text-blue-800 hover:bg-blue-200"),children:[e.jsx(l,{size:12,className:"mr-1.5"}),t]},t)))}),e.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold mb-5 leading-tight "+(De?"text-white":"text-gray-900"),children:ue.fields.title}),ue.fields.introHook&&e.jsx("p",{className:"text-xl md:text-2xl mb-6 font-medium leading-relaxed "+(De?"text-gray-300":"text-gray-700"),children:ue.fields.introHook}),e.jsxs("div",{className:"flex flex-wrap items-center gap-5 mb-8 border-b border-gray-100 dark:border-gray-800 pb-6",children:[e.jsxs("div",{className:"flex items-center",children:[(null==(W=null==(q=null==(z=null==(K=null==(Y=ue.fields.author)?void 0:Y.fields)?void 0:K.profileImage)?void 0:z.fields)?void 0:q.file)?void 0:W.url)?e.jsx("img",{src:`https:${ue.fields.author.fields.profileImage.fields.file.url}?fm=webp&w=160&h=160&fit=fill`,alt:(null==(Q=null==(V=ue.fields.author)?void 0:V.fields)?void 0:Q.name)||"Author",className:"w-10 h-10 rounded-full mr-3 object-cover border-2 border-white dark:border-gray-800 shadow-md",width:"40",height:"40",loading:"eager"}):e.jsx("div",{className:"w-10 h-10 rounded-full mr-3 flex items-center justify-center "+(De?"bg-gray-700":"bg-gray-200"),children:e.jsx(c,{size:20,className:De?"text-gray-400":"text-gray-500"})}),e.jsx("span",{className:"font-medium "+(De?"text-gray-300":"text-gray-700"),children:(null==($=null==(X=ue.fields.author)?void 0:X.fields)?void 0:$.name)||("4teKNzPkzDPysbkdacG8D0"===ue.sys.id?"Enri Zhulati":"Unknown Author")})]}),e.jsxs("div",{className:"flex items-center "+(De?"text-gray-400":"text-gray-500"),children:[e.jsx(u,{size:16,className:"mr-1.5"}),e.jsx("span",{children:Le})]}),e.jsxs("div",{className:"flex items-center "+(De?"text-gray-400":"text-gray-500"),children:[e.jsx(h,{size:16,className:"mr-1.5"}),e.jsxs("span",{children:[Pe," min read"]})]})]}),e.jsx("div",{className:"rounded-xl overflow-hidden mb-10 shadow-lg",children:e.jsx("img",{src:Re,alt:ue.fields.title,className:"w-full h-auto max-h-[500px] object-cover transform hover:scale-105 transition-transform duration-700",loading:"lazy",width:"1200",height:"600"})}),e.jsxs("div",{className:"flex justify-end mb-8 space-x-2",children:[e.jsx("button",{onClick:()=>{const e=JSON.parse(localStorage.getItem("blog-bookmarks")||"[]");if(Ee){const t=e.filter((e=>e!==ce));localStorage.setItem("blog-bookmarks",JSON.stringify(t))}else e.push(ce),localStorage.setItem("blog-bookmarks",JSON.stringify(e));Te(!Ee)},className:"p-2.5 rounded-full transition-all hover:scale-110 "+(De?Ee?"bg-blue-900/50 text-blue-300":"bg-gray-800 text-gray-400 hover:text-gray-300 hover:bg-gray-700":Ee?"bg-blue-100 text-blue-600":"bg-gray-100 text-gray-500 hover:text-gray-700 hover:bg-gray-200"),"aria-label":Ee?"Remove bookmark":"Bookmark this article",children:Ee?e.jsx(d,{size:18}):e.jsx(p,{size:18})}),e.jsx("button",{onClick:async()=>{var e,t;try{if(navigator.share){const r=(null==ue?void 0:ue.fields.metaTitle)||(null==ue?void 0:ue.fields.ogTitle)||(null==ue?void 0:ue.fields.title)||"Blog Post",i={title:r,text:(null==ue?void 0:ue.fields.metaDescription)||(null==ue?void 0:ue.fields.ogDescription)||(null==ue?void 0:ue.fields.excerpt)||"",url:window.location.href},o=(null==ue?void 0:ue.fields.featuredImage)||(null==ue?void 0:ue.fields.image);if(null==(t=null==(e=null==o?void 0:o.fields)?void 0:e.file)?void 0:t.url)try{const e=`https:${o.fields.file.url}`,t=await fetch(e),n=await t.blob(),r=o.fields.file.url.split("/").pop()||"image.jpg",s=new File([n],r,{type:n.type});navigator.canShare&&navigator.canShare({files:[s]})&&(i.files=[s])}catch(n){console.warn("Failed to include image in share",n)}await navigator.share(i)}else navigator.clipboard.writeText(window.location.href),alert("Link copied to clipboard! Share this link for others to see your article with its title and featured image.")}catch(r){console.error("Error sharing:",r)}},className:"p-2.5 rounded-full transition-all hover:scale-110 "+(De?"bg-gray-800 text-gray-400 hover:text-gray-300 hover:bg-gray-700":"bg-gray-100 text-gray-500 hover:text-gray-700 hover:bg-gray-200"),"aria-label":"Share this article",children:e.jsx(f,{size:18})})]}),e.jsxs("div",{className:"flex flex-col lg:flex-row gap-8",children:[e.jsx("div",{className:"order-2 lg:order-1 lg:w-1/4",children:e.jsx(Qu,{contentSelector:".blog-content",title:"In this article",offset:100})}),e.jsx("div",{className:"order-1 lg:order-2 lg:w-3/4 my-8 p-8 sm:p-10 border border-gray-100 dark:border-gray-800 rounded-lg bg-white dark:bg-gray-900 shadow-md blog-content",children:(()=>{var t,n;if(console.log("RENDER CONTENT CALLED"),!ue||!ue.fields.body)return console.log("NO POST OR POST BODY FOUND"),e.jsxs("div",{className:"p-4 bg-yellow-100 text-yellow-800 rounded",children:[e.jsx("p",{className:"font-bold",children:"No content available"}),e.jsxs("p",{children:["Post: ",ue?"exists":"null"]}),e.jsxs("p",{children:["Body: ",(null==(t=null==ue?void 0:ue.fields)?void 0:t.body)?"exists":"null"]})]});if("string"==typeof ue.fields.body){console.log("RENDERING STRING CONTENT WITH REACTMARKDOWN");try{return e.jsx(Oi,{remarkPlugins:[Cs],rehypePlugins:[vu],children:ue.fields.body})}catch(r){return console.error("ERROR RENDERING MARKDOWN:",r),e.jsxs("div",{className:"p-4 border border-red-300 rounded bg-red-50",children:[e.jsx("p",{className:"font-bold",children:"Error rendering markdown"}),e.jsx("p",{children:(null==r?void 0:r.message)||"Unknown error"}),e.jsxs("pre",{className:"mt-2 bg-white p-2 rounded text-xs overflow-auto",children:[ue.fields.body.substring(0,500),"..."]})]})}}if("object"==typeof ue.fields.body)try{return console.log("RENDERING RICH TEXT CONTENT WITH CONTENTFUL RENDERER"),Wu(ue.fields.body,(n=De,{renderMark:{[Pu.MARKS.BOLD]:t=>e.jsx("strong",{children:t}),[Pu.MARKS.ITALIC]:t=>e.jsx("em",{children:t}),[Pu.MARKS.UNDERLINE]:t=>e.jsx("u",{children:t}),[Pu.MARKS.CODE]:t=>e.jsx("code",{className:"px-1 py-0.5 rounded bg-gray-100 dark:bg-gray-800 font-mono text-sm",children:t})},renderNode:{[Pu.BLOCKS.PARAGRAPH]:(t,n)=>e.jsx("p",{className:"mb-4",children:n}),[Pu.BLOCKS.HEADING_1]:(t,n)=>e.jsx("h1",{className:"text-3xl font-bold mb-4 mt-8",children:n}),[Pu.BLOCKS.HEADING_2]:(t,n)=>e.jsx("h2",{className:"text-2xl font-bold mb-3 mt-6",children:n}),[Pu.BLOCKS.HEADING_3]:(t,n)=>e.jsx("h3",{className:"text-xl font-bold mb-3 mt-5",children:n}),[Pu.BLOCKS.HEADING_4]:(t,n)=>e.jsx("h4",{className:"text-lg font-bold mb-2 mt-4",children:n}),[Pu.BLOCKS.HEADING_5]:(t,n)=>e.jsx("h5",{className:"text-md font-bold mb-2 mt-4",children:n}),[Pu.BLOCKS.HEADING_6]:(t,n)=>e.jsx("h6",{className:"text-sm font-bold mb-2 mt-4",children:n}),[Pu.BLOCKS.UL_LIST]:(t,n)=>e.jsx("ul",{className:"list-disc pl-5 mb-4",children:n}),[Pu.BLOCKS.OL_LIST]:(t,n)=>e.jsx("ol",{className:"list-decimal pl-5 mb-4",children:n}),[Pu.BLOCKS.LIST_ITEM]:(t,n)=>e.jsx("li",{className:"mb-1",children:n}),[Pu.BLOCKS.QUOTE]:(t,r)=>e.jsx("blockquote",{className:`border-l-4 ${n?"border-blue-600 bg-gray-800":"border-blue-500 bg-gray-50"} pl-4 py-2 mb-4 italic`,children:r}),[Pu.BLOCKS.HR]:()=>e.jsx("hr",{className:"my-6 border-gray-300 dark:border-gray-700"}),[Pu.BLOCKS.EMBEDDED_ASSET]:t=>{var n;const{data:{target:{fields:r}}}=t;return(null==(n=null==r?void 0:r.file)?void 0:n.url)?e.jsx("img",{src:`https:${r.file.url}`,alt:r.title||"Embedded asset",className:"my-4 rounded-lg shadow-md max-h-96 mx-auto"}):null},[Pu.INLINES.HYPERLINK]:(t,r)=>e.jsx("a",{href:t.data.uri,target:"_blank",rel:"noopener noreferrer",className:(n?"text-blue-400 hover:text-blue-300":"text-blue-600 hover:text-blue-800")+" underline",children:r})}}))}catch(r){return console.error("ERROR RENDERING RICH TEXT:",r),e.jsxs("div",{className:"p-4 border border-red-300 rounded bg-red-50 dark:bg-red-900/20 dark:border-red-900 text-red-800 dark:text-red-300",children:[e.jsx("h3",{className:"font-bold mb-2",children:"Error rendering content"}),e.jsx("p",{children:"There was an error rendering the content from Contentful. Please check your content structure."}),e.jsxs("p",{className:"font-bold mt-2",children:["Error: ",(null==r?void 0:r.message)||"Unknown error"]})]})}return e.jsxs("div",{className:"p-4 border border-yellow-300 rounded bg-yellow-50 dark:bg-yellow-900/20 dark:border-yellow-900",children:[e.jsx("h3",{className:"font-bold text-yellow-800 dark:text-yellow-300 mb-2",children:"Unknown content format"}),e.jsx("p",{className:"text-yellow-700 dark:text-yellow-400",children:"The content format is not recognized."})]})})()})]}),e.jsx("div",{className:"mt-16 p-6 border border-gray-100 dark:border-gray-800 rounded-lg bg-gray-50 dark:bg-gray-800/50",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-center sm:items-start gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-full flex items-center justify-center flex-shrink-0 overflow-hidden border-4 "+(De?"bg-gray-700 border-gray-600":"bg-gray-200 border-gray-100"),children:(null==(ne=null==(te=null==(ee=null==(Z=null==(J=ue.fields.author)?void 0:J.fields)?void 0:Z.profileImage)?void 0:ee.fields)?void 0:te.file)?void 0:ne.url)?e.jsx("img",{src:`https:${ue.fields.author.fields.profileImage.fields.file.url}?fm=webp&w=160&h=160&fit=fill`,alt:(null==(ie=null==(re=ue.fields.author)?void 0:re.fields)?void 0:ie.name)||"Author",className:"w-full h-full object-cover",width:"80",height:"80",loading:"lazy"}):e.jsx(c,{size:32,className:De?"text-gray-400":"text-gray-500"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold mb-2 "+(De?"text-white":"text-gray-900"),children:"About the Author"}),e.jsx("p",{className:(De?"text-gray-400":"text-gray-600")+" leading-relaxed",children:(null==(se=null==(oe=ue.fields.author)?void 0:oe.fields)?void 0:se.bio)||`${(null==(le=null==(ae=ue.fields.author)?void 0:ae.fields)?void 0:le.name)||("4teKNzPkzDPysbkdacG8D0"===ue.sys.id?"Enri Zhulati":"Unknown Author")} is a digital marketing specialist with expertise in SEO, content strategy, and website optimization.`}),e.jsxs("div",{className:"flex gap-3 mt-3",children:[e.jsx("a",{href:"https://twitter.com/enrizhulati",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium "+(De?"text-blue-400 hover:text-blue-300":"text-blue-600 hover:text-blue-800"),"aria-label":"Twitter profile",children:"Twitter"}),e.jsx("a",{href:"https://linkedin.com/in/enrizhulati",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium "+(De?"text-blue-400 hover:text-blue-300":"text-blue-600 hover:text-blue-800"),"aria-label":"LinkedIn profile",children:"LinkedIn"}),e.jsx("a",{href:"https://enrizhulati.com",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium "+(De?"text-blue-400 hover:text-blue-300":"text-blue-600 hover:text-blue-800"),"aria-label":"Personal website",children:"Website"})]})]})]})}),(ke.length>0||!ue)&&e.jsxs("div",{className:"mt-16",children:[e.jsx("h2",{className:"text-2xl font-bold mb-8 "+(De?"text-white":"text-gray-900"),children:"You might also like"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:ke.length>0?ke.map((t=>(t=>{var n,r,i,o,s,l;const c=(null==(i=null==(r=null==(n=t.fields.featuredImage)?void 0:n.fields)?void 0:r.file)?void 0:i.url)?`https:${t.fields.featuredImage.fields.file.url}?fm=webp&w=600&h=300&fit=fill`:(null==(l=null==(s=null==(o=t.fields.image)?void 0:o.fields)?void 0:s.file)?void 0:l.url)?`https:${t.fields.image.fields.file.url}?fm=webp&w=600&h=300&fit=fill`:"https://images.unsplash.com/photo-1519681393784-d120267933ba?fm=webp&w=600&h=300&fit=fill",u=t.fields.slug?`/blog/${t.fields.slug}`:t.fields.customUrl?`/blog/${t.fields.customUrl}`:`/blog/${t.sys.id}`;return e.jsxs(A,{to:u,className:`block rounded-lg overflow-hidden border ${De?"border-gray-800 bg-gray-900":"border-gray-100 bg-white"} shadow-sm hover:shadow-md transition-shadow`,children:[e.jsx("div",{className:"h-48 bg-gray-200 dark:bg-gray-800 overflow-hidden",children:e.jsx("img",{src:c,alt:t.fields.title,className:"w-full h-full object-cover transform hover:scale-105 transition-transform duration-500",loading:"lazy"})}),e.jsxs("div",{className:"p-5",children:[e.jsx("h3",{className:"text-lg font-bold mb-2 "+(De?"text-white":"text-gray-900"),children:t.fields.title}),e.jsx("p",{className:"text-sm mb-3 "+(De?"text-gray-400":"text-gray-500"),children:t.fields.excerpt||""}),e.jsxs("div",{className:"text-sm font-medium flex items-center "+(De?"text-blue-400":"text-blue-600"),children:["Read more ",e.jsx(a,{size:14,className:"ml-1 rotate-180"})]})]})]},t.sys.id)})(t))):e.jsxs(e.Fragment,{children:[e.jsxs(A,{to:"/blog",className:`block rounded-lg overflow-hidden border ${De?"border-gray-800 bg-gray-900":"border-gray-100 bg-white"} shadow-sm hover:shadow-md transition-shadow`,children:[e.jsx("div",{className:"h-48 bg-gray-200 dark:bg-gray-800"}),e.jsxs("div",{className:"p-5",children:[e.jsx("h3",{className:"text-lg font-bold mb-2 "+(De?"text-white":"text-gray-900"),children:"5 Essential SEO Tools Every Website Owner Should Use"}),e.jsx("p",{className:"text-sm mb-3 "+(De?"text-gray-400":"text-gray-500"),children:"Discover the must-have tools to improve your website's search engine visibility."}),e.jsxs("div",{className:"text-sm font-medium flex items-center "+(De?"text-blue-400":"text-blue-600"),children:["Read more ",e.jsx(a,{size:14,className:"ml-1 rotate-180"})]})]})]}),e.jsxs(A,{to:"/blog",className:`block rounded-lg overflow-hidden border ${De?"border-gray-800 bg-gray-900":"border-gray-100 bg-white"} shadow-sm hover:shadow-md transition-shadow`,children:[e.jsx("div",{className:"h-48 bg-gray-200 dark:bg-gray-800"}),e.jsxs("div",{className:"p-5",children:[e.jsx("h3",{className:"text-lg font-bold mb-2 "+(De?"text-white":"text-gray-900"),children:"How to Create Content That Ranks in 2023"}),e.jsx("p",{className:"text-sm mb-3 "+(De?"text-gray-400":"text-gray-500"),children:"Learn the latest strategies for creating high-ranking content in today's competitive landscape."}),e.jsxs("div",{className:"text-sm font-medium flex items-center "+(De?"text-blue-400":"text-blue-600"),children:["Read more ",e.jsx(a,{size:14,className:"ml-1 rotate-180"})]})]})]})]})})]}),e.jsx("div",{className:"mt-16 p-8 border border-blue-100 dark:border-blue-900/30 rounded-lg bg-blue-50 dark:bg-blue-900/10",children:e.jsxs("div",{className:"text-center max-w-2xl mx-auto",children:[e.jsx("h2",{className:"text-xl sm:text-2xl font-bold mb-4 "+(De?"text-white":"text-gray-900"),children:"Get more SEO tips straight to your inbox"}),e.jsx("p",{className:"mb-6 "+(De?"text-gray-300":"text-gray-700"),children:"Sign up for my newsletter to receive exclusive tips and strategies to improve your website's ranking."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 items-center",children:[e.jsx("input",{type:"email",placeholder:"Your email address",className:"w-full py-3 px-4 rounded-lg border focus:outline-none focus:ring-2 focus:ring-blue-500 "+(De?"bg-gray-900 border-gray-700 text-white":"bg-white border-gray-300 text-gray-800")}),e.jsx("button",{className:"px-6 py-3 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-medium transition-colors w-full sm:w-auto",children:"Subscribe"})]}),e.jsx("p",{className:"text-xs mt-3 "+(De?"text-gray-400":"text-gray-500"),children:"I respect your privacy. Unsubscribe at any time."})]})})]})]})]})},$u=()=>{const{slug:t}=g();return e.jsx(k,{children:e.jsx(Xu,{},t)})};export{$u as default}; //# sourceMappingURL=BlogPost-eb279a27.js.map