@hachther/akilio-widget 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +1,38 @@
1
- (function(ut,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],E):(ut=typeof globalThis<"u"?globalThis:ut||self,E(ut.AkilioWidget={},ut.ReactJSXRuntime,ut.React,ut.ReactDOM))})(this,(function(ut,E,U,As){"use strict";"use client";var hb=globalThis.process||{env:{NODE_ENV:"production"}},mb=globalThis;function hi(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=hi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Dt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=hi(e))&&(r&&(r+=" "),r+=t);return r}const Is='.driver-popover{all:unset;font-family:var(--driver-popover-font-family,"Helvetica Neue", Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif);box-sizing:border-box;color:#2d2d2d;z-index:1000000000;background-color:#fff;border-radius:5px;min-width:250px;max-width:300px;margin:0;padding:15px;position:fixed;top:0;right:0;box-shadow:0 1px 10px #0006}.driver-popover-title{zoom:1;margin:0;font-size:19px;font-weight:700;line-height:1.5;display:block;position:relative}.driver-popover-close-btn{all:unset;cursor:pointer;color:#d2d2d2;z-index:1;text-align:center;width:32px;height:28px;font-size:18px;font-weight:500;transition:color .2s;position:absolute;top:0;right:0}.driver-popover-close-btn:hover,.driver-popover-close-btn:focus{color:#2d2d2d}.driver-popover-title[style*=block]+.driver-popover-description{margin-top:5px}.driver-popover-description{zoom:1;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.5}.driver-popover-footer{text-align:right;zoom:1;justify-content:space-between;align-items:center;margin-top:15px;display:flex}.driver-popover-progress-text{color:#727272;zoom:1;font-size:13px;font-weight:400}.driver-popover-footer-btn{all:unset;box-sizing:border-box;color:#2d2d2d;cursor:pointer;zoom:1;background-color:#fff;border:1px solid #ccc;border-radius:3px;outline:0;padding:3px 7px;font-size:12px;line-height:1.3;text-decoration:none;display:inline-block}.driver-popover-footer .driver-popover-btn-disabled{opacity:.5;pointer-events:none}.driver-popover-footer-btn:hover,.driver-popover-footer-btn:focus{background-color:#f7f7f7}.driver-popover-navigation-btns{flex-grow:1;justify-content:flex-end;display:flex}.driver-popover-navigation-btns button+button{margin-left:4px}.driver-popover-arrow{content:"";border:5px solid #fff;position:absolute}.driver-popover-arrow-side-over{display:none}.driver-popover-arrow-side-left{border-top-color:#0000;border-bottom-color:#0000;border-right-color:#0000;left:100%}.driver-popover-arrow-side-right{border-top-color:#0000;border-bottom-color:#0000;border-left-color:#0000;right:100%}.driver-popover-arrow-side-top{border-bottom-color:#0000;border-left-color:#0000;border-right-color:#0000;top:100%}.driver-popover-arrow-side-bottom{border-top-color:#0000;border-left-color:#0000;border-right-color:#0000;bottom:100%}.driver-popover-arrow-side-center,.driver-popover-arrow-none{display:none}.driver-active .driver-overlay{pointer-events:none}.driver-active.driver-no-scroll{overflow:hidden}.driver-active *{pointer-events:none}.driver-active .driver-active-element,.driver-active .driver-active-element *,.driver-popover,.driver-popover *{pointer-events:auto}@keyframes animate-fade-in{0%{opacity:0}to{opacity:1}}.driver-fade .driver-overlay{animation:animate-fade-in var(--driver-animation-duration,.4s) ease-in-out}.driver-fade .driver-popover{animation:animate-fade-in var(--driver-animation-duration,.4s)}.driver-active-element-parent-no-scroll{overflow:hidden!important}.driver-no-interaction,.driver-no-interaction *{pointer-events:none!important}';function Os({className:e,primaryColor:t="#0F766E",style:n}){return E.jsxs("svg",{className:e,style:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 320",role:"img","aria-labelledby":"title desc",children:[E.jsxs("g",{fill:"none",stroke:t,strokeWidth:"34",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M60 244 L132 88 Q142 66 160 66 Q178 66 188 88 L260 244"}),E.jsx("path",{d:"M60 244 H108"})]}),E.jsx("circle",{cx:"160",cy:"226",r:"18",fill:t})]})}function Ms({className:e,primaryColor:t="#0F766E",secondaryColor:n="#0F1B3D"}){return E.jsx("svg",{className:e,viewBox:"0 0 1000 320",xmlns:"http://www.w3.org/2000/svg",children:E.jsxs("g",{id:"Group",children:[E.jsx("path",{id:"Path",fill:"none",stroke:t,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 90 235 L 175 78 C 182.333333 64.666667 193.333333 58 208 58 C 222.666667 58 233.666667 64.666667 241 78 L 326 235"}),E.jsx("path",{id:"path1",fill:"none",stroke:t,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 91 235 L 142 235"}),E.jsx("path",{id:"path2",fill:t,stroke:"none",d:"M 203 223 C 203 232.38884 195.38884 240 186 240 C 176.61116 240 169 232.38884 169 223 C 169 213.61116 176.61116 206 186 206 C 195.38884 206 203 213.61116 203 223 Z"}),E.jsx("path",{id:"path3",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 62 L 365 238"}),E.jsx("path",{id:"path4",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 168 L 458 84"}),E.jsx("path",{id:"path5",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 398 139 L 468 238"}),E.jsx("path",{id:"path6",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 520 118 L 520 238"}),E.jsx("path",{id:"path7",fill:t,stroke:"none",d:"M 536 72 C 536 80.836548 528.836548 88 520 88 C 511.163452 88 504 80.836548 504 72 C 504 63.163452 511.163452 56 520 56 C 528.836548 56 536 63.163452 536 72 Z"}),E.jsx("path",{id:"path8",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 598 62 L 598 205 C 598 227 608 238 628 238 L 650 238"}),E.jsx("path",{id:"path9",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 710 118 L 710 238"}),E.jsx("path",{id:"path10",fill:t,stroke:"none",d:"M 726 72 C 726 80.836548 718.836548 88 710 88 C 701.163452 88 694 80.836548 694 72 C 694 63.163452 701.163452 56 710 56 C 718.836548 56 726 63.163452 726 72 Z"}),E.jsx("path",{id:"path11",fill:"none",stroke:t,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 921 178 C 921 214.45079 891.450806 244 855 244 C 818.549194 244 789 214.45079 789 178 C 789 141.54921 818.549194 112 855 112 C 891.450806 112 921 141.54921 921 178 Z"})]})})}function lr({variant:e="mark",className:t}){return e==="wordmark"?E.jsx(Ms,{className:t}):E.jsx(Os,{className:t})}function Nn(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"M10 2.5 11.3 6l3.5 1.3-3.5 1.2L10 12l-1.3-3.5-3.5-1.2L8.7 6 10 2.5ZM15.5 11.5l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7.7-1.8ZM4.8 11.8l.7 1.7 1.7.7-1.7.6-.7 1.8-.7-1.8-1.7-.6 1.7-.7.7-1.7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ls(e){return E.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:[E.jsx("path",{d:"M17.2 2.8 8.8 11.2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),E.jsx("path",{d:"m17.2 2.8-5.4 15-3-6.6-6.6-3 15-5.4Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Rs(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"m5.5 5.5 9 9M14.5 5.5l-9 9",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})})}function Ds(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"M7.5 3.8h5M4.5 6.2h11M6 6.2l.7 10h6.6l.7-10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ps(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"M6.8 8.5v8M6.8 8.5H4.2c-.8 0-1.4.6-1.4 1.4v5.2c0 .8.6 1.4 1.4 1.4h2.6M6.8 8.5l3.7-5.2c.7-1 2.2-.5 2.2.7v3.1h2.6c1.1 0 2 .9 1.8 2l-.8 5.6c-.1 1-1 1.8-2 1.8H6.8",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function Bs(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"M13.2 11.5v-8M13.2 11.5h2.6c.8 0 1.4-.6 1.4-1.4V4.9c0-.8-.6-1.4-1.4-1.4h-2.6M13.2 11.5l-3.7 5.2c-.7 1-2.2.5-2.2-.7v-3.1H4.7c-1.1 0-2-.9-1.8-2l.8-5.6c.1-1 1-1.8 2-1.8h7.5",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function Fs(e){return E.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:[E.jsx("circle",{cx:"10",cy:"10",r:"3.2",stroke:"currentColor",strokeWidth:"1.5"}),E.jsx("path",{d:"M10 2.2v1.5M10 16.3v1.5M2.2 10h1.5M16.3 10h1.5M4.5 4.5l1.1 1.1M14.4 14.4l1.1 1.1M15.5 4.5l-1.1 1.1M5.6 14.4l-1.1 1.1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function zs(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"M16.7 12.3A6.8 6.8 0 0 1 7.7 3.3a6.8 6.8 0 1 0 9 9Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function bb(){}function kb(){}function Us(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const qs=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$s=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hs={};function mi(e,t){return(Hs.jsx?$s:qs).test(e)}const Gs=/[ \t\n\f\r]/g;function Ws(e){return typeof e=="object"?e.type==="text"?bi(e.value):!1:bi(e)}function bi(e){return e.replace(Gs,"")===""}class ln{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ln.prototype.normal={},ln.prototype.property={},ln.prototype.space=void 0;function ki(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new ln(n,r,t)}function cr(e){return e.toLowerCase()}class Ze{constructor(t,n){this.attribute=n,this.property=t}}Ze.prototype.attribute="",Ze.prototype.booleanish=!1,Ze.prototype.boolean=!1,Ze.prototype.commaOrSpaceSeparated=!1,Ze.prototype.commaSeparated=!1,Ze.prototype.defined=!1,Ze.prototype.mustUseProperty=!1,Ze.prototype.number=!1,Ze.prototype.overloadedBoolean=!1,Ze.prototype.property="",Ze.prototype.spaceSeparated=!1,Ze.prototype.space=void 0;let Ks=0;const J=$t(),Le=$t(),ur=$t(),M=$t(),ve=$t(),qt=$t(),tt=$t();function $t(){return 2**++Ks}const dr=Object.freeze(Object.defineProperty({__proto__:null,boolean:J,booleanish:Le,commaOrSpaceSeparated:tt,commaSeparated:qt,number:M,overloadedBoolean:ur,spaceSeparated:ve},Symbol.toStringTag,{value:"Module"})),pr=Object.keys(dr);class fr extends Ze{constructor(t,n,r,i){let a=-1;if(super(t,n),yi(this,"space",i),typeof r=="number")for(;++a<pr.length;){const o=pr[a];yi(this,pr[a],(r&dr[o])===dr[o])}}}fr.prototype.defined=!0;function yi(e,t,n){n&&(e[t]=n)}function Zt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new fr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[cr(r)]=r,n[cr(a.attribute)]=r}return new ln(t,n,e.space)}const wi=Zt({properties:{ariaActiveDescendant:null,ariaAtomic:Le,ariaAutoComplete:null,ariaBusy:Le,ariaChecked:Le,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:ve,ariaCurrent:null,ariaDescribedBy:ve,ariaDetails:null,ariaDisabled:Le,ariaDropEffect:ve,ariaErrorMessage:null,ariaExpanded:Le,ariaFlowTo:ve,ariaGrabbed:Le,ariaHasPopup:null,ariaHidden:Le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ve,ariaLevel:M,ariaLive:null,ariaModal:Le,ariaMultiLine:Le,ariaMultiSelectable:Le,ariaOrientation:null,ariaOwns:ve,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:Le,ariaReadOnly:Le,ariaRelevant:null,ariaRequired:Le,ariaRoleDescription:ve,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:Le,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ei(e,t){return t in e?e[t]:t}function vi(e,t){return Ei(e,t.toLowerCase())}const Vs=Zt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qt,acceptCharset:ve,accessKey:ve,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alpha:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:ve,autoFocus:J,autoPlay:J,blocking:ve,capture:null,charSet:null,checked:J,cite:null,className:ve,closedBy:null,colorSpace:null,cols:M,colSpan:M,command:null,commandFor:null,content:null,contentEditable:Le,controls:J,controlsList:ve,coords:M|qt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:ur,draggable:Le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:ve,height:M,hidden:ur,high:M,href:null,hrefLang:null,htmlFor:ve,httpEquiv:ve,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:ve,itemRef:ve,itemScope:J,itemType:ve,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:J,optimum:M,pattern:null,ping:ve,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:ve,required:J,reversed:J,rows:M,rowSpan:M,sandbox:ve,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootCustomElementRegistry:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shadowRootSerializable:J,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:Le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:Le,width:M,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ve,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:Le,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:J,disablePictureInPicture:J,disableRemotePlayback:J,exportParts:qt,part:ve,prefix:null,property:null,results:M,security:null,unselectable:null},space:"html",transform:vi}),Ys=Zt({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:tt,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:ve,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:qt,g2:qt,glyphName:qt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:tt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,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:M,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:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ve,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tt,rev:tt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tt,requiredFeatures:tt,requiredFonts:tt,requiredFormats:tt,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:tt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tt,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ei}),xi=Zt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),_i=Zt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vi}),Si=Zt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Zs={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Xs=/[A-Z]/g,Ti=/-[a-z]/g,js=/^data[-\w.:]+$/i;function Qs(e,t){const n=cr(t);let r=t,i=Ze;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&js.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ti,el);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ti.test(a)){let o=a.replace(Xs,Js);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=fr}return new i(r,t)}function Js(e){return"-"+e.toLowerCase()}function el(e){return e.charAt(1).toUpperCase()}const tl=ki([wi,Vs,xi,_i,Si],"html"),gr=ki([wi,Ys,xi,_i,Si],"svg");function nl(e){return e.join(" ").trim()}function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rl(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ni=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,il=/\n/g,ol=/^\s*/,al=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,sl=/^:\s*/,ll=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cl=/^[;\s]*/,ul=/^\s+|\s+$/g,dl=`
2
- `,Ci="/",Ai="*",Ht="",pl="comment",fl="declaration";function gl(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var m=g.match(il);m&&(n+=m.length);var b=g.lastIndexOf(dl);r=~b?g.length-b:r+g.length}function a(){var g={line:n,column:r};return function(m){return m.position=new o(g),l(),m}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var m=new Error(t.source+":"+n+":"+r+": "+g);if(m.reason=g,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function c(g){var m=g.exec(e);if(m){var b=m[0];return i(b),e=e.slice(b.length),m}}function l(){c(ol)}function d(g){var m;for(g=g||[];m=u();)m!==!1&&g.push(m);return g}function u(){var g=a();if(!(Ci!=e.charAt(0)||Ai!=e.charAt(1))){for(var m=2;Ht!=e.charAt(m)&&(Ai!=e.charAt(m)||Ci!=e.charAt(m+1));)++m;if(m+=2,Ht===e.charAt(m-1))return s("End of comment missing");var b=e.slice(2,m-2);return r+=2,i(b),e=e.slice(m),r+=2,g({type:pl,comment:b})}}function f(){var g=a(),m=c(al);if(m){if(u(),!c(sl))return s("property missing ':'");var b=c(ll),h=g({type:fl,property:Ii(m[0].replace(Ni,Ht)),value:b?Ii(b[0].replace(Ni,Ht)):Ht});return c(cl),h}}function p(){var g=[];d(g);for(var m;m=f();)m!==!1&&(g.push(m),d(g));return g}return l(),p()}function Ii(e){return e?e.replace(ul,Ht):Ht}function hl(e,t){let n=null;if(!e||typeof e!="string")return n;const r=gl(e),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:s}=a;i?t(o,s,a):s&&(n=n||{},n[o]=s)}),n}const ml=rl(Object.freeze(Object.defineProperty({__proto__:null,default:hl},Symbol.toStringTag,{value:"Module"})));var cn={},Oi;function bl(){if(Oi)return cn;Oi=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},o=function(l,d){return d.toUpperCase()},s=function(l,d){return"".concat(d,"-")},c=function(l,d){return d===void 0&&(d={}),a(l)?l:(l=l.toLowerCase(),d.reactCompat?l=l.replace(i,s):l=l.replace(r,s),l.replace(t,o))};return cn.camelCase=c,cn}var un,Mi;function kl(){if(Mi)return un;Mi=1;var e=un&&un.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(ml),n=bl();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,c){s&&c&&(o[(0,n.camelCase)(s,a)]=c)}),o}return r.default=r,un=r,un}var yl=kl();const wl=hr(yl),Li=Ri("end"),mr=Ri("start");function Ri(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function El(e){const t=mr(e),n=Li(e);if(t&&n)return{start:t,end:n}}function dn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Di(e.position):"start"in e||"end"in e?Di(e):"line"in e||"column"in e?br(e):""}function br(e){return Pi(e&&e.line)+":"+Pi(e&&e.column)}function Di(e){return br(e&&e.start)+"-"+br(e&&e.end)}function Pi(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?a.ruleId=r:(a.source=r.slice(0,c),a.ruleId=r.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){const c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=dn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Be.prototype.file="",Be.prototype.name="",Be.prototype.reason="",Be.prototype.message="",Be.prototype.stack="",Be.prototype.column=void 0,Be.prototype.line=void 0,Be.prototype.ancestors=void 0,Be.prototype.cause=void 0,Be.prototype.fatal=void 0,Be.prototype.place=void 0,Be.prototype.ruleId=void 0,Be.prototype.source=void 0;const kr={}.hasOwnProperty,vl=new Map,xl=/[A-Z]/g,_l=new Set(["table","tbody","thead","tfoot","tr"]),Sl=new Set(["td","th"]),Bi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Tl(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Rl(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ll(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?gr:tl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Fi(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Fi(e,t,n){if(t.type==="element")return Nl(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Cl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Il(e,t,n);if(t.type==="mdxjsEsm")return Al(e,t);if(t.type==="root")return Ol(e,t,n);if(t.type==="text")return Ml(e,t)}function Nl(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=gr,e.schema=i),e.ancestors.push(t);const a=Ui(e,t.tagName,!1),o=Dl(e,t);let s=wr(e,t);return _l.has(t.tagName)&&(s=s.filter(function(c){return typeof c=="string"?!Ws(c):!0})),zi(e,o,a,t),yr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Cl(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}pn(e,t.position)}function Al(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);pn(e,t.position)}function Il(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=gr,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Ui(e,t.name,!0),o=Pl(e,t),s=wr(e,t);return zi(e,o,a,t),yr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Ol(e,t,n){const r={};return yr(r,wr(e,t)),e.create(t,e.Fragment,r,n)}function Ml(e,t){return t.value}function zi(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function yr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ll(e,t,n){return r;function r(i,a,o,s){const l=Array.isArray(o.children)?n:t;return s?l(a,o,s):l(a,o)}}function Rl(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),c=mr(r);return t(i,a,o,s,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Dl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&kr.call(t.properties,i)){const a=Bl(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&Sl.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Pl(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else pn(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else pn(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function wr(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:vl;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const l=i.get(c)||0;o=c+"-"+l,i.set(c,l+1)}}const s=Fi(e,a,o);s!==void 0&&n.push(s)}return n}function Bl(e,t,n){const r=Qs(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Us(n):nl(n)),r.property==="style"){let i=typeof n=="object"?n:Fl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=zl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Zs[r.property]||r.property:r.attribute,n]}}function Fl(e,t){try{return wl(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Be("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Bi+"#cannot-parse-style-attribute",i}}function Ui(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const s=mi(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=o}else r=mi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return kr.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);pn(e)}function pn(e,t){const n=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Bi+"#cannot-handle-mdx-estrees-without-createevaluater",n}function zl(e){const t={};let n;for(n in e)kr.call(e,n)&&(t[Ul(n)]=e[n]);return t}function Ul(e){let t=e.replace(xl,ql);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function ql(e){return"-"+e.toLowerCase()}const Er={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},$l={};function vr(e,t){const n=$l,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return qi(e,r,i)}function qi(e,t,n){if(Hl(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $i(e.children,t,n)}return Array.isArray(e)?$i(e,t,n):""}function $i(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=qi(e[i],t,n);return r.join("")}function Hl(e){return!!(e&&typeof e=="object")}const Hi={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
3
- `,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Gl={}.hasOwnProperty;function xr(e){return Gl.call(Hi,e)?Hi[e]:!1}function nt(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function it(e,t){return e.length>0?(nt(e,e.length,0,t),e):t}const Gi={}.hasOwnProperty;function Wi(e){const t={};let n=-1;for(;++n<e.length;)Wl(t,e[n]);return t}function Wl(e,t){let n;for(n in t){const i=(Gi.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Gi.call(i,o)||(i[o]=[]);const s=a[o];Kl(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Kl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);nt(e,0,0,r)}function Ki(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function dt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $e=Pt(/[A-Za-z]/),Fe=Pt(/[\dA-Za-z]/),Vl=Pt(/[#-'*+\--9=?A-Z^-~]/);function Cn(e){return e!==null&&(e<32||e===127)}const _r=Pt(/\d/),Yl=Pt(/[\dA-Fa-f]/),Zl=Pt(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function xe(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const An=Pt(new RegExp("\\p{P}|\\p{S}","u")),Gt=Pt(/\s/);function Pt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Xt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&Fe(e.charCodeAt(n+1))&&Fe(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function pe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(c){return ce(c)?(e.enter(n),s(c)):t(c)}function s(c){return ce(c)&&a++<i?(e.consume(c),s):(e.exit(n),t(c))}}const Xl={tokenize:jl};function jl(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),pe(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return V(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const Ql={tokenize:Jl},Vi={tokenize:ec};function Jl(e){const t=this,n=[];let r=0,i,a,o;return s;function s(x){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,c,l)(x)}return l(x)}function c(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const C=t.events.length;let I=C,_;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){_=t.events[I][1].end;break}h(r);let z=C;for(;z<t.events.length;)t.events[z][1].end={..._},z++;return nt(t.events,I+1,0,t.events.slice(C)),t.events.length=z,l(x)}return s(x)}function l(x){if(r===n.length){if(!i)return f(x);if(i.currentConstruct&&i.currentConstruct.concrete)return g(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Vi,d,u)(x)}function d(x){return i&&v(),h(r),f(x)}function u(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(x)}function f(x){return t.containerState={},e.attempt(Vi,p,g)(x)}function p(x){return r++,n.push([t.currentConstruct,t.containerState]),f(x)}function g(x){if(x===null){i&&v(),h(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),m(x)}function m(x){if(x===null){b(e.exit("chunkFlow"),!0),h(0),e.consume(x);return}return V(x)?(e.consume(x),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(x),m)}function b(x,C){const I=t.sliceStream(x);if(C&&I.push(null),x.previous=a,a&&(a.next=x),a=x,i.defineSkip(x.start),i.write(I),t.parser.lazy[x.start.line]){let _=i.events.length;for(;_--;)if(i.events[_][1].start.offset<o&&(!i.events[_][1].end||i.events[_][1].end.offset>o))return;const z=t.events.length;let G=z,W,S;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(W){S=t.events[G][1].end;break}W=!0}for(h(r),_=z;_<t.events.length;)t.events[_][1].end={...S},_++;nt(t.events,G+1,0,t.events.slice(z)),t.events.length=_}}function h(x){let C=n.length;for(;C-- >x;){const I=n[C];t.containerState=I[1],I[0].exit.call(t,e)}n.length=x}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function ec(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function jt(e){if(e===null||xe(e)||Gt(e))return 1;if(An(e))return 2}function In(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Sr={name:"attention",resolveAll:tc,tokenize:nc};function tc(e,t){let n=-1,r,i,a,o,s,c,l,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const u={...e[r][1].end},f={...e[n][1].start};Yi(u,-c),Yi(f,c),o={type:c>1?"strongSequence":"emphasisSequence",start:u,end:{...e[r][1].end}},s={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},a={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=it(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=it(l,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=it(l,In(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=it(l,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,l=it(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,nt(e,r-1,n-r+3,l),n=r+l.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function nc(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=jt(r);let a;return o;function o(c){return a=c,e.enter("attentionSequence"),s(c)}function s(c){if(c===a)return e.consume(c),s;const l=e.exit("attentionSequence"),d=jt(c),u=!d||d===2&&i||n.includes(c),f=!i||i===2&&d||n.includes(r);return l._open=!!(a===42?u:u&&(i||!f)),l._close=!!(a===42?f:f&&(d||!u)),t(c)}}function Yi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const rc={name:"autolink",tokenize:ic};function ic(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return $e(p)?(e.consume(p),o):p===64?n(p):l(p)}function o(p){return p===43||p===45||p===46||Fe(p)?(r=1,s(p)):l(p)}function s(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||Fe(p))&&r++<32?(e.consume(p),s):(r=0,l(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Cn(p)?n(p):(e.consume(p),c)}function l(p){return p===64?(e.consume(p),d):Vl(p)?(e.consume(p),l):n(p)}function d(p){return Fe(p)?u(p):n(p)}function u(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Fe(p))&&r++<63){const g=p===45?f:u;return e.consume(p),g}return n(p)}}const fn={partial:!0,tokenize:oc};function oc(e,t,n){return r;function r(a){return ce(a)?pe(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||V(a)?t(a):n(a)}}const Zi={continuation:{tokenize:sc},exit:lc,name:"blockQuote",tokenize:ac};function ac(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return ce(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function sc(e,t,n){const r=this;return i;function i(o){return ce(o)?pe(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(Zi,t,n)(o)}}function lc(e){e.exit("blockQuote")}const Xi={name:"characterEscape",tokenize:cc};function cc(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Zl(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const ji={name:"characterReference",tokenize:uc};function uc(e,t,n){const r=this;let i=0,a,o;return s;function s(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),c}function c(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=Fe,d(u))}function l(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Yl,d):(e.enter("characterReferenceValue"),a=7,o=_r,d(u))}function d(u){if(u===59&&i){const f=e.exit("characterReferenceValue");return o===Fe&&!xr(r.sliceSerialize(f))?n(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(u)&&i++<a?(e.consume(u),d):n(u)}}const Qi={partial:!0,tokenize:pc},Ji={concrete:!0,name:"codeFenced",tokenize:dc};function dc(e,t,n){const r=this,i={partial:!0,tokenize:I};let a=0,o=0,s;return c;function c(_){return l(_)}function l(_){const z=r.events[r.events.length-1];return a=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,s=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(_)}function d(_){return _===s?(o++,e.consume(_),d):o<3?n(_):(e.exit("codeFencedFenceSequence"),ce(_)?pe(e,u,"whitespace")(_):u(_))}function u(_){return _===null||V(_)?(e.exit("codeFencedFence"),r.interrupt?t(_):e.check(Qi,m,C)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(_))}function f(_){return _===null||V(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(_)):ce(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,p,"whitespace")(_)):_===96&&_===s?n(_):(e.consume(_),f)}function p(_){return _===null||V(_)?u(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(_))}function g(_){return _===null||V(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(_)):_===96&&_===s?n(_):(e.consume(_),g)}function m(_){return e.attempt(i,C,b)(_)}function b(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),h}function h(_){return a>0&&ce(_)?pe(e,v,"linePrefix",a+1)(_):v(_)}function v(_){return _===null||V(_)?e.check(Qi,m,C)(_):(e.enter("codeFlowValue"),x(_))}function x(_){return _===null||V(_)?(e.exit("codeFlowValue"),v(_)):(e.consume(_),x)}function C(_){return e.exit("codeFenced"),t(_)}function I(_,z,G){let W=0;return S;function S(H){return _.enter("lineEnding"),_.consume(H),_.exit("lineEnding"),R}function R(H){return _.enter("codeFencedFence"),ce(H)?pe(_,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):P(H)}function P(H){return H===s?(_.enter("codeFencedFenceSequence"),ee(H)):G(H)}function ee(H){return H===s?(W++,_.consume(H),ee):W>=o?(_.exit("codeFencedFenceSequence"),ce(H)?pe(_,Y,"whitespace")(H):Y(H)):G(H)}function Y(H){return H===null||V(H)?(_.exit("codeFencedFence"),z(H)):G(H)}}}function pc(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Tr={name:"codeIndented",tokenize:gc},fc={partial:!0,tokenize:hc};function gc(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),pe(e,a,"linePrefix",5)(l)}function a(l){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?c(l):V(l)?e.attempt(fc,o,c)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||V(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function c(l){return e.exit("codeIndented"),t(l)}}function hc(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):pe(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):V(o)?i(o):n(o)}}const mc={name:"codeText",previous:kc,resolve:bc,tokenize:yc};function bc(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function kc(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yc(e,t,n){let r=0,i,a;return o;function o(u){return e.enter("codeText"),e.enter("codeTextSequence"),s(u)}function s(u){return u===96?(e.consume(u),r++,s):(e.exit("codeTextSequence"),c(u))}function c(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),c):u===96?(a=e.enter("codeTextSequence"),i=0,d(u)):V(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(u))}function l(u){return u===null||u===32||u===96||V(u)?(e.exit("codeTextData"),c(u)):(e.consume(u),l)}function d(u){return u===96?(e.consume(u),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(a.type="codeTextData",l(u))}}class wc{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&gn(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),gn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),gn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);gn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);gn(this.left,n.reverse())}}}function gn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function eo(e){const t={};let n=-1,r,i,a,o,s,c,l;const d=new wc(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type==="lineEndingBlank"&&(a+=2),a<c.length&&c[a][1].type==="content"))for(;++a<c.length&&c[a][1].type!=="content";)c[a][1].type==="chunkText"&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ec(d,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},s=d.slice(i,n),s.unshift(r),d.splice(i,n-i+1,s))}}return nt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!l}function Ec(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,c=[],l={};let d,u,f=-1,p=n,g=0,m=0;const b=[m];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),u&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(m=f+1,b.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),f=b.length;f--;){const h=s.slice(b[f],b[f+1]),v=a.pop();c.push([v,v+h.length-1]),e.splice(v,2,h)}for(c.reverse(),f=-1;++f<c.length;)l[g+c[f][0]]=g+c[f][1],g+=c[f][1]-c[f][0]-1;return l}const vc={resolve:_c,tokenize:Sc},xc={partial:!0,tokenize:Tc};function _c(e){return eo(e),e}function Sc(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):V(s)?e.check(xc,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Tc(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),pe(e,a,"linePrefix")}function a(o){if(o===null||V(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function to(e,t,n,r,i,a,o,s,c){const l=c||Number.POSITIVE_INFINITY;let d=0;return u;function u(h){return h===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(h),e.exit(a),f):h===null||h===32||h===41||Cn(h)?n(h):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(h))}function f(h){return h===62?(e.enter(a),e.consume(h),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===62?(e.exit("chunkString"),e.exit(s),f(h)):h===null||h===60||V(h)?n(h):(e.consume(h),h===92?g:p)}function g(h){return h===60||h===62||h===92?(e.consume(h),p):p(h)}function m(h){return!d&&(h===null||h===41||xe(h))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(h)):d<l&&h===40?(e.consume(h),d++,m):h===41?(e.consume(h),d--,m):h===null||h===32||h===40||Cn(h)?n(h):(e.consume(h),h===92?b:m)}function b(h){return h===40||h===41||h===92?(e.consume(h),m):m(h)}}function no(e,t,n,r,i,a){const o=this;let s=0,c;return l;function l(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(a),d}function d(p){return s>999||p===null||p===91||p===93&&!c||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):V(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||V(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),c||(c=!ce(p)),p===92?f:u)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,u):u(p)}}function ro(e,t,n,r,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,c):n(f)}function c(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),l(f))}function l(f){return f===o?(e.exit(a),c(o)):f===null?n(f):V(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),pe(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===o||f===null||V(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?u:d)}function u(f){return f===o||f===92?(e.consume(f),d):d(f)}}function hn(e,t){let n;return r;function r(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ce(i)?pe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Nc={name:"definition",tokenize:Ac},Cc={partial:!0,tokenize:Ic};function Ac(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return no.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=dt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):n(p)}function c(p){return xe(p)?hn(e,l)(p):l(p)}function l(p){return to(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(Cc,u,u)(p)}function u(p){return ce(p)?pe(e,f,"whitespace")(p):f(p)}function f(p){return p===null||V(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function Ic(e,t,n){return r;function r(s){return xe(s)?hn(e,i)(s):n(s)}function i(s){return ro(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ce(s)?pe(e,o,"whitespace")(s):o(s)}function o(s){return s===null||V(s)?t(s):n(s)}}const Oc={name:"hardBreakEscape",tokenize:Mc};function Mc(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return V(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Lc={name:"headingAtx",resolve:Rc,tokenize:Dc};function Rc(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},nt(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Dc(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||xe(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||V(d)?(e.exit("atxHeading"),t(d)):ce(d)?pe(e,s,"whitespace")(d):(e.enter("atxHeadingText"),l(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),s(d))}function l(d){return d===null||d===35||xe(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),l)}}const Pc=["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"],io=["pre","script","style","textarea"],Bc={concrete:!0,name:"htmlFlow",resolveTo:Uc,tokenize:qc},Fc={partial:!0,tokenize:Hc},zc={partial:!0,tokenize:$c};function Uc(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function qc(e,t,n){const r=this;let i,a,o,s,c;return l;function l(w){return d(w)}function d(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),f):w===47?(e.consume(w),a=!0,m):w===63?(e.consume(w),i=3,r.interrupt?t:k):$e(w)?(e.consume(w),o=String.fromCharCode(w),b):n(w)}function f(w){return w===45?(e.consume(w),i=2,p):w===91?(e.consume(w),i=5,s=0,g):$e(w)?(e.consume(w),i=4,r.interrupt?t:k):n(w)}function p(w){return w===45?(e.consume(w),r.interrupt?t:k):n(w)}function g(w){const ye="CDATA[";return w===ye.charCodeAt(s++)?(e.consume(w),s===ye.length?r.interrupt?t:P:g):n(w)}function m(w){return $e(w)?(e.consume(w),o=String.fromCharCode(w),b):n(w)}function b(w){if(w===null||w===47||w===62||xe(w)){const ye=w===47,je=o.toLowerCase();return!ye&&!a&&io.includes(je)?(i=1,r.interrupt?t(w):P(w)):Pc.includes(o.toLowerCase())?(i=6,ye?(e.consume(w),h):r.interrupt?t(w):P(w)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):a?v(w):x(w))}return w===45||Fe(w)?(e.consume(w),o+=String.fromCharCode(w),b):n(w)}function h(w){return w===62?(e.consume(w),r.interrupt?t:P):n(w)}function v(w){return ce(w)?(e.consume(w),v):S(w)}function x(w){return w===47?(e.consume(w),S):w===58||w===95||$e(w)?(e.consume(w),C):ce(w)?(e.consume(w),x):S(w)}function C(w){return w===45||w===46||w===58||w===95||Fe(w)?(e.consume(w),C):I(w)}function I(w){return w===61?(e.consume(w),_):ce(w)?(e.consume(w),I):x(w)}function _(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),c=w,z):ce(w)?(e.consume(w),_):G(w)}function z(w){return w===c?(e.consume(w),c=null,W):w===null||V(w)?n(w):(e.consume(w),z)}function G(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||xe(w)?I(w):(e.consume(w),G)}function W(w){return w===47||w===62||ce(w)?x(w):n(w)}function S(w){return w===62?(e.consume(w),R):n(w)}function R(w){return w===null||V(w)?P(w):ce(w)?(e.consume(w),R):n(w)}function P(w){return w===45&&i===2?(e.consume(w),ne):w===60&&i===1?(e.consume(w),he):w===62&&i===4?(e.consume(w),ue):w===63&&i===3?(e.consume(w),k):w===93&&i===5?(e.consume(w),be):V(w)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Fc,ae,ee)(w)):w===null||V(w)?(e.exit("htmlFlowData"),ee(w)):(e.consume(w),P)}function ee(w){return e.check(zc,Y,ae)(w)}function Y(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),H}function H(w){return w===null||V(w)?ee(w):(e.enter("htmlFlowData"),P(w))}function ne(w){return w===45?(e.consume(w),k):P(w)}function he(w){return w===47?(e.consume(w),o="",X):P(w)}function X(w){if(w===62){const ye=o.toLowerCase();return io.includes(ye)?(e.consume(w),ue):P(w)}return $e(w)&&o.length<8?(e.consume(w),o+=String.fromCharCode(w),X):P(w)}function be(w){return w===93?(e.consume(w),k):P(w)}function k(w){return w===62?(e.consume(w),ue):w===45&&i===2?(e.consume(w),k):P(w)}function ue(w){return w===null||V(w)?(e.exit("htmlFlowData"),ae(w)):(e.consume(w),ue)}function ae(w){return e.exit("htmlFlow"),t(w)}}function $c(e,t,n){const r=this;return i;function i(o){return V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function Hc(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(fn,t,n)}}const Gc={name:"htmlText",tokenize:Wc};function Wc(e,t,n){const r=this;let i,a,o;return s;function s(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),c}function c(k){return k===33?(e.consume(k),l):k===47?(e.consume(k),I):k===63?(e.consume(k),x):$e(k)?(e.consume(k),G):n(k)}function l(k){return k===45?(e.consume(k),d):k===91?(e.consume(k),a=0,g):$e(k)?(e.consume(k),v):n(k)}function d(k){return k===45?(e.consume(k),p):n(k)}function u(k){return k===null?n(k):k===45?(e.consume(k),f):V(k)?(o=u,he(k)):(e.consume(k),u)}function f(k){return k===45?(e.consume(k),p):u(k)}function p(k){return k===62?ne(k):k===45?f(k):u(k)}function g(k){const ue="CDATA[";return k===ue.charCodeAt(a++)?(e.consume(k),a===ue.length?m:g):n(k)}function m(k){return k===null?n(k):k===93?(e.consume(k),b):V(k)?(o=m,he(k)):(e.consume(k),m)}function b(k){return k===93?(e.consume(k),h):m(k)}function h(k){return k===62?ne(k):k===93?(e.consume(k),h):m(k)}function v(k){return k===null||k===62?ne(k):V(k)?(o=v,he(k)):(e.consume(k),v)}function x(k){return k===null?n(k):k===63?(e.consume(k),C):V(k)?(o=x,he(k)):(e.consume(k),x)}function C(k){return k===62?ne(k):x(k)}function I(k){return $e(k)?(e.consume(k),_):n(k)}function _(k){return k===45||Fe(k)?(e.consume(k),_):z(k)}function z(k){return V(k)?(o=z,he(k)):ce(k)?(e.consume(k),z):ne(k)}function G(k){return k===45||Fe(k)?(e.consume(k),G):k===47||k===62||xe(k)?W(k):n(k)}function W(k){return k===47?(e.consume(k),ne):k===58||k===95||$e(k)?(e.consume(k),S):V(k)?(o=W,he(k)):ce(k)?(e.consume(k),W):ne(k)}function S(k){return k===45||k===46||k===58||k===95||Fe(k)?(e.consume(k),S):R(k)}function R(k){return k===61?(e.consume(k),P):V(k)?(o=R,he(k)):ce(k)?(e.consume(k),R):W(k)}function P(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,ee):V(k)?(o=P,he(k)):ce(k)?(e.consume(k),P):(e.consume(k),Y)}function ee(k){return k===i?(e.consume(k),i=void 0,H):k===null?n(k):V(k)?(o=ee,he(k)):(e.consume(k),ee)}function Y(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||xe(k)?W(k):(e.consume(k),Y)}function H(k){return k===47||k===62||xe(k)?W(k):n(k)}function ne(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function he(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),X}function X(k){return ce(k)?pe(e,be,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):be(k)}function be(k){return e.enter("htmlTextData"),o(k)}}const Nr={name:"labelEnd",resolveAll:Zc,resolveTo:Xc,tokenize:jc},Kc={tokenize:Qc},Vc={tokenize:Jc},Yc={tokenize:eu};function Zc(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&nt(e,0,e.length,n),e}function Xc(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",c,t],["enter",l,t]],s=it(s,e.slice(a+1,a+r+3)),s=it(s,[["enter",d,t]]),s=it(s,In(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=it(s,[["exit",d,t],e[o-2],e[o-1],["exit",l,t]]),s=it(s,e.slice(o+1)),s=it(s,[["exit",c,t]]),nt(e,a,e.length,s),e}function jc(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(f){return a?a._inactive?u(f):(o=r.parser.defined.includes(dt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),c):n(f)}function c(f){return f===40?e.attempt(Kc,d,o?d:u)(f):f===91?e.attempt(Vc,d,o?l:u)(f):o?d(f):u(f)}function l(f){return e.attempt(Yc,d,u)(f)}function d(f){return t(f)}function u(f){return a._balanced=!0,n(f)}}function Qc(e,t,n){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return xe(u)?hn(e,a)(u):a(u)}function a(u){return u===41?d(u):to(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return xe(u)?hn(e,c)(u):d(u)}function s(u){return n(u)}function c(u){return u===34||u===39||u===40?ro(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):d(u)}function l(u){return xe(u)?hn(e,d)(u):d(u)}function d(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}function Jc(e,t,n){const r=this;return i;function i(s){return no.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(dt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function eu(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const tu={name:"labelStartImage",resolveAll:Nr.resolveAll,tokenize:nu};function nu(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const ru={name:"labelStartLink",resolveAll:Nr.resolveAll,tokenize:iu};function iu(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Cr={name:"lineEnding",tokenize:ou};function ou(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const On={name:"thematicBreak",tokenize:au};function au(e,t,n){let r=0,i;return a;function a(l){return e.enter("thematicBreak"),o(l)}function o(l){return i=l,s(l)}function s(l){return l===i?(e.enter("thematicBreakSequence"),c(l)):r>=3&&(l===null||V(l))?(e.exit("thematicBreak"),t(l)):n(l)}function c(l){return l===i?(e.consume(l),r++,c):(e.exit("thematicBreakSequence"),ce(l)?pe(e,s,"whitespace")(l):s(l))}}const Xe={continuation:{tokenize:uu},exit:pu,name:"list",tokenize:cu},su={partial:!0,tokenize:fu},lu={partial:!0,tokenize:du};function cu(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:_r(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(On,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return n(p)}function c(p){return _r(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(fn,r.interrupt?n:d,e.attempt(su,f,u))}function d(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function u(p){return ce(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function uu(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(fn,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pe(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!ce(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(lu,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,pe(e,e.attempt(Xe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function du(e,t,n){const r=this;return pe(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function pu(e){e.exit(this.containerState.type)}function fu(e,t,n){const r=this;return pe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!ce(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const oo={name:"setextUnderline",resolveTo:gu,tokenize:hu};function gu(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function hu(e,t,n){const r=this;let i;return a;function a(l){let d=r.events.length,u;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){u=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),i=l,o(l)):n(l)}function o(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===i?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),ce(l)?pe(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||V(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const mu={tokenize:bu};function bu(e){const t=this,n=e.attempt(fn,r,e.attempt(this.parser.constructs.flowInitial,i,pe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(vc,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ku={resolveAll:so()},yu=ao("string"),wu=ao("text");function ao(e){return{resolveAll:so(e==="text"?Eu:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(d){return l(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return l(d)?(n.exit("data"),a(d)):(n.consume(d),c)}function l(d){if(d===null)return!0;const u=i[d];let f=-1;if(u)for(;++f<u.length;){const p=u[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function so(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function Eu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,s=0,c;for(;a--;){const l=i[a];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)c=!0,s++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const l={type:n===e.length||c||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const vu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Nc},disable:{null:[]},document:{42:Xe,43:Xe,45:Xe,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,62:Zi},flow:{35:Lc,42:On,45:[oo,On],60:Bc,61:oo,95:On,96:Ji,126:Ji},flowInitial:{[-2]:Tr,[-1]:Tr,32:Tr},insideSpan:{null:[Sr,ku]},string:{38:ji,92:Xi},text:{[-5]:Cr,[-4]:Cr,[-3]:Cr,33:tu,38:ji,42:Sr,60:[rc,Gc],91:ru,92:[Oc,Xi],93:Nr,95:Sr,96:mc}},Symbol.toStringTag,{value:"Module"}));function xu(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const c={attempt:z(I),check:z(_),consume:v,enter:x,exit:C,interrupt:z(_,{interrupt:!0})},l={code:null,containerState:{},defineSkip:m,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:u};let d=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function u(R){return o=it(o,R),b(),o[o.length-1]!==null?[]:(G(t,0),l.events=In(a,l.events,l),l.events)}function f(R,P){return Su(p(R),P)}function p(R){return _u(o,R)}function g(){const{_bufferIndex:R,_index:P,line:ee,column:Y,offset:H}=r;return{_bufferIndex:R,_index:P,line:ee,column:Y,offset:H}}function m(R){i[R.line]=R.column,S()}function b(){let R;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<P.length;)h(P.charCodeAt(r._bufferIndex));else h(P)}}function h(R){d=d(R)}function v(R){V(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,S()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=R}function x(R,P){const ee=P||{};return ee.type=R,ee.start=g(),l.events.push(["enter",ee,l]),s.push(ee),ee}function C(R){const P=s.pop();return P.end=g(),l.events.push(["exit",P,l]),P}function I(R,P){G(R,P.from)}function _(R,P){P.restore()}function z(R,P){return ee;function ee(Y,H,ne){let he,X,be,k;return Array.isArray(Y)?ae(Y):"tokenize"in Y?ae([Y]):ue(Y);function ue(Ne){return at;function at(_e){const st=_e!==null&&Ne[_e],Oe=_e!==null&&Ne.null,Et=[...Array.isArray(st)?st:st?[st]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return ae(Et)(_e)}}function ae(Ne){return he=Ne,X=0,Ne.length===0?ne:w(Ne[X])}function w(Ne){return at;function at(_e){return k=W(),be=Ne,Ne.partial||(l.currentConstruct=Ne),Ne.name&&l.parser.constructs.disable.null.includes(Ne.name)?je():Ne.tokenize.call(P?Object.assign(Object.create(l),P):l,c,ye,je)(_e)}}function ye(Ne){return R(be,k),H}function je(Ne){return k.restore(),++X<he.length?w(he[X]):ne}}}function G(R,P){R.resolveAll&&!a.includes(R)&&a.push(R),R.resolve&&nt(l.events,P,l.events.length-P,R.resolve(l.events.slice(P),l)),R.resolveTo&&(l.events=R.resolveTo(l.events,l))}function W(){const R=g(),P=l.previous,ee=l.currentConstruct,Y=l.events.length,H=Array.from(s);return{from:Y,restore:ne};function ne(){r=R,l.previous=P,l.currentConstruct=ee,l.events.length=Y,s=H,S()}}function S(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function _u(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Su(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
1
+ (function(ut,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],E):(ut=typeof globalThis<"u"?globalThis:ut||self,E(ut.AkilioWidget={},ut.ReactJSXRuntime,ut.React,ut.ReactDOM))})(this,(function(ut,E,z,ns){"use strict";"use client";var om=globalThis.process||{env:{NODE_ENV:"production"}},am=globalThis;function si(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=si(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Lt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=si(e))&&(r&&(r+=" "),r+=t);return r}function rs({className:e,primaryColor:t="#0F766E",style:n}){return E.jsxs("svg",{className:e,style:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 320",role:"img","aria-labelledby":"title desc",children:[E.jsxs("g",{fill:"none",stroke:t,strokeWidth:"34",strokeLinecap:"round",strokeLinejoin:"round",children:[E.jsx("path",{d:"M60 244 L132 88 Q142 66 160 66 Q178 66 188 88 L260 244"}),E.jsx("path",{d:"M60 244 H108"})]}),E.jsx("circle",{cx:"160",cy:"226",r:"18",fill:t})]})}function is({className:e,primaryColor:t="#0F766E",secondaryColor:n="#0F1B3D"}){return E.jsx("svg",{className:e,viewBox:"0 0 1000 320",xmlns:"http://www.w3.org/2000/svg",children:E.jsxs("g",{id:"Group",children:[E.jsx("path",{id:"Path",fill:"none",stroke:t,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 90 235 L 175 78 C 182.333333 64.666667 193.333333 58 208 58 C 222.666667 58 233.666667 64.666667 241 78 L 326 235"}),E.jsx("path",{id:"path1",fill:"none",stroke:t,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 91 235 L 142 235"}),E.jsx("path",{id:"path2",fill:t,stroke:"none",d:"M 203 223 C 203 232.38884 195.38884 240 186 240 C 176.61116 240 169 232.38884 169 223 C 169 213.61116 176.61116 206 186 206 C 195.38884 206 203 213.61116 203 223 Z"}),E.jsx("path",{id:"path3",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 62 L 365 238"}),E.jsx("path",{id:"path4",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 168 L 458 84"}),E.jsx("path",{id:"path5",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 398 139 L 468 238"}),E.jsx("path",{id:"path6",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 520 118 L 520 238"}),E.jsx("path",{id:"path7",fill:t,stroke:"none",d:"M 536 72 C 536 80.836548 528.836548 88 520 88 C 511.163452 88 504 80.836548 504 72 C 504 63.163452 511.163452 56 520 56 C 528.836548 56 536 63.163452 536 72 Z"}),E.jsx("path",{id:"path8",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 598 62 L 598 205 C 598 227 608 238 628 238 L 650 238"}),E.jsx("path",{id:"path9",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 710 118 L 710 238"}),E.jsx("path",{id:"path10",fill:t,stroke:"none",d:"M 726 72 C 726 80.836548 718.836548 88 710 88 C 701.163452 88 694 80.836548 694 72 C 694 63.163452 701.163452 56 710 56 C 718.836548 56 726 63.163452 726 72 Z"}),E.jsx("path",{id:"path11",fill:"none",stroke:t,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 921 178 C 921 214.45079 891.450806 244 855 244 C 818.549194 244 789 214.45079 789 178 C 789 141.54921 818.549194 112 855 112 C 891.450806 112 921 141.54921 921 178 Z"})]})})}function ir({variant:e="mark",className:t}){return e==="wordmark"?E.jsx(is,{className:t}):E.jsx(rs,{className:t})}function Nn(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"M10 2.5 11.3 6l3.5 1.3-3.5 1.2L10 12l-1.3-3.5-3.5-1.2L8.7 6 10 2.5ZM15.5 11.5l.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7.7-1.8ZM4.8 11.8l.7 1.7 1.7.7-1.7.6-.7 1.8-.7-1.8-1.7-.6 1.7-.7.7-1.7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function os(e){return E.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:[E.jsx("path",{d:"M17.2 2.8 8.8 11.2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),E.jsx("path",{d:"m17.2 2.8-5.4 15-3-6.6-6.6-3 15-5.4Z",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]})}function as(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"m5.5 5.5 9 9M14.5 5.5l-9 9",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})})}function ss(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"M7.5 3.8h5M4.5 6.2h11M6 6.2l.7 10h6.6l.7-10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function ls(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"M6.8 8.5v8M6.8 8.5H4.2c-.8 0-1.4.6-1.4 1.4v5.2c0 .8.6 1.4 1.4 1.4h2.6M6.8 8.5l3.7-5.2c.7-1 2.2-.5 2.2.7v3.1h2.6c1.1 0 2 .9 1.8 2l-.8 5.6c-.1 1-1 1.8-2 1.8H6.8",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function cs(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"M13.2 11.5v-8M13.2 11.5h2.6c.8 0 1.4-.6 1.4-1.4V4.9c0-.8-.6-1.4-1.4-1.4h-2.6M13.2 11.5l-3.7 5.2c-.7 1-2.2.5-2.2-.7v-3.1H4.7c-1.1 0-2-.9-1.8-2l.8-5.6c.1-1 1-1.8 2-1.8h7.5",stroke:"currentColor",strokeWidth:"1.45",strokeLinecap:"round",strokeLinejoin:"round"})})}function us(e){return E.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:[E.jsx("circle",{cx:"10",cy:"10",r:"3.2",stroke:"currentColor",strokeWidth:"1.5"}),E.jsx("path",{d:"M10 2.2v1.5M10 16.3v1.5M2.2 10h1.5M16.3 10h1.5M4.5 4.5l1.1 1.1M14.4 14.4l1.1 1.1M15.5 4.5l-1.1 1.1M5.6 14.4l-1.1 1.1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function ds(e){return E.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:E.jsx("path",{d:"M16.7 12.3A6.8 6.8 0 0 1 7.7 3.3a6.8 6.8 0 1 0 9 9Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function sm(){}function lm(){}function ps(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const fs=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gs=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hs={};function li(e,t){return(hs.jsx?gs:fs).test(e)}const ms=/[ \t\n\f\r]/g;function bs(e){return typeof e=="object"?e.type==="text"?ci(e.value):!1:ci(e)}function ci(e){return e.replace(ms,"")===""}class sn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}sn.prototype.normal={},sn.prototype.property={},sn.prototype.space=void 0;function ui(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new sn(n,r,t)}function or(e){return e.toLowerCase()}class Ze{constructor(t,n){this.attribute=n,this.property=t}}Ze.prototype.attribute="",Ze.prototype.booleanish=!1,Ze.prototype.boolean=!1,Ze.prototype.commaOrSpaceSeparated=!1,Ze.prototype.commaSeparated=!1,Ze.prototype.defined=!1,Ze.prototype.mustUseProperty=!1,Ze.prototype.number=!1,Ze.prototype.overloadedBoolean=!1,Ze.prototype.property="",Ze.prototype.spaceSeparated=!1,Ze.prototype.space=void 0;let ks=0;const J=qt(),Re=qt(),ar=qt(),I=qt(),xe=qt(),Ut=qt(),et=qt();function qt(){return 2**++ks}const sr=Object.freeze(Object.defineProperty({__proto__:null,boolean:J,booleanish:Re,commaOrSpaceSeparated:et,commaSeparated:Ut,number:I,overloadedBoolean:ar,spaceSeparated:xe},Symbol.toStringTag,{value:"Module"})),lr=Object.keys(sr);class cr extends Ze{constructor(t,n,r,i){let a=-1;if(super(t,n),di(this,"space",i),typeof r=="number")for(;++a<lr.length;){const o=lr[a];di(this,lr[a],(r&sr[o])===sr[o])}}}cr.prototype.defined=!0;function di(e,t,n){n&&(e[t]=n)}function Yt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new cr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[or(r)]=r,n[or(a.attribute)]=r}return new sn(t,n,e.space)}const pi=Yt({properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:xe,ariaCurrent:null,ariaDescribedBy:xe,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:xe,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:xe,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xe,ariaLevel:I,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:xe,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:xe,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:Re,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function fi(e,t){return t in e?e[t]:t}function gi(e,t){return fi(e,t.toLowerCase())}const ys=Yt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ut,acceptCharset:xe,accessKey:xe,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alpha:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:xe,autoFocus:J,autoPlay:J,blocking:xe,capture:null,charSet:null,checked:J,cite:null,className:xe,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:Re,controls:J,controlsList:xe,coords:I|Ut,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:ar,draggable:Re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:xe,height:I,hidden:ar,high:I,href:null,hrefLang:null,htmlFor:xe,httpEquiv:xe,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:xe,itemRef:xe,itemScope:J,itemType:xe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:J,optimum:I,pattern:null,ping:xe,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:xe,required:J,reversed:J,rows:I,rowSpan:I,sandbox:xe,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootCustomElementRegistry:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shadowRootSerializable:J,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:Re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:Re,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xe,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:Re,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:J,disablePictureInPicture:J,disableRemotePlayback:J,exportParts:Ut,part:xe,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:gi}),ws=Yt({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:et,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:xe,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:Ut,g2:Ut,glyphName:Ut,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fi}),hi=Yt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),mi=Yt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gi}),bi=Yt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Es={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},xs=/[A-Z]/g,ki=/-[a-z]/g,_s=/^data[-\w.:]+$/i;function vs(e,t){const n=or(t);let r=t,i=Ze;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_s.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ki,Ns);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ki.test(a)){let o=a.replace(xs,Ss);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=cr}return new i(r,t)}function Ss(e){return"-"+e.toLowerCase()}function Ns(e){return e.charAt(1).toUpperCase()}const Ts=ui([pi,ys,hi,mi,bi],"html"),ur=ui([pi,ws,hi,mi,bi],"svg");function As(e){return e.join(" ").trim()}function dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Cs(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var yi=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Is=/\n/g,Os=/^\s*/,Ms=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Rs=/^:\s*/,Ls=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ds=/^[;\s]*/,Ps=/^\s+|\s+$/g,Bs=`
2
+ `,wi="/",Ei="*",$t="",Fs="comment",zs="declaration";function Us(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var h=g.match(Is);h&&(n+=h.length);var w=g.lastIndexOf(Bs);r=~w?g.length-w:r+g.length}function a(){var g={line:n,column:r};return function(h){return h.position=new o(g),l(),h}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var h=new Error(t.source+":"+n+":"+r+": "+g);if(h.reason=g,h.filename=t.source,h.line=n,h.column=r,h.source=e,!t.silent)throw h}function c(g){var h=g.exec(e);if(h){var w=h[0];return i(w),e=e.slice(w.length),h}}function l(){c(Os)}function d(g){var h;for(g=g||[];h=u();)h!==!1&&g.push(h);return g}function u(){var g=a();if(!(wi!=e.charAt(0)||Ei!=e.charAt(1))){for(var h=2;$t!=e.charAt(h)&&(Ei!=e.charAt(h)||wi!=e.charAt(h+1));)++h;if(h+=2,$t===e.charAt(h-1))return s("End of comment missing");var w=e.slice(2,h-2);return r+=2,i(w),e=e.slice(h),r+=2,g({type:Fs,comment:w})}}function f(){var g=a(),h=c(Ms);if(h){if(u(),!c(Rs))return s("property missing ':'");var w=c(Ls),b=g({type:zs,property:xi(h[0].replace(yi,$t)),value:w?xi(w[0].replace(yi,$t)):$t});return c(Ds),b}}function p(){var g=[];d(g);for(var h;h=f();)h!==!1&&(g.push(h),d(g));return g}return l(),p()}function xi(e){return e?e.replace(Ps,$t):$t}function qs(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Us(e),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:o,value:s}=a;i?t(o,s,a):s&&(n=n||{},n[o]=s)}),n}const $s=Cs(Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})));var ln={},_i;function Hs(){if(_i)return ln;_i=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},o=function(l,d){return d.toUpperCase()},s=function(l,d){return"".concat(d,"-")},c=function(l,d){return d===void 0&&(d={}),a(l)?l:(l=l.toLowerCase(),d.reactCompat?l=l.replace(i,s):l=l.replace(r,s),l.replace(t,o))};return ln.camelCase=c,ln}var cn,vi;function Gs(){if(vi)return cn;vi=1;var e=cn&&cn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e($s),n=Hs();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,c){s&&c&&(o[(0,n.camelCase)(s,a)]=c)}),o}return r.default=r,cn=r,cn}var Ws=Gs();const Ks=dr(Ws),Si=Ni("end"),pr=Ni("start");function Ni(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Vs(e){const t=pr(e),n=Si(e);if(t&&n)return{start:t,end:n}}function un(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ti(e.position):"start"in e||"end"in e?Ti(e):"line"in e||"column"in e?fr(e):""}function fr(e){return Ai(e&&e.line)+":"+Ai(e&&e.column)}function Ti(e){return fr(e&&e.start)+"-"+fr(e&&e.end)}function Ai(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?a.ruleId=r:(a.source=r.slice(0,c),a.ruleId=r.slice(c+1))}if(!a.place&&a.ancestors&&a.ancestors){const c=a.ancestors[a.ancestors.length-1];c&&(a.place=c.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=un(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Be.prototype.file="",Be.prototype.name="",Be.prototype.reason="",Be.prototype.message="",Be.prototype.stack="",Be.prototype.column=void 0,Be.prototype.line=void 0,Be.prototype.ancestors=void 0,Be.prototype.cause=void 0,Be.prototype.fatal=void 0,Be.prototype.place=void 0,Be.prototype.ruleId=void 0,Be.prototype.source=void 0;const gr={}.hasOwnProperty,Ys=new Map,Zs=/[A-Z]/g,Xs=new Set(["table","tbody","thead","tfoot","tr"]),Qs=new Set(["td","th"]),Ci="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function js(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=al(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ol(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ur:Ts,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Ii(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Ii(e,t,n){if(t.type==="element")return Js(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return el(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return nl(e,t,n);if(t.type==="mdxjsEsm")return tl(e,t);if(t.type==="root")return rl(e,t,n);if(t.type==="text")return il(e,t)}function Js(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ur,e.schema=i),e.ancestors.push(t);const a=Mi(e,t.tagName,!1),o=sl(e,t);let s=mr(e,t);return Xs.has(t.tagName)&&(s=s.filter(function(c){return typeof c=="string"?!bs(c):!0})),Oi(e,o,a,t),hr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function el(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}dn(e,t.position)}function tl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);dn(e,t.position)}function nl(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ur,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Mi(e,t.name,!0),o=ll(e,t),s=mr(e,t);return Oi(e,o,a,t),hr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function rl(e,t,n){const r={};return hr(r,mr(e,t)),e.create(t,e.Fragment,r,n)}function il(e,t){return t.value}function Oi(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function hr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ol(e,t,n){return r;function r(i,a,o,s){const l=Array.isArray(o.children)?n:t;return s?l(a,o,s):l(a,o)}}function al(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),c=pr(r);return t(i,a,o,s,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function sl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&gr.call(t.properties,i)){const a=cl(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&Qs.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function ll(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else dn(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else dn(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function mr(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Ys;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const c=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(c){const l=i.get(c)||0;o=c+"-"+l,i.set(c,l+1)}}const s=Ii(e,a,o);s!==void 0&&n.push(s)}return n}function cl(e,t,n){const r=vs(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ps(n):As(n)),r.property==="style"){let i=typeof n=="object"?n:ul(e,String(n));return e.stylePropertyNameCase==="css"&&(i=dl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Es[r.property]||r.property:r.attribute,n]}}function ul(e,t){try{return Ks(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Be("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Ci+"#cannot-parse-style-attribute",i}}function Mi(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,o;for(;++a<i.length;){const s=li(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(a&&s.type==="Literal"),optional:!1}:s}r=o}else r=li(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return gr.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);dn(e)}function dn(e,t){const n=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ci+"#cannot-handle-mdx-estrees-without-createevaluater",n}function dl(e){const t={};let n;for(n in e)gr.call(e,n)&&(t[pl(n)]=e[n]);return t}function pl(e){let t=e.replace(Zs,fl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function fl(e){return"-"+e.toLowerCase()}const br={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},gl={};function kr(e,t){const n=gl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ri(e,r,i)}function Ri(e,t,n){if(hl(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Li(e.children,t,n)}return Array.isArray(e)?Li(e,t,n):""}function Li(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ri(e[i],t,n);return r.join("")}function hl(e){return!!(e&&typeof e=="object")}const Di={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
3
+ `,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},ml={}.hasOwnProperty;function yr(e){return ml.call(Di,e)?Di[e]:!1}function tt(e,t,n,r){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function it(e,t){return e.length>0?(tt(e,e.length,0,t),e):t}const Pi={}.hasOwnProperty;function Bi(e){const t={};let n=-1;for(;++n<e.length;)bl(t,e[n]);return t}function bl(e,t){let n;for(n in t){const i=(Pi.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Pi.call(i,o)||(i[o]=[]);const s=a[o];kl(i[o],Array.isArray(s)?s:s?[s]:[])}}}function kl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);tt(e,0,0,r)}function Fi(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function dt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $e=Dt(/[A-Za-z]/),Fe=Dt(/[\dA-Za-z]/),yl=Dt(/[#-'*+\--9=?A-Z^-~]/);function Tn(e){return e!==null&&(e<32||e===127)}const wr=Dt(/\d/),wl=Dt(/[\dA-Fa-f]/),El=Dt(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function _e(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const An=Dt(new RegExp("\\p{P}|\\p{S}","u")),Ht=Dt(/\s/);function Dt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Zt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&Fe(e.charCodeAt(n+1))&&Fe(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function pe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(c){return ce(c)?(e.enter(n),s(c)):t(c)}function s(c){return ce(c)&&a++<i?(e.consume(c),s):(e.exit(n),t(c))}}const xl={tokenize:_l};function _l(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),pe(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return V(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const vl={tokenize:Sl},zi={tokenize:Nl};function Sl(e){const t=this,n=[];let r=0,i,a,o;return s;function s(v){if(r<n.length){const O=n[r];return t.containerState=O[1],e.attempt(O[0].continuation,c,l)(v)}return l(v)}function c(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&N();const O=t.events.length;let R=O,x;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){x=t.events[R][1].end;break}b(r);let H=O;for(;H<t.events.length;)t.events[H][1].end={...x},H++;return tt(t.events,R+1,0,t.events.slice(O)),t.events.length=H,l(v)}return s(v)}function l(v){if(r===n.length){if(!i)return f(v);if(i.currentConstruct&&i.currentConstruct.concrete)return g(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(zi,d,u)(v)}function d(v){return i&&N(),b(r),f(v)}function u(v){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(v)}function f(v){return t.containerState={},e.attempt(zi,p,g)(v)}function p(v){return r++,n.push([t.currentConstruct,t.containerState]),f(v)}function g(v){if(v===null){i&&N(),b(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),h(v)}function h(v){if(v===null){w(e.exit("chunkFlow"),!0),b(0),e.consume(v);return}return V(v)?(e.consume(v),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(v),h)}function w(v,O){const R=t.sliceStream(v);if(O&&R.push(null),v.previous=a,a&&(a.next=v),a=v,i.defineSkip(v.start),i.write(R),t.parser.lazy[v.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;const H=t.events.length;let K=H,G,_;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(G){_=t.events[K][1].end;break}G=!0}for(b(r),x=H;x<t.events.length;)t.events[x][1].end={..._},x++;tt(t.events,K+1,0,t.events.slice(H)),t.events.length=x}}function b(v){let O=n.length;for(;O-- >v;){const R=n[O];t.containerState=R[1],R[0].exit.call(t,e)}n.length=v}function N(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Nl(e,t,n){return pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xt(e){if(e===null||_e(e)||Ht(e))return 1;if(An(e))return 2}function Cn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Er={name:"attention",resolveAll:Tl,tokenize:Al};function Tl(e,t){let n=-1,r,i,a,o,s,c,l,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const u={...e[r][1].end},f={...e[n][1].start};Ui(u,-c),Ui(f,c),o={type:c>1?"strongSequence":"emphasisSequence",start:u,end:{...e[r][1].end}},s={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},a={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=it(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=it(l,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=it(l,Cn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=it(l,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,l=it(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,tt(e,r-1,n-r+3,l),n=r+l.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Al(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Xt(r);let a;return o;function o(c){return a=c,e.enter("attentionSequence"),s(c)}function s(c){if(c===a)return e.consume(c),s;const l=e.exit("attentionSequence"),d=Xt(c),u=!d||d===2&&i||n.includes(c),f=!i||i===2&&d||n.includes(r);return l._open=!!(a===42?u:u&&(i||!f)),l._close=!!(a===42?f:f&&(d||!u)),t(c)}}function Ui(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Cl={name:"autolink",tokenize:Il};function Il(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return $e(p)?(e.consume(p),o):p===64?n(p):l(p)}function o(p){return p===43||p===45||p===46||Fe(p)?(r=1,s(p)):l(p)}function s(p){return p===58?(e.consume(p),r=0,c):(p===43||p===45||p===46||Fe(p))&&r++<32?(e.consume(p),s):(r=0,l(p))}function c(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Tn(p)?n(p):(e.consume(p),c)}function l(p){return p===64?(e.consume(p),d):yl(p)?(e.consume(p),l):n(p)}function d(p){return Fe(p)?u(p):n(p)}function u(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Fe(p))&&r++<63){const g=p===45?f:u;return e.consume(p),g}return n(p)}}const pn={partial:!0,tokenize:Ol};function Ol(e,t,n){return r;function r(a){return ce(a)?pe(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||V(a)?t(a):n(a)}}const qi={continuation:{tokenize:Rl},exit:Ll,name:"blockQuote",tokenize:Ml};function Ml(e,t,n){const r=this;return i;function i(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return n(o)}function a(o){return ce(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Rl(e,t,n){const r=this;return i;function i(o){return ce(o)?pe(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(qi,t,n)(o)}}function Ll(e){e.exit("blockQuote")}const $i={name:"characterEscape",tokenize:Dl};function Dl(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return El(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Hi={name:"characterReference",tokenize:Pl};function Pl(e,t,n){const r=this;let i=0,a,o;return s;function s(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),c}function c(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,o=Fe,d(u))}function l(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=wl,d):(e.enter("characterReferenceValue"),a=7,o=wr,d(u))}function d(u){if(u===59&&i){const f=e.exit("characterReferenceValue");return o===Fe&&!yr(r.sliceSerialize(f))?n(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(u)&&i++<a?(e.consume(u),d):n(u)}}const Gi={partial:!0,tokenize:Fl},Wi={concrete:!0,name:"codeFenced",tokenize:Bl};function Bl(e,t,n){const r=this,i={partial:!0,tokenize:R};let a=0,o=0,s;return c;function c(x){return l(x)}function l(x){const H=r.events[r.events.length-1];return a=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,s=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(x)}function d(x){return x===s?(o++,e.consume(x),d):o<3?n(x):(e.exit("codeFencedFenceSequence"),ce(x)?pe(e,u,"whitespace")(x):u(x))}function u(x){return x===null||V(x)?(e.exit("codeFencedFence"),r.interrupt?t(x):e.check(Gi,h,O)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===null||V(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(x)):ce(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pe(e,p,"whitespace")(x)):x===96&&x===s?n(x):(e.consume(x),f)}function p(x){return x===null||V(x)?u(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||V(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(x)):x===96&&x===s?n(x):(e.consume(x),g)}function h(x){return e.attempt(i,O,w)(x)}function w(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),b}function b(x){return a>0&&ce(x)?pe(e,N,"linePrefix",a+1)(x):N(x)}function N(x){return x===null||V(x)?e.check(Gi,h,O)(x):(e.enter("codeFlowValue"),v(x))}function v(x){return x===null||V(x)?(e.exit("codeFlowValue"),N(x)):(e.consume(x),v)}function O(x){return e.exit("codeFenced"),t(x)}function R(x,H,K){let G=0;return _;function _($){return x.enter("lineEnding"),x.consume($),x.exit("lineEnding"),L}function L($){return x.enter("codeFencedFence"),ce($)?pe(x,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):P($)}function P($){return $===s?(x.enter("codeFencedFenceSequence"),ee($)):K($)}function ee($){return $===s?(G++,x.consume($),ee):G>=o?(x.exit("codeFencedFenceSequence"),ce($)?pe(x,Y,"whitespace")($):Y($)):K($)}function Y($){return $===null||V($)?(x.exit("codeFencedFence"),H($)):K($)}}}function Fl(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const xr={name:"codeIndented",tokenize:Ul},zl={partial:!0,tokenize:ql};function Ul(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),pe(e,a,"linePrefix",5)(l)}function a(l){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(l):n(l)}function o(l){return l===null?c(l):V(l)?e.attempt(zl,o,c)(l):(e.enter("codeFlowValue"),s(l))}function s(l){return l===null||V(l)?(e.exit("codeFlowValue"),o(l)):(e.consume(l),s)}function c(l){return e.exit("codeIndented"),t(l)}}function ql(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):pe(e,a,"linePrefix",5)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):V(o)?i(o):n(o)}}const $l={name:"codeText",previous:Gl,resolve:Hl,tokenize:Wl};function Hl(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Gl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Wl(e,t,n){let r=0,i,a;return o;function o(u){return e.enter("codeText"),e.enter("codeTextSequence"),s(u)}function s(u){return u===96?(e.consume(u),r++,s):(e.exit("codeTextSequence"),c(u))}function c(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),c):u===96?(a=e.enter("codeTextSequence"),i=0,d(u)):V(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(u))}function l(u){return u===null||u===32||u===96||V(u)?(e.exit("codeTextData"),c(u)):(e.consume(u),l)}function d(u){return u===96?(e.consume(u),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(a.type="codeTextData",l(u))}}class Kl{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&fn(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),fn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),fn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);fn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);fn(this.left,n.reverse())}}}function fn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ki(e){const t={};let n=-1,r,i,a,o,s,c,l;const d=new Kl(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type==="lineEndingBlank"&&(a+=2),a<c.length&&c[a][1].type==="content"))for(;++a<c.length&&c[a][1].type!=="content";)c[a][1].type==="chunkText"&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Vl(d,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=d.get(a),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},s=d.slice(i,n),s.unshift(r),d.splice(i,n-i+1,s))}}return tt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!l}function Vl(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,c=[],l={};let d,u,f=-1,p=n,g=0,h=0;const w=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),u&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,w.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):w.pop(),f=w.length;f--;){const b=s.slice(w[f],w[f+1]),N=a.pop();c.push([N,N+b.length-1]),e.splice(N,2,b)}for(c.reverse(),f=-1;++f<c.length;)l[g+c[f][0]]=g+c[f][1],g+=c[f][1]-c[f][0]-1;return l}const Yl={resolve:Xl,tokenize:Ql},Zl={partial:!0,tokenize:jl};function Xl(e){return Ki(e),e}function Ql(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):V(s)?e.check(Zl,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function jl(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),pe(e,a,"linePrefix")}function a(o){if(o===null||V(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Vi(e,t,n,r,i,a,o,s,c){const l=c||Number.POSITIVE_INFINITY;let d=0;return u;function u(b){return b===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(b),e.exit(a),f):b===null||b===32||b===41||Tn(b)?n(b):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(b))}function f(b){return b===62?(e.enter(a),e.consume(b),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(s),f(b)):b===null||b===60||V(b)?n(b):(e.consume(b),b===92?g:p)}function g(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function h(b){return!d&&(b===null||b===41||_e(b))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(b)):d<l&&b===40?(e.consume(b),d++,h):b===41?(e.consume(b),d--,h):b===null||b===32||b===40||Tn(b)?n(b):(e.consume(b),b===92?w:h)}function w(b){return b===40||b===41||b===92?(e.consume(b),h):h(b)}}function Yi(e,t,n,r,i,a){const o=this;let s=0,c;return l;function l(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(a),d}function d(p){return s>999||p===null||p===91||p===93&&!c||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):V(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||V(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),c||(c=!ce(p)),p===92?f:u)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,u):u(p)}}function Zi(e,t,n,r,i,a){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,c):n(f)}function c(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),l(f))}function l(f){return f===o?(e.exit(a),c(o)):f===null?n(f):V(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),pe(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===o||f===null||V(f)?(e.exit("chunkString"),l(f)):(e.consume(f),f===92?u:d)}function u(f){return f===o||f===92?(e.consume(f),d):d(f)}}function gn(e,t){let n;return r;function r(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ce(i)?pe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Jl={name:"definition",tokenize:tc},ec={partial:!0,tokenize:nc};function tc(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return Yi.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=dt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),c):n(p)}function c(p){return _e(p)?gn(e,l)(p):l(p)}function l(p){return Vi(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(ec,u,u)(p)}function u(p){return ce(p)?pe(e,f,"whitespace")(p):f(p)}function f(p){return p===null||V(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function nc(e,t,n){return r;function r(s){return _e(s)?gn(e,i)(s):n(s)}function i(s){return Zi(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ce(s)?pe(e,o,"whitespace")(s):o(s)}function o(s){return s===null||V(s)?t(s):n(s)}}const rc={name:"hardBreakEscape",tokenize:ic};function ic(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return V(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const oc={name:"headingAtx",resolve:ac,tokenize:sc};function ac(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},tt(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function sc(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||_e(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||V(d)?(e.exit("atxHeading"),t(d)):ce(d)?pe(e,s,"whitespace")(d):(e.enter("atxHeadingText"),l(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),s(d))}function l(d){return d===null||d===35||_e(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),l)}}const lc=["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"],Xi=["pre","script","style","textarea"],cc={concrete:!0,name:"htmlFlow",resolveTo:pc,tokenize:fc},uc={partial:!0,tokenize:hc},dc={partial:!0,tokenize:gc};function pc(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fc(e,t,n){const r=this;let i,a,o,s,c;return l;function l(y){return d(y)}function d(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),u}function u(y){return y===33?(e.consume(y),f):y===47?(e.consume(y),a=!0,h):y===63?(e.consume(y),i=3,r.interrupt?t:m):$e(y)?(e.consume(y),o=String.fromCharCode(y),w):n(y)}function f(y){return y===45?(e.consume(y),i=2,p):y===91?(e.consume(y),i=5,s=0,g):$e(y)?(e.consume(y),i=4,r.interrupt?t:m):n(y)}function p(y){return y===45?(e.consume(y),r.interrupt?t:m):n(y)}function g(y){const ye="CDATA[";return y===ye.charCodeAt(s++)?(e.consume(y),s===ye.length?r.interrupt?t:P:g):n(y)}function h(y){return $e(y)?(e.consume(y),o=String.fromCharCode(y),w):n(y)}function w(y){if(y===null||y===47||y===62||_e(y)){const ye=y===47,nt=o.toLowerCase();return!ye&&!a&&Xi.includes(nt)?(i=1,r.interrupt?t(y):P(y)):lc.includes(o.toLowerCase())?(i=6,ye?(e.consume(y),b):r.interrupt?t(y):P(y)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(y):a?N(y):v(y))}return y===45||Fe(y)?(e.consume(y),o+=String.fromCharCode(y),w):n(y)}function b(y){return y===62?(e.consume(y),r.interrupt?t:P):n(y)}function N(y){return ce(y)?(e.consume(y),N):_(y)}function v(y){return y===47?(e.consume(y),_):y===58||y===95||$e(y)?(e.consume(y),O):ce(y)?(e.consume(y),v):_(y)}function O(y){return y===45||y===46||y===58||y===95||Fe(y)?(e.consume(y),O):R(y)}function R(y){return y===61?(e.consume(y),x):ce(y)?(e.consume(y),R):v(y)}function x(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),c=y,H):ce(y)?(e.consume(y),x):K(y)}function H(y){return y===c?(e.consume(y),c=null,G):y===null||V(y)?n(y):(e.consume(y),H)}function K(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||_e(y)?R(y):(e.consume(y),K)}function G(y){return y===47||y===62||ce(y)?v(y):n(y)}function _(y){return y===62?(e.consume(y),L):n(y)}function L(y){return y===null||V(y)?P(y):ce(y)?(e.consume(y),L):n(y)}function P(y){return y===45&&i===2?(e.consume(y),ne):y===60&&i===1?(e.consume(y),he):y===62&&i===4?(e.consume(y),ue):y===63&&i===3?(e.consume(y),m):y===93&&i===5?(e.consume(y),be):V(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(uc,ae,ee)(y)):y===null||V(y)?(e.exit("htmlFlowData"),ee(y)):(e.consume(y),P)}function ee(y){return e.check(dc,Y,ae)(y)}function Y(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),$}function $(y){return y===null||V(y)?ee(y):(e.enter("htmlFlowData"),P(y))}function ne(y){return y===45?(e.consume(y),m):P(y)}function he(y){return y===47?(e.consume(y),o="",X):P(y)}function X(y){if(y===62){const ye=o.toLowerCase();return Xi.includes(ye)?(e.consume(y),ue):P(y)}return $e(y)&&o.length<8?(e.consume(y),o+=String.fromCharCode(y),X):P(y)}function be(y){return y===93?(e.consume(y),m):P(y)}function m(y){return y===62?(e.consume(y),ue):y===45&&i===2?(e.consume(y),m):P(y)}function ue(y){return y===null||V(y)?(e.exit("htmlFlowData"),ae(y)):(e.consume(y),ue)}function ae(y){return e.exit("htmlFlow"),t(y)}}function gc(e,t,n){const r=this;return i;function i(o){return V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function hc(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(pn,t,n)}}const mc={name:"htmlText",tokenize:bc};function bc(e,t,n){const r=this;let i,a,o;return s;function s(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),l):m===47?(e.consume(m),R):m===63?(e.consume(m),v):$e(m)?(e.consume(m),K):n(m)}function l(m){return m===45?(e.consume(m),d):m===91?(e.consume(m),a=0,g):$e(m)?(e.consume(m),N):n(m)}function d(m){return m===45?(e.consume(m),p):n(m)}function u(m){return m===null?n(m):m===45?(e.consume(m),f):V(m)?(o=u,he(m)):(e.consume(m),u)}function f(m){return m===45?(e.consume(m),p):u(m)}function p(m){return m===62?ne(m):m===45?f(m):u(m)}function g(m){const ue="CDATA[";return m===ue.charCodeAt(a++)?(e.consume(m),a===ue.length?h:g):n(m)}function h(m){return m===null?n(m):m===93?(e.consume(m),w):V(m)?(o=h,he(m)):(e.consume(m),h)}function w(m){return m===93?(e.consume(m),b):h(m)}function b(m){return m===62?ne(m):m===93?(e.consume(m),b):h(m)}function N(m){return m===null||m===62?ne(m):V(m)?(o=N,he(m)):(e.consume(m),N)}function v(m){return m===null?n(m):m===63?(e.consume(m),O):V(m)?(o=v,he(m)):(e.consume(m),v)}function O(m){return m===62?ne(m):v(m)}function R(m){return $e(m)?(e.consume(m),x):n(m)}function x(m){return m===45||Fe(m)?(e.consume(m),x):H(m)}function H(m){return V(m)?(o=H,he(m)):ce(m)?(e.consume(m),H):ne(m)}function K(m){return m===45||Fe(m)?(e.consume(m),K):m===47||m===62||_e(m)?G(m):n(m)}function G(m){return m===47?(e.consume(m),ne):m===58||m===95||$e(m)?(e.consume(m),_):V(m)?(o=G,he(m)):ce(m)?(e.consume(m),G):ne(m)}function _(m){return m===45||m===46||m===58||m===95||Fe(m)?(e.consume(m),_):L(m)}function L(m){return m===61?(e.consume(m),P):V(m)?(o=L,he(m)):ce(m)?(e.consume(m),L):G(m)}function P(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,ee):V(m)?(o=P,he(m)):ce(m)?(e.consume(m),P):(e.consume(m),Y)}function ee(m){return m===i?(e.consume(m),i=void 0,$):m===null?n(m):V(m)?(o=ee,he(m)):(e.consume(m),ee)}function Y(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||_e(m)?G(m):(e.consume(m),Y)}function $(m){return m===47||m===62||_e(m)?G(m):n(m)}function ne(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function he(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),X}function X(m){return ce(m)?pe(e,be,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):be(m)}function be(m){return e.enter("htmlTextData"),o(m)}}const _r={name:"labelEnd",resolveAll:Ec,resolveTo:xc,tokenize:_c},kc={tokenize:vc},yc={tokenize:Sc},wc={tokenize:Nc};function Ec(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&tt(e,0,e.length,n),e}function xc(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const c={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[a][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",c,t],["enter",l,t]],s=it(s,e.slice(a+1,a+r+3)),s=it(s,[["enter",d,t]]),s=it(s,Cn(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=it(s,[["exit",d,t],e[o-2],e[o-1],["exit",l,t]]),s=it(s,e.slice(o+1)),s=it(s,[["exit",c,t]]),tt(e,a,e.length,s),e}function _c(e,t,n){const r=this;let i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(f){return a?a._inactive?u(f):(o=r.parser.defined.includes(dt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),c):n(f)}function c(f){return f===40?e.attempt(kc,d,o?d:u)(f):f===91?e.attempt(yc,d,o?l:u)(f):o?d(f):u(f)}function l(f){return e.attempt(wc,d,u)(f)}function d(f){return t(f)}function u(f){return a._balanced=!0,n(f)}}function vc(e,t,n){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return _e(u)?gn(e,a)(u):a(u)}function a(u){return u===41?d(u):Vi(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return _e(u)?gn(e,c)(u):d(u)}function s(u){return n(u)}function c(u){return u===34||u===39||u===40?Zi(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):d(u)}function l(u){return _e(u)?gn(e,d)(u):d(u)}function d(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}function Sc(e,t,n){const r=this;return i;function i(s){return Yi.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(dt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function Nc(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const Tc={name:"labelStartImage",resolveAll:_r.resolveAll,tokenize:Ac};function Ac(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Cc={name:"labelStartLink",resolveAll:_r.resolveAll,tokenize:Ic};function Ic(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const vr={name:"lineEnding",tokenize:Oc};function Oc(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),pe(e,t,"linePrefix")}}const In={name:"thematicBreak",tokenize:Mc};function Mc(e,t,n){let r=0,i;return a;function a(l){return e.enter("thematicBreak"),o(l)}function o(l){return i=l,s(l)}function s(l){return l===i?(e.enter("thematicBreakSequence"),c(l)):r>=3&&(l===null||V(l))?(e.exit("thematicBreak"),t(l)):n(l)}function c(l){return l===i?(e.consume(l),r++,c):(e.exit("thematicBreakSequence"),ce(l)?pe(e,s,"whitespace")(l):s(l))}}const Xe={continuation:{tokenize:Pc},exit:Fc,name:"list",tokenize:Dc},Rc={partial:!0,tokenize:zc},Lc={partial:!0,tokenize:Bc};function Dc(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:wr(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(In,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(p)}return n(p)}function c(p){return wr(p)&&++o<10?(e.consume(p),c):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(pn,r.interrupt?n:d,e.attempt(Rc,f,u))}function d(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function u(p){return ce(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Pc(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(pn,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pe(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!ce(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Lc,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,pe(e,e.attempt(Xe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Bc(e,t,n){const r=this;return pe(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function Fc(e){e.exit(this.containerState.type)}function zc(e,t,n){const r=this;return pe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=r.events[r.events.length-1];return!ce(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Qi={name:"setextUnderline",resolveTo:Uc,tokenize:qc};function Uc(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function qc(e,t,n){const r=this;let i;return a;function a(l){let d=r.events.length,u;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){u=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),i=l,o(l)):n(l)}function o(l){return e.enter("setextHeadingLineSequence"),s(l)}function s(l){return l===i?(e.consume(l),s):(e.exit("setextHeadingLineSequence"),ce(l)?pe(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||V(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const $c={tokenize:Hc};function Hc(e){const t=this,n=e.attempt(pn,r,e.attempt(this.parser.constructs.flowInitial,i,pe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Yl,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Gc={resolveAll:Ji()},Wc=ji("string"),Kc=ji("text");function ji(e){return{resolveAll:Ji(e==="text"?Vc:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(d){return l(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return l(d)?(n.exit("data"),a(d)):(n.consume(d),c)}function l(d){if(d===null)return!0;const u=i[d];let f=-1;if(u)for(;++f<u.length;){const p=u[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Ji(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function Vc(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,o=-1,s=0,c;for(;a--;){const l=i[a];if(typeof l=="string"){for(o=l.length;l.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(l===-2)c=!0,s++;else if(l!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const l={type:n===e.length||c||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const Yc=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Jl},disable:{null:[]},document:{42:Xe,43:Xe,45:Xe,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,62:qi},flow:{35:oc,42:In,45:[Qi,In],60:cc,61:Qi,95:In,96:Wi,126:Wi},flowInitial:{[-2]:xr,[-1]:xr,32:xr},insideSpan:{null:[Er,Gc]},string:{38:Hi,92:$i},text:{[-5]:vr,[-4]:vr,[-3]:vr,33:Tc,38:Hi,42:Er,60:[Cl,mc],91:Cc,92:[rc,$i],93:_r,95:Er,96:$l}},Symbol.toStringTag,{value:"Module"}));function Zc(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let o=[],s=[];const c={attempt:H(R),check:H(x),consume:N,enter:v,exit:O,interrupt:H(x,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:u};let d=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function u(L){return o=it(o,L),w(),o[o.length-1]!==null?[]:(K(t,0),l.events=Cn(a,l.events,l),l.events)}function f(L,P){return Qc(p(L),P)}function p(L){return Xc(o,L)}function g(){const{_bufferIndex:L,_index:P,line:ee,column:Y,offset:$}=r;return{_bufferIndex:L,_index:P,line:ee,column:Y,offset:$}}function h(L){i[L.line]=L.column,_()}function w(){let L;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(L=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<P.length;)b(P.charCodeAt(r._bufferIndex));else b(P)}}function b(L){d=d(L)}function N(L){V(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,_()):L!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=L}function v(L,P){const ee=P||{};return ee.type=L,ee.start=g(),l.events.push(["enter",ee,l]),s.push(ee),ee}function O(L){const P=s.pop();return P.end=g(),l.events.push(["exit",P,l]),P}function R(L,P){K(L,P.from)}function x(L,P){P.restore()}function H(L,P){return ee;function ee(Y,$,ne){let he,X,be,m;return Array.isArray(Y)?ae(Y):"tokenize"in Y?ae([Y]):ue(Y);function ue(Ne){return at;function at(ve){const st=ve!==null&&Ne[ve],Oe=ve!==null&&Ne.null,Et=[...Array.isArray(st)?st:st?[st]:[],...Array.isArray(Oe)?Oe:Oe?[Oe]:[]];return ae(Et)(ve)}}function ae(Ne){return he=Ne,X=0,Ne.length===0?ne:y(Ne[X])}function y(Ne){return at;function at(ve){return m=G(),be=Ne,Ne.partial||(l.currentConstruct=Ne),Ne.name&&l.parser.constructs.disable.null.includes(Ne.name)?nt():Ne.tokenize.call(P?Object.assign(Object.create(l),P):l,c,ye,nt)(ve)}}function ye(Ne){return L(be,m),$}function nt(Ne){return m.restore(),++X<he.length?y(he[X]):ne}}}function K(L,P){L.resolveAll&&!a.includes(L)&&a.push(L),L.resolve&&tt(l.events,P,l.events.length-P,L.resolve(l.events.slice(P),l)),L.resolveTo&&(l.events=L.resolveTo(l.events,l))}function G(){const L=g(),P=l.previous,ee=l.currentConstruct,Y=l.events.length,$=Array.from(s);return{from:Y,restore:ne};function ne(){r=L,l.previous=P,l.currentConstruct=ee,l.events.length=Y,s=$,_()}}function _(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Xc(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Qc(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
4
4
  `;break}case-3:{o=`\r
5
- `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function Tu(e){const r={constructs:Wi([vu,...(e||{}).extensions||[]]),content:i(Xl),defined:[],document:i(Ql),flow:i(mu),lazy:{},string:i(yu),text:i(wu)};return r;function i(a){return o;function o(s){return xu(r,a,s)}}}function Nu(e){for(;!eo(e););return e}const lo=/[\0\t\n\r]/g;function Cu(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const c=[];let l,d,u,f,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,t="",n&&(a.charCodeAt(0)===65279&&u++,n=void 0);u<a.length;){if(lo.lastIndex=u,l=lo.exec(a),f=l&&l.index!==void 0?l.index:a.length,p=a.charCodeAt(f),!l){t=a.slice(u);break}if(p===10&&u===f&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),u<f&&(c.push(a.slice(u,f)),e+=f-u),p){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}u=f+1}return s&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const Au=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Iu(e){return e.replace(Au,Ou)}function Ou(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return Ki(n.slice(a?2:1),a?16:10)}return xr(n)||e}const co={}.hasOwnProperty;function Mu(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Lu(n)(Nu(Tu(n).document().write(Cu()(e,t,!0))))}function Lu(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(lt),autolinkProtocol:W,autolinkEmail:W,atxHeading:a(It),blockQuote:a(Oe),characterEscape:W,characterReference:W,codeFenced:a(Et),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Et,o),codeText:a(Ft,o),codeTextData:W,data:W,codeFlowValue:W,definition:a(zt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(vt),hardBreakEscape:a(fe),hardBreakTrailing:a(fe),htmlFlow:a(rt,o),htmlFlowData:W,htmlText:a(rt,o),htmlTextData:W,image:a(pt),label:o,link:a(lt),listItem:a(Qe),listItemValue:f,listOrdered:a(ft,u),listUnordered:a(ft),paragraph:a(Ue),reference:w,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(It),strong:a(ct),thematicBreak:a(rn)},exit:{atxHeading:c(),atxHeadingSequence:I,autolink:c(),autolinkEmail:st,autolinkProtocol:_e,blockQuote:c(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:je,characterReferenceMarkerNumeric:je,characterReferenceValue:Ne,characterReference:at,codeFenced:c(b),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:S,codeIndented:c(h),codeText:c(H),codeTextData:S,data:S,definition:c(),definitionDestinationString:C,definitionLabelString:v,definitionTitleString:x,emphasis:c(),hardBreakEscape:c(P),hardBreakTrailing:c(P),htmlFlow:c(ee),htmlFlowData:S,htmlText:c(Y),htmlTextData:S,image:c(he),label:be,labelText:X,lineEnding:R,link:c(ne),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ye,resourceDestinationString:k,resourceTitleString:ue,resource:ae,setextHeading:c(G),setextHeadingLineSequence:z,setextHeadingText:_,strong:c(),thematicBreak:c()}};uo(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(T){let L={type:"root",children:[]};const j={stack:[L],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:d,data:n},oe=[];let me=-1;for(;++me<T.length;)if(T[me][1].type==="listOrdered"||T[me][1].type==="listUnordered")if(T[me][0]==="enter")oe.push(me);else{const Ge=oe.pop();me=i(T,Ge,me)}for(me=-1;++me<T.length;){const Ge=t[T[me][0]];co.call(Ge,T[me][1].type)&&Ge[T[me][1].type].call(Object.assign({sliceSerialize:T[me][2].sliceSerialize},j),T[me][1])}if(j.tokenStack.length>0){const Ge=j.tokenStack[j.tokenStack.length-1];(Ge[1]||po).call(j,void 0,Ge[0])}for(L.position={start:Bt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:Bt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)L=t.transforms[me](L)||L;return L}function i(T,L,j){let oe=L-1,me=-1,Ge=!1,Je,et,xt,Ot;for(;++oe<=j;){const Se=T[oe];switch(Se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Se[0]==="enter"?me++:me--,Ot=void 0;break}case"lineEndingBlank":{Se[0]==="enter"&&(Je&&!Ot&&!me&&!xt&&(xt=oe),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!me&&Se[0]==="enter"&&Se[1].type==="listItemPrefix"||me===-1&&Se[0]==="exit"&&(Se[1].type==="listUnordered"||Se[1].type==="listOrdered")){if(Je){let ht=oe;for(et=void 0;ht--;){const We=T[ht];if(We[1].type==="lineEnding"||We[1].type==="lineEndingBlank"){if(We[0]==="exit")continue;et&&(T[et][1].type="lineEndingBlank",Ge=!0),We[1].type="lineEnding",et=ht}else if(!(We[1].type==="linePrefix"||We[1].type==="blockQuotePrefix"||We[1].type==="blockQuotePrefixWhitespace"||We[1].type==="blockQuoteMarker"||We[1].type==="listItemIndent"))break}xt&&(!et||xt<et)&&(Je._spread=!0),Je.end=Object.assign({},et?T[et][1].start:Se[1].end),T.splice(et||oe,0,["exit",Je,Se[2]]),oe++,j++}if(Se[1].type==="listItemPrefix"){const ht={type:"listItem",_spread:!1,start:Object.assign({},Se[1].start),end:void 0};Je=ht,T.splice(oe,0,["enter",ht,Se[2]]),oe++,j++,xt=void 0,Ot=!0}}}return T[L][1]._spread=Ge,j}function a(T,L){return j;function j(oe){s.call(this,T(oe),oe),L&&L.call(this,oe)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(T,L,j){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([L,j||void 0]),T.position={start:Bt(L.start),end:void 0}}function c(T){return L;function L(j){T&&T.call(this,j),l.call(this,j)}}function l(T,L){const j=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==T.type&&(L?L.call(this,T,oe[0]):(oe[1]||po).call(this,T,oe[0]));else throw new Error("Cannot close `"+T.type+"` ("+dn({start:T.start,end:T.end})+"): it’s not open");j.position.end=Bt(T.end)}function d(){return vr(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function f(T){if(this.data.expectingFirstListItemValue){const L=this.stack[this.stack.length-2];L.start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0}}function p(){const T=this.resume(),L=this.stack[this.stack.length-1];L.lang=T}function g(){const T=this.resume(),L=this.stack[this.stack.length-1];L.meta=T}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T.replace(/(\r?\n|\r)$/g,"")}function v(T){const L=this.resume(),j=this.stack[this.stack.length-1];j.label=L,j.identifier=dt(this.sliceSerialize(T)).toLowerCase()}function x(){const T=this.resume(),L=this.stack[this.stack.length-1];L.title=T}function C(){const T=this.resume(),L=this.stack[this.stack.length-1];L.url=T}function I(T){const L=this.stack[this.stack.length-1];if(!L.depth){const j=this.sliceSerialize(T).length;L.depth=j}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function z(T){const L=this.stack[this.stack.length-1];L.depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function W(T){const j=this.stack[this.stack.length-1].children;let oe=j[j.length-1];(!oe||oe.type!=="text")&&(oe=gt(),oe.position={start:Bt(T.start),end:void 0},j.push(oe)),this.stack.push(oe)}function S(T){const L=this.stack.pop();L.value+=this.sliceSerialize(T),L.position.end=Bt(T.end)}function R(T){const L=this.stack[this.stack.length-1];if(this.data.atHardBreak){const j=L.children[L.children.length-1];j.position.end=Bt(T.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(L.type)&&(W.call(this,T),S.call(this,T))}function P(){this.data.atHardBreak=!0}function ee(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function Y(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function H(){const T=this.resume(),L=this.stack[this.stack.length-1];L.value=T}function ne(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=L,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function he(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const L=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=L,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function X(T){const L=this.sliceSerialize(T),j=this.stack[this.stack.length-2];j.label=Iu(L),j.identifier=dt(L).toLowerCase()}function be(){const T=this.stack[this.stack.length-1],L=this.resume(),j=this.stack[this.stack.length-1];if(this.data.inReference=!0,j.type==="link"){const oe=T.children;j.children=oe}else j.alt=L}function k(){const T=this.resume(),L=this.stack[this.stack.length-1];L.url=T}function ue(){const T=this.resume(),L=this.stack[this.stack.length-1];L.title=T}function ae(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ye(T){const L=this.resume(),j=this.stack[this.stack.length-1];j.label=L,j.identifier=dt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function je(T){this.data.characterReferenceType=T.type}function Ne(T){const L=this.sliceSerialize(T),j=this.data.characterReferenceType;let oe;j?(oe=Ki(L,j==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=xr(L);const me=this.stack[this.stack.length-1];me.value+=oe}function at(T){const L=this.stack.pop();L.position.end=Bt(T.end)}function _e(T){S.call(this,T);const L=this.stack[this.stack.length-1];L.url=this.sliceSerialize(T)}function st(T){S.call(this,T);const L=this.stack[this.stack.length-1];L.url="mailto:"+this.sliceSerialize(T)}function Oe(){return{type:"blockquote",children:[]}}function Et(){return{type:"code",lang:null,meta:null,value:""}}function Ft(){return{type:"inlineCode",value:""}}function zt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function vt(){return{type:"emphasis",children:[]}}function It(){return{type:"heading",depth:0,children:[]}}function fe(){return{type:"break"}}function rt(){return{type:"html",value:""}}function pt(){return{type:"image",title:null,url:"",alt:null}}function lt(){return{type:"link",title:null,url:"",children:[]}}function ft(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function Qe(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function Ue(){return{type:"paragraph",children:[]}}function ct(){return{type:"strong",children:[]}}function gt(){return{type:"text",value:""}}function rn(){return{type:"thematicBreak"}}}function Bt(e){return{line:e.line,column:e.column,offset:e.offset}}function uo(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?uo(e,r):Ru(e,r)}}function Ru(e,t){let n;for(n in t)if(co.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function po(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+dn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+dn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+dn({start:t.start,end:t.end})+") is still open")}function Du(e){const t=this;t.parser=n;function n(r){return Mu(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Pu(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Bu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
6
- `}]}function Fu(e,t){const n=t.value?t.value+`
7
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let 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=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function zu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Uu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Xt(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function $u(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hu(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function fo(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Gu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return fo(e,t);const i={src:Xt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Wu(e,t){const n={src:Xt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ku(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Vu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return fo(e,t);const i={href:Xt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Yu(e,t){const n={href:Xt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Zu(e,t,n){const r=e.all(t),i=n?Xu(n):go(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let u;d&&d.type==="element"&&d.tagName==="p"?u=d:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(i||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
5
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join("")}function jc(e){const r={constructs:Bi([Yc,...(e||{}).extensions||[]]),content:i(xl),defined:[],document:i(vl),flow:i($c),lazy:{},string:i(Wc),text:i(Kc)};return r;function i(a){return o;function o(s){return Zc(r,a,s)}}}function Jc(e){for(;!Ki(e););return e}const eo=/[\0\t\n\r]/g;function eu(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const c=[];let l,d,u,f,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),u=0,t="",n&&(a.charCodeAt(0)===65279&&u++,n=void 0);u<a.length;){if(eo.lastIndex=u,l=eo.exec(a),f=l&&l.index!==void 0?l.index:a.length,p=a.charCodeAt(f),!l){t=a.slice(u);break}if(p===10&&u===f&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),u<f&&(c.push(a.slice(u,f)),e+=f-u),p){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}u=f+1}return s&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const tu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nu(e){return e.replace(tu,ru)}function ru(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return Fi(n.slice(a?2:1),a?16:10)}return yr(n)||e}const to={}.hasOwnProperty;function iu(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),ou(n)(Jc(jc(n).document().write(eu()(e,t,!0))))}function ou(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(lt),autolinkProtocol:G,autolinkEmail:G,atxHeading:a(Ct),blockQuote:a(Oe),characterEscape:G,characterReference:G,codeFenced:a(Et),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Et,o),codeText:a(Bt,o),codeTextData:G,data:G,codeFlowValue:G,definition:a(Ft),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(xt),hardBreakEscape:a(fe),hardBreakTrailing:a(fe),htmlFlow:a(rt,o),htmlFlowData:G,htmlText:a(rt,o),htmlTextData:G,image:a(pt),label:o,link:a(lt),listItem:a(Qe),listItemValue:f,listOrdered:a(ft,u),listUnordered:a(ft),paragraph:a(Ue),reference:y,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Ct),strong:a(ct),thematicBreak:a(nn)},exit:{atxHeading:c(),atxHeadingSequence:R,autolink:c(),autolinkEmail:st,autolinkProtocol:ve,blockQuote:c(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:nt,characterReferenceMarkerNumeric:nt,characterReferenceValue:Ne,characterReference:at,codeFenced:c(w),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:_,codeIndented:c(b),codeText:c($),codeTextData:_,data:_,definition:c(),definitionDestinationString:O,definitionLabelString:N,definitionTitleString:v,emphasis:c(),hardBreakEscape:c(P),hardBreakTrailing:c(P),htmlFlow:c(ee),htmlFlowData:_,htmlText:c(Y),htmlTextData:_,image:c(he),label:be,labelText:X,lineEnding:L,link:c(ne),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ye,resourceDestinationString:m,resourceTitleString:ue,resource:ae,setextHeading:c(K),setextHeadingLineSequence:H,setextHeadingText:x,strong:c(),thematicBreak:c()}};no(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(S){let M={type:"root",children:[]};const Q={stack:[M],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:d,data:n},oe=[];let me=-1;for(;++me<S.length;)if(S[me][1].type==="listOrdered"||S[me][1].type==="listUnordered")if(S[me][0]==="enter")oe.push(me);else{const Ge=oe.pop();me=i(S,Ge,me)}for(me=-1;++me<S.length;){const Ge=t[S[me][0]];to.call(Ge,S[me][1].type)&&Ge[S[me][1].type].call(Object.assign({sliceSerialize:S[me][2].sliceSerialize},Q),S[me][1])}if(Q.tokenStack.length>0){const Ge=Q.tokenStack[Q.tokenStack.length-1];(Ge[1]||ro).call(Q,void 0,Ge[0])}for(M.position={start:Pt(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:Pt(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)M=t.transforms[me](M)||M;return M}function i(S,M,Q){let oe=M-1,me=-1,Ge=!1,je,Je,_t,It;for(;++oe<=Q;){const Te=S[oe];switch(Te[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Te[0]==="enter"?me++:me--,It=void 0;break}case"lineEndingBlank":{Te[0]==="enter"&&(je&&!It&&!me&&!_t&&(_t=oe),It=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:It=void 0}if(!me&&Te[0]==="enter"&&Te[1].type==="listItemPrefix"||me===-1&&Te[0]==="exit"&&(Te[1].type==="listUnordered"||Te[1].type==="listOrdered")){if(je){let ht=oe;for(Je=void 0;ht--;){const We=S[ht];if(We[1].type==="lineEnding"||We[1].type==="lineEndingBlank"){if(We[0]==="exit")continue;Je&&(S[Je][1].type="lineEndingBlank",Ge=!0),We[1].type="lineEnding",Je=ht}else if(!(We[1].type==="linePrefix"||We[1].type==="blockQuotePrefix"||We[1].type==="blockQuotePrefixWhitespace"||We[1].type==="blockQuoteMarker"||We[1].type==="listItemIndent"))break}_t&&(!Je||_t<Je)&&(je._spread=!0),je.end=Object.assign({},Je?S[Je][1].start:Te[1].end),S.splice(Je||oe,0,["exit",je,Te[2]]),oe++,Q++}if(Te[1].type==="listItemPrefix"){const ht={type:"listItem",_spread:!1,start:Object.assign({},Te[1].start),end:void 0};je=ht,S.splice(oe,0,["enter",ht,Te[2]]),oe++,Q++,_t=void 0,It=!0}}}return S[M][1]._spread=Ge,Q}function a(S,M){return Q;function Q(oe){s.call(this,S(oe),oe),M&&M.call(this,oe)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(S,M,Q){this.stack[this.stack.length-1].children.push(S),this.stack.push(S),this.tokenStack.push([M,Q||void 0]),S.position={start:Pt(M.start),end:void 0}}function c(S){return M;function M(Q){S&&S.call(this,Q),l.call(this,Q)}}function l(S,M){const Q=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==S.type&&(M?M.call(this,S,oe[0]):(oe[1]||ro).call(this,S,oe[0]));else throw new Error("Cannot close `"+S.type+"` ("+un({start:S.start,end:S.end})+"): it’s not open");Q.position.end=Pt(S.end)}function d(){return kr(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function f(S){if(this.data.expectingFirstListItemValue){const M=this.stack[this.stack.length-2];M.start=Number.parseInt(this.sliceSerialize(S),10),this.data.expectingFirstListItemValue=void 0}}function p(){const S=this.resume(),M=this.stack[this.stack.length-1];M.lang=S}function g(){const S=this.resume(),M=this.stack[this.stack.length-1];M.meta=S}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const S=this.resume(),M=this.stack[this.stack.length-1];M.value=S.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const S=this.resume(),M=this.stack[this.stack.length-1];M.value=S.replace(/(\r?\n|\r)$/g,"")}function N(S){const M=this.resume(),Q=this.stack[this.stack.length-1];Q.label=M,Q.identifier=dt(this.sliceSerialize(S)).toLowerCase()}function v(){const S=this.resume(),M=this.stack[this.stack.length-1];M.title=S}function O(){const S=this.resume(),M=this.stack[this.stack.length-1];M.url=S}function R(S){const M=this.stack[this.stack.length-1];if(!M.depth){const Q=this.sliceSerialize(S).length;M.depth=Q}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function H(S){const M=this.stack[this.stack.length-1];M.depth=this.sliceSerialize(S).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function G(S){const Q=this.stack[this.stack.length-1].children;let oe=Q[Q.length-1];(!oe||oe.type!=="text")&&(oe=gt(),oe.position={start:Pt(S.start),end:void 0},Q.push(oe)),this.stack.push(oe)}function _(S){const M=this.stack.pop();M.value+=this.sliceSerialize(S),M.position.end=Pt(S.end)}function L(S){const M=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Q=M.children[M.children.length-1];Q.position.end=Pt(S.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(M.type)&&(G.call(this,S),_.call(this,S))}function P(){this.data.atHardBreak=!0}function ee(){const S=this.resume(),M=this.stack[this.stack.length-1];M.value=S}function Y(){const S=this.resume(),M=this.stack[this.stack.length-1];M.value=S}function $(){const S=this.resume(),M=this.stack[this.stack.length-1];M.value=S}function ne(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=M,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function he(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=M,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function X(S){const M=this.sliceSerialize(S),Q=this.stack[this.stack.length-2];Q.label=nu(M),Q.identifier=dt(M).toLowerCase()}function be(){const S=this.stack[this.stack.length-1],M=this.resume(),Q=this.stack[this.stack.length-1];if(this.data.inReference=!0,Q.type==="link"){const oe=S.children;Q.children=oe}else Q.alt=M}function m(){const S=this.resume(),M=this.stack[this.stack.length-1];M.url=S}function ue(){const S=this.resume(),M=this.stack[this.stack.length-1];M.title=S}function ae(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function ye(S){const M=this.resume(),Q=this.stack[this.stack.length-1];Q.label=M,Q.identifier=dt(this.sliceSerialize(S)).toLowerCase(),this.data.referenceType="full"}function nt(S){this.data.characterReferenceType=S.type}function Ne(S){const M=this.sliceSerialize(S),Q=this.data.characterReferenceType;let oe;Q?(oe=Fi(M,Q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=yr(M);const me=this.stack[this.stack.length-1];me.value+=oe}function at(S){const M=this.stack.pop();M.position.end=Pt(S.end)}function ve(S){_.call(this,S);const M=this.stack[this.stack.length-1];M.url=this.sliceSerialize(S)}function st(S){_.call(this,S);const M=this.stack[this.stack.length-1];M.url="mailto:"+this.sliceSerialize(S)}function Oe(){return{type:"blockquote",children:[]}}function Et(){return{type:"code",lang:null,meta:null,value:""}}function Bt(){return{type:"inlineCode",value:""}}function Ft(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xt(){return{type:"emphasis",children:[]}}function Ct(){return{type:"heading",depth:0,children:[]}}function fe(){return{type:"break"}}function rt(){return{type:"html",value:""}}function pt(){return{type:"image",title:null,url:"",alt:null}}function lt(){return{type:"link",title:null,url:"",children:[]}}function ft(S){return{type:"list",ordered:S.type==="listOrdered",start:null,spread:S._spread,children:[]}}function Qe(S){return{type:"listItem",spread:S._spread,checked:null,children:[]}}function Ue(){return{type:"paragraph",children:[]}}function ct(){return{type:"strong",children:[]}}function gt(){return{type:"text",value:""}}function nn(){return{type:"thematicBreak"}}}function Pt(e){return{line:e.line,column:e.column,offset:e.offset}}function no(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?no(e,r):au(e,r)}}function au(e,t){let n;for(n in t)if(to.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ro(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+un({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+un({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+un({start:t.start,end:t.end})+") is still open")}function su(e){const t=this;t.parser=n;function n(r){return iu(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function lu(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function cu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
6
+ `}]}function uu(e,t){const n=t.value?t.value+`
7
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let 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=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function du(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Zt(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function gu(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hu(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function io(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function mu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return io(e,t);const i={src:Zt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function bu(e,t){const n={src:Zt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ku(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function yu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return io(e,t);const i={href:Zt(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function wu(e,t){const n={href:Zt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Eu(e,t,n){const r=e.all(t),i=n?xu(n):oo(t),a={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let u;d&&d.type==="element"&&d.tagName==="p"?u=d:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(i||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
8
8
  `}),d.type==="element"&&d.tagName==="p"&&!i?o.push(...d.children):o.push(d)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
9
- `});const l={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Xu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=go(n[r])}return t}function go(e){const t=e.spread;return t??e.children.length>1}function ju(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Qu(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ju(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function ed(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function td(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=mr(t.children[1]),c=Li(t.children[t.children.length-1]);s&&c&&(o.position={start:s,end:c}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function nd(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let c=-1;const l=[];for(;++c<s;){const u=t.children[c],f={},p=o?o[c]:void 0;p&&(f.align=p);let g={type:"element",tagName:a,properties:f,children:[]};u&&(g.children=e.all(u),e.patch(u,g),g=e.applyData(u,g)),l.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,d),e.applyData(t,d)}function rd(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ho=9,mo=32;function id(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(bo(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(bo(t.slice(i),i>0,!1)),a.join("")}function bo(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===ho||a===mo;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===ho||a===mo;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function od(e,t){const n={type:"text",value:id(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ad(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const sd={blockquote:Pu,break:Bu,code:Fu,delete:zu,emphasis:Uu,footnoteReference:qu,heading:$u,html:Hu,imageReference:Gu,image:Wu,inlineCode:Ku,linkReference:Vu,link:Yu,listItem:Zu,list:ju,paragraph:Qu,root:Ju,strong:ed,table:td,tableCell:rd,tableRow:nd,text:od,thematicBreak:ad,toml:Mn,yaml:Mn,definition:Mn,footnoteDefinition:Mn};function Mn(){}const ko=-1,Ln=0,mn=1,Rn=2,Ar=3,Ir=4,Or=5,Mr=6,yo=7,wo=8,Eo=typeof self=="object"?self:globalThis,vo=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Eo[e](t)},ld=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Ln:case ko:return n(o,i);case mn:{const s=n([],i);for(const c of o)s.push(r(c));return s}case Rn:{const s=n({},i);for(const[c,l]of o)s[r(c)]=r(l);return s}case Ar:return n(new Date(o),i);case Ir:{const{source:s,flags:c}=o;return n(new RegExp(s,c),i)}case Or:{const s=n(new Map,i);for(const[c,l]of o)s.set(r(c),r(l));return s}case Mr:{const s=n(new Set,i);for(const c of o)s.add(r(c));return s}case yo:{const{name:s,message:c}=o;return n(typeof Eo[s]=="function"?vo(s,c):new Error(c),i)}case wo:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(vo(a,o),i)};return r},xo=e=>ld(new Map,e)(0),Wt="",{toString:cd}={},{keys:ud}=Object,bn=e=>{const t=typeof e;if(t!=="object"||!e)return[Ln,t];const n=cd.call(e).slice(8,-1);switch(n){case"Array":return[mn,Wt];case"Object":return[Rn,Wt];case"Date":return[Ar,Wt];case"RegExp":return[Ir,Wt];case"Map":return[Or,Wt];case"Set":return[Mr,Wt];case"DataView":return[mn,n]}return n.includes("Array")?[mn,n]:e instanceof Error?[yo,e.name||"Error"]:[Rn,n]},Dn=([e,t])=>e===Ln&&(t==="function"||t==="symbol"),dd=(e,t,n,r)=>{const i=(o,s)=>{const c=r.push(o)-1;return n.set(s,c),c},a=o=>{if(n.has(o))return n.get(o);let[s,c]=bn(o);switch(s){case Ln:{let d=o;switch(c){case"bigint":s=wo,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return i([ko],o)}return i([s,d],o)}case mn:{if(c){let f=o;return c==="DataView"?f=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(f=new Uint8Array(o)),i([c,[...f]],o)}const d=[],u=i([s,d],o);for(const f of o)d.push(a(f));return u}case Rn:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],u=i([s,d],o);for(const f of ud(o))(e||!Dn(bn(o[f])))&&d.push([a(f),a(o[f])]);return u}case Ar:return i([s,isNaN(o.getTime())?Wt:o.toISOString()],o);case Ir:{const{source:d,flags:u}=o;return i([s,{source:d,flags:u}],o)}case Or:{const d=[],u=i([s,d],o);for(const[f,p]of o)(e||!(Dn(bn(f))||Dn(bn(p))))&&d.push([a(f),a(p)]);return u}case Mr:{const d=[],u=i([s,d],o);for(const f of o)(e||!Dn(bn(f)))&&d.push(a(f));return u}}const{message:l}=o;return i([s,{name:c,message:l}],o)};return a},_o=(e,{json:t,lossy:n}={})=>{const r=[];return dd(!(t||n),!!t,new Map,r)(e),r},Pn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?xo(_o(e,t)):structuredClone(e):(e,t)=>xo(_o(e,t));function pd(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function fd(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function gd(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||pd,r=e.options.footnoteBackLabel||fd,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[c]);if(!l)continue;const d=e.all(l),u=String(l.identifier).toUpperCase(),f=Xt(u.toLowerCase());let p=0;const g=[],m=e.footnoteCounts.get(u);for(;m!==void 0&&++p<=m;){g.length>0&&g.push({type:"text",value:" "});let v=typeof n=="string"?n:n(c,p);typeof v=="string"&&(v={type:"text",value:v}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const b=d[d.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const v=b.children[b.children.length-1];v&&v.type==="text"?v.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...g)}else d.push(...g);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(l,h),s.push(h)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Pn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9
+ `});const l={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function xu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=oo(n[r])}return t}function oo(e){const t=e.spread;return t??e.children.length>1}function _u(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function vu(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Su(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Nu(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Tu(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=pr(t.children[1]),c=Si(t.children[t.children.length-1]);s&&c&&(o.position={start:s,end:c}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Au(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let c=-1;const l=[];for(;++c<s;){const u=t.children[c],f={},p=o?o[c]:void 0;p&&(f.align=p);let g={type:"element",tagName:a,properties:f,children:[]};u&&(g.children=e.all(u),e.patch(u,g),g=e.applyData(u,g)),l.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,d),e.applyData(t,d)}function Cu(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ao=9,so=32;function Iu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(lo(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(lo(t.slice(i),i>0,!1)),a.join("")}function lo(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===ao||a===so;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===ao||a===so;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ou(e,t){const n={type:"text",value:Iu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Mu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ru={blockquote:lu,break:cu,code:uu,delete:du,emphasis:pu,footnoteReference:fu,heading:gu,html:hu,imageReference:mu,image:bu,inlineCode:ku,linkReference:yu,link:wu,listItem:Eu,list:_u,paragraph:vu,root:Su,strong:Nu,table:Tu,tableCell:Cu,tableRow:Au,text:Ou,thematicBreak:Mu,toml:On,yaml:On,definition:On,footnoteDefinition:On};function On(){}const co=-1,Mn=0,hn=1,Rn=2,Sr=3,Nr=4,Tr=5,Ar=6,uo=7,po=8,fo=typeof self=="object"?self:globalThis,go=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new fo[e](t)},Lu=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Mn:case co:return n(o,i);case hn:{const s=n([],i);for(const c of o)s.push(r(c));return s}case Rn:{const s=n({},i);for(const[c,l]of o)s[r(c)]=r(l);return s}case Sr:return n(new Date(o),i);case Nr:{const{source:s,flags:c}=o;return n(new RegExp(s,c),i)}case Tr:{const s=n(new Map,i);for(const[c,l]of o)s.set(r(c),r(l));return s}case Ar:{const s=n(new Set,i);for(const c of o)s.add(r(c));return s}case uo:{const{name:s,message:c}=o;return n(typeof fo[s]=="function"?go(s,c):new Error(c),i)}case po:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:s}=new Uint8Array(o);return n(new DataView(s),o)}}return n(go(a,o),i)};return r},ho=e=>Lu(new Map,e)(0),Gt="",{toString:Du}={},{keys:Pu}=Object,mn=e=>{const t=typeof e;if(t!=="object"||!e)return[Mn,t];const n=Du.call(e).slice(8,-1);switch(n){case"Array":return[hn,Gt];case"Object":return[Rn,Gt];case"Date":return[Sr,Gt];case"RegExp":return[Nr,Gt];case"Map":return[Tr,Gt];case"Set":return[Ar,Gt];case"DataView":return[hn,n]}return n.includes("Array")?[hn,n]:e instanceof Error?[uo,e.name||"Error"]:[Rn,n]},Ln=([e,t])=>e===Mn&&(t==="function"||t==="symbol"),Bu=(e,t,n,r)=>{const i=(o,s)=>{const c=r.push(o)-1;return n.set(s,c),c},a=o=>{if(n.has(o))return n.get(o);let[s,c]=mn(o);switch(s){case Mn:{let d=o;switch(c){case"bigint":s=po,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return i([co],o)}return i([s,d],o)}case hn:{if(c){let f=o;return c==="DataView"?f=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(f=new Uint8Array(o)),i([c,[...f]],o)}const d=[],u=i([s,d],o);for(const f of o)d.push(a(f));return u}case Rn:{if(c)switch(c){case"BigInt":return i([c,o.toString()],o);case"Boolean":case"Number":case"String":return i([c,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],u=i([s,d],o);for(const f of Pu(o))(e||!Ln(mn(o[f])))&&d.push([a(f),a(o[f])]);return u}case Sr:return i([s,isNaN(o.getTime())?Gt:o.toISOString()],o);case Nr:{const{source:d,flags:u}=o;return i([s,{source:d,flags:u}],o)}case Tr:{const d=[],u=i([s,d],o);for(const[f,p]of o)(e||!(Ln(mn(f))||Ln(mn(p))))&&d.push([a(f),a(p)]);return u}case Ar:{const d=[],u=i([s,d],o);for(const f of o)(e||!Ln(mn(f)))&&d.push(a(f));return u}}const{message:l}=o;return i([s,{name:c,message:l}],o)};return a},mo=(e,{json:t,lossy:n}={})=>{const r=[];return Bu(!(t||n),!!t,new Map,r)(e),r},Dn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ho(mo(e,t)):structuredClone(e):(e,t)=>ho(mo(e,t));function Fu(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function zu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Uu(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Fu,r=e.options.footnoteBackLabel||zu,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[c]);if(!l)continue;const d=e.all(l),u=String(l.identifier).toUpperCase(),f=Zt(u.toLowerCase());let p=0;const g=[],h=e.footnoteCounts.get(u);for(;h!==void 0&&++p<=h;){g.length>0&&g.push({type:"text",value:" "});let N=typeof n=="string"?n:n(c,p);typeof N=="string"&&(N={type:"text",value:N}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,p),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const N=w.children[w.children.length-1];N&&N.type==="text"?N.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...g)}else d.push(...g);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(l,b),s.push(b)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Dn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
10
10
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
11
- `}]}}const kn=(function(e){if(e==null)return kd;if(typeof e=="function")return Bn(e);if(typeof e=="object")return Array.isArray(e)?hd(e):md(e);if(typeof e=="string")return bd(e);throw new Error("Expected function, string, or object as test")});function hd(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kn(e[n]);return Bn(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function md(e){const t=e;return Bn(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function bd(e){return Bn(t);function t(n){return n&&n.type===e}}function Bn(e){return t;function t(n,r,i){return!!(yd(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function kd(){return!0}function yd(e){return e!==null&&typeof e=="object"&&"type"in e}function Ab(e){return e}const So=[],wd=!0,Lr=!1,Ed="skip";function To(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=kn(i),o=r?-1:1;s(e,void 0,[])();function s(c,l,d){const u=c&&typeof c=="object"?c:{};if(typeof u.type=="string"){const p=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=So,g,m,b;if((!t||a(c,l,d[d.length-1]||void 0))&&(p=vd(n(c,d)),p[0]===Lr))return p;if("children"in c&&c.children){const h=c;if(h.children&&p[0]!==Ed)for(m=(r?h.children.length:-1)+o,b=d.concat(h);m>-1&&m<h.children.length;){const v=h.children[m];if(g=s(v,m,b)(),g[0]===Lr)return g;m=typeof g[1]=="number"?g[1]:m+o}}return p}}}function vd(e){return Array.isArray(e)?e:typeof e=="number"?[wd,e]:e==null?So:[e]}function Fn(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),To(e,a,s,i);function s(c,l){const d=l[l.length-1],u=d?d.children.indexOf(c):void 0;return o(c,u,d)}}const Rr={}.hasOwnProperty,xd={};function _d(e,t){const n=t||xd,r=new Map,i=new Map,a=new Map,o={...sd,...n.handlers},s={all:l,applyData:Td,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:c,options:n,patch:Sd,wrap:Cd};return Fn(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const u=d.type==="definition"?r:i,f=String(d.identifier).toUpperCase();u.has(f)||u.set(f,d)}}),s;function c(d,u){const f=d.type,p=s.handlers[f];if(Rr.call(s.handlers,f)&&p)return p(s,d,u);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in d){const{children:m,...b}=d,h=Pn(b);return h.children=s.all(d),h}return Pn(d)}return(s.options.unknownHandler||Nd)(s,d,u)}function l(d){const u=[];if("children"in d){const f=d.children;let p=-1;for(;++p<f.length;){const g=s.one(f[p],d);if(g){if(p&&f[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=No(g.value)),!Array.isArray(g)&&g.type==="element")){const m=g.children[0];m&&m.type==="text"&&(m.value=No(m.value))}Array.isArray(g)?u.push(...g):u.push(g)}}}return u}}function Sd(e,t){e.position&&(t.position=El(e))}function Td(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,Pn(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Nd(e,t){const n=t.data||{},r="value"in t&&!(Rr.call(n,"hProperties")||Rr.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Cd(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
11
+ `}]}}const bn=(function(e){if(e==null)return Gu;if(typeof e=="function")return Pn(e);if(typeof e=="object")return Array.isArray(e)?qu(e):$u(e);if(typeof e=="string")return Hu(e);throw new Error("Expected function, string, or object as test")});function qu(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bn(e[n]);return Pn(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function $u(e){const t=e;return Pn(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Hu(e){return Pn(t);function t(n){return n&&n.type===e}}function Pn(e){return t;function t(n,r,i){return!!(Wu(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Gu(){return!0}function Wu(e){return e!==null&&typeof e=="object"&&"type"in e}function ym(e){return e}const bo=[],Ku=!0,Cr=!1,Vu="skip";function ko(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=bn(i),o=r?-1:1;s(e,void 0,[])();function s(c,l,d){const u=c&&typeof c=="object"?c:{};if(typeof u.type=="string"){const p=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(c.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=bo,g,h,w;if((!t||a(c,l,d[d.length-1]||void 0))&&(p=Yu(n(c,d)),p[0]===Cr))return p;if("children"in c&&c.children){const b=c;if(b.children&&p[0]!==Vu)for(h=(r?b.children.length:-1)+o,w=d.concat(b);h>-1&&h<b.children.length;){const N=b.children[h];if(g=s(N,h,w)(),g[0]===Cr)return g;h=typeof g[1]=="number"?g[1]:h+o}}return p}}}function Yu(e){return Array.isArray(e)?e:typeof e=="number"?[Ku,e]:e==null?bo:[e]}function Bn(e,t,n,r){let i,a,o;typeof t=="function"&&typeof n!="function"?(a=void 0,o=t,i=n):(a=t,o=n,i=r),ko(e,a,s,i);function s(c,l){const d=l[l.length-1],u=d?d.children.indexOf(c):void 0;return o(c,u,d)}}const Ir={}.hasOwnProperty,Zu={};function Xu(e,t){const n=t||Zu,r=new Map,i=new Map,a=new Map,o={...Ru,...n.handlers},s={all:l,applyData:ju,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:c,options:n,patch:Qu,wrap:ed};return Bn(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const u=d.type==="definition"?r:i,f=String(d.identifier).toUpperCase();u.has(f)||u.set(f,d)}}),s;function c(d,u){const f=d.type,p=s.handlers[f];if(Ir.call(s.handlers,f)&&p)return p(s,d,u);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in d){const{children:h,...w}=d,b=Dn(w);return b.children=s.all(d),b}return Dn(d)}return(s.options.unknownHandler||Ju)(s,d,u)}function l(d){const u=[];if("children"in d){const f=d.children;let p=-1;for(;++p<f.length;){const g=s.one(f[p],d);if(g){if(p&&f[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=yo(g.value)),!Array.isArray(g)&&g.type==="element")){const h=g.children[0];h&&h.type==="text"&&(h.value=yo(h.value))}Array.isArray(g)?u.push(...g):u.push(g)}}}return u}}function Qu(e,t){e.position&&(t.position=Vs(e))}function ju(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&a&&Object.assign(n.properties,Dn(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Ju(e,t){const n=t.data||{},r="value"in t&&!(Ir.call(n,"hProperties")||Ir.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ed(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
12
12
  `});++r<e.length;)r&&n.push({type:"text",value:`
13
13
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
14
- `}),n}function No(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Co(e,t){const n=_d(e,t),r=n.one(e,void 0),i=gd(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
15
- `},i),a}function Ad(e,t){return e&&"run"in e?async function(n,r){const i=Co(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Co(n,{file:r,...e||t})}}function Ao(e){if(e)throw e}var Dr,Io;function Id(){if(Io)return Dr;Io=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var d=e.call(l,"constructor"),u=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!u)return!1;var f;for(f in l);return typeof f>"u"||e.call(l,f)},o=function(l,d){n&&d.name==="__proto__"?n(l,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):l[d.name]=d.newValue},s=function(l,d){if(d==="__proto__")if(e.call(l,d)){if(r)return r(l,d).value}else return;return l[d]};return Dr=function c(){var l,d,u,f,p,g,m=arguments[0],b=1,h=arguments.length,v=!1;for(typeof m=="boolean"&&(v=m,m=arguments[1]||{},b=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});b<h;++b)if(l=arguments[b],l!=null)for(d in l)u=s(m,d),f=s(l,d),m!==f&&(v&&f&&(a(f)||(p=i(f)))?(p?(p=!1,g=u&&i(u)?u:[]):g=u&&a(u)?u:{},o(m,{name:d,newValue:c(v,g,f)})):typeof f<"u"&&o(m,{name:d,newValue:f}));return m},Dr}var Od=Id();const Pr=hr(Od);function Br(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Md(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(c,...l){const d=e[++a];let u=-1;if(c){o(c);return}for(;++u<i.length;)(l[u]===null||l[u]===void 0)&&(l[u]=i[u]);i=l,d?Ld(d,s)(...l):o(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Ld(e,t){let n;return r;function r(...o){const s=e.length>o.length;let c;s&&o.push(i);try{c=e.apply(this,o)}catch(l){const d=l;if(s&&n)throw d;return i(d)}s||(c&&c.then&&typeof c.then=="function"?c.then(a,i):c instanceof Error?i(c):a(c))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const kt={basename:Rd,dirname:Dd,extname:Pd,join:Bd,sep:"/"};function Rd(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');yn(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Dd(e){if(yn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Pd(e){yn(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Bd(...e){let t=-1,n;for(;++t<e.length;)yn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Fd(n)}function Fd(e){yn(e);const t=e.codePointAt(0)===47;let n=zd(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function zd(e,t){let n="",r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function yn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ud={cwd:qd};function qd(){return"/"}function Fr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $d(e){if(typeof e=="string")e=new URL(e);else if(!Fr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Hd(e)}function Hd(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const zr=["history","path","basename","stem","extname","dirname"];class Oo{constructor(t){let n;t?Fr(t)?n={path:t}:typeof t=="string"||Gd(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Ud.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<zr.length;){const a=zr[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)zr.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?kt.basename(this.path):void 0}set basename(t){qr(t,"basename"),Ur(t,"basename"),this.path=kt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?kt.dirname(this.path):void 0}set dirname(t){Mo(this.basename,"dirname"),this.path=kt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?kt.extname(this.path):void 0}set extname(t){if(Ur(t,"extname"),Mo(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=kt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Fr(t)&&(t=$d(t)),qr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?kt.basename(this.path,this.extname):void 0}set stem(t){qr(t,"stem"),Ur(t,"stem"),this.path=kt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Be(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ur(e,t){if(e&&e.includes(kt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+kt.sep+"`")}function qr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Mo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Gd(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Wd=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Kd={}.hasOwnProperty;class $r extends Wd{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Md()}copy(){const t=new $r;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Pr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Wr("data",this.frozen),this.namespace[t]=n,this):Kd.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Wr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=zn(t),r=this.parser||this.Parser;return Hr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Hr("process",this.parser||this.Parser),Gr("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const s=zn(t),c=r.parse(s);r.run(c,s,function(d,u,f){if(d||!u||!f)return l(d);const p=u,g=r.stringify(p,f);Zd(g)?f.value=g:f.result=g,l(d,f)});function l(d,u){d||!u?o(d):a?a(u):n(void 0,u)}}}processSync(t){let n=!1,r;return this.freeze(),Hr("processSync",this.parser||this.Parser),Gr("processSync",this.compiler||this.Compiler),this.process(t,i),Ro("processSync","process",n),r;function i(a,o){n=!0,Ao(a),r=o}}run(t,n,r){Lo(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,s){const c=zn(n);i.run(t,c,l);function l(d,u,f){const p=u||t;d?s(d):o?o(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),Ro("runSync","run",r),i;function a(o,s){Ao(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=zn(n),i=this.compiler||this.Compiler;return Gr("stringify",i),Lo(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Wr("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[d,...u]=l;c(d,u)}else o(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function o(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(l.plugins),l.settings&&(i.settings=Pr(!0,i.settings,l.settings))}function s(l){let d=-1;if(l!=null)if(Array.isArray(l))for(;++d<l.length;){const u=l[d];a(u)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,d){let u=-1,f=-1;for(;++u<r.length;)if(r[u][0]===l){f=u;break}if(f===-1)r.push([l,...d]);else if(d.length>0){let[p,...g]=d;const m=r[f][1];Br(m)&&Br(p)&&(p=Pr(!0,m,p)),r[f]=[l,p,...g]}}}}const Vd=new $r().freeze();function Hr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Gr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Wr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Lo(e){if(!Br(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ro(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function zn(e){return Yd(e)?e:new Oo(e)}function Yd(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Zd(e){return typeof e=="string"||Xd(e)}function Xd(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const jd="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Do=[],Po={allowDangerousHtml:!0},Qd=/^(https?|ircs?|mailto|xmpp)$/i,Jd=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ep(e){const t=tp(e),n=np(e);return rp(t.runSync(t.parse(n),n),e)}function tp(e){const t=e.rehypePlugins||Do,n=e.remarkPlugins||Do,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Po}:Po;return Vd().use(Du).use(n).use(Ad,r).use(t)}function np(e){const t=e.children||"",n=new Oo;return typeof t=="string"&&(n.value=t),n}function rp(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||ip;for(const d of Jd)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+jd+d.id,void 0);return Fn(e,l),Tl(e,{Fragment:E.Fragment,components:i,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function l(d,u,f){if(d.type==="raw"&&f&&typeof u=="number")return o?f.children.splice(u,1):f.children[u]={type:"text",value:d.value},u;if(d.type==="element"){let p;for(p in Er)if(Object.hasOwn(Er,p)&&Object.hasOwn(d.properties,p)){const g=d.properties[p],m=Er[p];(m===null||m.includes(d.tagName))&&(d.properties[p]=c(String(g||""),p,d))}}if(d.type==="element"){let p=n?!n.includes(d.tagName):a?a.includes(d.tagName):!1;if(!p&&r&&typeof u=="number"&&(p=!r(d,u,f)),p&&f&&typeof u=="number")return s&&d.children?f.children.splice(u,1,...d.children):f.children.splice(u,1),u}}}function ip(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Qd.test(e.slice(0,t))?e:""}const Bo=(function(e,t,n){const r=kn(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),Kt=(function(e){if(e==null)return sp;if(typeof e=="string")return ap(e);if(typeof e=="object")return op(e);if(typeof e=="function")return Kr(e);throw new Error("Expected function, string, or array as `test`")});function op(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Kt(e[n]);return Kr(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function ap(e){return Kr(t);function t(n){return n.tagName===e}}function Kr(e){return t;function t(n,r,i){return!!(lp(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function sp(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function lp(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Fo=/\n/g,zo=/[\t ]+/g,Vr=Kt("br"),Uo=Kt(mp),cp=Kt("p"),qo=Kt("tr"),up=Kt(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",hp,bp]),$o=Kt(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function dp(e,t){const n=t||{},r="children"in e?e.children:[],i=$o(e),a=Wo(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...Go(e,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...Ho(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?Vr(r[s+1]):i}));const c=[];let l;for(s=-1;++s<o.length;){const d=o[s];typeof d=="number"?l!==void 0&&d>l&&(l=d):d&&(l!==void 0&&l>-1&&c.push(`
16
- `.repeat(l)||" "),l=-1,c.push(d))}return c.join("")}function Ho(e,t,n){return e.type==="element"?pp(e,t,n):e.type==="text"?n.whitespace==="normal"?Go(e,n):fp(e):[]}function pp(e,t,n){const r=Wo(e,n),i=e.children||[];let a=-1,o=[];if(up(e))return o;let s,c;for(Vr(e)||qo(e)&&Bo(t,e,qo)?c=`
17
- `:cp(e)?(s=2,c=2):$o(e)&&(s=1,c=1);++a<i.length;)o=o.concat(Ho(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?Vr(i[a+1]):c}));return Uo(e)&&Bo(t,e,Uo)&&o.push(" "),s&&o.unshift(s),c&&o.push(c),o}function Go(e,t){const n=String(e.value),r=[],i=[];let a=0;for(;a<=n.length;){Fo.lastIndex=a;const c=Fo.exec(n),l=c&&"index"in c?c.index:n.length;r.push(gp(n.slice(a,l).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,l===n.length?t.breakAfter:!0)),a=l+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),s=void 0):r[o]?(typeof s=="number"&&i.push(s),i.push(r[o]),s=0):(o===0||o===r.length-1)&&i.push(0);return i}function fp(e){return[String(e.value)]}function gp(e,t,n){const r=[];let i=0,a;for(;i<e.length;){zo.lastIndex=i;const o=zo.exec(e);a=o?o.index:e.length,!i&&!a&&o&&!t&&r.push(""),i!==a&&r.push(e.slice(i,a)),i=o?a+o[0].length:a}return i!==a&&!n&&r.push(""),r.join(" ")}function Wo(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function hp(e){return!!(e.properties||{}).hidden}function mp(e){return e.tagName==="td"||e.tagName==="th"}function bp(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function kp(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],h=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:m,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},I={className:"function.dispatch",relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},_=[I,u,s,n,e.C_BLOCK_COMMENT_MODE,d,l],z={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:_.concat([{begin:/\(/,end:/\)/,keywords:C,contains:_.concat(["self"]),relevance:0}]),relevance:0},G={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(z,G,I,_,[u,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function yp(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=kp(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function wp(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);const c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},d={match:/\\'/},u={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],b=["true","false"],h={match:/(\/[a-z._-]+)+/},v=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],x=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],C=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],I=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:b,built_in:[...v,...x,"set","shopt",...C,...I]},contains:[p,e.SHEBANG(),g,u,a,o,h,s,c,l,d,n]}}function Ep(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",b={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},h=[u,s,n,e.C_BLOCK_COMMENT_MODE,d,l],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:h.concat([{begin:/\(/,end:/\)/,keywords:b,contains:h.concat(["self"]),relevance:0}]),relevance:0},x={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"</",contains:[].concat(v,x,h,[u,{begin:e.IDENT_RE+"::",keywords:b},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:u,strings:l,keywords:b}}}function vp(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],h=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],C={type:m,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},I={className:"function.dispatch",relevance:0,keywords:{_hint:h},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},_=[I,u,s,n,e.C_BLOCK_COMMENT_MODE,d,l],z={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:_.concat([{begin:/\(/,end:/\)/,keywords:C,contains:_.concat(["self"]),relevance:0}]),relevance:0},G={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:C,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(z,G,I,_,[u,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:C,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:C},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function xp(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(a),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=e.inherit(d,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:o},p=e.inherit(f,{illegal:/\n/}),g={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},b=e.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});f.contains=[m,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.C_BLOCK_COMMENT_MODE],p.contains=[b,g,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const h={variants:[l,m,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},v={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},x=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},h,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+x+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,v],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[h,c,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},C]}}const _p=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Sp=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Tp=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Np=[...Sp,...Tp],Cp=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Ap=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Ip=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Op=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Mp(e){const t=e.regex,n=_p(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Ap.join("|")+")"},{begin:":(:)?("+Ip.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Op.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Cp.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Np.join("|")+")\\b"}]}}function Lp(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Rp(e){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}function Dp(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function Pp(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,d=/'[^']*'/,u=t.either(c,l,d),f=t.concat(u,"(\\s*\\.\\s*",u,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:f,className:"attr",starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}var Qt="[0-9](_*[0-9])*",Un=`\\.(${Qt})`,qn="[0-9a-fA-F](_*[0-9a-fA-F])*",Ko={className:"number",variants:[{begin:`(\\b(${Qt})((${Un})|\\.)?|(${Un}))[eE][+-]?(${Qt})[fFdD]?\\b`},{begin:`\\b(${Qt})((${Un})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Un})[fFdD]?\\b`},{begin:`\\b(${Qt})[fFdD]\\b`},{begin:`\\b0[xX]((${qn})\\.?|(${qn})?\\.(${qn}))[pP][+-]?(${Qt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${qn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Vo(e,t,n){return n===-1?"":e.replace(t,r=>Vo(e,t,n-1))}function Bp(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+Vo("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),c={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},l={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:c,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:c,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Ko,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Ko,l]}}const Yo="[A-Za-z$_][0-9A-Za-z$_]*",Fp=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],zp=["true","false","null","undefined","NaN","Infinity"],Zo=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Xo=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],jo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Up=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],qp=[].concat(jo,Zo,Xo);function $p(e){const t=e.regex,n=(X,{after:be})=>{const k="</"+X[0].slice(1);return X.input.indexOf(k,be)!==-1},r=Yo,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,be)=>{const k=X[0].length+X.index,ue=X.input[k];if(ue==="<"||ue===","){be.ignoreMatch();return}ue===">"&&(n(X,{after:k})||be.ignoreMatch());let ae;const w=X.input.substring(k);if(ae=w.match(/^\s*=/)){be.ignoreMatch();return}if((ae=w.match(/^\s+extends\s+/))&&ae.index===0){be.ignoreMatch();return}}},s={$pattern:Yo,keyword:Fp,literal:zp,built_in:qp,"variable.language":Up},c="[0-9](_?[0-9])*",l=`\\.(${c})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${d})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${d})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},x=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,m,b,{match:/\$\d+/},u];f.contains=x.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(x)});const C=[].concat(v,f.contains),I=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(C)}]),_={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:I},z={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},G={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Zo,...Xo]}},W={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},S={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},R={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(X){return t.concat("(?!",X.join("|"),")")}const ee={match:t.concat(/\b/,P([...jo,"super","import"].map(X=>`${X}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Y={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",he={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:G},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),W,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,m,b,v,{match:/\$\d+/},u,G,{scope:"attr",match:r+t.lookahead(":"),relevance:0},he,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},S,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Y,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},ee,R,z,H,{match:/\$[(.]/}]}}function Hp(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var Jt="[0-9](_*[0-9])*",$n=`\\.(${Jt})`,Hn="[0-9a-fA-F](_*[0-9a-fA-F])*",Gp={className:"number",variants:[{begin:`(\\b(${Jt})((${$n})|\\.)?|(${$n}))[eE][+-]?(${Jt})[fFdD]?\\b`},{begin:`\\b(${Jt})((${$n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${$n})[fFdD]?\\b`},{begin:`\\b(${Jt})[fFdD]\\b`},{begin:`\\b0[xX]((${Hn})\\.?|(${Hn})?\\.(${Hn}))[pP][+-]?(${Jt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Hn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Wp(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(o);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},l=Gp,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),u={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=u;return f.variants[1].contains=[u],u.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,r,s,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[u,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,s,c,o,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,c]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
18
- `},l]}}const Kp=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Vp=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Yp=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Zp=[...Vp,...Yp],Xp=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Qo=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Jo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),jp=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),Qp=Qo.concat(Jo).sort().reverse();function Jp(e){const t=Kp(e),n=Qp,r="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",o=[],s=[],c=function(x){return{className:"string",begin:"~?"+x+".*?"+x}},l=function(x,C,I){return{className:x,begin:C,relevance:I}},d={$pattern:/[a-z-]+/,keyword:r,attribute:Xp.join(" ")},u={begin:"\\(",end:"\\)",contains:s,keywords:d,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c("'"),c('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,u,l("variable","@@?"+i,10),l("variable","@\\{"+i+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=s.concat({begin:/\{/,end:/\}/,contains:o}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},g={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+jp.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:s,relevance:0}},b={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},h={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,l("keyword","all\\b"),l("variable","@\\{"+i+"\\}"),{begin:"\\b("+Zp.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,l("selector-tag",a,0),l("selector-id","#"+a),l("selector-class","\\."+a,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Qo.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Jo.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},v={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[h]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,b,v,g,h,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function ef(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function tf(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,a,o]}}function nf(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},u=e.inherit(l,{contains:[]}),f=e.inherit(d,{contains:[]});l.contains.push(f),d.contains.push(u);let p=[n,c];return[l,d,u,f].forEach(h=>{h.contains=h.contains.concat(p)}),p=p.concat(l,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,a,l,d,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,c,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function rf(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function of(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,a,c],u=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(m,b,h="\\1")=>{const v=h==="\\1"?h:t.concat(h,b);return t.concat(t.concat("(?:",m,")"),b,/(?:\\.|[^\\\/])*?/,v,/(?:\\.|[^\\\/])*?/,h,r)},p=(m,b,h)=>t.concat(t.concat("(?:",m,")"),b,/(?:\\.|[^\\\/])*?/,h,r),g=[c,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:f("s|tr|y",t.either(...u,{capture:!0}))},{begin:f("s|tr|y","\\(","\\)")},{begin:f("s|tr|y","\\[","\\]")},{begin:f("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...u,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=g,o.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:g}}function af(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(Y,H)=>{H.data._beginMatch=Y[1]||Y[2]},"on:end":(Y,H)=>{H.data._beginMatch!==Y[1]&&H.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
19
- ]`,g={scope:"string",variants:[d,l,u,f]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],h=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],v=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:h,literal:(Y=>{const H=[];return Y.forEach(ne=>{H.push(ne),ne.toLowerCase()===ne?H.push(ne.toUpperCase()):H.push(ne.toLowerCase())}),H})(b),built_in:v},I=Y=>Y.map(H=>H.replace(/\|\d+$/,"")),_={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",I(v).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},z=t.concat(r,"\\b(?!\\()"),G={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),z],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),z],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},W={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},S={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[W,o,G,e.C_BLOCK_COMMENT_MODE,g,m,_]},R={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",I(h).join("\\b|"),"|",I(v).join("\\b|"),"\\b)"),r,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[S]};S.contains.push(R);const P=[W,G,e.C_BLOCK_COMMENT_MODE,g,m,_],ee={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...P]},...P,{scope:"meta",variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:C,contains:[ee,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},o,R,G,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",ee,o,G,e.C_BLOCK_COMMENT_MODE,g,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},g,m]}}function sf(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function lf(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function cf(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},d={begin:/\{\{/,relevance:0},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,d,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",p=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,g=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${p}))[eE][+-]?(${f})[jJ]?(?=${g})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${f})[jJ](?=${g})`}]},b={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},h={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",c,m,u,e.HASH_COMMENT_MODE]}]};return l.contains=[u,m,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[c,m,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},u,b,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[h]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,h,u]}]}}function uf(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function df(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[a,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function pf(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},f="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},_=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,l),relevance:0}].concat(c,l);d.contains=_,m.contains=_;const S=[{begin:/^\s*=>/,starts:{end:"$",contains:_}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:_}}];return l.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(S).concat(l).concat(_)}}function ff(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],c=["true","false","Some","None","Ok","Err"],l=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:d,keyword:s,literal:c,built_in:l},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:l,type:d}},{className:"punctuation",begin:"->"},a]}}const gf=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),hf=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],mf=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],bf=[...hf,...mf],kf=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),yf=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),wf=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ef=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function vf(e){const t=gf(e),n=wf,r=yf,i="@[a-z-]+",a="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+bf.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ef.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:kf.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function xf(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function _f(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],u=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=d,g=[...l,...c].filter(I=>!d.includes(I)),m={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},b={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},h={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function v(I){return t.concat(/\b/,t.either(...I.map(_=>_.replace(/\s+/,"\\s+"))),/\b/)}const x={scope:"keyword",match:v(f),relevance:0};function C(I,{exceptions:_,when:z}={}){const G=z;return _=_||[],I.map(W=>W.match(/\|\d+$/)||_.includes(W)?W:G(W)?`${W}|0`:W)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:C(g,{when:I=>I.length<3}),literal:a,type:s,built_in:u},contains:[{scope:"type",match:v(o)},x,h,m,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,b]}}function ea(e){return e?typeof e=="string"?e:e.source:null}function wn(e){return Ee("(?=",e,")")}function Ee(...e){return e.map(n=>ea(n)).join("")}function Sf(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function He(...e){return"("+(Sf(e).capture?"":"?:")+e.map(r=>ea(r)).join("|")+")"}const Yr=e=>Ee(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Tf=["Protocol","Type"].map(Yr),ta=["init","self"].map(Yr),Nf=["Any","Self"],Zr=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],na=["false","nil","true"],Cf=["assignment","associativity","higherThan","left","lowerThan","none","right"],Af=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],ra=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],ia=He(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),oa=He(ia,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Xr=Ee(ia,oa,"*"),aa=He(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Gn=He(aa,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),yt=Ee(aa,Gn,"*"),Wn=Ee(/[A-Z]/,Gn,"*"),If=["attached","autoclosure",Ee(/convention\(/,He("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Ee(/objc\(/,yt,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Of=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Mf(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,He(...Tf,...ta)],className:{2:"keyword"}},a={match:Ee(/\./,He(...Zr)),relevance:0},o=Zr.filter(fe=>typeof fe=="string").concat(["_|0"]),s=Zr.filter(fe=>typeof fe!="string").concat(Nf).map(Yr),c={variants:[{className:"keyword",match:He(...s,...ta)}]},l={$pattern:He(/\b\w+/,/#\w+/),keyword:o.concat(Af),literal:na},d=[i,a,c],u={match:Ee(/\./,He(...ra)),relevance:0},f={className:"built_in",match:Ee(/\b/,He(...ra),/(?=\()/)},p=[u,f],g={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:Xr},{match:`\\.(\\.|${oa})+`}]},b=[g,m],h="([0-9]_*)+",v="([0-9a-fA-F]_*)+",x={className:"number",relevance:0,variants:[{match:`\\b(${h})(\\.(${h}))?([eE][+-]?(${h}))?\\b`},{match:`\\b0x(${v})(\\.(${v}))?([pP][+-]?(${h}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},C=(fe="")=>({className:"subst",variants:[{match:Ee(/\\/,fe,/[0\\tnr"']/)},{match:Ee(/\\/,fe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),I=(fe="")=>({className:"subst",match:Ee(/\\/,fe,/[\t ]*(?:[\r\n]|\r\n)/)}),_=(fe="")=>({className:"subst",label:"interpol",begin:Ee(/\\/,fe,/\(/),end:/\)/}),z=(fe="")=>({begin:Ee(fe,/"""/),end:Ee(/"""/,fe),contains:[C(fe),I(fe),_(fe)]}),G=(fe="")=>({begin:Ee(fe,/"/),end:Ee(/"/,fe),contains:[C(fe),_(fe)]}),W={className:"string",variants:[z(),z("#"),z("##"),z("###"),G(),G("#"),G("##"),G("###")]},S=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],R={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:S},P=fe=>{const rt=Ee(fe,/\//),pt=Ee(/\//,fe);return{begin:rt,end:pt,contains:[...S,{scope:"comment",begin:`#(?!.*${pt})`,end:/$/}]}},ee={scope:"regexp",variants:[P("###"),P("##"),P("#"),R]},Y={match:Ee(/`/,yt,/`/)},H={className:"variable",match:/\$\d+/},ne={className:"variable",match:`\\$${Gn}+`},he=[Y,H,ne],X={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Of,contains:[...b,x,W]}]}},be={scope:"keyword",match:Ee(/@/,He(...If),wn(He(/\(/,/\s+/)))},k={scope:"meta",match:Ee(/@/,yt)},ue=[X,be,k],ae={match:wn(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Ee(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Gn,"+")},{className:"type",match:Wn,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Ee(/\s+&\s+/,wn(Wn)),relevance:0}]},w={begin:/</,end:/>/,keywords:l,contains:[...r,...d,...ue,g,ae]};ae.contains.push(w);const ye={match:Ee(yt,/\s*:/),keywords:"_|0",relevance:0},je={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",ye,...r,ee,...d,...p,...b,x,W,...he,...ue,ae]},Ne={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,ae]},at={begin:He(wn(Ee(yt,/\s*:/)),wn(Ee(yt,/\s+/,yt,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:yt}]},_e={begin:/\(/,end:/\)/,keywords:l,contains:[at,...r,...d,...b,x,W,...ue,ae,je],endsParent:!0,illegal:/["']/},st={match:[/(func|macro)/,/\s+/,He(Y.match,yt,Xr)],className:{1:"keyword",3:"title.function"},contains:[Ne,_e,t],illegal:[/\[/,/%/]},Oe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ne,_e,t],illegal:/\[|%/},Et={match:[/operator/,/\s+/,Xr],className:{1:"keyword",3:"title"}},Ft={begin:[/precedencegroup/,/\s+/,Wn],className:{1:"keyword",3:"title"},contains:[ae],keywords:[...Cf,...na],end:/}/},zt={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},vt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},It={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,yt,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:l,contains:[Ne,...d,{begin:/:/,end:/\{/,keywords:l,contains:[{scope:"title.class.inherited",match:Wn},...d],relevance:0}]};for(const fe of W.variants){const rt=fe.contains.find(lt=>lt.label==="interpol");rt.keywords=l;const pt=[...d,...p,...b,x,W,...he];rt.contains=[...pt,{begin:/\(/,end:/\)/,contains:["self",...pt]}]}return{name:"Swift",keywords:l,contains:[...r,st,Oe,zt,vt,It,Et,Ft,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},ee,...d,...p,...b,x,W,...he,...ue,ae,je]}}const Kn="[A-Za-z$_][0-9A-Za-z$_]*",sa=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],la=["true","false","null","undefined","NaN","Infinity"],ca=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ua=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],da=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],pa=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],fa=[].concat(da,ca,ua);function Lf(e){const t=e.regex,n=(X,{after:be})=>{const k="</"+X[0].slice(1);return X.input.indexOf(k,be)!==-1},r=Kn,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,be)=>{const k=X[0].length+X.index,ue=X.input[k];if(ue==="<"||ue===","){be.ignoreMatch();return}ue===">"&&(n(X,{after:k})||be.ignoreMatch());let ae;const w=X.input.substring(k);if(ae=w.match(/^\s*=/)){be.ignoreMatch();return}if((ae=w.match(/^\s+extends\s+/))&&ae.index===0){be.ignoreMatch();return}}},s={$pattern:Kn,keyword:sa,literal:la,built_in:fa,"variable.language":pa},c="[0-9](_?[0-9])*",l=`\\.(${c})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${d})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${d})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},x=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,m,b,{match:/\$\d+/},u];f.contains=x.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(x)});const C=[].concat(v,f.contains),I=C.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(C)}]),_={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:I},z={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},G={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ca,...ua]}},W={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},S={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},R={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(X){return t.concat("(?!",X.join("|"),")")}const ee={match:t.concat(/\b/,P([...da,"super","import"].map(X=>`${X}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Y={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},H={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",he={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:G},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),W,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,m,b,v,{match:/\$\d+/},u,G,{scope:"attr",match:r+t.lookahead(":"),relevance:0},he,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},S,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Y,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},ee,R,z,H,{match:/\$[(.]/}]}}function Rf(e){const t=e.regex,n=Lf(e),r=Kn,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:Kn,keyword:sa.concat(c),literal:la,built_in:fa.concat(i),"variable.language":pa},d={className:"meta",begin:"@"+r},u=(m,b,h)=>{const v=m.contains.findIndex(x=>x.label===b);if(v===-1)throw new Error("can not find mode to replace");m.contains.splice(v,1,h)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(d);const f=n.contains.find(m=>m.scope==="attr"),p=Object.assign({},f,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,f,p]),n.contains=n.contains.concat([d,a,o,p]),u(n,"shebang",e.SHEBANG()),u(n,"use_strict",s);const g=n.contains.find(m=>m.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function Df(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},u=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,c,l,d,u,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function Pf(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,o,i,e.QUOTE_STRING_MODE,c,l,s]}}function Bf(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Ff(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),f={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},b=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},f,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,m,a,o],h=[...b];return h.pop(),h.push(s),p.contains=h,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}const zf={arduino:yp,bash:wp,c:Ep,cpp:vp,csharp:xp,css:Mp,diff:Lp,go:Rp,graphql:Dp,ini:Pp,java:Bp,javascript:$p,json:Hp,kotlin:Wp,less:Jp,lua:ef,makefile:tf,markdown:nf,objectivec:rf,perl:of,php:af,"php-template":sf,plaintext:lf,python:cf,"python-repl":uf,r:df,ruby:pf,rust:ff,scss:vf,shell:xf,sql:_f,swift:Mf,typescript:Rf,vbnet:Df,wasm:Pf,xml:Bf,yaml:Ff};var jr,ga;function Uf(){if(ga)return jr;ga=1;function e(y){return y instanceof Map?y.clear=y.delete=y.set=function(){throw new Error("map is read-only")}:y instanceof Set&&(y.add=y.clear=y.delete=function(){throw new Error("set is read-only")}),Object.freeze(y),Object.getOwnPropertyNames(y).forEach(N=>{const O=y[N],Z=typeof O;(Z==="object"||Z==="function")&&!Object.isFrozen(O)&&e(O)}),y}class t{constructor(N){N.data===void 0&&(N.data={}),this.data=N.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(y){return y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(y,...N){const O=Object.create(null);for(const Z in y)O[Z]=y[Z];return N.forEach(function(Z){for(const Ce in Z)O[Ce]=Z[Ce]}),O}const i="</span>",a=y=>!!y.scope,o=(y,{prefix:N})=>{if(y.startsWith("language:"))return y.replace("language:","language-");if(y.includes(".")){const O=y.split(".");return[`${N}${O.shift()}`,...O.map((Z,Ce)=>`${Z}${"_".repeat(Ce+1)}`)].join(" ")}return`${N}${y}`};class s{constructor(N,O){this.buffer="",this.classPrefix=O.classPrefix,N.walk(this)}addText(N){this.buffer+=n(N)}openNode(N){if(!a(N))return;const O=o(N.scope,{prefix:this.classPrefix});this.span(O)}closeNode(N){a(N)&&(this.buffer+=i)}value(){return this.buffer}span(N){this.buffer+=`<span class="${N}">`}}const c=(y={})=>{const N={children:[]};return Object.assign(N,y),N};class l{constructor(){this.rootNode=c(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(N){this.top.children.push(N)}openNode(N){const O=c({scope:N});this.add(O),this.stack.push(O)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(N){return this.constructor._walk(N,this.rootNode)}static _walk(N,O){return typeof O=="string"?N.addText(O):O.children&&(N.openNode(O),O.children.forEach(Z=>this._walk(N,Z)),N.closeNode(O)),N}static _collapse(N){typeof N!="string"&&N.children&&(N.children.every(O=>typeof O=="string")?N.children=[N.children.join("")]:N.children.forEach(O=>{l._collapse(O)}))}}class d extends l{constructor(N){super(),this.options=N}addText(N){N!==""&&this.add(N)}startScope(N){this.openNode(N)}endScope(){this.closeNode()}__addSublanguage(N,O){const Z=N.root;O&&(Z.scope=`language:${O}`),this.add(Z)}toHTML(){return new s(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(y){return y?typeof y=="string"?y:y.source:null}function f(y){return m("(?=",y,")")}function p(y){return m("(?:",y,")*")}function g(y){return m("(?:",y,")?")}function m(...y){return y.map(O=>u(O)).join("")}function b(y){const N=y[y.length-1];return typeof N=="object"&&N.constructor===Object?(y.splice(y.length-1,1),N):{}}function h(...y){return"("+(b(y).capture?"":"?:")+y.map(Z=>u(Z)).join("|")+")"}function v(y){return new RegExp(y.toString()+"|").exec("").length-1}function x(y,N){const O=y&&y.exec(N);return O&&O.index===0}const C=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function I(y,{joinWith:N}){let O=0;return y.map(Z=>{O+=1;const Ce=O;let ke=u(Z),$="";for(;ke.length>0;){const F=C.exec(ke);if(!F){$+=ke;break}$+=ke.substring(0,F.index),ke=ke.substring(F.index+F[0].length),F[0][0]==="\\"&&F[1]?$+="\\"+String(Number(F[1])+Ce):($+=F[0],F[0]==="("&&O++)}return $}).map(Z=>`(${Z})`).join(N)}const _=/\b\B/,z="[a-zA-Z]\\w*",G="[a-zA-Z_]\\w*",W="\\b\\d+(\\.\\d+)?",S="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",R="\\b(0b[01]+)",P="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ee=(y={})=>{const N=/^#![ ]*\//;return y.binary&&(y.begin=m(N,/.*\b/,y.binary,/\b.*/)),r({scope:"meta",begin:N,end:/$/,relevance:0,"on:begin":(O,Z)=>{O.index!==0&&Z.ignoreMatch()}},y)},Y={begin:"\\\\[\\s\\S]",relevance:0},H={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Y]},ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Y]},he={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(y,N,O={}){const Z=r({scope:"comment",begin:y,end:N,contains:[]},O);Z.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ce=h("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Z.contains.push({begin:m(/[ ]+/,"(",Ce,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Z},be=X("//","$"),k=X("/\\*","\\*/"),ue=X("#","$"),ae={scope:"number",begin:W,relevance:0},w={scope:"number",begin:S,relevance:0},ye={scope:"number",begin:R,relevance:0},je={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Y,{begin:/\[/,end:/\]/,relevance:0,contains:[Y]}]},Ne={scope:"title",begin:z,relevance:0},at={scope:"title",begin:G,relevance:0},_e={begin:"\\.\\s*"+G,relevance:0};var Oe=Object.freeze({__proto__:null,APOS_STRING_MODE:H,BACKSLASH_ESCAPE:Y,BINARY_NUMBER_MODE:ye,BINARY_NUMBER_RE:R,COMMENT:X,C_BLOCK_COMMENT_MODE:k,C_LINE_COMMENT_MODE:be,C_NUMBER_MODE:w,C_NUMBER_RE:S,END_SAME_AS_BEGIN:function(y){return Object.assign(y,{"on:begin":(N,O)=>{O.data._beginMatch=N[1]},"on:end":(N,O)=>{O.data._beginMatch!==N[1]&&O.ignoreMatch()}})},HASH_COMMENT_MODE:ue,IDENT_RE:z,MATCH_NOTHING_RE:_,METHOD_GUARD:_e,NUMBER_MODE:ae,NUMBER_RE:W,PHRASAL_WORDS_MODE:he,QUOTE_STRING_MODE:ne,REGEXP_MODE:je,RE_STARTERS_RE:P,SHEBANG:ee,TITLE_MODE:Ne,UNDERSCORE_IDENT_RE:G,UNDERSCORE_TITLE_MODE:at});function Et(y,N){y.input[y.index-1]==="."&&N.ignoreMatch()}function Ft(y,N){y.className!==void 0&&(y.scope=y.className,delete y.className)}function zt(y,N){N&&y.beginKeywords&&(y.begin="\\b("+y.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",y.__beforeBegin=Et,y.keywords=y.keywords||y.beginKeywords,delete y.beginKeywords,y.relevance===void 0&&(y.relevance=0))}function vt(y,N){Array.isArray(y.illegal)&&(y.illegal=h(...y.illegal))}function It(y,N){if(y.match){if(y.begin||y.end)throw new Error("begin & end are not supported with match");y.begin=y.match,delete y.match}}function fe(y,N){y.relevance===void 0&&(y.relevance=1)}const rt=(y,N)=>{if(!y.beforeMatch)return;if(y.starts)throw new Error("beforeMatch cannot be used with starts");const O=Object.assign({},y);Object.keys(y).forEach(Z=>{delete y[Z]}),y.keywords=O.keywords,y.begin=m(O.beforeMatch,f(O.begin)),y.starts={relevance:0,contains:[Object.assign(O,{endsParent:!0})]},y.relevance=0,delete O.beforeMatch},pt=["of","and","for","in","not","or","if","then","parent","list","value"],lt="keyword";function ft(y,N,O=lt){const Z=Object.create(null);return typeof y=="string"?Ce(O,y.split(" ")):Array.isArray(y)?Ce(O,y):Object.keys(y).forEach(function(ke){Object.assign(Z,ft(y[ke],N,ke))}),Z;function Ce(ke,$){N&&($=$.map(F=>F.toLowerCase())),$.forEach(function(F){const Q=F.split("|");Z[Q[0]]=[ke,Qe(Q[0],Q[1])]})}}function Qe(y,N){return N?Number(N):Ue(y)?0:1}function Ue(y){return pt.includes(y.toLowerCase())}const ct={},gt=y=>{console.error(y)},rn=(y,...N)=>{console.log(`WARN: ${y}`,...N)},T=(y,N)=>{ct[`${y}/${N}`]||(console.log(`Deprecated as of ${y}. ${N}`),ct[`${y}/${N}`]=!0)},L=new Error;function j(y,N,{key:O}){let Z=0;const Ce=y[O],ke={},$={};for(let F=1;F<=N.length;F++)$[F+Z]=Ce[F],ke[F+Z]=!0,Z+=v(N[F-1]);y[O]=$,y[O]._emit=ke,y[O]._multi=!0}function oe(y){if(Array.isArray(y.begin)){if(y.skip||y.excludeBegin||y.returnBegin)throw gt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),L;if(typeof y.beginScope!="object"||y.beginScope===null)throw gt("beginScope must be object"),L;j(y,y.begin,{key:"beginScope"}),y.begin=I(y.begin,{joinWith:""})}}function me(y){if(Array.isArray(y.end)){if(y.skip||y.excludeEnd||y.returnEnd)throw gt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),L;if(typeof y.endScope!="object"||y.endScope===null)throw gt("endScope must be object"),L;j(y,y.end,{key:"endScope"}),y.end=I(y.end,{joinWith:""})}}function Ge(y){y.scope&&typeof y.scope=="object"&&y.scope!==null&&(y.beginScope=y.scope,delete y.scope)}function Je(y){Ge(y),typeof y.beginScope=="string"&&(y.beginScope={_wrap:y.beginScope}),typeof y.endScope=="string"&&(y.endScope={_wrap:y.endScope}),oe(y),me(y)}function et(y){function N($,F){return new RegExp(u($),"m"+(y.case_insensitive?"i":"")+(y.unicodeRegex?"u":"")+(F?"g":""))}class O{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(F,Q){Q.position=this.position++,this.matchIndexes[this.matchAt]=Q,this.regexes.push([Q,F]),this.matchAt+=v(F)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const F=this.regexes.map(Q=>Q[1]);this.matcherRe=N(I(F,{joinWith:"|"}),!0),this.lastIndex=0}exec(F){this.matcherRe.lastIndex=this.lastIndex;const Q=this.matcherRe.exec(F);if(!Q)return null;const Re=Q.findIndex((Mt,_n)=>_n>0&&Mt!==void 0),Me=this.matchIndexes[Re];return Q.splice(0,Re),Object.assign(Q,Me)}}class Z{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(F){if(this.multiRegexes[F])return this.multiRegexes[F];const Q=new O;return this.rules.slice(F).forEach(([Re,Me])=>Q.addRule(Re,Me)),Q.compile(),this.multiRegexes[F]=Q,Q}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(F,Q){this.rules.push([F,Q]),Q.type==="begin"&&this.count++}exec(F){const Q=this.getMatcher(this.regexIndex);Q.lastIndex=this.lastIndex;let Re=Q.exec(F);if(this.resumingScanAtSamePosition()&&!(Re&&Re.index===this.lastIndex)){const Me=this.getMatcher(0);Me.lastIndex=this.lastIndex+1,Re=Me.exec(F)}return Re&&(this.regexIndex+=Re.position+1,this.regexIndex===this.count&&this.considerAll()),Re}}function Ce($){const F=new Z;return $.contains.forEach(Q=>F.addRule(Q.begin,{rule:Q,type:"begin"})),$.terminatorEnd&&F.addRule($.terminatorEnd,{type:"end"}),$.illegal&&F.addRule($.illegal,{type:"illegal"}),F}function ke($,F){const Q=$;if($.isCompiled)return Q;[Ft,It,Je,rt].forEach(Me=>Me($,F)),y.compilerExtensions.forEach(Me=>Me($,F)),$.__beforeBegin=null,[zt,vt,fe].forEach(Me=>Me($,F)),$.isCompiled=!0;let Re=null;return typeof $.keywords=="object"&&$.keywords.$pattern&&($.keywords=Object.assign({},$.keywords),Re=$.keywords.$pattern,delete $.keywords.$pattern),Re=Re||/\w+/,$.keywords&&($.keywords=ft($.keywords,y.case_insensitive)),Q.keywordPatternRe=N(Re,!0),F&&($.begin||($.begin=/\B|\b/),Q.beginRe=N(Q.begin),!$.end&&!$.endsWithParent&&($.end=/\B|\b/),$.end&&(Q.endRe=N(Q.end)),Q.terminatorEnd=u(Q.end)||"",$.endsWithParent&&F.terminatorEnd&&(Q.terminatorEnd+=($.end?"|":"")+F.terminatorEnd)),$.illegal&&(Q.illegalRe=N($.illegal)),$.contains||($.contains=[]),$.contains=[].concat(...$.contains.map(function(Me){return Ot(Me==="self"?$:Me)})),$.contains.forEach(function(Me){ke(Me,Q)}),$.starts&&ke($.starts,F),Q.matcher=Ce(Q),Q}if(y.compilerExtensions||(y.compilerExtensions=[]),y.contains&&y.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return y.classNameAliases=r(y.classNameAliases||{}),ke(y)}function xt(y){return y?y.endsWithParent||xt(y.starts):!1}function Ot(y){return y.variants&&!y.cachedVariants&&(y.cachedVariants=y.variants.map(function(N){return r(y,{variants:null},N)})),y.cachedVariants?y.cachedVariants:xt(y)?r(y,{starts:y.starts?r(y.starts):null}):Object.isFrozen(y)?r(y):y}var Se="11.11.1";class ht extends Error{constructor(N,O){super(N),this.name="HTMLInjectionError",this.html=O}}const We=n,on=r,Jn=Symbol("nomatch"),xs=7,_t=function(y){const N=Object.create(null),O=Object.create(null),Z=[];let Ce=!0;const ke="Could not find the language '{}', did you forget to load/include a language module?",$={disableAutodetect:!0,name:"Plain text",contains:[]};let F={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function Q(A){return F.noHighlightRe.test(A)}function Re(A){let q=A.className+" ";q+=A.parentNode?A.parentNode.className:"";const re=F.languageDetectRe.exec(q);if(re){const ie=St(re[1]);return ie||(rn(ke.replace("{}",re[1])),rn("Falling back to no-highlight mode for this block.",A)),ie?re[1]:"no-highlight"}return q.split(/\s+/).find(ie=>Q(ie)||St(ie))}function Me(A,q,re){let ie="",Ie="";typeof q=="object"?(ie=A,re=q.ignoreIllegals,Ie=q.language):(T("10.7.0","highlight(lang, code, ...args) has been deprecated."),T("10.7.0",`Please use highlight(code, options) instead.
20
- https://github.com/highlightjs/highlight.js/issues/2277`),Ie=A,ie=q),re===void 0&&(re=!0);const De={code:ie,language:Ie};le("before:highlight",De);const Ve=De.result?De.result:Mt(De.language,De.code,re);return Ve.code=De.code,le("after:highlight",Ve),Ve}function Mt(A,q,re,ie){const Ie=Object.create(null);function De(D,K){return D.keywords[K]}function Ve(){if(!te.keywords){Pe.addText(Te);return}let D=0;te.keywordPatternRe.lastIndex=0;let K=te.keywordPatternRe.exec(Te),se="";for(;K;){se+=Te.substring(D,K.index);const we=Nt.case_insensitive?K[0].toLowerCase():K[0],qe=De(te,we);if(qe){const[Rt,fb]=qe;if(Pe.addText(se),se="",Ie[we]=(Ie[we]||0)+1,Ie[we]<=xs&&(sr+=fb),Rt.startsWith("_"))se+=K[0];else{const gb=Nt.classNameAliases[Rt]||Rt;Tt(K[0],gb)}}else se+=K[0];D=te.keywordPatternRe.lastIndex,K=te.keywordPatternRe.exec(Te)}se+=Te.substring(D),Pe.addText(se)}function sn(){if(Te==="")return;let D=null;if(typeof te.subLanguage=="string"){if(!N[te.subLanguage]){Pe.addText(Te);return}D=Mt(te.subLanguage,Te,!0,Cs[te.subLanguage]),Cs[te.subLanguage]=D._top}else D=Sn(Te,te.subLanguage.length?te.subLanguage:null);te.relevance>0&&(sr+=D.relevance),Pe.__addSublanguage(D._emitter,D.language)}function Ye(){te.subLanguage!=null?sn():Ve(),Te=""}function Tt(D,K){D!==""&&(Pe.startScope(K),Pe.addText(D),Pe.endScope())}function _s(D,K){let se=1;const we=K.length-1;for(;se<=we;){if(!D._emit[se]){se++;continue}const qe=Nt.classNameAliases[D[se]]||D[se],Rt=K[se];qe?Tt(Rt,qe):(Te=Rt,Ve(),Te=""),se++}}function Ss(D,K){return D.scope&&typeof D.scope=="string"&&Pe.openNode(Nt.classNameAliases[D.scope]||D.scope),D.beginScope&&(D.beginScope._wrap?(Tt(Te,Nt.classNameAliases[D.beginScope._wrap]||D.beginScope._wrap),Te=""):D.beginScope._multi&&(_s(D.beginScope,K),Te="")),te=Object.create(D,{parent:{value:te}}),te}function Ts(D,K,se){let we=x(D.endRe,se);if(we){if(D["on:end"]){const qe=new t(D);D["on:end"](K,qe),qe.isMatchIgnored&&(we=!1)}if(we){for(;D.endsParent&&D.parent;)D=D.parent;return D}}if(D.endsWithParent)return Ts(D.parent,K,se)}function lb(D){return te.matcher.regexIndex===0?(Te+=D[0],1):(gi=!0,0)}function cb(D){const K=D[0],se=D.rule,we=new t(se),qe=[se.__beforeBegin,se["on:begin"]];for(const Rt of qe)if(Rt&&(Rt(D,we),we.isMatchIgnored))return lb(K);return se.skip?Te+=K:(se.excludeBegin&&(Te+=K),Ye(),!se.returnBegin&&!se.excludeBegin&&(Te=K)),Ss(se,D),se.returnBegin?0:K.length}function ub(D){const K=D[0],se=q.substring(D.index),we=Ts(te,D,se);if(!we)return Jn;const qe=te;te.endScope&&te.endScope._wrap?(Ye(),Tt(K,te.endScope._wrap)):te.endScope&&te.endScope._multi?(Ye(),_s(te.endScope,D)):qe.skip?Te+=K:(qe.returnEnd||qe.excludeEnd||(Te+=K),Ye(),qe.excludeEnd&&(Te=K));do te.scope&&Pe.closeNode(),!te.skip&&!te.subLanguage&&(sr+=te.relevance),te=te.parent;while(te!==we.parent);return we.starts&&Ss(we.starts,D),qe.returnEnd?0:K.length}function db(){const D=[];for(let K=te;K!==Nt;K=K.parent)K.scope&&D.unshift(K.scope);D.forEach(K=>Pe.openNode(K))}let ar={};function Ns(D,K){const se=K&&K[0];if(Te+=D,se==null)return Ye(),0;if(ar.type==="begin"&&K.type==="end"&&ar.index===K.index&&se===""){if(Te+=q.slice(K.index,K.index+1),!Ce){const we=new Error(`0 width match regex (${A})`);throw we.languageName=A,we.badRule=ar.rule,we}return 1}if(ar=K,K.type==="begin")return cb(K);if(K.type==="illegal"&&!re){const we=new Error('Illegal lexeme "'+se+'" for mode "'+(te.scope||"<unnamed>")+'"');throw we.mode=te,we}else if(K.type==="end"){const we=ub(K);if(we!==Jn)return we}if(K.type==="illegal"&&se==="")return Te+=`
21
- `,1;if(fi>1e5&&fi>K.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Te+=se,se.length}const Nt=St(A);if(!Nt)throw gt(ke.replace("{}",A)),new Error('Unknown language: "'+A+'"');const pb=et(Nt);let pi="",te=ie||pb;const Cs={},Pe=new F.__emitter(F);db();let Te="",sr=0,Yt=0,fi=0,gi=!1;try{if(Nt.__emitTokens)Nt.__emitTokens(q,Pe);else{for(te.matcher.considerAll();;){fi++,gi?gi=!1:te.matcher.considerAll(),te.matcher.lastIndex=Yt;const D=te.matcher.exec(q);if(!D)break;const K=q.substring(Yt,D.index),se=Ns(K,D);Yt=D.index+se}Ns(q.substring(Yt))}return Pe.finalize(),pi=Pe.toHTML(),{language:A,value:pi,relevance:sr,illegal:!1,_emitter:Pe,_top:te}}catch(D){if(D.message&&D.message.includes("Illegal"))return{language:A,value:We(q),illegal:!0,relevance:0,_illegalBy:{message:D.message,index:Yt,context:q.slice(Yt-100,Yt+100),mode:D.mode,resultSoFar:pi},_emitter:Pe};if(Ce)return{language:A,value:We(q),illegal:!1,relevance:0,errorRaised:D,_emitter:Pe,_top:te};throw D}}function _n(A){const q={value:We(A),illegal:!1,relevance:0,_top:$,_emitter:new F.__emitter(F)};return q._emitter.addText(A),q}function Sn(A,q){q=q||F.languages||Object.keys(N);const re=_n(A),ie=q.filter(St).filter(or).map(Ye=>Mt(Ye,A,!1));ie.unshift(re);const Ie=ie.sort((Ye,Tt)=>{if(Ye.relevance!==Tt.relevance)return Tt.relevance-Ye.relevance;if(Ye.language&&Tt.language){if(St(Ye.language).supersetOf===Tt.language)return 1;if(St(Tt.language).supersetOf===Ye.language)return-1}return 0}),[De,Ve]=Ie,sn=De;return sn.secondBest=Ve,sn}function er(A,q,re){const ie=q&&O[q]||re;A.classList.add("hljs"),A.classList.add(`language-${ie}`)}function Lt(A){let q=null;const re=Re(A);if(Q(re))return;if(le("before:highlightElement",{el:A,language:re}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(F.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),F.throwUnescapedHTML))throw new ht("One of your code blocks includes unescaped HTML.",A.innerHTML);q=A;const ie=q.textContent,Ie=re?Me(ie,{language:re,ignoreIllegals:!0}):Sn(ie);A.innerHTML=Ie.value,A.dataset.highlighted="yes",er(A,re,Ie.language),A.result={language:Ie.language,re:Ie.relevance,relevance:Ie.relevance},Ie.secondBest&&(A.secondBest={language:Ie.secondBest.language,relevance:Ie.secondBest.relevance}),le("after:highlightElement",{el:A,result:Ie,text:ie})}function Ke(A){F=on(F,A)}const mt=()=>{an(),T("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function tr(){an(),T("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let nr=!1;function an(){function A(){an()}if(document.readyState==="loading"){nr||window.addEventListener("DOMContentLoaded",A,!1),nr=!0;return}document.querySelectorAll(F.cssSelector).forEach(Lt)}function Tn(A,q){let re=null;try{re=q(y)}catch(ie){if(gt("Language definition for '{}' could not be registered.".replace("{}",A)),Ce)gt(ie);else throw ie;re=$}re.name||(re.name=A),N[A]=re,re.rawDefinition=q.bind(null,y),re.aliases&&ir(re.aliases,{languageName:A})}function rr(A){delete N[A];for(const q of Object.keys(O))O[q]===A&&delete O[q]}function bt(){return Object.keys(N)}function St(A){return A=(A||"").toLowerCase(),N[A]||N[O[A]]}function ir(A,{languageName:q}){typeof A=="string"&&(A=[A]),A.forEach(re=>{O[re.toLowerCase()]=q})}function or(A){const q=St(A);return q&&!q.disableAutodetect}function B(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=q=>{A["before:highlightBlock"](Object.assign({block:q.el},q))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=q=>{A["after:highlightBlock"](Object.assign({block:q.el},q))})}function ge(A){B(A),Z.push(A)}function de(A){const q=Z.indexOf(A);q!==-1&&Z.splice(q,1)}function le(A,q){const re=A;Z.forEach(function(ie){ie[re]&&ie[re](q)})}function Ae(A){return T("10.7.0","highlightBlock will be removed entirely in v12.0"),T("10.7.0","Please use highlightElement now."),Lt(A)}Object.assign(y,{highlight:Me,highlightAuto:Sn,highlightAll:an,highlightElement:Lt,highlightBlock:Ae,configure:Ke,initHighlighting:mt,initHighlightingOnLoad:tr,registerLanguage:Tn,unregisterLanguage:rr,listLanguages:bt,getLanguage:St,registerAliases:ir,autoDetection:or,inherit:on,addPlugin:ge,removePlugin:de}),y.debugMode=function(){Ce=!1},y.safeMode=function(){Ce=!0},y.versionString=Se,y.regex={concat:m,lookahead:f,either:h,optional:g,anyNumberOfTimes:p};for(const A in Oe)typeof Oe[A]=="object"&&e(Oe[A]);return Object.assign(y,Oe),y},Ut=_t({});return Ut.newInstance=()=>_t({}),jr=Ut,Ut.HighlightJS=Ut,Ut.default=Ut,jr}var qf=Uf();const $f=hr(qf),ha={},Hf="hljs-";function Gf(e){const t=$f.newInstance();return e&&a(e),{highlight:n,highlightAuto:r,listLanguages:i,register:a,registerAlias:o,registered:s};function n(c,l,d){const u=d||ha,f=typeof u.prefix=="string"?u.prefix:Hf;if(!t.getLanguage(c))throw new Error("Unknown language: `"+c+"` is not registered");t.configure({__emitter:Wf,classPrefix:f});const p=t.highlight(l,{ignoreIllegals:!0,language:c});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const g=p._emitter.root,m=g.data;return m.language=p.language,m.relevance=p.relevance,g}function r(c,l){const u=(l||ha).subset||i();let f=-1,p=0,g;for(;++f<u.length;){const m=u[f];if(!t.getLanguage(m))continue;const b=n(m,c,l);b.data&&b.data.relevance!==void 0&&b.data.relevance>p&&(p=b.data.relevance,g=b)}return g||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function a(c,l){if(typeof c=="string")t.registerLanguage(c,l);else{let d;for(d in c)Object.hasOwn(c,d)&&t.registerLanguage(d,c[d])}}function o(c,l){if(typeof c=="string")t.registerAliases(typeof l=="string"?l:[...l],{languageName:c});else{let d;for(d in c)if(Object.hasOwn(c,d)){const u=c[d];t.registerAliases(typeof u=="string"?u:[...u],{languageName:d})}}}function s(c){return!!t.getLanguage(c)}}class Wf{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(o,s){return s?o+"_".repeat(s):n.options.classPrefix+o}),i=this.stack[this.stack.length-1],a={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(a),this.stack.push(a)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const Kf={};function Vf(e){const t=e||Kf,n=t.aliases,r=t.detect||!1,i=t.languages||zf,a=t.plainText,o=t.prefix,s=t.subset;let c="hljs";const l=Gf(i);if(n&&l.registerAlias(n),o){const d=o.indexOf("-");c=d===-1?o:o.slice(0,d)}return function(d,u){Fn(d,"element",function(f,p,g){if(f.tagName!=="code"||!g||g.type!=="element"||g.tagName!=="pre")return;const m=Yf(f);if(m===!1||!m&&!r||m&&a&&a.includes(m))return;Array.isArray(f.properties.className)||(f.properties.className=[]),f.properties.className.includes(c)||f.properties.className.unshift(c);const b=dp(f,{whitespace:"pre"});let h;try{h=m?l.highlight(m,b,{prefix:o}):l.highlightAuto(b,{prefix:o,subset:s})}catch(v){const x=v;if(m&&/Unknown language/.test(x.message)){u.message("Cannot highlight as `"+m+"`, it’s not registered",{ancestors:[g,f],cause:x,place:f.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw x}!m&&h.data&&h.data.language&&f.properties.className.push("language-"+h.data.language),h.children.length>0&&(f.children=h.children)})}}function Yf(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n<t.length;){const i=String(t[n]);if(i==="no-highlight"||i==="nohighlight")return!1;!r&&i.slice(0,5)==="lang-"&&(r=i.slice(5)),!r&&i.slice(0,9)==="language-"&&(r=i.slice(9))}return r}function ma(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Zf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Xf(e,t,n){const i=kn((n||{}).ignore||[]),a=jf(t);let o=-1;for(;++o<a.length;)To(e,"text",s);function s(l,d){let u=-1,f;for(;++u<d.length;){const p=d[u],g=f?f.children:void 0;if(i(p,g?g.indexOf(p):void 0,f))return;f=p}if(f)return c(l,d)}function c(l,d){const u=d[d.length-1],f=a[o][0],p=a[o][1];let g=0;const b=u.children.indexOf(l);let h=!1,v=[];f.lastIndex=0;let x=f.exec(l.value);for(;x;){const C=x.index,I={index:x.index,input:x.input,stack:[...d,l]};let _=p(...x,I);if(typeof _=="string"&&(_=_.length>0?{type:"text",value:_}:void 0),_===!1?f.lastIndex=C+1:(g!==C&&v.push({type:"text",value:l.value.slice(g,C)}),Array.isArray(_)?v.push(..._):_&&v.push(_),g=C+x[0].length,h=!0),!f.global)break;x=f.exec(l.value)}return h?(g<l.value.length&&v.push({type:"text",value:l.value.slice(g)}),u.children.splice(b,1,...v)):v=[l],b+v.length}}function jf(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Qf(i[0]),Jf(i[1])])}return t}function Qf(e){return typeof e=="string"?new RegExp(Zf(e),"g"):e}function Jf(e){return typeof e=="function"?e:function(){return e}}const Qr="phrasing",Jr=["autolink","link","image","label"];function eg(){return{transforms:[sg],enter:{literalAutolink:ng,literalAutolinkEmail:ei,literalAutolinkHttp:ei,literalAutolinkWww:ei},exit:{literalAutolink:ag,literalAutolinkEmail:og,literalAutolinkHttp:rg,literalAutolinkWww:ig}}}function tg(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Qr,notInConstruct:Jr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Qr,notInConstruct:Jr},{character:":",before:"[ps]",after:"\\/",inConstruct:Qr,notInConstruct:Jr}]}}function ng(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ei(e){this.config.enter.autolinkProtocol.call(this,e)}function rg(e){this.config.exit.autolinkProtocol.call(this,e)}function ig(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function og(e){this.config.exit.autolinkEmail.call(this,e)}function ag(e){this.exit(e)}function sg(e){Xf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lg],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),cg]],{ignore:["link","linkReference"]})}function lg(e,t,n,r,i){let a="";if(!ba(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!ug(n)))return!1;const o=dg(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function cg(e,t,n,r){return!ba(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ug(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function dg(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ma(e,"(");let a=ma(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function ba(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Gt(n)||An(n))&&(!t||n!==47)}ka.peek=wg;function pg(){this.buffer()}function fg(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function gg(){this.buffer()}function hg(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function mg(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=dt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bg(e){this.exit(e)}function kg(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=dt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function yg(e){this.exit(e)}function wg(){return"["}function ka(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function Eg(){return{enter:{gfmFootnoteCallString:pg,gfmFootnoteCall:fg,gfmFootnoteDefinitionLabelString:gg,gfmFootnoteDefinition:hg},exit:{gfmFootnoteCallString:mg,gfmFootnoteCall:bg,gfmFootnoteDefinitionLabelString:kg,gfmFootnoteDefinition:yg}}}function vg(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:ka},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const s=a.createTracker(o);let c=s.move("[^");const l=a.enter("footnoteDefinition"),d=a.enter("label");return c+=s.move(a.safe(a.associationId(r),{before:c,after:"]"})),d(),c+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),c+=s.move((t?`
22
- `:" ")+a.indentLines(a.containerFlow(r,s.current()),t?ya:xg))),l(),c}}function xg(e,t,n){return t===0?e:ya(e,t,n)}function ya(e,t,n){return(n?"":" ")+e}const _g=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wa.peek=Ag;function Sg(){return{canContainEols:["delete"],enter:{strikethrough:Ng},exit:{strikethrough:Cg}}}function Tg(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_g}],handlers:{delete:wa}}}function Ng(e){this.enter({type:"delete",children:[]},e)}function Cg(e){this.exit(e)}function wa(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Ag(){return"~"}function Ig(e){return e.length}function Og(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Ig,a=[],o=[],s=[],c=[];let l=0,d=-1;for(;++d<e.length;){const m=[],b=[];let h=-1;for(e[d].length>l&&(l=e[d].length);++h<e[d].length;){const v=Mg(e[d][h]);if(n.alignDelimiters!==!1){const x=i(v);b[h]=x,(c[h]===void 0||x>c[h])&&(c[h]=x)}m.push(v)}o[d]=m,s[d]=b}let u=-1;if(typeof r=="object"&&"length"in r)for(;++u<l;)a[u]=Ea(r[u]);else{const m=Ea(r);for(;++u<l;)a[u]=m}u=-1;const f=[],p=[];for(;++u<l;){const m=a[u];let b="",h="";m===99?(b=":",h=":"):m===108?b=":":m===114&&(h=":");let v=n.alignDelimiters===!1?1:Math.max(1,c[u]-b.length-h.length);const x=b+"-".repeat(v)+h;n.alignDelimiters!==!1&&(v=b.length+v+h.length,v>c[u]&&(c[u]=v),p[u]=v),f[u]=x}o.splice(1,0,f),s.splice(1,0,p),d=-1;const g=[];for(;++d<o.length;){const m=o[d],b=s[d];u=-1;const h=[];for(;++u<l;){const v=m[u]||"";let x="",C="";if(n.alignDelimiters!==!1){const I=c[u]-(b[u]||0),_=a[u];_===114?x=" ".repeat(I):_===99?I%2?(x=" ".repeat(I/2+.5),C=" ".repeat(I/2-.5)):(x=" ".repeat(I/2),C=x):C=" ".repeat(I)}n.delimiterStart!==!1&&!u&&h.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||u)&&h.push(" "),n.alignDelimiters!==!1&&h.push(x),h.push(v),n.alignDelimiters!==!1&&h.push(C),n.padding!==!1&&h.push(" "),(n.delimiterEnd!==!1||u!==l-1)&&h.push("|")}g.push(n.delimiterEnd===!1?h.join("").replace(/ +$/,""):h.join(""))}return g.join(`
23
- `)}function Mg(e){return e==null?"":String(e)}function Ea(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Lg(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),Rg);return i(),o}function Rg(e,t,n){return">"+(n?"":" ")+e}function Dg(e,t){return va(e,t.inConstruct,!0)&&!va(e,t.notInConstruct,!1)}function va(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function xa(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
24
- `&&Dg(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
25
- `}function Pg(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Bg(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Fg(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function zg(e,t,n,r){const i=Fg(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Bg(e,n)){const u=n.enter("codeIndented"),f=n.indentLines(a,Ug);return u(),f}const s=n.createTracker(r),c=i.repeat(Math.max(Pg(a,i)+1,3)),l=n.enter("codeFenced");let d=s.move(c);if(e.lang){const u=n.enter(`codeFencedLang${o}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),u()}if(e.lang&&e.meta){const u=n.enter(`codeFencedMeta${o}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
14
+ `}),n}function yo(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function wo(e,t){const n=Xu(e,t),r=n.one(e,void 0),i=Uu(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
15
+ `},i),a}function td(e,t){return e&&"run"in e?async function(n,r){const i=wo(n,{file:r,...t});await e.run(i,r)}:function(n,r){return wo(n,{file:r,...e||t})}}function Eo(e){if(e)throw e}var Or,xo;function nd(){if(xo)return Or;xo=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},a=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var d=e.call(l,"constructor"),u=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!u)return!1;var f;for(f in l);return typeof f>"u"||e.call(l,f)},o=function(l,d){n&&d.name==="__proto__"?n(l,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):l[d.name]=d.newValue},s=function(l,d){if(d==="__proto__")if(e.call(l,d)){if(r)return r(l,d).value}else return;return l[d]};return Or=function c(){var l,d,u,f,p,g,h=arguments[0],w=1,b=arguments.length,N=!1;for(typeof h=="boolean"&&(N=h,h=arguments[1]||{},w=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});w<b;++w)if(l=arguments[w],l!=null)for(d in l)u=s(h,d),f=s(l,d),h!==f&&(N&&f&&(a(f)||(p=i(f)))?(p?(p=!1,g=u&&i(u)?u:[]):g=u&&a(u)?u:{},o(h,{name:d,newValue:c(N,g,f)})):typeof f<"u"&&o(h,{name:d,newValue:f}));return h},Or}var rd=nd();const Mr=dr(rd);function Rr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function id(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(c,...l){const d=e[++a];let u=-1;if(c){o(c);return}for(;++u<i.length;)(l[u]===null||l[u]===void 0)&&(l[u]=i[u]);i=l,d?od(d,s)(...l):o(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function od(e,t){let n;return r;function r(...o){const s=e.length>o.length;let c;s&&o.push(i);try{c=e.apply(this,o)}catch(l){const d=l;if(s&&n)throw d;return i(d)}s||(c&&c.then&&typeof c.then=="function"?c.then(a,i):c instanceof Error?i(c):a(c))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const kt={basename:ad,dirname:sd,extname:ld,join:cd,sep:"/"};function ad(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');kn(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function sd(e){if(kn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ld(e){kn(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function cd(...e){let t=-1,n;for(;++t<e.length;)kn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ud(n)}function ud(e){kn(e);const t=e.codePointAt(0)===47;let n=dd(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function dd(e,t){let n="",r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=o,a=0;continue}}else if(n.length>0){n="",r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function kn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const pd={cwd:fd};function fd(){return"/"}function Lr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function gd(e){if(typeof e=="string")e=new URL(e);else if(!Lr(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return hd(e)}function hd(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Dr=["history","path","basename","stem","extname","dirname"];class _o{constructor(t){let n;t?Lr(t)?n={path:t}:typeof t=="string"||md(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":pd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Dr.length;){const a=Dr[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Dr.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?kt.basename(this.path):void 0}set basename(t){Br(t,"basename"),Pr(t,"basename"),this.path=kt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?kt.dirname(this.path):void 0}set dirname(t){vo(this.basename,"dirname"),this.path=kt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?kt.extname(this.path):void 0}set extname(t){if(Pr(t,"extname"),vo(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=kt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Lr(t)&&(t=gd(t)),Br(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?kt.basename(this.path,this.extname):void 0}set stem(t){Br(t,"stem"),Pr(t,"stem"),this.path=kt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Be(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Pr(e,t){if(e&&e.includes(kt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+kt.sep+"`")}function Br(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function vo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function md(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const bd=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),kd={}.hasOwnProperty;class Fr extends bd{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=id()}copy(){const t=new Fr;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Mr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(qr("data",this.frozen),this.namespace[t]=n,this):kd.call(this.namespace,t)&&this.namespace[t]||void 0:t?(qr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Fn(t),r=this.parser||this.Parser;return zr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),zr("process",this.parser||this.Parser),Ur("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const s=Fn(t),c=r.parse(s);r.run(c,s,function(d,u,f){if(d||!u||!f)return l(d);const p=u,g=r.stringify(p,f);Ed(g)?f.value=g:f.result=g,l(d,f)});function l(d,u){d||!u?o(d):a?a(u):n(void 0,u)}}}processSync(t){let n=!1,r;return this.freeze(),zr("processSync",this.parser||this.Parser),Ur("processSync",this.compiler||this.Compiler),this.process(t,i),No("processSync","process",n),r;function i(a,o){n=!0,Eo(a),r=o}}run(t,n,r){So(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(o,s){const c=Fn(n);i.run(t,c,l);function l(d,u,f){const p=u||t;d?s(d):o?o(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),No("runSync","run",r),i;function a(o,s){Eo(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=Fn(n),i=this.compiler||this.Compiler;return Ur("stringify",i),So(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(qr("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[d,...u]=l;c(d,u)}else o(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function o(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(l.plugins),l.settings&&(i.settings=Mr(!0,i.settings,l.settings))}function s(l){let d=-1;if(l!=null)if(Array.isArray(l))for(;++d<l.length;){const u=l[d];a(u)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,d){let u=-1,f=-1;for(;++u<r.length;)if(r[u][0]===l){f=u;break}if(f===-1)r.push([l,...d]);else if(d.length>0){let[p,...g]=d;const h=r[f][1];Rr(h)&&Rr(p)&&(p=Mr(!0,h,p)),r[f]=[l,p,...g]}}}}const yd=new Fr().freeze();function zr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ur(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function So(e){if(!Rr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function No(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Fn(e){return wd(e)?e:new _o(e)}function wd(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ed(e){return typeof e=="string"||xd(e)}function xd(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _d="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",To=[],Ao={allowDangerousHtml:!0},vd=/^(https?|ircs?|mailto|xmpp)$/i,Sd=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Nd(e){const t=Td(e),n=Ad(e);return Cd(t.runSync(t.parse(n),n),e)}function Td(e){const t=e.rehypePlugins||To,n=e.remarkPlugins||To,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ao}:Ao;return yd().use(su).use(n).use(td,r).use(t)}function Ad(e){const t=e.children||"",n=new _o;return typeof t=="string"&&(n.value=t),n}function Cd(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||Id;for(const d of Sd)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+_d+d.id,void 0);return Bn(e,l),js(e,{Fragment:E.Fragment,components:i,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.jsxs,passKeys:!0,passNode:!0});function l(d,u,f){if(d.type==="raw"&&f&&typeof u=="number")return o?f.children.splice(u,1):f.children[u]={type:"text",value:d.value},u;if(d.type==="element"){let p;for(p in br)if(Object.hasOwn(br,p)&&Object.hasOwn(d.properties,p)){const g=d.properties[p],h=br[p];(h===null||h.includes(d.tagName))&&(d.properties[p]=c(String(g||""),p,d))}}if(d.type==="element"){let p=n?!n.includes(d.tagName):a?a.includes(d.tagName):!1;if(!p&&r&&typeof u=="number"&&(p=!r(d,u,f)),p&&f&&typeof u=="number")return s&&d.children?f.children.splice(u,1,...d.children):f.children.splice(u,1),u}}}function Id(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||vd.test(e.slice(0,t))?e:""}const Co=(function(e,t,n){const r=bn(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),Wt=(function(e){if(e==null)return Rd;if(typeof e=="string")return Md(e);if(typeof e=="object")return Od(e);if(typeof e=="function")return $r(e);throw new Error("Expected function, string, or array as `test`")});function Od(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Wt(e[n]);return $r(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Md(e){return $r(t);function t(n){return n.tagName===e}}function $r(e){return t;function t(n,r,i){return!!(Ld(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Rd(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Ld(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Io=/\n/g,Oo=/[\t ]+/g,Hr=Wt("br"),Mo=Wt($d),Dd=Wt("p"),Ro=Wt("tr"),Pd=Wt(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",qd,Hd]),Lo=Wt(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Bd(e,t){const n=t||{},r="children"in e?e.children:[],i=Lo(e),a=Bo(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...Po(e,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...Do(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?Hr(r[s+1]):i}));const c=[];let l;for(s=-1;++s<o.length;){const d=o[s];typeof d=="number"?l!==void 0&&d>l&&(l=d):d&&(l!==void 0&&l>-1&&c.push(`
16
+ `.repeat(l)||" "),l=-1,c.push(d))}return c.join("")}function Do(e,t,n){return e.type==="element"?Fd(e,t,n):e.type==="text"?n.whitespace==="normal"?Po(e,n):zd(e):[]}function Fd(e,t,n){const r=Bo(e,n),i=e.children||[];let a=-1,o=[];if(Pd(e))return o;let s,c;for(Hr(e)||Ro(e)&&Co(t,e,Ro)?c=`
17
+ `:Dd(e)?(s=2,c=2):Lo(e)&&(s=1,c=1);++a<i.length;)o=o.concat(Do(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?Hr(i[a+1]):c}));return Mo(e)&&Co(t,e,Mo)&&o.push(" "),s&&o.unshift(s),c&&o.push(c),o}function Po(e,t){const n=String(e.value),r=[],i=[];let a=0;for(;a<=n.length;){Io.lastIndex=a;const c=Io.exec(n),l=c&&"index"in c?c.index:n.length;r.push(Ud(n.slice(a,l).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,l===n.length?t.breakAfter:!0)),a=l+1}let o=-1,s;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),s=void 0):r[o]?(typeof s=="number"&&i.push(s),i.push(r[o]),s=0):(o===0||o===r.length-1)&&i.push(0);return i}function zd(e){return[String(e.value)]}function Ud(e,t,n){const r=[];let i=0,a;for(;i<e.length;){Oo.lastIndex=i;const o=Oo.exec(e);a=o?o.index:e.length,!i&&!a&&o&&!t&&r.push(""),i!==a&&r.push(e.slice(i,a)),i=o?a+o[0].length:a}return i!==a&&!n&&r.push(""),r.join(" ")}function Bo(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function qd(e){return!!(e.properties||{}).hidden}function $d(e){return e.tagName==="td"||e.tagName==="th"}function Hd(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function Gd(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],h=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],w=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],O={type:h,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},R={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},x=[R,u,s,n,e.C_BLOCK_COMMENT_MODE,d,l],H={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:O,contains:x.concat([{begin:/\(/,end:/\)/,keywords:O,contains:x.concat(["self"]),relevance:0}]),relevance:0},K={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:O,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:O,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:O,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(H,K,R,x,[u,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:O,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:O},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Wd(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=Gd(e),r=n.keywords;return r.type=[...r.type,...t.type],r.literal=[...r.literal,...t.literal],r.built_in=[...r.built_in,...t.built_in],r._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function Kd(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);const c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},d={match:/\\'/},u={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=e.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],w=["true","false"],b={match:/(\/[a-z._-]+)+/},N=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],v=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],O=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:w,built_in:[...N,...v,"set","shopt",...O,...R]},contains:[p,e.SHEBANG(),g,u,a,o,b,s,c,l,d,n]}}function Vd(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",w={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},b=[u,s,n,e.C_BLOCK_COMMENT_MODE,d,l],N={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:b.concat([{begin:/\(/,end:/\)/,keywords:w,contains:b.concat(["self"]),relevance:0}]),relevance:0},v={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:w,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C",aliases:["h"],keywords:w,disableAutodetect:!0,illegal:"</",contains:[].concat(N,v,b,[u,{begin:e.IDENT_RE+"::",keywords:w},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:u,strings:l,keywords:w}}}function Yd(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},u={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",g=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],h=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],w=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],b=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],O={type:h,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},R={className:"function.dispatch",relevance:0,keywords:{_hint:b},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},x=[R,u,s,n,e.C_BLOCK_COMMENT_MODE,d,l],H={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:O,contains:x.concat([{begin:/\(/,end:/\)/,keywords:O,contains:x.concat(["self"]),relevance:0}]),relevance:0},K={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:O,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:O,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,l,d,s,{begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:O,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(H,K,R,x,[u,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:O,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:O},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Zd(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(a),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=e.inherit(d,{illegal:/\n/}),f={className:"subst",begin:/\{/,end:/\}/,keywords:o},p=e.inherit(f,{illegal:/\n/}),g={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,p]},h={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]},w=e.inherit(h,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});f.contains=[h,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.C_BLOCK_COMMENT_MODE],p.contains=[w,g,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,c,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const b={variants:[l,h,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},N={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},v=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",O={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},b,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,N,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,N,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+v+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,N],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[b,c,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},O]}}const Xd=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Qd=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],jd=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Jd=[...Qd,...jd],ep=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),tp=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),np=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),rp=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function ip(e){const t=e.regex,n=Xd(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+tp.join("|")+")"},{begin:":(:)?("+np.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+rp.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:ep.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Jd.join("|")+")\\b"}]}}function op(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function ap(e){const a={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}function sp(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function lp(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,d=/'[^']*'/,u=t.either(c,l,d),f=t.concat(u,"(\\s*\\.\\s*",u,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:f,className:"attr",starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}var Qt="[0-9](_*[0-9])*",zn=`\\.(${Qt})`,Un="[0-9a-fA-F](_*[0-9a-fA-F])*",Fo={className:"number",variants:[{begin:`(\\b(${Qt})((${zn})|\\.)?|(${zn}))[eE][+-]?(${Qt})[fFdD]?\\b`},{begin:`\\b(${Qt})((${zn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${zn})[fFdD]?\\b`},{begin:`\\b(${Qt})[fFdD]\\b`},{begin:`\\b0[xX]((${Un})\\.?|(${Un})?\\.(${Un}))[pP][+-]?(${Qt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Un})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function zo(e,t,n){return n===-1?"":e.replace(t,r=>zo(e,t,n-1))}function cp(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+zo("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),c={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},l={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:c,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:c,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[l,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Fo,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Fo,l]}}const Uo="[A-Za-z$_][0-9A-Za-z$_]*",up=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],dp=["true","false","null","undefined","NaN","Infinity"],qo=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],$o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ho=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],pp=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],fp=[].concat(Ho,qo,$o);function gp(e){const t=e.regex,n=(X,{after:be})=>{const m="</"+X[0].slice(1);return X.input.indexOf(m,be)!==-1},r=Uo,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,be)=>{const m=X[0].length+X.index,ue=X.input[m];if(ue==="<"||ue===","){be.ignoreMatch();return}ue===">"&&(n(X,{after:m})||be.ignoreMatch());let ae;const y=X.input.substring(m);if(ae=y.match(/^\s*=/)){be.ignoreMatch();return}if((ae=y.match(/^\s+extends\s+/))&&ae.index===0){be.ignoreMatch();return}}},s={$pattern:Uo,keyword:up,literal:dp,built_in:fp,"variable.language":pp},c="[0-9](_?[0-9])*",l=`\\.(${c})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${d})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${d})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},N={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,h,w,{match:/\$\d+/},u];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const O=[].concat(N,f.contains),R=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(O)}]),x={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},H={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},K={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...qo,...$o]}},G={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(X){return t.concat("(?!",X.join("|"),")")}const ee={match:t.concat(/\b/,P([...Ho,"super","import"].map(X=>`${X}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Y={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",he={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:K},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),G,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,h,w,N,{match:/\$\d+/},u,K,{scope:"attr",match:r+t.lookahead(":"),relevance:0},he,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[N,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},_,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Y,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},ee,L,H,$,{match:/\$[(.]/}]}}function hp(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var jt="[0-9](_*[0-9])*",qn=`\\.(${jt})`,$n="[0-9a-fA-F](_*[0-9a-fA-F])*",mp={className:"number",variants:[{begin:`(\\b(${jt})((${qn})|\\.)?|(${qn}))[eE][+-]?(${jt})[fFdD]?\\b`},{begin:`\\b(${jt})((${qn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${qn})[fFdD]?\\b`},{begin:`\\b(${jt})[fFdD]\\b`},{begin:`\\b0[xX]((${$n})\\.?|(${$n})?\\.(${$n}))[pP][+-]?(${jt})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${$n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function bp(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},a={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[a,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,a,i]}]};i.contains.push(o);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},l=mp,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),u={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=u;return f.variants[1].contains=[u],u.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,r,s,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[u,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,s,c,o,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,c]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
18
+ `},l]}}const kp=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),yp=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],wp=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ep=[...yp,...wp],xp=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Go=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Wo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),_p=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),vp=Go.concat(Wo).sort().reverse();function Sp(e){const t=kp(e),n=vp,r="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",o=[],s=[],c=function(v){return{className:"string",begin:"~?"+v+".*?"+v}},l=function(v,O,R){return{className:v,begin:O,relevance:R}},d={$pattern:/[a-z-]+/,keyword:r,attribute:xp.join(" ")},u={begin:"\\(",end:"\\)",contains:s,keywords:d,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c("'"),c('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,u,l("variable","@@?"+i,10),l("variable","@\\{"+i+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const f=s.concat({begin:/\{/,end:/\}/,contains:o}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},g={begin:a+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+_p.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},h={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:s,relevance:0}},w={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},b={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:a,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,l("keyword","all\\b"),l("variable","@\\{"+i+"\\}"),{begin:"\\b("+Ep.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,l("selector-tag",a,0),l("selector-id","#"+a),l("selector-class","\\."+a,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Go.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Wo.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},N={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[b]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,w,N,g,b,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function Np(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}function Tp(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,a,o]}}function Ap(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},u=e.inherit(l,{contains:[]}),f=e.inherit(d,{contains:[]});l.contains.push(f),d.contains.push(u);let p=[n,c];return[l,d,u,f].forEach(b=>{b.contains=b.contains.concat(p)}),p=p.concat(l,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,a,l,d,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,c,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function Cp(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,s={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function Ip(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,a,c],u=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(h,w,b="\\1")=>{const N=b==="\\1"?b:t.concat(b,w);return t.concat(t.concat("(?:",h,")"),w,/(?:\\.|[^\\\/])*?/,N,/(?:\\.|[^\\\/])*?/,b,r)},p=(h,w,b)=>t.concat(t.concat("(?:",h,")"),w,/(?:\\.|[^\\\/])*?/,b,r),g=[c,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:f("s|tr|y",t.either(...u,{capture:!0}))},{begin:f("s|tr|y","\\(","\\)")},{begin:f("s|tr|y","\\[","\\]")},{begin:f("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:p("(?:m|qr)?",/\//,/\//)},{begin:p("m|qr",t.either(...u,{capture:!0}),/\1/)},{begin:p("m|qr",/\(/,/\)/)},{begin:p("m|qr",/\[/,/\]/)},{begin:p("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=g,o.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:g}}function Op(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a=t.concat(/[A-Z]+/,n),o={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(c)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(Y,$)=>{$.data._beginMatch=Y[1]||Y[2]},"on:end":(Y,$)=>{$.data._beginMatch!==Y[1]&&$.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
19
+ ]`,g={scope:"string",variants:[d,l,u,f]},h={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},w=["false","null","true"],b=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],N=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],O={keyword:b,literal:(Y=>{const $=[];return Y.forEach(ne=>{$.push(ne),ne.toLowerCase()===ne?$.push(ne.toUpperCase()):$.push(ne.toLowerCase())}),$})(w),built_in:N},R=Y=>Y.map($=>$.replace(/\|\d+$/,"")),x={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",R(N).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},H=t.concat(r,"\\b(?!\\()"),K={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),H],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),H],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},G={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},_={relevance:0,begin:/\(/,end:/\)/,keywords:O,contains:[G,o,K,e.C_BLOCK_COMMENT_MODE,g,h,x]},L={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",R(b).join("\\b|"),"|",R(N).join("\\b|"),"\\b)"),r,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[_]};_.contains.push(L);const P=[G,K,e.C_BLOCK_COMMENT_MODE,g,h,x],ee={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:w,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:w,keyword:["new","array"]},contains:["self",...P]},...P,{scope:"meta",variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:O,contains:[ee,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},o,L,K,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},x,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:O,contains:["self",ee,o,K,e.C_BLOCK_COMMENT_MODE,g,h]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},g,h]}}function Mp(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function Rp(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Lp(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},d={begin:/\{\{/,relevance:0},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,d,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",p=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,g=`\\b|${r.join("|")}`,h={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${p}))[eE][+-]?(${f})[jJ]?(?=${g})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${f})[jJ](?=${g})`}]},w={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",c,h,u,e.HASH_COMMENT_MODE]}]};return l.contains=[u,h,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[c,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},u,w,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[h,b,u]}]}}function Dp(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Pp(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,a=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[a,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:a},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function Bp(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},f="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},x=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[h]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,l),relevance:0}].concat(c,l);d.contains=x,h.contains=x;const _=[{begin:/^\s*=>/,starts:{end:"$",contains:x}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:x}}];return l.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(_).concat(l).concat(x)}}function Fp(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),a={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},o="([ui](8|16|32|64|128|size)|f(32|64))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],c=["true","false","Some","None","Ok","Err"],l=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:d,keyword:s,literal:c,built_in:l},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+o},{begin:"\\b0o([0-7_]+)"+o},{begin:"\\b0x([A-Fa-f0-9_]+)"+o},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+o}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:l,type:d}},{className:"punctuation",begin:"->"},a]}}const zp=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Up=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],qp=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],$p=[...Up,...qp],Hp=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Gp=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Wp=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Kp=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Vp(e){const t=zp(e),n=Wp,r=Gp,i="@[a-z-]+",a="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+$p.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Kp.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:Hp.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function Yp(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Zp(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],u=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=d,g=[...l,...c].filter(R=>!d.includes(R)),h={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},w={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},b={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function N(R){return t.concat(/\b/,t.either(...R.map(x=>x.replace(/\s+/,"\\s+"))),/\b/)}const v={scope:"keyword",match:N(f),relevance:0};function O(R,{exceptions:x,when:H}={}){const K=H;return x=x||[],R.map(G=>G.match(/\|\d+$/)||x.includes(G)?G:K(G)?`${G}|0`:G)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:O(g,{when:R=>R.length<3}),literal:a,type:s,built_in:u},contains:[{scope:"type",match:N(o)},v,b,h,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,w]}}function Ko(e){return e?typeof e=="string"?e:e.source:null}function yn(e){return Ee("(?=",e,")")}function Ee(...e){return e.map(n=>Ko(n)).join("")}function Xp(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function He(...e){return"("+(Xp(e).capture?"":"?:")+e.map(r=>Ko(r)).join("|")+")"}const Gr=e=>Ee(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Qp=["Protocol","Type"].map(Gr),Vo=["init","self"].map(Gr),jp=["Any","Self"],Wr=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Yo=["false","nil","true"],Jp=["assignment","associativity","higherThan","left","lowerThan","none","right"],ef=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],Zo=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Xo=He(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Qo=He(Xo,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Kr=Ee(Xo,Qo,"*"),jo=He(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Hn=He(jo,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),yt=Ee(jo,Hn,"*"),Gn=Ee(/[A-Z]/,Hn,"*"),tf=["attached","autoclosure",Ee(/convention\(/,He("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Ee(/objc\(/,yt,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],nf=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function rf(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,He(...Qp,...Vo)],className:{2:"keyword"}},a={match:Ee(/\./,He(...Wr)),relevance:0},o=Wr.filter(fe=>typeof fe=="string").concat(["_|0"]),s=Wr.filter(fe=>typeof fe!="string").concat(jp).map(Gr),c={variants:[{className:"keyword",match:He(...s,...Vo)}]},l={$pattern:He(/\b\w+/,/#\w+/),keyword:o.concat(ef),literal:Yo},d=[i,a,c],u={match:Ee(/\./,He(...Zo)),relevance:0},f={className:"built_in",match:Ee(/\b/,He(...Zo),/(?=\()/)},p=[u,f],g={match:/->/,relevance:0},h={className:"operator",relevance:0,variants:[{match:Kr},{match:`\\.(\\.|${Qo})+`}]},w=[g,h],b="([0-9]_*)+",N="([0-9a-fA-F]_*)+",v={className:"number",relevance:0,variants:[{match:`\\b(${b})(\\.(${b}))?([eE][+-]?(${b}))?\\b`},{match:`\\b0x(${N})(\\.(${N}))?([pP][+-]?(${b}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},O=(fe="")=>({className:"subst",variants:[{match:Ee(/\\/,fe,/[0\\tnr"']/)},{match:Ee(/\\/,fe,/u\{[0-9a-fA-F]{1,8}\}/)}]}),R=(fe="")=>({className:"subst",match:Ee(/\\/,fe,/[\t ]*(?:[\r\n]|\r\n)/)}),x=(fe="")=>({className:"subst",label:"interpol",begin:Ee(/\\/,fe,/\(/),end:/\)/}),H=(fe="")=>({begin:Ee(fe,/"""/),end:Ee(/"""/,fe),contains:[O(fe),R(fe),x(fe)]}),K=(fe="")=>({begin:Ee(fe,/"/),end:Ee(/"/,fe),contains:[O(fe),x(fe)]}),G={className:"string",variants:[H(),H("#"),H("##"),H("###"),K(),K("#"),K("##"),K("###")]},_=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],L={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:_},P=fe=>{const rt=Ee(fe,/\//),pt=Ee(/\//,fe);return{begin:rt,end:pt,contains:[..._,{scope:"comment",begin:`#(?!.*${pt})`,end:/$/}]}},ee={scope:"regexp",variants:[P("###"),P("##"),P("#"),L]},Y={match:Ee(/`/,yt,/`/)},$={className:"variable",match:/\$\d+/},ne={className:"variable",match:`\\$${Hn}+`},he=[Y,$,ne],X={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:nf,contains:[...w,v,G]}]}},be={scope:"keyword",match:Ee(/@/,He(...tf),yn(He(/\(/,/\s+/)))},m={scope:"meta",match:Ee(/@/,yt)},ue=[X,be,m],ae={match:yn(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Ee(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Hn,"+")},{className:"type",match:Gn,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Ee(/\s+&\s+/,yn(Gn)),relevance:0}]},y={begin:/</,end:/>/,keywords:l,contains:[...r,...d,...ue,g,ae]};ae.contains.push(y);const ye={match:Ee(yt,/\s*:/),keywords:"_|0",relevance:0},nt={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",ye,...r,ee,...d,...p,...w,v,G,...he,...ue,ae]},Ne={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,ae]},at={begin:He(yn(Ee(yt,/\s*:/)),yn(Ee(yt,/\s+/,yt,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:yt}]},ve={begin:/\(/,end:/\)/,keywords:l,contains:[at,...r,...d,...w,v,G,...ue,ae,nt],endsParent:!0,illegal:/["']/},st={match:[/(func|macro)/,/\s+/,He(Y.match,yt,Kr)],className:{1:"keyword",3:"title.function"},contains:[Ne,ve,t],illegal:[/\[/,/%/]},Oe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ne,ve,t],illegal:/\[|%/},Et={match:[/operator/,/\s+/,Kr],className:{1:"keyword",3:"title"}},Bt={begin:[/precedencegroup/,/\s+/,Gn],className:{1:"keyword",3:"title"},contains:[ae],keywords:[...Jp,...Yo],end:/}/},Ft={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},xt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Ct={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,yt,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:l,contains:[Ne,...d,{begin:/:/,end:/\{/,keywords:l,contains:[{scope:"title.class.inherited",match:Gn},...d],relevance:0}]};for(const fe of G.variants){const rt=fe.contains.find(lt=>lt.label==="interpol");rt.keywords=l;const pt=[...d,...p,...w,v,G,...he];rt.contains=[...pt,{begin:/\(/,end:/\)/,contains:["self",...pt]}]}return{name:"Swift",keywords:l,contains:[...r,st,Oe,Ft,xt,Ct,Et,Bt,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},ee,...d,...p,...w,v,G,...he,...ue,ae,nt]}}const Wn="[A-Za-z$_][0-9A-Za-z$_]*",Jo=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],ea=["true","false","null","undefined","NaN","Infinity"],ta=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],na=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ra=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ia=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],oa=[].concat(ra,ta,na);function of(e){const t=e.regex,n=(X,{after:be})=>{const m="</"+X[0].slice(1);return X.input.indexOf(m,be)!==-1},r=Wn,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(X,be)=>{const m=X[0].length+X.index,ue=X.input[m];if(ue==="<"||ue===","){be.ignoreMatch();return}ue===">"&&(n(X,{after:m})||be.ignoreMatch());let ae;const y=X.input.substring(m);if(ae=y.match(/^\s*=/)){be.ignoreMatch();return}if((ae=y.match(/^\s+extends\s+/))&&ae.index===0){be.ignoreMatch();return}}},s={$pattern:Wn,keyword:Jo,literal:ea,built_in:oa,"variable.language":ia},c="[0-9](_?[0-9])*",l=`\\.(${c})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${d})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${d})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},N={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,h,w,{match:/\$\d+/},u];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const O=[].concat(N,f.contains),R=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(O)}]),x={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},H={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},K={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...ta,...na]}},G={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(X){return t.concat("(?!",X.join("|"),")")}const ee={match:t.concat(/\b/,P([...ra,"super","import"].map(X=>`${X}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Y={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",he={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:K},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),G,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,h,w,N,{match:/\$\d+/},u,K,{scope:"attr",match:r+t.lookahead(":"),relevance:0},he,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[N,e.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},_,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Y,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},ee,L,H,$,{match:/\$[(.]/}]}}function af(e){const t=e.regex,n=of(e),r=Wn,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:Wn,keyword:Jo.concat(c),literal:ea,built_in:oa.concat(i),"variable.language":ia},d={className:"meta",begin:"@"+r},u=(h,w,b)=>{const N=h.contains.findIndex(v=>v.label===w);if(N===-1)throw new Error("can not find mode to replace");h.contains.splice(N,1,b)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(d);const f=n.contains.find(h=>h.scope==="attr"),p=Object.assign({},f,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,f,p]),n.contains=n.contains.concat([d,a,o,p]),u(n,"shebang",e.SHEBANG()),u(n,"use_strict",s);const g=n.contains.find(h=>h.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function sf(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,a=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:t.concat(/# */,t.either(a,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,o,/ *#/)},{begin:t.concat(/# */,t.either(a,i),/ +/,t.either(o,s),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},u=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,c,l,d,u,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function lf(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},a={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},a,o,i,e.QUOTE_STRING_MODE,c,l,s]}}function cf(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function uf(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},o={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(o,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),f={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[p],illegal:"\\n",relevance:0},w=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},f,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,h,a,o],b=[...w];return b.pop(),b.push(s),p.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:w}}const df={arduino:Wd,bash:Kd,c:Vd,cpp:Yd,csharp:Zd,css:ip,diff:op,go:ap,graphql:sp,ini:lp,java:cp,javascript:gp,json:hp,kotlin:bp,less:Sp,lua:Np,makefile:Tp,markdown:Ap,objectivec:Cp,perl:Ip,php:Op,"php-template":Mp,plaintext:Rp,python:Lp,"python-repl":Dp,r:Pp,ruby:Bp,rust:Fp,scss:Vp,shell:Yp,sql:Zp,swift:rf,typescript:af,vbnet:sf,wasm:lf,xml:cf,yaml:uf};var Vr,aa;function pf(){if(aa)return Vr;aa=1;function e(k){return k instanceof Map?k.clear=k.delete=k.set=function(){throw new Error("map is read-only")}:k instanceof Set&&(k.add=k.clear=k.delete=function(){throw new Error("set is read-only")}),Object.freeze(k),Object.getOwnPropertyNames(k).forEach(T=>{const C=k[T],Z=typeof C;(Z==="object"||Z==="function")&&!Object.isFrozen(C)&&e(C)}),k}class t{constructor(T){T.data===void 0&&(T.data={}),this.data=T.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(k){return k.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(k,...T){const C=Object.create(null);for(const Z in k)C[Z]=k[Z];return T.forEach(function(Z){for(const Ae in Z)C[Ae]=Z[Ae]}),C}const i="</span>",a=k=>!!k.scope,o=(k,{prefix:T})=>{if(k.startsWith("language:"))return k.replace("language:","language-");if(k.includes(".")){const C=k.split(".");return[`${T}${C.shift()}`,...C.map((Z,Ae)=>`${Z}${"_".repeat(Ae+1)}`)].join(" ")}return`${T}${k}`};class s{constructor(T,C){this.buffer="",this.classPrefix=C.classPrefix,T.walk(this)}addText(T){this.buffer+=n(T)}openNode(T){if(!a(T))return;const C=o(T.scope,{prefix:this.classPrefix});this.span(C)}closeNode(T){a(T)&&(this.buffer+=i)}value(){return this.buffer}span(T){this.buffer+=`<span class="${T}">`}}const c=(k={})=>{const T={children:[]};return Object.assign(T,k),T};class l{constructor(){this.rootNode=c(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(T){this.top.children.push(T)}openNode(T){const C=c({scope:T});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(T){return this.constructor._walk(T,this.rootNode)}static _walk(T,C){return typeof C=="string"?T.addText(C):C.children&&(T.openNode(C),C.children.forEach(Z=>this._walk(T,Z)),T.closeNode(C)),T}static _collapse(T){typeof T!="string"&&T.children&&(T.children.every(C=>typeof C=="string")?T.children=[T.children.join("")]:T.children.forEach(C=>{l._collapse(C)}))}}class d extends l{constructor(T){super(),this.options=T}addText(T){T!==""&&this.add(T)}startScope(T){this.openNode(T)}endScope(){this.closeNode()}__addSublanguage(T,C){const Z=T.root;C&&(Z.scope=`language:${C}`),this.add(Z)}toHTML(){return new s(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(k){return k?typeof k=="string"?k:k.source:null}function f(k){return h("(?=",k,")")}function p(k){return h("(?:",k,")*")}function g(k){return h("(?:",k,")?")}function h(...k){return k.map(C=>u(C)).join("")}function w(k){const T=k[k.length-1];return typeof T=="object"&&T.constructor===Object?(k.splice(k.length-1,1),T):{}}function b(...k){return"("+(w(k).capture?"":"?:")+k.map(Z=>u(Z)).join("|")+")"}function N(k){return new RegExp(k.toString()+"|").exec("").length-1}function v(k,T){const C=k&&k.exec(T);return C&&C.index===0}const O=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function R(k,{joinWith:T}){let C=0;return k.map(Z=>{C+=1;const Ae=C;let ke=u(Z),q="";for(;ke.length>0;){const F=O.exec(ke);if(!F){q+=ke;break}q+=ke.substring(0,F.index),ke=ke.substring(F.index+F[0].length),F[0][0]==="\\"&&F[1]?q+="\\"+String(Number(F[1])+Ae):(q+=F[0],F[0]==="("&&C++)}return q}).map(Z=>`(${Z})`).join(T)}const x=/\b\B/,H="[a-zA-Z]\\w*",K="[a-zA-Z_]\\w*",G="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",L="\\b(0b[01]+)",P="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ee=(k={})=>{const T=/^#![ ]*\//;return k.binary&&(k.begin=h(T,/.*\b/,k.binary,/\b.*/)),r({scope:"meta",begin:T,end:/$/,relevance:0,"on:begin":(C,Z)=>{C.index!==0&&Z.ignoreMatch()}},k)},Y={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Y]},ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Y]},he={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},X=function(k,T,C={}){const Z=r({scope:"comment",begin:k,end:T,contains:[]},C);Z.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ae=b("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Z.contains.push({begin:h(/[ ]+/,"(",Ae,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Z},be=X("//","$"),m=X("/\\*","\\*/"),ue=X("#","$"),ae={scope:"number",begin:G,relevance:0},y={scope:"number",begin:_,relevance:0},ye={scope:"number",begin:L,relevance:0},nt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Y,{begin:/\[/,end:/\]/,relevance:0,contains:[Y]}]},Ne={scope:"title",begin:H,relevance:0},at={scope:"title",begin:K,relevance:0},ve={begin:"\\.\\s*"+K,relevance:0};var Oe=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:Y,BINARY_NUMBER_MODE:ye,BINARY_NUMBER_RE:L,COMMENT:X,C_BLOCK_COMMENT_MODE:m,C_LINE_COMMENT_MODE:be,C_NUMBER_MODE:y,C_NUMBER_RE:_,END_SAME_AS_BEGIN:function(k){return Object.assign(k,{"on:begin":(T,C)=>{C.data._beginMatch=T[1]},"on:end":(T,C)=>{C.data._beginMatch!==T[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:ue,IDENT_RE:H,MATCH_NOTHING_RE:x,METHOD_GUARD:ve,NUMBER_MODE:ae,NUMBER_RE:G,PHRASAL_WORDS_MODE:he,QUOTE_STRING_MODE:ne,REGEXP_MODE:nt,RE_STARTERS_RE:P,SHEBANG:ee,TITLE_MODE:Ne,UNDERSCORE_IDENT_RE:K,UNDERSCORE_TITLE_MODE:at});function Et(k,T){k.input[k.index-1]==="."&&T.ignoreMatch()}function Bt(k,T){k.className!==void 0&&(k.scope=k.className,delete k.className)}function Ft(k,T){T&&k.beginKeywords&&(k.begin="\\b("+k.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",k.__beforeBegin=Et,k.keywords=k.keywords||k.beginKeywords,delete k.beginKeywords,k.relevance===void 0&&(k.relevance=0))}function xt(k,T){Array.isArray(k.illegal)&&(k.illegal=b(...k.illegal))}function Ct(k,T){if(k.match){if(k.begin||k.end)throw new Error("begin & end are not supported with match");k.begin=k.match,delete k.match}}function fe(k,T){k.relevance===void 0&&(k.relevance=1)}const rt=(k,T)=>{if(!k.beforeMatch)return;if(k.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},k);Object.keys(k).forEach(Z=>{delete k[Z]}),k.keywords=C.keywords,k.begin=h(C.beforeMatch,f(C.begin)),k.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},k.relevance=0,delete C.beforeMatch},pt=["of","and","for","in","not","or","if","then","parent","list","value"],lt="keyword";function ft(k,T,C=lt){const Z=Object.create(null);return typeof k=="string"?Ae(C,k.split(" ")):Array.isArray(k)?Ae(C,k):Object.keys(k).forEach(function(ke){Object.assign(Z,ft(k[ke],T,ke))}),Z;function Ae(ke,q){T&&(q=q.map(F=>F.toLowerCase())),q.forEach(function(F){const j=F.split("|");Z[j[0]]=[ke,Qe(j[0],j[1])]})}}function Qe(k,T){return T?Number(T):Ue(k)?0:1}function Ue(k){return pt.includes(k.toLowerCase())}const ct={},gt=k=>{console.error(k)},nn=(k,...T)=>{console.log(`WARN: ${k}`,...T)},S=(k,T)=>{ct[`${k}/${T}`]||(console.log(`Deprecated as of ${k}. ${T}`),ct[`${k}/${T}`]=!0)},M=new Error;function Q(k,T,{key:C}){let Z=0;const Ae=k[C],ke={},q={};for(let F=1;F<=T.length;F++)q[F+Z]=Ae[F],ke[F+Z]=!0,Z+=N(T[F-1]);k[C]=q,k[C]._emit=ke,k[C]._multi=!0}function oe(k){if(Array.isArray(k.begin)){if(k.skip||k.excludeBegin||k.returnBegin)throw gt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),M;if(typeof k.beginScope!="object"||k.beginScope===null)throw gt("beginScope must be object"),M;Q(k,k.begin,{key:"beginScope"}),k.begin=R(k.begin,{joinWith:""})}}function me(k){if(Array.isArray(k.end)){if(k.skip||k.excludeEnd||k.returnEnd)throw gt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),M;if(typeof k.endScope!="object"||k.endScope===null)throw gt("endScope must be object"),M;Q(k,k.end,{key:"endScope"}),k.end=R(k.end,{joinWith:""})}}function Ge(k){k.scope&&typeof k.scope=="object"&&k.scope!==null&&(k.beginScope=k.scope,delete k.scope)}function je(k){Ge(k),typeof k.beginScope=="string"&&(k.beginScope={_wrap:k.beginScope}),typeof k.endScope=="string"&&(k.endScope={_wrap:k.endScope}),oe(k),me(k)}function Je(k){function T(q,F){return new RegExp(u(q),"m"+(k.case_insensitive?"i":"")+(k.unicodeRegex?"u":"")+(F?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(F,j){j.position=this.position++,this.matchIndexes[this.matchAt]=j,this.regexes.push([j,F]),this.matchAt+=N(F)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const F=this.regexes.map(j=>j[1]);this.matcherRe=T(R(F,{joinWith:"|"}),!0),this.lastIndex=0}exec(F){this.matcherRe.lastIndex=this.lastIndex;const j=this.matcherRe.exec(F);if(!j)return null;const Le=j.findIndex((Ot,_n)=>_n>0&&Ot!==void 0),Me=this.matchIndexes[Le];return j.splice(0,Le),Object.assign(j,Me)}}class Z{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(F){if(this.multiRegexes[F])return this.multiRegexes[F];const j=new C;return this.rules.slice(F).forEach(([Le,Me])=>j.addRule(Le,Me)),j.compile(),this.multiRegexes[F]=j,j}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(F,j){this.rules.push([F,j]),j.type==="begin"&&this.count++}exec(F){const j=this.getMatcher(this.regexIndex);j.lastIndex=this.lastIndex;let Le=j.exec(F);if(this.resumingScanAtSamePosition()&&!(Le&&Le.index===this.lastIndex)){const Me=this.getMatcher(0);Me.lastIndex=this.lastIndex+1,Le=Me.exec(F)}return Le&&(this.regexIndex+=Le.position+1,this.regexIndex===this.count&&this.considerAll()),Le}}function Ae(q){const F=new Z;return q.contains.forEach(j=>F.addRule(j.begin,{rule:j,type:"begin"})),q.terminatorEnd&&F.addRule(q.terminatorEnd,{type:"end"}),q.illegal&&F.addRule(q.illegal,{type:"illegal"}),F}function ke(q,F){const j=q;if(q.isCompiled)return j;[Bt,Ct,je,rt].forEach(Me=>Me(q,F)),k.compilerExtensions.forEach(Me=>Me(q,F)),q.__beforeBegin=null,[Ft,xt,fe].forEach(Me=>Me(q,F)),q.isCompiled=!0;let Le=null;return typeof q.keywords=="object"&&q.keywords.$pattern&&(q.keywords=Object.assign({},q.keywords),Le=q.keywords.$pattern,delete q.keywords.$pattern),Le=Le||/\w+/,q.keywords&&(q.keywords=ft(q.keywords,k.case_insensitive)),j.keywordPatternRe=T(Le,!0),F&&(q.begin||(q.begin=/\B|\b/),j.beginRe=T(j.begin),!q.end&&!q.endsWithParent&&(q.end=/\B|\b/),q.end&&(j.endRe=T(j.end)),j.terminatorEnd=u(j.end)||"",q.endsWithParent&&F.terminatorEnd&&(j.terminatorEnd+=(q.end?"|":"")+F.terminatorEnd)),q.illegal&&(j.illegalRe=T(q.illegal)),q.contains||(q.contains=[]),q.contains=[].concat(...q.contains.map(function(Me){return It(Me==="self"?q:Me)})),q.contains.forEach(function(Me){ke(Me,j)}),q.starts&&ke(q.starts,F),j.matcher=Ae(j),j}if(k.compilerExtensions||(k.compilerExtensions=[]),k.contains&&k.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return k.classNameAliases=r(k.classNameAliases||{}),ke(k)}function _t(k){return k?k.endsWithParent||_t(k.starts):!1}function It(k){return k.variants&&!k.cachedVariants&&(k.cachedVariants=k.variants.map(function(T){return r(k,{variants:null},T)})),k.cachedVariants?k.cachedVariants:_t(k)?r(k,{starts:k.starts?r(k.starts):null}):Object.isFrozen(k)?r(k):k}var Te="11.11.1";class ht extends Error{constructor(T,C){super(T),this.name="HTMLInjectionError",this.html=C}}const We=n,rn=r,Zn=Symbol("nomatch"),Xa=7,vt=function(k){const T=Object.create(null),C=Object.create(null),Z=[];let Ae=!0;const ke="Could not find the language '{}', did you forget to load/include a language module?",q={disableAutodetect:!0,name:"Plain text",contains:[]};let F={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function j(A){return F.noHighlightRe.test(A)}function Le(A){let U=A.className+" ";U+=A.parentNode?A.parentNode.className:"";const re=F.languageDetectRe.exec(U);if(re){const ie=St(re[1]);return ie||(nn(ke.replace("{}",re[1])),nn("Falling back to no-highlight mode for this block.",A)),ie?re[1]:"no-highlight"}return U.split(/\s+/).find(ie=>j(ie)||St(ie))}function Me(A,U,re){let ie="",Ie="";typeof U=="object"?(ie=A,re=U.ignoreIllegals,Ie=U.language):(S("10.7.0","highlight(lang, code, ...args) has been deprecated."),S("10.7.0",`Please use highlight(code, options) instead.
20
+ https://github.com/highlightjs/highlight.js/issues/2277`),Ie=A,ie=U),re===void 0&&(re=!0);const De={code:ie,language:Ie};le("before:highlight",De);const Ve=De.result?De.result:Ot(De.language,De.code,re);return Ve.code=De.code,le("after:highlight",Ve),Ve}function Ot(A,U,re,ie){const Ie=Object.create(null);function De(D,W){return D.keywords[W]}function Ve(){if(!te.keywords){Pe.addText(Se);return}let D=0;te.keywordPatternRe.lastIndex=0;let W=te.keywordPatternRe.exec(Se),se="";for(;W;){se+=Se.substring(D,W.index);const we=Tt.case_insensitive?W[0].toLowerCase():W[0],qe=De(te,we);if(qe){const[Rt,rm]=qe;if(Pe.addText(se),se="",Ie[we]=(Ie[we]||0)+1,Ie[we]<=Xa&&(rr+=rm),Rt.startsWith("_"))se+=W[0];else{const im=Tt.classNameAliases[Rt]||Rt;Nt(W[0],im)}}else se+=W[0];D=te.keywordPatternRe.lastIndex,W=te.keywordPatternRe.exec(Se)}se+=Se.substring(D),Pe.addText(se)}function an(){if(Se==="")return;let D=null;if(typeof te.subLanguage=="string"){if(!T[te.subLanguage]){Pe.addText(Se);return}D=Ot(te.subLanguage,Se,!0,ts[te.subLanguage]),ts[te.subLanguage]=D._top}else D=vn(Se,te.subLanguage.length?te.subLanguage:null);te.relevance>0&&(rr+=D.relevance),Pe.__addSublanguage(D._emitter,D.language)}function Ye(){te.subLanguage!=null?an():Ve(),Se=""}function Nt(D,W){D!==""&&(Pe.startScope(W),Pe.addText(D),Pe.endScope())}function Qa(D,W){let se=1;const we=W.length-1;for(;se<=we;){if(!D._emit[se]){se++;continue}const qe=Tt.classNameAliases[D[se]]||D[se],Rt=W[se];qe?Nt(Rt,qe):(Se=Rt,Ve(),Se=""),se++}}function ja(D,W){return D.scope&&typeof D.scope=="string"&&Pe.openNode(Tt.classNameAliases[D.scope]||D.scope),D.beginScope&&(D.beginScope._wrap?(Nt(Se,Tt.classNameAliases[D.beginScope._wrap]||D.beginScope._wrap),Se=""):D.beginScope._multi&&(Qa(D.beginScope,W),Se="")),te=Object.create(D,{parent:{value:te}}),te}function Ja(D,W,se){let we=v(D.endRe,se);if(we){if(D["on:end"]){const qe=new t(D);D["on:end"](W,qe),qe.isMatchIgnored&&(we=!1)}if(we){for(;D.endsParent&&D.parent;)D=D.parent;return D}}if(D.endsWithParent)return Ja(D.parent,W,se)}function jh(D){return te.matcher.regexIndex===0?(Se+=D[0],1):(ai=!0,0)}function Jh(D){const W=D[0],se=D.rule,we=new t(se),qe=[se.__beforeBegin,se["on:begin"]];for(const Rt of qe)if(Rt&&(Rt(D,we),we.isMatchIgnored))return jh(W);return se.skip?Se+=W:(se.excludeBegin&&(Se+=W),Ye(),!se.returnBegin&&!se.excludeBegin&&(Se=W)),ja(se,D),se.returnBegin?0:W.length}function em(D){const W=D[0],se=U.substring(D.index),we=Ja(te,D,se);if(!we)return Zn;const qe=te;te.endScope&&te.endScope._wrap?(Ye(),Nt(W,te.endScope._wrap)):te.endScope&&te.endScope._multi?(Ye(),Qa(te.endScope,D)):qe.skip?Se+=W:(qe.returnEnd||qe.excludeEnd||(Se+=W),Ye(),qe.excludeEnd&&(Se=W));do te.scope&&Pe.closeNode(),!te.skip&&!te.subLanguage&&(rr+=te.relevance),te=te.parent;while(te!==we.parent);return we.starts&&ja(we.starts,D),qe.returnEnd?0:W.length}function tm(){const D=[];for(let W=te;W!==Tt;W=W.parent)W.scope&&D.unshift(W.scope);D.forEach(W=>Pe.openNode(W))}let nr={};function es(D,W){const se=W&&W[0];if(Se+=D,se==null)return Ye(),0;if(nr.type==="begin"&&W.type==="end"&&nr.index===W.index&&se===""){if(Se+=U.slice(W.index,W.index+1),!Ae){const we=new Error(`0 width match regex (${A})`);throw we.languageName=A,we.badRule=nr.rule,we}return 1}if(nr=W,W.type==="begin")return Jh(W);if(W.type==="illegal"&&!re){const we=new Error('Illegal lexeme "'+se+'" for mode "'+(te.scope||"<unnamed>")+'"');throw we.mode=te,we}else if(W.type==="end"){const we=em(W);if(we!==Zn)return we}if(W.type==="illegal"&&se==="")return Se+=`
21
+ `,1;if(oi>1e5&&oi>W.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Se+=se,se.length}const Tt=St(A);if(!Tt)throw gt(ke.replace("{}",A)),new Error('Unknown language: "'+A+'"');const nm=Je(Tt);let ii="",te=ie||nm;const ts={},Pe=new F.__emitter(F);tm();let Se="",rr=0,Vt=0,oi=0,ai=!1;try{if(Tt.__emitTokens)Tt.__emitTokens(U,Pe);else{for(te.matcher.considerAll();;){oi++,ai?ai=!1:te.matcher.considerAll(),te.matcher.lastIndex=Vt;const D=te.matcher.exec(U);if(!D)break;const W=U.substring(Vt,D.index),se=es(W,D);Vt=D.index+se}es(U.substring(Vt))}return Pe.finalize(),ii=Pe.toHTML(),{language:A,value:ii,relevance:rr,illegal:!1,_emitter:Pe,_top:te}}catch(D){if(D.message&&D.message.includes("Illegal"))return{language:A,value:We(U),illegal:!0,relevance:0,_illegalBy:{message:D.message,index:Vt,context:U.slice(Vt-100,Vt+100),mode:D.mode,resultSoFar:ii},_emitter:Pe};if(Ae)return{language:A,value:We(U),illegal:!1,relevance:0,errorRaised:D,_emitter:Pe,_top:te};throw D}}function _n(A){const U={value:We(A),illegal:!1,relevance:0,_top:q,_emitter:new F.__emitter(F)};return U._emitter.addText(A),U}function vn(A,U){U=U||F.languages||Object.keys(T);const re=_n(A),ie=U.filter(St).filter(tr).map(Ye=>Ot(Ye,A,!1));ie.unshift(re);const Ie=ie.sort((Ye,Nt)=>{if(Ye.relevance!==Nt.relevance)return Nt.relevance-Ye.relevance;if(Ye.language&&Nt.language){if(St(Ye.language).supersetOf===Nt.language)return 1;if(St(Nt.language).supersetOf===Ye.language)return-1}return 0}),[De,Ve]=Ie,an=De;return an.secondBest=Ve,an}function Xn(A,U,re){const ie=U&&C[U]||re;A.classList.add("hljs"),A.classList.add(`language-${ie}`)}function Mt(A){let U=null;const re=Le(A);if(j(re))return;if(le("before:highlightElement",{el:A,language:re}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(F.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),F.throwUnescapedHTML))throw new ht("One of your code blocks includes unescaped HTML.",A.innerHTML);U=A;const ie=U.textContent,Ie=re?Me(ie,{language:re,ignoreIllegals:!0}):vn(ie);A.innerHTML=Ie.value,A.dataset.highlighted="yes",Xn(A,re,Ie.language),A.result={language:Ie.language,re:Ie.relevance,relevance:Ie.relevance},Ie.secondBest&&(A.secondBest={language:Ie.secondBest.language,relevance:Ie.secondBest.relevance}),le("after:highlightElement",{el:A,result:Ie,text:ie})}function Ke(A){F=rn(F,A)}const mt=()=>{on(),S("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Qn(){on(),S("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let jn=!1;function on(){function A(){on()}if(document.readyState==="loading"){jn||window.addEventListener("DOMContentLoaded",A,!1),jn=!0;return}document.querySelectorAll(F.cssSelector).forEach(Mt)}function Sn(A,U){let re=null;try{re=U(k)}catch(ie){if(gt("Language definition for '{}' could not be registered.".replace("{}",A)),Ae)gt(ie);else throw ie;re=q}re.name||(re.name=A),T[A]=re,re.rawDefinition=U.bind(null,k),re.aliases&&er(re.aliases,{languageName:A})}function Jn(A){delete T[A];for(const U of Object.keys(C))C[U]===A&&delete C[U]}function bt(){return Object.keys(T)}function St(A){return A=(A||"").toLowerCase(),T[A]||T[C[A]]}function er(A,{languageName:U}){typeof A=="string"&&(A=[A]),A.forEach(re=>{C[re.toLowerCase()]=U})}function tr(A){const U=St(A);return U&&!U.disableAutodetect}function B(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=U=>{A["before:highlightBlock"](Object.assign({block:U.el},U))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=U=>{A["after:highlightBlock"](Object.assign({block:U.el},U))})}function ge(A){B(A),Z.push(A)}function de(A){const U=Z.indexOf(A);U!==-1&&Z.splice(U,1)}function le(A,U){const re=A;Z.forEach(function(ie){ie[re]&&ie[re](U)})}function Ce(A){return S("10.7.0","highlightBlock will be removed entirely in v12.0"),S("10.7.0","Please use highlightElement now."),Mt(A)}Object.assign(k,{highlight:Me,highlightAuto:vn,highlightAll:on,highlightElement:Mt,highlightBlock:Ce,configure:Ke,initHighlighting:mt,initHighlightingOnLoad:Qn,registerLanguage:Sn,unregisterLanguage:Jn,listLanguages:bt,getLanguage:St,registerAliases:er,autoDetection:tr,inherit:rn,addPlugin:ge,removePlugin:de}),k.debugMode=function(){Ae=!1},k.safeMode=function(){Ae=!0},k.versionString=Te,k.regex={concat:h,lookahead:f,either:b,optional:g,anyNumberOfTimes:p};for(const A in Oe)typeof Oe[A]=="object"&&e(Oe[A]);return Object.assign(k,Oe),k},zt=vt({});return zt.newInstance=()=>vt({}),Vr=zt,zt.HighlightJS=zt,zt.default=zt,Vr}var ff=pf();const gf=dr(ff),sa={},hf="hljs-";function mf(e){const t=gf.newInstance();return e&&a(e),{highlight:n,highlightAuto:r,listLanguages:i,register:a,registerAlias:o,registered:s};function n(c,l,d){const u=d||sa,f=typeof u.prefix=="string"?u.prefix:hf;if(!t.getLanguage(c))throw new Error("Unknown language: `"+c+"` is not registered");t.configure({__emitter:bf,classPrefix:f});const p=t.highlight(l,{ignoreIllegals:!0,language:c});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const g=p._emitter.root,h=g.data;return h.language=p.language,h.relevance=p.relevance,g}function r(c,l){const u=(l||sa).subset||i();let f=-1,p=0,g;for(;++f<u.length;){const h=u[f];if(!t.getLanguage(h))continue;const w=n(h,c,l);w.data&&w.data.relevance!==void 0&&w.data.relevance>p&&(p=w.data.relevance,g=w)}return g||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function a(c,l){if(typeof c=="string")t.registerLanguage(c,l);else{let d;for(d in c)Object.hasOwn(c,d)&&t.registerLanguage(d,c[d])}}function o(c,l){if(typeof c=="string")t.registerAliases(typeof l=="string"?l:[...l],{languageName:c});else{let d;for(d in c)if(Object.hasOwn(c,d)){const u=c[d];t.registerAliases(typeof u=="string"?u:[...u],{languageName:d})}}}function s(c){return!!t.getLanguage(c)}}class bf{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const r=this.stack[this.stack.length-1],i=t.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(t){const n=this,r=t.split(".").map(function(o,s){return s?o+"_".repeat(s):n.options.classPrefix+o}),i=this.stack[this.stack.length-1],a={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(a),this.stack.push(a)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const kf={};function yf(e){const t=e||kf,n=t.aliases,r=t.detect||!1,i=t.languages||df,a=t.plainText,o=t.prefix,s=t.subset;let c="hljs";const l=mf(i);if(n&&l.registerAlias(n),o){const d=o.indexOf("-");c=d===-1?o:o.slice(0,d)}return function(d,u){Bn(d,"element",function(f,p,g){if(f.tagName!=="code"||!g||g.type!=="element"||g.tagName!=="pre")return;const h=wf(f);if(h===!1||!h&&!r||h&&a&&a.includes(h))return;Array.isArray(f.properties.className)||(f.properties.className=[]),f.properties.className.includes(c)||f.properties.className.unshift(c);const w=Bd(f,{whitespace:"pre"});let b;try{b=h?l.highlight(h,w,{prefix:o}):l.highlightAuto(w,{prefix:o,subset:s})}catch(N){const v=N;if(h&&/Unknown language/.test(v.message)){u.message("Cannot highlight as `"+h+"`, it’s not registered",{ancestors:[g,f],cause:v,place:f.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw v}!h&&b.data&&b.data.language&&f.properties.className.push("language-"+b.data.language),b.children.length>0&&(f.children=b.children)})}}function wf(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let r;for(;++n<t.length;){const i=String(t[n]);if(i==="no-highlight"||i==="nohighlight")return!1;!r&&i.slice(0,5)==="lang-"&&(r=i.slice(5)),!r&&i.slice(0,9)==="language-"&&(r=i.slice(9))}return r}function la(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Ef(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function xf(e,t,n){const i=bn((n||{}).ignore||[]),a=_f(t);let o=-1;for(;++o<a.length;)ko(e,"text",s);function s(l,d){let u=-1,f;for(;++u<d.length;){const p=d[u],g=f?f.children:void 0;if(i(p,g?g.indexOf(p):void 0,f))return;f=p}if(f)return c(l,d)}function c(l,d){const u=d[d.length-1],f=a[o][0],p=a[o][1];let g=0;const w=u.children.indexOf(l);let b=!1,N=[];f.lastIndex=0;let v=f.exec(l.value);for(;v;){const O=v.index,R={index:v.index,input:v.input,stack:[...d,l]};let x=p(...v,R);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?f.lastIndex=O+1:(g!==O&&N.push({type:"text",value:l.value.slice(g,O)}),Array.isArray(x)?N.push(...x):x&&N.push(x),g=O+v[0].length,b=!0),!f.global)break;v=f.exec(l.value)}return b?(g<l.value.length&&N.push({type:"text",value:l.value.slice(g)}),u.children.splice(w,1,...N)):N=[l],w+N.length}}function _f(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([vf(i[0]),Sf(i[1])])}return t}function vf(e){return typeof e=="string"?new RegExp(Ef(e),"g"):e}function Sf(e){return typeof e=="function"?e:function(){return e}}const Yr="phrasing",Zr=["autolink","link","image","label"];function Nf(){return{transforms:[Rf],enter:{literalAutolink:Af,literalAutolinkEmail:Xr,literalAutolinkHttp:Xr,literalAutolinkWww:Xr},exit:{literalAutolink:Mf,literalAutolinkEmail:Of,literalAutolinkHttp:Cf,literalAutolinkWww:If}}}function Tf(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Yr,notInConstruct:Zr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Yr,notInConstruct:Zr},{character:":",before:"[ps]",after:"\\/",inConstruct:Yr,notInConstruct:Zr}]}}function Af(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Xr(e){this.config.enter.autolinkProtocol.call(this,e)}function Cf(e){this.config.exit.autolinkProtocol.call(this,e)}function If(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Of(e){this.config.exit.autolinkEmail.call(this,e)}function Mf(e){this.exit(e)}function Rf(e){xf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Lf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Df]],{ignore:["link","linkReference"]})}function Lf(e,t,n,r,i){let a="";if(!ca(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Pf(n)))return!1;const o=Bf(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Df(e,t,n,r){return!ca(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Pf(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Bf(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=la(e,"(");let a=la(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function ca(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ht(n)||An(n))&&(!t||n!==47)}ua.peek=Kf;function Ff(){this.buffer()}function zf(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Uf(){this.buffer()}function qf(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $f(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=dt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Hf(e){this.exit(e)}function Gf(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=dt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Wf(e){this.exit(e)}function Kf(){return"["}function ua(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),s(),o(),a+=i.move("]"),a}function Vf(){return{enter:{gfmFootnoteCallString:Ff,gfmFootnoteCall:zf,gfmFootnoteDefinitionLabelString:Uf,gfmFootnoteDefinition:qf},exit:{gfmFootnoteCallString:$f,gfmFootnoteCall:Hf,gfmFootnoteDefinitionLabelString:Gf,gfmFootnoteDefinition:Wf}}}function Yf(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:ua},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const s=a.createTracker(o);let c=s.move("[^");const l=a.enter("footnoteDefinition"),d=a.enter("label");return c+=s.move(a.safe(a.associationId(r),{before:c,after:"]"})),d(),c+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),c+=s.move((t?`
22
+ `:" ")+a.indentLines(a.containerFlow(r,s.current()),t?da:Zf))),l(),c}}function Zf(e,t,n){return t===0?e:da(e,t,n)}function da(e,t,n){return(n?"":" ")+e}const Xf=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];pa.peek=tg;function Qf(){return{canContainEols:["delete"],enter:{strikethrough:Jf},exit:{strikethrough:eg}}}function jf(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Xf}],handlers:{delete:pa}}}function Jf(e){this.enter({type:"delete",children:[]},e)}function eg(e){this.exit(e)}function pa(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function tg(){return"~"}function ng(e){return e.length}function rg(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||ng,a=[],o=[],s=[],c=[];let l=0,d=-1;for(;++d<e.length;){const h=[],w=[];let b=-1;for(e[d].length>l&&(l=e[d].length);++b<e[d].length;){const N=ig(e[d][b]);if(n.alignDelimiters!==!1){const v=i(N);w[b]=v,(c[b]===void 0||v>c[b])&&(c[b]=v)}h.push(N)}o[d]=h,s[d]=w}let u=-1;if(typeof r=="object"&&"length"in r)for(;++u<l;)a[u]=fa(r[u]);else{const h=fa(r);for(;++u<l;)a[u]=h}u=-1;const f=[],p=[];for(;++u<l;){const h=a[u];let w="",b="";h===99?(w=":",b=":"):h===108?w=":":h===114&&(b=":");let N=n.alignDelimiters===!1?1:Math.max(1,c[u]-w.length-b.length);const v=w+"-".repeat(N)+b;n.alignDelimiters!==!1&&(N=w.length+N+b.length,N>c[u]&&(c[u]=N),p[u]=N),f[u]=v}o.splice(1,0,f),s.splice(1,0,p),d=-1;const g=[];for(;++d<o.length;){const h=o[d],w=s[d];u=-1;const b=[];for(;++u<l;){const N=h[u]||"";let v="",O="";if(n.alignDelimiters!==!1){const R=c[u]-(w[u]||0),x=a[u];x===114?v=" ".repeat(R):x===99?R%2?(v=" ".repeat(R/2+.5),O=" ".repeat(R/2-.5)):(v=" ".repeat(R/2),O=v):O=" ".repeat(R)}n.delimiterStart!==!1&&!u&&b.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&N==="")&&(n.delimiterStart!==!1||u)&&b.push(" "),n.alignDelimiters!==!1&&b.push(v),b.push(N),n.alignDelimiters!==!1&&b.push(O),n.padding!==!1&&b.push(" "),(n.delimiterEnd!==!1||u!==l-1)&&b.push("|")}g.push(n.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return g.join(`
23
+ `)}function ig(e){return e==null?"":String(e)}function fa(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function og(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const o=n.indentLines(n.containerFlow(e,a.current()),ag);return i(),o}function ag(e,t,n){return">"+(n?"":" ")+e}function sg(e,t){return ga(e,t.inConstruct,!0)&&!ga(e,t.notInConstruct,!1)}function ga(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ha(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
24
+ `&&sg(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
25
+ `}function lg(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function cg(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ug(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function dg(e,t,n,r){const i=ug(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(cg(e,n)){const u=n.enter("codeIndented"),f=n.indentLines(a,pg);return u(),f}const s=n.createTracker(r),c=i.repeat(Math.max(lg(a,i)+1,3)),l=n.enter("codeFenced");let d=s.move(c);if(e.lang){const u=n.enter(`codeFencedLang${o}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),u()}if(e.lang&&e.meta){const u=n.enter(`codeFencedMeta${o}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
26
26
  `,encode:["`"],...s.current()})),u()}return d+=s.move(`
27
27
  `),a&&(d+=s.move(a+`
28
- `)),d+=s.move(c),l(),d}function Ug(e,t,n){return(n?"":" ")+e}function ti(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function qg(e,t,n,r){const i=ti(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("[");return l+=c.move(n.safe(n.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":`
29
- `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(" "+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function $g(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function En(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Vn(e,t,n){const r=jt(e),i=jt(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}_a.peek=Hg;function _a(e,t,n,r){const i=$g(n),a=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const l=c.charCodeAt(0),d=Vn(r.before.charCodeAt(r.before.length-1),l,i);d.inside&&(c=En(l)+c.slice(1));const u=c.charCodeAt(c.length-1),f=Vn(r.after.charCodeAt(0),u,i);f.inside&&(c=c.slice(0,-1)+En(u));const p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+p}function Hg(e,t,n){return n.options.emphasis||"*"}function Gg(e,t){let n=!1;return Fn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Lr}),!!((!e.depth||e.depth<3)&&vr(e)&&(t.options.setext||n))}function Wg(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Gg(e,n)){const d=n.enter("headingSetext"),u=n.enter("phrasing"),f=n.containerPhrasing(e,{...a.current(),before:`
28
+ `)),d+=s.move(c),l(),d}function pg(e,t,n){return(n?"":" ")+e}function Qr(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function fg(e,t,n,r){const i=Qr(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("[");return l+=c.move(n.safe(n.associationId(e),{before:l,after:"]",...c.current()})),l+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":`
29
+ `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(" "+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function gg(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function wn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Kn(e,t,n){const r=Xt(e),i=Xt(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ma.peek=hg;function ma(e,t,n,r){const i=gg(n),a=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const l=c.charCodeAt(0),d=Kn(r.before.charCodeAt(r.before.length-1),l,i);d.inside&&(c=wn(l)+c.slice(1));const u=c.charCodeAt(c.length-1),f=Kn(r.after.charCodeAt(0),u,i);f.inside&&(c=c.slice(0,-1)+wn(u));const p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+p}function hg(e,t,n){return n.options.emphasis||"*"}function mg(e,t){let n=!1;return Bn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Cr}),!!((!e.depth||e.depth<3)&&kr(e)&&(t.options.setext||n))}function bg(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(mg(e,n)){const d=n.enter("headingSetext"),u=n.enter("phrasing"),f=n.containerPhrasing(e,{...a.current(),before:`
30
30
  `,after:`
31
31
  `});return u(),d(),f+`
32
32
  `+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
33
33
  `))+1))}const o="#".repeat(i),s=n.enter("headingAtx"),c=n.enter("phrasing");a.move(o+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
34
- `,...a.current()});return/^[\t ]/.test(l)&&(l=En(l.charCodeAt(0))+l.slice(1)),l=l?o+" "+l:o,n.options.closeAtx&&(l+=" "+o),c(),s(),l}Sa.peek=Kg;function Sa(e){return e.value||""}function Kg(){return"<"}Ta.peek=Vg;function Ta(e,t,n,r){const i=ti(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("![");return l+=c.move(n.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(" "+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(")"),o(),l}function Vg(){return"!"}Na.peek=Yg;function Na(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let c=s.move("![");const l=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const u=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!l||l!==u?c+=s.move(u+"]"):i==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function Yg(){return"!"}Ca.peek=Zg;function Ca(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],s=n.compilePattern(o);let c;if(o.atBreak)for(;c=s.exec(r);){let l=c.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(c.index+1)}}return i+r+i}function Zg(){return"`"}function Aa(e,t){const n=vr(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ia.peek=Xg;function Ia(e,t,n,r){const i=ti(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,c;if(Aa(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let u=o.move("<");return u+=o.move(n.containerPhrasing(e,{before:u,after:">",...o.current()})),u+=o.move(">"),s(),n.stack=d,u}s=n.enter("link"),c=n.enter("label");let l=o.move("[");return l+=o.move(n.containerPhrasing(e,{before:l,after:"](",...o.current()})),l+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(c=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(")"),s(),l}function Xg(e,t,n){return Aa(e,n)?"<":"["}Oa.peek=jg;function Oa(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let c=s.move("[");const l=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const u=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!l||l!==u?c+=s.move(u+"]"):i==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function jg(){return"["}function ni(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Qg(e){const t=ni(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Jg(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ma(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function eh(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?Jg(n):ni(n);const s=e.ordered?o==="."?")":".":Qg(n);let c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Ma(n)===o&&d){let u=-1;for(;++u<e.children.length;){const f=e.children[u];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;const l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function th(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function nh(e,t,n,r){const i=th(n);let a=n.bulletCurrent||ni(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),d);return c(),l;function d(u,f,p){return f?(p?"":" ".repeat(o))+u:(p?a:a+" ".repeat(o-a.length))+u}}function rh(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const ih=kn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function oh(e,t,n,r){return(e.children.some(function(o){return ih(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function ah(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}La.peek=sh;function La(e,t,n,r){const i=ah(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const l=c.charCodeAt(0),d=Vn(r.before.charCodeAt(r.before.length-1),l,i);d.inside&&(c=En(l)+c.slice(1));const u=c.charCodeAt(c.length-1),f=Vn(r.after.charCodeAt(0),u,i);f.inside&&(c=c.slice(0,-1)+En(u));const p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+p}function sh(e,t,n){return n.options.strong||"*"}function lh(e,t,n,r){return n.safe(e.value,r)}function ch(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function uh(e,t,n){const r=(Ma(n)+(n.options.ruleSpaces?" ":"")).repeat(ch(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Ra={blockquote:Lg,break:xa,code:zg,definition:qg,emphasis:_a,hardBreak:xa,heading:Wg,html:Sa,image:Ta,imageReference:Na,inlineCode:Ca,link:Ia,linkReference:Oa,list:eh,listItem:nh,paragraph:rh,root:oh,strong:La,text:lh,thematicBreak:uh};function dh(){return{enter:{table:ph,tableData:Da,tableHeader:Da,tableRow:gh},exit:{codeText:hh,table:fh,tableData:ri,tableHeader:ri,tableRow:ri}}}function ph(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function fh(e){this.exit(e),this.data.inTable=void 0}function gh(e){this.enter({type:"tableRow",children:[]},e)}function ri(e){this.exit(e)}function Da(e){this.enter({type:"tableCell",children:[]},e)}function hh(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,mh));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function mh(e,t){return t==="|"?t:e}function bh(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
35
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(p,g,m,b){return l(d(p,m,b),p.align)}function s(p,g,m,b){const h=u(p,m,b),v=l([h]);return v.slice(0,v.indexOf(`
36
- `))}function c(p,g,m,b){const h=m.enter("tableCell"),v=m.enter("phrasing"),x=m.containerPhrasing(p,{...b,before:a,after:a});return v(),h(),x}function l(p,g){return Og(p,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function d(p,g,m){const b=p.children;let h=-1;const v=[],x=g.enter("table");for(;++h<b.length;)v[h]=u(b[h],g,m);return x(),v}function u(p,g,m){const b=p.children;let h=-1;const v=[],x=g.enter("tableRow");for(;++h<b.length;)v[h]=c(b[h],p,g,m);return x(),v}function f(p,g,m){let b=Ra.inlineCode(p,g,m);return m.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function kh(){return{exit:{taskListCheckValueChecked:Pa,taskListCheckValueUnchecked:Pa,paragraph:wh}}}function yh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Eh}}}function Pa(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function wh(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Eh(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let c=Ra.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(d){return d+o}}function vh(){return[eg(),Eg(),Sg(),dh(),kh()]}function xh(e){return{extensions:[tg(),vg(e),Tg(),bh(e),yh()]}}const _h={tokenize:Ih,partial:!0},Ba={tokenize:Oh,partial:!0},Fa={tokenize:Mh,partial:!0},za={tokenize:Lh,partial:!0},Sh={tokenize:Rh,partial:!0},Ua={name:"wwwAutolink",tokenize:Ch,previous:$a},qa={name:"protocolAutolink",tokenize:Ah,previous:Ha},Ct={name:"emailAutolink",tokenize:Nh,previous:Ga},wt={};function Th(){return{text:wt}}let Vt=48;for(;Vt<123;)wt[Vt]=Ct,Vt++,Vt===58?Vt=65:Vt===91&&(Vt=97);wt[43]=Ct,wt[45]=Ct,wt[46]=Ct,wt[95]=Ct,wt[72]=[Ct,qa],wt[104]=[Ct,qa],wt[87]=[Ct,Ua],wt[119]=[Ct,Ua];function Nh(e,t,n){const r=this;let i,a;return o;function o(u){return!ii(u)||!Ga.call(r,r.previous)||oi(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(u))}function s(u){return ii(u)?(e.consume(u),s):u===64?(e.consume(u),c):n(u)}function c(u){return u===46?e.check(Sh,d,l)(u):u===45||u===95||Fe(u)?(a=!0,e.consume(u),c):d(u)}function l(u){return e.consume(u),i=!0,c}function d(u){return a&&i&&$e(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}function Ch(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!$a.call(r,r.previous)||oi(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(_h,e.attempt(Ba,e.attempt(Fa,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function Ah(e,t,n){const r=this;let i="",a=!1;return o;function o(u){return(u===72||u===104)&&Ha.call(r,r.previous)&&!oi(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),s):n(u)}function s(u){if($e(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),s;if(u===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(u),c}return n(u)}function c(u){return u===47?(e.consume(u),a?l:(a=!0,c)):n(u)}function l(u){return u===null||Cn(u)||xe(u)||Gt(u)||An(u)?n(u):e.attempt(Ba,e.attempt(Fa,d),n)(u)}function d(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function Ih(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function Oh(e,t,n){let r,i,a;return o;function o(l){return l===46||l===95?e.check(za,c,s)(l):l===null||xe(l)||Gt(l)||l!==45&&An(l)?c(l):(a=!0,e.consume(l),o)}function s(l){return l===95?r=!0:(i=r,r=void 0),e.consume(l),o}function c(l){return i||r||!a?n(l):t(l)}}function Mh(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(za,t,a)(o):o===null||xe(o)||Gt(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function Lh(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||xe(s)||Gt(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||xe(s)||Gt(s)?t(s):r(s)}function a(s){return $e(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):$e(s)?(e.consume(s),o):n(s)}}function Rh(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Fe(a)?n(a):t(a)}}function $a(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xe(e)}function Ha(e){return!$e(e)}function Ga(e){return!(e===47||ii(e))}function ii(e){return e===43||e===45||e===46||e===95||Fe(e)}function oi(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Dh={tokenize:Hh,partial:!0};function Ph(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Uh,continuation:{tokenize:qh},exit:$h}},text:{91:{name:"gfmFootnoteCall",tokenize:zh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Bh,resolveTo:Fh}}}}function Bh(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const c=r.events[i][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!o||!o._balanced)return n(c);const l=dt(r.sliceSerialize({start:o.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Fh(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function zh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),c}function c(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(u){if(a>999||u===93&&!o||u===null||u===91||xe(u))return n(u);if(u===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(dt(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return xe(u)||(o=!0),a++,e.consume(u),u===92?d:l}function d(u){return u===91||u===92||u===93?(e.consume(u),a++,l):l(u)}}function Uh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return c;function c(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(g)}function d(g){if(o>999||g===93&&!s||g===null||g===91||xe(g))return n(g);if(g===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return a=dt(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return xe(g)||(s=!0),o++,e.consume(g),g===92?u:d}function u(g){return g===91||g===92||g===93?(e.consume(g),o++,d):d(g)}function f(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),pe(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function qh(e,t,n){return e.check(fn,t,e.attempt(Dh,t,n))}function $h(e){e.exit("gfmFootnoteDefinition")}function Hh(e,t,n){const r=this;return pe(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function Gh(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let l=c;for(;l--;)if(o[l][0]==="exit"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[l][1].end.offset-o[l][1].start.offset){o[c][1].type="strikethroughSequence",o[l][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[l][1].start),end:Object.assign({},o[c][1].end)},u={type:"strikethroughText",start:Object.assign({},o[l][1].end),end:Object.assign({},o[c][1].start)},f=[["enter",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["enter",u,s]],p=s.parser.constructs.insideSpan.null;p&&nt(f,f.length,0,In(p,o.slice(l+1,c),s)),nt(f,f.length,0,[["exit",u,s],["enter",o[c][1],s],["exit",o[c][1],s],["exit",d,s]]),nt(o,l-1,c-l+3,f),c=l+f.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function a(o,s,c){const l=this.previous,d=this.events;let u=0;return f;function f(g){return l===126&&d[d.length-1][1].type!=="characterEscape"?c(g):(o.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const m=jt(l);if(g===126)return u>1?c(g):(o.consume(g),u++,p);if(u<2&&!n)return c(g);const b=o.exit("strikethroughSequenceTemporary"),h=jt(g);return b._open=!h||h===2&&!!m,b._close=!m||m===2&&!!h,s(g)}}}class Wh{constructor(){this.map=[]}add(t,n,r){Kh(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function Kh(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Vh(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Yh(){return{flow:{null:{name:"table",tokenize:Zh,resolveAll:Xh}}}}function Zh(e,t,n){const r=this;let i=0,a=0,o;return s;function s(S){let R=r.events.length-1;for(;R>-1;){const Y=r.events[R][1].type;if(Y==="lineEnding"||Y==="linePrefix")R--;else break}const P=R>-1?r.events[R][1].type:null,ee=P==="tableHead"||P==="tableRow"?_:c;return ee===_&&r.parser.lazy[r.now().line]?n(S):ee(S)}function c(S){return e.enter("tableHead"),e.enter("tableRow"),l(S)}function l(S){return S===124||(o=!0,a+=1),d(S)}function d(S){return S===null?n(S):V(S)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),p):n(S):ce(S)?pe(e,d,"whitespace")(S):(a+=1,o&&(o=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),u(S)))}function u(S){return S===null||S===124||xe(S)?(e.exit("data"),d(S)):(e.consume(S),S===92?f:u)}function f(S){return S===92||S===124?(e.consume(S),u):u(S)}function p(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),o=!1,ce(S)?pe(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):g(S))}function g(S){return S===45||S===58?b(S):S===124?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),m):I(S)}function m(S){return ce(S)?pe(e,b,"whitespace")(S):b(S)}function b(S){return S===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),h):S===45?(a+=1,h(S)):S===null||V(S)?C(S):I(S)}function h(S){return S===45?(e.enter("tableDelimiterFiller"),v(S)):I(S)}function v(S){return S===45?(e.consume(S),v):S===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(S))}function x(S){return ce(S)?pe(e,C,"whitespace")(S):C(S)}function C(S){return S===124?g(S):S===null||V(S)?!o||i!==a?I(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):I(S)}function I(S){return n(S)}function _(S){return e.enter("tableRow"),z(S)}function z(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),z):S===null||V(S)?(e.exit("tableRow"),t(S)):ce(S)?pe(e,z,"whitespace")(S):(e.enter("data"),G(S))}function G(S){return S===null||S===124||xe(S)?(e.exit("data"),z(S)):(e.consume(S),S===92?W:G)}function W(S){return S===92||S===124?(e.consume(S),G):G(S)}}function Xh(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,d,u;const f=new Wh;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(s=!1,c!==0&&(Wa(f,t,c,l,d),d=void 0,c=0),l={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",l,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,u=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",d,t]])),i=g.type==="tableDelimiterRow"?2:d?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],u=Yn(f,t,a,i,void 0,u),a=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],u=Yn(f,t,a,i,void 0,u)),a=o,o=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,c=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(c=n,a[1]!==0?(o[0]=o[1],u=Yn(f,t,a,i,n,u)):o[1]!==0&&(u=Yn(f,t,o,i,n,u)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&Wa(f,t,c,l,d),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Vh(t.events,n))}return e}function Yn(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},en(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=en(t.events,n[1]);if(a={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=en(t.events,n[2]),d=en(t.events,n[3]),u={type:s,start:Object.assign({},l),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",u,t]]),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,m=n[3]-n[2]-1;e.add(g,m,[])}}e.add(n[3]+1,0,[["exit",u,t]])}return i!==void 0&&(a.end=Object.assign({},en(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Wa(e,t,n,r,i){const a=[],o=en(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function en(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const jh={name:"tasklistCheck",tokenize:Jh};function Qh(){return{text:{91:jh}}}function Jh(e,t,n){const r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return xe(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return V(c)?t(c):ce(c)?e.check({tokenize:em},t,n)(c):n(c)}}function em(e,t,n){return pe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function tm(e){return Wi([Th(),Ph(),Gh(e),Yh(),Qh()])}const nm={};function rm(e){const t=this,n=e||nm,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(tm(n)),a.push(vh()),o.push(xh(n))}function im(e){const t=new RegExp(`(?<!]\\(|]\\(<|href=["']|src=["'])(https?:\\/\\/[^\\s<>"')]+)(?![^[]*\\]\\))`,"g");return e.replace(t,n=>{const r=n.replace(/[.,;:!?]+$/g,""),i=n.slice(r.length);return`[${r}](${r})${i}`})}const om=U.memo(function({content:t}){return E.jsx(ep,{rehypePlugins:[Vf],remarkPlugins:[rm],children:im(t)})});function am(e){return e.variants?.find(t=>t.available)||e.variants?.[0]}function Ka(e,t,n){if(!e)return"";const r=Number(e);if(!Number.isFinite(r))return e;try{return new Intl.NumberFormat(n,{style:t?"currency":"decimal",currency:t||void 0,maximumFractionDigits:2}).format(r)}catch{return`${r.toFixed(2)}${t?` ${t}`:""}`}}const sm=U.memo(function({commerce:t,copy:n,locale:r,onProductClick:i}){const a=U.useMemo(()=>Array.isArray(t.products)?t.products.filter(o=>o?.id&&o?.title):[],[t.products]);return a.length?E.jsxs("section",{className:"akilio-products","aria-label":n.products,children:[E.jsxs("div",{className:"akilio-products-heading",children:[E.jsx("strong",{children:n.products}),E.jsx("span",{children:a.length})]}),E.jsx("div",{className:"akilio-product-grid",role:"list",children:a.map(o=>{const s=am(o),c=!!s?.available&&o.available!=="false",l=Ka(s?.price,s?.currency,r),d=Ka(s?.compare_at_price||void 0,s?.currency,r);return E.jsxs("article",{className:"akilio-product-card",role:"listitem",children:[E.jsxs("div",{className:"akilio-product-media",children:[o.image_url?E.jsx("img",{src:o.image_url,alt:"",loading:"lazy",decoding:"async"}):E.jsx("div",{className:"akilio-product-placeholder","aria-hidden":"true",children:"A"}),E.jsx("span",{className:c?"akilio-stock akilio-stock--available":"akilio-stock",children:c?n.inStock:n.outOfStock})]}),E.jsxs("div",{className:"akilio-product-body",children:[o.vendor&&E.jsx("span",{className:"akilio-product-vendor",children:o.vendor}),E.jsx("h4",{children:o.title}),s?.title&&s.title!==o.title&&E.jsx("span",{className:"akilio-product-variant",children:s.title}),E.jsxs("div",{className:"akilio-product-price",children:[l?E.jsx("strong",{children:l}):E.jsx("strong",{children:n.unavailable}),d&&d!==l&&E.jsx("del",{children:d})]}),o.url?E.jsx("a",{className:"akilio-product-action",href:o.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>i?.(o,s),children:n.viewProduct}):E.jsx("button",{type:"button",className:"akilio-product-action",disabled:!c,onClick:()=>i?.(o,s),children:n.viewProduct})]})]},o.id)})})]}):null});function lm(e){return Array.isArray(e)?e.filter(t=>t?.title||t?.url):[]}function cm(e){return typeof e=="number"?`${Math.round(e*100)}%`:typeof e=="string"&&e.trim()?e:null}const Va=U.memo(function({message:t,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o}){const s=t.role==="user",c=lm(t.sources),l=cm(t.confidence);return E.jsx("div",{className:Dt("akilio-message-row",s?"akilio-message-row--user":"akilio-message-row--assistant"),children:E.jsxs("div",{className:Dt("akilio-bubble",s&&"akilio-bubble--user",t.error&&"akilio-bubble--error"),children:[!s&&!t.error&&E.jsxs("div",{className:"akilio-bubble-meta",children:[E.jsx(Nn,{className:"akilio-mini-icon"}),E.jsx("span",{children:n.online}),l&&E.jsx("span",{className:"akilio-confidence",children:l})]}),E.jsx("div",{className:Dt("akilio-answer",s&&"akilio-answer--user"),children:s?E.jsx("p",{children:t.content}):E.jsx(om,{content:t.content})}),!s&&t.commerce?.products?.length?E.jsx(sm,{commerce:t.commerce,copy:n,locale:r,onProductClick:(d,u)=>a?.(t,d,u)}):null,!s&&!t.error&&t.suggestions?.length?E.jsx("div",{className:"akilio-response-suggestions","aria-label":"Suggested follow-up questions",children:t.suggestions.map(d=>E.jsx("button",{type:"button",onClick:()=>o?.(d),children:d},d))}):null,!s&&c.length>0&&E.jsxs("details",{className:"akilio-sources",children:[E.jsxs("summary",{children:[n.sources," · ",c.length]}),E.jsx("div",{className:"akilio-sources-list",children:c.map((d,u)=>E.jsxs("div",{className:"akilio-source-card",children:[E.jsx("strong",{children:d.title||"Untitled source"}),typeof d.section_path=="string"&&E.jsx("span",{children:d.section_path}),d.url&&E.jsx("a",{href:d.url,target:"_blank",rel:"noreferrer",children:d.url})]},`${d.url||d.title}-${u}`))})]}),!s&&!t.error&&t.backendMessageId&&E.jsxs("div",{className:"akilio-feedback",children:[E.jsx("span",{children:t.feedback?n.feedbackThanks:n.feedbackQuestion}),E.jsx("button",{type:"button",className:Dt(t.feedback==="up"&&"akilio-feedback-active"),onClick:()=>i?.(t,"up"),"aria-label":n.voteUp,children:E.jsx(Ps,{})}),E.jsx("button",{type:"button",className:Dt(t.feedback==="down"&&"akilio-feedback-active"),onClick:()=>i?.(t,"down"),"aria-label":n.voteDown,children:E.jsx(Bs,{})})]})]})})}),um=U.memo(function({messages:t,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o}){return E.jsx(E.Fragment,{children:t.map(s=>E.jsx(Va,{message:s,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o},s.id))})}),dm=U.forwardRef(function({loading:t,disabled:n,copy:r,onSubmit:i,onReviewConsent:a,onDraftChange:o,disabledMessage:s,showPoweredBy:c},l){const[d,u]=U.useState(""),f=U.useRef(""),p=U.useRef(null);U.useLayoutEffect(()=>{const h=p.current;if(!h)return;h.style.height="auto";const v=Math.max(48,Math.min(h.scrollHeight,148));h.style.height=`${v}px`,h.style.overflowY=h.scrollHeight>148?"auto":"hidden"},[d]);const g=async()=>{const h=f.current.trim();if(!h)throw new Error("EMPTY_DRAFT");if(t)throw new Error("BUSY");if(n)throw new Error("INVALID_QUESTION");return u(""),f.current="",o?.("",!1),i(h)},m=h=>{h.preventDefault(),g().catch(()=>{})},b=h=>{h.key==="Enter"&&!h.shiftKey&&!h.nativeEvent.isComposing&&(h.preventDefault(),m(h))};return U.useImperativeHandle(l,()=>({getDraft:()=>f.current,setDraft:(h,v)=>{const x=v?.clearExisting===!1?`${f.current}${h}`:h;f.current=x,u(x),o?.(x,!1),v?.focus&&window.setTimeout(()=>p.current?.focus(),0)},clearDraft:()=>{f.current="",u(""),o?.("",!1)},focus:()=>p.current?.focus(),submit:g}),[o,i,d,t,n]),E.jsxs("form",{onSubmit:m,className:"akilio-composer",children:[E.jsxs("div",{className:"akilio-composer-box",children:[E.jsx("textarea",{ref:p,value:d,rows:2,onChange:h=>{f.current=h.target.value,u(h.target.value),o?.(h.target.value,!0)},onKeyDown:b,placeholder:r.placeholder,"aria-label":r.placeholder,disabled:n}),E.jsxs("div",{className:"akilio-composer-footer",children:[E.jsxs("span",{children:[n?s||r.privacyRequired:r.helper,n&&a&&E.jsxs(E.Fragment,{children:[" ",E.jsx("button",{type:"button",className:"akilio-privacy-review",onClick:a,children:r.privacyReview})]})]}),E.jsxs("button",{type:"submit",disabled:t||n||!d.trim(),children:[t?r.loading:r.submit,E.jsx(Ls,{})]})]})]}),c&&E.jsx("div",{className:"akilio-powered-by",children:r.poweredBy})]})});function pm({copy:e,label:t}){return E.jsxs("div",{className:"akilio-message-row akilio-message-row--assistant akilio-stream-activity",role:"status","aria-live":"polite","aria-atomic":"true",children:[E.jsx("span",{className:"akilio-stream-activity-icon","aria-hidden":"true",children:E.jsx(Nn,{className:"akilio-mini-icon"})}),E.jsxs("div",{className:"akilio-stream-activity-content",children:[E.jsx("span",{className:"akilio-stream-activity-label",children:t||e.loading},t),E.jsx("span",{className:"akilio-stream-activity-pulse","aria-hidden":"true"})]})]})}function fm({copy:e,onSuggestion:t,widgetAvailable:n,showBranding:r}){return E.jsxs("div",{className:"akilio-empty",children:[E.jsx("div",{className:"akilio-empty-icon",children:r?E.jsx(lr,{variant:"mark"}):E.jsx(Nn,{})}),E.jsx("h3",{children:e.title}),E.jsx("p",{children:n?e.emptyState:e.widgetUnavailable}),E.jsx("div",{className:"akilio-suggestions",children:n&&e.suggestions.slice(0,4).map(i=>E.jsx("button",{type:"button",onClick:()=>t(i),children:i},i))})]})}const gm=U.forwardRef(function(t,n){const{open:r,isDesktop:i,inline:a,colorMode:o,allowColorModeToggle:s,widgetAvailable:c,showBranding:l,showPoweredBy:d,copy:u,locale:f,messages:p,streamingMessage:g,loading:m,loadingLabel:b,consentDecision:h,consentGranted:v,requireConsent:x,privacyNotice:C,privacyNoticeUrl:I,onConsentDecision:_,onClose:z,onToggleColorMode:G,onClear:W,onSubmit:S,onDraftChange:R,onFeedback:P,onProductClick:ee,onSuggestion:Y}=t,H=U.useRef(null),ne=U.useRef(null);return U.useImperativeHandle(n,()=>({getDraft:()=>ne.current?.getDraft()||"",setDraft:(he,X)=>ne.current?.setDraft(he,X),clearDraft:()=>ne.current?.clearDraft(),focusDraft:()=>ne.current?.focus(),submitDraft:()=>ne.current?ne.current.submit():Promise.reject(new Error("NOT_READY"))}),[]),U.useEffect(()=>{r&&H.current?.scrollTo({top:H.current.scrollHeight,behavior:p.length>1?"auto":"smooth"})},[p.length,g?.content,m,r]),E.jsxs("aside",{className:Dt("akilio-panel",i&&"akilio-panel--desktop",a&&"akilio-panel--inline",r&&"akilio-panel--open"),"aria-hidden":!r,"aria-label":u.title,children:[E.jsx("div",{className:"akilio-panel-glow"}),E.jsx("header",{className:"akilio-panel-header",children:E.jsxs("div",{className:"akilio-header-content",children:[E.jsxs("div",{className:"akilio-header-topline",children:[l&&E.jsx("div",{className:"akilio-logo",children:E.jsx(lr,{variant:"wordmark"})}),E.jsxs("div",{className:"akilio-header-title",children:[E.jsx("h2",{children:u.title}),E.jsxs("span",{className:Dt("akilio-online",!c&&"akilio-online--unavailable"),children:[E.jsx("i",{}),c?u.online:u.widgetUnavailable]})]}),E.jsxs("div",{className:"akilio-header-actions",children:[s&&E.jsx("button",{type:"button",onClick:G,title:o==="dark"?u.switchToLightMode:u.switchToDarkMode,"aria-label":o==="dark"?u.switchToLightMode:u.switchToDarkMode,children:o==="dark"?E.jsx(Fs,{}):E.jsx(zs,{})}),E.jsx("button",{type:"button",onClick:W,title:u.clearHistory,"aria-label":u.clearHistory,children:E.jsx(Ds,{})}),!a&&E.jsx("button",{type:"button",onClick:z,title:u.close,"aria-label":u.close,children:E.jsx(Rs,{})})]})]}),E.jsx("p",{className:"akilio-header-description",children:u.description})]})}),E.jsxs("div",{ref:H,className:"akilio-thread","aria-live":"polite","aria-relevant":"additions",children:[p.length===0&&!m?E.jsx(fm,{copy:u,onSuggestion:S,widgetAvailable:c,showBranding:l}):E.jsx(um,{messages:p,copy:u,locale:f,onFeedback:P,onProductClick:ee,onSuggestion:Y}),g&&E.jsx(Va,{message:g,copy:u,locale:f,onFeedback:P,onProductClick:ee,onSuggestion:Y}),m&&!g&&E.jsx(pm,{copy:u,label:b})]}),(C||x)&&h==="pending"&&E.jsxs("section",{className:"akilio-privacy","aria-label":u.privacyTitle,children:[E.jsxs("div",{children:[E.jsx("strong",{children:u.privacyTitle}),E.jsxs("p",{children:[C||u.privacyDefaultNotice," ",I&&E.jsx("a",{href:I,target:"_blank",rel:"noreferrer",children:u.privacyTitle})]}),x&&E.jsx("p",{className:"akilio-privacy-consent-copy",children:u.privacyAccept})]}),E.jsxs("div",{className:"akilio-privacy-actions",children:[E.jsx("button",{type:"button",className:"akilio-privacy-decline",onClick:()=>_("rejected"),children:u.privacyDecline}),E.jsx("button",{type:"button",className:"akilio-privacy-accept",onClick:()=>_("accepted"),children:u.privacyAcceptAction})]})]}),E.jsx(dm,{ref:ne,loading:m,disabled:!c||x&&!v,disabledMessage:c?u.privacyRequired:u.widgetUnavailable,showPoweredBy:d,copy:u,onSubmit:S,onDraftChange:R,onReviewConsent:x&&h==="rejected"?()=>_("pending"):void 0})]})});function hm({label:e,onClick:t,showBranding:n=!0}){return E.jsxs("button",{id:"akilio-launcher",type:"button",className:"akilio-launcher",onClick:t,children:[E.jsx("span",{children:n?E.jsx(lr,{variant:"mark",className:"akilio-launcher-logo"}):E.jsx(Nn,{className:"akilio-launcher-logo"})}),E.jsx("strong",{children:e})]})}const mm="(min-width: 1280px)";function bm(e=mm){const[t,n]=U.useState(!1);return U.useEffect(()=>{if(typeof window>"u")return;const r=window.matchMedia(e),i=()=>n(r.matches);return i(),r.addEventListener?.("change",i),()=>r.removeEventListener?.("change",i)},[e]),t}const tn=60;function km(e,t){if(!e)return t;try{return JSON.parse(e)}catch{return t}}function ym(e){const t=U.useMemo(()=>`akilio:${e.projectKey}:${e.locale||"default"}:messages:v1`,[e.projectKey,e.locale]),[n,r]=U.useState([]),[i,a]=U.useState(!1);return U.useEffect(()=>{if(!e.enabled||typeof window>"u"){a(!0);return}const o=km(window.localStorage.getItem(t),[]);r(Array.isArray(o)?o.slice(-tn):[]),a(!0)},[e.enabled,t]),U.useEffect(()=>{!e.enabled||!i||typeof window>"u"||window.localStorage.setItem(t,JSON.stringify(n.slice(-tn)))},[n,e.enabled,t,i]),[n,r,t]}function vn(e){const[t,n]=U.useState(e.initialValue||""),[r,i]=U.useState(!1);return U.useEffect(()=>{if(!e.enabled||typeof window>"u"){i(!0);return}n(window.localStorage.getItem(e.key)||e.initialValue||""),i(!0)},[e.enabled,e.initialValue,e.key]),U.useEffect(()=>{!e.enabled||!r||typeof window>"u"||(t?window.localStorage.setItem(e.key,t):window.localStorage.removeItem(e.key))},[e.enabled,r,e.key,t]),[t,n]}class ai extends Error{status;payload;constructor(t,n,r){super(t),this.name="AkilioHttpError",this.status=n,this.payload=r}}function Ya(e,t){return`${e.replace(/\/$/,"")}${t.startsWith("/")?t:`/${t}`}`}async function Za(e){const t=await e.text();let n={};try{n=t?JSON.parse(t):{}}catch{n={detail:t}}if(!e.ok){const r=n?.detail||n?.error||n?.message||`Request failed with status ${e.status}`;throw new ai(r,e.status,n)}return n}function si(e,t,n){const r=`${e.replace(/\/$/,"")}|${t}|${n||"anonymous"}`;let i=2166136261;for(let a=0;a<r.length;a+=1)i^=r.charCodeAt(a),i=Math.imul(i,16777619);return`akilio:widget-token:v1:${(i>>>0).toString(16)}`}function wm(e){if(typeof window>"u")return null;try{const t=window.sessionStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function Xa(e,t){if(!(typeof window>"u"))try{t?window.sessionStorage.setItem(e,JSON.stringify(t)):window.sessionStorage.removeItem(e)}catch{}}class ja{apiBaseUrl;fetchImpl;auth;widgetToken=null;widgetTokenPromise=null;widgetTokenPromiseKey=null;constructor(t){this.apiBaseUrl=t.apiBaseUrl;const n=t.fetchImpl||globalThis.fetch;if(!n)throw new Error("Fetch API is not available in this environment");this.fetchImpl=n.bind(globalThis),this.auth=t.auth}hasHostManagedToken(){return!!(this.auth?.getAccessToken||this.auth?.accessToken)}async hostManagedToken(){return(this.auth?.getAccessToken?await this.auth.getAccessToken():this.auth?.accessToken)||null}tokenIsUsable(t,n,r){const i=Math.max(0,this.auth?.tokenRefreshLeewaySeconds??30);return t.projectKey===n&&t.subject===r&&t.expiresAt>Date.now()+i*1e3}clearWidgetToken(t,n){this.widgetToken=null,Xa(si(this.apiBaseUrl,t,n),null)}async issueWidgetToken(t,n){const r=await this.publicRequest(`/api/v1/projects/${encodeURIComponent(t)}/widget-token/`,{method:"POST",body:JSON.stringify(n?{subject:n}:{})}),i=Math.max(1,Number(r.expires_in)||1),a={token:r.token,tokenType:r.token_type||"Bearer",expiresAt:Date.now()+i*1e3,projectKey:t,subject:n};return this.widgetToken=a,Xa(si(this.apiBaseUrl,t,n),a),this.auth?.onWidgetToken?.({token:a.token,tokenType:a.tokenType,expiresAt:a.expiresAt}),a}async ensureWidgetToken(t,n,r=!1){if(!r&&this.widgetToken&&this.tokenIsUsable(this.widgetToken,t,n))return this.widgetToken;const i=si(this.apiBaseUrl,t,n);if(!r){const o=wm(i);if(o&&this.tokenIsUsable(o,t,n))return this.widgetToken=o,o}r&&this.clearWidgetToken(t,n);const a=`${t}|${n||""}`;return(!this.widgetTokenPromise||this.widgetTokenPromiseKey!==a)&&(this.widgetTokenPromiseKey=a,this.widgetTokenPromise=this.issueWidgetToken(t,n).finally(()=>{this.widgetTokenPromiseKey===a&&(this.widgetTokenPromise=null,this.widgetTokenPromiseKey=null)})),this.widgetTokenPromise}async baseHeaders(t=!1){const n={Accept:"application/json",...this.auth?.headers||{}};return t&&(n["Content-Type"]="application/json"),this.auth?.apiKey&&(n[this.auth.apiKeyHeader||"X-Akilio-Key"]=this.auth.apiKey),n}async execute(t,n,r){const i=await this.fetchImpl(Ya(this.apiBaseUrl,t),{...n,credentials:this.auth?.credentials||"omit",headers:{...r,...n.headers||{}}});return Za(i)}async publicRequest(t,n={}){return this.execute(t,n,await this.baseHeaders(!!n.body))}async authenticatedRequest(t,n,r,i={}){const a=await this.baseHeaders(!!i.body),o=await this.hostManagedToken();if(o)return a.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${o}`,this.execute(r,i,a);if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");let s=await this.ensureWidgetToken(t,n);a.Authorization=`${s.tokenType} ${s.token}`;try{return await this.execute(r,i,a)}catch(c){if(!(c instanceof ai)||c.status!==401)throw c;return s=await this.ensureWidgetToken(t,n,!0),a.Authorization=`${s.tokenType} ${s.token}`,this.execute(r,i,a)}}async authenticatedResponse(t,n,r,i={}){const a=await this.baseHeaders(!!i.body);a.Accept="text/event-stream";const o=await this.hostManagedToken();if(o)a.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${o}`;else{if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");const l=await this.ensureWidgetToken(t,n);a.Authorization=`${l.tokenType} ${l.token}`}const s=()=>this.fetchImpl(Ya(this.apiBaseUrl,r),{...i,credentials:this.auth?.credentials||"omit",headers:{...a,...i.headers||{}}});let c=await s();if(c.status===401&&!o){await c.body?.cancel().catch(()=>{});const l=await this.ensureWidgetToken(t,n,!0);a.Authorization=`${l.tokenType} ${l.token}`,c=await s()}return c.ok||await Za(c),c}getProjectConfig(t){return this.publicRequest(`/api/v1/projects/${encodeURIComponent(t)}/config/`)}async prepareWidgetToken(t,n){this.hasHostManagedToken()||this.auth?.autoIssueWidgetToken===!1||await this.ensureWidgetToken(t,n)}sendMessage(t,n,r){return this.authenticatedRequest(t,n,"/api/v1/chat/",{method:"POST",body:JSON.stringify(r)})}async sendMessageStream(t,n,r,i={},a){let o;try{o=await this.authenticatedResponse(t,n,"/api/v1/chat/stream/",{method:"POST",body:JSON.stringify(r),signal:a})}catch(f){if(f instanceof ai&&[404,405,406,415,501].includes(f.status))return this.sendMessage(t,n,r);throw f}if(!o.body)throw new Error("Streaming response body is unavailable");const s=o.body.getReader(),c=new TextDecoder;let l="",d=null;const u=f=>{let p="message";const g=[];for(const b of f.split(/\r?\n/))!b||b.startsWith(":")||(b.startsWith("event:")&&(p=b.slice(6).trim()),b.startsWith("data:")&&g.push(b.slice(5).trimStart()));if(!g.length)return;let m;try{const b=JSON.parse(g.join(`
37
- `));m=b&&typeof b=="object"?b:{value:b}}catch{m={detail:g.join(`
38
- `)}}if(i.onEvent?.({event:p,data:m}),p==="status")i.onStatus?.(String(m.stage||""),m);else if(p==="conversation"){const b=m.conversation_id||m.id;b&&i.onConversation?.(String(b))}else if(p==="answer.delta")typeof m.delta=="string"&&i.onDelta?.(m.delta);else if(p==="final")d=m;else if(p==="error")throw new Error(String(m.detail||m.error||m.message||"Streaming request failed"))};for(;;){const{value:f,done:p}=await s.read();l+=c.decode(f,{stream:!p});const g=l.split(/\r?\n\r?\n/);l=g.pop()||"";for(const m of g)u(m);if(p)break}if(l.trim()&&u(l),!d)throw new Error("The stream ended before a final response was received");return d}getConversation(t,n,r){const i=new URLSearchParams({project_key:t});return this.authenticatedRequest(t,n,`/api/v1/conversations/${encodeURIComponent(r)}/?${i}`)}deleteConversation(t,n,r){const i=new URLSearchParams({project_key:t});return this.authenticatedRequest(t,n,`/api/v1/conversations/${encodeURIComponent(r)}/?${i}`,{method:"DELETE"})}sendCommerceEvent(t,n,r){return this.authenticatedRequest(t,n,"/api/v1/commerce/events/",{method:"POST",body:JSON.stringify(r)})}sendFeedback(t){return this.authenticatedRequest(t.projectKey,t.subject,`/api/v1/messages/${encodeURIComponent(t.messageId)}/feedback/`,{method:"POST",body:JSON.stringify({project_key:t.projectKey,rating:t.rating,comment:t.comment||"",metadata:t.metadata||{}})})}}function Em(e){const n=(e.locale||"").toLowerCase().startsWith("fr")?{launcher:"Demander à Akilio",title:"Demander à Akilio",description:"Posez vos questions à partir des contenus validés de cette organisation.",placeholder:"Posez votre question...",helper:"Entrée pour envoyer. Maj + Entrée pour une nouvelle ligne.",submit:"Envoyer",loading:"Réflexion...",searching:"Recherche des informations pertinentes...",reviewingSources:"Consultation des sources...",checkingAnswer:"Vérification de la réponse...",preparingAnswer:"Préparation de la réponse...",emptyState:"Commencez avec une question ou choisissez une suggestion.",sources:"Sources",confidence:"Confiance",clearHistory:"Effacer",close:"Fermer",online:"Assistant IA",feedbackQuestion:"Cette réponse est-elle utile ?",feedbackThanks:"Merci pour votre retour.",voteUp:"Utile",voteDown:"Pas utile",requestFailed:"Impossible d’obtenir une réponse pour le moment.",configFailed:"Impossible de charger la configuration Akilio.",newChat:"Nouvelle conversation",privacyTitle:"Confidentialité",privacyAccept:"J’accepte que ma question et les données de conversation soient traitées pour fournir une réponse.",privacyAcceptAction:"Accepter",privacyDecline:"Refuser",privacyReview:"Revoir mon choix de confidentialité",privacyRequired:"Votre consentement est requis avant d’envoyer une question.",widgetUnavailable:"Cet assistant est temporairement indisponible.",poweredBy:"Propulsé par Akilio",privacyDefaultNotice:"Vos questions peuvent être enregistrées afin de fournir le service et améliorer sa qualité.",switchToLightMode:"Passer au thème clair",switchToDarkMode:"Passer au thème sombre",products:"Produits",viewProduct:"Voir le produit",fromPrice:"À partir de",unavailable:"Prix indisponible",inStock:"En stock",outOfStock:"Rupture de stock",suggestions:["Quels services offrez-vous ?","Comment puis-je vous contacter ?","Où trouver plus d’informations ?","Pouvez-vous résumer cette page ?"]}:{launcher:"Ask Akilio",title:"Ask Akilio",description:"Ask questions using this organization’s verified content.",placeholder:"Ask your question...",helper:"Press Enter to send. Shift + Enter for a new line.",submit:"Send",loading:"Thinking...",searching:"Searching for relevant information...",reviewingSources:"Reviewing sources...",checkingAnswer:"Checking the answer...",preparingAnswer:"Preparing the answer...",emptyState:"Start with a question or choose a suggestion.",sources:"Sources",confidence:"Confidence",clearHistory:"Clear",close:"Close",online:"AI assistant",feedbackQuestion:"Was this answer useful?",feedbackThanks:"Thanks for your feedback.",voteUp:"Useful",voteDown:"Not useful",requestFailed:"Unable to get an answer right now.",configFailed:"Unable to load Akilio configuration.",newChat:"New chat",privacyTitle:"Privacy",privacyAccept:"I agree that my question and conversation data may be processed to provide an answer.",privacyAcceptAction:"Accept",privacyDecline:"Decline",privacyReview:"Review privacy choice",privacyRequired:"Consent is required before sending a question.",widgetUnavailable:"This assistant is temporarily unavailable.",poweredBy:"Powered by Akilio",privacyDefaultNotice:"Your questions may be stored to provide the service and improve its quality.",switchToLightMode:"Switch to light mode",switchToDarkMode:"Switch to dark mode",products:"Products",viewProduct:"View product",fromPrice:"From",unavailable:"Price unavailable",inStock:"In stock",outOfStock:"Out of stock",suggestions:["What services do you offer?","How can I contact you?","Where can I find more information?","Can you summarize this page?"]},r=e.projectConfig,i=e.overrides||{};return{...n,launcher:i.launcher||r?.theme_config?.launcherLabel||n.launcher,title:i.title||r?.title||n.title,placeholder:i.placeholder||r?.placeholder||n.placeholder,suggestions:r?.starter_questions?.length?r.starter_questions:n.suggestions,...i}}const Qa=":host,.akilio-root{--akilio-primary: #0F766E;--akilio-primary-hover: #115E59;--akilio-primary-foreground: #ffffff;--akilio-accent: #2563eb;--akilio-radius: 22px;--akilio-panel-width: 440px;--akilio-z-index: 2147483647}:host{all:initial;display:block;direction:ltr;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;text-align:left;color-scheme:light dark;pointer-events:none}.akilio-launcher,.akilio-overlay,.akilio-panel{pointer-events:auto}:host *,:host *:before,:host *:after,.akilio-root,.akilio-root *:before,.akilio-root *:after{box-sizing:border-box}.akilio-root button,.akilio-root input,.akilio-root textarea,.akilio-root select{font:inherit;color:inherit}.akilio-root,.akilio-root *{box-sizing:border-box}.akilio-root{color:#18181b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.akilio-launcher{position:fixed;right:22px;bottom:22px;z-index:calc(var(--akilio-z-index) - 10);display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-primary-hover));color:#fff!important;padding:11px 16px 11px 12px;cursor:pointer;box-shadow:0 24px 60px #18181b40,0 0 0 1px #09090b14;transition:transform .26s ease,box-shadow .18s ease,background .18s ease}.akilio-launcher:hover{transform:translateY(-2px);box-shadow:0 28px 70px #0891b240,0 0 0 1px #09090b14}.akilio-launcher span{display:grid;width:30px;height:30px;place-items:center;overflow:hidden;border-radius:999px;background:#fff!important}.akilio-launcher-logo{display:block;width:22px;height:22px;object-fit:contain}.akilio-launcher strong{font-size:14px;font-weight:750;letter-spacing:-.01em}.akilio-overlay{position:fixed;inset:0;z-index:calc(var(--akilio-z-index) - 2);border:0;background:#09090b75;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);cursor:default}.akilio-panel{position:fixed;top:0;right:0;z-index:var(--akilio-z-index);display:flex;width:min(100vw,var(--akilio-panel-width));height:100dvh;transform:translate(103%);flex-direction:column;overflow:hidden;border-left:1px solid rgba(212,212,216,.9);background:#f8fafc;box-shadow:-30px 0 90px #0f172a3d;transition:transform .26s cubic-bezier(.2,.8,.2,1)}.akilio-panel--open{transform:translate(0)}.akilio-root[data-akilio-mode=floating] .akilio-panel{top:auto;right:22px;bottom:88px;width:min(400px,calc(100vw - 32px));height:min(650px,calc(100dvh - 116px));min-height:420px;transform:translateY(18px) scale(.98);transform-origin:right bottom;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 28px 80px #0f172a3d;opacity:0;visibility:hidden;pointer-events:none;transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .18s ease,visibility .18s ease}.akilio-root[data-akilio-mode=floating] .akilio-panel--open{transform:translateY(0) scale(1);opacity:1;visibility:visible;pointer-events:auto}.akilio-panel-glow{position:absolute;inset:0 0 auto;height:185px;pointer-events:none;background:radial-gradient(circle at 0% 0%,color-mix(in srgb,var(--akilio-primary) 35%,transparent),transparent 36%),radial-gradient(circle at 100% 0%,rgba(37,99,235,.22),transparent 34%)}.akilio-panel-header{position:relative;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid rgba(212,212,216,.82);background:#ffffffc7;padding:16px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-logo,.akilio-empty-icon{display:grid;flex-shrink:0;place-items:center}.akilio-logo{width:94px;height:34px}.akilio-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}.akilio-empty-icon{width:64px;height:64px;border:1px solid rgba(124,58,237,.12);border-radius:calc(var(--akilio-radius) - 4px);background:#ffffffe0;box-shadow:0 18px 42px #6d28d929}.akilio-empty-icon img{display:block;width:42px;height:42px;object-fit:contain}.akilio-header-content{min-width:0;flex:1}.akilio-header-topline{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px}.akilio-header-title{display:flex;min-width:0;align-items:center;gap:8px}.akilio-header-title h2{overflow:hidden;margin:0;color:#09090b;font-size:14px;font-weight:800;letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap}.akilio-online{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#10b9811f;color:#047857;padding:3px 8px;font-size:10px;font-weight:800;white-space:nowrap}.akilio-online i{width:6px;height:6px;border-radius:999px;background:#10b981}.akilio-header-description{display:-webkit-box;margin:6px 0 0;overflow:hidden;color:#71717a;font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}.akilio-header-actions{display:flex;flex-shrink:0;align-items:center;gap:4px}.akilio-header-actions button{display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;transition:background .16s ease,color .16s ease}.akilio-header-actions button:hover{background:#f4f4f5;color:#09090b}.akilio-header-actions svg{width:18px;height:18px}.akilio-thread{position:relative;display:flex;flex:1;flex-direction:column;gap:14px;overflow-y:auto;padding:18px 16px 22px}.akilio-message-row{display:flex;width:100%}.akilio-message-row--user{justify-content:flex-end}.akilio-message-row--assistant{justify-content:flex-start}.akilio-stream-activity{align-items:center;gap:10px;min-height:38px;padding:2px 4px;color:#52525b}.akilio-stream-activity-icon{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 8%,#fff);color:var(--akilio-primary)}.akilio-stream-activity-content{display:flex;min-width:0;align-items:center;gap:8px}.akilio-stream-activity-label{font-size:13px;font-weight:550;line-height:1.4;animation:akilio-status-in .18s ease-out}.akilio-stream-activity-pulse{width:6px;height:6px;flex:0 0 6px;border-radius:999px;background:var(--akilio-primary);animation:akilio-status-pulse 1.2s ease-in-out infinite}@keyframes akilio-status-in{0%{transform:translateY(2px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes akilio-status-pulse{0%,to{transform:scale(.75);opacity:.35}50%{transform:scale(1);opacity:1}}.akilio-bubble{max-width:88%;overflow:hidden;border:1px solid rgba(212,212,216,.86);border-radius:26px 26px 26px 8px;background:#fffffff0;color:#27272a;padding:13px 15px;box-shadow:0 10px 28px #0f172a12}.akilio-bubble--user{border-color:#ffffff26;border-bottom-right-radius:8px;border-bottom-left-radius:26px;background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-primary-hover));color:#fff}.akilio-bubble--error{border-color:#f8717159;background:#fef2f2;color:#991b1b}.akilio-bubble-meta{display:flex;align-items:center;gap:7px;margin-bottom:8px;color:var(--akilio-primary);font-size:10px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.akilio-mini-icon{width:14px;height:14px}.akilio-confidence{margin-left:auto;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,transparent);padding:2px 7px;color:var(--akilio-primary);letter-spacing:0;text-transform:none}.akilio-answer{color:inherit;font-size:14px;line-height:1.7}.akilio-answer p{margin:.5rem 0}.akilio-answer p:first-child{margin-top:0}.akilio-answer p:last-child{margin-bottom:0}.akilio-answer ul,.akilio-answer ol{margin:.625rem 0 .625rem 1.25rem;padding-left:.75rem}.akilio-answer ul{list-style:disc}.akilio-answer ol{list-style:decimal}.akilio-answer li{margin:.25rem 0}.akilio-answer a{color:var(--akilio-primary);font-weight:700;text-decoration:underline;text-underline-offset:3px}.akilio-answer code{border-radius:7px;background:#0f172a14;padding:.12rem .35rem;font-size:.86em}.akilio-answer pre{margin:.75rem 0;overflow-x:auto;border:1px solid rgba(148,163,184,.2);border-radius:16px;background:#020617;padding:13px}.akilio-answer pre code{background:transparent;color:#e2e8f0;padding:0}.akilio-answer .hljs-keyword,.akilio-answer .hljs-selector-tag,.akilio-answer .hljs-built_in{color:#f0abfc}.akilio-answer .hljs-string,.akilio-answer .hljs-attr,.akilio-answer .hljs-symbol{color:#86efac}.akilio-answer .hljs-number,.akilio-answer .hljs-literal{color:#fcd34d}.akilio-answer .hljs-comment{color:#64748b;font-style:italic}.akilio-answer .hljs-title,.akilio-answer .hljs-function{color:#7dd3fc}.akilio-answer .hljs-variable{color:#fdba74}.akilio-answer--user{white-space:pre-wrap}.akilio-answer--user code{background:#ffffff29}.akilio-sources{margin-top:11px;overflow:hidden;border:1px solid rgba(212,212,216,.85);border-radius:16px;background:#f4f4f5c7}.akilio-sources summary{cursor:pointer;padding:9px 11px;color:#52525b;font-size:12px;font-weight:800}.akilio-sources-list{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.85);padding:8px}.akilio-source-card{display:grid;gap:3px;border:1px solid rgba(212,212,216,.82);border-radius:13px;background:#fff;padding:8px;font-size:12px}.akilio-source-card strong{color:#18181b}.akilio-source-card span{color:#71717a}.akilio-source-card a{overflow:hidden;color:var(--akilio-primary);text-overflow:ellipsis;white-space:nowrap}.akilio-feedback{display:flex;align-items:center;gap:7px;margin-top:11px;color:#71717a;font-size:11px}.akilio-feedback span{margin-right:auto}.akilio-feedback button{display:grid;width:28px;height:28px;place-items:center;border:1px solid rgba(212,212,216,.9);border-radius:999px;background:#fff;color:#71717a;cursor:pointer}.akilio-feedback button:hover,.akilio-feedback .akilio-feedback-active{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);color:var(--akilio-primary)}.akilio-feedback svg{width:14px;height:14px}.akilio-dots{display:flex;gap:6px;padding:2px 0}.akilio-dots span{width:8px;height:8px;border-radius:999px;background:var(--akilio-primary);animation:akilio-bounce .9s infinite ease-in-out}.akilio-dots span:nth-child(2){animation-delay:.1s}.akilio-dots span:nth-child(3){animation-delay:.2s}@keyframes akilio-bounce{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}.akilio-empty{margin:auto;display:flex;max-width:340px;flex-direction:column;align-items:center;padding:34px 0;text-align:center}.akilio-empty-icon{width:58px;height:58px;margin-bottom:16px}.akilio-empty h3{margin:0;color:#09090b;font-size:17px;font-weight:850;letter-spacing:-.02em}.akilio-empty p{margin:8px 0 0;color:#71717a;font-size:14px;line-height:1.65}.akilio-suggestions{display:grid;width:100%;gap:9px;margin-top:18px}.akilio-suggestions button{border:1px solid rgba(212,212,216,.9);border-radius:16px;background:#fff;color:#3f3f46;cursor:pointer;padding:10px 12px;text-align:left;font-size:12px;font-weight:700;box-shadow:0 5px 14px #0f172a0a;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.akilio-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);box-shadow:0 12px 22px #0f172a14}.akilio-composer{position:relative;border-top:1px solid rgba(212,212,216,.85);background:#ffffffdb;padding:12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-composer-box{border:1px solid rgba(212,212,216,.95);border-radius:24px;background:#f8fafc;padding:8px;box-shadow:inset 0 1px 2px #0f172a0a;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.akilio-composer-box:focus-within{border-color:color-mix(in srgb,var(--akilio-primary) 55%,#d4d4d8);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--akilio-primary) 13%,transparent),inset 0 1px 2px #0f172a08}.akilio-composer textarea{width:100%;min-height:48px;max-height:148px;height:48px;overflow-y:hidden;resize:none;border:0;outline:0;background:transparent;color:#09090b;padding:8px 10px;font:inherit;font-size:14px;line-height:1.55}.akilio-online--unavailable{color:#a16207}.akilio-online--unavailable i{background:#f59e0b;box-shadow:0 0 0 3px #f59e0b29}.akilio-composer textarea::placeholder{color:#a1a1aa}.akilio-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 2px 7px}.akilio-composer-footer span{color:#71717a;font-size:11px}.akilio-composer-footer button{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;background:var(--akilio-primary);color:#fff;cursor:pointer;padding:10px 15px;font-size:12px;font-weight:850;box-shadow:0 10px 24px #0f172a24;transition:transform .15s ease,opacity .15s ease}.akilio-composer-footer button:hover:not(:disabled){transform:translateY(-1px);background:var(--akilio-primary-hover)}.akilio-powered-by{padding:7px 4px 0;color:#71717a;font-size:10px;font-weight:600;line-height:1.2;text-align:center}.akilio-composer-footer button:disabled{cursor:not-allowed;opacity:.45}.akilio-composer-footer svg{width:15px;height:15px}.akilio-tour{max-width:360px;border-radius:18px!important}@media(max-width:640px){.akilio-launcher{right:16px;bottom:16px;padding:10px 12px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw}.akilio-bubble{max-width:94%}.akilio-composer-footer span{display:none}}.akilio-root[data-akilio-mode=inline]{width:100%;height:100%;min-height:520px}.akilio-panel--inline{position:relative;inset:auto;width:100%;height:100%;min-height:520px;transform:none;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 18px 50px #0f172a1f}.akilio-privacy{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.82);background:#ffffffe6;padding:10px 14px;font-size:11px;line-height:1.45}.akilio-privacy strong{color:#18181b}.akilio-privacy p{margin:2px 0 0;color:#71717a}.akilio-privacy a{color:var(--akilio-primary);font-weight:700}.akilio-privacy label{display:flex;align-items:flex-start;gap:8px;color:#3f3f46;cursor:pointer}.akilio-privacy input{margin-top:2px;accent-color:var(--akilio-primary)}.akilio-composer textarea:disabled{cursor:not-allowed;opacity:.65}.akilio-root button:focus-visible,.akilio-root a:focus-visible,.akilio-root input:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 45%,transparent);outline-offset:2px}.akilio-root .akilio-composer textarea:focus,.akilio-root .akilio-composer textarea:focus-visible{border:0;outline:none;box-shadow:none}@media(prefers-reduced-motion:reduce){.akilio-root *,.akilio-root *:before,.akilio-root *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.akilio-root[data-akilio-color-mode=dark]{color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-panel,.akilio-root[data-akilio-color-mode=dark] .akilio-panel--inline{background:var(--akilio-surface, #09090b);border-color:#27272a}.akilio-root[data-akilio-color-mode=dark] .akilio-panel-header,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=dark] .akilio-empty h3,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy strong{color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-header-description,.akilio-root[data-akilio-color-mode=dark] .akilio-empty p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy label,.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity-icon{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 15%,#18181b)}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=dark] .akilio-sources{background:#09090b;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-sources-list{border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback button,.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card span,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback{color:#a1a1aa}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-panel,.akilio-root[data-akilio-color-mode=system] .akilio-panel--inline{background:#09090b;border-color:#27272a}.akilio-root[data-akilio-color-mode=system] .akilio-panel-header,.akilio-root[data-akilio-color-mode=system] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=system] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=system] .akilio-empty h3,.akilio-root[data-akilio-color-mode=system] .akilio-privacy strong{color:#fafafa}.akilio-root[data-akilio-color-mode=system] .akilio-header-description,.akilio-root[data-akilio-color-mode=system] .akilio-empty p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy label{color:#a1a1aa}.akilio-root[data-akilio-color-mode=system] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=system] .akilio-source-card,.akilio-root[data-akilio-color-mode=system] .akilio-feedback button,.akilio-root[data-akilio-color-mode=system] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}}@media(max-width:640px){.akilio-launcher{right:14px;bottom:max(14px,env(safe-area-inset-bottom));padding:10px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw;height:100dvh;border-left:0}.akilio-root[data-akilio-mode=floating] .akilio-panel{right:14px;bottom:calc(76px + env(safe-area-inset-bottom));width:calc(100vw - 28px);height:min(640px,calc(100dvh - 104px - env(safe-area-inset-bottom)));min-height:min(420px,calc(100dvh - 104px));border:1px solid rgba(212,212,216,.9);border-radius:18px}.akilio-panel-header{padding-top:max(14px,env(safe-area-inset-top))}.akilio-thread{padding-inline:12px}.akilio-bubble{max-width:94%}.akilio-composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.akilio-root[data-akilio-mode=inline]{min-height:480px}.akilio-panel--inline{min-height:480px;border-radius:16px}}.akilio-root[data-akilio-color-mode=dark] .akilio-composer{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea{color:var(--akilio-text, #fafafa);caret-color:var(--akilio-text, #fafafa);-webkit-text-fill-color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea::placeholder{color:var(--akilio-muted, #a1a1aa);-webkit-text-fill-color:var(--akilio-muted, #a1a1aa);opacity:1}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-footer span,.akilio-root[data-akilio-color-mode=dark] .akilio-powered-by{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box:focus-within{background:#18181b}@media(max-width:420px){.akilio-logo{width:78px;height:30px}}.akilio-privacy-consent-copy{margin-top:6px!important}.akilio-privacy-actions{display:flex;justify-content:flex-end;gap:8px}.akilio-privacy-actions button{border:1px solid rgba(161,161,170,.65);border-radius:999px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer}.akilio-privacy-decline{background:transparent;color:#52525b}.akilio-privacy-accept{border-color:var(--akilio-primary)!important;background:var(--akilio-primary);color:#fff}.akilio-privacy-review{border:0;background:transparent;color:var(--akilio-primary);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;padding:0}.akilio-products{margin-top:14px;min-width:0}.akilio-products-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:12px;color:#64748b}.akilio-products-heading span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:700}.akilio-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.akilio-product-card{min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f}.akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .18s ease}.akilio-product-card:hover .akilio-product-media img{transform:scale(1.025)}.akilio-product-placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--akilio-primary);font-size:30px;font-weight:800;background:linear-gradient(145deg,#0891b21f,#2563eb14)}.akilio-stock{position:absolute;top:8px;right:8px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 7px;border-radius:999px;background:#7f1d1de6;color:#fff;font-size:9px;font-weight:700}.akilio-stock--available{background:#065f46e6}.akilio-product-body{padding:11px}.akilio-product-vendor,.akilio-product-variant{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px}.akilio-product-card h4{margin:4px 0 8px;min-height:34px;overflow:hidden;color:#0f172a;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.akilio-product-price{min-height:37px;display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;margin-bottom:9px}.akilio-product-price strong{color:#0f172a;font-size:14px}.akilio-product-price del{color:#94a3b8;font-size:10px}.akilio-product-action{width:100%;min-height:34px;display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:0;border-radius:10px;background:var(--akilio-primary);color:var(--akilio-primary-foreground);font:inherit;font-size:11px;font-weight:700;text-decoration:none;cursor:pointer}.akilio-product-action:hover{filter:brightness(.96)}.akilio-product-action:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 28%,transparent);outline-offset:2px}.akilio-product-action:disabled{opacity:.55;cursor:not-allowed}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading{color:#94a3b8}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading span{background:#312e81;color:#e0e7ff}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-media{background:#1e293b}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card h4,.akilio-root[data-akilio-color-mode=dark] .akilio-product-price strong{color:#f8fafc}.akilio-root[data-akilio-color-mode=dark] .akilio-product-vendor,.akilio-root[data-akilio-color-mode=dark] .akilio-product-variant{color:#94a3b8}@media(max-width:390px){.akilio-product-grid{grid-template-columns:1fr}.akilio-product-media{aspect-ratio:16 / 9}}.akilio-response-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.akilio-response-suggestions button{appearance:none;border:1px solid color-mix(in srgb,var(--akilio-primary) 26%,#d4d4d8);border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 7%,#ffffff);color:color-mix(in srgb,var(--akilio-primary) 72%,#18181b);cursor:pointer;padding:8px 11px;text-align:left;font:inherit;font-size:12px;font-weight:700;line-height:1.35;transition:transform .15s ease,border-color .15s ease,background .15s ease}.akilio-response-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 52%,#d4d4d8);background:color-mix(in srgb,var(--akilio-primary) 12%,#ffffff)}.akilio-response-suggestions button:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 24%,transparent);outline-offset:2px}.akilio-root[data-akilio-color-mode=dark] .akilio-response-suggestions button{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 14%,#18181b);color:#f4f4f5}";class Zn extends Error{code;constructor(t,n){super(n),this.name="AkilioPublicApiError",this.code=t}}function ot(e,t){typeof window>"u"||window.dispatchEvent(new CustomEvent(`akilio:${e}`,{detail:t||{}}))}function ze(e,t){return new Zn(e,t)}function nn(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function xn(){return new Date().toISOString()}function Ja(e){const t=typeof e=="function"?e():e||{};return typeof window>"u"?t:{url:t.url||window.location.href,title:t.title||document.title,...t}}function vm(e,t){const n={...e?.theme_config||{},...t||{}};return{"--akilio-primary":String(n.primary||"#0F766E"),"--akilio-primary-hover":String(n.primaryDark||"#115E59"),"--akilio-primary-foreground":String(n.primaryForeground||"#ffffff"),"--akilio-accent":String(n.accent||"#2563eb"),"--akilio-radius":String(n.radius||"22px"),"--akilio-panel-width":`${Number(n.panelWidth||440)}px`,"--akilio-z-index":String(Number(n.zIndex||2147483647)),"--akilio-surface":String(n.surface||""),"--akilio-text":String(n.text||""),"--akilio-muted":String(n.muted||"")}}function xm(e,t){U.useEffect(()=>{if(typeof document>"u")return;const n=document.documentElement;return n.classList.toggle("akilio-panel-open",e&&t),()=>n.classList.remove("akilio-panel-open")},[e,t])}function _m(e,t,n,r,i){U.useEffect(()=>{if(!e||!r||typeof window>"u")return;const a="akilio:tour-seen:v2",o=(l=!1)=>{if(!l&&window.localStorage.getItem(a)==="true")return;const d=i?.querySelector("#akilio-launcher");if(d){if(!document.getElementById("akilio-driver-styles")){const u=document.createElement("style");u.id="akilio-driver-styles",u.textContent=Is,document.head.appendChild(u)}Promise.resolve().then(()=>sb).then(({driver:u})=>{typeof document>"u"||!d.isConnected||u({showProgress:!1,allowClose:!0,overlayClickBehavior:"close",nextBtnText:"Got it",doneBtnText:"Start asking",popoverClass:"akilio-tour",steps:[{element:d,popover:{title:t,description:n,side:"left",align:"center"}}],onDestroyed:()=>window.localStorage.setItem(a,"true")}).drive()}).catch(()=>{})}},s=window.setTimeout(()=>o(!1),1400),c=()=>o(!0);return window.addEventListener("akilio:start-tour",c),()=>{window.clearTimeout(s),window.removeEventListener("akilio:start-tour",c)}},[e,t,n,r,i])}function es(e){return Array.isArray(e)?e.filter(t=>typeof t=="string").map(t=>t.trim()).filter(Boolean).slice(0,6):[]}function Sm(e){if(typeof e.answer=="string"&&e.answer.trim())return e.answer;const t=e.content;if(t&&typeof t=="object")for(const n of["answer","text","message"]){const r=t[n];if(typeof r=="string"&&r.trim())return r}return""}function ts(e){if(!e)return null;try{const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}function Tm(e,t=!0){return{id:nn(),role:"assistant",content:Sm(e),backendMessageId:e.message_id,conversationId:e.conversation_id,confidence:e.confidence,sources:e.sources||[],provider:e.provider,model:e.model,costUsd:e.cost_usd,commerce:t&&e.commerce||null,suggestions:es(e.suggestions),createdAt:xn()}}function ns({apiBaseUrl:e="https://api.akilio-ai.com",projectKey:t,locale:n="en",mode:r="floating",colorMode:i="system",allowColorModeToggle:a=!0,showAkilioBranding:o=!0,streaming:s=!0,defaultOpen:c=!1,open:l,launcher:d="default",persistOpenState:u=!0,enableTour:f=!0,enableLocalHistory:p=!0,enableServerHistorySync:g=!0,anonymousId:m,externalUserId:b,channel:h,audience:v,productArea:x,assistantMode:C,pageContext:I,auth:_,accessToken:z,privacyNotice:G,privacyNoticeUrl:W,requireConsent:S,consentNoticeVersion:R="v1",initialConsent:P=!1,onConsentChange:ee,copy:Y,theme:H,className:ne,onOpenChange:he,onMessage:X,onProductClick:be,onError:k}){const ue=U.useRef(null),ae=U.useRef(null),w=U.useRef(0),ye=U.useRef({open:!1,busy:!1,conversationId:null}),[je,Ne]=U.useState(null),at=U.useMemo(()=>({..._||{},accessToken:_?.accessToken||z}),[z,_]),_e=U.useMemo(()=>new ja({apiBaseUrl:e,auth:at}),[e,at]),st=bm(),[Oe,Et]=U.useState(null),[Ft,zt]=U.useState(null),[vt,It]=U.useState(!1),[fe,rt]=U.useState({stage:"",message:""}),[pt,lt]=U.useState(null),[ft,Qe]=ym({enabled:p,projectKey:t,locale:n}),[Ue,ct]=vn({enabled:p,key:`akilio:${t}:${n}:conversation-id:v2`}),gt=U.useMemo(()=>nn(),[t]),[rn]=vn({enabled:!0,key:`akilio:${t}:widget-subject:v1`,initialValue:gt}),[T,L]=vn({enabled:u,key:`akilio:${t}:panel-open:v2`,initialValue:c?"true":""}),[j,oe]=vn({enabled:!0,key:`akilio:${t}:consent:${R}`,initialValue:P?"true":""}),[me,Ge]=U.useState(c),[Je,et]=vn({enabled:!0,key:`akilio:${t}:color-mode:v1`}),[xt,Ot]=U.useState("light"),Se=r==="inline",ht=r==="floating",We=r==="hybrid"||r==="side-panel",on=!Se&&(r==="side-panel"||r==="hybrid"&&st),Jn=!Se&&!ht&&(r==="drawer"||r==="hybrid"&&!st),_t=Se||(l??(u&&T==="true"||me)),Ut=i||H?.colorMode||Oe?.theme_config?.colorMode||"system",y=Je==="light"||Je==="dark"||Je==="system"?Je:Ut,N=y==="system"?xt:y,O=U.useMemo(()=>Em({locale:n,projectConfig:Oe,overrides:Y}),[Y,n,Oe]),Z=Oe?.widget_policy,Ce=Z?.available!==!1,ke=Z?.commerce_enabled!==!1,$=Z?.assistant_mode||C,F=Z?.branding==="akilio_required"||Z?.branding!=="white_label"&&o,Q=Z?.branding==="akilio_required",Re=U.useMemo(()=>ke?ft:ft.map(B=>B.commerce?{...B,commerce:null}:B),[ke,ft]),Me=U.useMemo(()=>vm(Oe,H),[Oe,H]),Mt=S??Oe?.require_consent??!1,_n=G||Oe?.privacy_notice||"",Sn=W||Oe?.privacy_notice_url,er=j==="true"||j==="accepted"?"accepted":j==="rejected"?"rejected":"pending",Lt=er==="accepted",Ke=b||m||rn||void 0,mt=U.useCallback(B=>{if(Se)return;const ge=ye.current.open!==B;ye.current.open=B,l===void 0&&(Ge(B),u&&L(B?"true":"")),he?.(B),ge&&ot(B?"open":"close")},[l,Se,he,u,L]),tr=U.useMemo(()=>({open:_t,openChat:()=>mt(!0),closeChat:()=>mt(!1),toggleChat:()=>mt(!_t)}),[_t,mt]),nr=U.useCallback(B=>{oe(B==="pending"?"":B),B!=="pending"&&ee?.(B==="accepted")},[ee,oe]);U.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const B=window.matchMedia("(prefers-color-scheme: dark)"),ge=()=>Ot(B.matches?"dark":"light");return ge(),B.addEventListener?.("change",ge),()=>B.removeEventListener?.("change",ge)},[]);const an=U.useCallback(()=>{et(N==="dark"?"light":"dark")},[N,et]);xm(_t,on&&We),_m(f,O.title,O.description,!Se,je),U.useEffect(()=>{let B=!1;return _e.getProjectConfig(t).then(ge=>{B||(Et(ge),zt(null))}).catch(ge=>{B||(zt(ge.message),k?.(ge))}),()=>{B=!0}},[_e,k,t]),U.useEffect(()=>{Ke&&_e.prepareWidgetToken(t,Ke).catch(B=>k?.(B))},[_e,k,t,Ke]),U.useEffect(()=>{if(!g||!Ke||!Ue||ft.length>0)return;let B=!1;return _e.getConversation(t,Ke,Ue).then(ge=>{B||Qe(ge.messages.map(de=>({id:de.id,backendMessageId:de.role==="assistant"?de.id:void 0,conversationId:ge.id,role:de.role,content:de.content,sources:de.sources||[],confidence:de.confidence,commerce:(()=>{const le=de.metadata&&typeof de.metadata=="object"?de.metadata:null,Ae=ts(de.structured_content);return ke&&(le?.commerce||Ae?.commerce)||null})(),suggestions:(()=>{const le=de.metadata&&typeof de.metadata=="object"?de.metadata:null,Ae=ts(de.structured_content);return es(le?.suggestions||Ae?.suggestions)})(),createdAt:de.created_at})).slice(-tn))}).catch(()=>ct("")),()=>{B=!0}},[_e,ke,Ue,g,ft.length,t,ct,Qe,Ke]);const Tn=U.useCallback(()=>{Qe([]),ct("")},[ct,Qe]),rr=U.useCallback(async B=>{if(!B)throw ze("INVALID_QUESTION","Question is empty");if(!Ce)throw ze("INVALID_QUESTION","This widget is not currently available");if(vt)throw ze("BUSY","An answer is already in progress");if(Mt&&!Lt)throw ze("INVALID_QUESTION","Privacy consent is required");const ge=Ja(I),de={id:nn(),role:"user",content:B,createdAt:xn(),conversationId:Ue||void 0};Qe(Ae=>[...Ae,de].slice(-tn)),X?.(de),ot("question",{question:B}),It(!0),ye.current.busy=!0,ot("answer-start",{question:B}),rt({stage:"",message:""}),lt(null);const le=nn();try{const Ae={project_key:t,conversation_id:Ue||void 0,message:B,locale:n,channel:h||ge.channel||"docs",audience:v||ge.audience,product_area:x||ge.productArea,assistant_mode:$||void 0,page:{url:ge.url,title:ge.title,...ge.metadata||{}},anonymous_id:m,external_user_id:b,consent:{granted:Lt,granted_at:Lt?xn():void 0,notice_version:R}};let A="";const q=s?await _e.sendMessageStream(t,Ke,Ae,{onStatus:(ie,Ie)=>{const De=Ie.message||Ie.label;rt({stage:ie,message:typeof De=="string"?De:""})},onConversation:ie=>{ye.current.conversationId=ie,ct(ie)},onDelta:ie=>{A+=ie,ot("answer-delta",{delta:ie}),lt({id:le,role:"assistant",content:A,conversationId:Ue||void 0,createdAt:xn(),streaming:!0})}}):await _e.sendMessage(t,Ke,Ae);ye.current.conversationId=q.conversation_id,ct(q.conversation_id);const re={...Tm(q,ke),id:A?le:nn(),streaming:!1};return lt(null),Qe(ie=>[...ie,re].slice(-tn)),X?.(re),ot("answer-complete",{response:q}),q}catch(Ae){const A=Ae instanceof Error?Ae:new Error(O.requestFailed),q={id:nn(),role:"assistant",content:A.message||O.requestFailed,createdAt:xn(),error:!0};throw lt(null),Qe(re=>[...re,q].slice(-tn)),k?.(A),ot("error",{code:Ae instanceof Zn?Ae.code:"STREAM_FAILED",message:A.message||O.requestFailed}),A}finally{It(!1),ye.current.busy=!1,rt({stage:"",message:""})}},[m,v,h,_e,ke,Lt,R,Ue,O.requestFailed,Mt,$,b,vt,n,k,X,I,x,t,ct,Qe,s,Ke,Ce]),bt=U.useCallback(()=>{const B=ae.current;B&&(ae.current=null,B.timer&&window.clearTimeout(B.timer),B.reject(ze("TYPING_CANCELLED","Draft typing was cancelled")),ot("typing-cancel",{draft:ue.current?.getDraft()||""}))},[]),St=U.useCallback((B,ge)=>{ge&&ae.current&&bt(),ot("draft-change",{draft:B})},[bt]);ye.current={open:_t,busy:vt,conversationId:Ue||null},U.useEffect(()=>{if(typeof window>"u"||window.AkilioWidget)return;const B=()=>{if(!ue.current)throw ze("NOT_READY","The widget is not ready");return ue.current},ge=async(le,Ae={})=>{if(bt(),typeof le!="string")throw ze("INVALID_QUESTION","Draft must be a string");B().setDraft(le,{focus:Ae.focus,clearExisting:Ae.clearExisting??!0}),await new Promise(A=>window.setTimeout(A,0))},de=Object.freeze({open:async()=>{mt(!0),await new Promise(le=>window.setTimeout(le,0))},close:async()=>{mt(!1),await new Promise(le=>window.setTimeout(le,0))},setDraft:ge,typeDraft:async(le,Ae={})=>{if(bt(),typeof le!="string"||!le.length)throw ze("INVALID_QUESTION","Question must not be empty");const A=B(),q=Ae.clearExisting===!1?A.getDraft():"",re=Math.max(0,Number(Ae.interval??35)),ie=++w.current;return ot("typing-start",{textLength:le.length}),new Promise(async(Ie,De)=>{ae.current={id:ie,reject:De};try{for(let Ve=1;Ve<=le.length;Ve+=1){if(await new Promise(sn=>{const Ye=window.setTimeout(sn,re);ae.current?.id===ie&&(ae.current.timer=Ye)}),ae.current?.id!==ie)return;A.setDraft(`${q}${le.slice(0,Ve)}`,{clearExisting:!0,focus:Ae.focus&&Ve===1})}if(ae.current?.id!==ie)return;ae.current=null,ot("typing-complete",{draft:A.getDraft()}),Ie()}catch(Ve){ae.current=null,De(Ve)}})},clearDraft:async()=>{bt(),B().clearDraft()},cancelTyping:bt,submit:async()=>{if(ye.current.busy)throw ze("BUSY","An answer is already in progress");const le=B();if(!le.getDraft().trim())throw ze("EMPTY_DRAFT","The draft is empty");try{return await le.submitDraft()}catch(A){throw A instanceof Zn?A:A instanceof Error&&A.message==="BUSY"?ze("BUSY","An answer is already in progress"):A instanceof Error&&A.message==="EMPTY_DRAFT"?ze("EMPTY_DRAFT","The draft is empty"):A instanceof Error&&A.message==="INVALID_QUESTION"?ze("INVALID_QUESTION","The question is invalid"):ze("STREAM_FAILED",A instanceof Error?A.message:"Streaming failed")}},ask:async(le,Ae)=>(await ge(le,Ae),de.submit()),reset:async()=>{try{if(bt(),ye.current.busy)throw ze("BUSY","An answer is already in progress");Tn(),ye.current.conversationId=null,B().clearDraft(),lt(null),ot("reset")}catch(le){throw le instanceof Zn?le:ze("RESET_FAILED","The conversation could not be reset")}},getState:()=>({ready:!!ue.current,open:ye.current.open,busy:ye.current.busy,typing:!!ae.current,draft:ue.current?.getDraft()||"",conversationId:ye.current.conversationId})});return window.AkilioWidget=de,ot("ready"),()=>{bt(),window.AkilioWidget===de&&delete window.AkilioWidget}},[bt,Tn,mt]);const ir=U.useCallback((B,ge,de)=>{ke&&(be?.(ge,de),_e.sendCommerceEvent(t,Ke,{event_type:B.commerce?.capability==="product_search"?"search":"recommendation",product_id:ge.id,variant_id:de?.id||null,conversation_id:B.conversationId||Ue||null,external_user_id:b||"",value:de?.price||null,currency:de?.currency||"",metadata:{source:"widget_product_card",capability:B.commerce?.capability,product_url:ge.url||""}}).catch(le=>k?.(le)))},[_e,ke,Ue,b,k,be,t,Ke]),or=U.useCallback(async(B,ge)=>{if(B.backendMessageId){Qe(de=>de.map(le=>le.id===B.id?{...le,feedback:ge}:le));try{await _e.sendFeedback({projectKey:t,subject:Ke,messageId:B.backendMessageId,rating:ge,metadata:{conversation_id:B.conversationId||Ue,locale:n,page:Ja(I)}})}catch(de){k?.(de instanceof Error?de:new Error("Feedback request failed"))}}},[_e,Ue,n,k,I,t,Qe,Ke]);return E.jsxs("div",{ref:Ne,className:Dt("akilio-root",ne),style:Me,"data-akilio-mode":Se?"inline":ht?"floating":on?"side-panel":"drawer","data-akilio-color-mode":N,children:[!Se&&d==="default"&&E.jsx(hm,{label:F?O.launcher:O.title,onClick:tr.toggleChat,showBranding:F}),!Se&&typeof d=="function"&&d(tr),Jn&&_t&&E.jsx("button",{type:"button",className:"akilio-overlay","aria-label":O.close,onClick:()=>mt(!1)}),E.jsx(gm,{ref:ue,open:_t,isDesktop:on,inline:Se,colorMode:N,allowColorModeToggle:a,widgetAvailable:Ce,showBranding:F,showPoweredBy:Q,locale:n,copy:{...O,description:Ft?`${O.description} ${O.configFailed}: ${Ft}`:O.description},messages:Re,streamingMessage:pt,loading:vt,loadingLabel:fe.message||(()=>{const B=fe.stage.toLowerCase();return B.includes("retriev")||B.includes("search")?O.searching:B.includes("ground")||B.includes("source")?O.reviewingSources:B.includes("valid")||B.includes("check")||B.includes("safety")?O.checkingAnswer:B.includes("answer")||B.includes("generat")||B.includes("prepar")?O.preparingAnswer:O.loading})(),consentDecision:er,consentGranted:Lt,requireConsent:Mt,privacyNotice:_n,privacyNoticeUrl:Sn,onConsentDecision:nr,onClose:()=>mt(!1),onToggleColorMode:an,onClear:Tn,onSubmit:rr,onDraftChange:St,onFeedback:or,onProductClick:ir,onSuggestion:B=>{rr(B).catch(()=>{})}})]})}function rs(e){const t=e.styleIsolation??"shadow",n=(e.mode??"floating")!=="inline",r=U.useRef(null),[i,a]=U.useState(null);return U.useEffect(()=>{if(t!=="shadow"||!r.current){a(null);return}const o=r.current,s=o.shadowRoot??o.attachShadow({mode:"open"});if(n&&(o.style.position="fixed",o.style.inset="0",o.style.width="100vw",o.style.height="100dvh",o.style.margin="0",o.style.padding="0",o.style.border="0",o.style.background="transparent",o.style.pointerEvents="none",o.style.zIndex="2147483647",o.style.isolation="isolate",typeof o.showPopover=="function")){o.setAttribute("popover","manual");try{o.showPopover()}catch{o.removeAttribute("popover")}}let c=s.querySelector("style[data-akilio-styles]");c||(c=document.createElement("style"),c.setAttribute("data-akilio-styles",""),c.textContent=Qa,s.appendChild(c));let l=s.querySelector("[data-akilio-shadow-mount]");return l||(l=document.createElement("div"),l.setAttribute("data-akilio-shadow-mount",""),s.appendChild(l)),a(l),()=>{if(typeof o.hidePopover=="function")try{o.hidePopover()}catch{}o.removeAttribute("popover"),o.removeAttribute("style")}},[t,n]),t==="shadow"?E.jsx("div",{ref:r,"data-akilio-shadow-host":"true",children:i&&As.createPortal(E.jsx(ns,{...e}),i)}):E.jsxs(E.Fragment,{children:[t==="scoped"&&E.jsx("style",{"data-akilio-styles":!0,children:Qa}),E.jsx(ns,{...e})]})}const is=["pointerdown","mousedown","pointerup","mouseup","click"],li=new WeakMap;function os(e,t,n){ci(e);let r=i=>{let a=i.target;e.contains(a)&&((!n||n(a))&&(i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation()),i.type==="click"&&t?.(i))};for(let i of is)document.addEventListener(i,r,!0);li.set(e,r)}function ci(e){let t=li.get(e);if(t){for(let n of is)document.removeEventListener(n,t,!0);li.delete(e)}}function Nm(e,t){let n=e.wrapper.getBoundingClientRect();return{width:n.width+t,height:n.height+t,realWidth:n.width,realHeight:n.height}}function as(e,t){let{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:a}=t;return e==="start"?Math.max(Math.min(n.top-i,window.innerHeight-r.realHeight-a.width),a.width):e==="end"?Math.max(Math.min(n.top-r?.realHeight+n.height+i,window.innerHeight-r?.realHeight-a.width),a.width):e==="center"?Math.max(Math.min(n.top+n.height/2-r?.realHeight/2,window.innerHeight-r?.realHeight-a.width),a.width):0}function ss(e,t){let{elementDimensions:n,popoverDimensions:r,popoverPadding:i,popoverArrowDimensions:a}=t;return e==="start"?Math.max(Math.min(n.left-i,window.innerWidth-r.realWidth-a.width),a.width):e==="end"?Math.max(Math.min(n.left-r?.realWidth+n.width+i,window.innerWidth-r?.realWidth-a.width),a.width):e==="center"?Math.max(Math.min(n.left+n.width/2-r?.realWidth/2,window.innerWidth-r?.realWidth-a.width),a.width):0}function ui(e,t,n){let{align:r,side:i}=n,a=n.centered?"over":i,o=n.padding,s=Nm(e,n.offset),c=e.arrow.getBoundingClientRect(),l=t.getBoundingClientRect(),d=l.top-s.height,u=d>=0,f=window.innerHeight-(l.bottom+s.height),p=f>=0,g=l.left-s.width,m=g>=0,b=window.innerWidth-(l.right+s.width),h=b>=0,v=!u&&!p&&!m&&!h,x=a;if(a==="top"&&u?h=m=p=!1:a==="bottom"&&p?h=m=u=!1:a==="left"&&m?h=u=p=!1:a==="right"&&h&&(m=u=p=!1),a==="over"){let C=window.innerWidth/2-s.realWidth/2,I=window.innerHeight/2-s.realHeight/2;e.wrapper.style.left=`${C}px`,e.wrapper.style.right="auto",e.wrapper.style.top=`${I}px`,e.wrapper.style.bottom="auto"}else if(v){let C=window.innerWidth/2-s?.realWidth/2;e.wrapper.style.left=`${C}px`,e.wrapper.style.right="auto",e.wrapper.style.bottom="10px",e.wrapper.style.top="auto"}else if(m){let C=Math.min(g,window.innerWidth-s?.realWidth-c.width),I=as(r,{elementDimensions:l,popoverDimensions:s,popoverPadding:o,popoverArrowDimensions:c});e.wrapper.style.left=`${C}px`,e.wrapper.style.top=`${I}px`,e.wrapper.style.bottom="auto",e.wrapper.style.right="auto",x="left"}else if(h){let C=Math.min(b,window.innerWidth-s?.realWidth-c.width),I=as(r,{elementDimensions:l,popoverDimensions:s,popoverPadding:o,popoverArrowDimensions:c});e.wrapper.style.right=`${C}px`,e.wrapper.style.top=`${I}px`,e.wrapper.style.bottom="auto",e.wrapper.style.left="auto",x="right"}else if(u){let C=Math.min(d,window.innerHeight-s.realHeight-c.width),I=ss(r,{elementDimensions:l,popoverDimensions:s,popoverPadding:o,popoverArrowDimensions:c});e.wrapper.style.top=`${C}px`,e.wrapper.style.left=`${I}px`,e.wrapper.style.bottom="auto",e.wrapper.style.right="auto",x="top"}else if(p){let C=Math.min(f,window.innerHeight-s?.realHeight-c.width),I=ss(r,{elementDimensions:l,popoverDimensions:s,popoverPadding:o,popoverArrowDimensions:c});e.wrapper.style.left=`${I}px`,e.wrapper.style.bottom=`${C}px`,e.wrapper.style.top="auto",e.wrapper.style.right="auto",x="bottom"}Am(e,v?"over":x,r,t),[...e.wrapper.classList].filter(C=>C.startsWith("driver-popover-side-")||C.startsWith("driver-popover-align-")).forEach(C=>e.wrapper.classList.remove(C)),e.wrapper.classList.add(`driver-popover-side-${x}`),e.wrapper.classList.add(`driver-popover-align-${r}`)}function ls(e,t,n,r,i,a=10){let o=r-n;return e<=n&&t>=r?i==="start"?15+a/2:i==="end"?o-15-a/2:o/2:(Math.min(Math.max(e,n),r)+Math.min(Math.max(t,n),r))/2-n}function cs(e,t,n=10){let r=t-15-n;if(r<15)return Math.max(0,(t-n)/2);let i=e-n/2;return Math.min(Math.max(i,15),r)}function Cm(e,t,n){return e==="left"||e==="right"?t.bottom>n.top&&t.top<n.bottom?e:t.bottom<=n.top?"bottom":"top":t.right>n.left&&t.left<n.right?e:t.right<=n.left?"right":"left"}function Am(e,t,n,r){let i=e.arrow;if(i.className="driver-popover-arrow",i.style.top="",i.style.right="",i.style.bottom="",i.style.left="",t==="over"){i.classList.add("driver-popover-arrow-none");return}let a=r.getBoundingClientRect(),o=e.wrapper.getBoundingClientRect(),s=Cm(t,a,o);i.classList.add(`driver-popover-arrow-side-${s}`);let c=i.getBoundingClientRect().width||10;if(s==="left"||s==="right"){let l=ls(a.top,a.bottom,o.top,o.bottom,n,c);i.style.top=`${cs(l,o.height,c)}px`}else{let l=ls(a.left,a.right,o.left,o.right,n,c);i.style.left=`${cs(l,o.width,c)}px`}}function Xn(e){return typeof e=="function"?e():typeof e=="string"?document.querySelector(e):e}function Im(e){let t=window.getComputedStyle(e);return[t.overflow,t.overflowX,t.overflowY].some(n=>n==="auto"||n==="scroll")}function jn(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function us(e){let t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(n=>{let r=n.matches(t),i=Array.from(n.querySelectorAll(t));return[...r?[n]:[],...i]}).filter(n=>getComputedStyle(n).pointerEvents!=="none"&&Lm(n))}function ds(e,t){if(!e||Mm(e))return;let n=e.offsetHeight>window.innerHeight;e.scrollIntoView({behavior:!t||Om(e)?"auto":"smooth",inline:"center",block:n?"start":"center"})}function Om(e){if(!e||!e.parentElement)return;let t=e.parentElement;return t.scrollHeight>t.clientHeight}function Mm(e){let t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function Lm(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function Rm(e){e&&(e.wrapper.style.display="none")}function Dm(e,t){let n=Bm();document.body.appendChild(n.wrapper);let{title:r,description:i,showButtons:a,disableButtons:o,showProgress:s,nextBtnText:c,prevBtnText:l,progressText:d}=t;n.nextButton.innerHTML=c,n.previousButton.innerHTML=l,n.progress.innerHTML=d,t.doneButton&&n.nextButton.classList.add("driver-popover-done-btn"),r?(n.title.innerHTML=r,n.title.style.display="block"):n.title.style.display="none",i?(n.description.innerHTML=i,n.description.style.display="block"):n.description.style.display="none";let u=a.includes("next")||a.includes("previous")||s;n.closeButton.style.display=a.includes("close")?"block":"none",u?(n.footer.style.display="flex",n.progress.style.display=s?"block":"none",n.nextButton.style.display=a.includes("next")?"block":"none",n.previousButton.style.display=a.includes("previous")?"block":"none"):n.footer.style.display="none",o.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),o.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),o.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));let f=n.wrapper;f.style.display="block",f.style.left="",f.style.top="",f.style.bottom="",f.style.right="",f.id="driver-popover-content",f.setAttribute("role","dialog"),f.setAttribute("aria-labelledby","driver-popover-title"),f.setAttribute("aria-describedby","driver-popover-description");let p=n.arrow;p.className="driver-popover-arrow",f.className=`driver-popover ${t.popoverClass||""}`.trim(),os(n.wrapper,m=>{let b=m.target;if(b.closest(".driver-popover-next-btn"))return t.onNextClick?.();if(b.closest(".driver-popover-prev-btn"))return t.onPrevClick?.();if(b.closest(".driver-popover-close-btn"))return t.onCloseClick?.()},m=>n.description.contains(m)||n.title.contains(m)?!1:!!m.closest(".driver-popover-prev-btn, .driver-popover-next-btn, .driver-popover-close-btn")),t.onRender?.(n),ui(n,e,t.position),Pm(n,e,t.position),ds(f,t.smoothScroll);let g=us([f,e]);return g.length>0&&g[0].focus(),n}function Pm(e,t,n){e.wrapper.querySelectorAll("img").forEach(r=>{if(r.complete)return;let i=()=>ui(e,t,n);r.addEventListener("load",i,{once:!0}),r.addEventListener("error",i,{once:!0})})}function Bm(){let e=document.createElement("div");e.classList.add("driver-popover");let t=document.createElement("div");t.classList.add("driver-popover-arrow");let n=document.createElement("header");n.id="driver-popover-title",n.classList.add("driver-popover-title"),n.style.display="none",n.innerText="Popover Title";let r=document.createElement("div");r.id="driver-popover-description",r.classList.add("driver-popover-description"),r.style.display="none",r.innerText="Popover description is here";let i=document.createElement("button");i.type="button",i.classList.add("driver-popover-close-btn"),i.setAttribute("aria-label","Close"),i.innerHTML="&times;";let a=document.createElement("footer");a.classList.add("driver-popover-footer");let o=document.createElement("span");o.classList.add("driver-popover-progress-text"),o.innerText="";let s=document.createElement("span");s.classList.add("driver-popover-navigation-btns");let c=document.createElement("button");c.type="button",c.classList.add("driver-popover-prev-btn","driver-popover-footer-btn"),c.innerHTML="Previous";let l=document.createElement("button");return l.type="button",l.classList.add("driver-popover-next-btn","driver-popover-footer-btn"),l.innerHTML="Next",s.appendChild(c),s.appendChild(l),a.appendChild(o),a.appendChild(s),e.appendChild(i),e.appendChild(t),e.appendChild(n),e.appendChild(r),e.appendChild(a),{wrapper:e,arrow:t,title:n,description:r,footer:a,previousButton:c,nextButton:l,closeButton:i,footerButtons:s,progress:o}}function ps(e){e&&(ci(e.wrapper),e.wrapper.parentElement?.removeChild(e.wrapper))}function fs(e,t){let n=window.innerWidth,r=window.innerHeight,i=t.padding,a=t.radius,o=e.width+i*2,s=e.height+i*2,c=Math.min(a,o/2,s/2),l=Math.floor(Math.max(c,0)),d=e.x-i+l,u=e.y-i,f=o-l*2,p=s-l*2;return`M${n},0L0,0L0,${r}L${n},${r}L${n},0Z
39
- M${d},${u} h${f} a${l},${l} 0 0 1 ${l},${l} v${p} a${l},${l} 0 0 1 -${l},${l} h-${f} a${l},${l} 0 0 1 -${l},-${l} v-${p} a${l},${l} 0 0 1 ${l},-${l} z`}function Fm(e,t,n,r,i){let a=e.getState("__activeStagePosition"),o=a||r.getBoundingClientRect(),s=i.getBoundingClientRect();a={x:jn(t,o.x,s.x-o.x,n),y:jn(t,o.y,s.y-o.y,n),width:jn(t,o.width,s.width-o.width,n),height:jn(t,o.height,s.height-o.height,n)},hs(e,a),e.setState("__activeStagePosition",a)}function gs(e,t){if(!t)return;let n=t.getBoundingClientRect(),r={x:n.x,y:n.y,width:n.width,height:n.height};e.setState("__activeStagePosition",r),hs(e,r)}function zm(e){let t=e.getState("__activeStagePosition"),n=e.getState("__overlaySvg");if(!t)return;if(!n){console.warn("No stage svg found.");return}let r=window.innerWidth,i=window.innerHeight;n.setAttribute("viewBox",`0 0 ${r} ${i}`)}function Um(e,t){let n=qm(e,t);document.body.appendChild(n),os(n,r=>{r.target.tagName==="path"&&e.emit("overlayClick")}),e.setState("__overlaySvg",n)}function hs(e,t){let n=e.getState("__overlaySvg");if(!n){Um(e,t);return}let r=n.firstElementChild;if(r?.tagName!=="path")throw Error("no path element found in stage svg");r.setAttribute("d",fs(t,ms(e)))}function ms(e){return{padding:e.getConfig("stagePadding")||0,radius:e.getConfig("stageRadius")||0}}function qm(e,t){let n=window.innerWidth,r=window.innerHeight,i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.classList.add("driver-overlay","driver-overlay-animated"),i.setAttribute("viewBox",`0 0 ${n} ${r}`),i.setAttribute("xmlSpace","preserve"),i.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),i.setAttribute("version","1.1"),i.setAttribute("preserveAspectRatio","xMinYMin slice"),i.style.fillRule="evenodd",i.style.clipRule="evenodd",i.style.strokeLinejoin="round",i.style.strokeMiterlimit="2",i.style.zIndex="10000",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.height="100%";let a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("d",fs(t,ms(e))),a.style.fill=e.getConfig("overlayColor")||"rgb(0,0,0)",a.style.opacity=`${e.getConfig("overlayOpacity")}`,a.style.pointerEvents="auto",a.style.cursor="auto",i.appendChild(a),i}function $m(e){let t=e.getState("__overlaySvg");t&&(ci(t),t.remove())}const bs="{{current}} of {{total}}";function ks(e,t){return!(t.skipMissingElement??e.getConfig("skipMissingElement"))||!t.element?!1:!Xn(t.element)}function At(e,t,n){let r=e.getConfig("steps")||[];for(let i=t;i>=0&&i<r.length;i+=n)if(!ks(e,r[i]))return i}function Qn(e,t){let n=e.getState("activeIndex"),r=n!==void 0&&At(e,n+1,1)===void 0,i=t?.popover?.onDoneClick||e.getConfig("onDoneClick");return r&&i?i:t?.popover?.onNextClick||e.getConfig("onNextClick")}function ys(e,t){return t?.popover?.onPrevClick||e.getConfig("onPrevClick")}function Hm(e,t){return t?.popover?.onCloseClick||e.getConfig("onCloseClick")}function Gm(e,t,n){let r=e.getConfig("steps")||[],i=r[t],a=i.popover||{},o=At(e,t+1,1)!==void 0,s=At(e,t-1,-1)!==void 0,c=a.doneBtnText||e.getConfig("doneBtnText")||"Done",l=e.getConfig("allowClose"),d=a.showProgress===void 0?e.getConfig("showProgress"):a.showProgress,u=(a.progressText||e.getConfig("progressText")||bs).replace("{{current}}",`${t+1}`).replace("{{total}}",`${r.length}`),f=a.showButtons||e.getConfig("showButtons"),p=["next","previous",...l?["close"]:[]].filter(h=>!f?.length||f.includes(h)),g=a.onNextClick||e.getConfig("onNextClick"),m=a.onPrevClick||e.getConfig("onPrevClick"),b=a.onCloseClick||e.getConfig("onCloseClick");return{...i,popover:{showButtons:p,nextBtnText:o?void 0:c,disableButtons:[...s?[]:["previous"]],showProgress:d,onNextClick:g||n.onNextClick,onPrevClick:m||n.onPrevClick,onCloseClick:b||n.onCloseClick,...a,progressText:u}}}function ws(e,t,n){let r=e.getConfig("stagePadding")||0;return{side:n.popover?.side||"bottom",align:n.popover?.align||"start",offset:r+(e.getConfig("popoverOffset")||0),padding:r,centered:t.id==="driver-dummy-element"}}function Wm(e,t,n){let r=n.popover||{},i=e.getState("activeIndex"),a=i!==void 0&&At(e,i+1,1)===void 0;return{title:r.title,description:r.description,showButtons:r.showButtons||e.getConfig("showButtons"),disableButtons:r.disableButtons||e.getConfig("disableButtons")||[],showProgress:r.showProgress||e.getConfig("showProgress")||!1,progressText:r.progressText??(e.getConfig("progressText")||bs),nextBtnText:r.nextBtnText??(e.getConfig("nextBtnText")||"Next"),prevBtnText:r.prevBtnText??(e.getConfig("prevBtnText")||"Previous"),doneButton:a,popoverClass:r.popoverClass||e.getConfig("popoverClass")||"",smoothScroll:e.getConfig("smoothScroll"),onNextClick:()=>{let o=Qn(e,n);return o?o(t,n,e.getHookOpts()):e.emit("nextClick")},onPrevClick:()=>{let o=ys(e,n);return o?o(t,n,e.getHookOpts()):e.emit("prevClick")},onCloseClick:()=>{let o=Hm(e,n);return o?o(t,n,e.getHookOpts()):e.emit("closeClick")},onRender:o=>{e.setState("popover",o),(r.onPopoverRender||e.getConfig("onPopoverRender"))?.(o,e.getHookOpts())},position:ws(e,t,n)}}function Es(e,t,n){ps(e.getState("popover")),Dm(t,Wm(e,t,n))}function Km(e,t,n){let r=e.getState("popover");r&&ui(r,t,ws(e,t,n))}function Vm(){let e=document.getElementById("driver-dummy-element");if(e)return e;let t=document.createElement("div");return t.id="driver-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}function vs(e,t){let n=Xn(t.element);n||(n=Vm()),Zm(e,n,t)}function Ym(e){let t=e.getState("__activeElement"),n=e.getState("__activeStep");t&&(gs(e,t),zm(e),Km(e,t,n))}function Zm(e,t,n){let r=e.getConfig("duration")||400,i=Date.now(),a=e.getState("__activeStep"),o=e.getState("__activeElement")||t,s=!o||o===t,c=t.id==="driver-dummy-element",l=o.id==="driver-dummy-element",d=e.getConfig("animate"),u=n.onHighlightStarted||e.getConfig("onHighlightStarted"),f=n?.onHighlighted||e.getConfig("onHighlighted"),p=a?.onDeselected||e.getConfig("onDeselected"),g=e.getHookOpts();!s&&p&&p(l?void 0:o,a,g),u&&u(c?void 0:t,n,g);let m=!s&&d,b=!1;Rm(e.getState("popover")),e.setState("previousStep",a),e.setState("previousElement",o),e.setState("activeStep",n),e.setState("activeElement",t);let h=()=>{if(e.getState("__transitionCallback")!==h)return;let x=Date.now()-i,C=r-x<=r/2;n.popover&&C&&!b&&m&&(Es(e,t,n),b=!0),e.getConfig("animate")&&x<r?Fm(e,x,r,o,t):(gs(e,t),f&&f(c?void 0:t,n,e.getHookOpts()),e.setState("__transitionCallback",void 0),e.setState("__previousStep",a),e.setState("__previousElement",o),e.setState("__activeStep",n),e.setState("__activeElement",t)),window.requestAnimationFrame(h)};e.setState("__transitionCallback",h),window.requestAnimationFrame(h),ds(t,e.getConfig("smoothScroll")),!m&&n.popover&&Es(e,t,n),document.querySelectorAll(".driver-active-element-parent").forEach(x=>{x.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll")}),o.classList.remove("driver-active-element","driver-no-interaction"),o.removeAttribute("aria-haspopup"),o.removeAttribute("aria-expanded"),o.removeAttribute("aria-controls"),(n.disableActiveInteraction??e.getConfig("disableActiveInteraction"))&&t.classList.add("driver-no-interaction");let v=t.parentElement;v&&v!==document.body&&(v.classList.add("driver-active-element-parent"),Im(v)&&v.classList.add("driver-active-element-parent-no-scroll")),t.classList.add("driver-active-element"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","true"),t.setAttribute("aria-controls","driver-popover-content")}function Xm(){document.getElementById("driver-dummy-element")?.remove(),document.querySelectorAll(".driver-active-element").forEach(e=>{let t=e.parentElement;t&&t!==document.body&&t.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll"),e.classList.remove("driver-active-element","driver-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")})}function di(e){let t=e.getState("__resizeTimeout");t&&window.cancelAnimationFrame(t),e.setState("__resizeTimeout",window.requestAnimationFrame(()=>Ym(e)))}function jm(e,t){if(!e.getState("isInitialized")||!(t.key==="Tab"||t.keyCode===9))return;let n=e.getState("__activeElement"),r=e.getState("popover")?.wrapper,i=us([...r?[r]:[],...n?[n]:[]]),a=i[0],o=i[i.length-1];t.preventDefault(),t.shiftKey?(i[i.indexOf(document.activeElement)-1]||o)?.focus():(i[i.indexOf(document.activeElement)+1]||a)?.focus()}function Qm(e,t){(e.getConfig("allowKeyboardControl")??!0)&&(t.key==="Escape"?e.emit("escapePress"):t.key==="ArrowRight"?e.emit("arrowRightPress"):t.key==="ArrowLeft"&&e.emit("arrowLeftPress"))}function Jm(e,t){let n=e.getState("__activeElement"),r=t.target;!n||!r||!n.contains(r)||e.emit("activeElementClick")}function eb(e){let t=o=>Qm(e,o),n=o=>jm(e,o),r=()=>di(e),i=()=>di(e),a=o=>Jm(e,o);e.setState("__events",{onKeyup:t,onKeydown:n,onResize:r,onScroll:i,onClick:a}),window.addEventListener("keyup",t,!1),window.addEventListener("keydown",n,!1),window.addEventListener("resize",r),window.addEventListener("scroll",i),document.addEventListener("click",a,!1)}function tb(e){let t=e.getState("__events");t&&(window.removeEventListener("keyup",t.onKeyup),window.removeEventListener("keydown",t.onKeydown),window.removeEventListener("resize",t.onResize),window.removeEventListener("scroll",t.onScroll),document.removeEventListener("click",t.onClick,!1))}function nb(){let e={};function t(n={}){e={animate:!0,duration:400,allowClose:!0,allowScroll:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,advanceOnClick:!1,skipMissingElement:!1,waitForElement:0,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...n}}return t(),{getConfig:(n=>n?e[n]:e),configure:t}}function rb(){let e={},t=(i=>i?e[i]:e),n=(i,a)=>{e[i]=a};function r(){e={}}return{getState:t,setState:n,resetState:r}}function ib(){let e={};function t(i,a){e[i]=a}function n(i){e[i]?.()}function r(){e={}}return{listen:t,emit:n,reset:r}}function ob(e={}){let t=nb();t.configure(e);let n=rb(),r=ib(),i;return{getConfig:t.getConfig,setConfig:t.configure,getState:n.getState,setState:n.setState,resetState:n.resetState,listen:r.listen,emit:r.emit,resetEmitter:r.reset,getDriver:()=>i,setDriver:a=>{i=a},getHookOpts:a=>{let o=a||n.getState();return{config:t.getConfig(),state:o,driver:i,index:o.activeIndex}}}}function ab(e={}){let t=ob(e);function n(){t.getConfig("allowClose")&&g()}function r(){let b=t.getConfig("overlayClickBehavior");if(t.getConfig("allowClose")&&b==="close"){g();return}if(typeof b=="function"){let h=t.getState("__activeStep");b(t.getState("__activeElement"),h,t.getHookOpts());return}if(b==="nextStep"){let h=t.getState("activeStep"),v=t.getState("activeElement"),x=Qn(t,h);if(x){x(v,h,t.getHookOpts());return}i()}}function i(){let b=t.getState("activeIndex"),h=t.getConfig("steps")||[];if(b===void 0)return;let v=b+1;h[v]?p(v):g()}function a(){let b=t.getState("activeIndex"),h=t.getConfig("steps")||[];if(b===void 0)return;let v=b-1;h[v]?p(v):g()}function o(b){(t.getConfig("steps")||[])[b]?p(b):g()}function s(){if(t.getState("__transitionCallback"))return;let b=t.getState("__activeStep");if(!b||!(b.advanceOnClick??t.getConfig("advanceOnClick")))return;let h=t.getState("__activeElement"),v=Qn(t,b);if(v){v(h,b,t.getHookOpts());return}i()}function c(){if(t.getState("__transitionCallback"))return;let b=t.getState("activeIndex"),h=t.getState("__activeStep"),v=t.getState("__activeElement");if(b===void 0||h===void 0||!(t.getConfig("steps")||[])[b-1])return;let x=ys(t,h);if(x)return x(v,h,t.getHookOpts());a()}function l(){if(t.getState("__transitionCallback"))return;let b=t.getState("activeIndex"),h=t.getState("__activeStep"),v=t.getState("__activeElement");if(b===void 0||h===void 0)return;let x=Qn(t,h);if(x)return x(v,h,t.getHookOpts());i()}function d(){t.getState("isInitialized")||(t.setState("isInitialized",!0),document.body.classList.add("driver-active",t.getConfig("animate")?"driver-fade":"driver-simple"),t.getConfig("allowScroll")||document.body.classList.add("driver-no-scroll"),document.body.style.setProperty("--driver-animation-duration",`${t.getConfig("duration")||400}ms`),eb(t),t.listen("overlayClick",r),t.listen("activeElementClick",s),t.listen("escapePress",n),t.listen("closeClick",n),t.listen("arrowLeftPress",c),t.listen("arrowRightPress",l))}function u(){let b=t.getState("__pendingWaitCancel");b&&(t.setState("__pendingWaitCancel",void 0),b())}function f(b,h,v){let x=()=>{C.disconnect(),window.clearTimeout(I),t.setState("__pendingWaitCancel",void 0),v()},C=new MutationObserver(()=>{Xn(b.element)&&x()}),I=window.setTimeout(x,h);t.setState("__pendingWaitCancel",()=>{C.disconnect(),window.clearTimeout(I)}),C.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}function p(b=0,h=!1){u();let v=t.getConfig("steps");if(!v){console.error("No steps to drive through"),g();return}if(!v[b]){g();return}let x=v[b],C=x.waitForElement??t.getConfig("waitForElement")??0;if(!h&&C>0&&x.element&&!Xn(x.element)){f(x,C,()=>p(b,!0));return}if(ks(t,x)){let _=t.getState("activeIndex"),z=typeof _=="number"&&b<_?-1:1;v[b+z]?p(b+z):z===1&&g();return}t.setState("__activeOnDestroyed",document.activeElement),t.setState("activeIndex",b);let I=v[b+1];vs(t,Gm(t,b,{onNextClick:()=>{I?p(b+1):g()},onPrevClick:()=>{p(b-1)},onCloseClick:()=>{g()}}))}function g(b=!0){let h=t.getState("__activeElement"),v=t.getState("__activeStep"),x=t.getState("__activeOnDestroyed"),C=t.getConfig("onDestroyStarted");if(b&&C){C(!h||h?.id==="driver-dummy-element"?void 0:h,v,t.getHookOpts());return}let I=v?.onDeselected||t.getConfig("onDeselected"),_=t.getConfig("onDestroyed");document.body.classList.remove("driver-active","driver-fade","driver-simple","driver-no-scroll"),document.body.style.removeProperty("--driver-animation-duration"),u(),tb(t),ps(t.getState("popover")),Xm(),$m(t),t.resetEmitter();let z=t.getState();if(t.resetState(),h&&v){let G=h.id==="driver-dummy-element";I&&I(G?void 0:h,v,t.getHookOpts(z)),_&&_(G?void 0:h,v,t.getHookOpts(z))}x&&x.focus()}let m={isActive:()=>t.getState("isInitialized")||!1,refresh:()=>di(t),drive:(b=0)=>{d(),p(b)},setConfig:t.setConfig,setSteps:b=>{u(),t.resetState(),t.setConfig({...t.getConfig(),steps:b})},getConfig:t.getConfig,getState:t.getState,getActiveIndex:()=>t.getState("activeIndex"),isFirstStep:()=>{let b=t.getState("activeIndex");return b!==void 0&&At(t,b-1,-1)===void 0},isLastStep:()=>{let b=t.getState("activeIndex");return b!==void 0&&At(t,b+1,1)===void 0},getActiveStep:()=>t.getState("activeStep"),getActiveElement:()=>t.getState("activeElement"),getPreviousElement:()=>t.getState("previousElement"),getPreviousStep:()=>t.getState("previousStep"),getNextStep:()=>{let b=t.getConfig("steps")||[],h=t.getState("activeIndex");if(h===void 0)return;let v=At(t,h+1,1);return v===void 0?void 0:b[v]},moveNext:i,movePrevious:a,moveTo:o,hasNextStep:()=>{let b=t.getState("activeIndex");return b!==void 0&&At(t,b+1,1)!==void 0},hasPreviousStep:()=>{let b=t.getState("activeIndex");return b!==void 0&&At(t,b-1,-1)!==void 0},highlight:b=>{d(),vs(t,{...b,popover:b.popover?{showButtons:[],showProgress:!1,progressText:"",...b.popover}:void 0})},destroy:()=>{g(!1)}};return t.setDriver(m),m}const sb=Object.freeze(Object.defineProperty({__proto__:null,driver:ab},Symbol.toStringTag,{value:"Module"}));ut.AkilioClient=ja,ut.AkilioWidget=rs,ut.EjibuWidget=rs,Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"})}));
34
+ `,...a.current()});return/^[\t ]/.test(l)&&(l=wn(l.charCodeAt(0))+l.slice(1)),l=l?o+" "+l:o,n.options.closeAtx&&(l+=" "+o),c(),s(),l}ba.peek=kg;function ba(e){return e.value||""}function kg(){return"<"}ka.peek=yg;function ka(e,t,n,r){const i=Qr(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("![");return l+=c.move(n.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(" "+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(")"),o(),l}function yg(){return"!"}ya.peek=wg;function ya(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let c=s.move("![");const l=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const u=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!l||l!==u?c+=s.move(u+"]"):i==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function wg(){return"!"}wa.peek=Eg;function wa(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const o=n.unsafe[a],s=n.compilePattern(o);let c;if(o.atBreak)for(;c=s.exec(r);){let l=c.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(c.index+1)}}return i+r+i}function Eg(){return"`"}function Ea(e,t){const n=kr(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}xa.peek=xg;function xa(e,t,n,r){const i=Qr(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,c;if(Ea(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let u=o.move("<");return u+=o.move(n.containerPhrasing(e,{before:u,after:">",...o.current()})),u+=o.move(">"),s(),n.stack=d,u}s=n.enter("link"),c=n.enter("label");let l=o.move("[");return l+=o.move(n.containerPhrasing(e,{before:l,after:"](",...o.current()})),l+=o.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),l+=o.move("<"),l+=o.move(n.safe(e.url,{before:l,after:">",...o.current()})),l+=o.move(">")):(c=n.enter("destinationRaw"),l+=o.move(n.safe(e.url,{before:l,after:e.title?" ":")",...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(" "+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(")"),s(),l}function xg(e,t,n){return Ea(e,n)?"<":"["}_a.peek=_g;function _a(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let c=s.move("[");const l=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const u=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!l||l!==u?c+=s.move(u+"]"):i==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function _g(){return"["}function jr(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function vg(e){const t=jr(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Sg(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function va(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Ng(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?Sg(n):jr(n);const s=e.ordered?o==="."?")":".":vg(n);let c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),va(n)===o&&d){let u=-1;for(;++u<e.children.length;){const f=e.children[u];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;const l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function Tg(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Ag(e,t,n,r){const i=Tg(n);let a=n.bulletCurrent||jr(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(o-a.length)),s.shift(o);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),d);return c(),l;function d(u,f,p){return f?(p?"":" ".repeat(o))+u:(p?a:a+" ".repeat(o-a.length))+u}}function Cg(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const Ig=bn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Og(e,t,n,r){return(e.children.some(function(o){return Ig(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Mg(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Sa.peek=Rg;function Sa(e,t,n,r){const i=Mg(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const l=c.charCodeAt(0),d=Kn(r.before.charCodeAt(r.before.length-1),l,i);d.inside&&(c=wn(l)+c.slice(1));const u=c.charCodeAt(c.length-1),f=Kn(r.after.charCodeAt(0),u,i);f.inside&&(c=c.slice(0,-1)+wn(u));const p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+p}function Rg(e,t,n){return n.options.strong||"*"}function Lg(e,t,n,r){return n.safe(e.value,r)}function Dg(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Pg(e,t,n){const r=(va(n)+(n.options.ruleSpaces?" ":"")).repeat(Dg(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Na={blockquote:og,break:ha,code:dg,definition:fg,emphasis:ma,hardBreak:ha,heading:bg,html:ba,image:ka,imageReference:ya,inlineCode:wa,link:xa,linkReference:_a,list:Ng,listItem:Ag,paragraph:Cg,root:Og,strong:Sa,text:Lg,thematicBreak:Pg};function Bg(){return{enter:{table:Fg,tableData:Ta,tableHeader:Ta,tableRow:Ug},exit:{codeText:qg,table:zg,tableData:Jr,tableHeader:Jr,tableRow:Jr}}}function Fg(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function zg(e){this.exit(e),this.data.inTable=void 0}function Ug(e){this.enter({type:"tableRow",children:[]},e)}function Jr(e){this.exit(e)}function Ta(e){this.enter({type:"tableCell",children:[]},e)}function qg(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$g));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function $g(e,t){return t==="|"?t:e}function Hg(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
35
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(p,g,h,w){return l(d(p,h,w),p.align)}function s(p,g,h,w){const b=u(p,h,w),N=l([b]);return N.slice(0,N.indexOf(`
36
+ `))}function c(p,g,h,w){const b=h.enter("tableCell"),N=h.enter("phrasing"),v=h.containerPhrasing(p,{...w,before:a,after:a});return N(),b(),v}function l(p,g){return rg(p,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function d(p,g,h){const w=p.children;let b=-1;const N=[],v=g.enter("table");for(;++b<w.length;)N[b]=u(w[b],g,h);return v(),N}function u(p,g,h){const w=p.children;let b=-1;const N=[],v=g.enter("tableRow");for(;++b<w.length;)N[b]=c(w[b],p,g,h);return v(),N}function f(p,g,h){let w=Na.inlineCode(p,g,h);return h.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function Gg(){return{exit:{taskListCheckValueChecked:Aa,taskListCheckValueUnchecked:Aa,paragraph:Kg}}}function Wg(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Vg}}}function Aa(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Kg(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,o;for(;++a<i.length;){const s=i[a];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Vg(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);a&&s.move(o);let c=Na.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(d){return d+o}}function Yg(){return[Nf(),Vf(),Qf(),Bg(),Gg()]}function Zg(e){return{extensions:[Tf(),Yf(e),jf(),Hg(e),Wg()]}}const Xg={tokenize:nh,partial:!0},Ca={tokenize:rh,partial:!0},Ia={tokenize:ih,partial:!0},Oa={tokenize:oh,partial:!0},Qg={tokenize:ah,partial:!0},Ma={name:"wwwAutolink",tokenize:eh,previous:La},Ra={name:"protocolAutolink",tokenize:th,previous:Da},At={name:"emailAutolink",tokenize:Jg,previous:Pa},wt={};function jg(){return{text:wt}}let Kt=48;for(;Kt<123;)wt[Kt]=At,Kt++,Kt===58?Kt=65:Kt===91&&(Kt=97);wt[43]=At,wt[45]=At,wt[46]=At,wt[95]=At,wt[72]=[At,Ra],wt[104]=[At,Ra],wt[87]=[At,Ma],wt[119]=[At,Ma];function Jg(e,t,n){const r=this;let i,a;return o;function o(u){return!ei(u)||!Pa.call(r,r.previous)||ti(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(u))}function s(u){return ei(u)?(e.consume(u),s):u===64?(e.consume(u),c):n(u)}function c(u){return u===46?e.check(Qg,d,l)(u):u===45||u===95||Fe(u)?(a=!0,e.consume(u),c):d(u)}function l(u){return e.consume(u),i=!0,c}function d(u){return a&&i&&$e(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}function eh(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!La.call(r,r.previous)||ti(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Xg,e.attempt(Ca,e.attempt(Ia,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function th(e,t,n){const r=this;let i="",a=!1;return o;function o(u){return(u===72||u===104)&&Da.call(r,r.previous)&&!ti(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),s):n(u)}function s(u){if($e(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),s;if(u===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(u),c}return n(u)}function c(u){return u===47?(e.consume(u),a?l:(a=!0,c)):n(u)}function l(u){return u===null||Tn(u)||_e(u)||Ht(u)||An(u)?n(u):e.attempt(Ca,e.attempt(Ia,d),n)(u)}function d(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function nh(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),a):n(o)}function a(o){return o===null?n(o):t(o)}}function rh(e,t,n){let r,i,a;return o;function o(l){return l===46||l===95?e.check(Oa,c,s)(l):l===null||_e(l)||Ht(l)||l!==45&&An(l)?c(l):(a=!0,e.consume(l),o)}function s(l){return l===95?r=!0:(i=r,r=void 0),e.consume(l),o}function c(l){return i||r||!a?n(l):t(l)}}function ih(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Oa,t,a)(o):o===null||_e(o)||Ht(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function oh(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),a):s===93?(e.consume(s),i):s===60||s===null||_e(s)||Ht(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||_e(s)||Ht(s)?t(s):r(s)}function a(s){return $e(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):$e(s)?(e.consume(s),o):n(s)}}function ah(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Fe(a)?n(a):t(a)}}function La(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||_e(e)}function Da(e){return!$e(e)}function Pa(e){return!(e===47||ei(e))}function ei(e){return e===43||e===45||e===46||e===95||Fe(e)}function ti(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const sh={tokenize:hh,partial:!0};function lh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ph,continuation:{tokenize:fh},exit:gh}},text:{91:{name:"gfmFootnoteCall",tokenize:dh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ch,resolveTo:uh}}}}function ch(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const c=r.events[i][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!o||!o._balanced)return n(c);const l=dt(r.sliceSerialize({start:o.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function uh(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function dh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,o;return s;function s(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),c}function c(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(u){if(a>999||u===93&&!o||u===null||u===91||_e(u))return n(u);if(u===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(dt(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return _e(u)||(o=!0),a++,e.consume(u),u===92?d:l}function d(u){return u===91||u===92||u===93?(e.consume(u),a++,l):l(u)}}function ph(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return c;function c(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(g)}function d(g){if(o>999||g===93&&!s||g===null||g===91||_e(g))return n(g);if(g===93){e.exit("chunkString");const h=e.exit("gfmFootnoteDefinitionLabelString");return a=dt(r.sliceSerialize(h)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return _e(g)||(s=!0),o++,e.consume(g),g===92?u:d}function u(g){return g===91||g===92||g===93?(e.consume(g),o++,d):d(g)}function f(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),pe(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function fh(e,t,n){return e.check(pn,t,e.attempt(sh,t,n))}function gh(e){e.exit("gfmFootnoteDefinition")}function hh(e,t,n){const r=this;return pe(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(a):n(a)}}function mh(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,s){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let l=c;for(;l--;)if(o[l][0]==="exit"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[l][1].end.offset-o[l][1].start.offset){o[c][1].type="strikethroughSequence",o[l][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[l][1].start),end:Object.assign({},o[c][1].end)},u={type:"strikethroughText",start:Object.assign({},o[l][1].end),end:Object.assign({},o[c][1].start)},f=[["enter",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["enter",u,s]],p=s.parser.constructs.insideSpan.null;p&&tt(f,f.length,0,Cn(p,o.slice(l+1,c),s)),tt(f,f.length,0,[["exit",u,s],["enter",o[c][1],s],["exit",o[c][1],s],["exit",d,s]]),tt(o,l-1,c-l+3,f),c=l+f.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function a(o,s,c){const l=this.previous,d=this.events;let u=0;return f;function f(g){return l===126&&d[d.length-1][1].type!=="characterEscape"?c(g):(o.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const h=Xt(l);if(g===126)return u>1?c(g):(o.consume(g),u++,p);if(u<2&&!n)return c(g);const w=o.exit("strikethroughSequenceTemporary"),b=Xt(g);return w._open=!b||b===2&&!!h,w._close=!h||h===2&&!!b,s(g)}}}class bh{constructor(){this.map=[]}add(t,n,r){kh(this,t,n,r)}consume(t){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function kh(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function yh(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function wh(){return{flow:{null:{name:"table",tokenize:Eh,resolveAll:xh}}}}function Eh(e,t,n){const r=this;let i=0,a=0,o;return s;function s(_){let L=r.events.length-1;for(;L>-1;){const Y=r.events[L][1].type;if(Y==="lineEnding"||Y==="linePrefix")L--;else break}const P=L>-1?r.events[L][1].type:null,ee=P==="tableHead"||P==="tableRow"?x:c;return ee===x&&r.parser.lazy[r.now().line]?n(_):ee(_)}function c(_){return e.enter("tableHead"),e.enter("tableRow"),l(_)}function l(_){return _===124||(o=!0,a+=1),d(_)}function d(_){return _===null?n(_):V(_)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),p):n(_):ce(_)?pe(e,d,"whitespace")(_):(a+=1,o&&(o=!1,i+=1),_===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),u(_)))}function u(_){return _===null||_===124||_e(_)?(e.exit("data"),d(_)):(e.consume(_),_===92?f:u)}function f(_){return _===92||_===124?(e.consume(_),u):u(_)}function p(_){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(_):(e.enter("tableDelimiterRow"),o=!1,ce(_)?pe(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):g(_))}function g(_){return _===45||_===58?w(_):_===124?(o=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),h):R(_)}function h(_){return ce(_)?pe(e,w,"whitespace")(_):w(_)}function w(_){return _===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),b):_===45?(a+=1,b(_)):_===null||V(_)?O(_):R(_)}function b(_){return _===45?(e.enter("tableDelimiterFiller"),N(_)):R(_)}function N(_){return _===45?(e.consume(_),N):_===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(_),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(_))}function v(_){return ce(_)?pe(e,O,"whitespace")(_):O(_)}function O(_){return _===124?g(_):_===null||V(_)?!o||i!==a?R(_):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(_)):R(_)}function R(_){return n(_)}function x(_){return e.enter("tableRow"),H(_)}function H(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),H):_===null||V(_)?(e.exit("tableRow"),t(_)):ce(_)?pe(e,H,"whitespace")(_):(e.enter("data"),K(_))}function K(_){return _===null||_===124||_e(_)?(e.exit("data"),H(_)):(e.consume(_),_===92?G:K)}function G(_){return _===92||_===124?(e.consume(_),K):K(_)}}function xh(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,d,u;const f=new bh;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(s=!1,c!==0&&(Ba(f,t,c,l,d),d=void 0,c=0),l={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",l,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,u=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",d,t]])),i=g.type==="tableDelimiterRow"?2:d?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],u=Vn(f,t,a,i,void 0,u),a=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],u=Vn(f,t,a,i,void 0,u)),a=o,o=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,c=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(c=n,a[1]!==0?(o[0]=o[1],u=Vn(f,t,a,i,n,u)):o[1]!==0&&(u=Vn(f,t,o,i,n,u)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&Ba(f,t,c,l,d),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=yh(t.events,n))}return e}function Vn(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},Jt(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=Jt(t.events,n[1]);if(a={type:o,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=Jt(t.events,n[2]),d=Jt(t.events,n[3]),u={type:s,start:Object.assign({},l),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",u,t]]),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,h=n[3]-n[2]-1;e.add(g,h,[])}}e.add(n[3]+1,0,[["exit",u,t]])}return i!==void 0&&(a.end=Object.assign({},Jt(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Ba(e,t,n,r,i){const a=[],o=Jt(t.events,n);i&&(i.end=Object.assign({},o),a.push(["exit",i,t])),r.end=Object.assign({},o),a.push(["exit",r,t]),e.add(n+1,0,a)}function Jt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const _h={name:"tasklistCheck",tokenize:Sh};function vh(){return{text:{91:_h}}}function Sh(e,t,n){const r=this;return i;function i(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return _e(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return V(c)?t(c):ce(c)?e.check({tokenize:Nh},t,n)(c):n(c)}}function Nh(e,t,n){return pe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Th(e){return Bi([jg(),lh(),mh(e),wh(),vh()])}const Ah={};function Ch(e){const t=this,n=e||Ah,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Th(n)),a.push(Yg()),o.push(Zg(n))}function Ih(e){const t=new RegExp(`(?<!]\\(|]\\(<|href=["']|src=["'])(https?:\\/\\/[^\\s<>"')]+)(?![^[]*\\]\\))`,"g");return e.replace(t,n=>{const r=n.replace(/[.,;:!?]+$/g,""),i=n.slice(r.length);return`[${r}](${r})${i}`})}const Oh=z.memo(function({content:t}){return E.jsx(Nd,{rehypePlugins:[yf],remarkPlugins:[Ch],children:Ih(t)})});function Mh(e){return e.variants?.find(t=>t.available)||e.variants?.[0]}function Fa(e,t,n){if(!e)return"";const r=Number(e);if(!Number.isFinite(r))return e;try{return new Intl.NumberFormat(n,{style:t?"currency":"decimal",currency:t||void 0,maximumFractionDigits:2}).format(r)}catch{return`${r.toFixed(2)}${t?` ${t}`:""}`}}const Rh=z.memo(function({commerce:t,copy:n,locale:r,onProductClick:i}){const a=z.useMemo(()=>Array.isArray(t.products)?t.products.filter(o=>o?.id&&o?.title):[],[t.products]);return a.length?E.jsxs("section",{className:"akilio-products","aria-label":n.products,children:[E.jsxs("div",{className:"akilio-products-heading",children:[E.jsx("strong",{children:n.products}),E.jsx("span",{children:a.length})]}),E.jsx("div",{className:"akilio-product-grid",role:"list",children:a.map(o=>{const s=Mh(o),c=!!s?.available&&o.available!=="false",l=Fa(s?.price,s?.currency,r),d=Fa(s?.compare_at_price||void 0,s?.currency,r);return E.jsxs("article",{className:"akilio-product-card",role:"listitem",children:[E.jsxs("div",{className:"akilio-product-media",children:[o.image_url?E.jsx("img",{src:o.image_url,alt:"",loading:"lazy",decoding:"async"}):E.jsx("div",{className:"akilio-product-placeholder","aria-hidden":"true",children:"A"}),E.jsx("span",{className:c?"akilio-stock akilio-stock--available":"akilio-stock",children:c?n.inStock:n.outOfStock})]}),E.jsxs("div",{className:"akilio-product-body",children:[o.vendor&&E.jsx("span",{className:"akilio-product-vendor",children:o.vendor}),E.jsx("h4",{children:o.title}),s?.title&&s.title!==o.title&&E.jsx("span",{className:"akilio-product-variant",children:s.title}),E.jsxs("div",{className:"akilio-product-price",children:[l?E.jsx("strong",{children:l}):E.jsx("strong",{children:n.unavailable}),d&&d!==l&&E.jsx("del",{children:d})]}),o.url?E.jsx("a",{className:"akilio-product-action",href:o.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>i?.(o,s),children:n.viewProduct}):E.jsx("button",{type:"button",className:"akilio-product-action",disabled:!c,onClick:()=>i?.(o,s),children:n.viewProduct})]})]},o.id)})})]}):null});function Lh(e){return Array.isArray(e)?e.filter(t=>t?.title||t?.url):[]}function Dh(e){return typeof e=="number"?`${Math.round(e*100)}%`:typeof e=="string"&&e.trim()?e:null}const za=z.memo(function({message:t,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o}){const s=t.role==="user",c=Lh(t.sources),l=Dh(t.confidence);return E.jsx("div",{className:Lt("akilio-message-row",s?"akilio-message-row--user":"akilio-message-row--assistant"),children:E.jsxs("div",{className:Lt("akilio-bubble",s&&"akilio-bubble--user",t.error&&"akilio-bubble--error"),children:[!s&&!t.error&&E.jsxs("div",{className:"akilio-bubble-meta",children:[E.jsx(Nn,{className:"akilio-mini-icon"}),E.jsx("span",{children:n.online}),l&&E.jsx("span",{className:"akilio-confidence",children:l})]}),E.jsx("div",{className:Lt("akilio-answer",s&&"akilio-answer--user"),children:s?E.jsx("p",{children:t.content}):E.jsx(Oh,{content:t.content})}),!s&&t.commerce?.products?.length?E.jsx(Rh,{commerce:t.commerce,copy:n,locale:r,onProductClick:(d,u)=>a?.(t,d,u)}):null,!s&&!t.error&&t.suggestions?.length?E.jsx("div",{className:"akilio-response-suggestions","aria-label":"Suggested follow-up questions",children:t.suggestions.map(d=>E.jsx("button",{type:"button",onClick:()=>o?.(d),children:d},d))}):null,!s&&c.length>0&&E.jsxs("details",{className:"akilio-sources",children:[E.jsxs("summary",{children:[n.sources," · ",c.length]}),E.jsx("div",{className:"akilio-sources-list",children:c.map((d,u)=>E.jsxs("div",{className:"akilio-source-card",children:[E.jsx("strong",{children:d.title||"Untitled source"}),typeof d.section_path=="string"&&E.jsx("span",{children:d.section_path}),d.url&&E.jsx("a",{href:d.url,target:"_blank",rel:"noreferrer",children:d.url})]},`${d.url||d.title}-${u}`))})]}),!s&&!t.error&&t.backendMessageId&&E.jsxs("div",{className:"akilio-feedback",children:[E.jsx("span",{children:t.feedback?n.feedbackThanks:n.feedbackQuestion}),E.jsx("button",{type:"button",className:Lt(t.feedback==="up"&&"akilio-feedback-active"),onClick:()=>i?.(t,"up"),"aria-label":n.voteUp,children:E.jsx(ls,{})}),E.jsx("button",{type:"button",className:Lt(t.feedback==="down"&&"akilio-feedback-active"),onClick:()=>i?.(t,"down"),"aria-label":n.voteDown,children:E.jsx(cs,{})})]})]})})}),Ph=z.memo(function({messages:t,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o}){return E.jsx(E.Fragment,{children:t.map(s=>E.jsx(za,{message:s,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o},s.id))})}),Bh=z.forwardRef(function({loading:t,disabled:n,copy:r,onSubmit:i,onReviewConsent:a,onDraftChange:o,disabledMessage:s,showPoweredBy:c},l){const[d,u]=z.useState(""),f=z.useRef(""),p=z.useRef(null);z.useLayoutEffect(()=>{const b=p.current;if(!b)return;b.style.height="auto";const N=Math.max(48,Math.min(b.scrollHeight,148));b.style.height=`${N}px`,b.style.overflowY=b.scrollHeight>148?"auto":"hidden"},[d]);const g=async()=>{const b=f.current.trim();if(!b)throw new Error("EMPTY_DRAFT");if(t)throw new Error("BUSY");if(n)throw new Error("INVALID_QUESTION");return u(""),f.current="",o?.("",!1),i(b)},h=b=>{b.preventDefault(),g().catch(()=>{})},w=b=>{b.key==="Enter"&&!b.shiftKey&&!b.nativeEvent.isComposing&&(b.preventDefault(),h(b))};return z.useImperativeHandle(l,()=>({getDraft:()=>f.current,setDraft:(b,N)=>{const v=N?.clearExisting===!1?`${f.current}${b}`:b;f.current=v,u(v),o?.(v,!1),N?.focus&&window.setTimeout(()=>p.current?.focus(),0)},clearDraft:()=>{f.current="",u(""),o?.("",!1)},focus:()=>p.current?.focus(),submit:g}),[o,i,d,t,n]),E.jsxs("form",{onSubmit:h,className:"akilio-composer",children:[E.jsxs("div",{className:"akilio-composer-box",children:[E.jsx("textarea",{ref:p,value:d,rows:2,onChange:b=>{f.current=b.target.value,u(b.target.value),o?.(b.target.value,!0)},onKeyDown:w,placeholder:r.placeholder,"aria-label":r.placeholder,disabled:n}),E.jsxs("div",{className:"akilio-composer-footer",children:[E.jsxs("span",{children:[n?s||r.privacyRequired:r.helper,n&&a&&E.jsxs(E.Fragment,{children:[" ",E.jsx("button",{type:"button",className:"akilio-privacy-review",onClick:a,children:r.privacyReview})]})]}),E.jsxs("button",{type:"submit",disabled:t||n||!d.trim(),children:[t?r.loading:r.submit,E.jsx(os,{})]})]})]}),c&&E.jsx("div",{className:"akilio-powered-by",children:r.poweredBy})]})});function Fh({copy:e,label:t}){return E.jsxs("div",{className:"akilio-message-row akilio-message-row--assistant akilio-stream-activity",role:"status","aria-live":"polite","aria-atomic":"true",children:[E.jsx("span",{className:"akilio-stream-activity-icon","aria-hidden":"true",children:E.jsx(Nn,{className:"akilio-mini-icon"})}),E.jsxs("div",{className:"akilio-stream-activity-content",children:[E.jsx("span",{className:"akilio-stream-activity-label",children:t||e.loading},t),E.jsx("span",{className:"akilio-stream-activity-pulse","aria-hidden":"true"})]})]})}function zh({copy:e,onSuggestion:t,widgetAvailable:n,showBranding:r}){return E.jsxs("div",{className:"akilio-empty",children:[E.jsx("div",{className:"akilio-empty-icon",children:r?E.jsx(ir,{variant:"mark"}):E.jsx(Nn,{})}),E.jsx("h3",{children:e.title}),E.jsx("p",{children:n?e.emptyState:e.widgetUnavailable}),E.jsx("div",{className:"akilio-suggestions",children:n&&e.suggestions.slice(0,4).map(i=>E.jsx("button",{type:"button",onClick:()=>t(i),children:i},i))})]})}const Uh=z.forwardRef(function(t,n){const{open:r,isDesktop:i,inline:a,colorMode:o,allowColorModeToggle:s,widgetAvailable:c,showBranding:l,showPoweredBy:d,copy:u,locale:f,messages:p,streamingMessage:g,loading:h,loadingLabel:w,consentDecision:b,consentGranted:N,requireConsent:v,privacyNotice:O,privacyNoticeUrl:R,onConsentDecision:x,onClose:H,onToggleColorMode:K,onClear:G,onSubmit:_,onDraftChange:L,onFeedback:P,onProductClick:ee,onSuggestion:Y}=t,$=z.useRef(null),ne=z.useRef(null);return z.useImperativeHandle(n,()=>({getDraft:()=>ne.current?.getDraft()||"",setDraft:(he,X)=>ne.current?.setDraft(he,X),clearDraft:()=>ne.current?.clearDraft(),focusDraft:()=>ne.current?.focus(),submitDraft:()=>ne.current?ne.current.submit():Promise.reject(new Error("NOT_READY"))}),[]),z.useEffect(()=>{r&&$.current?.scrollTo({top:$.current.scrollHeight,behavior:p.length>1?"auto":"smooth"})},[p.length,g?.content,h,r]),E.jsxs("aside",{className:Lt("akilio-panel",i&&"akilio-panel--desktop",a&&"akilio-panel--inline",r&&"akilio-panel--open"),"aria-hidden":!r,"aria-label":u.title,children:[E.jsx("div",{className:"akilio-panel-glow"}),E.jsx("header",{className:"akilio-panel-header",children:E.jsxs("div",{className:"akilio-header-content",children:[E.jsxs("div",{className:"akilio-header-topline",children:[l&&E.jsx("div",{className:"akilio-logo",children:E.jsx(ir,{variant:"wordmark"})}),E.jsxs("div",{className:"akilio-header-title",children:[E.jsx("h2",{children:u.title}),E.jsxs("span",{className:Lt("akilio-online",!c&&"akilio-online--unavailable"),children:[E.jsx("i",{}),c?u.online:u.widgetUnavailable]})]}),E.jsxs("div",{className:"akilio-header-actions",children:[s&&E.jsx("button",{type:"button",onClick:K,title:o==="dark"?u.switchToLightMode:u.switchToDarkMode,"aria-label":o==="dark"?u.switchToLightMode:u.switchToDarkMode,children:o==="dark"?E.jsx(us,{}):E.jsx(ds,{})}),E.jsx("button",{type:"button",onClick:G,title:u.clearHistory,"aria-label":u.clearHistory,children:E.jsx(ss,{})}),!a&&E.jsx("button",{type:"button",onClick:H,title:u.close,"aria-label":u.close,children:E.jsx(as,{})})]})]}),E.jsx("p",{className:"akilio-header-description",children:u.description})]})}),E.jsxs("div",{ref:$,className:"akilio-thread","aria-live":"polite","aria-relevant":"additions",children:[p.length===0&&!h?E.jsx(zh,{copy:u,onSuggestion:_,widgetAvailable:c,showBranding:l}):E.jsx(Ph,{messages:p,copy:u,locale:f,onFeedback:P,onProductClick:ee,onSuggestion:Y}),g&&E.jsx(za,{message:g,copy:u,locale:f,onFeedback:P,onProductClick:ee,onSuggestion:Y}),h&&!g&&E.jsx(Fh,{copy:u,label:w})]}),(O||v)&&b==="pending"&&E.jsxs("section",{className:"akilio-privacy","aria-label":u.privacyTitle,children:[E.jsxs("div",{children:[E.jsx("strong",{children:u.privacyTitle}),E.jsxs("p",{children:[O||u.privacyDefaultNotice," ",R&&E.jsx("a",{href:R,target:"_blank",rel:"noreferrer",children:u.privacyTitle})]}),v&&E.jsx("p",{className:"akilio-privacy-consent-copy",children:u.privacyAccept})]}),E.jsxs("div",{className:"akilio-privacy-actions",children:[E.jsx("button",{type:"button",className:"akilio-privacy-decline",onClick:()=>x("rejected"),children:u.privacyDecline}),E.jsx("button",{type:"button",className:"akilio-privacy-accept",onClick:()=>x("accepted"),children:u.privacyAcceptAction})]})]}),E.jsx(Bh,{ref:ne,loading:h,disabled:!c||v&&!N,disabledMessage:c?u.privacyRequired:u.widgetUnavailable,showPoweredBy:d,copy:u,onSubmit:_,onDraftChange:L,onReviewConsent:v&&b==="rejected"?()=>x("pending"):void 0})]})});function qh({label:e,onClick:t,showBranding:n=!0}){return E.jsxs("button",{id:"akilio-launcher",type:"button",className:"akilio-launcher",onClick:t,children:[E.jsx("span",{children:n?E.jsx(ir,{variant:"mark",className:"akilio-launcher-logo"}):E.jsx(Nn,{className:"akilio-launcher-logo"})}),E.jsx("strong",{children:e})]})}const $h="(min-width: 1280px)";function Hh(e=$h){const[t,n]=z.useState(!1);return z.useEffect(()=>{if(typeof window>"u")return;const r=window.matchMedia(e),i=()=>n(r.matches);return i(),r.addEventListener?.("change",i),()=>r.removeEventListener?.("change",i)},[e]),t}const en=60;function Gh(e,t){if(!e)return t;try{return JSON.parse(e)}catch{return t}}function Wh(e){const t=z.useMemo(()=>`akilio:${e.projectKey}:${e.locale||"default"}:messages:v1`,[e.projectKey,e.locale]),[n,r]=z.useState([]),[i,a]=z.useState(!1);return z.useEffect(()=>{if(!e.enabled||typeof window>"u"){a(!0);return}const o=Gh(window.localStorage.getItem(t),[]);r(Array.isArray(o)?o.slice(-en):[]),a(!0)},[e.enabled,t]),z.useEffect(()=>{!e.enabled||!i||typeof window>"u"||window.localStorage.setItem(t,JSON.stringify(n.slice(-en)))},[n,e.enabled,t,i]),[n,r,t]}function En(e){const[t,n]=z.useState(e.initialValue||""),[r,i]=z.useState(!1);return z.useEffect(()=>{if(!e.enabled||typeof window>"u"){i(!0);return}n(window.localStorage.getItem(e.key)||e.initialValue||""),i(!0)},[e.enabled,e.initialValue,e.key]),z.useEffect(()=>{!e.enabled||!r||typeof window>"u"||(t?window.localStorage.setItem(e.key,t):window.localStorage.removeItem(e.key))},[e.enabled,r,e.key,t]),[t,n]}class ni extends Error{status;payload;constructor(t,n,r){super(t),this.name="AkilioHttpError",this.status=n,this.payload=r}}function Ua(e,t){return`${e.replace(/\/$/,"")}${t.startsWith("/")?t:`/${t}`}`}async function qa(e){const t=await e.text();let n={};try{n=t?JSON.parse(t):{}}catch{n={detail:t}}if(!e.ok){const r=n?.detail||n?.error||n?.message||`Request failed with status ${e.status}`;throw new ni(r,e.status,n)}return n}function ri(e,t,n){const r=`${e.replace(/\/$/,"")}|${t}|${n||"anonymous"}`;let i=2166136261;for(let a=0;a<r.length;a+=1)i^=r.charCodeAt(a),i=Math.imul(i,16777619);return`akilio:widget-token:v1:${(i>>>0).toString(16)}`}function Kh(e){if(typeof window>"u")return null;try{const t=window.sessionStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function $a(e,t){if(!(typeof window>"u"))try{t?window.sessionStorage.setItem(e,JSON.stringify(t)):window.sessionStorage.removeItem(e)}catch{}}class Ha{apiBaseUrl;fetchImpl;auth;widgetToken=null;widgetTokenPromise=null;widgetTokenPromiseKey=null;constructor(t){this.apiBaseUrl=t.apiBaseUrl;const n=t.fetchImpl||globalThis.fetch;if(!n)throw new Error("Fetch API is not available in this environment");this.fetchImpl=n.bind(globalThis),this.auth=t.auth}hasHostManagedToken(){return!!(this.auth?.getAccessToken||this.auth?.accessToken)}async hostManagedToken(){return(this.auth?.getAccessToken?await this.auth.getAccessToken():this.auth?.accessToken)||null}tokenIsUsable(t,n,r){const i=Math.max(0,this.auth?.tokenRefreshLeewaySeconds??30);return t.projectKey===n&&t.subject===r&&t.expiresAt>Date.now()+i*1e3}clearWidgetToken(t,n){this.widgetToken=null,$a(ri(this.apiBaseUrl,t,n),null)}async issueWidgetToken(t,n){const r=await this.publicRequest(`/api/v1/projects/${encodeURIComponent(t)}/widget-token/`,{method:"POST",body:JSON.stringify(n?{subject:n}:{})}),i=Math.max(1,Number(r.expires_in)||1),a={token:r.token,tokenType:r.token_type||"Bearer",expiresAt:Date.now()+i*1e3,projectKey:t,subject:n};return this.widgetToken=a,$a(ri(this.apiBaseUrl,t,n),a),this.auth?.onWidgetToken?.({token:a.token,tokenType:a.tokenType,expiresAt:a.expiresAt}),a}async ensureWidgetToken(t,n,r=!1){if(!r&&this.widgetToken&&this.tokenIsUsable(this.widgetToken,t,n))return this.widgetToken;const i=ri(this.apiBaseUrl,t,n);if(!r){const o=Kh(i);if(o&&this.tokenIsUsable(o,t,n))return this.widgetToken=o,o}r&&this.clearWidgetToken(t,n);const a=`${t}|${n||""}`;return(!this.widgetTokenPromise||this.widgetTokenPromiseKey!==a)&&(this.widgetTokenPromiseKey=a,this.widgetTokenPromise=this.issueWidgetToken(t,n).finally(()=>{this.widgetTokenPromiseKey===a&&(this.widgetTokenPromise=null,this.widgetTokenPromiseKey=null)})),this.widgetTokenPromise}async baseHeaders(t=!1){const n={Accept:"application/json",...this.auth?.headers||{}};return t&&(n["Content-Type"]="application/json"),this.auth?.apiKey&&(n[this.auth.apiKeyHeader||"X-Akilio-Key"]=this.auth.apiKey),n}async execute(t,n,r){const i=await this.fetchImpl(Ua(this.apiBaseUrl,t),{...n,credentials:this.auth?.credentials||"omit",headers:{...r,...n.headers||{}}});return qa(i)}async publicRequest(t,n={}){return this.execute(t,n,await this.baseHeaders(!!n.body))}async authenticatedRequest(t,n,r,i={}){const a=await this.baseHeaders(!!i.body),o=await this.hostManagedToken();if(o)return a.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${o}`,this.execute(r,i,a);if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");let s=await this.ensureWidgetToken(t,n);a.Authorization=`${s.tokenType} ${s.token}`;try{return await this.execute(r,i,a)}catch(c){if(!(c instanceof ni)||c.status!==401)throw c;return s=await this.ensureWidgetToken(t,n,!0),a.Authorization=`${s.tokenType} ${s.token}`,this.execute(r,i,a)}}async authenticatedResponse(t,n,r,i={}){const a=await this.baseHeaders(!!i.body);a.Accept="text/event-stream";const o=await this.hostManagedToken();if(o)a.Authorization=`${this.auth?.tokenScheme||"Bearer"} ${o}`;else{if(this.auth?.autoIssueWidgetToken===!1)throw new Error("No widget authentication token is available");const l=await this.ensureWidgetToken(t,n);a.Authorization=`${l.tokenType} ${l.token}`}const s=()=>this.fetchImpl(Ua(this.apiBaseUrl,r),{...i,credentials:this.auth?.credentials||"omit",headers:{...a,...i.headers||{}}});let c=await s();if(c.status===401&&!o){await c.body?.cancel().catch(()=>{});const l=await this.ensureWidgetToken(t,n,!0);a.Authorization=`${l.tokenType} ${l.token}`,c=await s()}return c.ok||await qa(c),c}getProjectConfig(t){return this.publicRequest(`/api/v1/projects/${encodeURIComponent(t)}/config/`)}async prepareWidgetToken(t,n){this.hasHostManagedToken()||this.auth?.autoIssueWidgetToken===!1||await this.ensureWidgetToken(t,n)}sendMessage(t,n,r){return this.authenticatedRequest(t,n,"/api/v1/chat/",{method:"POST",body:JSON.stringify(r)})}async sendMessageStream(t,n,r,i={},a){let o;try{o=await this.authenticatedResponse(t,n,"/api/v1/chat/stream/",{method:"POST",body:JSON.stringify(r),signal:a})}catch(f){if(f instanceof ni&&[404,405,406,415,501].includes(f.status))return this.sendMessage(t,n,r);throw f}if(!o.body)throw new Error("Streaming response body is unavailable");const s=o.body.getReader(),c=new TextDecoder;let l="",d=null;const u=f=>{let p="message";const g=[];for(const w of f.split(/\r?\n/))!w||w.startsWith(":")||(w.startsWith("event:")&&(p=w.slice(6).trim()),w.startsWith("data:")&&g.push(w.slice(5).trimStart()));if(!g.length)return;let h;try{const w=JSON.parse(g.join(`
37
+ `));h=w&&typeof w=="object"?w:{value:w}}catch{h={detail:g.join(`
38
+ `)}}if(i.onEvent?.({event:p,data:h}),p==="status")i.onStatus?.(String(h.stage||""),h);else if(p==="conversation"){const w=h.conversation_id||h.id;w&&i.onConversation?.(String(w))}else if(p==="answer.delta")typeof h.delta=="string"&&i.onDelta?.(h.delta);else if(p==="final")d=h;else if(p==="error")throw new Error(String(h.detail||h.error||h.message||"Streaming request failed"))};for(;;){const{value:f,done:p}=await s.read();l+=c.decode(f,{stream:!p});const g=l.split(/\r?\n\r?\n/);l=g.pop()||"";for(const h of g)u(h);if(p)break}if(l.trim()&&u(l),!d)throw new Error("The stream ended before a final response was received");return d}getConversation(t,n,r){const i=new URLSearchParams({project_key:t});return this.authenticatedRequest(t,n,`/api/v1/conversations/${encodeURIComponent(r)}/?${i}`)}deleteConversation(t,n,r){const i=new URLSearchParams({project_key:t});return this.authenticatedRequest(t,n,`/api/v1/conversations/${encodeURIComponent(r)}/?${i}`,{method:"DELETE"})}sendCommerceEvent(t,n,r){return this.authenticatedRequest(t,n,"/api/v1/commerce/events/",{method:"POST",body:JSON.stringify(r)})}sendFeedback(t){return this.authenticatedRequest(t.projectKey,t.subject,`/api/v1/messages/${encodeURIComponent(t.messageId)}/feedback/`,{method:"POST",body:JSON.stringify({project_key:t.projectKey,rating:t.rating,comment:t.comment||"",metadata:t.metadata||{}})})}}function Vh(e){const n=(e.locale||"").toLowerCase().startsWith("fr")?{launcher:"Demander à Akilio",title:"Demander à Akilio",description:"Posez vos questions à partir des contenus validés de cette organisation.",placeholder:"Posez votre question...",helper:"Entrée pour envoyer. Maj + Entrée pour une nouvelle ligne.",submit:"Envoyer",loading:"Réflexion...",searching:"Recherche des informations pertinentes...",reviewingSources:"Consultation des sources...",checkingAnswer:"Vérification de la réponse...",preparingAnswer:"Préparation de la réponse...",emptyState:"Commencez avec une question ou choisissez une suggestion.",sources:"Sources",confidence:"Confiance",clearHistory:"Effacer",close:"Fermer",online:"Assistant IA",feedbackQuestion:"Cette réponse est-elle utile ?",feedbackThanks:"Merci pour votre retour.",voteUp:"Utile",voteDown:"Pas utile",requestFailed:"Impossible d’obtenir une réponse pour le moment.",configFailed:"Impossible de charger la configuration Akilio.",newChat:"Nouvelle conversation",privacyTitle:"Confidentialité",privacyAccept:"J’accepte que ma question et les données de conversation soient traitées pour fournir une réponse.",privacyAcceptAction:"Accepter",privacyDecline:"Refuser",privacyReview:"Revoir mon choix de confidentialité",privacyRequired:"Votre consentement est requis avant d’envoyer une question.",widgetUnavailable:"Cet assistant est temporairement indisponible.",poweredBy:"Propulsé par Akilio",privacyDefaultNotice:"Vos questions peuvent être enregistrées afin de fournir le service et améliorer sa qualité.",switchToLightMode:"Passer au thème clair",switchToDarkMode:"Passer au thème sombre",products:"Produits",viewProduct:"Voir le produit",fromPrice:"À partir de",unavailable:"Prix indisponible",inStock:"En stock",outOfStock:"Rupture de stock",suggestions:["Quels services offrez-vous ?","Comment puis-je vous contacter ?","Où trouver plus d’informations ?","Pouvez-vous résumer cette page ?"]}:{launcher:"Ask Akilio",title:"Ask Akilio",description:"Ask questions using this organization’s verified content.",placeholder:"Ask your question...",helper:"Press Enter to send. Shift + Enter for a new line.",submit:"Send",loading:"Thinking...",searching:"Searching for relevant information...",reviewingSources:"Reviewing sources...",checkingAnswer:"Checking the answer...",preparingAnswer:"Preparing the answer...",emptyState:"Start with a question or choose a suggestion.",sources:"Sources",confidence:"Confidence",clearHistory:"Clear",close:"Close",online:"AI assistant",feedbackQuestion:"Was this answer useful?",feedbackThanks:"Thanks for your feedback.",voteUp:"Useful",voteDown:"Not useful",requestFailed:"Unable to get an answer right now.",configFailed:"Unable to load Akilio configuration.",newChat:"New chat",privacyTitle:"Privacy",privacyAccept:"I agree that my question and conversation data may be processed to provide an answer.",privacyAcceptAction:"Accept",privacyDecline:"Decline",privacyReview:"Review privacy choice",privacyRequired:"Consent is required before sending a question.",widgetUnavailable:"This assistant is temporarily unavailable.",poweredBy:"Powered by Akilio",privacyDefaultNotice:"Your questions may be stored to provide the service and improve its quality.",switchToLightMode:"Switch to light mode",switchToDarkMode:"Switch to dark mode",products:"Products",viewProduct:"View product",fromPrice:"From",unavailable:"Price unavailable",inStock:"In stock",outOfStock:"Out of stock",suggestions:["What services do you offer?","How can I contact you?","Where can I find more information?","Can you summarize this page?"]},r=e.projectConfig,i=e.overrides||{};return{...n,launcher:i.launcher||r?.theme_config?.launcherLabel||n.launcher,title:i.title||r?.title||n.title,placeholder:i.placeholder||r?.placeholder||n.placeholder,suggestions:r?.starter_questions?.length?r.starter_questions:n.suggestions,...i}}const Ga=":host,.akilio-root{--akilio-primary: #0F766E;--akilio-primary-hover: #115E59;--akilio-primary-foreground: #ffffff;--akilio-accent: #2563eb;--akilio-radius: 22px;--akilio-panel-width: 440px;--akilio-z-index: 2147483647}:host{all:initial;display:block;direction:ltr;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;text-align:left;color-scheme:light dark;pointer-events:none}.akilio-launcher,.akilio-overlay,.akilio-panel{pointer-events:auto}:host *,:host *:before,:host *:after,.akilio-root,.akilio-root *:before,.akilio-root *:after{box-sizing:border-box}.akilio-root button,.akilio-root input,.akilio-root textarea,.akilio-root select{font:inherit;color:inherit}.akilio-root,.akilio-root *{box-sizing:border-box}.akilio-root{color:#18181b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.akilio-launcher{position:fixed;right:22px;bottom:22px;z-index:calc(var(--akilio-z-index) - 10);display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-primary-hover));color:#fff!important;padding:11px 16px 11px 12px;cursor:pointer;box-shadow:0 24px 60px #18181b40,0 0 0 1px #09090b14;transition:transform .26s ease,box-shadow .18s ease,background .18s ease}.akilio-launcher:hover{transform:translateY(-2px);box-shadow:0 28px 70px #0891b240,0 0 0 1px #09090b14}.akilio-launcher span{display:grid;width:30px;height:30px;place-items:center;overflow:hidden;border-radius:999px;background:#fff!important}.akilio-launcher-logo{display:block;width:22px;height:22px;object-fit:contain}.akilio-launcher strong{font-size:14px;font-weight:750;letter-spacing:-.01em}.akilio-overlay{position:fixed;inset:0;z-index:calc(var(--akilio-z-index) - 2);border:0;background:#09090b75;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);cursor:default}.akilio-panel{position:fixed;top:0;right:0;z-index:var(--akilio-z-index);display:flex;width:min(100vw,var(--akilio-panel-width));height:100dvh;transform:translate(103%);flex-direction:column;overflow:hidden;border-left:1px solid rgba(212,212,216,.9);background:#f8fafc;box-shadow:-30px 0 90px #0f172a3d;transition:transform .26s cubic-bezier(.2,.8,.2,1)}.akilio-panel--open{transform:translate(0)}.akilio-root[data-akilio-mode=floating] .akilio-panel{top:auto;right:22px;bottom:88px;width:min(400px,calc(100vw - 32px));height:min(650px,calc(100dvh - 116px));min-height:420px;transform:translateY(18px) scale(.98);transform-origin:right bottom;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 28px 80px #0f172a3d;opacity:0;visibility:hidden;pointer-events:none;transition:transform .22s cubic-bezier(.2,.8,.2,1),opacity .18s ease,visibility .18s ease}.akilio-root[data-akilio-mode=floating] .akilio-panel--open{transform:translateY(0) scale(1);opacity:1;visibility:visible;pointer-events:auto}.akilio-panel-glow{position:absolute;inset:0 0 auto;height:185px;pointer-events:none;background:radial-gradient(circle at 0% 0%,color-mix(in srgb,var(--akilio-primary) 35%,transparent),transparent 36%),radial-gradient(circle at 100% 0%,rgba(37,99,235,.22),transparent 34%)}.akilio-panel-header{position:relative;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid rgba(212,212,216,.82);background:#ffffffc7;padding:16px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-logo,.akilio-empty-icon{display:grid;flex-shrink:0;place-items:center}.akilio-logo{width:94px;height:34px}.akilio-logo img{display:block;width:100%;height:100%;object-fit:contain;object-position:left center}.akilio-empty-icon{width:64px;height:64px;border:1px solid rgba(124,58,237,.12);border-radius:calc(var(--akilio-radius) - 4px);background:#ffffffe0;box-shadow:0 18px 42px #6d28d929}.akilio-empty-icon img{display:block;width:42px;height:42px;object-fit:contain}.akilio-header-content{min-width:0;flex:1}.akilio-header-topline{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px}.akilio-header-title{display:flex;min-width:0;align-items:center;gap:8px}.akilio-header-title h2{overflow:hidden;margin:0;color:#09090b;font-size:14px;font-weight:800;letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap}.akilio-online{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#10b9811f;color:#047857;padding:3px 8px;font-size:10px;font-weight:800;white-space:nowrap}.akilio-online i{width:6px;height:6px;border-radius:999px;background:#10b981}.akilio-header-description{display:-webkit-box;margin:6px 0 0;overflow:hidden;color:#71717a;font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}.akilio-header-actions{display:flex;flex-shrink:0;align-items:center;gap:4px}.akilio-header-actions button{display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;transition:background .16s ease,color .16s ease}.akilio-header-actions button:hover{background:#f4f4f5;color:#09090b}.akilio-header-actions svg{width:18px;height:18px}.akilio-thread{position:relative;display:flex;flex:1;flex-direction:column;gap:14px;overflow-y:auto;padding:18px 16px 22px}.akilio-message-row{display:flex;width:100%}.akilio-message-row--user{justify-content:flex-end}.akilio-message-row--assistant{justify-content:flex-start}.akilio-stream-activity{align-items:center;gap:10px;min-height:38px;padding:2px 4px;color:#52525b}.akilio-stream-activity-icon{display:grid;width:28px;height:28px;flex:0 0 28px;place-items:center;border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 8%,#fff);color:var(--akilio-primary)}.akilio-stream-activity-content{display:flex;min-width:0;align-items:center;gap:8px}.akilio-stream-activity-label{font-size:13px;font-weight:550;line-height:1.4;animation:akilio-status-in .18s ease-out}.akilio-stream-activity-pulse{width:6px;height:6px;flex:0 0 6px;border-radius:999px;background:var(--akilio-primary);animation:akilio-status-pulse 1.2s ease-in-out infinite}@keyframes akilio-status-in{0%{transform:translateY(2px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes akilio-status-pulse{0%,to{transform:scale(.75);opacity:.35}50%{transform:scale(1);opacity:1}}.akilio-bubble{max-width:88%;overflow:hidden;border:1px solid rgba(212,212,216,.86);border-radius:26px 26px 26px 8px;background:#fffffff0;color:#27272a;padding:13px 15px;box-shadow:0 10px 28px #0f172a12}.akilio-bubble--user{border-color:#ffffff26;border-bottom-right-radius:8px;border-bottom-left-radius:26px;background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-primary-hover));color:#fff}.akilio-bubble--error{border-color:#f8717159;background:#fef2f2;color:#991b1b}.akilio-bubble-meta{display:flex;align-items:center;gap:7px;margin-bottom:8px;color:var(--akilio-primary);font-size:10px;font-weight:850;letter-spacing:.15em;text-transform:uppercase}.akilio-mini-icon{width:14px;height:14px}.akilio-confidence{margin-left:auto;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,transparent);padding:2px 7px;color:var(--akilio-primary);letter-spacing:0;text-transform:none}.akilio-answer{color:inherit;font-size:14px;line-height:1.7}.akilio-answer p{margin:.5rem 0}.akilio-answer p:first-child{margin-top:0}.akilio-answer p:last-child{margin-bottom:0}.akilio-answer ul,.akilio-answer ol{margin:.625rem 0 .625rem 1.25rem;padding-left:.75rem}.akilio-answer ul{list-style:disc}.akilio-answer ol{list-style:decimal}.akilio-answer li{margin:.25rem 0}.akilio-answer a{color:var(--akilio-primary);font-weight:700;text-decoration:underline;text-underline-offset:3px}.akilio-answer code{border-radius:7px;background:#0f172a14;padding:.12rem .35rem;font-size:.86em}.akilio-answer pre{margin:.75rem 0;overflow-x:auto;border:1px solid rgba(148,163,184,.2);border-radius:16px;background:#020617;padding:13px}.akilio-answer pre code{background:transparent;color:#e2e8f0;padding:0}.akilio-answer .hljs-keyword,.akilio-answer .hljs-selector-tag,.akilio-answer .hljs-built_in{color:#f0abfc}.akilio-answer .hljs-string,.akilio-answer .hljs-attr,.akilio-answer .hljs-symbol{color:#86efac}.akilio-answer .hljs-number,.akilio-answer .hljs-literal{color:#fcd34d}.akilio-answer .hljs-comment{color:#64748b;font-style:italic}.akilio-answer .hljs-title,.akilio-answer .hljs-function{color:#7dd3fc}.akilio-answer .hljs-variable{color:#fdba74}.akilio-answer--user{white-space:pre-wrap}.akilio-answer--user code{background:#ffffff29}.akilio-sources{margin-top:11px;overflow:hidden;border:1px solid rgba(212,212,216,.85);border-radius:16px;background:#f4f4f5c7}.akilio-sources summary{cursor:pointer;padding:9px 11px;color:#52525b;font-size:12px;font-weight:800}.akilio-sources-list{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.85);padding:8px}.akilio-source-card{display:grid;gap:3px;border:1px solid rgba(212,212,216,.82);border-radius:13px;background:#fff;padding:8px;font-size:12px}.akilio-source-card strong{color:#18181b}.akilio-source-card span{color:#71717a}.akilio-source-card a{overflow:hidden;color:var(--akilio-primary);text-overflow:ellipsis;white-space:nowrap}.akilio-feedback{display:flex;align-items:center;gap:7px;margin-top:11px;color:#71717a;font-size:11px}.akilio-feedback span{margin-right:auto}.akilio-feedback button{display:grid;width:28px;height:28px;place-items:center;border:1px solid rgba(212,212,216,.9);border-radius:999px;background:#fff;color:#71717a;cursor:pointer}.akilio-feedback button:hover,.akilio-feedback .akilio-feedback-active{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);color:var(--akilio-primary)}.akilio-feedback svg{width:14px;height:14px}.akilio-dots{display:flex;gap:6px;padding:2px 0}.akilio-dots span{width:8px;height:8px;border-radius:999px;background:var(--akilio-primary);animation:akilio-bounce .9s infinite ease-in-out}.akilio-dots span:nth-child(2){animation-delay:.1s}.akilio-dots span:nth-child(3){animation-delay:.2s}@keyframes akilio-bounce{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}.akilio-empty{margin:auto;display:flex;max-width:340px;flex-direction:column;align-items:center;padding:34px 0;text-align:center}.akilio-empty-icon{width:58px;height:58px;margin-bottom:16px}.akilio-empty h3{margin:0;color:#09090b;font-size:17px;font-weight:850;letter-spacing:-.02em}.akilio-empty p{margin:8px 0 0;color:#71717a;font-size:14px;line-height:1.65}.akilio-suggestions{display:grid;width:100%;gap:9px;margin-top:18px}.akilio-suggestions button{border:1px solid rgba(212,212,216,.9);border-radius:16px;background:#fff;color:#3f3f46;cursor:pointer;padding:10px 12px;text-align:left;font-size:12px;font-weight:700;box-shadow:0 5px 14px #0f172a0a;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.akilio-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);box-shadow:0 12px 22px #0f172a14}.akilio-composer{position:relative;border-top:1px solid rgba(212,212,216,.85);background:#ffffffdb;padding:12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-composer-box{border:1px solid rgba(212,212,216,.95);border-radius:24px;background:#f8fafc;padding:8px;box-shadow:inset 0 1px 2px #0f172a0a;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.akilio-composer-box:focus-within{border-color:color-mix(in srgb,var(--akilio-primary) 55%,#d4d4d8);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--akilio-primary) 13%,transparent),inset 0 1px 2px #0f172a08}.akilio-composer textarea{width:100%;min-height:48px;max-height:148px;height:48px;overflow-y:hidden;resize:none;border:0;outline:0;background:transparent;color:#09090b;padding:8px 10px;font:inherit;font-size:14px;line-height:1.55}.akilio-online--unavailable{color:#a16207}.akilio-online--unavailable i{background:#f59e0b;box-shadow:0 0 0 3px #f59e0b29}.akilio-composer textarea::placeholder{color:#a1a1aa}.akilio-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 2px 7px}.akilio-composer-footer span{color:#71717a;font-size:11px}.akilio-composer-footer button{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;background:var(--akilio-primary);color:#fff;cursor:pointer;padding:10px 15px;font-size:12px;font-weight:850;box-shadow:0 10px 24px #0f172a24;transition:transform .15s ease,opacity .15s ease}.akilio-composer-footer button:hover:not(:disabled){transform:translateY(-1px);background:var(--akilio-primary-hover)}.akilio-powered-by{padding:7px 4px 0;color:#71717a;font-size:10px;font-weight:600;line-height:1.2;text-align:center}.akilio-composer-footer button:disabled{cursor:not-allowed;opacity:.45}.akilio-composer-footer svg{width:15px;height:15px}.akilio-tour{max-width:360px;border-radius:18px!important}@media(max-width:640px){.akilio-launcher{right:16px;bottom:16px;padding:10px 12px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw}.akilio-bubble{max-width:94%}.akilio-composer-footer span{display:none}}.akilio-root[data-akilio-mode=inline]{width:100%;height:100%;min-height:520px}.akilio-panel--inline{position:relative;inset:auto;width:100%;height:100%;min-height:520px;transform:none;border:1px solid rgba(212,212,216,.9);border-radius:var(--akilio-radius);box-shadow:0 18px 50px #0f172a1f}.akilio-privacy{display:grid;gap:8px;border-top:1px solid rgba(212,212,216,.82);background:#ffffffe6;padding:10px 14px;font-size:11px;line-height:1.45}.akilio-privacy strong{color:#18181b}.akilio-privacy p{margin:2px 0 0;color:#71717a}.akilio-privacy a{color:var(--akilio-primary);font-weight:700}.akilio-privacy label{display:flex;align-items:flex-start;gap:8px;color:#3f3f46;cursor:pointer}.akilio-privacy input{margin-top:2px;accent-color:var(--akilio-primary)}.akilio-composer textarea:disabled{cursor:not-allowed;opacity:.65}.akilio-root button:focus-visible,.akilio-root a:focus-visible,.akilio-root input:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 45%,transparent);outline-offset:2px}.akilio-root .akilio-composer textarea:focus,.akilio-root .akilio-composer textarea:focus-visible{border:0;outline:none;box-shadow:none}@media(prefers-reduced-motion:reduce){.akilio-root *,.akilio-root *:before,.akilio-root *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.akilio-root[data-akilio-color-mode=dark]{color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-panel,.akilio-root[data-akilio-color-mode=dark] .akilio-panel--inline{background:var(--akilio-surface, #09090b);border-color:#27272a}.akilio-root[data-akilio-color-mode=dark] .akilio-panel-header,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=dark] .akilio-empty h3,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy strong{color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-header-description,.akilio-root[data-akilio-color-mode=dark] .akilio-empty p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy p,.akilio-root[data-akilio-color-mode=dark] .akilio-privacy label,.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-stream-activity-icon{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 15%,#18181b)}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=dark] .akilio-sources{background:#09090b;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-sources-list{border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback button,.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-source-card span,.akilio-root[data-akilio-color-mode=dark] .akilio-feedback{color:#a1a1aa}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-panel,.akilio-root[data-akilio-color-mode=system] .akilio-panel--inline{background:#09090b;border-color:#27272a}.akilio-root[data-akilio-color-mode=system] .akilio-panel-header,.akilio-root[data-akilio-color-mode=system] .akilio-privacy{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=system] .akilio-header-title h2,.akilio-root[data-akilio-color-mode=system] .akilio-empty h3,.akilio-root[data-akilio-color-mode=system] .akilio-privacy strong{color:#fafafa}.akilio-root[data-akilio-color-mode=system] .akilio-header-description,.akilio-root[data-akilio-color-mode=system] .akilio-empty p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy p,.akilio-root[data-akilio-color-mode=system] .akilio-privacy label{color:#a1a1aa}.akilio-root[data-akilio-color-mode=system] .akilio-bubble{background:#18181b;border-color:#3f3f46;color:#e4e4e7;box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-bubble--user{background:linear-gradient(135deg,var(--akilio-primary),var(--akilio-accent));color:var(--akilio-primary-foreground)}.akilio-root[data-akilio-color-mode=system] .akilio-source-card,.akilio-root[data-akilio-color-mode=system] .akilio-feedback button,.akilio-root[data-akilio-color-mode=system] .akilio-composer-box{background:#18181b;border-color:#3f3f46;color:#e4e4e7}}@media(max-width:640px){.akilio-launcher{right:14px;bottom:max(14px,env(safe-area-inset-bottom));padding:10px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw;height:100dvh;border-left:0}.akilio-root[data-akilio-mode=floating] .akilio-panel{right:14px;bottom:calc(76px + env(safe-area-inset-bottom));width:calc(100vw - 28px);height:min(640px,calc(100dvh - 104px - env(safe-area-inset-bottom)));min-height:min(420px,calc(100dvh - 104px));border:1px solid rgba(212,212,216,.9);border-radius:18px}.akilio-panel-header{padding-top:max(14px,env(safe-area-inset-top))}.akilio-thread{padding-inline:12px}.akilio-bubble{max-width:94%}.akilio-composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.akilio-root[data-akilio-mode=inline]{min-height:480px}.akilio-panel--inline{min-height:480px;border-radius:16px}}.akilio-root[data-akilio-color-mode=dark] .akilio-composer{background:#18181beb;border-color:#3f3f46}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea{color:var(--akilio-text, #fafafa);caret-color:var(--akilio-text, #fafafa);-webkit-text-fill-color:var(--akilio-text, #fafafa)}.akilio-root[data-akilio-color-mode=dark] .akilio-composer textarea::placeholder{color:var(--akilio-muted, #a1a1aa);-webkit-text-fill-color:var(--akilio-muted, #a1a1aa);opacity:1}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-footer span,.akilio-root[data-akilio-color-mode=dark] .akilio-powered-by{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box:focus-within{background:#18181b}@media(max-width:420px){.akilio-logo{width:78px;height:30px}}.akilio-privacy-consent-copy{margin-top:6px!important}.akilio-privacy-actions{display:flex;justify-content:flex-end;gap:8px}.akilio-privacy-actions button{border:1px solid rgba(161,161,170,.65);border-radius:999px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer}.akilio-privacy-decline{background:transparent;color:#52525b}.akilio-privacy-accept{border-color:var(--akilio-primary)!important;background:var(--akilio-primary);color:#fff}.akilio-privacy-review{border:0;background:transparent;color:var(--akilio-primary);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;padding:0}.akilio-products{margin-top:14px;min-width:0}.akilio-products-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:12px;color:#64748b}.akilio-products-heading span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#eef2ff;color:#4338ca;font-weight:700}.akilio-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.akilio-product-card{min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f}.akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .18s ease}.akilio-product-card:hover .akilio-product-media img{transform:scale(1.025)}.akilio-product-placeholder{width:100%;height:100%;display:grid;place-items:center;color:var(--akilio-primary);font-size:30px;font-weight:800;background:linear-gradient(145deg,#0891b21f,#2563eb14)}.akilio-stock{position:absolute;top:8px;right:8px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 7px;border-radius:999px;background:#7f1d1de6;color:#fff;font-size:9px;font-weight:700}.akilio-stock--available{background:#065f46e6}.akilio-product-body{padding:11px}.akilio-product-vendor,.akilio-product-variant{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px}.akilio-product-card h4{margin:4px 0 8px;min-height:34px;overflow:hidden;color:#0f172a;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.akilio-product-price{min-height:37px;display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;margin-bottom:9px}.akilio-product-price strong{color:#0f172a;font-size:14px}.akilio-product-price del{color:#94a3b8;font-size:10px}.akilio-product-action{width:100%;min-height:34px;display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:0;border-radius:10px;background:var(--akilio-primary);color:var(--akilio-primary-foreground);font:inherit;font-size:11px;font-weight:700;text-decoration:none;cursor:pointer}.akilio-product-action:hover{filter:brightness(.96)}.akilio-product-action:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 28%,transparent);outline-offset:2px}.akilio-product-action:disabled{opacity:.55;cursor:not-allowed}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading{color:#94a3b8}.akilio-root[data-akilio-color-mode=dark] .akilio-products-heading span{background:#312e81;color:#e0e7ff}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-media{background:#1e293b}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card h4,.akilio-root[data-akilio-color-mode=dark] .akilio-product-price strong{color:#f8fafc}.akilio-root[data-akilio-color-mode=dark] .akilio-product-vendor,.akilio-root[data-akilio-color-mode=dark] .akilio-product-variant{color:#94a3b8}@media(max-width:390px){.akilio-product-grid{grid-template-columns:1fr}.akilio-product-media{aspect-ratio:16 / 9}}.akilio-response-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.akilio-response-suggestions button{appearance:none;border:1px solid color-mix(in srgb,var(--akilio-primary) 26%,#d4d4d8);border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 7%,#ffffff);color:color-mix(in srgb,var(--akilio-primary) 72%,#18181b);cursor:pointer;padding:8px 11px;text-align:left;font:inherit;font-size:12px;font-weight:700;line-height:1.35;transition:transform .15s ease,border-color .15s ease,background .15s ease}.akilio-response-suggestions button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--akilio-primary) 52%,#d4d4d8);background:color-mix(in srgb,var(--akilio-primary) 12%,#ffffff)}.akilio-response-suggestions button:focus-visible{outline:3px solid color-mix(in srgb,var(--akilio-primary) 24%,transparent);outline-offset:2px}.akilio-root[data-akilio-color-mode=dark] .akilio-response-suggestions button{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:color-mix(in srgb,var(--akilio-primary) 14%,#18181b);color:#f4f4f5}";class Yn extends Error{code;constructor(t,n){super(n),this.name="AkilioPublicApiError",this.code=t}}function ot(e,t){typeof window>"u"||window.dispatchEvent(new CustomEvent(`akilio:${e}`,{detail:t||{}}))}function ze(e,t){return new Yn(e,t)}function tn(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function xn(){return new Date().toISOString()}function Wa(e){const t=typeof e=="function"?e():e||{};return typeof window>"u"?t:{url:t.url||window.location.href,title:t.title||document.title,...t}}function Yh(e,t){const n={...e?.theme_config||{},...t||{}};return{"--akilio-primary":String(n.primary||"#0F766E"),"--akilio-primary-hover":String(n.primaryDark||"#115E59"),"--akilio-primary-foreground":String(n.primaryForeground||"#ffffff"),"--akilio-accent":String(n.accent||"#2563eb"),"--akilio-radius":String(n.radius||"22px"),"--akilio-panel-width":`${Number(n.panelWidth||440)}px`,"--akilio-z-index":String(Number(n.zIndex||2147483647)),"--akilio-surface":String(n.surface||""),"--akilio-text":String(n.text||""),"--akilio-muted":String(n.muted||"")}}function Zh(e,t){z.useEffect(()=>{if(typeof document>"u")return;const n=document.documentElement;return n.classList.toggle("akilio-panel-open",e&&t),()=>n.classList.remove("akilio-panel-open")},[e,t])}function Ka(e){return Array.isArray(e)?e.filter(t=>typeof t=="string").map(t=>t.trim()).filter(Boolean).slice(0,6):[]}function Xh(e){if(typeof e.answer=="string"&&e.answer.trim())return e.answer;const t=e.content;if(t&&typeof t=="object")for(const n of["answer","text","message"]){const r=t[n];if(typeof r=="string"&&r.trim())return r}return""}function Va(e){if(!e)return null;try{const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}function Qh(e,t=!0){return{id:tn(),role:"assistant",content:Xh(e),backendMessageId:e.message_id,conversationId:e.conversation_id,confidence:e.confidence,sources:e.sources||[],provider:e.provider,model:e.model,costUsd:e.cost_usd,commerce:t&&e.commerce||null,suggestions:Ka(e.suggestions),createdAt:xn()}}function Ya({apiBaseUrl:e="https://api.akilio-ai.com",projectKey:t,locale:n="en",mode:r="floating",colorMode:i="system",allowColorModeToggle:a=!0,showAkilioBranding:o=!0,streaming:s=!0,defaultOpen:c=!1,open:l,launcher:d="default",persistOpenState:u=!0,enableTour:f=!0,enableLocalHistory:p=!0,enableServerHistorySync:g=!0,anonymousId:h,externalUserId:w,channel:b,audience:N,productArea:v,assistantMode:O,pageContext:R,auth:x,accessToken:H,privacyNotice:K,privacyNoticeUrl:G,requireConsent:_,consentNoticeVersion:L="v1",initialConsent:P=!1,onConsentChange:ee,copy:Y,theme:$,className:ne,onOpenChange:he,onMessage:X,onProductClick:be,onError:m}){const ue=z.useRef(null),ae=z.useRef(null),y=z.useRef(0),ye=z.useRef({open:!1,busy:!1,conversationId:null}),[nt,Ne]=z.useState(null),at=z.useMemo(()=>({...x||{},accessToken:x?.accessToken||H}),[H,x]),ve=z.useMemo(()=>new Ha({apiBaseUrl:e,auth:at}),[e,at]),st=Hh(),[Oe,Et]=z.useState(null),[Bt,Ft]=z.useState(null),[xt,Ct]=z.useState(!1),[fe,rt]=z.useState({stage:"",message:""}),[pt,lt]=z.useState(null),[ft,Qe]=Wh({enabled:p,projectKey:t,locale:n}),[Ue,ct]=En({enabled:p,key:`akilio:${t}:${n}:conversation-id:v2`}),gt=z.useMemo(()=>tn(),[t]),[nn]=En({enabled:!0,key:`akilio:${t}:widget-subject:v1`,initialValue:gt}),[S,M]=En({enabled:u,key:`akilio:${t}:panel-open:v2`,initialValue:c?"true":""}),[Q,oe]=En({enabled:!0,key:`akilio:${t}:consent:${L}`,initialValue:P?"true":""}),[me,Ge]=z.useState(c),[je,Je]=En({enabled:!0,key:`akilio:${t}:color-mode:v1`}),[_t,It]=z.useState("light"),Te=r==="inline",ht=r==="floating",We=r==="hybrid"||r==="side-panel",rn=!Te&&(r==="side-panel"||r==="hybrid"&&st),Zn=!Te&&!ht&&(r==="drawer"||r==="hybrid"&&!st),vt=Te||(l??(u&&S==="true"||me)),zt=i||$?.colorMode||Oe?.theme_config?.colorMode||"system",k=je==="light"||je==="dark"||je==="system"?je:zt,T=k==="system"?_t:k,C=z.useMemo(()=>Vh({locale:n,projectConfig:Oe,overrides:Y}),[Y,n,Oe]),Z=Oe?.widget_policy,Ae=Z?.available!==!1,ke=Z?.commerce_enabled!==!1,q=Z?.assistant_mode||O,F=Z?.branding==="akilio_required"||Z?.branding!=="white_label"&&o,j=Z?.branding==="akilio_required",Le=z.useMemo(()=>ke?ft:ft.map(B=>B.commerce?{...B,commerce:null}:B),[ke,ft]),Me=z.useMemo(()=>Yh(Oe,$),[Oe,$]),Ot=_??Oe?.require_consent??!1,_n=K||Oe?.privacy_notice||"",vn=G||Oe?.privacy_notice_url,Xn=Q==="true"||Q==="accepted"?"accepted":Q==="rejected"?"rejected":"pending",Mt=Xn==="accepted",Ke=w||h||nn||void 0,mt=z.useCallback(B=>{if(Te)return;const ge=ye.current.open!==B;ye.current.open=B,l===void 0&&(Ge(B),u&&M(B?"true":"")),he?.(B),ge&&ot(B?"open":"close")},[l,Te,he,u,M]),Qn=z.useMemo(()=>({open:vt,openChat:()=>mt(!0),closeChat:()=>mt(!1),toggleChat:()=>mt(!vt)}),[vt,mt]),jn=z.useCallback(B=>{oe(B==="pending"?"":B),B!=="pending"&&ee?.(B==="accepted")},[ee,oe]);z.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const B=window.matchMedia("(prefers-color-scheme: dark)"),ge=()=>It(B.matches?"dark":"light");return ge(),B.addEventListener?.("change",ge),()=>B.removeEventListener?.("change",ge)},[]);const on=z.useCallback(()=>{Je(T==="dark"?"light":"dark")},[T,Je]);Zh(vt,rn&&We),z.useEffect(()=>{let B=!1;return ve.getProjectConfig(t).then(ge=>{B||(Et(ge),Ft(null))}).catch(ge=>{B||(Ft(ge.message),m?.(ge))}),()=>{B=!0}},[ve,m,t]),z.useEffect(()=>{Ke&&ve.prepareWidgetToken(t,Ke).catch(B=>m?.(B))},[ve,m,t,Ke]),z.useEffect(()=>{if(!g||!Ke||!Ue||ft.length>0)return;let B=!1;return ve.getConversation(t,Ke,Ue).then(ge=>{B||Qe(ge.messages.map(de=>({id:de.id,backendMessageId:de.role==="assistant"?de.id:void 0,conversationId:ge.id,role:de.role,content:de.content,sources:de.sources||[],confidence:de.confidence,commerce:(()=>{const le=de.metadata&&typeof de.metadata=="object"?de.metadata:null,Ce=Va(de.structured_content);return ke&&(le?.commerce||Ce?.commerce)||null})(),suggestions:(()=>{const le=de.metadata&&typeof de.metadata=="object"?de.metadata:null,Ce=Va(de.structured_content);return Ka(le?.suggestions||Ce?.suggestions)})(),createdAt:de.created_at})).slice(-en))}).catch(()=>ct("")),()=>{B=!0}},[ve,ke,Ue,g,ft.length,t,ct,Qe,Ke]);const Sn=z.useCallback(()=>{Qe([]),ct("")},[ct,Qe]),Jn=z.useCallback(async B=>{if(!B)throw ze("INVALID_QUESTION","Question is empty");if(!Ae)throw ze("INVALID_QUESTION","This widget is not currently available");if(xt)throw ze("BUSY","An answer is already in progress");if(Ot&&!Mt)throw ze("INVALID_QUESTION","Privacy consent is required");const ge=Wa(R),de={id:tn(),role:"user",content:B,createdAt:xn(),conversationId:Ue||void 0};Qe(Ce=>[...Ce,de].slice(-en)),X?.(de),ot("question",{question:B}),Ct(!0),ye.current.busy=!0,ot("answer-start",{question:B}),rt({stage:"",message:""}),lt(null);const le=tn();try{const Ce={project_key:t,conversation_id:Ue||void 0,message:B,locale:n,channel:b||ge.channel||"docs",audience:N||ge.audience,product_area:v||ge.productArea,assistant_mode:q||void 0,page:{url:ge.url,title:ge.title,...ge.metadata||{}},anonymous_id:h,external_user_id:w,consent:{granted:Mt,granted_at:Mt?xn():void 0,notice_version:L}};let A="";const U=s?await ve.sendMessageStream(t,Ke,Ce,{onStatus:(ie,Ie)=>{const De=Ie.message||Ie.label;rt({stage:ie,message:typeof De=="string"?De:""})},onConversation:ie=>{ye.current.conversationId=ie,ct(ie)},onDelta:ie=>{A+=ie,ot("answer-delta",{delta:ie}),lt({id:le,role:"assistant",content:A,conversationId:Ue||void 0,createdAt:xn(),streaming:!0})}}):await ve.sendMessage(t,Ke,Ce);ye.current.conversationId=U.conversation_id,ct(U.conversation_id);const re={...Qh(U,ke),id:A?le:tn(),streaming:!1};return lt(null),Qe(ie=>[...ie,re].slice(-en)),X?.(re),ot("answer-complete",{response:U}),U}catch(Ce){const A=Ce instanceof Error?Ce:new Error(C.requestFailed),U={id:tn(),role:"assistant",content:A.message||C.requestFailed,createdAt:xn(),error:!0};throw lt(null),Qe(re=>[...re,U].slice(-en)),m?.(A),ot("error",{code:Ce instanceof Yn?Ce.code:"STREAM_FAILED",message:A.message||C.requestFailed}),A}finally{Ct(!1),ye.current.busy=!1,rt({stage:"",message:""})}},[h,N,b,ve,ke,Mt,L,Ue,C.requestFailed,Ot,q,w,xt,n,m,X,R,v,t,ct,Qe,s,Ke,Ae]),bt=z.useCallback(()=>{const B=ae.current;B&&(ae.current=null,B.timer&&window.clearTimeout(B.timer),B.reject(ze("TYPING_CANCELLED","Draft typing was cancelled")),ot("typing-cancel",{draft:ue.current?.getDraft()||""}))},[]),St=z.useCallback((B,ge)=>{ge&&ae.current&&bt(),ot("draft-change",{draft:B})},[bt]);ye.current={open:vt,busy:xt,conversationId:Ue||null},z.useEffect(()=>{if(typeof window>"u"||window.AkilioWidget)return;const B=()=>{if(!ue.current)throw ze("NOT_READY","The widget is not ready");return ue.current},ge=async(le,Ce={})=>{if(bt(),typeof le!="string")throw ze("INVALID_QUESTION","Draft must be a string");B().setDraft(le,{focus:Ce.focus,clearExisting:Ce.clearExisting??!0}),await new Promise(A=>window.setTimeout(A,0))},de=Object.freeze({open:async()=>{mt(!0),await new Promise(le=>window.setTimeout(le,0))},close:async()=>{mt(!1),await new Promise(le=>window.setTimeout(le,0))},setDraft:ge,typeDraft:async(le,Ce={})=>{if(bt(),typeof le!="string"||!le.length)throw ze("INVALID_QUESTION","Question must not be empty");const A=B(),U=Ce.clearExisting===!1?A.getDraft():"",re=Math.max(0,Number(Ce.interval??35)),ie=++y.current;return ot("typing-start",{textLength:le.length}),new Promise(async(Ie,De)=>{ae.current={id:ie,reject:De};try{for(let Ve=1;Ve<=le.length;Ve+=1){if(await new Promise(an=>{const Ye=window.setTimeout(an,re);ae.current?.id===ie&&(ae.current.timer=Ye)}),ae.current?.id!==ie)return;A.setDraft(`${U}${le.slice(0,Ve)}`,{clearExisting:!0,focus:Ce.focus&&Ve===1})}if(ae.current?.id!==ie)return;ae.current=null,ot("typing-complete",{draft:A.getDraft()}),Ie()}catch(Ve){ae.current=null,De(Ve)}})},clearDraft:async()=>{bt(),B().clearDraft()},cancelTyping:bt,submit:async()=>{if(ye.current.busy)throw ze("BUSY","An answer is already in progress");const le=B();if(!le.getDraft().trim())throw ze("EMPTY_DRAFT","The draft is empty");try{return await le.submitDraft()}catch(A){throw A instanceof Yn?A:A instanceof Error&&A.message==="BUSY"?ze("BUSY","An answer is already in progress"):A instanceof Error&&A.message==="EMPTY_DRAFT"?ze("EMPTY_DRAFT","The draft is empty"):A instanceof Error&&A.message==="INVALID_QUESTION"?ze("INVALID_QUESTION","The question is invalid"):ze("STREAM_FAILED",A instanceof Error?A.message:"Streaming failed")}},ask:async(le,Ce)=>(await ge(le,Ce),de.submit()),reset:async()=>{try{if(bt(),ye.current.busy)throw ze("BUSY","An answer is already in progress");Sn(),ye.current.conversationId=null,B().clearDraft(),lt(null),ot("reset")}catch(le){throw le instanceof Yn?le:ze("RESET_FAILED","The conversation could not be reset")}},getState:()=>({ready:!!ue.current,open:ye.current.open,busy:ye.current.busy,typing:!!ae.current,draft:ue.current?.getDraft()||"",conversationId:ye.current.conversationId})});return window.AkilioWidget=de,ot("ready"),()=>{bt(),window.AkilioWidget===de&&delete window.AkilioWidget}},[bt,Sn,mt]);const er=z.useCallback((B,ge,de)=>{ke&&(be?.(ge,de),ve.sendCommerceEvent(t,Ke,{event_type:B.commerce?.capability==="product_search"?"search":"recommendation",product_id:ge.id,variant_id:de?.id||null,conversation_id:B.conversationId||Ue||null,external_user_id:w||"",value:de?.price||null,currency:de?.currency||"",metadata:{source:"widget_product_card",capability:B.commerce?.capability,product_url:ge.url||""}}).catch(le=>m?.(le)))},[ve,ke,Ue,w,m,be,t,Ke]),tr=z.useCallback(async(B,ge)=>{if(B.backendMessageId){Qe(de=>de.map(le=>le.id===B.id?{...le,feedback:ge}:le));try{await ve.sendFeedback({projectKey:t,subject:Ke,messageId:B.backendMessageId,rating:ge,metadata:{conversation_id:B.conversationId||Ue,locale:n,page:Wa(R)}})}catch(de){m?.(de instanceof Error?de:new Error("Feedback request failed"))}}},[ve,Ue,n,m,R,t,Qe,Ke]);return E.jsxs("div",{ref:Ne,className:Lt("akilio-root",ne),style:Me,"data-akilio-mode":Te?"inline":ht?"floating":rn?"side-panel":"drawer","data-akilio-color-mode":T,children:[!Te&&d==="default"&&E.jsx(qh,{label:F?C.launcher:C.title,onClick:Qn.toggleChat,showBranding:F}),!Te&&typeof d=="function"&&d(Qn),Zn&&vt&&E.jsx("button",{type:"button",className:"akilio-overlay","aria-label":C.close,onClick:()=>mt(!1)}),E.jsx(Uh,{ref:ue,open:vt,isDesktop:rn,inline:Te,colorMode:T,allowColorModeToggle:a,widgetAvailable:Ae,showBranding:F,showPoweredBy:j,locale:n,copy:{...C,description:Bt?`${C.description} ${C.configFailed}: ${Bt}`:C.description},messages:Le,streamingMessage:pt,loading:xt,loadingLabel:fe.message||(()=>{const B=fe.stage.toLowerCase();return B.includes("retriev")||B.includes("search")?C.searching:B.includes("ground")||B.includes("source")?C.reviewingSources:B.includes("valid")||B.includes("check")||B.includes("safety")?C.checkingAnswer:B.includes("answer")||B.includes("generat")||B.includes("prepar")?C.preparingAnswer:C.loading})(),consentDecision:Xn,consentGranted:Mt,requireConsent:Ot,privacyNotice:_n,privacyNoticeUrl:vn,onConsentDecision:jn,onClose:()=>mt(!1),onToggleColorMode:on,onClear:Sn,onSubmit:Jn,onDraftChange:St,onFeedback:tr,onProductClick:er,onSuggestion:B=>{Jn(B).catch(()=>{})}})]})}function Za(e){const t=e.styleIsolation??"shadow",n=(e.mode??"floating")!=="inline",r=z.useRef(null),[i,a]=z.useState(null);return z.useEffect(()=>{if(t!=="shadow"||!r.current){a(null);return}const o=r.current,s=o.shadowRoot??o.attachShadow({mode:"open"});if(n&&(o.style.position="fixed",o.style.inset="0",o.style.width="100vw",o.style.height="100dvh",o.style.margin="0",o.style.padding="0",o.style.border="0",o.style.background="transparent",o.style.pointerEvents="none",o.style.zIndex="2147483647",o.style.isolation="isolate",typeof o.showPopover=="function")){o.setAttribute("popover","manual");try{o.showPopover()}catch{o.removeAttribute("popover")}}let c=s.querySelector("style[data-akilio-styles]");c||(c=document.createElement("style"),c.setAttribute("data-akilio-styles",""),c.textContent=Ga,s.appendChild(c));let l=s.querySelector("[data-akilio-shadow-mount]");return l||(l=document.createElement("div"),l.setAttribute("data-akilio-shadow-mount",""),s.appendChild(l)),a(l),()=>{if(typeof o.hidePopover=="function")try{o.hidePopover()}catch{}o.removeAttribute("popover"),o.removeAttribute("style")}},[t,n]),t==="shadow"?E.jsx("div",{ref:r,"data-akilio-shadow-host":"true",children:i&&ns.createPortal(E.jsx(Ya,{...e}),i)}):E.jsxs(E.Fragment,{children:[t==="scoped"&&E.jsx("style",{"data-akilio-styles":!0,children:Ga}),E.jsx(Ya,{...e})]})}ut.AkilioClient=Ha,ut.AkilioWidget=Za,ut.EjibuWidget=Za,Object.defineProperty(ut,Symbol.toStringTag,{value:"Module"})}));