;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="3f813409-42c6-a6d2-7be8-aa0c0e394849")}catch(e){}}(); (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,369090,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,a=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g;function h(e){return e?e.replace(u,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,u=1;function p(e){var t=e.match(i);t&&(n+=t.length);var r=e.lastIndexOf("\n");u=~r?e.length-r:u+e.length}function d(){var e={line:n,column:u};return function(t){return t.position=new m(e),g(a),t}}function m(e){this.start=e,this.end={line:n,column:u},this.source=t.source}function f(r){var i=Error(t.source+":"+n+":"+u+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=u,i.source=e,t.silent);else throw i}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function E(e){var t;for(e=e||[];t=T();)!1!==t&&e.push(t);return e}function T(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return f("End of comment missing");var r=e.slice(2,n-2);return u+=2,p(r),e=e.slice(n),u+=2,t({type:"comment",comment:r})}}m.prototype.content=e,g(a);var A,k=[];for(E(k);A=function(){var e=d(),t=g(s);if(t){if(T(),!g(o))return f("property missing ':'");var n=g(l),i=e({type:"declaration",property:h(t[0].replace(r,"")),value:n?h(n[0].replace(r,"")):""});return g(c),i}}();)!1!==A&&(k.push(A),E(k));return k}},559596,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;a?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(e.r(369090))},851521,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,a=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||a.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,c):e.replace(s,c)).replace(i,l))}},763185,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(559596)),i=e.r(851521);function a(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a},975609,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!a)return!1;for(t in e);return void 0===t||r.call(e,t)},c=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(s)return s(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,s,h=arguments[0],p=1,d=arguments.length,m=!1;for("boolean"==typeof h&&(m=h,h=arguments[1]||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p{"use strict";var t=e.i(472361);let n=function(e){var t,a;if(null==e)return i;if("function"==typeof e)return r(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],i=-1;for(;++i":"")+")"})}return p;function p(){var h;let p,d,m,f=a;if((!t||l(n,o,u[u.length-1]||void 0))&&!1===(f=Array.isArray(h=r(n,u))?h:"number"==typeof h?[!0,h]:null==h?a:[h])[0])return f;if("children"in n&&n.children&&n.children&&f[0]!==s)for(d=(i?n.children.length:-1)+c,m=u.concat(n);d>-1&&d5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let s=p(e,n);if(!s||m.has(s.protocol)||!(d.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if("mailto:"===s.protocol||!s.protocol.match(/^https?:$/))return s.href;let o="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return s&&t.some(e=>{let t=p(e,n);return!!t&&t.origin===s.origin&&s.href.startsWith(t.href)})?o?s.pathname+s.search+s.hash:s.href:t.includes("*")?"https:"!==s.protocol&&"http:"!==s.protocol?null:o?s.pathname+s.search+s.hash:s.href:null}let g=Symbol("node-seen"),E="object"==typeof self?self:globalThis,T=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[a,s]=e[i];switch(a){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(r(t));return e}case 7:{let{name:e,message:t}=s;return n(new E[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":{let{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new E[a](s),i)})(0)},{toString:A}={},{keys:k}=Object,_=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=A.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},b=([e,t])=>0===e&&("function"===t||"symbol"===t),y=(e,{json:t,lossy:n}={})=>{var r,i,a;let s,o,l=[];return(r=!(t||n),i=!!t,a=new Map,s=(e,t)=>{let n=l.push(e)-1;return a.set(t,n),n},o=e=>{if(a.has(e))return a.get(e);let[t,n]=_(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return s([-1],e)}return s([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),s([n,[...t]],e)}let r=[],i=s([t,r],e);for(let t of e)r.push(o(t));return i}case 2:{if(n)switch(n){case"BigInt":return s([n,e.toString()],e);case"Boolean":case"Number":case"String":return s([n,e.valueOf()],e)}if(i&&"toJSON"in e)return o(e.toJSON());let a=[],l=s([t,a],e);for(let t of k(e))(r||!b(_(e[t])))&&a.push([o(t),o(e[t])]);return l}case 3:return s([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return s([t,{source:n,flags:r}],e)}case 5:{let n=[],i=s([t,n],e);for(let[t,i]of e)(r||!(b(_(t))||b(_(i))))&&n.push([o(t),o(i)]);return i}case 6:{let n=[],i=s([t,n],e);for(let t of e)(r||!b(_(t)))&&n.push(o(t));return i}}let{message:l}=e;return s([t,{name:n,message:l}],e)})(e),l},C="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?T(y(e,t)):structuredClone(e):(e,t)=>T(y(e,t));function N(){}e.s(["ok",0,N],897802);class S{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function I(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new S(n,r,t)}function x(e){return e.toLowerCase()}S.prototype.normal={},S.prototype.property={},S.prototype.space=void 0;class D{constructor(e,t){this.attribute=t,this.property=e}}D.prototype.attribute="",D.prototype.booleanish=!1,D.prototype.boolean=!1,D.prototype.commaOrSpaceSeparated=!1,D.prototype.commaSeparated=!1,D.prototype.defined=!1,D.prototype.mustUseProperty=!1,D.prototype.number=!1,D.prototype.overloadedBoolean=!1,D.prototype.property="",D.prototype.spaceSeparated=!1,D.prototype.space=void 0;let O=0,R=F(),L=F(),v=F(),w=F(),M=F(),P=F(),B=F();function F(){return 2**++O}e.s(["boolean",0,R,"booleanish",0,L,"commaOrSpaceSeparated",0,B,"commaSeparated",0,P,"number",0,w,"overloadedBoolean",0,v,"spaceSeparated",0,M],535999);var H=e.i(535999);let U=Object.keys(H);class G extends D{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Y(e,t){return t in e?e[t]:t}function q(e,t){return Y(e,t.toLowerCase())}let V=j({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:P,acceptCharset:M,accessKey:M,action:null,allow:null,allowFullScreen:R,allowPaymentRequest:R,allowUserMedia:R,alpha:R,alt:null,as:null,async:R,autoCapitalize:null,autoComplete:M,autoFocus:R,autoPlay:R,blocking:M,capture:null,charSet:null,checked:R,cite:null,className:M,closedBy:null,colorSpace:null,cols:w,colSpan:w,command:null,commandFor:null,content:null,contentEditable:L,controls:R,controlsList:M,coords:w|P,crossOrigin:null,data:null,dateTime:null,decoding:null,default:R,defer:R,dir:null,dirName:null,disabled:R,download:v,draggable:L,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:R,formTarget:null,headers:M,height:w,hidden:v,high:w,href:null,hrefLang:null,htmlFor:M,httpEquiv:M,id:null,imageSizes:null,imageSrcSet:null,inert:R,inputMode:null,integrity:null,is:null,isMap:R,itemId:null,itemProp:M,itemRef:M,itemScope:R,itemType:M,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:R,low:w,manifest:null,max:null,maxLength:w,media:null,method:null,min:null,minLength:w,multiple:R,muted:R,name:null,nonce:null,noModule:R,noValidate:R,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:R,optimum:w,pattern:null,ping:M,placeholder:null,playsInline:R,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:R,referrerPolicy:null,rel:M,required:R,reversed:R,rows:w,rowSpan:w,sandbox:M,scope:null,scoped:R,seamless:R,selected:R,shadowRootClonable:R,shadowRootCustomElementRegistry:R,shadowRootDelegatesFocus:R,shadowRootMode:null,shadowRootSerializable:R,shape:null,size:w,sizes:null,slot:null,span:w,spellCheck:L,src:null,srcDoc:null,srcLang:null,srcSet:null,start:w,step:null,style:null,tabIndex:w,target:null,title:null,translate:null,type:null,typeMustMatch:R,useMap:null,value:L,width:w,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:M,axis:null,background:null,bgColor:null,border:w,borderColor:null,bottomMargin:w,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:R,declare:R,event:null,face:null,frame:null,frameBorder:null,hSpace:w,leftMargin:w,link:null,longDesc:null,lowSrc:null,marginHeight:w,marginWidth:w,noResize:R,noHref:R,noShade:R,noWrap:R,object:null,profile:null,prompt:null,rev:null,rightMargin:w,rules:null,scheme:null,scrolling:L,standby:null,summary:null,text:null,topMargin:w,valueType:null,version:null,vAlign:null,vLink:null,vSpace:w,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:R,disablePictureInPicture:R,disableRemotePlayback:R,exportParts:P,part:M,prefix:null,property:null,results:w,security:null,unselectable:null},space:"html",transform:q}),$=j({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:B,accentHeight:w,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:w,amplitude:w,arabicForm:null,ascent:w,attributeName:null,attributeType:null,azimuth:w,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:w,by:null,calcMode:null,capHeight:w,className:M,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:w,diffuseConstant:w,direction:null,display:null,dur:null,divisor:w,dominantBaseline:null,download:R,dx:null,dy:null,edgeMode:null,editable:null,elevation:w,enableBackground:null,end:null,event:null,exponent:w,externalResourcesRequired:null,fill:null,fillOpacity:w,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:P,g2:P,glyphName:P,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:w,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:w,horizOriginX:w,horizOriginY:w,id:null,ideographic:w,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:w,k:w,k1:w,k2:w,k3:w,k4:w,kernelMatrix:B,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:w,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:w,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:w,overlineThickness:w,paintOrder:null,panose1:null,path:null,pathLength:w,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:M,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:w,pointsAtY:w,pointsAtZ:w,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:B,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:B,rev:B,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:B,requiredFeatures:B,requiredFonts:B,requiredFormats:B,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:w,specularExponent:w,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:w,strikethroughThickness:w,string:null,stroke:null,strokeDashArray:B,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:w,strokeOpacity:w,strokeWidth:null,style:null,surfaceScale:w,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:B,tabIndex:w,tableValues:null,target:null,targetX:w,targetY:w,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:B,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:w,underlineThickness:w,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:w,values:null,vAlphabetic:w,vMathematical:w,vectorEffect:null,vHanging:w,vIdeographic:w,version:null,vertAdvY:w,vertOriginX:w,vertOriginY:w,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:w,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Y}),W=j({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()}),Q=j({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:q}),K=j({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),X=I([z,V,W,Q,K],"html"),Z=I([z,$,W,Q,K],"svg");function J(e){let t=[],n=String(e||""),r=n.indexOf(","),i=0,a=!1;for(;!a;){-1===r&&(r=n.length,a=!0);let e=n.slice(i,r).trim();(e||!a)&&t.push(e),i=r+1,r=n.indexOf(",",i)}return t}function ee(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}e.s(["html",0,X,"svg",0,Z],913800),e.s(["parse",0,J,"stringify",0,ee],816220);let et=/[#.]/g,en=/[A-Z]/g,er=/-[a-z]/g,ei=/^data[-\w.:]+$/i;function ea(e,t){let n=x(t),r=t,i=D;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ei.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(er,eo);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!er.test(e)){let n=e.replace(en,es);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=G}return new i(r,t)}function es(e){return"-"+e.toLowerCase()}function eo(e){return e.charAt(1).toUpperCase()}function el(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function ec(e){return e.join(" ").trim()}function eu(e,t,n){let r=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,i,...a){let s;if(null==n)s={type:"root",children:[]},a.unshift(i);else{let o=(s=function(e,t){let n,r,i=e||"",a={},s=0;for(;s1?r[e.line-2]:0)+e.column-1;if(n-1&&e<=t.length){let n=0;for(;;){let i=r[n];if(void 0===i){let e=em(t,r[n-1]);i=-1===e?t.length+1:e+1,r[n]=i}if(i>e)return{line:n+1,column:e-(n>0?r[n-1]:0)+1,offset:e};n++}}}}),s=a.toPoint(0),o=a.toPoint(i.length);N(s,"expected `start`"),N(o,"expected `end`"),n.position={start:s,end:o}}return n}case"#documentType":return ek(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},ek(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===ef.svg?Z:X;let r=-1,i={};for(;++r=55296&&e<=57343}function eM(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function eP(e){return e>=64976&&e<=65007||eO.has(e)}(cb=cB||(cB={})).controlCharacterInInputStream="control-character-in-input-stream",cb.noncharacterInInputStream="noncharacter-in-input-stream",cb.surrogateInInputStream="surrogate-in-input-stream",cb.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",cb.endTagWithAttributes="end-tag-with-attributes",cb.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",cb.unexpectedSolidusInTag="unexpected-solidus-in-tag",cb.unexpectedNullCharacter="unexpected-null-character",cb.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",cb.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",cb.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",cb.missingEndTagName="missing-end-tag-name",cb.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",cb.unknownNamedCharacterReference="unknown-named-character-reference",cb.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",cb.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",cb.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",cb.eofBeforeTagName="eof-before-tag-name",cb.eofInTag="eof-in-tag",cb.missingAttributeValue="missing-attribute-value",cb.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",cb.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",cb.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",cb.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",cb.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",cb.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",cb.missingDoctypePublicIdentifier="missing-doctype-public-identifier",cb.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",cb.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",cb.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",cb.cdataInHtmlContent="cdata-in-html-content",cb.incorrectlyOpenedComment="incorrectly-opened-comment",cb.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",cb.eofInDoctype="eof-in-doctype",cb.nestedComment="nested-comment",cb.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",cb.eofInComment="eof-in-comment",cb.incorrectlyClosedComment="incorrectly-closed-comment",cb.eofInCdata="eof-in-cdata",cb.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",cb.nullCharacterReference="null-character-reference",cb.surrogateCharacterReference="surrogate-character-reference",cb.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",cb.controlCharacterReference="control-character-reference",cb.noncharacterCharacterReference="noncharacter-character-reference",cb.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",cb.missingDoctypeName="missing-doctype-name",cb.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",cb.duplicateAttribute="duplicate-attribute",cb.nonConformingDoctype="non-conforming-doctype",cb.missingDoctype="missing-doctype",cb.misplacedDoctype="misplaced-doctype",cb.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",cb.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",cb.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",cb.openElementsLeftAfterEof="open-elements-left-after-eof",cb.abandonedHeadElementChild="abandoned-head-element-child",cb.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",cb.nestedNoscriptInHead="nested-noscript-in-head",cb.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class eB{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){let{line:n,col:r,offset:i}=this,a=r+t,s=i+t;return{code:e,startLine:n,endLine:n,startCol:a,endCol:a,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){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,cP.EOF;return this._err(cB.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 t=0;t=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,cP.EOF;let n=this.html.charCodeAt(t);return n===cP.CARRIAGE_RETURN?cP.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,cP.EOF;let e=this.html.charCodeAt(this.pos);return e===cP.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,cP.LINE_FEED):e===cP.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,ew(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===cP.LINE_FEED||e===cP.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){eM(e)?this._err(cB.controlCharacterInInputStream):eP(e)&&this._err(cB.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(cy=cF||(cF={}))[cy.CHARACTER=0]="CHARACTER",cy[cy.NULL_CHARACTER=1]="NULL_CHARACTER",cy[cy.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",cy[cy.START_TAG=3]="START_TAG",cy[cy.END_TAG=4]="END_TAG",cy[cy.COMMENT=5]="COMMENT",cy[cy.DOCTYPE=6]="DOCTYPE",cy[cy.EOF=7]="EOF",cy[cy.HIBERNATION=8]="HIBERNATION",e.s(["TokenType",0,cF,"getTokenAttr",0,eF],743820);let eH=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),eU=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]]);function eG(e){return e>=cU.ZERO&&e<=cU.NINE}cH=String.fromCodePoint,(cC=cU||(cU={}))[cC.NUM=35]="NUM",cC[cC.SEMI=59]="SEMI",cC[cC.EQUALS=61]="EQUALS",cC[cC.ZERO=48]="ZERO",cC[cC.NINE=57]="NINE",cC[cC.LOWER_A=97]="LOWER_A",cC[cC.LOWER_F=102]="LOWER_F",cC[cC.LOWER_X=120]="LOWER_X",cC[cC.LOWER_Z=122]="LOWER_Z",cC[cC.UPPER_A=65]="UPPER_A",cC[cC.UPPER_F=70]="UPPER_F",cC[cC.UPPER_Z=90]="UPPER_Z",(cN=cG||(cG={}))[cN.VALUE_LENGTH=49152]="VALUE_LENGTH",cN[cN.BRANCH_LENGTH=16256]="BRANCH_LENGTH",cN[cN.JUMP_TABLE=127]="JUMP_TABLE",(cS=cj||(cj={}))[cS.EntityStart=0]="EntityStart",cS[cS.NumericStart=1]="NumericStart",cS[cS.NumericDecimal=2]="NumericDecimal",cS[cS.NumericHex=3]="NumericHex",cS[cS.NamedEntity=4]="NamedEntity",(cI=cz||(cz={}))[cI.Legacy=0]="Legacy",cI[cI.Strict=1]="Strict",cI[cI.Attribute=2]="Attribute";class ej{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=cj.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=cz.Strict}startEntity(e){this.decodeMode=e,this.state=cj.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case cj.EntityStart:if(e.charCodeAt(t)===cU.NUM)return this.state=cj.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=cj.NamedEntity,this.stateNamedEntity(e,t);case cj.NumericStart:return this.stateNumericStart(e,t);case cj.NumericDecimal:return this.stateNumericDecimal(e,t);case cj.NumericHex:return this.stateNumericHex(e,t);case cj.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===cU.LOWER_X?(this.state=cj.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=cj.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){let i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){let n=t;for(;t=cU.UPPER_A)||!(r<=cU.UPPER_F))&&(!(r>=cU.LOWER_A)||!(r<=cU.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t=55296&&r<=57343||r>1114111?65533:null!=(i=eU.get(r))?i:r,this.consumed),this.errors&&(e!==cU.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&cG.VALUE_LENGTH)>>14;for(;t>7,a=t&cG.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let s=n,o=s+i-1;for(;s<=o;){let t=s+o>>>1,n=e[t];if(nr))return e[t+i];o=t-1}}return -1}(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===cz.Attribute&&(0===i||function(e){var t;return e===cU.EQUALS||(t=e)>=cU.UPPER_A&&t<=cU.UPPER_Z||t>=cU.LOWER_A&&t<=cU.LOWER_Z||eG(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((r=n[this.treeIndex])&cG.VALUE_LENGTH)>>14)){if(a===cU.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==cz.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&cG.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~cG.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case cj.NamedEntity:return 0!==this.result&&(this.decodeMode!==cz.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case cj.NumericDecimal:return this.emitNumericEntity(0,2);case cj.NumericHex:return this.emitNumericEntity(0,3);case cj.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case cj.EntityStart:return 0}}}(cx=cY||(cY={})).HTML="http://www.w3.org/1999/xhtml",cx.MATHML="http://www.w3.org/1998/Math/MathML",cx.SVG="http://www.w3.org/2000/svg",cx.XLINK="http://www.w3.org/1999/xlink",cx.XML="http://www.w3.org/XML/1998/namespace",cx.XMLNS="http://www.w3.org/2000/xmlns/",(cD=cq||(cq={})).TYPE="type",cD.ACTION="action",cD.ENCODING="encoding",cD.PROMPT="prompt",cD.NAME="name",cD.COLOR="color",cD.FACE="face",cD.SIZE="size",(cO=cV||(cV={})).NO_QUIRKS="no-quirks",cO.QUIRKS="quirks",cO.LIMITED_QUIRKS="limited-quirks",(cR=c$||(c$={})).A="a",cR.ADDRESS="address",cR.ANNOTATION_XML="annotation-xml",cR.APPLET="applet",cR.AREA="area",cR.ARTICLE="article",cR.ASIDE="aside",cR.B="b",cR.BASE="base",cR.BASEFONT="basefont",cR.BGSOUND="bgsound",cR.BIG="big",cR.BLOCKQUOTE="blockquote",cR.BODY="body",cR.BR="br",cR.BUTTON="button",cR.CAPTION="caption",cR.CENTER="center",cR.CODE="code",cR.COL="col",cR.COLGROUP="colgroup",cR.DD="dd",cR.DESC="desc",cR.DETAILS="details",cR.DIALOG="dialog",cR.DIR="dir",cR.DIV="div",cR.DL="dl",cR.DT="dt",cR.EM="em",cR.EMBED="embed",cR.FIELDSET="fieldset",cR.FIGCAPTION="figcaption",cR.FIGURE="figure",cR.FONT="font",cR.FOOTER="footer",cR.FOREIGN_OBJECT="foreignObject",cR.FORM="form",cR.FRAME="frame",cR.FRAMESET="frameset",cR.H1="h1",cR.H2="h2",cR.H3="h3",cR.H4="h4",cR.H5="h5",cR.H6="h6",cR.HEAD="head",cR.HEADER="header",cR.HGROUP="hgroup",cR.HR="hr",cR.HTML="html",cR.I="i",cR.IMG="img",cR.IMAGE="image",cR.INPUT="input",cR.IFRAME="iframe",cR.KEYGEN="keygen",cR.LABEL="label",cR.LI="li",cR.LINK="link",cR.LISTING="listing",cR.MAIN="main",cR.MALIGNMARK="malignmark",cR.MARQUEE="marquee",cR.MATH="math",cR.MENU="menu",cR.META="meta",cR.MGLYPH="mglyph",cR.MI="mi",cR.MO="mo",cR.MN="mn",cR.MS="ms",cR.MTEXT="mtext",cR.NAV="nav",cR.NOBR="nobr",cR.NOFRAMES="noframes",cR.NOEMBED="noembed",cR.NOSCRIPT="noscript",cR.OBJECT="object",cR.OL="ol",cR.OPTGROUP="optgroup",cR.OPTION="option",cR.P="p",cR.PARAM="param",cR.PLAINTEXT="plaintext",cR.PRE="pre",cR.RB="rb",cR.RP="rp",cR.RT="rt",cR.RTC="rtc",cR.RUBY="ruby",cR.S="s",cR.SCRIPT="script",cR.SEARCH="search",cR.SECTION="section",cR.SELECT="select",cR.SOURCE="source",cR.SMALL="small",cR.SPAN="span",cR.STRIKE="strike",cR.STRONG="strong",cR.STYLE="style",cR.SUB="sub",cR.SUMMARY="summary",cR.SUP="sup",cR.TABLE="table",cR.TBODY="tbody",cR.TEMPLATE="template",cR.TEXTAREA="textarea",cR.TFOOT="tfoot",cR.TD="td",cR.TH="th",cR.THEAD="thead",cR.TITLE="title",cR.TR="tr",cR.TRACK="track",cR.TT="tt",cR.U="u",cR.UL="ul",cR.SVG="svg",cR.VAR="var",cR.WBR="wbr",cR.XMP="xmp",(cL=cW||(cW={}))[cL.UNKNOWN=0]="UNKNOWN",cL[cL.A=1]="A",cL[cL.ADDRESS=2]="ADDRESS",cL[cL.ANNOTATION_XML=3]="ANNOTATION_XML",cL[cL.APPLET=4]="APPLET",cL[cL.AREA=5]="AREA",cL[cL.ARTICLE=6]="ARTICLE",cL[cL.ASIDE=7]="ASIDE",cL[cL.B=8]="B",cL[cL.BASE=9]="BASE",cL[cL.BASEFONT=10]="BASEFONT",cL[cL.BGSOUND=11]="BGSOUND",cL[cL.BIG=12]="BIG",cL[cL.BLOCKQUOTE=13]="BLOCKQUOTE",cL[cL.BODY=14]="BODY",cL[cL.BR=15]="BR",cL[cL.BUTTON=16]="BUTTON",cL[cL.CAPTION=17]="CAPTION",cL[cL.CENTER=18]="CENTER",cL[cL.CODE=19]="CODE",cL[cL.COL=20]="COL",cL[cL.COLGROUP=21]="COLGROUP",cL[cL.DD=22]="DD",cL[cL.DESC=23]="DESC",cL[cL.DETAILS=24]="DETAILS",cL[cL.DIALOG=25]="DIALOG",cL[cL.DIR=26]="DIR",cL[cL.DIV=27]="DIV",cL[cL.DL=28]="DL",cL[cL.DT=29]="DT",cL[cL.EM=30]="EM",cL[cL.EMBED=31]="EMBED",cL[cL.FIELDSET=32]="FIELDSET",cL[cL.FIGCAPTION=33]="FIGCAPTION",cL[cL.FIGURE=34]="FIGURE",cL[cL.FONT=35]="FONT",cL[cL.FOOTER=36]="FOOTER",cL[cL.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",cL[cL.FORM=38]="FORM",cL[cL.FRAME=39]="FRAME",cL[cL.FRAMESET=40]="FRAMESET",cL[cL.H1=41]="H1",cL[cL.H2=42]="H2",cL[cL.H3=43]="H3",cL[cL.H4=44]="H4",cL[cL.H5=45]="H5",cL[cL.H6=46]="H6",cL[cL.HEAD=47]="HEAD",cL[cL.HEADER=48]="HEADER",cL[cL.HGROUP=49]="HGROUP",cL[cL.HR=50]="HR",cL[cL.HTML=51]="HTML",cL[cL.I=52]="I",cL[cL.IMG=53]="IMG",cL[cL.IMAGE=54]="IMAGE",cL[cL.INPUT=55]="INPUT",cL[cL.IFRAME=56]="IFRAME",cL[cL.KEYGEN=57]="KEYGEN",cL[cL.LABEL=58]="LABEL",cL[cL.LI=59]="LI",cL[cL.LINK=60]="LINK",cL[cL.LISTING=61]="LISTING",cL[cL.MAIN=62]="MAIN",cL[cL.MALIGNMARK=63]="MALIGNMARK",cL[cL.MARQUEE=64]="MARQUEE",cL[cL.MATH=65]="MATH",cL[cL.MENU=66]="MENU",cL[cL.META=67]="META",cL[cL.MGLYPH=68]="MGLYPH",cL[cL.MI=69]="MI",cL[cL.MO=70]="MO",cL[cL.MN=71]="MN",cL[cL.MS=72]="MS",cL[cL.MTEXT=73]="MTEXT",cL[cL.NAV=74]="NAV",cL[cL.NOBR=75]="NOBR",cL[cL.NOFRAMES=76]="NOFRAMES",cL[cL.NOEMBED=77]="NOEMBED",cL[cL.NOSCRIPT=78]="NOSCRIPT",cL[cL.OBJECT=79]="OBJECT",cL[cL.OL=80]="OL",cL[cL.OPTGROUP=81]="OPTGROUP",cL[cL.OPTION=82]="OPTION",cL[cL.P=83]="P",cL[cL.PARAM=84]="PARAM",cL[cL.PLAINTEXT=85]="PLAINTEXT",cL[cL.PRE=86]="PRE",cL[cL.RB=87]="RB",cL[cL.RP=88]="RP",cL[cL.RT=89]="RT",cL[cL.RTC=90]="RTC",cL[cL.RUBY=91]="RUBY",cL[cL.S=92]="S",cL[cL.SCRIPT=93]="SCRIPT",cL[cL.SEARCH=94]="SEARCH",cL[cL.SECTION=95]="SECTION",cL[cL.SELECT=96]="SELECT",cL[cL.SOURCE=97]="SOURCE",cL[cL.SMALL=98]="SMALL",cL[cL.SPAN=99]="SPAN",cL[cL.STRIKE=100]="STRIKE",cL[cL.STRONG=101]="STRONG",cL[cL.STYLE=102]="STYLE",cL[cL.SUB=103]="SUB",cL[cL.SUMMARY=104]="SUMMARY",cL[cL.SUP=105]="SUP",cL[cL.TABLE=106]="TABLE",cL[cL.TBODY=107]="TBODY",cL[cL.TEMPLATE=108]="TEMPLATE",cL[cL.TEXTAREA=109]="TEXTAREA",cL[cL.TFOOT=110]="TFOOT",cL[cL.TD=111]="TD",cL[cL.TH=112]="TH",cL[cL.THEAD=113]="THEAD",cL[cL.TITLE=114]="TITLE",cL[cL.TR=115]="TR",cL[cL.TRACK=116]="TRACK",cL[cL.TT=117]="TT",cL[cL.U=118]="U",cL[cL.UL=119]="UL",cL[cL.SVG=120]="SVG",cL[cL.VAR=121]="VAR",cL[cL.WBR=122]="WBR",cL[cL.XMP=123]="XMP";let ez=new Map([[c$.A,cW.A],[c$.ADDRESS,cW.ADDRESS],[c$.ANNOTATION_XML,cW.ANNOTATION_XML],[c$.APPLET,cW.APPLET],[c$.AREA,cW.AREA],[c$.ARTICLE,cW.ARTICLE],[c$.ASIDE,cW.ASIDE],[c$.B,cW.B],[c$.BASE,cW.BASE],[c$.BASEFONT,cW.BASEFONT],[c$.BGSOUND,cW.BGSOUND],[c$.BIG,cW.BIG],[c$.BLOCKQUOTE,cW.BLOCKQUOTE],[c$.BODY,cW.BODY],[c$.BR,cW.BR],[c$.BUTTON,cW.BUTTON],[c$.CAPTION,cW.CAPTION],[c$.CENTER,cW.CENTER],[c$.CODE,cW.CODE],[c$.COL,cW.COL],[c$.COLGROUP,cW.COLGROUP],[c$.DD,cW.DD],[c$.DESC,cW.DESC],[c$.DETAILS,cW.DETAILS],[c$.DIALOG,cW.DIALOG],[c$.DIR,cW.DIR],[c$.DIV,cW.DIV],[c$.DL,cW.DL],[c$.DT,cW.DT],[c$.EM,cW.EM],[c$.EMBED,cW.EMBED],[c$.FIELDSET,cW.FIELDSET],[c$.FIGCAPTION,cW.FIGCAPTION],[c$.FIGURE,cW.FIGURE],[c$.FONT,cW.FONT],[c$.FOOTER,cW.FOOTER],[c$.FOREIGN_OBJECT,cW.FOREIGN_OBJECT],[c$.FORM,cW.FORM],[c$.FRAME,cW.FRAME],[c$.FRAMESET,cW.FRAMESET],[c$.H1,cW.H1],[c$.H2,cW.H2],[c$.H3,cW.H3],[c$.H4,cW.H4],[c$.H5,cW.H5],[c$.H6,cW.H6],[c$.HEAD,cW.HEAD],[c$.HEADER,cW.HEADER],[c$.HGROUP,cW.HGROUP],[c$.HR,cW.HR],[c$.HTML,cW.HTML],[c$.I,cW.I],[c$.IMG,cW.IMG],[c$.IMAGE,cW.IMAGE],[c$.INPUT,cW.INPUT],[c$.IFRAME,cW.IFRAME],[c$.KEYGEN,cW.KEYGEN],[c$.LABEL,cW.LABEL],[c$.LI,cW.LI],[c$.LINK,cW.LINK],[c$.LISTING,cW.LISTING],[c$.MAIN,cW.MAIN],[c$.MALIGNMARK,cW.MALIGNMARK],[c$.MARQUEE,cW.MARQUEE],[c$.MATH,cW.MATH],[c$.MENU,cW.MENU],[c$.META,cW.META],[c$.MGLYPH,cW.MGLYPH],[c$.MI,cW.MI],[c$.MO,cW.MO],[c$.MN,cW.MN],[c$.MS,cW.MS],[c$.MTEXT,cW.MTEXT],[c$.NAV,cW.NAV],[c$.NOBR,cW.NOBR],[c$.NOFRAMES,cW.NOFRAMES],[c$.NOEMBED,cW.NOEMBED],[c$.NOSCRIPT,cW.NOSCRIPT],[c$.OBJECT,cW.OBJECT],[c$.OL,cW.OL],[c$.OPTGROUP,cW.OPTGROUP],[c$.OPTION,cW.OPTION],[c$.P,cW.P],[c$.PARAM,cW.PARAM],[c$.PLAINTEXT,cW.PLAINTEXT],[c$.PRE,cW.PRE],[c$.RB,cW.RB],[c$.RP,cW.RP],[c$.RT,cW.RT],[c$.RTC,cW.RTC],[c$.RUBY,cW.RUBY],[c$.S,cW.S],[c$.SCRIPT,cW.SCRIPT],[c$.SEARCH,cW.SEARCH],[c$.SECTION,cW.SECTION],[c$.SELECT,cW.SELECT],[c$.SOURCE,cW.SOURCE],[c$.SMALL,cW.SMALL],[c$.SPAN,cW.SPAN],[c$.STRIKE,cW.STRIKE],[c$.STRONG,cW.STRONG],[c$.STYLE,cW.STYLE],[c$.SUB,cW.SUB],[c$.SUMMARY,cW.SUMMARY],[c$.SUP,cW.SUP],[c$.TABLE,cW.TABLE],[c$.TBODY,cW.TBODY],[c$.TEMPLATE,cW.TEMPLATE],[c$.TEXTAREA,cW.TEXTAREA],[c$.TFOOT,cW.TFOOT],[c$.TD,cW.TD],[c$.TH,cW.TH],[c$.THEAD,cW.THEAD],[c$.TITLE,cW.TITLE],[c$.TR,cW.TR],[c$.TRACK,cW.TRACK],[c$.TT,cW.TT],[c$.U,cW.U],[c$.UL,cW.UL],[c$.SVG,cW.SVG],[c$.VAR,cW.VAR],[c$.WBR,cW.WBR],[c$.XMP,cW.XMP]]);function eY(e){var t;return null!=(t=ez.get(e))?t:cW.UNKNOWN}let eq=cW,eV={[cY.HTML]:new Set([eq.ADDRESS,eq.APPLET,eq.AREA,eq.ARTICLE,eq.ASIDE,eq.BASE,eq.BASEFONT,eq.BGSOUND,eq.BLOCKQUOTE,eq.BODY,eq.BR,eq.BUTTON,eq.CAPTION,eq.CENTER,eq.COL,eq.COLGROUP,eq.DD,eq.DETAILS,eq.DIR,eq.DIV,eq.DL,eq.DT,eq.EMBED,eq.FIELDSET,eq.FIGCAPTION,eq.FIGURE,eq.FOOTER,eq.FORM,eq.FRAME,eq.FRAMESET,eq.H1,eq.H2,eq.H3,eq.H4,eq.H5,eq.H6,eq.HEAD,eq.HEADER,eq.HGROUP,eq.HR,eq.HTML,eq.IFRAME,eq.IMG,eq.INPUT,eq.LI,eq.LINK,eq.LISTING,eq.MAIN,eq.MARQUEE,eq.MENU,eq.META,eq.NAV,eq.NOEMBED,eq.NOFRAMES,eq.NOSCRIPT,eq.OBJECT,eq.OL,eq.P,eq.PARAM,eq.PLAINTEXT,eq.PRE,eq.SCRIPT,eq.SECTION,eq.SELECT,eq.SOURCE,eq.STYLE,eq.SUMMARY,eq.TABLE,eq.TBODY,eq.TD,eq.TEMPLATE,eq.TEXTAREA,eq.TFOOT,eq.TH,eq.THEAD,eq.TITLE,eq.TR,eq.TRACK,eq.UL,eq.WBR,eq.XMP]),[cY.MATHML]:new Set([eq.MI,eq.MO,eq.MN,eq.MS,eq.MTEXT,eq.ANNOTATION_XML]),[cY.SVG]:new Set([eq.TITLE,eq.FOREIGN_OBJECT,eq.DESC]),[cY.XLINK]:new Set,[cY.XML]:new Set,[cY.XMLNS]:new Set},e$=new Set([eq.H1,eq.H2,eq.H3,eq.H4,eq.H5,eq.H6]),eW=new Set([c$.STYLE,c$.SCRIPT,c$.XMP,c$.IFRAME,c$.NOEMBED,c$.NOFRAMES,c$.PLAINTEXT]);e.s(["ATTRS",0,cq,"DOCUMENT_MODE",0,cV,"NS",0,cY,"NUMBERED_HEADERS",0,e$,"SPECIAL_ELEMENTS",0,eV,"TAG_ID",0,cW,"TAG_NAMES",0,c$,"getTagID",0,eY,"hasUnescapedText",0,function(e,t){return eW.has(e)||t&&e===c$.NOSCRIPT}],113515),(cv=cQ||(cQ={}))[cv.DATA=0]="DATA",cv[cv.RCDATA=1]="RCDATA",cv[cv.RAWTEXT=2]="RAWTEXT",cv[cv.SCRIPT_DATA=3]="SCRIPT_DATA",cv[cv.PLAINTEXT=4]="PLAINTEXT",cv[cv.TAG_OPEN=5]="TAG_OPEN",cv[cv.END_TAG_OPEN=6]="END_TAG_OPEN",cv[cv.TAG_NAME=7]="TAG_NAME",cv[cv.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",cv[cv.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",cv[cv.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",cv[cv.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",cv[cv.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",cv[cv.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",cv[cv.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",cv[cv.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",cv[cv.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",cv[cv.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",cv[cv.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",cv[cv.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",cv[cv.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",cv[cv.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",cv[cv.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",cv[cv.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",cv[cv.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",cv[cv.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",cv[cv.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",cv[cv.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",cv[cv.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",cv[cv.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",cv[cv.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",cv[cv.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",cv[cv.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",cv[cv.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",cv[cv.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",cv[cv.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",cv[cv.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",cv[cv.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",cv[cv.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",cv[cv.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",cv[cv.BOGUS_COMMENT=40]="BOGUS_COMMENT",cv[cv.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",cv[cv.COMMENT_START=42]="COMMENT_START",cv[cv.COMMENT_START_DASH=43]="COMMENT_START_DASH",cv[cv.COMMENT=44]="COMMENT",cv[cv.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",cv[cv.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",cv[cv.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",cv[cv.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",cv[cv.COMMENT_END_DASH=49]="COMMENT_END_DASH",cv[cv.COMMENT_END=50]="COMMENT_END",cv[cv.COMMENT_END_BANG=51]="COMMENT_END_BANG",cv[cv.DOCTYPE=52]="DOCTYPE",cv[cv.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",cv[cv.DOCTYPE_NAME=54]="DOCTYPE_NAME",cv[cv.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",cv[cv.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",cv[cv.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",cv[cv.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",cv[cv.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",cv[cv.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",cv[cv.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",cv[cv.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",cv[cv.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",cv[cv.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",cv[cv.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",cv[cv.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",cv[cv.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",cv[cv.CDATA_SECTION=68]="CDATA_SECTION",cv[cv.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",cv[cv.CDATA_SECTION_END=70]="CDATA_SECTION_END",cv[cv.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",cv[cv.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let eQ={DATA:cQ.DATA,RCDATA:cQ.RCDATA,RAWTEXT:cQ.RAWTEXT,SCRIPT_DATA:cQ.SCRIPT_DATA,PLAINTEXT:cQ.PLAINTEXT,CDATA_SECTION:cQ.CDATA_SECTION};function eK(e){return e>=cP.LATIN_CAPITAL_A&&e<=cP.LATIN_CAPITAL_Z}function eX(e){return e>=cP.LATIN_SMALL_A&&e<=cP.LATIN_SMALL_Z||eK(e)}function eZ(e){return eX(e)||e>=cP.DIGIT_0&&e<=cP.DIGIT_9}function eJ(e){return e===cP.SPACE||e===cP.LINE_FEED||e===cP.TABULATION||e===cP.FORM_FEED}function e0(e){return eJ(e)||e===cP.SOLIDUS||e===cP.GREATER_THAN_SIGN}class e1{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=cQ.DATA,this.returnState=cQ.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new eB(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ej(eH,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(cB.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(cB.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=function(e){if(e===cP.NULL)return cB.nullCharacterReference;if(e>1114111)return cB.characterReferenceOutsideUnicodeRange;if(ew(e))return cB.surrogateCharacterReference;if(eP(e))return cB.noncharacterCharacterReference;if(eM(e)||e===cP.CARRIAGE_RETURN)return cB.controlCharacterReference;return null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null==(r=(n=this.handler).onParseError)||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;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw 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;t0&&this._err(cB.endTagWithAttributes),e.selfClosing&&this._err(cB.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 cF.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case cF.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case cF.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:cF.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,t)}_emitCodePoint(e){let t=eJ(e)?cF.WHITESPACE_CHARACTER:e===cP.NULL?cF.NULL_CHARACTER:cF.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(cF.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=cQ.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?cz.Attribute:cz.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===cQ.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===cQ.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===cQ.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case cQ.DATA:this._stateData(e);break;case cQ.RCDATA:this._stateRcdata(e);break;case cQ.RAWTEXT:this._stateRawtext(e);break;case cQ.SCRIPT_DATA:this._stateScriptData(e);break;case cQ.PLAINTEXT:this._statePlaintext(e);break;case cQ.TAG_OPEN:this._stateTagOpen(e);break;case cQ.END_TAG_OPEN:this._stateEndTagOpen(e);break;case cQ.TAG_NAME:this._stateTagName(e);break;case cQ.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case cQ.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case cQ.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case cQ.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case cQ.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case cQ.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case cQ.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case cQ.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case cQ.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case cQ.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case cQ.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case cQ.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case cQ.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case cQ.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case cQ.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case cQ.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case cQ.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case cQ.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case cQ.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case cQ.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case cQ.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case cQ.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case cQ.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case cQ.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case cQ.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case cQ.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case cQ.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case cQ.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case cQ.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case cQ.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case cQ.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case cQ.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case cQ.BOGUS_COMMENT:this._stateBogusComment(e);break;case cQ.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case cQ.COMMENT_START:this._stateCommentStart(e);break;case cQ.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case cQ.COMMENT:this._stateComment(e);break;case cQ.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case cQ.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case cQ.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case cQ.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case cQ.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case cQ.COMMENT_END:this._stateCommentEnd(e);break;case cQ.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case cQ.DOCTYPE:this._stateDoctype(e);break;case cQ.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case cQ.DOCTYPE_NAME:this._stateDoctypeName(e);break;case cQ.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case cQ.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case cQ.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case cQ.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case cQ.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case cQ.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case cQ.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case cQ.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case cQ.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case cQ.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case cQ.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case cQ.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case cQ.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case cQ.CDATA_SECTION:this._stateCdataSection(e);break;case cQ.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case cQ.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case cQ.CHARACTER_REFERENCE:this._stateCharacterReference();break;case cQ.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case cP.LESS_THAN_SIGN:this.state=cQ.TAG_OPEN;break;case cP.AMPERSAND:this._startCharacterReference();break;case cP.NULL:this._err(cB.unexpectedNullCharacter),this._emitCodePoint(e);break;case cP.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case cP.AMPERSAND:this._startCharacterReference();break;case cP.LESS_THAN_SIGN:this.state=cQ.RCDATA_LESS_THAN_SIGN;break;case cP.NULL:this._err(cB.unexpectedNullCharacter),this._emitChars("�");break;case cP.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case cP.LESS_THAN_SIGN:this.state=cQ.RAWTEXT_LESS_THAN_SIGN;break;case cP.NULL:this._err(cB.unexpectedNullCharacter),this._emitChars("�");break;case cP.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case cP.LESS_THAN_SIGN:this.state=cQ.SCRIPT_DATA_LESS_THAN_SIGN;break;case cP.NULL:this._err(cB.unexpectedNullCharacter),this._emitChars("�");break;case cP.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case cP.NULL:this._err(cB.unexpectedNullCharacter),this._emitChars("�");break;case cP.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(eX(e))this._createStartTagToken(),this.state=cQ.TAG_NAME,this._stateTagName(e);else switch(e){case cP.EXCLAMATION_MARK:this.state=cQ.MARKUP_DECLARATION_OPEN;break;case cP.SOLIDUS:this.state=cQ.END_TAG_OPEN;break;case cP.QUESTION_MARK:this._err(cB.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=cQ.BOGUS_COMMENT,this._stateBogusComment(e);break;case cP.EOF:this._err(cB.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(cB.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=cQ.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(eX(e))this._createEndTagToken(),this.state=cQ.TAG_NAME,this._stateTagName(e);else switch(e){case cP.GREATER_THAN_SIGN:this._err(cB.missingEndTagName),this.state=cQ.DATA;break;case cP.EOF:this._err(cB.eofBeforeTagName),this._emitChars("");break;case cP.NULL:this._err(cB.unexpectedNullCharacter),this.state=cQ.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case cP.EOF:this._err(cB.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cQ.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===cP.SOLIDUS?this.state=cQ.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:eX(e)?(this._emitChars("<"),this.state=cQ.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=cQ.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){eX(e)?(this.state=cQ.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break;case cP.NULL:this._err(cB.unexpectedNullCharacter),this.state=cQ.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case cP.EOF:this._err(cB.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=cQ.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===cP.SOLIDUS?(this.state=cQ.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=cQ.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(ev,!1)&&e0(this.preprocessor.peek(ev.length))){this._emitCodePoint(e);for(let e=0;e0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let 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.current&&void 0!==this.currentTagId&&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])!==cY.HTML)this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(tt,cY.HTML)}clearBackToTableBodyContext(){this.clearBackTo(te,cY.HTML)}clearBackToTableRowContext(){this.clearBackTo(e8,cY.HTML)}remove(e){let 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]===cW.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===cW.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case cY.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case cY.SVG:if(e7.has(r))return!1;break;case cY.MATHML:if(e6.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,e3)}hasInListItemScope(e){return this.hasInDynamicScope(e,e4)}hasInButtonScope(e){return this.hasInDynamicScope(e,e9)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case cY.HTML:if(e$.has(t))return!0;if(e3.has(t))return!1;break;case cY.SVG:if(e7.has(t))return!1;break;case cY.MATHML:if(e6.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===cY.HTML)switch(this.tagIDs[t]){case e:return!0;case cW.TABLE:case cW.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===cY.HTML)switch(this.tagIDs[e]){case cW.TBODY:case cW.THEAD:case cW.TFOOT:return!0;case cW.TABLE:case cW.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===cY.HTML)switch(this.tagIDs[t]){case e:return!0;case cW.OPTION:case cW.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&e2.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&e5.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&e5.has(this.currentTagId);)this.pop()}}(cw=cK||(cK={}))[cw.Marker=0]="Marker",cw[cw.Element=1]="Element";let ti={type:cK.Marker};class ta{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],r=t.length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=0;e[e.name,e.value])),i=0;for(let e=0;er.get(e.name)===e.value)&&(i+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(ti)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:cK.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:cK.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(ti);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===cK.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===cK.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===cK.Element&&t.element===e)}}let ts={createDocument:()=>({nodeName:"#document",mode:cV.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){let 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){let i=e.childNodes.find(e=>"#documentType"===e.nodeName);i?(i.name=t,i.publicId=n,i.systemId=r):ts.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(ts.isTextNode(n)){n.value+=t;return}}ts.appendChild(e,ts.createTextNode(t))},insertTextBefore(e,t,n){let r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ts.isTextNode(r)?r.value+=t:ts.insertBefore(e,ts.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let r=0;re.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}}},to="html",tl=["+//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=[...tl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],tu=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),th=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],tp=[...th,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function td(e,t){return t.some(t=>e.startsWith(t))}let tm=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])),tf=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:cY.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:cY.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:cY.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:cY.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:cY.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:cY.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:cY.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:cY.XML}],["xml:space",{prefix:"xml",name:"space",namespace:cY.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:cY.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:cY.XMLNS}]]),tg=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])),tE=new Set([cW.B,cW.BIG,cW.BLOCKQUOTE,cW.BODY,cW.BR,cW.CENTER,cW.CODE,cW.DD,cW.DIV,cW.DL,cW.DT,cW.EM,cW.EMBED,cW.H1,cW.H2,cW.H3,cW.H4,cW.H5,cW.H6,cW.HEAD,cW.HR,cW.I,cW.IMG,cW.LI,cW.LISTING,cW.MENU,cW.META,cW.NOBR,cW.OL,cW.P,cW.PRE,cW.RUBY,cW.S,cW.SMALL,cW.SPAN,cW.STRONG,cW.STRIKE,cW.SUB,cW.SUP,cW.TABLE,cW.TT,cW.U,cW.UL,cW.VAR]);function tT(e){for(let t=0;t0&&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)||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){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===cY.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,cY.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=cX.TEXT}switchToPlaintextParsing(){this.insertionMode=cX.TEXT,this.originalInsertionMode=cX.IN_BODY,this.tokenizer.state=eQ.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)===c$.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===cY.HTML)switch(this.fragmentContextID){case cW.TITLE:case cW.TEXTAREA:this.tokenizer.state=eQ.RCDATA;break;case cW.STYLE:case cW.XMP:case cW.IFRAME:case cW.NOEMBED:case cW.NOFRAMES:case cW.NOSCRIPT:this.tokenizer.state=eQ.RAWTEXT;break;case cW.SCRIPT:this.tokenizer.state=eQ.SCRIPT_DATA;break;case cW.PLAINTEXT:this.tokenizer.state=eQ.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){let 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){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,cY.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,cY.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(){let e=this.treeAdapter.createElement(c$.HTML,cY.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,cW.HTML)}_appendCommentNode(e,t){let 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;let r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,a=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){let{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,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){let n=t.location,r=this.treeAdapter.getTagName(e),i=t.type===cF.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){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==cW.SVG||this.treeAdapter.getTagName(t)!==c$.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==cY.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===cW.MGLYPH||e.tagID===cW.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,cY.HTML)))}_processToken(e){switch(e.type){case cF.CHARACTER:this.onCharacter(e);break;case cF.NULL_CHARACTER:this.onNullCharacter(e);break;case cF.COMMENT:this.onComment(e);break;case cF.DOCTYPE:this.onDoctype(e);break;case cF.START_TAG:this._processStartTag(e);break;case cF.END_TAG:this.onEndTag(e);break;case cF.EOF:this.onEof(e);break;case cF.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return(!n||n===cY.HTML)&&function(e,t,n){if(t===cY.MATHML&&e===cW.ANNOTATION_XML){for(let e=0;ee.type===cK.Marker||this.openElements.contains(e.element)),n=-1===t?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=cX.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(cW.P),this.openElements.popUntilTagNamePopped(cW.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case cW.TR:this.insertionMode=cX.IN_ROW;return;case cW.TBODY:case cW.THEAD:case cW.TFOOT:this.insertionMode=cX.IN_TABLE_BODY;return;case cW.CAPTION:this.insertionMode=cX.IN_CAPTION;return;case cW.COLGROUP:this.insertionMode=cX.IN_COLUMN_GROUP;return;case cW.TABLE:this.insertionMode=cX.IN_TABLE;return;case cW.BODY:this.insertionMode=cX.IN_BODY;return;case cW.FRAMESET:this.insertionMode=cX.IN_FRAMESET;return;case cW.SELECT:return void this._resetInsertionModeForSelect(e);case cW.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case cW.HTML:this.insertionMode=this.headElement?cX.AFTER_HEAD:cX.BEFORE_HEAD;return;case cW.TD:case cW.TH:if(e>0){this.insertionMode=cX.IN_CELL;return}break;case cW.HEAD:if(e>0){this.insertionMode=cX.IN_HEAD;return}}this.insertionMode=cX.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===cW.TEMPLATE)break;if(e===cW.TABLE){this.insertionMode=cX.IN_SELECT_IN_TABLE;return}}this.insertionMode=cX.IN_SELECT}_isElementCausesFosterParenting(e){return tb.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case cW.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===cY.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case cW.TABLE:{let n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return eV[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,n=e,t._insertCharacters(n),t.framesetOk=!1)}switch(this.insertionMode){case cX.INITIAL:tx(this,e);break;case cX.BEFORE_HTML:tD(this,e);break;case cX.BEFORE_HEAD:tO(this,e);break;case cX.IN_HEAD:tv(this,e);break;case cX.IN_HEAD_NO_SCRIPT:tw(this,e);break;case cX.AFTER_HEAD:tM(this,e);break;case cX.IN_BODY:case cX.IN_CAPTION:case cX.IN_CELL:case cX.IN_TEMPLATE:tF(this,e);break;case cX.TEXT:case cX.IN_SELECT:case cX.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case cX.IN_TABLE:case cX.IN_TABLE_BODY:case cX.IN_ROW:t$(this,e);break;case cX.IN_TABLE_TEXT:tZ(this,e);break;case cX.IN_COLUMN_GROUP:t2(this,e);break;case cX.AFTER_BODY:nt(this,e);break;case cX.AFTER_AFTER_BODY:nn(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){var t,n;return void(t=this,(n=e).chars="�",t._insertCharacters(n))}switch(this.insertionMode){case cX.INITIAL:tx(this,e);break;case cX.BEFORE_HTML:tD(this,e);break;case cX.BEFORE_HEAD:tO(this,e);break;case cX.IN_HEAD:tv(this,e);break;case cX.IN_HEAD_NO_SCRIPT:tw(this,e);break;case cX.AFTER_HEAD:tM(this,e);break;case cX.TEXT:this._insertCharacters(e);break;case cX.IN_TABLE:case cX.IN_TABLE_BODY:case cX.IN_ROW:t$(this,e);break;case cX.IN_COLUMN_GROUP:t2(this,e);break;case cX.AFTER_BODY:nt(this,e);break;case cX.AFTER_AFTER_BODY:nn(this,e)}}onComment(e){var t,n,r,i;if(this.skipNextNewLine=!1,this.currentNotInHTML)return void tS(this,e);switch(this.insertionMode){case cX.INITIAL:case cX.BEFORE_HTML:case cX.BEFORE_HEAD:case cX.IN_HEAD:case cX.IN_HEAD_NO_SCRIPT:case cX.AFTER_HEAD:case cX.IN_BODY:case cX.IN_TABLE:case cX.IN_CAPTION:case cX.IN_COLUMN_GROUP:case cX.IN_TABLE_BODY:case cX.IN_ROW:case cX.IN_CELL:case cX.IN_SELECT:case cX.IN_SELECT_IN_TABLE:case cX.IN_TEMPLATE:case cX.IN_FRAMESET:case cX.AFTER_FRAMESET:tS(this,e);break;case cX.IN_TABLE_TEXT:tJ(this,e);break;case cX.AFTER_BODY:t=this,n=e,t._appendCommentNode(n,t.openElements.items[0]);break;case cX.AFTER_AFTER_BODY:case cX.AFTER_AFTER_FRAMESET:r=this,i=e,r._appendCommentNode(i,r.document)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case cX.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?cV.QUIRKS:function(e){if(e.name!==to)return cV.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return cV.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),tu.has(n))return cV.QUIRKS;let e=null===t?tc:tl;if(td(n,e))return cV.QUIRKS;if(td(n,e=null===t?th:tp))return cV.LIMITED_QUIRKS}return cV.NO_QUIRKS}(t);(t.name!==to||null!==t.publicId||null!==t.systemId&&"about:legacy-compat"!==t.systemId)&&e._err(t,cB.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=cX.BEFORE_HTML}(this,e);break;case cX.BEFORE_HEAD:case cX.IN_HEAD:case cX.IN_HEAD_NO_SCRIPT:case cX.AFTER_HEAD:this._err(e,cB.misplacedDoctype);break;case cX.IN_TABLE_TEXT:tJ(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,cB.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){let n;if((n=t.tagID)===cW.FONT&&t.attrs.some(({name:e})=>e===cq.COLOR||e===cq.SIZE||e===cq.FACE)||tE.has(n))nr(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);if(r===cY.MATHML)tT(t);else if(r===cY.SVG){let e;null!=(e=tg.get(t.tagName))&&(t.tagName=e,t.tagID=eY(t.tagName)),tA(t)}tk(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 cX.INITIAL:tx(this,e);break;case cX.BEFORE_HTML:t=this,(n=e).tagID===cW.HTML?(t._insertElement(n,cY.HTML),t.insertionMode=cX.BEFORE_HEAD):tD(t,n);break;case cX.BEFORE_HEAD:var t,n,r,i,a,s,o,l,c,u,h,p,d=this,m=e;switch(m.tagID){case cW.HTML:tz(d,m);break;case cW.HEAD:d._insertElement(m,cY.HTML),d.headElement=d.openElements.current,d.insertionMode=cX.IN_HEAD;break;default:tO(d,m)}break;case cX.IN_HEAD:tR(this,e);break;case cX.IN_HEAD_NO_SCRIPT:var f=this,g=e;switch(g.tagID){case cW.HTML:tz(f,g);break;case cW.BASEFONT:case cW.BGSOUND:case cW.HEAD:case cW.LINK:case cW.META:case cW.NOFRAMES:case cW.STYLE:tR(f,g);break;case cW.NOSCRIPT:f._err(g,cB.nestedNoscriptInHead);break;default:tw(f,g)}break;case cX.AFTER_HEAD:var E=this,T=e;switch(T.tagID){case cW.HTML:tz(E,T);break;case cW.BODY:E._insertElement(T,cY.HTML),E.framesetOk=!1,E.insertionMode=cX.IN_BODY;break;case cW.FRAMESET:E._insertElement(T,cY.HTML),E.insertionMode=cX.IN_FRAMESET;break;case cW.BASE:case cW.BASEFONT:case cW.BGSOUND:case cW.LINK:case cW.META:case cW.NOFRAMES:case cW.SCRIPT:case cW.STYLE:case cW.TEMPLATE:case cW.TITLE:E._err(T,cB.abandonedHeadElementChild),E.openElements.push(E.headElement,cW.HEAD),tR(E,T),E.openElements.remove(E.headElement);break;case cW.HEAD:E._err(T,cB.misplacedStartTagForHeadElement);break;default:tM(E,T)}break;case cX.IN_BODY:tz(this,e);break;case cX.IN_TABLE:tW(this,e);break;case cX.IN_TABLE_TEXT:tJ(this,e);break;case cX.IN_CAPTION:let A;r=this,A=(i=e).tagID,t0.has(A)?r.openElements.hasInTableScope(cW.CAPTION)&&(r.openElements.generateImpliedEndTags(),r.openElements.popUntilTagNamePopped(cW.CAPTION),r.activeFormattingElements.clearToLastMarker(),r.insertionMode=cX.IN_TABLE,tW(r,i)):tz(r,i);break;case cX.IN_COLUMN_GROUP:t1(this,e);break;case cX.IN_TABLE_BODY:t5(this,e);break;case cX.IN_ROW:t4(this,e);break;case cX.IN_CELL:let k;a=this,k=(s=e).tagID,t0.has(k)?(a.openElements.hasInTableScope(cW.TD)||a.openElements.hasInTableScope(cW.TH))&&(a._closeTableCell(),t4(a,s)):tz(a,s);break;case cX.IN_SELECT:t6(this,e);break;case cX.IN_SELECT_IN_TABLE:let _;o=this,(_=(l=e).tagID)===cW.CAPTION||_===cW.TABLE||_===cW.TBODY||_===cW.TFOOT||_===cW.THEAD||_===cW.TR||_===cW.TD||_===cW.TH?(o.openElements.popUntilTagNamePopped(cW.SELECT),o._resetInsertionMode(),o._processStartTag(l)):t6(o,l);break;case cX.IN_TEMPLATE:var b=this,y=e;switch(y.tagID){case cW.BASE:case cW.BASEFONT:case cW.BGSOUND:case cW.LINK:case cW.META:case cW.NOFRAMES:case cW.SCRIPT:case cW.STYLE:case cW.TEMPLATE:case cW.TITLE:tR(b,y);break;case cW.CAPTION:case cW.COLGROUP:case cW.TBODY:case cW.TFOOT:case cW.THEAD:b.tmplInsertionModeStack[0]=cX.IN_TABLE,b.insertionMode=cX.IN_TABLE,tW(b,y);break;case cW.COL:b.tmplInsertionModeStack[0]=cX.IN_COLUMN_GROUP,b.insertionMode=cX.IN_COLUMN_GROUP,t1(b,y);break;case cW.TR:b.tmplInsertionModeStack[0]=cX.IN_TABLE_BODY,b.insertionMode=cX.IN_TABLE_BODY,t5(b,y);break;case cW.TD:case cW.TH:b.tmplInsertionModeStack[0]=cX.IN_ROW,b.insertionMode=cX.IN_ROW,t4(b,y);break;default:b.tmplInsertionModeStack[0]=cX.IN_BODY,b.insertionMode=cX.IN_BODY,tz(b,y)}break;case cX.AFTER_BODY:c=this,(u=e).tagID===cW.HTML?tz(c,u):nt(c,u);break;case cX.IN_FRAMESET:var C=this,N=e;switch(N.tagID){case cW.HTML:tz(C,N);break;case cW.FRAMESET:C._insertElement(N,cY.HTML);break;case cW.FRAME:C._appendElement(N,cY.HTML),N.ackSelfClosing=!0;break;case cW.NOFRAMES:tR(C,N)}break;case cX.AFTER_FRAMESET:var S=this,I=e;switch(I.tagID){case cW.HTML:tz(S,I);break;case cW.NOFRAMES:tR(S,I)}break;case cX.AFTER_AFTER_BODY:h=this,(p=e).tagID===cW.HTML?tz(h,p):nn(h,p);break;case cX.AFTER_AFTER_FRAMESET:var x=this,D=e;switch(D.tagID){case cW.HTML:tz(x,D);break;case cW.NOFRAMES:tR(x,D)}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===cW.P||t.tagID===cW.BR){nr(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===cY.HTML){e._endTagOutsideForeignContent(t);break}let 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 cX.INITIAL:tx(this,e);break;case cX.BEFORE_HTML:let t;r=this,((t=(i=e).tagID)===cW.HTML||t===cW.HEAD||t===cW.BODY||t===cW.BR)&&tD(r,i);break;case cX.BEFORE_HEAD:let n;a=this,(n=(s=e).tagID)===cW.HEAD||n===cW.BODY||n===cW.HTML||n===cW.BR?tO(a,s):a._err(s,cB.endTagWithoutMatchingOpenElement);break;case cX.IN_HEAD:var r,i,a,s,o,l,c,u,h,p,d,m,f=this,g=e;switch(g.tagID){case cW.HEAD:f.openElements.pop(),f.insertionMode=cX.AFTER_HEAD;break;case cW.BODY:case cW.BR:case cW.HTML:tv(f,g);break;case cW.TEMPLATE:tL(f,g);break;default:f._err(g,cB.endTagWithoutMatchingOpenElement)}break;case cX.IN_HEAD_NO_SCRIPT:var E=this,T=e;switch(T.tagID){case cW.NOSCRIPT:E.openElements.pop(),E.insertionMode=cX.IN_HEAD;break;case cW.BR:tw(E,T);break;default:E._err(T,cB.endTagWithoutMatchingOpenElement)}break;case cX.AFTER_HEAD:var A=this,k=e;switch(k.tagID){case cW.BODY:case cW.HTML:case cW.BR:tM(A,k);break;case cW.TEMPLATE:tL(A,k);break;default:A._err(k,cB.endTagWithoutMatchingOpenElement)}break;case cX.IN_BODY:tq(this,e);break;case cX.TEXT:o=this,e.tagID===cW.SCRIPT&&(null==(l=o.scriptHandler)||l.call(o,o.openElements.current)),o.openElements.pop(),o.insertionMode=o.originalInsertionMode;break;case cX.IN_TABLE:tQ(this,e);break;case cX.IN_TABLE_TEXT:tJ(this,e);break;case cX.IN_CAPTION:var _=this,b=e;let y=b.tagID;switch(y){case cW.CAPTION:case cW.TABLE:_.openElements.hasInTableScope(cW.CAPTION)&&(_.openElements.generateImpliedEndTags(),_.openElements.popUntilTagNamePopped(cW.CAPTION),_.activeFormattingElements.clearToLastMarker(),_.insertionMode=cX.IN_TABLE,y===cW.TABLE&&tQ(_,b));break;case cW.BODY:case cW.COL:case cW.COLGROUP:case cW.HTML:case cW.TBODY:case cW.TD:case cW.TFOOT:case cW.TH:case cW.THEAD:case cW.TR:break;default:tq(_,b)}break;case cX.IN_COLUMN_GROUP:var C=this,N=e;switch(N.tagID){case cW.COLGROUP:C.openElements.currentTagId===cW.COLGROUP&&(C.openElements.pop(),C.insertionMode=cX.IN_TABLE);break;case cW.TEMPLATE:tL(C,N);break;case cW.COL:break;default:t2(C,N)}break;case cX.IN_TABLE_BODY:t3(this,e);break;case cX.IN_ROW:t9(this,e);break;case cX.IN_CELL:var S=this,I=e;let x=I.tagID;switch(x){case cW.TD:case cW.TH:S.openElements.hasInTableScope(x)&&(S.openElements.generateImpliedEndTags(),S.openElements.popUntilTagNamePopped(x),S.activeFormattingElements.clearToLastMarker(),S.insertionMode=cX.IN_ROW);break;case cW.TABLE:case cW.TBODY:case cW.TFOOT:case cW.THEAD:case cW.TR:S.openElements.hasInTableScope(x)&&(S._closeTableCell(),t9(S,I));break;case cW.BODY:case cW.CAPTION:case cW.COL:case cW.COLGROUP:case cW.HTML:break;default:tq(S,I)}break;case cX.IN_SELECT:t7(this,e);break;case cX.IN_SELECT_IN_TABLE:let D;c=this,(D=(u=e).tagID)===cW.CAPTION||D===cW.TABLE||D===cW.TBODY||D===cW.TFOOT||D===cW.THEAD||D===cW.TR||D===cW.TD||D===cW.TH?c.openElements.hasInTableScope(D)&&(c.openElements.popUntilTagNamePopped(cW.SELECT),c._resetInsertionMode(),c.onEndTag(u)):t7(c,u);break;case cX.IN_TEMPLATE:h=this,(p=e).tagID===cW.TEMPLATE&&tL(h,p);break;case cX.AFTER_BODY:ne(this,e);break;case cX.IN_FRAMESET:d=this,e.tagID===cW.FRAMESET&&!d.openElements.isRootHtmlElementCurrent()&&(d.openElements.pop(),d.fragmentContext||d.openElements.currentTagId===cW.FRAMESET||(d.insertionMode=cX.AFTER_FRAMESET));break;case cX.AFTER_FRAMESET:m=this,e.tagID===cW.HTML&&(m.insertionMode=cX.AFTER_AFTER_FRAMESET);break;case cX.AFTER_AFTER_BODY:nn(this,e)}}onEof(e){switch(this.insertionMode){case cX.INITIAL:tx(this,e);break;case cX.BEFORE_HTML:tD(this,e);break;case cX.BEFORE_HEAD:tO(this,e);break;case cX.IN_HEAD:tv(this,e);break;case cX.IN_HEAD_NO_SCRIPT:tw(this,e);break;case cX.AFTER_HEAD:tM(this,e);break;case cX.IN_BODY:case cX.IN_TABLE:case cX.IN_CAPTION:case cX.IN_COLUMN_GROUP:case cX.IN_TABLE_BODY:case cX.IN_ROW:case cX.IN_CELL:case cX.IN_SELECT:case cX.IN_SELECT_IN_TABLE:tV(this,e);break;case cX.TEXT:var t,n;t=this,n=e,t._err(n,cB.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(n);break;case cX.IN_TABLE_TEXT:tJ(this,e);break;case cX.IN_TEMPLATE:t8(this,e);break;case cX.AFTER_BODY:case cX.IN_FRAMESET:case cX.AFTER_FRAMESET:case cX.AFTER_AFTER_BODY:case cX.AFTER_AFTER_FRAMESET:tI(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===cP.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)return void this._insertCharacters(e);switch(this.insertionMode){case cX.IN_HEAD:case cX.IN_HEAD_NO_SCRIPT:case cX.AFTER_HEAD:case cX.TEXT:case cX.IN_COLUMN_GROUP:case cX.IN_SELECT:case cX.IN_SELECT_IN_TABLE:case cX.IN_FRAMESET:case cX.AFTER_FRAMESET:this._insertCharacters(e);break;case cX.IN_BODY:case cX.IN_CAPTION:case cX.IN_CELL:case cX.IN_TEMPLATE:case cX.AFTER_BODY:case cX.AFTER_AFTER_BODY:case cX.AFTER_AFTER_FRAMESET:tB(this,e);break;case cX.IN_TABLE:case cX.IN_TABLE_BODY:case cX.IN_ROW:t$(this,e);break;case cX.IN_TABLE_TEXT:tX(this,e)}}}function tN(e,t){for(let n=0;n<8;n++){let n=function(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):tY(e,t),n}(e,t);if(!n)break;let r=function(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){let i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;let i=function(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);let n=e.activeFormattingElements.getElementEntry(s),o=n&&a>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=function(e,t){let 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}(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}(e,r,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),a&&function(e,t,n){let r=eY(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{let i=e.treeAdapter.getNamespaceURI(t);r===cW.TEMPLATE&&i===cY.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,a,i),function(e,t,n){let r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}(e,r,n)}}function tS(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function tI(e,t){if(e.stopped=!0,t.location){let n=2*!e.fragmentContext;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function tx(e,t){e._err(t,cB.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,cV.QUIRKS),e.insertionMode=cX.BEFORE_HTML,e._processToken(t)}function tD(e,t){e._insertFakeRootElement(),e.insertionMode=cX.BEFORE_HEAD,e._processToken(t)}function tO(e,t){e._insertFakeElement(c$.HEAD,cW.HEAD),e.headElement=e.openElements.current,e.insertionMode=cX.IN_HEAD,e._processToken(t)}function tR(e,t){switch(t.tagID){case cW.HTML:tz(e,t);break;case cW.BASE:case cW.BASEFONT:case cW.BGSOUND:case cW.LINK:case cW.META:e._appendElement(t,cY.HTML),t.ackSelfClosing=!0;break;case cW.TITLE:e._switchToTextParsing(t,eQ.RCDATA);break;case cW.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,eQ.RAWTEXT):(e._insertElement(t,cY.HTML),e.insertionMode=cX.IN_HEAD_NO_SCRIPT);break;case cW.NOFRAMES:case cW.STYLE:e._switchToTextParsing(t,eQ.RAWTEXT);break;case cW.SCRIPT:e._switchToTextParsing(t,eQ.SCRIPT_DATA);break;case cW.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=cX.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(cX.IN_TEMPLATE);break;case cW.HEAD:e._err(t,cB.misplacedStartTagForHeadElement);break;default:tv(e,t)}}function tL(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==cW.TEMPLATE&&e._err(t,cB.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(cW.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,cB.endTagWithoutMatchingOpenElement)}function tv(e,t){e.openElements.pop(),e.insertionMode=cX.AFTER_HEAD,e._processToken(t)}function tw(e,t){let n=t.type===cF.EOF?cB.openElementsLeftAfterEof:cB.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=cX.IN_HEAD,e._processToken(t)}function tM(e,t){e._insertFakeElement(c$.BODY,cW.BODY),e.insertionMode=cX.IN_BODY,tP(e,t)}function tP(e,t){switch(t.type){case cF.CHARACTER:tF(e,t);break;case cF.WHITESPACE_CHARACTER:tB(e,t);break;case cF.COMMENT:tS(e,t);break;case cF.START_TAG:tz(e,t);break;case cF.END_TAG:tq(e,t);break;case cF.EOF:tV(e,t)}}function tB(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function tF(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function tH(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,cY.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function tU(e){let t=eF(e,cq.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function tG(e,t){e._switchToTextParsing(t,eQ.RAWTEXT)}function tj(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,cY.HTML)}function tz(e,t){switch(t.tagID){case cW.I:case cW.S:case cW.B:case cW.U:case cW.EM:case cW.TT:case cW.BIG:case cW.CODE:case cW.FONT:case cW.SMALL:case cW.STRIKE:case cW.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,cY.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cW.A:let n;(n=e.activeFormattingElements.getElementEntryInScopeWithTagName(c$.A))&&(tN(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,cY.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cW.H1:case cW.H2:case cW.H3:case cW.H4:case cW.H5:case cW.H6:e.openElements.hasInButtonScope(cW.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&e$.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,cY.HTML);break;case cW.P:case cW.DL:case cW.OL:case cW.UL:case cW.DIV:case cW.DIR:case cW.NAV:case cW.MAIN:case cW.MENU:case cW.ASIDE:case cW.CENTER:case cW.FIGURE:case cW.FOOTER:case cW.HEADER:case cW.HGROUP:case cW.DIALOG:case cW.DETAILS:case cW.ADDRESS:case cW.ARTICLE:case cW.SEARCH:case cW.SECTION:case cW.SUMMARY:case cW.FIELDSET:case cW.BLOCKQUOTE:case cW.FIGCAPTION:e.openElements.hasInButtonScope(cW.P)&&e._closePElement(),e._insertElement(t,cY.HTML);break;case cW.LI:case cW.DD:case cW.DT:e.framesetOk=!1;let r=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let n=e.openElements.tagIDs[t];if(r===cW.LI&&n===cW.LI||(r===cW.DD||r===cW.DT)&&(n===cW.DD||n===cW.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==cW.ADDRESS&&n!==cW.DIV&&n!==cW.P&&e._isSpecialElement(e.openElements.items[t],n))break}e.openElements.hasInButtonScope(cW.P)&&e._closePElement(),e._insertElement(t,cY.HTML);break;case cW.BR:case cW.IMG:case cW.WBR:case cW.AREA:case cW.EMBED:case cW.KEYGEN:tH(e,t);break;case cW.HR:e.openElements.hasInButtonScope(cW.P)&&e._closePElement(),e._appendElement(t,cY.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case cW.RB:case cW.RTC:e.openElements.hasInScope(cW.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,cY.HTML);break;case cW.RT:case cW.RP:e.openElements.hasInScope(cW.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(cW.RTC),e._insertElement(t,cY.HTML);break;case cW.PRE:case cW.LISTING:e.openElements.hasInButtonScope(cW.P)&&e._closePElement(),e._insertElement(t,cY.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case cW.XMP:e.openElements.hasInButtonScope(cW.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,eQ.RAWTEXT);break;case cW.SVG:e._reconstructActiveFormattingElements(),tA(t),tk(t),t.selfClosing?e._appendElement(t,cY.SVG):e._insertElement(t,cY.SVG),t.ackSelfClosing=!0;break;case cW.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case cW.BASE:case cW.LINK:case cW.META:case cW.STYLE:case cW.TITLE:case cW.SCRIPT:case cW.BGSOUND:case cW.BASEFONT:case cW.TEMPLATE:tR(e,t);break;case cW.BODY:let i;(i=e.openElements.tryPeekProperlyNestedBodyElement())&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(i,t.attrs));break;case cW.FORM:let a;a=e.openElements.tmplCount>0,(!e.formElement||a)&&(e.openElements.hasInButtonScope(cW.P)&&e._closePElement(),e._insertElement(t,cY.HTML),a||(e.formElement=e.openElements.current));break;case cW.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(cW.NOBR)&&(tN(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,cY.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case cW.MATH:e._reconstructActiveFormattingElements(),tT(t),tk(t),t.selfClosing?e._appendElement(t,cY.MATHML):e._insertElement(t,cY.MATHML),t.ackSelfClosing=!0;break;case cW.TABLE:e.treeAdapter.getDocumentMode(e.document)!==cV.QUIRKS&&e.openElements.hasInButtonScope(cW.P)&&e._closePElement(),e._insertElement(t,cY.HTML),e.framesetOk=!1,e.insertionMode=cX.IN_TABLE;break;case cW.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,cY.HTML),tU(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case cW.PARAM:case cW.TRACK:case cW.SOURCE:e._appendElement(t,cY.HTML),t.ackSelfClosing=!0;break;case cW.IMAGE:t.tagName=c$.IMG,t.tagID=cW.IMG,tH(e,t);break;case cW.BUTTON:e.openElements.hasInScope(cW.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(cW.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,cY.HTML),e.framesetOk=!1;break;case cW.APPLET:case cW.OBJECT:case cW.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,cY.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case cW.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,eQ.RAWTEXT);break;case cW.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,cY.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===cX.IN_TABLE||e.insertionMode===cX.IN_CAPTION||e.insertionMode===cX.IN_TABLE_BODY||e.insertionMode===cX.IN_ROW||e.insertionMode===cX.IN_CELL?cX.IN_SELECT_IN_TABLE:cX.IN_SELECT;break;case cW.OPTION:case cW.OPTGROUP:e.openElements.currentTagId===cW.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,cY.HTML);break;case cW.NOEMBED:case cW.NOFRAMES:tG(e,t);break;case cW.FRAMESET:let s;s=e.openElements.tryPeekProperlyNestedBodyElement(),e.framesetOk&&s&&(e.treeAdapter.detachNode(s),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,cY.HTML),e.insertionMode=cX.IN_FRAMESET);break;case cW.TEXTAREA:e._insertElement(t,cY.HTML),e.skipNextNewLine=!0,e.tokenizer.state=eQ.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=cX.TEXT;break;case cW.NOSCRIPT:e.options.scriptingEnabled?tG(e,t):tj(e,t);break;case cW.PLAINTEXT:e.openElements.hasInButtonScope(cW.P)&&e._closePElement(),e._insertElement(t,cY.HTML),e.tokenizer.state=eQ.PLAINTEXT;break;case cW.COL:case cW.TH:case cW.TD:case cW.TR:case cW.HEAD:case cW.FRAME:case cW.TBODY:case cW.TFOOT:case cW.THEAD:case cW.CAPTION:case cW.COLGROUP:break;default:tj(e,t)}}function tY(e,t){let n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let i=e.openElements.items[t],a=e.openElements.tagIDs[t];if(r===a&&(r!==cW.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,a))break}}function tq(e,t){switch(t.tagID){case cW.A:case cW.B:case cW.I:case cW.S:case cW.U:case cW.EM:case cW.TT:case cW.BIG:case cW.CODE:case cW.FONT:case cW.NOBR:case cW.SMALL:case cW.STRIKE:case cW.STRONG:tN(e,t);break;case cW.P:e.openElements.hasInButtonScope(cW.P)||e._insertFakeElement(c$.P,cW.P),e._closePElement();break;case cW.DL:case cW.UL:case cW.OL:case cW.DIR:case cW.DIV:case cW.NAV:case cW.PRE:case cW.MAIN:case cW.MENU:case cW.ASIDE:case cW.BUTTON:case cW.CENTER:case cW.FIGURE:case cW.FOOTER:case cW.HEADER:case cW.HGROUP:case cW.DIALOG:case cW.ADDRESS:case cW.ARTICLE:case cW.DETAILS:case cW.SEARCH:case cW.SECTION:case cW.SUMMARY:case cW.LISTING:case cW.FIELDSET:case cW.BLOCKQUOTE:case cW.FIGCAPTION:let n;n=t.tagID,e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n));break;case cW.LI:e.openElements.hasInListItemScope(cW.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(cW.LI),e.openElements.popUntilTagNamePopped(cW.LI));break;case cW.DD:case cW.DT:let r;r=t.tagID,e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r));break;case cW.H1:case cW.H2:case cW.H3:case cW.H4:case cW.H5:case cW.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case cW.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(c$.BR,cW.BR),e.openElements.pop(),e.framesetOk=!1;break;case cW.BODY:if(e.openElements.hasInScope(cW.BODY)&&(e.insertionMode=cX.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}break;case cW.HTML:e.openElements.hasInScope(cW.BODY)&&(e.insertionMode=cX.AFTER_BODY,ne(e,t));break;case cW.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(cW.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(cW.FORM):n&&e.openElements.remove(n))}(e);break;case cW.APPLET:case cW.OBJECT:case cW.MARQUEE:let i;i=t.tagID,e.openElements.hasInScope(i)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i),e.activeFormattingElements.clearToLastMarker());break;case cW.TEMPLATE:tL(e,t);break;default:tY(e,t)}}function tV(e,t){e.tmplInsertionModeStack.length>0?t8(e,t):tI(e,t)}function t$(e,t){if(void 0!==e.openElements.currentTagId&&tb.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=cX.IN_TABLE_TEXT,t.type){case cF.CHARACTER:tZ(e,t);break;case cF.WHITESPACE_CHARACTER:tX(e,t)}else tK(e,t)}function tW(e,t){switch(t.tagID){case cW.TD:case cW.TH:case cW.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(c$.TBODY,cW.TBODY),e.insertionMode=cX.IN_TABLE_BODY,t5(e,t);break;case cW.STYLE:case cW.SCRIPT:case cW.TEMPLATE:tR(e,t);break;case cW.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(c$.COLGROUP,cW.COLGROUP),e.insertionMode=cX.IN_COLUMN_GROUP,t1(e,t);break;case cW.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,cY.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case cW.TABLE:e.openElements.hasInTableScope(cW.TABLE)&&(e.openElements.popUntilTagNamePopped(cW.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case cW.TBODY:case cW.TFOOT:case cW.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,cY.HTML),e.insertionMode=cX.IN_TABLE_BODY;break;case cW.INPUT:tU(t)?e._appendElement(t,cY.HTML):tK(e,t),t.ackSelfClosing=!0;break;case cW.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,cY.HTML),e.insertionMode=cX.IN_CAPTION;break;case cW.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,cY.HTML),e.insertionMode=cX.IN_COLUMN_GROUP;break;default:tK(e,t)}}function tQ(e,t){switch(t.tagID){case cW.TABLE:e.openElements.hasInTableScope(cW.TABLE)&&(e.openElements.popUntilTagNamePopped(cW.TABLE),e._resetInsertionMode());break;case cW.TEMPLATE:tL(e,t);break;case cW.BODY:case cW.CAPTION:case cW.COL:case cW.COLGROUP:case cW.HTML:case cW.TBODY:case cW.TD:case cW.TFOOT:case cW.TH:case cW.THEAD:case cW.TR:break;default:tK(e,t)}}function tK(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,tP(e,t),e.fosterParentingEnabled=n}function tX(e,t){e.pendingCharacterTokens.push(t)}function tZ(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tJ(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===cW.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===cW.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===cW.OPTGROUP&&e.openElements.pop();break;case cW.OPTION:e.openElements.currentTagId===cW.OPTION&&e.openElements.pop();break;case cW.SELECT:e.openElements.hasInSelectScope(cW.SELECT)&&(e.openElements.popUntilTagNamePopped(cW.SELECT),e._resetInsertionMode());break;case cW.TEMPLATE:tL(e,t)}}function t8(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(cW.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):tI(e,t)}function ne(e,t){var n;if(t.tagID===cW.HTML){if(e.fragmentContext||(e.insertionMode=cX.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===cW.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];!r||(null==(n=e.treeAdapter.getNodeSourceCodeLocation(r))?void 0:n.endTag)||e._setEndLocation(r,t)}}else nt(e,t)}function nt(e,t){e.insertionMode=cX.IN_BODY,tP(e,t)}function nn(e,t){e.insertionMode=cX.IN_BODY,tP(e,t)}function nr(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==cY.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}c$.AREA,c$.BASE,c$.BASEFONT,c$.BGSOUND,c$.BR,c$.COL,c$.EMBED,c$.FRAME,c$.HR,c$.IMG,c$.INPUT,c$.KEYGEN,c$.LINK,c$.META,c$.PARAM,c$.SOURCE,c$.TRACK,c$.WBR;var ni=e.i(743820),ni=ni,na=e.i(113515),na=na;let ns=nl("end"),no=nl("start");function nl(e){return function(t){let 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 nc(e){let t=no(e),n=ns(e);if(t&&n)return{start:t,end:n}}let nu=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,nh=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),np={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function nd(e,t){var n,r;let i,a,s=!!((i="root"===(r=e).type?r.children[0]:r)&&("doctype"===i.type||"element"===i.type&&"html"===i.tagName.toLowerCase())),o=eC("type",{handlers:{root:nf,element:ng,text:nE,comment:nA,doctype:nT,raw:nk},unknown:n_}),c={parser:s?new tC(np):tC.getFragmentParser(void 0,np),handle(e){o(e,c)},stitches:!1,options:t||{}};o(e,c),nb(c,no());let u=(n=s?c.parser.document:c.parser.getFragment(),eT({file:(a={file:c.options.file}).file||void 0,location:!1,schema:"svg"===a.space?Z:X,verbose:a.verbose||!1},n));return(c.stitches&&l(u,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===u.type&&1===u.children.length&&u.children[0].type===e.type)?u.children[0]:u}function nm(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);let n={type:ni.TokenType.CHARACTER,chars:e.value,location:nC(e)};nb(t,no(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nT(e,t){let n={type:ni.TokenType.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:nC(e)};nb(t,no(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nA(e,t){let n=e.value,r={type:ni.TokenType.COMMENT,data:n,location:nC(e)};nb(t,no(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function nk(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,ny(t,no(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(nu,"<$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;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function n_(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type)){var n;let r;t.stitches=!0,r="children"in(n=e)?C({...n,children:[]}):C(n),"children"in e&&"children"in r&&(r.children=nd({type:"root",children:e.children},t.options).children),nA({type:"comment",value:{stitch:r}},t)}else{let t="";throw nh.has(e.type)&&(t=". 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"),Error("Cannot compile `"+e.type+"` node"+t)}}function nb(e,t){ny(e,t);let 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=eQ.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 ny(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function nC(e){let t=no(e)||{line:void 0,column:void 0,offset:void 0},n=ns(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 nN(e){return function(t,n){return nd(t,{...e,file:n})}}let nS=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],nI={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...nS,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...nS],h2:[["className","sr-only"]],img:[...nS,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...nS,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...nS],table:[...nS],ul:[...nS,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},nx={}.hasOwnProperty;function nD(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var n,r,i=e,a=t;if(i.schema.allowComments){let e="string"==typeof a.value?a.value:"",t=e.indexOf("-->"),n={type:"comment",value:t<0?e:e.slice(0,t)};return nv(n,a),n}return;case"doctype":var s=e,o=t;if(s.schema.allowDoctypes){let e={type:"doctype"};return nv(e,o),e}return;case"element":return function(e,t){let n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);let r=nO(e,t.children),i=function(e,t){let n,r=e.stack[e.stack.length-1],i=e.schema.attributes,a=e.schema.required,s=i&&nx.call(i,r)?i[r]:void 0,o=i&&nx.call(i,"*")?i["*"]:void 0,l=t&&"object"==typeof t?t:{},c={};for(n in l)if(nx.call(l,n)){let t=l[n],r=nR(e,nw(s,n),n,t);null==r&&(r=nR(e,nw(o,n),n,t)),null!=r&&(c[n]=r)}if(a&&nx.call(a,r)){let e=a[r];for(n in e)nx.call(e,n)&&!nx.call(c,n)&&(c[n]=e[n])}return c}(e,t.properties);e.stack.pop();let a=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&nx.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let c=-1;for(;++c1){let e=!1,n=0;for(;++n4&&"data"===t.slice(0,4).toLowerCase())return n}function nM(e){return function(t){let n,r;return n={type:"root",children:[]},(r=nD({schema:e?{...nI,...e}:nI,stack:[]},t))&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}}function nP(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}e.s(["ccount",0,nP],470284);let nB=nQ(/[A-Za-z]/),nF=nQ(/[\dA-Za-z]/),nH=nQ(/[#-'*+\--9=?A-Z^-~]/);function nU(e){return null!==e&&(e<32||127===e)}let nG=nQ(/\d/),nj=nQ(/[\dA-Fa-f]/),nz=nQ(/[!-/:-@[-`{-~]/);function nY(e){return null!==e&&e<-2}function nq(e){return null!==e&&(e<0||32===e)}function nV(e){return -2===e||-1===e||32===e}let n$=nQ(/\p{P}|\p{S}/u),nW=nQ(/\s/);function nQ(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}e.s(["asciiAlpha",0,nB,"asciiAlphanumeric",0,nF,"asciiAtext",0,nH,"asciiControl",0,nU,"asciiDigit",0,nG,"asciiHexDigit",0,nj,"asciiPunctuation",0,nz,"markdownLineEnding",0,nY,"markdownLineEndingOrSpace",0,nq,"markdownSpace",0,nV,"unicodePunctuation",0,n$,"unicodeWhitespace",0,nW],455470);let nK="phrasing",nX=["autolink","link","image","label"];function nZ(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function nJ(e){this.config.enter.autolinkProtocol.call(this,e)}function n0(e){this.config.exit.autolinkProtocol.call(this,e)}function n1(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];N("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function n2(e){this.config.exit.autolinkEmail.call(this,e)}function n5(e){this.exit(e)}function n3(e){!function(e,t,r){let i=n((r||{}).ignore||[]),a=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r0?{type:"text",value:s}:void 0),!1===s?r.lastIndex=n+1:(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(s)?u.push(...s):s&&u.push(s),o=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}return c?(o?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=nP(e,"("),a=nP(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!o[0])return!1;let l={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function n9(e,t,n,r){return!(!n6(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function n6(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||nW(n)||n$(n))&&(!t||47!==n)}function n7(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function n8(){this.buffer()}function re(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rt(){this.buffer()}function rn(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function rr(e){let t=this.resume(),n=this.stack[this.stack.length-1];N("footnoteReference"===n.type),n.identifier=n7(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ri(e){this.exit(e)}function ra(e){let t=this.resume(),n=this.stack[this.stack.length-1];N("footnoteDefinition"===n.type),n.identifier=n7(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rs(e){this.exit(e)}function ro(e,t,n,r){let i=n.createTracker(r),a=i.move("[^"),s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]")}function rl(e,t,n){return 0===t?e:rc(e,t,n)}function rc(e,t,n){return(n?"":" ")+e}ro.peek=function(){return"["};let ru=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function rh(e){this.enter({type:"delete",children:[]},e)}function rp(e){this.exit(e)}function rd(e,t,n,r){let i=n.createTracker(r),a=n.enter("strikethrough"),s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function rm(e){return e.length}function rf(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}rd.peek=function(){return"~"};e.s(["longestStreak",0,function(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,s=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}],907714);function rg(e){return null===e||nq(e)||nW(e)?1:n$(e)?2:void 0}let rE={};function rT(e,t){let n=t||rE;return rA(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function rA(e,t,n){var r;if((r=e)&&"object"==typeof r){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 rk(e.children,t,n)}return Array.isArray(e)?rk(e,t,n):""}function rk(e,t,n){let r=[],i=-1;for(;++i-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let s=a.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?a:a+" ".repeat(s-a.length))+e});return l(),c};function ry(e){let t=e._align;N(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rC(e){this.exit(e),this.data.inTable=void 0}function rN(e){this.enter({type:"tableRow",children:[]},e)}function rS(e){this.exit(e)}function rI(e){this.enter({type:"tableCell",children:[]},e)}function rx(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rD));let n=this.stack[this.stack.length-1];N("inlineCode"===n.type),n.value=t,this.exit(e)}function rD(e,t){return"|"===t?t:e}function rO(e){let t=this.stack[this.stack.length-2];N("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function rR(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];N("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,a=-1;for(;++aa?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s0?(rv(e,e.length,0,t),e):t}let rM={}.hasOwnProperty;function rP(e){let t={},n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function rZ(e,t,n,r){let i=r?r-1:1/0,a=0;return function(r){return nV(r)?(e.enter(n),function r(s){return nV(s)&&a++999||93===o&&!r||null===o||91===o||nq(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return a.includes(n7(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return nq(o)||(r=!0),s++,e.consume(o),92===o?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function r3(e,t,n){let r,i,a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),o=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(o>999||93===t&&!i||null===t||91===t||nq(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=n7(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return nq(t)||(i=!0),o++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),rZ(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function r4(e,t,n){return e.check(rJ,t,e.attempt(r0,t,n))}function r9(e){e.exit("gfmFootnoteDefinition")}function r6(e,t,n){let r=[],i=-1;for(;++i0;)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(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function r8(e,t,n){let r,i=this,a=0,s=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,a="tableHead"===r||"tableRow"===r?T:o;return a===T&&i.parser.lazy[i.now().line]?n(e):a(e)};function o(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,s+=1),l(n)}function l(t){return null===t?n(t):nY(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):nV(t)?rZ(e,l,"whitespace")(t):(s+=1,r&&(r=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||nq(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(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,nV(t))?rZ(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?m(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):n(t)}function d(t){return nV(t)?rZ(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),f):45===t?(s+=1,f(t)):null===t||nY(t)?E(t):n(t)}function f(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return nV(t)?rZ(e,E,"whitespace")(t):E(t)}function E(i){if(124===i)return p(i);if(null===i||nY(i))return r&&a===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function T(t){return e.enter("tableRow"),A(t)}function A(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),A):null===n||nY(n)?(e.exit("tableRow"),t(n)):nV(n)?rZ(e,A,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||nq(t)?(e.exit("data"),A(t)):(e.consume(t),92===t?_:k)}function _(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function ie(e,t){let n,r,i,a=-1,s=!0,o=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0,p=new r7;for(;++an[2]+1){let 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&&(a.end=Object.assign({},ii(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function ir(e,t,n,r,i){let a=[],s=ii(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function ii(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let ia={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return nq(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return nY(r)?t(r):nV(r)?e.check({tokenize:is},t,n)(r):n(r)}}};function is(e,t,n){return rZ(e,function(e){return null===e?n(e):t(e)},"whitespace")}let io={};var il=Object.defineProperty,ic=Object.defineProperties,iu=Object.getOwnPropertyDescriptors,ih=Object.getOwnPropertySymbols,ip=Object.prototype.hasOwnProperty,id=Object.prototype.propertyIsEnumerable,im=(e,t,n)=>t in e?il(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ig=(e,t)=>{for(var n in t||(t={}))ip.call(t,n)&&im(e,n,t[n]);if(ih)for(var n of ih(t))id.call(t,n)&&im(e,n,t[n]);return e},iE=(e,t)=>{let n=!1,r=!1;for(let i=0;i{let n="```"===e.substring(t,t+3),r=t>0&&"```"===e.substring(t-1,t+2),i=t>1&&"```"===e.substring(t-2,t+1);return n||r||i},iA=(e,t)=>{let n=!1,r=!1,i=-1;for(let a=0;a(=?\s*[$]?\d)/gm,i_=/(\*\*)([^*]*\*?)$/,ib=/(__)([^_]*?)$/,iy=/(\*\*\*)([^*]*?)$/,iC=/(\*)([^*]*?)$/,iN=/(_)([^_]*?)$/,iS=/(`)([^`]*?)$/,iI=/(~~)([^~]*?)$/,ix=/^[\s_~*`]*$/,iD=/^[\s]*[-*+][\s]+$/,iO=/[\p{L}\p{N}_]/u,iR=/^```[^`\n]*```?$/,iL=/^\*{4,}$/,iv=/(__)([^_]+)_$/,iw=/(~~)([^~]+)~$/,iM=/~~/g,iP=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||iO.test(e)},iB=(e,t)=>{let n=1;for(let r=t+1;r{let n=!1,r=!1;for(let i=0;i{for(let n=t;n{for(let n=t-1;n>=0&&")"!==e[n];n-=1){if("("===e[n])return n>0&&"]"===e[n-1]&&iH(e,t);if(e[n]===` `)break}return!1},iG=(e,t,n)=>{let r=0;for(let n=t-1;n>=0;n-=1)if(e[n]===` `){r=n+1;break}let i=e.length;for(let n=t;n=3&&!o},ij=(e,t,n,r)=>!!("\\"===n||e.includes("$")&&iF(e,t))||("*"!==n&&"*"===r?(t{let t=0,n=!1,r=e.length;for(let i=0;i0?e[i-1]:"",s=i!!("\\"===n||e.includes("$")&&iF(e,t)||iU(e,t)||((e,t)=>{for(let n=t-1;n>=0&&">"!==e[n];n-=1){if("<"===e[n]){let t=n+1="a"&&t<="z"||t>="A"&&t<="Z"||"/"===t}if(e[n]===` `)break}return!1})(e,t)||"_"===n||"_"===r||n&&r&&iP(n)&&iP(r)),iq=e=>{let t=0,n=!1;for(let r=0;r{let t=0,n=!1;for(let r=0;r{let t=!1;for(let n=0;n0?e[n-1]:"",r=n]*$/,iQ=(e,t)=>t>=2&&"```"===e.substring(t-2,t+1)||t>=1&&"```"===e.substring(t-1,t+2)||t<=e.length-3&&"```"===e.substring(t,t+3),iK=(e,t,n)=>{let r=t>0&&"!"===e[t-1],i=r?t-1:t;if(!e.substring(t+1).includes("]")||-1===iB(e,t)){let a=e.substring(0,i);if(r)return a;if("text-only"===n){let n=((e,t)=>{for(let n=0;n0&&"!"===e[n-1])continue;let t=iB(e,n);if(-1===t)return n;if(t+1{let n=e.lastIndexOf("](");if(-1!==n&&!iE(e,n)){let r=((e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=((e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if("]"===e[r])n+=1;else if("["===e[r]&&0==(n-=1))return r;return -1})(e,t);if(-1===r||iE(e,r))return null;let i=r>0&&"!"===e[r-1],a=e.substring(0,i?r-1:r);if(i)return a;let s=e.substring(r+1,t);return"text-only"===n?`${a}${s}`:`${a}[${s}](streamdown:incomplete-link)`})(e,n,t);if(null!==r)return r}for(let n=e.length-1;n>=0;n-=1)if("["===e[n]&&!iE(e,n)){let r=iK(e,n,t);if(null!==r)return r}return e},iZ=/^-{1,2}$/,iJ=/^[\s]*-{1,2}[\s]+$/,i0=/^={1,2}$/,i1=/^[\s]*={1,2}[\s]+$/,i2=RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),i5=[{handler:{name:"singleTilde",handle:e=>e&&"string"==typeof e&&e.includes("~")?e.replace(i2,(t,n)=>iE(e,n)?t:"\\~"):e,priority:0},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:e=>e&&"string"==typeof e&&e.includes(">")?e.replace(ik,(t,n,r,i)=>iE(e,i)?t:`${n}\\>${r}`):e,priority:5},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:e=>{let t=e.match(iW);return!t||void 0===t.index||iE(e,t.index)?e:e.substring(0,t.index).trimEnd()},priority:10},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:e=>{if(!e||"string"!=typeof e)return e;let t=e.lastIndexOf(` `);if(-1===t)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(iZ.test(i)&&!n.match(iJ)){let t=r.split(` `).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}if(i0.test(i)&&!n.match(i1)){let t=r.split(` `).at(-1);if(t&&t.trim().length>0)return`${e}\u200B`}return e},priority:15},optionKey:"setextHeadings"},{handler:{name:"links",handle:iX,priority:20},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:e=>{let t,n;if(iL.test(e))return e;let r=e.match(iy);if(!r)return e;let i=r[2],a=e.lastIndexOf(r[1]);return!i||ix.test(i)||iE(e,a)||iA(e,a)||iG(e,a,"*")?e:(e=>{let t=0,n=0,r=!1;for(let i=0;i=3&&(t+=Math.floor(n/3)),n=0,r=!r,i+=2;continue}r||("*"===e[i]?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t})(e)%2==1?(t=iq(e),n=iz(e),t%2==0&&n%2==0)?e:`${e}***`:e},priority:30},optionKey:"boldItalic"},{handler:{name:"bold",handle:e=>{let t=e.match(i_);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return iE(e,r)||iA(e,r)||((e,t,n)=>{if(!t||ix.test(t))return!0;let r=e.substring(0,n).lastIndexOf(` `),i=e.substring(-1===r?0:r+1,n);return!!(iD.test(i)&&t.includes(` `))||iG(e,n,"*")})(e,n,r)?e:iq(e)%2==1?n.endsWith("*")?`${e}*`:`${e}**`:e},priority:35},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:e=>{let t=e.match(ib);if(!t){let t=e.match(iv);if(t){let n=e.lastIndexOf(t[1]);if(!(iE(e,n)||iA(e,n))&&iV(e)%2==1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return iE(e,r)||iA(e,r)||((e,t,n)=>{if(!t||ix.test(t))return!0;let r=e.substring(0,n).lastIndexOf(` `),i=e.substring(-1===r?0:r+1,n);return!!(iD.test(i)&&t.includes(` `))||iG(e,n,"_")})(e,n,r)?e:iV(e)%2==1?`${e}__`:e},priority:40},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:e=>{if(!e.match(iC))return e;let t=(e=>{let t=!1;for(let n=0;n0?e[n-1]:"",r=n{if(!e.match(iN))return e;let t=i$(e);if(-1===t)return e;let n=e.substring(t+1);if(!n||ix.test(n)||iE(e,t)||iA(e,t))return e;if((e=>{let t=0,n=!1,r=e.length;for(let i=0;i0?e[i-1]:"",s=i{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(iq(t)%2!=1)return null;let n=t.indexOf("**"),r=i$(t);return -1!==n&&-1!==r&&n{let t=e.length;for(;t>0&&e[t-1]===` `;)t-=1;if(t{let t=!e.match(iR)||e.includes(` `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e;if(null!==t)return t;let n=e.match(iS);if(n&&(e.match(/```/g)||[]).length%2!=1){let t=n[2];if(!t||ix.test(t))return e;if((e=>{let t=0;for(let n=0;n{var t,n;let r=e.match(iI);if(r){let n=r[2];if(!n||ix.test(n))return e;let i=e.lastIndexOf(r[1]);if(iE(e,i)||iA(e,i))return e;if((null==(t=e.match(iM))?void 0:t.length)%2==1)return`${e}~~`}else{let t=e.match(iw);if(t){let r=e.lastIndexOf(t[0].slice(0,2));if(iE(e,r)||iA(e,r))return e;if((null==(n=e.match(iM))?void 0:n.length)%2==1)return`${e}~`}}return e},priority:60},optionKey:"strikethrough"},{handler:{name:"katex",handle:e=>(e=>{let t=0,n=!1;for(let r=0;r{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return -1===t||-1===e.indexOf(` `,t)||e.endsWith(` `)?`${e}$$`:`${e} $$`})(e),priority:70},optionKey:"katex"},{handler:{name:"inlineKatex",handle:e=>(e=>{let t=0,n=!1;for(let r=0;r0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function a_(e,t){let n=[],r=-1,i=e.passKeys?new Map:ad;for(;++rr))return;let o=i.events.length,l=o;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(s),a=o;at;){let t=a[n];i.containerState=t[1],t[0].exit.call(i,e)}a.length=t}function E(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},ax={tokenize:function(e,t,n){return rZ(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};class aD{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.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){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&aO(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),aO(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),aO(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=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},aw={tokenize:function(e){let t=this,n=e.attempt(rJ,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,rZ(e,e.attempt(this.parser.constructs.flow,r,e.attempt(aL,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},aM={resolveAll:aH()},aP=aF("string"),aB=aF("text");function aF(e){return{resolveAll:aH("text"===e?aU:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,s);return a;function a(e){return l(e)?i(e):s(e)}function s(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let h={...e[n][1].end},p={...e[u][1].start};aj(h,-o),aj(p,o),a={type:o>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:o>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[n][1].end={...a.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=rw(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=rw(l,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",i,t]]),l=rw(l,r6(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=rw(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=rw(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,rv(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u=o?(e.exit("codeFencedFenceSequence"),nV(i)?rZ(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||nY(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},s=0,o=0;return function(t){var a;let c;return a=t,s=(c=i.events[i.events.length-1])&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,r=a,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),nV(i)?rZ(e,l,"whitespace")(i):l(i))}(a)};function l(a){return null===a||nY(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(aW,u,m)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nY(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):nV(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),rZ(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(a))}function c(t){return null===t||nY(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nY(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(a,m,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return s>0&&nV(t)?rZ(e,d,"linePrefix",s+1)(t):d(t)}function d(t){return null===t||nY(t)?e.check(aW,u,m)(t):(e.enter("codeFlowValue"),function t(n){return null===n||nY(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function m(n){return e.exit("codeFenced"),t(n)}}},aK={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),rZ(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?a(n):nY(n)?e.attempt(aX,t,a)(n):(e.enter("codeFlowValue"),function n(r){return null===r||nY(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function a(n){return e.exit("codeIndented"),t(n)}}},aX={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):nY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):rZ(e,a,"linePrefix",5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):nY(e)?i(e):n(e)}}};function aZ(e,t,n,r,i,a,s,o,l){let c=l||1/0,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),h):null===t||32===t||41===t||nU(t)?n(t):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),m(t))};function h(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(o),h(t)):null===t||60===t||nY(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function m(i){return!u&&(null===i||41===i||nq(i))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(i)):u999||null===h||91===h||93===h&&!s||94===h&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):93===h?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):nY(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||nY(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!nV(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function a0(e,t,n,r,i,a){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,o):n(t)};function o(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===s?(e.exit(a),o(s)):null===t?n(t):nY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),rZ(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||nY(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 a1(e,t){let n;return function r(i){return nY(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):nV(i)?rZ(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}let a2={partial:!0,tokenize:function(e,t,n){return function(t){return nq(t)?a1(e,r)(t):n(t)};function r(t){return a0(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return nV(t)?rZ(e,a,"whitespace")(t):a(t)}function a(e){return null===e||nY(e)?t(e):n(e)}}},a5=["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"],a3=["pre","script","style","textarea"],a4={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(rJ,t,n)}}},a9={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return nY(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},a6={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t=3&&(null===s||nY(s))?(e.exit("thematicBreak"),t(s)):n(s)}(s)}}},sa={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(rJ,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,rZ(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!nV(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(so,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,rZ(e,e.attempt(sa,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){let r=this,i=r.events[r.events.length-1],a=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:nG(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(si,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return nG(i)&&++s<10?(e.consume(i),t):(!r.interrupt||s<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(rJ,r.interrupt?n:l,e.attempt(ss,u,c))}function l(e){return r.containerState.initialBlankLine=!0,a++,u(e)}function c(t){return nV(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},ss={partial:!0,tokenize:function(e,t,n){let r=this;return rZ(e,function(e){let i=r.events[r.events.length-1];return!nV(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},so={partial:!0,tokenize:function(e,t,n){let r=this;return rZ(e,function(e){let 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)}},sl={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),i||"definition"!==e[a][1].type||(i=a);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return 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,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var s;let o,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){o="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,s=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),nV(n)?rZ(e,a,"lineSuffix")(n):a(n))}(s)):n(t)};function a(r){return null===r||nY(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,aJ.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function a(t){return(r=n7(i.sliceSerialize(i.events[i.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 nq(t)?a1(e,o)(t):o(t)}function o(t){return aZ(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(a2,c,c)(t)}function c(t){return nV(t)?rZ(e,u,"whitespace")(t):u(t)}function u(a){return null===a||nY(a)?(e.exit("definition"),i.parser.defined.push(r),t(a)):n(a)}}}},"disable",0,{null:[]},"document",0,{42:sa,43:sa,45:sa,48:sa,49:sa,50:sa,51:sa,52:sa,53:sa,54:sa,55:sa,56:sa,57:sa,62:az},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,a=3;return"whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},r={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"},rv(e,a,i-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var a;return e.enter("atxHeading"),a=i,e.enter("atxHeadingSequence"),function i(a){return 35===a&&r++<6?(e.consume(a),i):null===a||nq(a)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||nY(r)?(e.exit("atxHeading"),t(r)):nV(r)?rZ(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||nq(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(a)):n(a)}(a)}}},42:si,45:[sl,si],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return 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)),e},tokenize:function(e,t,n){let r,i,a,s,o,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,d):63===s?(e.consume(s),r=3,l.interrupt?t:L):nB(s)?(e.consume(s),a=String.fromCharCode(s),m):n(s)}function u(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,s=0,p):nB(i)?(e.consume(i),r=4,l.interrupt?t:L):n(i)}function h(r){return 45===r?(e.consume(r),l.interrupt?t:L):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(s++)?(e.consume(r),s===i.length)?l.interrupt?t:C:p:n(r)}function d(t){return nB(t)?(e.consume(t),a=String.fromCharCode(t),m):n(t)}function m(s){if(null===s||47===s||62===s||nq(s)){let o=47===s,c=a.toLowerCase();return!o&&!i&&a3.includes(c)?(r=1,l.interrupt?t(s):C(s)):a5.includes(a.toLowerCase())?(r=6,o)?(e.consume(s),f):l.interrupt?t(s):C(s):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(s):i?function t(n){return nV(n)?(e.consume(n),t):b(n)}(s):g(s))}return 45===s||nF(s)?(e.consume(s),a+=String.fromCharCode(s),m):n(s)}function f(r){return 62===r?(e.consume(r),l.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),b):58===t||95===t||nB(t)?(e.consume(t),E):nV(t)?(e.consume(t),g):b(t)}function E(t){return 45===t||46===t||58===t||95===t||nF(t)?(e.consume(t),E):T(t)}function T(t){return 61===t?(e.consume(t),A):nV(t)?(e.consume(t),T):g(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,k):nV(t)?(e.consume(t),A):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||nq(n)?T(n):(e.consume(n),t)}(t)}function k(t){return t===o?(e.consume(t),o=null,_):null===t||nY(t)?n(t):(e.consume(t),k)}function _(e){return 47===e||62===e||nV(e)?g(e):n(e)}function b(t){return 62===t?(e.consume(t),y):n(t)}function y(t){return null===t||nY(t)?C(t):nV(t)?(e.consume(t),y):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),x):60===t&&1===r?(e.consume(t),D):62===t&&4===r?(e.consume(t),v):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),R):nY(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(a4,w,N)(t)):null===t||nY(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),C)}function N(t){return e.check(a9,S,w)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||nY(t)?N(t):(e.enter("htmlFlowData"),C(t))}function x(t){return 45===t?(e.consume(t),L):C(t)}function D(t){return 47===t?(e.consume(t),a="",O):C(t)}function O(t){if(62===t){let n=a.toLowerCase();return a3.includes(n)?(e.consume(t),v):C(t)}return nB(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),O):C(t)}function R(t){return 93===t?(e.consume(t),L):C(t)}function L(t){return 62===t?(e.consume(t),v):45===t&&2===r?(e.consume(t),L):C(t)}function v(t){return null===t||nY(t)?(e.exit("htmlFlowData"),w(t)):(e.consume(t),v)}function w(n){return e.exit("htmlFlow"),t(n)}}},61:sl,95:si,96:aQ,126:aQ},"flowInitial",0,{[-2]:aK,[-1]:aK,32:aK},"insideSpan",0,{null:[aG,aM]},"string",0,{38:a$,92:aY},"text",0,{[-5]:sr,[-4]:sr,[-3]:sr,33:st,38:a$,42:aG,60:[{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 nB(t)?(e.consume(t),a):64===t?n(t):o(t)}function a(t){return 43===t||45===t||46===t||nF(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||nF(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function s(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||nU(r)?n(r):(e.consume(r),s)}function o(t){return 64===t?(e.consume(t),l):nH(t)?(e.consume(t),o):n(t)}function l(i){return nF(i)?function i(a){return 46===a?(e.consume(a),r=0,l):62===a?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(a){if((45===a||nF(a))&&r++<63){let n=45===a?t:i;return e.consume(a),n}return n(a)}(a)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,a,s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),k):63===t?(e.consume(t),T):nB(t)?(e.consume(t),b):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,d):nB(t)?(e.consume(t),E):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):nY(t)?(a=u,O(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?D(e):45===e?h(e):u(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?m:d):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),f):nY(t)?(a=m,O(t)):(e.consume(t),m)}function f(t){return 93===t?(e.consume(t),g):m(t)}function g(t){return 62===t?D(t):93===t?(e.consume(t),g):m(t)}function E(t){return null===t||62===t?D(t):nY(t)?(a=E,O(t)):(e.consume(t),E)}function T(t){return null===t?n(t):63===t?(e.consume(t),A):nY(t)?(a=T,O(t)):(e.consume(t),T)}function A(e){return 62===e?D(e):T(e)}function k(t){return nB(t)?(e.consume(t),_):n(t)}function _(t){return 45===t||nF(t)?(e.consume(t),_):function t(n){return nY(n)?(a=t,O(n)):nV(n)?(e.consume(n),t):D(n)}(t)}function b(t){return 45===t||nF(t)?(e.consume(t),b):47===t||62===t||nq(t)?y(t):n(t)}function y(t){return 47===t?(e.consume(t),D):58===t||95===t||nB(t)?(e.consume(t),C):nY(t)?(a=y,O(t)):nV(t)?(e.consume(t),y):D(t)}function C(t){return 45===t||46===t||58===t||95===t||nF(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),N):nY(n)?(a=t,O(n)):nV(n)?(e.consume(n),t):y(n)}(t)}function N(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,S):nY(t)?(a=N,O(t)):nV(t)?(e.consume(t),N):(e.consume(t),I)}function S(t){return t===r?(e.consume(t),r=void 0,x):null===t?n(t):nY(t)?(a=S,O(t)):(e.consume(t),S)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||nq(t)?y(t):(e.consume(t),I)}function x(e){return 47===e||62===e||nq(e)?y(e):n(e)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return nV(t)?rZ(e,L,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),a(t)}}}],91:sn,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return nY(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},aY],93:a6,95:aG,96:{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[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let sp=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sd(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return sh(n.slice(t?2:1),t?16:10)}return aV(n)||e}let sm={}.hasOwnProperty;function sf(e){return{line:e.line,column:e.column,offset:e.offset}}function sg(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+ao({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ao({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+ao({start:t.start,end:t.end})+") is still open")}function sE(e){let t=this;t.parser=function(n){var r,i;let a,s,o,l;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(E),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(m),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(f),hardBreakTrailing:r(f),htmlFlow:r(g,i),htmlFlowData:c,htmlText:r(g,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(E),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(T,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(T),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(m),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=sh(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=aV(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=sf(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=n7(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(h),hardBreakTrailing:s(h),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let 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}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(sp,sd),n.identifier=n7(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=sf(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let 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}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=n7(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};!function e(t,n){let r=-1;for(;++r0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||sg).call(s,void 0,e[0])}for(r.position={start:sf(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:sf(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}s>0&&n.push(e[a].slice(0,s))}return n}(s,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function d(e,t){t.restore()}function m(e,t){return function(n,i,a){var s;let u,h,d,m;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):(s=n,function(e){let t=null!==e&&s[e],n=null!==e&&s.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function f(e){return(u=e,h=0,0===e.length)?a:E(e[h])}function E(e){return function(n){let i,a,s,u,h;return(i=p(),a=c.previous,s=c.currentConstruct,u=c.events.length,h=Array.from(o),m={from:u,restore:function(){r=i,c.previous=a,c.currentConstruct=s,c.events.length=u,o=h,g()}},d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?A(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,T,A)(n)}}function T(t){return e(d,m),i}function A(e){return(m.restore(),++h55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(s=String.fromCharCode(a,t),i=1):s="�"}else s=String.fromCharCode(a);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 sA(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function sk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function s_(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),a=i[0];a&&"text"===a.type?a.value="["+a.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function sb(e){let t=e.spread;return null==t?e.children.length>1:t}function sy(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):""}let sC={blockquote:function(e,t){let 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){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=sT(i.toLowerCase()),s=e.footnoteOrder.indexOf(i),o=e.footnoteCounts.get(i);void 0===o?(o=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=s+1,o+=1,e.footnoteCounts.set(i,o);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let 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){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return s_(e,t);let i={src:sT(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){let n={src:sT(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return s_(e,t);let i={href:sT(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){let n={href:sT(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let 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){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=no(t.children[1]),s=ns(t.children[t.children.length-1]);a&&s&&(r.position={start:a,end:s}),i.push(r)}let a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,s=a?a.length:t.children.length,o=-1,l=[];for(;++o0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(sy(t.slice(i),i>0,!1)),a.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:sN,yaml:sN,definition:sN,footnoteDefinition:sN};function sN(){}let sS={}.hasOwnProperty,sI={};function sx(e,t){e.position&&(t.position=nc(e))}function sD(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,C(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function sO(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function sR(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function sL(e,t){let n,r,i,a,s=(n=t||sI,r=new Map,i=new Map,a={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&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]})}let d=a[a.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...h)}else a.push(...h);let m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(i,m),o.push(m)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...C(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(s),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return c&&(N("children"in u),u.children.push({type:"text",value:"\n"},c)),u}function sv(e,t){return e&&"run"in e?async function(n,r){let i=sL(n,{file:r,...t});await e.run(i,r)}:function(n,r){return sL(n,{file:r,...e||t})}}function sw(e){if(e)throw e}var sM=e.i(975609);function sP(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let sB=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');sG(e);let r=0,i=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)},sF=function(e){let t;if(sG(e),0===e.length)return".";let 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)},sH=function(e){let t;sG(e);let n=e.length,r=-1,i=0,a=-1,s=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?a<0?a=n:1!==s&&(s=1):a>-1&&(s=-1)}return a<0||r<0||0===s||1===s&&a===r-1&&a===i+1?"":e.slice(a,r)},sU=function(...e){var t;let n,r,i,a=-1;for(;++a2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",a=0):a=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),s=l,o=0;continue}}else if(i.length>0){i="",a=0,s=l,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),a=l-s-1;s=l,o=0}else 46===n&&o>-1?o++:o=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function sG(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function sj(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let sz=["history","path","basename","stem","extname","dirname"];class sY{constructor(e){let t,n;t=e?sj(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rt.length;s&&t.push(r);try{a=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(a&&a.then&&"function"==typeof a.then?a.then(i,r):a instanceof Error?r(a):i(a))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(o,i)(...s):r(null,...s)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new sK,t=-1;for(;++t0){let[r,...a]=t,s=n[i][1];sP(s)&&sP(r)&&(r=(0,sM.default)(!0,s,r)),n[i]=[e,r,...a]}}}}let sX=new sK().freeze();function sZ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function sJ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function s0(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function s1(e){if(!sP(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function s2(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function s5(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new sY(e)}function s3(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var s4=s3(),s9={exec:()=>null};function s6(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(s8.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var s7=(()=>{try{return!!RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},oe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ot=/(?:[*+-]|\d{1,9}[.)])/,on=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,or=s6(on).replace(/bull/g,ot).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),oi=s6(on).replace(/bull/g,ot).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),oa=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,os=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,oo=s6(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",os).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ol=s6(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ot).getRegex(),oc="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ou=/|$))/,oh=s6("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ou).replace("tag",oc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),op=s6(oa).replace("hr",oe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",oc).getRegex(),od={blockquote:s6(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",op).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:oo,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:oe,html:oh,lheading:or,list:ol,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:op,table:s9,text:/^[^\n]+/},om=s6("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",oe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",oc).getRegex(),of={...od,lheading:oi,table:om,paragraph:s6(oa).replace("hr",oe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",om).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",oc).getRegex()},og={...od,html:s6("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ou).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:s9,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:s6(oa).replace("hr",oe).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",or).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},oE=/^( {2,}|\\)\n(?!\s*$)/,oT=/[\p{P}\p{S}]/u,oA=/[\s\p{P}\p{S}]/u,ok=/[^\s\p{P}\p{S}]/u,o_=s6(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,oA).getRegex(),ob=/(?!~)[\p{P}\p{S}]/u,oy=s6(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",s7?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),oC=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,oN=s6(oC,"u").replace(/punct/g,oT).getRegex(),oS=s6(oC,"u").replace(/punct/g,ob).getRegex(),oI="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ox=s6(oI,"gu").replace(/notPunctSpace/g,ok).replace(/punctSpace/g,oA).replace(/punct/g,oT).getRegex(),oD=s6(oI,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,ob).getRegex(),oO=s6("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ok).replace(/punctSpace/g,oA).replace(/punct/g,oT).getRegex(),oR=s6(/\\(punct)/,"gu").replace(/punct/g,oT).getRegex(),oL=s6(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ov=s6(ou).replace("(?:-->|$)","-->").getRegex(),ow=s6("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",ov).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),oM=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,oP=s6(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",oM).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),oB=s6(/^!?\[(label)\]\[(ref)\]/).replace("label",oM).replace("ref",os).getRegex(),oF=s6(/^!?\[(ref)\](?:\[\])?/).replace("ref",os).getRegex(),oH=s6("reflink|nolink(?!\\()","g").replace("reflink",oB).replace("nolink",oF).getRegex(),oU=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,oG={_backpedal:s9,anyPunctuation:oR,autolink:oL,blockSkip:oy,br:oE,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:s9,emStrongLDelim:oN,emStrongRDelimAst:ox,emStrongRDelimUnd:oO,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:oP,nolink:oF,punctuation:o_,reflink:oB,reflinkSearch:oH,tag:ow,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},oW=e=>o$[e];function oQ(e,t){if(t){if(s8.escapeTest.test(e))return e.replace(s8.escapeReplace,oW)}else if(s8.escapeTestNoEncode.test(e))return e.replace(s8.escapeReplaceNoEncode,oW);return e}function oK(e){try{e=encodeURI(e).replace(s8.percentDecode,"%")}catch{return null}return e}function oX(e,t){let n=e.replace(s8.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(s8.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:oZ(e,` `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(` `).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` `)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=oZ(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:oZ(t[0],` `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=oZ(t[0],` `).split(` `),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],s;for(s=0;s1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,r="",o="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=t[2].split(` `,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split(` `,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,o=l.trimStart()):u?h=t[1].length+1:(h=(h=t[2].search(this.rules.other.nonSpaceChar))>4?1:h,o=l.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+` `,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),a=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h);for(;e;){let p=e.split(` `,1)[0],d;if(c=p,d=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||s.test(c)||t.test(c)||n.test(c))break;if(d.search(this.rules.other.nonSpaceChar)>=h||!c.trim())o+=` `+d.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;o+=` `+c}u||c.trim()||(u=!0),r+=p+` `,e=e.substring(p.length+1),l=d.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(o),loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;for(let e of(o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd(),i.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),e.tokens[0]?.type==="text"||e.tokens[0]?.type==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=oX(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` `):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=oZ(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let n=0;n0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),oJ(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return oJ(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,s=n,o=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){s+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){o+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s+o);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0])e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},o1=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||s4,this.options.tokenizer=this.options.tokenizer||new o0,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:s8,block:oq.normal,inline:oV.normal};this.options.pedantic?(t.block=oq.pedantic,t.inline=oV.pedantic):this.options.gfm&&(t.block=oq.gfm,this.options.breaks?t.inline=oV.breaks:t.inline=oV.gfm),this.tokenizer.rules=t}static get rules(){return{block:oq,inline:oV}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(s8.carriageReturn,` `),this.blockTokens(e,this.tokens);for(let e=0;e!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=` `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` `)?"":` `)+r.raw,n.text+=` `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` `)?"":` `)+r.raw,n.text+=` `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(` `)?"":` `)+r.raw,a.text+=` `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(` `)?"":` `)+r.raw,n.text+=` `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,s="";for(;e;){let n;if(a||(s=""),a=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,s))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},o2=class{options;parser;constructor(e){this.options=e||s4}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(s8.notSpaceStart)?.[0],i=e.replace(s8.endingNewline,"")+` `;return r?'
'+(n?i:oQ(i,!0))+`
`:"
"+(n?i:oQ(i,!0))+`
`}blockquote({tokens:e}){return`
${this.parser.parse(e)}
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)} `}hr(e){return`
`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t `+r+" `}listitem(e){return`
  • ${this.parser.parse(e.tokens)}
  • `}checkbox({checked:e}){return" '}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    `}table(e){let t="",n="";for(let t=0;t${r}`),` `+t+` `+r+`
    `}tablerow({text:e}){return` ${e} `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+` `}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${oQ(e,!0)}`}br(e){return"
    "}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=oK(e);if(null===i)return r;let a='
    "}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=oK(e);if(null===i)return oQ(n);e=i;let a=`${n}{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new o2(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new o0(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new o4;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];o4.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&o4.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let a=r.call(t,e);return i.call(t,a)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return o1.lex(e,t??this.defaults)}parser(e,t){return o3.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer():e?o1.lex:o1.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let s=await (i.hooks?await i.hooks.provideParser():e?o3.parse:o3.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?o1.lex:o1.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?o3.parse:o3.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` Please report this to https://github.com/markedjs/marked.`,e){let e="

    An error occurred:

    "+oQ(n.message+"",!0)+"
    ";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function o6(e,t){return o9.parse(e,t)}o6.options=o6.setOptions=function(e){return o9.setOptions(e),o6.defaults=o9.defaults,s4=o6.defaults,o6},o6.getDefaults=s3,o6.defaults=s4,o6.use=function(...e){return o9.use(...e),o6.defaults=o9.defaults,s4=o6.defaults,o6},o6.walkTokens=function(e,t){return o9.walkTokens(e,t)},o6.parseInline=o9.parseInline,o6.Parser=o3,o6.parser=o3.parse,o6.Renderer=o2,o6.TextRenderer=o5,o6.Lexer=o1,o6.lexer=o1.lex,o6.Tokenizer=o0,o6.Hooks=o4,o6.parse=o6,o6.options,o6.setOptions,o6.use,o6.walkTokens,o6.parseInline,o3.parse,o1.lex;var o7=/\s/,o8=/^\s+$/,le=new Set(["code","pre","svg","math","annotation"]),lt=0;function ln(e){var t,n,r,i,a;let l={animation:null!=(t=null==e?void 0:e.animation)?t:"fadeIn",duration:null!=(n=null==e?void 0:e.duration)?n:150,easing:null!=(r=null==e?void 0:e.easing)?r:"ease",sep:null!=(i=null==e?void 0:e.sep)?i:"word",stagger:null!=(a=null==e?void 0:e.stagger)?a:40},c={prevContentLength:0,lastRenderCharCount:0},u=lt++,h=()=>e=>{let t={count:0,newIndex:0};o(e,"text",(e,n)=>((e,t,n,r,i)=>{let a=t.at(-1);if(!(a&&"children"in a))return;if(t.some(e=>"object"==typeof e&&null!==e&&"type"in e&&"element"===e.type&&le.has(e.tagName)))return s;let o=a.children.indexOf(e);if(-1===o)return;let l=e.value;if(!l.trim()){i.count+=l.length;return}let c="char"===n.sep?(e=>{let t=[],n="";for(let r of e)o7.test(r)?n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&t.push(n),t})(l):(e=>{let t=[],n="",r=!1;for(let i of e){let e=o7.test(i);e!==r&&n&&(t.push(n),n=""),n+=i,r=e}return n&&t.push(n),t})(l),u=r.prevContentLength,h=c.map(e=>{var t,r,a;let s,o=i.count;if(i.count+=e.length,o8.test(e))return{type:"text",value:e};let l=u>0&&o(0,i4.twMerge)((0,i3.clsx)(e)),la=(e,t,n)=>{let r="string"==typeof t&&n.startsWith("text/csv")?"\uFEFF":"",i="string"==typeof t?new Blob([r+t],{type:n}):t,a=URL.createObjectURL(i),s=document.createElement("a");s.href=a,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)},ls=(0,t.createContext)(li),lo=()=>(0,t.useContext)(ls),ll=li("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),lc=(0,t.memo)(({children:e,result:n,language:r,className:i,startLine:a,lineNumbers:s=!0,...o})=>{let l=lo(),c=(0,t.useMemo)(()=>l(ll),[l]),u=(0,t.useMemo)(()=>{let e={};return n.bg&&(e["--sdm-bg"]=n.bg),n.fg&&(e["--sdm-fg"]=n.fg),n.rootStyle&&Object.assign(e,(e=>{let t={};for(let n of e.split(";")){let e=n.indexOf(":");if(e>0){let r=n.slice(0,e).trim(),i=n.slice(e+1).trim();r&&i&&(t[r]=i)}}return t})(n.rootStyle)),e},[n.bg,n.fg,n.rootStyle]);return(0,i9.jsx)("div",{className:l(i,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":r,"data-streamdown":"code-block-body",...o,children:(0,i9.jsx)("pre",{className:l(i,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:u,children:(0,i9.jsx)("code",{className:s?l("[counter-increment:line_0] [counter-reset:line]"):void 0,style:s&&a&&a>1?{counterReset:`line ${a-1}`}:void 0,children:n.tokens.map((e,t)=>(0,i9.jsx)("span",{className:s?c:void 0,children:0===e.length||1===e.length&&""===e[0].content?` `:e.map((e,t)=>{let n={},r=!!e.bgColor;if(e.color&&(n["--sdm-c"]=e.color),e.bgColor&&(n["--sdm-tbg"]=e.bgColor),e.htmlStyle)for(let[t,i]of Object.entries(e.htmlStyle))"color"===t?n["--sdm-c"]=i:"background-color"===t?(n["--sdm-tbg"]=i,r=!0):n[t]=i;return(0,i9.jsx)("span",{className:l("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",r&&"bg-[var(--sdm-tbg)]",r&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:n,...e.htmlAttrs,children:e.content},t)})},t))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine&&e.lineNumbers===t.lineNumbers),lu=({className:e,language:t,style:n,isIncomplete:r,...i})=>{let a=lo();return(0,i9.jsx)("div",{className:a("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i})},lh=(0,t.createContext)({code:""}),lp=()=>(0,t.useContext)(lh),ld=({language:e})=>{let t=lo();return(0,i9.jsx)("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:(0,i9.jsx)("span",{className:t("ml-1 font-mono lowercase"),children:e})})},lm=(0,t.lazy)(()=>e.A(380112).then(e=>({default:e.HighlightedCodeBlockBody}))),lf=({code:e,language:n,className:r,children:i,isIncomplete:a=!1,startLine:s,lineNumbers:o,...l})=>{let c=lo(),u=(0,t.useMemo)(()=>(e=>{let t=e.length;for(;t>0&&e[t-1]===` `;)t--;return e.slice(0,t)})(e),[e]),h=(0,t.useMemo)(()=>({bg:"transparent",fg:"inherit",tokens:u.split(` `).map(e=>[{content:e,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[u]);return(0,i9.jsx)(lh.Provider,{value:{code:e},children:(0,i9.jsxs)(lu,{isIncomplete:a,language:n,children:[(0,i9.jsx)(ld,{language:n}),i?(0,i9.jsx)("div",{className:c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,i9.jsx)("div",{className:c("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:i})}):null,(0,i9.jsx)(t.Suspense,{fallback:(0,i9.jsx)(lc,{className:r,language:n,lineNumbers:o,result:h,startLine:s,...l}),children:(0,i9.jsx)(lm,{className:r,code:u,language:n,lineNumbers:o,raw:h,startLine:s,...l})})]})})},lg={CheckIcon:e=>(0,i9.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,i9.jsx)("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),CopyIcon:e=>(0,i9.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,i9.jsx)("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),DownloadIcon:e=>(0,i9.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,i9.jsx)("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),ExternalLinkIcon:e=>(0,i9.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,i9.jsx)("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),Loader2Icon:e=>(0,i9.jsxs)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[(0,i9.jsx)("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),(0,i9.jsx)("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),(0,i9.jsx)("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),(0,i9.jsx)("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),(0,i9.jsx)("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),(0,i9.jsx)("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),(0,i9.jsx)("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),(0,i9.jsx)("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),(0,i9.jsx)("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),(0,i9.jsx)("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),Maximize2Icon:e=>(0,i9.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,i9.jsx)("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),RotateCcwIcon:e=>(0,i9.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,i9.jsx)("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),XIcon:e=>(0,i9.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,i9.jsx)("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomInIcon:e=>(0,i9.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,i9.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),ZoomOutIcon:e=>(0,i9.jsx)("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:(0,i9.jsx)("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})})},lE=(0,t.createContext)(lg),lT=({icons:e,children:n})=>{let r=(0,t.useRef)(e),i=(0,t.useRef)(e?{...lg,...e}:lg);((e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>e[n]===t[n])})(r.current,e)||(r.current=e,i.current=e?{...lg,...e}:lg);let a=i.current;return(0,i9.jsx)(lE.Provider,{value:a,children:n})},lA=()=>(0,t.useContext)(lE),lk={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},l_=(0,t.createContext)(lk),lb=()=>(0,t.useContext)(l_),ly=({onCopy:e,onError:n,timeout:r=2e3,children:i,className:a,code:s,...o})=>{let l=lo(),[c,u]=(0,t.useState)(!1),h=(0,t.useRef)(0),{code:p}=lp(),{isAnimating:d}=(0,t.useContext)(uD),m=lb(),f=null!=s?s:p,g=async()=>{var t;if("u"u(!1),r))}catch(e){null==n||n(e)}};(0,t.useEffect)(()=>()=>{window.clearTimeout(h.current)},[]);let E=lA(),T=c?E.CheckIcon:E.CopyIcon;return(0,i9.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-copy-button",disabled:d,onClick:g,title:m.copyCode,type:"button",...o,children:null!=i?i:(0,i9.jsx)(T,{size:14})})},lC={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},lN=({onDownload:e,onError:n,language:r,children:i,className:a,code:s,...o})=>{let l=lo(),{code:c}=lp(),{isAnimating:u}=(0,t.useContext)(uD),h=lb(),p=lA(),d=null!=s?s:c,m=`file.${r&&r in lC?lC[r]:"txt"}`;return(0,i9.jsx)("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-download-button",disabled:u,onClick:()=>{try{la(m,d,"text/plain"),null==e||e()}catch(e){null==n||n(e)}},title:h.downloadFile,type:"button",...o,children:null!=i?i:(0,i9.jsx)(p.DownloadIcon,{size:14})})},lS=()=>{let{Loader2Icon:e}=lA(),t=lo();return(0,i9.jsxs)("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[(0,i9.jsx)("div",{className:t("h-[46px] w-full bg-muted/80")}),(0,i9.jsx)("div",{className:t("flex w-full items-center justify-center p-4"),children:(0,i9.jsx)(e,{className:t("size-4 animate-spin")})})]})},lI=/\.[^/.]+$/,lx=0,lD=()=>{1===(lx+=1)&&(document.body.style.overflow="hidden")},lO=()=>{0===(lx=Math.max(0,lx-1))&&(document.body.style.overflow="")},lR=({url:e,isOpen:n,onClose:r,onConfirm:i})=>{let{CheckIcon:a,CopyIcon:s,ExternalLinkIcon:o,XIcon:l}=lA(),c=lo(),[u,h]=(0,t.useState)(!1),p=lb(),d=(0,t.useCallback)(async()=>{try{await navigator.clipboard.writeText(e),h(!0),setTimeout(()=>h(!1),2e3)}catch(e){}},[e]),m=(0,t.useCallback)(()=>{i(),r()},[i,r]);return(0,t.useEffect)(()=>{if(n){lD();let e=e=>{"Escape"===e.key&&r()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),lO()}}},[n,r]),n?(0,i9.jsx)("div",{className:c("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:r,onKeyDown:e=>{"Escape"===e.key&&r()},role:"button",tabIndex:0,children:(0,i9.jsxs)("div",{className:c("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,i9.jsx)("button",{className:c("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:r,title:p.close,type:"button",children:(0,i9.jsx)(l,{size:16})}),(0,i9.jsxs)("div",{className:c("flex flex-col gap-2"),children:[(0,i9.jsxs)("div",{className:c("flex items-center gap-2 font-semibold text-lg"),children:[(0,i9.jsx)(o,{size:20}),(0,i9.jsx)("span",{children:p.openExternalLink})]}),(0,i9.jsx)("p",{className:c("text-muted-foreground text-sm"),children:p.externalLinkWarning})]}),(0,i9.jsx)("div",{className:c("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),(0,i9.jsxs)("div",{className:c("flex gap-2"),children:[(0,i9.jsx)("button",{className:c("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:d,type:"button",children:u?(0,i9.jsxs)(i9.Fragment,{children:[(0,i9.jsx)(a,{size:14}),(0,i9.jsx)("span",{children:p.copied})]}):(0,i9.jsxs)(i9.Fragment,{children:[(0,i9.jsx)(s,{size:14}),(0,i9.jsx)("span",{children:p.copyLink})]})}),(0,i9.jsxs)("button",{className:c("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:m,type:"button",children:[(0,i9.jsx)(o,{size:14}),(0,i9.jsx)("span",{children:p.openLink})]})]})]})}):null},lL=(0,t.createContext)(null),lv=()=>(0,t.useContext)(lL),lw=()=>{var e;let t=lv();return null!=(e=null==t?void 0:t.mermaid)?e:null},lM=({chart:e,children:n,className:r,onDownload:i,config:a,onError:s})=>{let o=lo(),[l,c]=(0,t.useState)(!1),u=(0,t.useRef)(null),{isAnimating:h}=(0,t.useContext)(uD),p=lA(),d=lw(),m=lb(),f=async t=>{try{if("mmd"===t){la("diagram.mmd",e,"text/plain"),c(!1),null==i||i(t);return}if(!d){null==s||s(Error("Mermaid plugin not available"));return}let r=d.getMermaid(a),o=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),l=`mermaid-${Math.abs(o)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:u}=await r.render(l,e);if(!u){null==s||s(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===t){la("diagram.svg",u,"image/svg+xml"),c(!1),null==i||i(t);return}if("png"===t){var n;let e=await (n=u,new Promise((e,t)=>{let r="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n))),i=new Image;i.crossOrigin="anonymous",i.onload=()=>{let n=document.createElement("canvas"),r=5*i.width,a=5*i.height;n.width=r,n.height=a;let s=n.getContext("2d");s?(s.drawImage(i,0,0,r,a),n.toBlob(n=>{n?e(n):t(Error("Failed to create PNG blob"))},"image/png")):t(Error("Failed to create 2D canvas context for PNG export"))},i.onerror=()=>t(Error("Failed to load SVG image")),i.src=r}));la("diagram.png",e,"image/png"),null==i||i(t),c(!1);return}}catch(e){null==s||s(e)}};return(0,t.useEffect)(()=>{let e=e=>{let t=e.composedPath();u.current&&!t.includes(u.current)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,i9.jsxs)("div",{className:o("relative"),ref:u,children:[(0,i9.jsx)("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:h,onClick:()=>c(!l),title:m.downloadDiagram,type:"button",children:null!=n?n:(0,i9.jsx)(p.DownloadIcon,{size:14})}),l?(0,i9.jsxs)("div",{className:o("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,i9.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("svg"),title:m.downloadDiagramAsSvg,type:"button",children:m.mermaidFormatSvg}),(0,i9.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("png"),title:m.downloadDiagramAsPng,type:"button",children:m.mermaidFormatPng}),(0,i9.jsx)("button",{className:o("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("mmd"),title:m.downloadDiagramAsMmd,type:"button",children:m.mermaidFormatMmd})]}):null]})},lP=({chart:e,config:n,onFullscreen:r,onExit:i,className:a,...s})=>{let{Maximize2Icon:o,XIcon:l}=lA(),c=lo(),[u,h]=(0,t.useState)(!1),{isAnimating:p,controls:d}=(0,t.useContext)(uD),m=lb(),f=(()=>{if("boolean"==typeof d)return d;let e=d.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),g=()=>{h(!u)};return(0,t.useEffect)(()=>{if(u){lD();let e=e=>{"Escape"===e.key&&h(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),lO()}}},[u]),(0,t.useEffect)(()=>{u?null==r||r():i&&i()},[u,r,i]),(0,i9.jsxs)(i9.Fragment,{children:[(0,i9.jsx)("button",{className:c("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:p,onClick:g,title:m.viewFullscreen,type:"button",...s,children:(0,i9.jsx)(o,{size:14})}),u?(0,i6.createPortal)((0,i9.jsxs)("div",{className:c("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),onClick:g,onKeyDown:e=>{"Escape"===e.key&&g()},role:"button",tabIndex:0,children:[(0,i9.jsx)("button",{className:c("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:g,title:m.exitFullscreen,type:"button",children:(0,i9.jsx)(l,{size:20})}),(0,i9.jsx)("div",{className:c("flex size-full items-center justify-center p-4"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:(0,i9.jsx)(uv,{chart:e,className:c("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:n,fullscreen:!0,showControls:f})})]}),document.body):null]})},lB=e=>{var t,n;let r=[],i=[];for(let n of e.querySelectorAll("thead th"))r.push((null==(t=n.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];for(let r of t.querySelectorAll("td"))e.push((null==(n=r.textContent)?void 0:n.trim())||"");i.push(e)}return{headers:r,rows:i}},lF=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1,n=!1;for(let r of e){if('"'===r){t=!0,n=!0;break}(","===r||r===` `)&&(t=!0)}return t?n?`"${e.replace(/"/g,'""')}"`:`"${e}"`:e},i=Array(t.length>0?n.length+1:n.length),a=0;for(let e of(t.length>0&&(i[a]=t.map(r).join(","),a+=1),n))i[a]=e.map(r).join(","),a+=1;return i.join(` `)},lH=e=>{let{headers:t,rows:n}=e,r=e=>{let t=!1;for(let n of e)if(" "===n||n===` `||"\r"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)" "===t?n.push("\\t"):t===` `?n.push("\\n"):"\r"===t?n.push("\\r"):n.push(t);return n.join("")},i=Array(t.length>0?n.length+1:n.length),a=0;for(let e of(t.length>0&&(i[a]=t.map(r).join(" "),a+=1),n))i[a]=e.map(r).join(" "),a+=1;return i.join(` `)},lU=e=>{let t=!1;for(let n of e)if("\\"===n||"|"===n){t=!0;break}if(!t)return e;let n=[];for(let t of e)"\\"===t?n.push("\\\\"):"|"===t?n.push("\\|"):n.push(t);return n.join("")},lG=e=>{let{headers:t,rows:n}=e;if(0===t.length)return"";let r=Array(n.length+2),i=0,a=t.map(e=>lU(e));r[i]=`| ${a.join(" | ")} |`,i+=1;let s=Array(t.length);for(let e=0;elU(e));r[i]=`| ${t.join(" | ")} |`,i+=1}return r.join(` `)},lj=({children:e,className:n,onCopy:r,onError:i,timeout:a=2e3})=>{let s=lo(),[o,l]=(0,t.useState)(!1),[c,u]=(0,t.useState)(!1),h=(0,t.useRef)(null),p=(0,t.useRef)(0),{isAnimating:d}=(0,t.useContext)(uD),m=lb(),f=async e=>{var t,n;if("u"u(!1),a)}catch(e){null==i||i(e)}};(0,t.useEffect)(()=>{let e=e=>{let t=e.composedPath();h.current&&!t.includes(h.current)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(p.current)}},[]);let g=lA(),E=c?g.CheckIcon:g.CopyIcon;return(0,i9.jsxs)("div",{className:s("relative"),ref:h,children:[(0,i9.jsx)("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:d,onClick:()=>l(!o),title:m.copyTable,type:"button",children:null!=e?e:(0,i9.jsx)(E,{height:14,width:14})}),o?(0,i9.jsxs)("div",{className:s("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,i9.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("md"),title:m.copyTableAsMarkdown,type:"button",children:m.tableFormatMarkdown}),(0,i9.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("csv"),title:m.copyTableAsCsv,type:"button",children:m.tableFormatCsv}),(0,i9.jsx)("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("tsv"),title:m.copyTableAsTsv,type:"button",children:m.tableFormatTsv})]}):null]})},lz=({children:e,className:n,onDownload:r,onError:i})=>{let a=lo(),[s,o]=(0,t.useState)(!1),l=(0,t.useRef)(null),{isAnimating:c}=(0,t.useContext)(uD),u=lb(),h=lA(),p=e=>{var t;try{let n=null==(t=l.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),a=null==n?void 0:n.querySelector("table");if(!a){null==i||i(Error("Table not found"));return}let s=lB(a),c="csv"===e?lF(s):lG(s);la(`table.${"csv"===e?"csv":"md"}`,c,"csv"===e?"text/csv":"text/markdown"),o(!1),null==r||r(e)}catch(e){null==i||i(e)}};return(0,t.useEffect)(()=>{let e=e=>{let t=e.composedPath();l.current&&!t.includes(l.current)&&o(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,i9.jsxs)("div",{className:a("relative"),ref:l,children:[(0,i9.jsx)("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:c,onClick:()=>o(!s),title:u.downloadTable,type:"button",children:null!=e?e:(0,i9.jsx)(h.DownloadIcon,{size:14})}),s?(0,i9.jsxs)("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[(0,i9.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("csv"),title:u.downloadTableAsCsv,type:"button",children:u.tableFormatCsv}),(0,i9.jsx)("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("markdown"),title:u.downloadTableAsMarkdown,type:"button",children:u.tableFormatMarkdown})]}):null]})},lY=({children:e,className:n,showCopy:r=!0,showDownload:i=!0})=>{let{Maximize2Icon:a,XIcon:s}=lA(),o=lo(),[l,c]=(0,t.useState)(!1),{isAnimating:u}=(0,t.useContext)(uD),h=lb(),p=()=>{c(!1)};return(0,t.useEffect)(()=>{if(l){lD();let e=e=>{"Escape"===e.key&&c(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),lO()}}},[l]),(0,i9.jsxs)(i9.Fragment,{children:[(0,i9.jsx)("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:u,onClick:()=>{c(!0)},title:h.viewFullscreen,type:"button",children:(0,i9.jsx)(a,{size:14})}),l?(0,i6.createPortal)((0,i9.jsx)("div",{"aria-label":h.viewFullscreen,"aria-modal":"true",className:o("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:e=>{"Escape"===e.key&&p()},role:"dialog",children:(0,i9.jsxs)("div",{className:o("flex h-full flex-col"),onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:[(0,i9.jsxs)("div",{className:o("flex items-center justify-end gap-1 p-4"),children:[r?(0,i9.jsx)(lj,{}):null,i?(0,i9.jsx)(lz,{}):null,(0,i9.jsx)("button",{className:o("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:h.exitFullscreen,type:"button",children:(0,i9.jsx)(s,{size:20})})]}),(0,i9.jsx)("div",{className:o("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:(0,i9.jsx)("table",{className:o("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},lq=({children:e,className:t,showControls:n,showCopy:r=!0,showDownload:i=!0,showFullscreen:a=!0,...s})=>{let o=lo(),l=n&&r,c=n&&i,u=n&&a,h=l||c||u;return(0,i9.jsxs)("div",{className:o("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[h?(0,i9.jsxs)("div",{className:o("flex items-center justify-end gap-1"),children:[l?(0,i9.jsx)(lj,{}):null,c?(0,i9.jsx)(lz,{}):null,u?(0,i9.jsx)(lY,{showCopy:l,showDownload:c,children:e}):null]}):null,(0,i9.jsx)("div",{className:o("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),children:(0,i9.jsx)("table",{className:o("w-full divide-y divide-border",t),"data-streamdown":"table",...s,children:e})})]})},lV=/startLine=(\d+)/,l$=/\bnoLineNumbers\b/,lW=(0,t.lazy)(()=>e.A(885568).then(e=>({default:e.Mermaid}))),lQ=/language-([^\s]+)/;function lK(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;if(!(null!=e&&e.position&&null!=t&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return(null==n?void 0:n.line)===(null==r?void 0:r.line)&&(null==n?void 0:n.column)===(null==r?void 0:r.column)&&(null==i?void 0:i.line)===(null==a?void 0:a.line)&&(null==i?void 0:i.column)===(null==a?void 0:a.column)}function lX(e,t){return e.className===t.className&&lK(e.node,t.node)}var lZ=(e,t)=>"boolean"==typeof e?e:!1!==e[t],lJ=(e,t)=>{if("boolean"==typeof e)return e;let n=e.table;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},l0=(e,t)=>{if("boolean"==typeof e)return e;let n=e.code;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},l1=(e,t)=>{if("boolean"==typeof e)return e;let n=e.mermaid;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},l2=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e})},(e,t)=>lX(e,t));l2.displayName="MarkdownOl";var l5=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("li",{className:i("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e})},(e,t)=>e.className===t.className&&lK(e.node,t.node));l5.displayName="MarkdownLi";var l3=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("ul",{className:i("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e})},(e,t)=>lX(e,t));l3.displayName="MarkdownUl";var l4=(0,t.memo)(({className:e,node:t,...n})=>{let r=lo();return(0,i9.jsx)("hr",{className:r("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>lX(e,t));l4.displayName="MarkdownHr";var l9=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("span",{className:i("font-semibold",t),"data-streamdown":"strong",...r,children:e})},(e,t)=>lX(e,t));l9.displayName="MarkdownStrong";var l6=(0,t.memo)(({children:e,className:n,href:r,node:i,...a})=>{let s=lo(),{linkSafety:o}=(0,t.useContext)(uD),[l,c]=(0,t.useState)(!1),u="streamdown:incomplete-link"===r,h=(0,t.useCallback)(async e=>{if(!(!(null!=o&&o.enabled&&r)||u)){if(e.preventDefault(),o.onLinkCheck&&await o.onLinkCheck(r))return void window.open(r,"_blank","noreferrer");c(!0)}},[o,r,u]),p=(0,t.useCallback)(()=>{r&&window.open(r,"_blank","noreferrer")},[r]),d={url:null!=r?r:"",isOpen:l,onClose:(0,t.useCallback)(()=>{c(!1)},[]),onConfirm:p};return null!=o&&o.enabled&&r?(0,i9.jsxs)(i9.Fragment,{children:[(0,i9.jsx)("button",{className:s("wrap-anywhere appearance-none text-left font-medium text-primary underline",n),"data-incomplete":u,"data-streamdown":"link",onClick:h,type:"button",children:e}),o.renderModal?o.renderModal(d):(0,i9.jsx)(lR,{...d})]}):(0,i9.jsx)("a",{className:s("wrap-anywhere font-medium text-primary underline",n),"data-incomplete":u,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...a,children:e})},(e,t)=>lX(e,t)&&e.href===t.href);l6.displayName="MarkdownA";var l7=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("h1",{className:i("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e})},(e,t)=>lX(e,t));l7.displayName="MarkdownH1";var l8=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("h2",{className:i("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e})},(e,t)=>lX(e,t));l8.displayName="MarkdownH2";var ce=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("h3",{className:i("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e})},(e,t)=>lX(e,t));ce.displayName="MarkdownH3";var ct=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("h4",{className:i("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e})},(e,t)=>lX(e,t));ct.displayName="MarkdownH4";var cn=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("h5",{className:i("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e})},(e,t)=>lX(e,t));cn.displayName="MarkdownH5";var cr=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("h6",{className:i("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e})},(e,t)=>lX(e,t));cr.displayName="MarkdownH6";var ci=(0,t.memo)(({children:e,className:n,node:r,...i})=>{let{controls:a}=(0,t.useContext)(uD),s=lZ(a,"table"),o=lJ(a,"copy"),l=lJ(a,"download"),c=lJ(a,"fullscreen");return(0,i9.jsx)(lq,{className:n,showControls:s,showCopy:o,showDownload:l,showFullscreen:c,...i,children:e})},(e,t)=>lX(e,t));ci.displayName="MarkdownTable";var ca=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e})},(e,t)=>lX(e,t));ca.displayName="MarkdownThead";var cs=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e})},(e,t)=>lX(e,t));cs.displayName="MarkdownTbody";var co=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("tr",{className:i("border-border",t),"data-streamdown":"table-row",...r,children:e})},(e,t)=>lX(e,t));co.displayName="MarkdownTr";var cl=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("th",{className:i("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e})},(e,t)=>lX(e,t));cl.displayName="MarkdownTh";var cc=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e})},(e,t)=>lX(e,t));cc.displayName="MarkdownTd";var cu=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("blockquote",{className:i("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e})},(e,t)=>lX(e,t));cu.displayName="MarkdownBlockquote";var ch=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...r,children:e})},(e,t)=>lX(e,t));ch.displayName="MarkdownSup";var cp=(0,t.memo)(({children:e,className:t,node:n,...r})=>{let i=lo();return(0,i9.jsx)("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...r,children:e})},(e,t)=>lX(e,t));cp.displayName="MarkdownSub";var cd=(0,t.memo)(({children:e,className:n,node:r,...i})=>{if("data-footnotes"in i){let r=Array.isArray(e)?e.map(e=>{if(!(0,t.isValidElement)(e))return e;if(e.type===l2){let n=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!(e=>{var n,r;if(!(0,t.isValidElement)(e))return!1;let i=Array.isArray(e.props.children)?e.props.children:[e.props.children],a=!1,s=!1;for(let e of i)if(e){if("string"==typeof e)""!==e.trim()&&(a=!0);else if((0,t.isValidElement)(e)){if((null==(n=e.props)?void 0:n["data-footnote-backref"])!==void 0)s=!0;else for(let n of Array.isArray(e.props.children)?e.props.children:[e.props.children])if("string"==typeof n&&""!==n.trim()||(0,t.isValidElement)(n)&&(null==(r=n.props)?void 0:r["data-footnote-backref"])===void 0){a=!0;break}}}return s&&!a})(e));return 0===n.length?null:{...e,props:{...e.props,children:n}}}return e}):e;return(Array.isArray(r)?r.some(e=>null!==e):null!==r)?(0,i9.jsx)("section",{className:n,...i,children:r}):null}return(0,i9.jsx)("section",{className:n,...i,children:e})},(e,t)=>lX(e,t));cd.displayName="MarkdownSection";var cm=(0,t.memo)(({node:e,className:n,children:r,...i})=>{var a,s,o;let l,c=lo(),u=!("data-block"in i),{mermaid:h,controls:p,lineNumbers:d}=(0,t.useContext)(uD),m=lw(),f=(0,t.useContext)(lr),g=null==n?void 0:n.match(lQ),E=null!=(a=null==g?void 0:g.at(1))?a:"",T=null!=(l=lv())&&l.renderers&&E&&null!=(o=l.renderers.find(e=>Array.isArray(e.language)?e.language.includes(E):e.language===E))?o:null;if(u)return(0,i9.jsx)("code",{className:c("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",n),"data-streamdown":"inline-code",...i,children:r});let A=null==(s=null==e?void 0:e.properties)?void 0:s.metastring,k=null==A?void 0:A.match(lV),_=k?Number.parseInt(k[1],10):void 0,b=!(A&&l$.test(A))&&!1!==d,y="";if((0,t.isValidElement)(r)&&r.props&&"object"==typeof r.props&&"children"in r.props&&"string"==typeof r.props.children?y=r.props.children:"string"==typeof r&&(y=r),T){let e=T.component;return(0,i9.jsx)(t.Suspense,{fallback:(0,i9.jsx)(lS,{}),children:(0,i9.jsx)(e,{code:y,isIncomplete:f,language:E,meta:A})})}if("mermaid"===E&&m){let e=lZ(p,"mermaid"),r=l1(p,"download"),i=l1(p,"copy"),a=l1(p,"fullscreen"),s=l1(p,"panZoom");return(0,i9.jsx)(t.Suspense,{fallback:(0,i9.jsx)(lS,{}),children:(0,i9.jsxs)("div",{className:c("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",n),"data-streamdown":"mermaid-block",children:[(0,i9.jsx)("div",{className:c("flex h-8 items-center text-muted-foreground text-xs"),children:(0,i9.jsx)("span",{className:c("ml-1 font-mono lowercase"),children:"mermaid"})}),e&&(r||i||a)?(0,i9.jsx)("div",{className:c("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:(0,i9.jsxs)("div",{className:c("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[r?(0,i9.jsx)(lM,{chart:y,config:null==h?void 0:h.config}):null,i?(0,i9.jsx)(ly,{code:y}):null,a?(0,i9.jsx)(lP,{chart:y,config:null==h?void 0:h.config}):null]})}):null,(0,i9.jsx)("div",{className:c("rounded-md border border-border bg-background"),children:(0,i9.jsx)(lW,{chart:y,config:null==h?void 0:h.config,showControls:s})})]})})}let C=lZ(p,"code"),N=l0(p,"download"),S=l0(p,"copy");return(0,i9.jsx)(lf,{className:n,code:y,isIncomplete:f,language:E,lineNumbers:b,startLine:void 0!==_&&_>=1?_:void 0,children:C?(0,i9.jsxs)(i9.Fragment,{children:[N?(0,i9.jsx)(lN,{code:y,language:E}):null,S?(0,i9.jsx)(ly,{}):null]}):null})},(e,t)=>e.className===t.className&&lK(e.node,t.node));cm.displayName="MarkdownCode";var cf=(0,t.memo)(({node:e,className:n,src:r,alt:i,onLoad:a,onError:s,...o})=>{let{DownloadIcon:l}=lA(),c=lo(),u=(0,t.useRef)(null),[h,p]=(0,t.useState)(!1),[d,m]=(0,t.useState)(!1),f=lb(),g=null!=o.width||null!=o.height,E=(h||g)&&!d,T=d&&!g;(0,t.useEffect)(()=>{let e=u.current;if(null!=e&&e.complete){let t=e.naturalWidth>0;p(t),m(!t)}},[]);let A=(0,t.useCallback)(e=>{p(!0),m(!1),null==a||a(e)},[a]),k=(0,t.useCallback)(e=>{p(!1),m(!0),null==s||s(e)},[s]),_=async()=>{if(r)try{let e=await (await fetch(r)).blob(),t=new URL(r,window.location.origin).pathname.split("/").pop()||"",n=t.split(".").pop(),a=t.includes(".")&&void 0!==n&&n.length<=4,s="";if(a)s=t;else{let n=e.type,r="png";n.includes("jpeg")||n.includes("jpg")?r="jpg":n.includes("png")?r="png":n.includes("svg")?r="svg":n.includes("gif")?r="gif":n.includes("webp")&&(r="webp"),s=`${(i||t||"image").replace(lI,"")}.${r}`}la(s,e,e.type)}catch(e){window.open(r,"_blank")}};return r?(0,i9.jsxs)("div",{className:c("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[(0,i9.jsx)("img",{alt:i,className:c("max-w-full rounded-lg",T&&"hidden",n),"data-streamdown":"image",onError:k,onLoad:A,ref:u,src:r,...o}),T&&(0,i9.jsx)("span",{className:c("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:f.imageNotAvailable}),(0,i9.jsx)("div",{className:c("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block")}),E&&(0,i9.jsx)("button",{className:c("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:_,title:f.downloadImage,type:"button",children:(0,i9.jsx)(l,{size:14})})]}):null},(e,t)=>e.className===t.className&&lK(e.node,t.node));cf.displayName="MarkdownImg";var cg=(0,t.memo)(({children:e,node:n,...r})=>{let i=(Array.isArray(e)?e:[e]).filter(e=>null!=e&&""!==e);if(1===i.length&&(0,t.isValidElement)(i[0])){let t=i[0].props.node,n=null==t?void 0:t.tagName;if("img"===n||"code"===n&&"data-block"in i[0].props)return(0,i9.jsx)(i9.Fragment,{children:e})}return(0,i9.jsx)("p",{...r,children:e})},(e,t)=>lX(e,t));cg.displayName="MarkdownParagraph";var cE={ol:l2,li:l5,ul:l3,hr:l4,strong:l9,a:l6,h1:l7,h2:l8,h3:ce,h4:ct,h5:cn,h6:cr,table:ci,thead:ca,tbody:cs,tr:co,th:cl,td:cc,blockquote:cu,code:cm,img:cf,pre:({children:e})=>(0,t.isValidElement)(e)?(0,t.cloneElement)(e,{"data-block":"true"}):e,sup:ch,sub:cp,p:cg,section:cd},cT=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,cA=/\p{L}/u;function ck(e){for(let t of e.replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,"")){if(cT.test(t))return"rtl";if(cA.test(t))break}return"ltr"}var c_,cb,cy,cC,cN,cS,cI,cx,cD,cO,cR,cL,cv,cw,cM,cP,cB,cF,cH,cU,cG,cj,cz,cY,cq,cV,c$,cW,cQ,cK,cX,cZ,cJ,c0,c1,c2=/^[ \t]{0,3}(`{3,}|~{3,})/,c5=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,c3=e=>{let t=e.split(` `),n=null,r=0;for(let e of t){let t=c2.exec(e);if(null===n){if(t){let e=t[1];n=e[0],r=e.length}}else if(t){let e=t[1],i=e[0],a=e.length;i===n&&a>=r&&(n=null,r=0)}}return null!==n},c4=()=>e=>{l(e,"html",(e,t,n)=>{n&&"number"==typeof t&&(n.children[t]={type:"text",value:e.value})})},c9=[],c6={allowDangerousHtml:!0},c7=new WeakMap,c8=new class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let t="default";return this.keyCache.set(e,t),t}let a=e=>{if(!e||0===e.length)return"";let t="";for(let n=0;n0&&(t+=","),Array.isArray(r)){let[e,n]=r;if("function"==typeof e){let n=c7.get(e);n||(n=e.name,c7.set(e,n)),t+=n}else t+=String(e);t+=":",t+=JSON.stringify(n)}else if("function"==typeof r){let e=c7.get(r);e||(e=r.name,c7.set(r,e)),t+=e}else t+=String(r)}return t},s=a(n),o=a(r),l=i?JSON.stringify(i):"",c=`${o}::${s}::${l}`;return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(n,t)}clear(){this.cache.clear()}},ue=e=>{let t=ut(e),n=e.children||"";return ui(t.runSync(t.parse(n),n),e)},ut=e=>{let t=c8.get(e);if(t)return t;let n=un(e);return c8.set(e,n),n},un=e=>{let t=e.rehypePlugins||c9,n=e.remarkPlugins||c9,r=t.some(e=>Array.isArray(e)?e[0]===nN:e===nN)?n:[...n,c4],i=e.remarkRehypeOptions?{...c6,...e.remarkRehypeOptions}:c6;return sX().use(sE).use(r).use(sv,i).use(t)},ur=e=>e,ui=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:a,unwrapDisallowed:s,urlTransform:o}=t;if(n||r||i||a||o){let t=o||ur;l(e,(e,o,l)=>{var c;let u;return"raw"===e.type&&l&&"number"==typeof o?(c=e.value,a?l.children.splice(o,1):l.children[o]={type:"text",value:c},o):"element"===e.type&&(((e,t)=>{var n;for(let r in aN)if(Object.hasOwn(aN,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],a=aN[r];(null===a||a.includes(e.tagName))&&(e.properties[r]=null!=(n=t(String(i||""),r,e))?n:void 0)}})(e,t),u=!1,r?u=!r.includes(e.tagName):i&&(u=i.includes(e.tagName)),!u&&n&&"number"==typeof o&&(u=!n(e,o,l)),u&&l&&"number"==typeof o)?(s&&e.children?l.children.splice(o,1,...e.children):l.children.splice(o,1),o):void 0})}return function(e,t){var n,r,i,a;let s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=o,r=t.jsxDEV,s=function(e,t,i,a){let s=Array.isArray(i.children),o=no(e);return r(t,i,a,s,{columnNumber:o?o.column-1:void 0,fileName:n,lineNumber:o?o.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,s=function(e,t,n,r){let s=Array.isArray(n.children)?a:i;return r?s(t,n,r):s(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Z:X,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=aT(l,e,void 0);return c&&"string"!=typeof c?c:l.create(e,l.Fragment,{children:c||void 0},void 0)}(e,{Fragment:i9.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:i9.jsx,jsxs:i9.jsxs,passKeys:!0,passNode:!0})},ua=/\[\^[\w-]{1,200}\](?!:)/,us=/\[\^[\w-]{1,200}\]:/,uo=/<(\w+)[\s>]/,ul=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),uc=new Map,uu=new Map,uh=(e,t)=>{if(ul.has(t.toLowerCase()))return 0;let n=e.match((e=>{let t=e.toLowerCase(),n=uc.get(t);if(n)return n;let r=RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return uc.set(t,r),r})(t));if(!n)return 0;let r=0;for(let e of n)e.trimEnd().endsWith("/>")||(r+=1);return r},up=(e,t)=>{let n=e.match((e=>{let t=e.toLowerCase(),n=uu.get(t);if(n)return n;let r=RegExp(`])[^>]*>`,"gi");return uu.set(t,r),r})(t));return n?n.length:0},ud=e=>{let t=0;for(let n=0;n{let t=ua.test(e),n=us.test(e);if(t||n)return[e];let r=o1.lex(e,{gfm:!0}),i=[],a=[],s=!1;for(let e of r){let t=e.raw,n=i.length;if(a.length>0){i[n-1]+=t;let e=a.at(-1),r=uh(t,e),s=up(t,e);for(let t=0;t0&&a.at(-1)===e&&a.pop();continue}if("html"===e.type&&e.block){let e=t.match(uo);if(e){let n=e[1];uh(t,n)>up(t,n)&&a.push(n)}}if(n>0&&!s){let e=i[n-1];if(ud(e)%2==1){i[n-1]=e+t;continue}}i.push(t),"space"!==e.type&&(s="code"===e.type)}return i},uf=/([\\`*_~[\]|])/g,ug=e=>e.replace(uf,"\\$1"),uE=e=>"text"===e.type?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(uE).join(""):"",uT=e=>t=>{if(!e||0===e.length)return;let n=new Set(e.map(e=>e.toLowerCase()));l(t,"element",e=>{if(n.has(e.tagName.toLowerCase())){let t=uE(e);e.children=t?[{type:"text",value:t}]:[]}})},uA=/^[ \t]*<[\w!/?-]/,uk=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,u_={...nI,protocols:{...nI.protocols,href:[...null!=(cJ=null==(cZ=nI.protocols)?void 0:cZ.href)?cJ:[],"tel"]},attributes:{...nI.attributes,code:[...null!=(c1=null==(c0=nI.attributes)?void 0:c0.code)?c1:[],"metastring"]}},ub={raw:nN,sanitize:[nM,u_],harden:[function({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:o="text-gray-500",linkBlockPolicy:p=c,imageBlockPolicy:d=c}){let m=t.length&&!t.every(e=>"*"===e),E=n.length&&!n.every(e=>"*"===e);if(!e&&(m||E))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return c=>{var m,E,T,A,k,_,b,y,C;let N,S=(m=e,E=t,T=n,A=r,k=i,_=a,b=o,y=p,C=d,N=(e,t,n)=>{if("element"!==e.type||e[g])return!0;if("a"===e.tagName){let r=f(e.properties.href,E,m,!1,!1,k);if(null!==r)return e.properties.href=r,e.properties.target="_blank",e.properties.rel="noopener noreferrer",!0;if(e[g]=!0,l(e,N),n&&"number"==typeof t){let r=y===h?{type:"remove"}:y===u?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:b},children:[...e.children,{type:"text",value:" [blocked]"}]}};if("remove"===r.type)return n.children.splice(t,1),[s,t];n.children[t]=r.element}return s}if("img"===e.tagName){let r=f(e.properties.src,T,m,A,!0,k);if(null===r){if(e[g]=!0,l(e,N),n&&"number"==typeof t){let r=function(e,t,n){if(t===h)return{type:"remove"};if(t===u){let t=String(e.properties.alt||"");return t?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:t}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}(e,C,_);if("remove"===r.type)return n.children.splice(t,1),[s,t];n.children[t]=r.element}return s}e.properties.src=r}return!0});(function e(t){if("children"in t&&Array.isArray(t.children))for(let n of(t.children=t.children.filter(e=>null!=e),t.children))e(n)})(c),l(c,S)}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},uy={gfm:[function(e){let t,n,r,i=e||io,a=this.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),l=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(rP([{text:rq},{document:{91:{name:"gfmFootnoteDefinition",tokenize:r3,continuation:{tokenize:r4},exit:r9}},text:{91:{name:"gfmFootnoteCall",tokenize:r5},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:r1,resolveTo:r2}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,a=this.events,s=0;return function(o){return 126===i&&"characterEscape"!==a[a.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function a(o){let l=rg(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);let c=e.exit("strikethroughSequenceTemporary"),u=rg(o);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n0&&(a.shift(4),s+=a.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,a.current()),r?rc:rl))),o(),s},footnoteReference:ro},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ru}],handlers:{delete:rd}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=r_(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,i=-1,a=[],s=t.enter("table");for(;++ic&&(c=e[u].length);++al[a])&&(l[a]=e)}t.push(s)}s[u]=t,o[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++pl[p]&&(l[p]=i),m[p]=i),d[p]=s}s.splice(1,0,d),o.splice(1,0,m),u=-1;let f=[];for(;++ue=>{l(e,"code",e=>{var t,n;e.meta&&(e.data=null!=(t=e.data)?t:{},e.data.hProperties={...null!=(n=e.data.hProperties)?n:{},metastring:e.meta})})}},uC=Object.values(ub),uN=Object.values(uy),uS={block:" ▋",circle:" ●"},uI=["github-light","github-dark"],ux={enabled:!0},uD=(0,t.createContext)({shikiTheme:uI,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:ux}),uO=(0,t.memo)(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:a,animatePlugin:s,...o})=>{if(s){let e=s.getLastRenderCharCount();s.setPrevContentLength(e)}let l="string"==typeof e&&n&&"string"==typeof e&&0!==e.length&&uA.test(e)?e.replace(uk,"$1"):e,c=(0,i9.jsx)(ue,{...o,children:l});return(0,i9.jsx)(lr.Provider,{value:i,children:a?(0,i9.jsx)("div",{dir:a,style:{display:"contents"},children:c}):c})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(n=>{var r,i;return(null==(r=e.components)?void 0:r[n])!==(null==(i=t.components)?void 0:i[n])}))return!1}return e.rehypePlugins===t.rehypePlugins&&e.remarkPlugins===t.remarkPlugins});uO.displayName="Block";var uR=(0,t.memo)(({children:e,mode:n="streaming",dir:r,parseIncompleteMarkdown:i=!0,normalizeHtmlIndentation:a=!1,components:s,rehypePlugins:o=uC,remarkPlugins:l=uN,className:c,shikiTheme:u=uI,mermaid:h,controls:p=!0,isAnimating:d=!1,animated:m,BlockComponent:f=uO,parseMarkdownIntoBlocksFn:g=um,caret:E,plugins:T,remend:A,linkSafety:k=ux,lineNumbers:_=!0,allowedTags:b,literalTagContent:y,translations:C,icons:N,prefix:S,onAnimationStart:I,onAnimationEnd:x,...D})=>{let O=(0,t.useId)(),[R,L]=(0,t.useTransition)(),v=(0,t.useMemo)(()=>S?(...e)=>((e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(t=>t.startsWith(n)?t:`${e}:${t}`).join(" ")})(S,(0,i4.twMerge)((0,i3.clsx)(e))):li,[S]),w=(0,t.useRef)(null),M=(0,t.useRef)(I),P=(0,t.useRef)(x);M.current=I,P.current=x,(0,t.useEffect)(()=>{var e,t,r;if("static"===n)return;let i=w.current;if(w.current=d,null===i){d&&(null==(e=M.current)||e.call(M));return}d&&!i?null==(t=M.current)||t.call(M):!d&&i&&(null==(r=P.current)||r.call(P))},[d,n]);let B=(0,t.useMemo)(()=>b?Object.keys(b):[],[b]),F=(0,t.useMemo)(()=>{if("string"!=typeof e)return"";let t="streaming"===n&&i?((e,t)=>{var n,r;let i;if(!e||"string"!=typeof e)return e;let a=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e;for(let{handler:e,earlyReturn:s}of[...(i=null!=(r=null==t?void 0:t.linkMode)?r:"protocol",i5.filter(({handler:e,optionKey:n})=>"links"===e.name?!1!==(null==t?void 0:t.links)||!1!==(null==t?void 0:t.images):"inlineKatex"===e.name?!0===(null==t?void 0:t.inlineKatex):!1!==(null==t?void 0:t[n])).map(({handler:e,earlyReturn:t})=>"links"===e.name?{handler:ic(ig({},e),iu({handle:e=>iX(e,i)})),earlyReturn:"protocol"===i?t:void 0}:{handler:e,earlyReturn:t})),...(null!=(n=null==t?void 0:t.handlers)?n:[]).map(e=>{var t;return{handler:ic(ig({},e),iu({priority:null!=(t=e.priority)?t:100})),earlyReturn:void 0}})].sort((e,t)=>{var n,r;return(null!=(n=e.handler.priority)?n:0)-(null!=(r=t.handler.priority)?r:0)}))if(a=e.handle(a),null!=s&&s(a))break;return a})(e,A):e;return y&&y.length>0&&(t=((e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)()`,"gi");n=n.replace(t,(e,t,n,r)=>t+ug(n).replace(/\n\n/g," ")+r)}return n})(t,y)),B.length>0&&(t=((e,t)=>{if(!t.length)return e;let n=e;for(let e of t){let t=RegExp(`(<${e}(?=[\\s>/])[^>]*>)([\\s\\S]*?)()`,"gi");n=n.replace(t,(e,t,n,r)=>{if(!n.includes(` `))return t+n+r;let i=n.replace(/\n\n/g,` `),a=(i.startsWith(` `)?"":` `)+i+(i.endsWith(` `)?"":` `);return`${t}${a}${r} `})}return n})(t,B)),t},[e,n,i,A,B,y]),H=(0,t.useMemo)(()=>g(F),[F,g]),[U,G]=(0,t.useState)(H);(0,t.useEffect)(()=>{"streaming"!==n||V?G(H):L(()=>{G(H)})},[H,n]);let j="streaming"===n?U:H,z=(0,t.useMemo)(()=>"auto"===r?j.map(ck):void 0,[j,r]),Y=(0,t.useMemo)(()=>j.map((e,t)=>`${O}-${t}`),[j.length,O]),q=(0,t.useMemo)(()=>!0===m?"true":m?JSON.stringify(m):"",[m]),V=(0,t.useMemo)(()=>q?"true"===q?ln():ln(m):null,[q]),$=(0,t.useMemo)(()=>{var e,t;return{shikiTheme:null!=(t=null==(e=null==T?void 0:T.code)?void 0:e.getThemes())?t:u,controls:p,isAnimating:d,lineNumbers:_,mode:n,mermaid:h,linkSafety:k}},[u,p,d,_,n,h,k,null==T?void 0:T.code]),W=(0,t.useMemo)(()=>C?JSON.stringify(C):"",[C]),Q=(0,t.useMemo)(()=>({...lk,...C}),[W]),K=(0,t.useMemo)(()=>{let{inlineCode:e,...n}=null!=s?s:{},r={...cE,...n};if(e){let n=r.code;r.code=r=>"data-block"in r?n?(0,t.createElement)(n,r):null:(0,t.createElement)(e,r)}return r},[s]),X=(0,t.useMemo)(()=>{let e=[];return null!=T&&T.cjk&&(e=[...e,...T.cjk.remarkPluginsBefore]),e=[...e,...l],null!=T&&T.cjk&&(e=[...e,...T.cjk.remarkPluginsAfter]),null!=T&&T.math&&(e=[...e,T.math.remarkPlugin]),e},[l,null==T?void 0:T.math,null==T?void 0:T.cjk]),Z=(0,t.useMemo)(()=>{var e;let t=o;if(b&&Object.keys(b).length>0&&o===uC){let n={...u_,tagNames:[...null!=(e=u_.tagNames)?e:[],...Object.keys(b)],attributes:{...u_.attributes,...b}};t=[ub.raw,[nM,n],ub.harden]}return y&&y.length>0&&(t=[...t,[uT,y]]),null!=T&&T.math&&(t=[...t,T.math.rehypePlugin]),V&&d&&(t=[...t,V.rehypePlugin]),t},[o,null==T?void 0:T.math,V,d,b,y]),J=(0,t.useMemo)(()=>{if(!d||0===j.length)return!1;let e=j.at(-1);return c3(e)||(e=>{for(let t of e.split(` `)){let e=t.trim();if(e.length>0&&e.includes("|")&&c5.test(e))return!0}return!1})(e)},[d,j]),ee=(0,t.useMemo)(()=>E&&d&&!J?{"--streamdown-caret":`"${uS[E]}"`}:void 0,[E,d,J]);return"static"===n?(0,i9.jsx)(l_.Provider,{value:Q,children:(0,i9.jsx)(lL.Provider,{value:null!=T?T:null,children:(0,i9.jsx)(uD.Provider,{value:$,children:(0,i9.jsx)(lT,{icons:N,children:(0,i9.jsx)(ls.Provider,{value:v,children:(0,i9.jsx)("div",{className:v("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",c),dir:"auto"===r?ck(F):r,children:(0,i9.jsx)(ue,{components:K,rehypePlugins:Z,remarkPlugins:X,...D,children:F})})})})})})}):(0,i9.jsx)(l_.Provider,{value:Q,children:(0,i9.jsx)(lL.Provider,{value:null!=T?T:null,children:(0,i9.jsx)(uD.Provider,{value:$,children:(0,i9.jsx)(lT,{icons:N,children:(0,i9.jsx)(ls.Provider,{value:v,children:(0,i9.jsxs)("div",{className:v("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",E&&!J?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,c),style:ee,children:[0===j.length&&E&&d&&(0,i9.jsx)("span",{}),j.map((e,t)=>{var n;let s=t===j.length-1,o=d&&s&&c3(e);return(0,i9.jsx)(f,{animatePlugin:V,components:K,content:e,dir:null!=(n=null==z?void 0:z[t])?n:"auto"!==r?r:void 0,index:t,isIncomplete:o,rehypePlugins:Z,remarkPlugins:X,shouldNormalizeHtmlIndentation:a,shouldParseIncompleteMarkdown:i,...D},Y[t])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);uR.displayName="Streamdown";var uL=({children:e,className:n,minZoom:r=.5,maxZoom:i=3,zoomStep:a=.1,showControls:s=!0,initialZoom:o=1,fullscreen:l=!1})=>{let{RotateCcwIcon:c,ZoomInIcon:u,ZoomOutIcon:h}=lA(),p=lo(),d=(0,t.useRef)(null),m=(0,t.useRef)(null),[f,g]=(0,t.useState)(o),[E,T]=(0,t.useState)({x:0,y:0}),[A,k]=(0,t.useState)(!1),[_,b]=(0,t.useState)({x:0,y:0}),[y,C]=(0,t.useState)({x:0,y:0}),N=(0,t.useCallback)(e=>{g(t=>Math.max(r,Math.min(i,t+e)))},[r,i]),S=(0,t.useCallback)(()=>{N(a)},[N,a]),I=(0,t.useCallback)(()=>{N(-a)},[N,a]),x=(0,t.useCallback)(()=>{g(o),T({x:0,y:0})},[o]),D=(0,t.useCallback)(e=>{e.preventDefault(),N(e.deltaY>0?-a:a)},[N,a]),O=(0,t.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;k(!0),b({x:e.clientX,y:e.clientY}),C(E);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[E]),R=(0,t.useCallback)(e=>{if(!A)return;e.preventDefault();let t=e.clientX-_.x,n=e.clientY-_.y;T({x:y.x+t,y:y.y+n})},[A,_,y]),L=(0,t.useCallback)(e=>{k(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,t.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener("wheel",D,{passive:!1}),()=>{e.removeEventListener("wheel",D)}},[D]),(0,t.useEffect)(()=>{let e=m.current;if(e&&A)return document.body.style.userSelect="none",e.addEventListener("pointermove",R,{passive:!1}),e.addEventListener("pointerup",L),e.addEventListener("pointercancel",L),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",R),e.removeEventListener("pointerup",L),e.removeEventListener("pointercancel",L)}},[A,R,L]),(0,i9.jsxs)("div",{className:p("relative flex flex-col",l?"h-full w-full":"min-h-28 w-full",n),ref:d,style:{cursor:A?"grabbing":"grab"},children:[s?(0,i9.jsxs)("div",{className:p("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",l?"bottom-4 left-4":"bottom-2 left-2"),children:[(0,i9.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:f>=i,onClick:S,title:"Zoom in",type:"button",children:(0,i9.jsx)(u,{size:16})}),(0,i9.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:f<=r,onClick:I,title:"Zoom out",type:"button",children:(0,i9.jsx)(h,{size:16})}),(0,i9.jsx)("button",{className:p("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:x,title:"Reset zoom and pan",type:"button",children:(0,i9.jsx)(c,{size:16})})]}):null,(0,i9.jsx)("div",{className:p("flex-1 origin-center transition-transform duration-150 ease-out",l?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:O,ref:m,role:"application",style:{transform:`translate(${E.x}px, ${E.y}px) scale(${f})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},uv=({chart:e,className:n,config:r,fullscreen:i=!1,showControls:a=!0})=>{let s=lo(),[o,l]=(0,t.useState)(null),[c,u]=(0,t.useState)(!1),[h,p]=(0,t.useState)(""),[d,m]=(0,t.useState)(""),[f,g]=(0,t.useState)(0),{mermaid:E}=(0,t.useContext)(uD),T=lw(),A=null==E?void 0:E.errorComponent,{shouldRender:k,containerRef:_}=function(e={}){let{immediate:n=!1,debounceDelay:r=300,rootMargin:i="300px",idleTimeout:a=500}=e,[s,o]=(0,t.useState)(!1),l=(0,t.useRef)(null),c=(0,t.useRef)(null),u=(0,t.useRef)(null),h=(0,t.useMemo)(()=>e=>{let t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},[]),p=(0,t.useMemo)(()=>"u">typeof window&&window.requestIdleCallback?(e,t)=>window.requestIdleCallback(e,t):h,[h]),d=(0,t.useMemo)(()=>"u">typeof window&&window.cancelIdleCallback?e=>window.cancelIdleCallback(e):e=>{clearTimeout(e)},[]);return(0,t.useEffect)(()=>{if(n)return void o(!0);let e=l.current;if(!e)return;c.current&&(clearTimeout(c.current),c.current=null),u.current&&(d(u.current),u.current=null);let t=()=>{c.current&&(clearTimeout(c.current),c.current=null),u.current&&(d(u.current),u.current=null)},s=(e,n)=>{e.isIntersecting?(t(),c.current=window.setTimeout(()=>{var e,t;let r=n.takeRecords();(0===r.length||null!=(t=null==(e=r.at(-1))?void 0:e.isIntersecting)&&t)&&(u.current=p(e=>{e.timeRemaining()>0||e.didTimeout?(o(!0),n.disconnect()):u.current=p(()=>{o(!0),n.disconnect()},{timeout:a/2})},{timeout:a}))},r)):t()},h=new IntersectionObserver(e=>{for(let t of e)s(t,h)},{rootMargin:i,threshold:0});return h.observe(e),()=>{c.current&&clearTimeout(c.current),u.current&&d(u.current),h.disconnect()}},[n,r,i,a,d,p]),{shouldRender:s,containerRef:l}}({immediate:i});return((0,t.useEffect)(()=>{if(k){if(!T)return void l("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");(async()=>{try{l(null),u(!0);let t=T.getMermaid(r),n=e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0),i=`mermaid-${Math.abs(n)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:a}=await t.render(i,e);p(a),m(a)}catch(e){d||h||l(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{u(!1)}})()}},[e,r,f,k,T]),k||h||d)?!c||h||d?!o||h||d?(0,i9.jsx)("div",{className:s("size-full",n),"data-streamdown":"mermaid",ref:_,children:(0,i9.jsx)(uL,{className:s(i?"size-full overflow-hidden":"overflow-hidden",n),fullscreen:i,maxZoom:3,minZoom:.5,showControls:a,zoomStep:.1,children:(0,i9.jsx)("div",{"aria-label":"Mermaid chart",className:s("flex justify-center",i?"size-full items-center":null),dangerouslySetInnerHTML:{__html:h||d},role:"img"})})}):A?(0,i9.jsx)("div",{ref:_,children:(0,i9.jsx)(A,{chart:e,error:o,retry:()=>g(e=>e+1)})}):(0,i9.jsxs)("div",{className:s("rounded-md bg-red-50 p-4",n),ref:_,children:[(0,i9.jsxs)("p",{className:s("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",o]}),(0,i9.jsxs)("details",{className:s("mt-2"),children:[(0,i9.jsx)("summary",{className:s("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),(0,i9.jsx)("pre",{className:s("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]}):(0,i9.jsx)("div",{className:s("my-4 flex justify-center p-4",n),ref:_,children:(0,i9.jsxs)("div",{className:s("flex items-center space-x-2 text-muted-foreground"),children:[(0,i9.jsx)("div",{className:s("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),(0,i9.jsx)("span",{className:s("text-sm"),children:"Loading diagram..."})]})}):(0,i9.jsx)("div",{className:s("my-4 min-h-[200px]",n),ref:_})};e.s(["A",0,uD,"C",0,uR,"c",0,lc,"f",0,()=>{var e;let t=lv();return null!=(e=null==t?void 0:t.code)?e:null},"l",0,uv,"y",0,ub,"z",0,uy],566710)}]); //# debugId=3f813409-42c6-a6d2-7be8-aa0c0e394849