@hachther/akilio-widget 0.6.6 → 0.7.0

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,38 +1,38 @@
1
- (function(ft,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],w):(ft=typeof globalThis<"u"?globalThis:ft||self,w(ft.AkilioWidget={},ft.ReactJSXRuntime,ft.React,ft.ReactDOM))})(this,(function(ft,w,F,cs){"use strict";"use client";var gm=globalThis.process||{env:{NODE_ENV:"production"}},hm=globalThis;function bi(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=bi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ft(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bi(e))&&(r&&(r+=" "),r+=t);return r}function sr({className:e,primaryColor:t="#0F766E",style:n}){return w.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:[w.jsxs("g",{fill:"none",stroke:t,strokeWidth:"34",strokeLinecap:"round",strokeLinejoin:"round",children:[w.jsx("path",{d:"M60 244 L132 88 Q142 66 160 66 Q178 66 188 88 L260 244"}),w.jsx("path",{d:"M60 244 H108"})]}),w.jsx("circle",{cx:"160",cy:"226",r:"18",fill:t})]})}function us({className:e,primaryColor:t="#0F766E",secondaryColor:n="#0F1B3D",style:r}){return w.jsx("svg",{className:e,style:r,viewBox:"0 0 1000 320",xmlns:"http://www.w3.org/2000/svg",children:w.jsxs("g",{id:"Group",children:[w.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"}),w.jsx("path",{id:"path1",fill:"none",stroke:t,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 91 235 L 142 235"}),w.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"}),w.jsx("path",{id:"path3",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 62 L 365 238"}),w.jsx("path",{id:"path4",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 168 L 458 84"}),w.jsx("path",{id:"path5",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 398 139 L 468 238"}),w.jsx("path",{id:"path6",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 520 118 L 520 238"}),w.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"}),w.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"}),w.jsx("path",{id:"path9",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 710 118 L 710 238"}),w.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"}),w.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 Rn({variant:e="mark",className:t,style:n,primaryColor:r,secondaryColor:i}){return e==="wordmark"?w.jsx(us,{className:t,style:n,primaryColor:r,secondaryColor:i}):w.jsx(sr,{className:t,style:n,primaryColor:r})}function lr(e){return w.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:w.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 ds(e){return w.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:[w.jsx("path",{d:"M17.2 2.8 8.8 11.2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),w.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 ps(e){return w.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:w.jsx("path",{d:"m5.5 5.5 9 9M14.5 5.5l-9 9",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})})}function fs(e){return w.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:w.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 gs(e){return w.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:w.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 hs(e){return w.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:w.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 ms(e){return w.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:[w.jsx("circle",{cx:"10",cy:"10",r:"3.2",stroke:"currentColor",strokeWidth:"1.5"}),w.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 bs(e){return w.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:w.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"})})}const ks=F.forwardRef(function({loading:t,disabled:n,copy:r,onSubmit:i,onReviewConsent:a,onDraftChange:o,disabledMessage:s,showPoweredBy:l},c){const[d,u]=F.useState(""),f=F.useRef(""),p=F.useRef(null);F.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(()=>{})},E=b=>{b.key==="Enter"&&!b.shiftKey&&!b.nativeEvent.isComposing&&(b.preventDefault(),h(b))};return F.useImperativeHandle(c,()=>({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]),w.jsxs("form",{onSubmit:h,className:"akilio-composer",children:[w.jsxs("div",{className:"akilio-composer-box",children:[w.jsx("textarea",{ref:p,value:d,rows:1,onChange:b=>{f.current=b.target.value,u(b.target.value),o?.(b.target.value,!0)},onKeyDown:E,placeholder:r.placeholder,"aria-label":r.placeholder,disabled:n,title:n?s||r.privacyRequired:r.helper}),w.jsx("button",{type:"submit",disabled:t||n||!d.trim(),className:"akilio-composer-submit",title:t?r.loading:r.submit,children:w.jsx(ds,{color:"#FFF"})})]}),n&&a&&w.jsxs("div",{className:"akilio-composer-help",children:[s||r.privacyRequired," ",w.jsx("button",{type:"button",className:"akilio-privacy-review",onClick:a,children:r.privacyReview})]}),l&&w.jsxs("div",{className:"akilio-powered-by",children:[r.poweredBy," ",w.jsx("a",{href:"https://akilio-ai.com",children:"Akilio"}),"."," ",r.aiContentWarning]})]})});function ys({copy:e,onSuggestion:t,widgetAvailable:n,showBranding:r,primaryColor:i}){return w.jsxs("div",{className:"akilio-empty",children:[w.jsx("div",{className:"akilio-empty-icon",children:r?w.jsx(Rn,{variant:"mark",primaryColor:i}):w.jsx(lr,{})}),w.jsx("h3",{children:e.title}),w.jsx("p",{children:n?e.emptyState:e.widgetUnavailable}),w.jsx("div",{className:"akilio-suggestions",children:n&&e.suggestions.slice(0,4).map(a=>w.jsx("button",{type:"button",onClick:()=>t(a),children:a},a))})]})}function mm(){}function bm(){}function ws(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Es=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xs=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_s={};function ki(e,t){return(_s.jsx?xs:Es).test(e)}const vs=/[ \t\n\f\r]/g;function Ss(e){return typeof e=="object"?e.type==="text"?yi(e.value):!1:yi(e)}function yi(e){return e.replace(vs,"")===""}class pn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}pn.prototype.normal={},pn.prototype.property={},pn.prototype.space=void 0;function wi(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new pn(n,r,t)}function cr(e){return e.toLowerCase()}class je{constructor(t,n){this.attribute=n,this.property=t}}je.prototype.attribute="",je.prototype.booleanish=!1,je.prototype.boolean=!1,je.prototype.commaOrSpaceSeparated=!1,je.prototype.commaSeparated=!1,je.prototype.defined=!1,je.prototype.mustUseProperty=!1,je.prototype.number=!1,je.prototype.overloadedBoolean=!1,je.prototype.property="",je.prototype.spaceSeparated=!1,je.prototype.space=void 0;let Ns=0;const te=Ut(),Me=Ut(),ur=Ut(),I=Ut(),Se=Ut(),zt=Ut(),it=Ut();function Ut(){return 2**++Ns}const dr=Object.freeze(Object.defineProperty({__proto__:null,boolean:te,booleanish:Me,commaOrSpaceSeparated:it,commaSeparated:zt,number:I,overloadedBoolean:ur,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),pr=Object.keys(dr);class fr extends je{constructor(t,n,r,i){let a=-1;if(super(t,n),Ei(this,"space",i),typeof r=="number")for(;++a<pr.length;){const o=pr[a];Ei(this,pr[a],(r&dr[o])===dr[o])}}}fr.prototype.defined=!0;function Ei(e,t,n){n&&(e[t]=n)}function Qt(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 pn(t,n,e.space)}const xi=Qt({properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:Se,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:I,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:Se,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:Me,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 _i(e,t){return t in e?e[t]:t}function vi(e,t){return _i(e,t.toLowerCase())}const Ts=Qt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zt,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:te,allowPaymentRequest:te,allowUserMedia:te,alpha:te,alt:null,as:null,async:te,autoCapitalize:null,autoComplete:Se,autoFocus:te,autoPlay:te,blocking:Se,capture:null,charSet:null,checked:te,cite:null,className:Se,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:Me,controls:te,controlsList:Se,coords:I|zt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:te,defer:te,dir:null,dirName:null,disabled:te,download:ur,draggable:Me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:te,formTarget:null,headers:Se,height:I,hidden:ur,high:I,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:te,inputMode:null,integrity:null,is:null,isMap:te,itemId:null,itemProp:Se,itemRef:Se,itemScope:te,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:te,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:te,muted:te,name:null,nonce:null,noModule:te,noValidate:te,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:te,optimum:I,pattern:null,ping:Se,placeholder:null,playsInline:te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:te,referrerPolicy:null,rel:Se,required:te,reversed:te,rows:I,rowSpan:I,sandbox:Se,scope:null,scoped:te,seamless:te,selected:te,shadowRootClonable:te,shadowRootCustomElementRegistry:te,shadowRootDelegatesFocus:te,shadowRootMode:null,shadowRootSerializable:te,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:Me,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:te,useMap:null,value:Me,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,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:te,declare:te,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:te,noHref:te,noShade:te,noWrap:te,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:Me,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:te,disablePictureInPicture:te,disableRemotePlayback:te,exportParts:zt,part:Se,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:vi}),As=Qt({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:it,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:Se,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:te,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:zt,g2:zt,glyphName:zt,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:it,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:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:it,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:it,rev:it,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:it,requiredFeatures:it,requiredFonts:it,requiredFormats:it,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:it,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:it,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:it,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:_i}),Si=Qt({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()}}),Ni=Qt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vi}),Ti=Qt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Cs={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"},Is=/[A-Z]/g,Ai=/-[a-z]/g,Os=/^data[-\w.:]+$/i;function Ms(e,t){const n=cr(t);let r=t,i=je;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Os.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ai,Ls);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ai.test(a)){let o=a.replace(Is,Rs);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=fr}return new i(r,t)}function Rs(e){return"-"+e.toLowerCase()}function Ls(e){return e.charAt(1).toUpperCase()}const Ds=wi([xi,Ts,Si,Ni,Ti],"html"),gr=wi([xi,As,Si,Ni,Ti],"svg");function Ps(e){return e.join(" ").trim()}function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bs(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 Ci=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fs=/\n/g,zs=/^\s*/,Us=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,qs=/^:\s*/,$s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Hs=/^[;\s]*/,Gs=/^\s+|\s+$/g,Ws=`
2
- `,Ii="/",Oi="*",qt="",Ks="comment",Vs="declaration";function Ys(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(Fs);h&&(n+=h.length);var E=g.lastIndexOf(Ws);r=~E?g.length-E:r+g.length}function a(){var g={line:n,column:r};return function(h){return h.position=new o(g),c(),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 l(g){var h=g.exec(e);if(h){var E=h[0];return i(E),e=e.slice(E.length),h}}function c(){l(zs)}function d(g){var h;for(g=g||[];h=u();)h!==!1&&g.push(h);return g}function u(){var g=a();if(!(Ii!=e.charAt(0)||Oi!=e.charAt(1))){for(var h=2;qt!=e.charAt(h)&&(Oi!=e.charAt(h)||Ii!=e.charAt(h+1));)++h;if(h+=2,qt===e.charAt(h-1))return s("End of comment missing");var E=e.slice(2,h-2);return r+=2,i(E),e=e.slice(h),r+=2,g({type:Ks,comment:E})}}function f(){var g=a(),h=l(Us);if(h){if(u(),!l(qs))return s("property missing ':'");var E=l($s),b=g({type:Vs,property:Mi(h[0].replace(Ci,qt)),value:E?Mi(E[0].replace(Ci,qt)):qt});return l(Hs),b}}function p(){var g=[];d(g);for(var h;h=f();)h!==!1&&(g.push(h),d(g));return g}return c(),p()}function Mi(e){return e?e.replace(Gs,qt):qt}function Zs(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Ys(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 Xs=Bs(Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"})));var fn={},Ri;function Qs(){if(Ri)return fn;Ri=1,Object.defineProperty(fn,"__esModule",{value:!0}),fn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(c){return!c||n.test(c)||e.test(c)},o=function(c,d){return d.toUpperCase()},s=function(c,d){return"".concat(d,"-")},l=function(c,d){return d===void 0&&(d={}),a(c)?c:(c=c.toLowerCase(),d.reactCompat?c=c.replace(i,s):c=c.replace(r,s),c.replace(t,o))};return fn.camelCase=l,fn}var gn,Li;function js(){if(Li)return gn;Li=1;var e=gn&&gn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Xs),n=Qs();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(o[(0,n.camelCase)(s,a)]=l)}),o}return r.default=r,gn=r,gn}var Js=js();const el=hr(Js),Di=Pi("end"),mr=Pi("start");function Pi(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 tl(e){const t=mr(e),n=Di(e);if(t&&n)return{start:t,end:n}}function hn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Bi(e.position):"start"in e||"end"in e?Bi(e):"line"in e||"column"in e?br(e):""}function br(e){return Fi(e&&e.line)+":"+Fi(e&&e.column)}function Bi(e){return br(e&&e.start)+"-"+br(e&&e.end)}function Fi(e){return e&&typeof e=="number"?e:1}class Ue 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 l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.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=hn(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}}Ue.prototype.file="",Ue.prototype.name="",Ue.prototype.reason="",Ue.prototype.message="",Ue.prototype.stack="",Ue.prototype.column=void 0,Ue.prototype.line=void 0,Ue.prototype.ancestors=void 0,Ue.prototype.cause=void 0,Ue.prototype.fatal=void 0,Ue.prototype.place=void 0,Ue.prototype.ruleId=void 0,Ue.prototype.source=void 0;const kr={}.hasOwnProperty,nl=new Map,rl=/[A-Z]/g,il=new Set(["table","tbody","thead","tfoot","tr"]),ol=new Set(["td","th"]),zi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function al(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=gl(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=fl(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:Ds,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Ui(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Ui(e,t,n){if(t.type==="element")return sl(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ll(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ul(e,t,n);if(t.type==="mdxjsEsm")return cl(e,t);if(t.type==="root")return dl(e,t,n);if(t.type==="text")return pl(e,t)}function sl(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=$i(e,t.tagName,!1),o=hl(e,t);let s=wr(e,t);return il.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!Ss(l):!0})),qi(e,o,a,t),yr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ll(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)}mn(e,t.position)}function cl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);mn(e,t.position)}function ul(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:$i(e,t.name,!0),o=ml(e,t),s=wr(e,t);return qi(e,o,a,t),yr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function dl(e,t,n){const r={};return yr(r,wr(e,t)),e.create(t,e.Fragment,r,n)}function pl(e,t){return t.value}function qi(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 fl(e,t,n){return r;function r(i,a,o,s){const c=Array.isArray(o.children)?n:t;return s?c(a,o,s):c(a,o)}}function gl(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=mr(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function hl(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"&&ol.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 ml(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 mn(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 mn(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:nl;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=i.get(l)||0;o=l+"-"+c,i.set(l,c+1)}}const s=Ui(e,a,o);s!==void 0&&n.push(s)}return n}function bl(e,t,n){const r=Ms(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ws(n):Ps(n)),r.property==="style"){let i=typeof n=="object"?n:kl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=yl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Cs[r.property]||r.property:r.attribute,n]}}function kl(e,t){try{return el(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Ue("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=zi+"#cannot-parse-style-attribute",i}}function $i(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=ki(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=ki(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);mn(e)}function mn(e,t){const n=new Ue("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=zi+"#cannot-handle-mdx-estrees-without-createevaluater",n}function yl(e){const t={};let n;for(n in e)kr.call(e,n)&&(t[wl(n)]=e[n]);return t}function wl(e){let t=e.replace(rl,El);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function El(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"]},xl={};function xr(e,t){const n=xl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Hi(e,r,i)}function Hi(e,t,n){if(_l(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 Gi(e.children,t,n)}return Array.isArray(e)?Gi(e,t,n):""}function Gi(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Hi(e[i],t,n);return r.join("")}function _l(e){return!!(e&&typeof e=="object")}const Wi={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:"‌"},vl={}.hasOwnProperty;function _r(e){return vl.call(Wi,e)?Wi[e]:!1}function ot(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 at(e,t){return e.length>0?(ot(e,e.length,0,t),e):t}const Ki={}.hasOwnProperty;function Vi(e){const t={};let n=-1;for(;++n<e.length;)Sl(t,e[n]);return t}function Sl(e,t){let n;for(n in t){const i=(Ki.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Ki.call(i,o)||(i[o]=[]);const s=a[o];Nl(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Nl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ot(e,0,0,r)}function Yi(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 gt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ke=Rt(/[A-Za-z]/),qe=Rt(/[\dA-Za-z]/),Tl=Rt(/[#-'*+\--9=?A-Z^-~]/);function Ln(e){return e!==null&&(e<32||e===127)}const vr=Rt(/\d/),Al=Rt(/[\dA-Fa-f]/),Cl=Rt(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function Ne(e){return e!==null&&(e<0||e===32)}function pe(e){return e===-2||e===-1||e===32}const Dn=Rt(new RegExp("\\p{P}|\\p{S}","u")),$t=Rt(/\s/);function Rt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function jt(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&qe(e.charCodeAt(n+1))&&qe(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 me(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return pe(l)?(e.enter(n),s(l)):t(l)}function s(l){return pe(l)&&a++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Il={tokenize:Ol};function Ol(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"),me(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,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 Ml={tokenize:Rl},Zi={tokenize:Ll};function Rl(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,l,c)(v)}return c(v)}function l(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 U=O;for(;U<t.events.length;)t.events[U][1].end={...x},U++;return ot(t.events,R+1,0,t.events.slice(O)),t.events.length=U,c(v)}return s(v)}function c(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){E(e.exit("chunkFlow"),!0),b(0),e.consume(v);return}return V(v)?(e.consume(v),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(v),h)}function E(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 U=t.events.length;let G=U,H,_;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(H){_=t.events[G][1].end;break}H=!0}for(b(r),x=U;x<t.events.length;)t.events[x][1].end={..._},x++;ot(t.events,G+1,0,t.events.slice(U)),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 Ll(e,t,n){return me(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||Ne(e)||$t(e))return 1;if(Dn(e))return 2}function Pn(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:Dl,tokenize:Pl};function Dl(e,t){let n=-1,r,i,a,o,s,l,c,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;l=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};Xi(u,-l),Xi(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:u,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=at(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=at(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=at(c,Pn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=at(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=at(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,ot(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Pl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Jt(r);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const c=e.exit("attentionSequence"),d=Jt(l),u=!d||d===2&&i||n.includes(l),f=!i||i===2&&d||n.includes(r);return c._open=!!(a===42?u:u&&(i||!f)),c._close=!!(a===42?f:f&&(d||!u)),t(l)}}function Xi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Bl={name:"autolink",tokenize:Fl};function Fl(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 Ke(p)?(e.consume(p),o):p===64?n(p):c(p)}function o(p){return p===43||p===45||p===46||qe(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||qe(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(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||Ln(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),d):Tl(p)?(e.consume(p),c):n(p)}function d(p){return qe(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||qe(p))&&r++<63){const g=p===45?f:u;return e.consume(p),g}return n(p)}}const bn={partial:!0,tokenize:zl};function zl(e,t,n){return r;function r(a){return pe(a)?me(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||V(a)?t(a):n(a)}}const Qi={continuation:{tokenize:ql},exit:$l,name:"blockQuote",tokenize:Ul};function Ul(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 pe(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function ql(e,t,n){const r=this;return i;function i(o){return pe(o)?me(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 $l(e){e.exit("blockQuote")}const ji={name:"characterEscape",tokenize:Hl};function Hl(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 Cl(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Ji={name:"characterReference",tokenize:Gl};function Gl(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"),l}function l(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=qe,d(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Al,d):(e.enter("characterReferenceValue"),a=7,o=vr,d(u))}function d(u){if(u===59&&i){const f=e.exit("characterReferenceValue");return o===qe&&!_r(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 eo={partial:!0,tokenize:Kl},to={concrete:!0,name:"codeFenced",tokenize:Wl};function Wl(e,t,n){const r=this,i={partial:!0,tokenize:R};let a=0,o=0,s;return l;function l(x){return c(x)}function c(x){const U=r.events[r.events.length-1];return a=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[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"),pe(x)?me(e,u,"whitespace")(x):u(x))}function u(x){return x===null||V(x)?(e.exit("codeFencedFence"),r.interrupt?t(x):e.check(eo,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)):pe(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),me(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,E)(x)}function E(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),b}function b(x){return a>0&&pe(x)?me(e,N,"linePrefix",a+1)(x):N(x)}function N(x){return x===null||V(x)?e.check(eo,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,U,G){let H=0;return _;function _(q){return x.enter("lineEnding"),x.consume(q),x.exit("lineEnding"),B}function B(q){return x.enter("codeFencedFence"),pe(q)?me(x,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):P(q)}function P(q){return q===s?(x.enter("codeFencedFenceSequence"),J(q)):G(q)}function J(q){return q===s?(H++,x.consume(q),J):H>=o?(x.exit("codeFencedFenceSequence"),pe(q)?me(x,Z,"whitespace")(q):Z(q)):G(q)}function Z(q){return q===null||V(q)?(x.exit("codeFencedFence"),U(q)):G(q)}}}function Kl(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 Nr={name:"codeIndented",tokenize:Yl},Vl={partial:!0,tokenize:Zl};function Yl(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),me(e,a,"linePrefix",5)(c)}function a(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):V(c)?e.attempt(Vl,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||V(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function Zl(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):me(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 Xl={name:"codeText",previous:jl,resolve:Ql,tokenize:Jl};function Ql(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 jl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Jl(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"),l(u))}function l(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),l):u===96?(a=e.enter("codeTextSequence"),i=0,d(u)):V(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||V(u)?(e.exit("codeTextData"),l(u)):(e.consume(u),c)}function d(u){return u===96?(e.consume(u),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(a.type="codeTextData",c(u))}}class ec{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&&kn(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),kn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),kn(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);kn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);kn(this.left,n.reverse())}}}function kn(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 no(e){const t={};let n=-1,r,i,a,o,s,l,c;const d=new ec(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"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,tc(d,n)),n=t[n],c=!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 ot(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function tc(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,l=[],c={};let d,u,f=-1,p=n,g=0,h=0;const E=[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,E.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):E.pop(),f=E.length;f--;){const b=s.slice(E[f],E[f+1]),N=a.pop();l.push([N,N+b.length-1]),e.splice(N,2,b)}for(l.reverse(),f=-1;++f<l.length;)c[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return c}const nc={resolve:ic,tokenize:oc},rc={partial:!0,tokenize:ac};function ic(e){return no(e),e}function oc(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(rc,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 ac(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),me(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 ro(e,t,n,r,i,a,o,s,l){const c=l||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||Ln(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||Ne(b))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(b)):d<c&&b===40?(e.consume(b),d++,h):b===41?(e.consume(b),d--,h):b===null||b===32||b===40||Ln(b)?n(b):(e.consume(b),b===92?E:h)}function E(b){return b===40||b===41||b===92?(e.consume(b),h):h(b)}}function io(e,t,n,r,i,a){const o=this;let s=0,l;return c;function c(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&&!l||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),l||(l=!pe(p)),p===92?f:u)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,u):u(p)}}function oo(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,l):n(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),l(o)):f===null?n(f):V(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),me(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===o||f===null||V(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?u:d)}function u(f){return f===o||f===92?(e.consume(f),d):d(f)}}function yn(e,t){let n;return r;function r(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):pe(i)?me(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const sc={name:"definition",tokenize:cc},lc={partial:!0,tokenize:uc};function cc(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return io.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Ne(p)?yn(e,c)(p):c(p)}function c(p){return ro(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(lc,u,u)(p)}function u(p){return pe(p)?me(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 uc(e,t,n){return r;function r(s){return Ne(s)?yn(e,i)(s):n(s)}function i(s){return oo(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return pe(s)?me(e,o,"whitespace")(s):o(s)}function o(s){return s===null||V(s)?t(s):n(s)}}const dc={name:"hardBreakEscape",tokenize:pc};function pc(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 fc={name:"headingAtx",resolve:gc,tokenize:hc};function gc(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"},ot(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function hc(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||Ne(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||V(d)?(e.exit("atxHeading"),t(d)):pe(d)?me(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||Ne(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const mc=["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"],ao=["pre","script","style","textarea"],bc={concrete:!0,name:"htmlFlow",resolveTo:wc,tokenize:Ec},kc={partial:!0,tokenize:_c},yc={partial:!0,tokenize:xc};function wc(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 Ec(e,t,n){const r=this;let i,a,o,s,l;return c;function c(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):Ke(y)?(e.consume(y),o=String.fromCharCode(y),E):n(y)}function f(y){return y===45?(e.consume(y),i=2,p):y===91?(e.consume(y),i=5,s=0,g):Ke(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 Te="CDATA[";return y===Te.charCodeAt(s++)?(e.consume(y),s===Te.length?r.interrupt?t:P:g):n(y)}function h(y){return Ke(y)?(e.consume(y),o=String.fromCharCode(y),E):n(y)}function E(y){if(y===null||y===47||y===62||Ne(y)){const Te=y===47,et=o.toLowerCase();return!Te&&!a&&ao.includes(et)?(i=1,r.interrupt?t(y):P(y)):mc.includes(o.toLowerCase())?(i=6,Te?(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||qe(y)?(e.consume(y),o+=String.fromCharCode(y),E):n(y)}function b(y){return y===62?(e.consume(y),r.interrupt?t:P):n(y)}function N(y){return pe(y)?(e.consume(y),N):_(y)}function v(y){return y===47?(e.consume(y),_):y===58||y===95||Ke(y)?(e.consume(y),O):pe(y)?(e.consume(y),v):_(y)}function O(y){return y===45||y===46||y===58||y===95||qe(y)?(e.consume(y),O):R(y)}function R(y){return y===61?(e.consume(y),x):pe(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),l=y,U):pe(y)?(e.consume(y),x):G(y)}function U(y){return y===l?(e.consume(y),l=null,H):y===null||V(y)?n(y):(e.consume(y),U)}function G(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||Ne(y)?R(y):(e.consume(y),G)}function H(y){return y===47||y===62||pe(y)?v(y):n(y)}function _(y){return y===62?(e.consume(y),B):n(y)}function B(y){return y===null||V(y)?P(y):pe(y)?(e.consume(y),B):n(y)}function P(y){return y===45&&i===2?(e.consume(y),oe):y===60&&i===1?(e.consume(y),ae):y===62&&i===4?(e.consume(y),Ee):y===63&&i===3?(e.consume(y),m):y===93&&i===5?(e.consume(y),ke):V(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(kc,de,J)(y)):y===null||V(y)?(e.exit("htmlFlowData"),J(y)):(e.consume(y),P)}function J(y){return e.check(yc,Z,de)(y)}function Z(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),q}function q(y){return y===null||V(y)?J(y):(e.enter("htmlFlowData"),P(y))}function oe(y){return y===45?(e.consume(y),m):P(y)}function ae(y){return y===47?(e.consume(y),o="",Q):P(y)}function Q(y){if(y===62){const Te=o.toLowerCase();return ao.includes(Te)?(e.consume(y),Ee):P(y)}return Ke(y)&&o.length<8?(e.consume(y),o+=String.fromCharCode(y),Q):P(y)}function ke(y){return y===93?(e.consume(y),m):P(y)}function m(y){return y===62?(e.consume(y),Ee):y===45&&i===2?(e.consume(y),m):P(y)}function Ee(y){return y===null||V(y)?(e.exit("htmlFlowData"),de(y)):(e.consume(y),Ee)}function de(y){return e.exit("htmlFlow"),t(y)}}function xc(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 _c(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(bn,t,n)}}const vc={name:"htmlText",tokenize:Sc};function Sc(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),l}function l(m){return m===33?(e.consume(m),c):m===47?(e.consume(m),R):m===63?(e.consume(m),v):Ke(m)?(e.consume(m),G):n(m)}function c(m){return m===45?(e.consume(m),d):m===91?(e.consume(m),a=0,g):Ke(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,ae(m)):(e.consume(m),u)}function f(m){return m===45?(e.consume(m),p):u(m)}function p(m){return m===62?oe(m):m===45?f(m):u(m)}function g(m){const Ee="CDATA[";return m===Ee.charCodeAt(a++)?(e.consume(m),a===Ee.length?h:g):n(m)}function h(m){return m===null?n(m):m===93?(e.consume(m),E):V(m)?(o=h,ae(m)):(e.consume(m),h)}function E(m){return m===93?(e.consume(m),b):h(m)}function b(m){return m===62?oe(m):m===93?(e.consume(m),b):h(m)}function N(m){return m===null||m===62?oe(m):V(m)?(o=N,ae(m)):(e.consume(m),N)}function v(m){return m===null?n(m):m===63?(e.consume(m),O):V(m)?(o=v,ae(m)):(e.consume(m),v)}function O(m){return m===62?oe(m):v(m)}function R(m){return Ke(m)?(e.consume(m),x):n(m)}function x(m){return m===45||qe(m)?(e.consume(m),x):U(m)}function U(m){return V(m)?(o=U,ae(m)):pe(m)?(e.consume(m),U):oe(m)}function G(m){return m===45||qe(m)?(e.consume(m),G):m===47||m===62||Ne(m)?H(m):n(m)}function H(m){return m===47?(e.consume(m),oe):m===58||m===95||Ke(m)?(e.consume(m),_):V(m)?(o=H,ae(m)):pe(m)?(e.consume(m),H):oe(m)}function _(m){return m===45||m===46||m===58||m===95||qe(m)?(e.consume(m),_):B(m)}function B(m){return m===61?(e.consume(m),P):V(m)?(o=B,ae(m)):pe(m)?(e.consume(m),B):H(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,J):V(m)?(o=P,ae(m)):pe(m)?(e.consume(m),P):(e.consume(m),Z)}function J(m){return m===i?(e.consume(m),i=void 0,q):m===null?n(m):V(m)?(o=J,ae(m)):(e.consume(m),J)}function Z(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||Ne(m)?H(m):(e.consume(m),Z)}function q(m){return m===47||m===62||Ne(m)?H(m):n(m)}function oe(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function ae(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Q}function Q(m){return pe(m)?me(e,ke,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ke(m)}function ke(m){return e.enter("htmlTextData"),o(m)}}const Tr={name:"labelEnd",resolveAll:Cc,resolveTo:Ic,tokenize:Oc},Nc={tokenize:Mc},Tc={tokenize:Rc},Ac={tokenize:Lc};function Cc(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&&ot(e,0,e.length,n),e}function Ic(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 l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={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",l,t],["enter",c,t]],s=at(s,e.slice(a+1,a+r+3)),s=at(s,[["enter",d,t]]),s=at(s,Pn(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=at(s,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),s=at(s,e.slice(o+1)),s=at(s,[["exit",l,t]]),ot(e,a,e.length,s),e}function Oc(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(gt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Nc,d,o?d:u)(f):f===91?e.attempt(Tc,d,o?c:u)(f):o?d(f):u(f)}function c(f){return e.attempt(Ac,d,u)(f)}function d(f){return t(f)}function u(f){return a._balanced=!0,n(f)}}function Mc(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 Ne(u)?yn(e,a)(u):a(u)}function a(u){return u===41?d(u):ro(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return Ne(u)?yn(e,l)(u):d(u)}function s(u){return n(u)}function l(u){return u===34||u===39||u===40?oo(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):d(u)}function c(u){return Ne(u)?yn(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 Rc(e,t,n){const r=this;return i;function i(s){return io.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function Lc(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 Dc={name:"labelStartImage",resolveAll:Tr.resolveAll,tokenize:Pc};function Pc(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 Bc={name:"labelStartLink",resolveAll:Tr.resolveAll,tokenize:Fc};function Fc(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 Ar={name:"lineEnding",tokenize:zc};function zc(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),me(e,t,"linePrefix")}}const Bn={name:"thematicBreak",tokenize:Uc};function Uc(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||V(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),pe(c)?me(e,s,"whitespace")(c):s(c))}}const Je={continuation:{tokenize:Gc},exit:Kc,name:"list",tokenize:Hc},qc={partial:!0,tokenize:Vc},$c={partial:!0,tokenize:Wc};function Hc(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:vr(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(Bn,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return vr(p)&&++o<10?(e.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(bn,r.interrupt?n:d,e.attempt(qc,f,u))}function d(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function u(p){return pe(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 Gc(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(bn,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,me(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!pe(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($c,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,me(e,e.attempt(Je,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Wc(e,t,n){const r=this;return me(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 Kc(e){e.exit(this.containerState.type)}function Vc(e,t,n){const r=this;return me(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!pe(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const so={name:"setextUnderline",resolveTo:Yc,tokenize:Zc};function Yc(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 Zc(e,t,n){const r=this;let i;return a;function a(c){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=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),pe(c)?me(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||V(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Xc={tokenize:Qc};function Qc(e){const t=this,n=e.attempt(bn,r,e.attempt(this.parser.constructs.flowInitial,i,me(e,e.attempt(this.parser.constructs.flow,i,e.attempt(nc,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 jc={resolveAll:co()},Jc=lo("string"),eu=lo("text");function lo(e){return{resolveAll:co(e==="text"?tu: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 c(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function c(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 co(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 tu(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,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)l=!0,s++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||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={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const nu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:sc},disable:{null:[]},document:{42:Je,43:Je,45:Je,48:Je,49:Je,50:Je,51:Je,52:Je,53:Je,54:Je,55:Je,56:Je,57:Je,62:Qi},flow:{35:fc,42:Bn,45:[so,Bn],60:bc,61:so,95:Bn,96:to,126:to},flowInitial:{[-2]:Nr,[-1]:Nr,32:Nr},insideSpan:{null:[Sr,jc]},string:{38:Ji,92:ji},text:{[-5]:Ar,[-4]:Ar,[-3]:Ar,33:Dc,38:Ji,42:Sr,60:[Bl,vc],91:Bc,92:[dc,ji],93:Tr,95:Sr,96:Xl}},Symbol.toStringTag,{value:"Module"}));function ru(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 l={attempt:U(R),check:U(x),consume:N,enter:v,exit:O,interrupt:U(x,{interrupt:!0})},c={code:null,containerState:{},defineSkip:h,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:u};let d=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function u(B){return o=at(o,B),E(),o[o.length-1]!==null?[]:(G(t,0),c.events=Pn(a,c.events,c),c.events)}function f(B,P){return ou(p(B),P)}function p(B){return iu(o,B)}function g(){const{_bufferIndex:B,_index:P,line:J,column:Z,offset:q}=r;return{_bufferIndex:B,_index:P,line:J,column:Z,offset:q}}function h(B){i[B.line]=B.column,_()}function E(){let B;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<P.length;)b(P.charCodeAt(r._bufferIndex));else b(P)}}function b(B){d=d(B)}function N(B){V(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,_()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=B}function v(B,P){const J=P||{};return J.type=B,J.start=g(),c.events.push(["enter",J,c]),s.push(J),J}function O(B){const P=s.pop();return P.end=g(),c.events.push(["exit",P,c]),P}function R(B,P){G(B,P.from)}function x(B,P){P.restore()}function U(B,P){return J;function J(Z,q,oe){let ae,Q,ke,m;return Array.isArray(Z)?de(Z):"tokenize"in Z?de([Z]):Ee(Z);function Ee(fe){return lt;function lt(tt){const ht=tt!==null&&fe[tt],He=tt!==null&&fe.null,Ie=[...Array.isArray(ht)?ht:ht?[ht]:[],...Array.isArray(He)?He:He?[He]:[]];return de(Ie)(tt)}}function de(fe){return ae=fe,Q=0,fe.length===0?oe:y(fe[Q])}function y(fe){return lt;function lt(tt){return m=H(),ke=fe,fe.partial||(c.currentConstruct=fe),fe.name&&c.parser.constructs.disable.null.includes(fe.name)?et():fe.tokenize.call(P?Object.assign(Object.create(c),P):c,l,Te,et)(tt)}}function Te(fe){return B(ke,m),q}function et(fe){return m.restore(),++Q<ae.length?y(ae[Q]):oe}}}function G(B,P){B.resolveAll&&!a.includes(B)&&a.push(B),B.resolve&&ot(c.events,P,c.events.length-P,B.resolve(c.events.slice(P),c)),B.resolveTo&&(c.events=B.resolveTo(c.events,c))}function H(){const B=g(),P=c.previous,J=c.currentConstruct,Z=c.events.length,q=Array.from(s);return{from:Z,restore:oe};function oe(){r=B,c.previous=P,c.currentConstruct=J,c.events.length=Z,s=q,_()}}function _(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function iu(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 ou(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(mt,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],m):(mt=typeof globalThis<"u"?globalThis:mt||self,m(mt.AkilioWidget={},mt.ReactJSXRuntime,mt.React,mt.ReactDOM))})(this,(function(mt,m,M,fs){"use strict";"use client";var xm=globalThis.process||{env:{NODE_ENV:"production"}},Em=globalThis;function _i(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=_i(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_i(e))&&(r&&(r+=" "),r+=t);return r}function gr({className:e,primaryColor:t="#0F766E",style:n}){return m.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:[m.jsxs("g",{fill:"none",stroke:t,strokeWidth:"34",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M60 244 L132 88 Q142 66 160 66 Q178 66 188 88 L260 244"}),m.jsx("path",{d:"M60 244 H108"})]}),m.jsx("circle",{cx:"160",cy:"226",r:"18",fill:t})]})}function gs({className:e,primaryColor:t="#0F766E",secondaryColor:n="#0F1B3D",style:r}){return m.jsx("svg",{className:e,style:r,viewBox:"0 0 1000 320",xmlns:"http://www.w3.org/2000/svg",children:m.jsxs("g",{id:"Group",children:[m.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"}),m.jsx("path",{id:"path1",fill:"none",stroke:t,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 91 235 L 142 235"}),m.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"}),m.jsx("path",{id:"path3",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 62 L 365 238"}),m.jsx("path",{id:"path4",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 365 168 L 458 84"}),m.jsx("path",{id:"path5",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 398 139 L 468 238"}),m.jsx("path",{id:"path6",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 520 118 L 520 238"}),m.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"}),m.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"}),m.jsx("path",{id:"path9",fill:"none",stroke:n,strokeWidth:"30",strokeLinecap:"round",strokeLinejoin:"round",d:"M 710 118 L 710 238"}),m.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"}),m.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 Bn({variant:e="mark",className:t,style:n,primaryColor:r,secondaryColor:i}){return e==="wordmark"?m.jsx(gs,{className:t,style:n,primaryColor:r,secondaryColor:i}):m.jsx(gr,{className:t,style:n,primaryColor:r})}function hr(e){return m.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:m.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 vi(e){return m.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:[m.jsx("path",{d:"M17.2 2.8 8.8 11.2",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"}),m.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 hs(e){return m.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:m.jsx("path",{d:"m5.5 5.5 9 9M14.5 5.5l-9 9",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})})}function ms(e){return m.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:m.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 bs(e){return m.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:m.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 ks(e){return m.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:m.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 ys(e){return m.jsxs("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:[m.jsx("circle",{cx:"10",cy:"10",r:"3.2",stroke:"currentColor",strokeWidth:"1.5"}),m.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 ws(e){return m.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",...e,children:m.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"})})}const xs=M.forwardRef(function({loading:t,disabled:n,copy:r,onSubmit:i,onReviewConsent:a,onDraftChange:o,disabledMessage:s,showPoweredBy:l,slug:c},d){const[u,f]=M.useState(""),p=M.useRef(""),g=M.useRef(null);M.useLayoutEffect(()=>{const E=g.current;if(!E)return;E.style.height="auto";const S=Math.max(48,Math.min(E.scrollHeight,148));E.style.height=`${S}px`,E.style.overflowY=E.scrollHeight>148?"auto":"hidden"},[u]);const h=async()=>{const E=p.current.trim();if(!E)throw new Error("EMPTY_DRAFT");if(t)throw new Error("BUSY");if(n)throw new Error("INVALID_QUESTION");return f(""),p.current="",o?.("",!1),i(E)},x=E=>{E.preventDefault(),h().catch(()=>{})},w=E=>{E.key==="Enter"&&!E.shiftKey&&!E.nativeEvent.isComposing&&(E.preventDefault(),x(E))};return M.useImperativeHandle(d,()=>({getDraft:()=>p.current,setDraft:(E,S)=>{const I=S?.clearExisting===!1?`${p.current}${E}`:E;p.current=I,f(I),o?.(I,!1),S?.focus&&window.setTimeout(()=>g.current?.focus(),0)},clearDraft:()=>{p.current="",f(""),o?.("",!1)},focus:()=>g.current?.focus(),submit:h}),[o,i,u,t,n]),m.jsxs("form",{onSubmit:x,className:"akilio-composer",children:[m.jsxs("div",{className:"akilio-composer-box",children:[m.jsx("textarea",{ref:g,value:u,rows:1,onChange:E=>{p.current=E.target.value,f(E.target.value),o?.(E.target.value,!0)},onKeyDown:w,placeholder:r.placeholder,"aria-label":r.placeholder,disabled:n,title:n?s||r.privacyRequired:r.helper}),m.jsx("button",{type:"submit",disabled:t||n||!u.trim(),className:"akilio-composer-submit",title:t?r.loading:r.submit,children:m.jsx(vi,{color:"#FFF"})})]}),n&&a&&m.jsxs("div",{className:"akilio-composer-help",children:[s||r.privacyRequired," ",m.jsx("button",{type:"button",className:"akilio-privacy-review",onClick:a,children:r.privacyReview})]}),l&&m.jsxs("div",{className:"akilio-powered-by",children:[r.poweredBy," ",m.jsx("a",{href:`https://akilio-ai.com?utm_medium=akilio_widget&utm_source=${c}`,children:"Akilio"}),"."," ",r.aiContentWarning]})]})});function Es({copy:e,onSuggestion:t,widgetAvailable:n,showBranding:r,primaryColor:i,intentActions:a=[],onIntentAction:o}){return m.jsxs("div",{className:"akilio-empty",children:[m.jsx("div",{className:"akilio-empty-icon",children:r?m.jsx(Bn,{variant:"mark",primaryColor:i}):m.jsx(hr,{})}),m.jsx("h3",{children:e.title}),m.jsx("p",{children:n?e.emptyState:e.widgetUnavailable}),m.jsxs("div",{className:"akilio-suggestions",children:[n&&e.suggestions.slice(0,4).map(s=>m.jsx("button",{type:"button",onClick:()=>t(s),children:s},s)),n&&a.map(s=>m.jsx("button",{type:"button","data-akilio-intent":s.intent,onClick:()=>o(s.intent,s.label),children:s.label},s.intent))]})]})}function _m(){}function vm(){}function _s(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const vs=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ss=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ns={};function Si(e,t){return(Ns.jsx?Ss:vs).test(e)}const Ts=/[ \t\n\f\r]/g;function As(e){return typeof e=="object"?e.type==="text"?Ni(e.value):!1:Ni(e)}function Ni(e){return e.replace(Ts,"")===""}class gn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}gn.prototype.normal={},gn.prototype.property={},gn.prototype.space=void 0;function Ti(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new gn(n,r,t)}function mr(e){return e.toLowerCase()}class rt{constructor(t,n){this.attribute=n,this.property=t}}rt.prototype.attribute="",rt.prototype.booleanish=!1,rt.prototype.boolean=!1,rt.prototype.commaOrSpaceSeparated=!1,rt.prototype.commaSeparated=!1,rt.prototype.defined=!1,rt.prototype.mustUseProperty=!1,rt.prototype.number=!1,rt.prototype.overloadedBoolean=!1,rt.prototype.property="",rt.prototype.spaceSeparated=!1,rt.prototype.space=void 0;let Cs=0;const ne=Ht(),Pe=Ht(),br=Ht(),O=Ht(),Ne=Ht(),$t=Ht(),at=Ht();function Ht(){return 2**++Cs}const kr=Object.freeze(Object.defineProperty({__proto__:null,boolean:ne,booleanish:Pe,commaOrSpaceSeparated:at,commaSeparated:$t,number:O,overloadedBoolean:br,spaceSeparated:Ne},Symbol.toStringTag,{value:"Module"})),yr=Object.keys(kr);class wr extends rt{constructor(t,n,r,i){let a=-1;if(super(t,n),Ai(this,"space",i),typeof r=="number")for(;++a<yr.length;){const o=yr[a];Ai(this,yr[a],(r&kr[o])===kr[o])}}}wr.prototype.defined=!0;function Ai(e,t,n){n&&(e[t]=n)}function tn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new wr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[mr(r)]=r,n[mr(a.attribute)]=r}return new gn(t,n,e.space)}const Ci=tn({properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:Ne,ariaCurrent:null,ariaDescribedBy:Ne,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:Ne,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:Ne,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ne,ariaLevel:O,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:Ne,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:Ne,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:Pe,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ii(e,t){return t in e?e[t]:t}function Oi(e,t){return Ii(e,t.toLowerCase())}const Is=tn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$t,acceptCharset:Ne,accessKey:Ne,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alpha:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:Ne,autoFocus:ne,autoPlay:ne,blocking:Ne,capture:null,charSet:null,checked:ne,cite:null,className:Ne,closedBy:null,colorSpace:null,cols:O,colSpan:O,command:null,commandFor:null,content:null,contentEditable:Pe,controls:ne,controlsList:Ne,coords:O|$t,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:br,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:Ne,height:O,hidden:br,high:O,href:null,hrefLang:null,htmlFor:Ne,httpEquiv:Ne,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:Ne,itemRef:Ne,itemScope:ne,itemType:Ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,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:ne,optimum:O,pattern:null,ping:Ne,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:Ne,required:ne,reversed:ne,rows:O,rowSpan:O,sandbox:Ne,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootCustomElementRegistry:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shadowRootSerializable:ne,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:Pe,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ne,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:ne,disablePictureInPicture:ne,disableRemotePlayback:ne,exportParts:$t,part:Ne,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:Oi}),Os=tn({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:at,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:Ne,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:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,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:$t,g2:$t,glyphName:$t,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:at,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,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:O,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:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:at,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:at,rev:at,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:at,requiredFeatures:at,requiredFonts:at,requiredFormats:at,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:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:at,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:at,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:at,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ii}),Mi=tn({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()}}),Li=tn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Oi}),Di=tn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ms={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"},Ls=/[A-Z]/g,Ri=/-[a-z]/g,Ds=/^data[-\w.:]+$/i;function Rs(e,t){const n=mr(t);let r=t,i=rt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ds.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Ri,Bs);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Ri.test(a)){let o=a.replace(Ls,Ps);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=wr}return new i(r,t)}function Ps(e){return"-"+e.toLowerCase()}function Bs(e){return e.charAt(1).toUpperCase()}const Fs=Ti([Ci,Is,Mi,Li,Di],"html"),xr=Ti([Ci,Os,Mi,Li,Di],"svg");function zs(e){return e.join(" ").trim()}function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Us(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 Pi=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,qs=/\n/g,$s=/^\s*/,Hs=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Gs=/^:\s*/,Ws=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Vs=/^[;\s]*/,Ks=/^\s+|\s+$/g,Ys=`
2
+ `,Bi="/",Fi="*",Gt="",Zs="comment",Xs="declaration";function Qs(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(qs);h&&(n+=h.length);var x=g.lastIndexOf(Ys);r=~x?g.length-x:r+g.length}function a(){var g={line:n,column:r};return function(h){return h.position=new o(g),c(),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 l(g){var h=g.exec(e);if(h){var x=h[0];return i(x),e=e.slice(x.length),h}}function c(){l($s)}function d(g){var h;for(g=g||[];h=u();)h!==!1&&g.push(h);return g}function u(){var g=a();if(!(Bi!=e.charAt(0)||Fi!=e.charAt(1))){for(var h=2;Gt!=e.charAt(h)&&(Fi!=e.charAt(h)||Bi!=e.charAt(h+1));)++h;if(h+=2,Gt===e.charAt(h-1))return s("End of comment missing");var x=e.slice(2,h-2);return r+=2,i(x),e=e.slice(h),r+=2,g({type:Zs,comment:x})}}function f(){var g=a(),h=l(Hs);if(h){if(u(),!l(Gs))return s("property missing ':'");var x=l(Ws),w=g({type:Xs,property:zi(h[0].replace(Pi,Gt)),value:x?zi(x[0].replace(Pi,Gt)):Gt});return l(Vs),w}}function p(){var g=[];d(g);for(var h;h=f();)h!==!1&&(g.push(h),d(g));return g}return c(),p()}function zi(e){return e?e.replace(Ks,Gt):Gt}function js(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Qs(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 Js=Us(Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})));var hn={},Ui;function el(){if(Ui)return hn;Ui=1,Object.defineProperty(hn,"__esModule",{value:!0}),hn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(c){return!c||n.test(c)||e.test(c)},o=function(c,d){return d.toUpperCase()},s=function(c,d){return"".concat(d,"-")},l=function(c,d){return d===void 0&&(d={}),a(c)?c:(c=c.toLowerCase(),d.reactCompat?c=c.replace(i,s):c=c.replace(r,s),c.replace(t,o))};return hn.camelCase=l,hn}var mn,qi;function tl(){if(qi)return mn;qi=1;var e=mn&&mn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Js),n=el();function r(i,a){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(o[(0,n.camelCase)(s,a)]=l)}),o}return r.default=r,mn=r,mn}var nl=tl();const rl=Er(nl),$i=Hi("end"),_r=Hi("start");function Hi(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 il(e){const t=_r(e),n=$i(e);if(t&&n)return{start:t,end:n}}function bn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Gi(e.position):"start"in e||"end"in e?Gi(e):"line"in e||"column"in e?vr(e):""}function vr(e){return Wi(e&&e.line)+":"+Wi(e&&e.column)}function Gi(e){return vr(e&&e.start)+"-"+vr(e&&e.end)}function Wi(e){return e&&typeof e=="number"?e:1}class We 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 l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.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=bn(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}}We.prototype.file="",We.prototype.name="",We.prototype.reason="",We.prototype.message="",We.prototype.stack="",We.prototype.column=void 0,We.prototype.line=void 0,We.prototype.ancestors=void 0,We.prototype.cause=void 0,We.prototype.fatal=void 0,We.prototype.place=void 0,We.prototype.ruleId=void 0,We.prototype.source=void 0;const Sr={}.hasOwnProperty,ol=new Map,al=/[A-Z]/g,sl=new Set(["table","tbody","thead","tfoot","tr"]),ll=new Set(["td","th"]),Vi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function cl(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=bl(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=ml(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"?xr:Fs,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Ki(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Ki(e,t,n){if(t.type==="element")return ul(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return dl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return fl(e,t,n);if(t.type==="mdxjsEsm")return pl(e,t);if(t.type==="root")return gl(e,t,n);if(t.type==="text")return hl(e,t)}function ul(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=xr,e.schema=i),e.ancestors.push(t);const a=Zi(e,t.tagName,!1),o=kl(e,t);let s=Tr(e,t);return sl.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!As(l):!0})),Yi(e,o,a,t),Nr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function dl(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)}kn(e,t.position)}function pl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);kn(e,t.position)}function fl(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=xr,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Zi(e,t.name,!0),o=yl(e,t),s=Tr(e,t);return Yi(e,o,a,t),Nr(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function gl(e,t,n){const r={};return Nr(r,Tr(e,t)),e.create(t,e.Fragment,r,n)}function hl(e,t){return t.value}function Yi(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Nr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ml(e,t,n){return r;function r(i,a,o,s){const c=Array.isArray(o.children)?n:t;return s?c(a,o,s):c(a,o)}}function bl(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=_r(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function kl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Sr.call(t.properties,i)){const a=wl(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&ll.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 yl(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 kn(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 kn(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Tr(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ol;for(;++r<t.children.length;){const a=t.children[r];let o;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=i.get(l)||0;o=l+"-"+c,i.set(l,c+1)}}const s=Ki(e,a,o);s!==void 0&&n.push(s)}return n}function wl(e,t,n){const r=Rs(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?_s(n):zs(n)),r.property==="style"){let i=typeof n=="object"?n:xl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=El(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ms[r.property]||r.property:r.attribute,n]}}function xl(e,t){try{return rl(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new We("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=Vi+"#cannot-parse-style-attribute",i}}function Zi(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=Si(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=Si(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Sr.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);kn(e)}function kn(e,t){const n=new We("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=Vi+"#cannot-handle-mdx-estrees-without-createevaluater",n}function El(e){const t={};let n;for(n in e)Sr.call(e,n)&&(t[_l(n)]=e[n]);return t}function _l(e){let t=e.replace(al,vl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function vl(e){return"-"+e.toLowerCase()}const Ar={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"]},Sl={};function Cr(e,t){const n=Sl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Xi(e,r,i)}function Xi(e,t,n){if(Nl(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 Qi(e.children,t,n)}return Array.isArray(e)?Qi(e,t,n):""}function Qi(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Xi(e[i],t,n);return r.join("")}function Nl(e){return!!(e&&typeof e=="object")}const ji={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:"‌"},Tl={}.hasOwnProperty;function Ir(e){return Tl.call(ji,e)?ji[e]:!1}function st(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 ut(e,t){return e.length>0?(st(e,e.length,0,t),e):t}const Ji={}.hasOwnProperty;function eo(e){const t={};let n=-1;for(;++n<e.length;)Al(t,e[n]);return t}function Al(e,t){let n;for(n in t){const i=(Ji.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let o;if(a)for(o in a){Ji.call(i,o)||(i[o]=[]);const s=a[o];Cl(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Cl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);st(e,0,0,r)}function to(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 bt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qe=Pt(/[A-Za-z]/),Ve=Pt(/[\dA-Za-z]/),Il=Pt(/[#-'*+\--9=?A-Z^-~]/);function Fn(e){return e!==null&&(e<32||e===127)}const Or=Pt(/\d/),Ol=Pt(/[\dA-Fa-f]/),Ml=Pt(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function Te(e){return e!==null&&(e<0||e===32)}function ue(e){return e===-2||e===-1||e===32}const zn=Pt(new RegExp("\\p{P}|\\p{S}","u")),Wt=Pt(/\s/);function Pt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function nn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let o="";if(a===37&&Ve(e.charCodeAt(n+1))&&Ve(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 ge(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return ue(l)?(e.enter(n),s(l)):t(l)}function s(l){return ue(l)&&a++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Ll={tokenize:Dl};function Dl(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"),ge(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Y(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const Rl={tokenize:Pl},no={tokenize:Bl};function Pl(e){const t=this,n=[];let r=0,i,a,o;return s;function s(S){if(r<n.length){const I=n[r];return t.containerState=I[1],e.attempt(I[0].continuation,l,c)(S)}return c(S)}function l(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const I=t.events.length;let R=I,_;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){_=t.events[R][1].end;break}w(r);let q=I;for(;q<t.events.length;)t.events[q][1].end={..._},q++;return st(t.events,R+1,0,t.events.slice(I)),t.events.length=q,c(S)}return s(S)}function c(S){if(r===n.length){if(!i)return f(S);if(i.currentConstruct&&i.currentConstruct.concrete)return g(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(no,d,u)(S)}function d(S){return i&&E(),w(r),f(S)}function u(S){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(S)}function f(S){return t.containerState={},e.attempt(no,p,g)(S)}function p(S){return r++,n.push([t.currentConstruct,t.containerState]),f(S)}function g(S){if(S===null){i&&E(),w(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),h(S)}function h(S){if(S===null){x(e.exit("chunkFlow"),!0),w(0),e.consume(S);return}return Y(S)?(e.consume(S),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),h)}function x(S,I){const R=t.sliceStream(S);if(I&&R.push(null),S.previous=a,a&&(a.next=S),a=S,i.defineSkip(S.start),i.write(R),t.parser.lazy[S.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 q=t.events.length;let G=q,H,v;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(H){v=t.events[G][1].end;break}H=!0}for(w(r),_=q;_<t.events.length;)t.events[_][1].end={...v},_++;st(t.events,G+1,0,t.events.slice(q)),t.events.length=_}}function w(S){let I=n.length;for(;I-- >S;){const R=n[I];t.containerState=R[1],R[0].exit.call(t,e)}n.length=S}function E(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Bl(e,t,n){return ge(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rn(e){if(e===null||Te(e)||Wt(e))return 1;if(zn(e))return 2}function Un(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 Mr={name:"attention",resolveAll:Fl,tokenize:zl};function Fl(e,t){let n=-1,r,i,a,o,s,l,c,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;l=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};ro(u,-l),ro(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:u,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ut(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ut(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),c=ut(c,Un(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ut(c,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=ut(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,st(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function zl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=rn(r);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const c=e.exit("attentionSequence"),d=rn(l),u=!d||d===2&&i||n.includes(l),f=!i||i===2&&d||n.includes(r);return c._open=!!(a===42?u:u&&(i||!f)),c._close=!!(a===42?f:f&&(d||!u)),t(l)}}function ro(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ul={name:"autolink",tokenize:ql};function ql(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 Qe(p)?(e.consume(p),o):p===64?n(p):c(p)}function o(p){return p===43||p===45||p===46||Ve(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Ve(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(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||Fn(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),d):Il(p)?(e.consume(p),c):n(p)}function d(p){return Ve(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||Ve(p))&&r++<63){const g=p===45?f:u;return e.consume(p),g}return n(p)}}const yn={partial:!0,tokenize:$l};function $l(e,t,n){return r;function r(a){return ue(a)?ge(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Y(a)?t(a):n(a)}}const io={continuation:{tokenize:Gl},exit:Wl,name:"blockQuote",tokenize:Hl};function Hl(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 ue(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Gl(e,t,n){const r=this;return i;function i(o){return ue(o)?ge(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(io,t,n)(o)}}function Wl(e){e.exit("blockQuote")}const oo={name:"characterEscape",tokenize:Vl};function Vl(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 Ml(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const ao={name:"characterReference",tokenize:Kl};function Kl(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"),l}function l(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,o=Ve,d(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Ol,d):(e.enter("characterReferenceValue"),a=7,o=Or,d(u))}function d(u){if(u===59&&i){const f=e.exit("characterReferenceValue");return o===Ve&&!Ir(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 so={partial:!0,tokenize:Zl},lo={concrete:!0,name:"codeFenced",tokenize:Yl};function Yl(e,t,n){const r=this,i={partial:!0,tokenize:R};let a=0,o=0,s;return l;function l(_){return c(_)}function c(_){const q=r.events[r.events.length-1];return a=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[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"),ue(_)?ge(e,u,"whitespace")(_):u(_))}function u(_){return _===null||Y(_)?(e.exit("codeFencedFence"),r.interrupt?t(_):e.check(so,h,I)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(_))}function f(_){return _===null||Y(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(_)):ue(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ge(e,p,"whitespace")(_)):_===96&&_===s?n(_):(e.consume(_),f)}function p(_){return _===null||Y(_)?u(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(_))}function g(_){return _===null||Y(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(_)):_===96&&_===s?n(_):(e.consume(_),g)}function h(_){return e.attempt(i,I,x)(_)}function x(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),w}function w(_){return a>0&&ue(_)?ge(e,E,"linePrefix",a+1)(_):E(_)}function E(_){return _===null||Y(_)?e.check(so,h,I)(_):(e.enter("codeFlowValue"),S(_))}function S(_){return _===null||Y(_)?(e.exit("codeFlowValue"),E(_)):(e.consume(_),S)}function I(_){return e.exit("codeFenced"),t(_)}function R(_,q,G){let H=0;return v;function v(W){return _.enter("lineEnding"),_.consume(W),_.exit("lineEnding"),B}function B(W){return _.enter("codeFencedFence"),ue(W)?ge(_,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):F(W)}function F(W){return W===s?(_.enter("codeFencedFenceSequence"),ie(W)):G(W)}function ie(W){return W===s?(H++,_.consume(W),ie):H>=o?(_.exit("codeFencedFenceSequence"),ue(W)?ge(_,X,"whitespace")(W):X(W)):G(W)}function X(W){return W===null||Y(W)?(_.exit("codeFencedFence"),q(W)):G(W)}}}function Zl(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 Lr={name:"codeIndented",tokenize:Ql},Xl={partial:!0,tokenize:jl};function Ql(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),ge(e,a,"linePrefix",5)(c)}function a(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Y(c)?e.attempt(Xl,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Y(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function jl(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Y(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ge(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):Y(o)?i(o):n(o)}}const Jl={name:"codeText",previous:tc,resolve:ec,tokenize:nc};function ec(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 tc(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function nc(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"),l(u))}function l(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),l):u===96?(a=e.enter("codeTextSequence"),i=0,d(u)):Y(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||Y(u)?(e.exit("codeTextData"),l(u)):(e.consume(u),c)}function d(u){return u===96?(e.consume(u),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(a.type="codeTextData",c(u))}}class rc{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&&wn(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),wn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),wn(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);wn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);wn(this.left,n.reverse())}}}function wn(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 co(e){const t={};let n=-1,r,i,a,o,s,l,c;const d=new rc(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"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ic(d,n)),n=t[n],c=!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 st(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function ic(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,l=[],c={};let d,u,f=-1,p=n,g=0,h=0;const x=[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,x.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):x.pop(),f=x.length;f--;){const w=s.slice(x[f],x[f+1]),E=a.pop();l.push([E,E+w.length-1]),e.splice(E,2,w)}for(l.reverse(),f=-1;++f<l.length;)c[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return c}const oc={resolve:sc,tokenize:lc},ac={partial:!0,tokenize:cc};function sc(e){return co(e),e}function lc(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):Y(s)?e.check(ac,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 cc(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ge(e,a,"linePrefix")}function a(o){if(o===null||Y(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 uo(e,t,n,r,i,a,o,s,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return u;function u(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),f):w===null||w===32||w===41||Fn(w)?n(w):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(w))}function f(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(e.exit("chunkString"),e.exit(s),f(w)):w===null||w===60||Y(w)?n(w):(e.consume(w),w===92?g:p)}function g(w){return w===60||w===62||w===92?(e.consume(w),p):p(w)}function h(w){return!d&&(w===null||w===41||Te(w))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(w)):d<c&&w===40?(e.consume(w),d++,h):w===41?(e.consume(w),d--,h):w===null||w===32||w===40||Fn(w)?n(w):(e.consume(w),w===92?x:h)}function x(w){return w===40||w===41||w===92?(e.consume(w),h):h(w)}}function po(e,t,n,r,i,a){const o=this;let s=0,l;return c;function c(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&&!l||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):Y(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||Y(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!ue(p)),p===92?f:u)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,u):u(p)}}function fo(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,l):n(f)}function l(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),c(f))}function c(f){return f===o?(e.exit(a),l(o)):f===null?n(f):Y(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ge(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===o||f===null||Y(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?u:d)}function u(f){return f===o||f===92?(e.consume(f),d):d(f)}}function xn(e,t){let n;return r;function r(i){return Y(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ue(i)?ge(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const uc={name:"definition",tokenize:pc},dc={partial:!0,tokenize:fc};function pc(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return po.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=bt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Te(p)?xn(e,c)(p):c(p)}function c(p){return uo(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(dc,u,u)(p)}function u(p){return ue(p)?ge(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Y(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function fc(e,t,n){return r;function r(s){return Te(s)?xn(e,i)(s):n(s)}function i(s){return fo(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return ue(s)?ge(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Y(s)?t(s):n(s)}}const gc={name:"hardBreakEscape",tokenize:hc};function hc(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Y(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const mc={name:"headingAtx",resolve:bc,tokenize:kc};function bc(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"},st(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function kc(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||Te(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||Y(d)?(e.exit("atxHeading"),t(d)):ue(d)?ge(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||Te(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const yc=["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"],go=["pre","script","style","textarea"],wc={concrete:!0,name:"htmlFlow",resolveTo:_c,tokenize:vc},xc={partial:!0,tokenize:Nc},Ec={partial:!0,tokenize:Sc};function _c(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 vc(e,t,n){const r=this;let i,a,o,s,l;return c;function c(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:b):Qe(y)?(e.consume(y),o=String.fromCharCode(y),x):n(y)}function f(y){return y===45?(e.consume(y),i=2,p):y===91?(e.consume(y),i=5,s=0,g):Qe(y)?(e.consume(y),i=4,r.interrupt?t:b):n(y)}function p(y){return y===45?(e.consume(y),r.interrupt?t:b):n(y)}function g(y){const Ae="CDATA[";return y===Ae.charCodeAt(s++)?(e.consume(y),s===Ae.length?r.interrupt?t:F:g):n(y)}function h(y){return Qe(y)?(e.consume(y),o=String.fromCharCode(y),x):n(y)}function x(y){if(y===null||y===47||y===62||Te(y)){const Ae=y===47,$e=o.toLowerCase();return!Ae&&!a&&go.includes($e)?(i=1,r.interrupt?t(y):F(y)):yc.includes(o.toLowerCase())?(i=6,Ae?(e.consume(y),w):r.interrupt?t(y):F(y)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(y):a?E(y):S(y))}return y===45||Ve(y)?(e.consume(y),o+=String.fromCharCode(y),x):n(y)}function w(y){return y===62?(e.consume(y),r.interrupt?t:F):n(y)}function E(y){return ue(y)?(e.consume(y),E):v(y)}function S(y){return y===47?(e.consume(y),v):y===58||y===95||Qe(y)?(e.consume(y),I):ue(y)?(e.consume(y),S):v(y)}function I(y){return y===45||y===46||y===58||y===95||Ve(y)?(e.consume(y),I):R(y)}function R(y){return y===61?(e.consume(y),_):ue(y)?(e.consume(y),R):S(y)}function _(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),l=y,q):ue(y)?(e.consume(y),_):G(y)}function q(y){return y===l?(e.consume(y),l=null,H):y===null||Y(y)?n(y):(e.consume(y),q)}function G(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||Te(y)?R(y):(e.consume(y),G)}function H(y){return y===47||y===62||ue(y)?S(y):n(y)}function v(y){return y===62?(e.consume(y),B):n(y)}function B(y){return y===null||Y(y)?F(y):ue(y)?(e.consume(y),B):n(y)}function F(y){return y===45&&i===2?(e.consume(y),de):y===60&&i===1?(e.consume(y),he):y===62&&i===4?(e.consume(y),ce):y===63&&i===3?(e.consume(y),b):y===93&&i===5?(e.consume(y),me):Y(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(xc,we,ie)(y)):y===null||Y(y)?(e.exit("htmlFlowData"),ie(y)):(e.consume(y),F)}function ie(y){return e.check(Ec,X,we)(y)}function X(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),W}function W(y){return y===null||Y(y)?ie(y):(e.enter("htmlFlowData"),F(y))}function de(y){return y===45?(e.consume(y),b):F(y)}function he(y){return y===47?(e.consume(y),o="",j):F(y)}function j(y){if(y===62){const Ae=o.toLowerCase();return go.includes(Ae)?(e.consume(y),ce):F(y)}return Qe(y)&&o.length<8?(e.consume(y),o+=String.fromCharCode(y),j):F(y)}function me(y){return y===93?(e.consume(y),b):F(y)}function b(y){return y===62?(e.consume(y),ce):y===45&&i===2?(e.consume(y),b):F(y)}function ce(y){return y===null||Y(y)?(e.exit("htmlFlowData"),we(y)):(e.consume(y),ce)}function we(y){return e.exit("htmlFlow"),t(y)}}function Sc(e,t,n){const r=this;return i;function i(o){return Y(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 Nc(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(yn,t,n)}}const Tc={name:"htmlText",tokenize:Ac};function Ac(e,t,n){const r=this;let i,a,o;return s;function s(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),l}function l(b){return b===33?(e.consume(b),c):b===47?(e.consume(b),R):b===63?(e.consume(b),S):Qe(b)?(e.consume(b),G):n(b)}function c(b){return b===45?(e.consume(b),d):b===91?(e.consume(b),a=0,g):Qe(b)?(e.consume(b),E):n(b)}function d(b){return b===45?(e.consume(b),p):n(b)}function u(b){return b===null?n(b):b===45?(e.consume(b),f):Y(b)?(o=u,he(b)):(e.consume(b),u)}function f(b){return b===45?(e.consume(b),p):u(b)}function p(b){return b===62?de(b):b===45?f(b):u(b)}function g(b){const ce="CDATA[";return b===ce.charCodeAt(a++)?(e.consume(b),a===ce.length?h:g):n(b)}function h(b){return b===null?n(b):b===93?(e.consume(b),x):Y(b)?(o=h,he(b)):(e.consume(b),h)}function x(b){return b===93?(e.consume(b),w):h(b)}function w(b){return b===62?de(b):b===93?(e.consume(b),w):h(b)}function E(b){return b===null||b===62?de(b):Y(b)?(o=E,he(b)):(e.consume(b),E)}function S(b){return b===null?n(b):b===63?(e.consume(b),I):Y(b)?(o=S,he(b)):(e.consume(b),S)}function I(b){return b===62?de(b):S(b)}function R(b){return Qe(b)?(e.consume(b),_):n(b)}function _(b){return b===45||Ve(b)?(e.consume(b),_):q(b)}function q(b){return Y(b)?(o=q,he(b)):ue(b)?(e.consume(b),q):de(b)}function G(b){return b===45||Ve(b)?(e.consume(b),G):b===47||b===62||Te(b)?H(b):n(b)}function H(b){return b===47?(e.consume(b),de):b===58||b===95||Qe(b)?(e.consume(b),v):Y(b)?(o=H,he(b)):ue(b)?(e.consume(b),H):de(b)}function v(b){return b===45||b===46||b===58||b===95||Ve(b)?(e.consume(b),v):B(b)}function B(b){return b===61?(e.consume(b),F):Y(b)?(o=B,he(b)):ue(b)?(e.consume(b),B):H(b)}function F(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,ie):Y(b)?(o=F,he(b)):ue(b)?(e.consume(b),F):(e.consume(b),X)}function ie(b){return b===i?(e.consume(b),i=void 0,W):b===null?n(b):Y(b)?(o=ie,he(b)):(e.consume(b),ie)}function X(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||Te(b)?H(b):(e.consume(b),X)}function W(b){return b===47||b===62||Te(b)?H(b):n(b)}function de(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function he(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),j}function j(b){return ue(b)?ge(e,me,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):me(b)}function me(b){return e.enter("htmlTextData"),o(b)}}const Dr={name:"labelEnd",resolveAll:Mc,resolveTo:Lc,tokenize:Dc},Cc={tokenize:Rc},Ic={tokenize:Pc},Oc={tokenize:Bc};function Mc(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&&st(e,0,e.length,n),e}function Lc(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 l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={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",l,t],["enter",c,t]],s=ut(s,e.slice(a+1,a+r+3)),s=ut(s,[["enter",d,t]]),s=ut(s,Un(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=ut(s,[["exit",d,t],e[o-2],e[o-1],["exit",c,t]]),s=ut(s,e.slice(o+1)),s=ut(s,[["exit",l,t]]),st(e,a,e.length,s),e}function Dc(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(bt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Cc,d,o?d:u)(f):f===91?e.attempt(Ic,d,o?c:u)(f):o?d(f):u(f)}function c(f){return e.attempt(Oc,d,u)(f)}function d(f){return t(f)}function u(f){return a._balanced=!0,n(f)}}function Rc(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 Te(u)?xn(e,a)(u):a(u)}function a(u){return u===41?d(u):uo(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function o(u){return Te(u)?xn(e,l)(u):d(u)}function s(u){return n(u)}function l(u){return u===34||u===39||u===40?fo(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):d(u)}function c(u){return Te(u)?xn(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 Pc(e,t,n){const r=this;return i;function i(s){return po.call(r,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return r.parser.defined.includes(bt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function Bc(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 Fc={name:"labelStartImage",resolveAll:Dr.resolveAll,tokenize:zc};function zc(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 Uc={name:"labelStartLink",resolveAll:Dr.resolveAll,tokenize:qc};function qc(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 Rr={name:"lineEnding",tokenize:$c};function $c(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ge(e,t,"linePrefix")}}const qn={name:"thematicBreak",tokenize:Hc};function Hc(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Y(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),ue(c)?ge(e,s,"whitespace")(c):s(c))}}const it={continuation:{tokenize:Kc},exit:Zc,name:"list",tokenize:Vc},Gc={partial:!0,tokenize:Xc},Wc={partial:!0,tokenize:Yc};function Vc(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:Or(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(qn,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Or(p)&&++o<10?(e.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(yn,r.interrupt?n:d,e.attempt(Gc,f,u))}function d(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function u(p){return ue(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 Kc(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(yn,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ge(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!ue(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(Wc,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ge(e,e.attempt(it,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Yc(e,t,n){const r=this;return ge(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 Zc(e){e.exit(this.containerState.type)}function Xc(e,t,n){const r=this;return ge(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!ue(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const ho={name:"setextUnderline",resolveTo:Qc,tokenize:jc};function Qc(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 jc(e,t,n){const r=this;let i;return a;function a(c){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=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),ue(c)?ge(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Y(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Jc={tokenize:eu};function eu(e){const t=this,n=e.attempt(yn,r,e.attempt(this.parser.constructs.flowInitial,i,ge(e,e.attempt(this.parser.constructs.flow,i,e.attempt(oc,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 tu={resolveAll:bo()},nu=mo("string"),ru=mo("text");function mo(e){return{resolveAll:bo(e==="text"?iu: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 c(d)?a(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function c(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 bo(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 iu(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,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)l=!0,s++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||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={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const ou=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:uc},disable:{null:[]},document:{42:it,43:it,45:it,48:it,49:it,50:it,51:it,52:it,53:it,54:it,55:it,56:it,57:it,62:io},flow:{35:mc,42:qn,45:[ho,qn],60:wc,61:ho,95:qn,96:lo,126:lo},flowInitial:{[-2]:Lr,[-1]:Lr,32:Lr},insideSpan:{null:[Mr,tu]},string:{38:ao,92:oo},text:{[-5]:Rr,[-4]:Rr,[-3]:Rr,33:Fc,38:ao,42:Mr,60:[Ul,Tc],91:Uc,92:[gc,oo],93:Dr,95:Mr,96:Jl}},Symbol.toStringTag,{value:"Module"}));function au(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 l={attempt:q(R),check:q(_),consume:E,enter:S,exit:I,interrupt:q(_,{interrupt:!0})},c={code:null,containerState:{},defineSkip:h,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:u};let d=t.tokenize.call(c,l);return t.resolveAll&&a.push(t),c;function u(B){return o=ut(o,B),x(),o[o.length-1]!==null?[]:(G(t,0),c.events=Un(a,c.events,c),c.events)}function f(B,F){return lu(p(B),F)}function p(B){return su(o,B)}function g(){const{_bufferIndex:B,_index:F,line:ie,column:X,offset:W}=r;return{_bufferIndex:B,_index:F,line:ie,column:X,offset:W}}function h(B){i[B.line]=B.column,v()}function x(){let B;for(;r._index<o.length;){const F=o[r._index];if(typeof F=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<F.length;)w(F.charCodeAt(r._bufferIndex));else w(F)}}function w(B){d=d(B)}function E(B){Y(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,v()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=B}function S(B,F){const ie=F||{};return ie.type=B,ie.start=g(),c.events.push(["enter",ie,c]),s.push(ie),ie}function I(B){const F=s.pop();return F.end=g(),c.events.push(["exit",F,c]),F}function R(B,F){G(B,F.from)}function _(B,F){F.restore()}function q(B,F){return ie;function ie(X,W,de){let he,j,me,b;return Array.isArray(X)?we(X):"tokenize"in X?we([X]):ce(X);function ce(pe){return Ye;function Ye(Ze){const pt=Ze!==null&&pe[Ze],Xe=Ze!==null&&pe.null,Be=[...Array.isArray(pt)?pt:pt?[pt]:[],...Array.isArray(Xe)?Xe:Xe?[Xe]:[]];return we(Be)(Ze)}}function we(pe){return he=pe,j=0,pe.length===0?de:y(pe[j])}function y(pe){return Ye;function Ye(Ze){return b=H(),me=pe,pe.partial||(c.currentConstruct=pe),pe.name&&c.parser.constructs.disable.null.includes(pe.name)?$e():pe.tokenize.call(F?Object.assign(Object.create(c),F):c,l,Ae,$e)(Ze)}}function Ae(pe){return B(me,b),W}function $e(pe){return b.restore(),++j<he.length?y(he[j]):de}}}function G(B,F){B.resolveAll&&!a.includes(B)&&a.push(B),B.resolve&&st(c.events,F,c.events.length-F,B.resolve(c.events.slice(F),c)),B.resolveTo&&(c.events=B.resolveTo(c.events,c))}function H(){const B=g(),F=c.previous,ie=c.currentConstruct,X=c.events.length,W=Array.from(s);return{from:X,restore:de};function de(){r=B,c.previous=F,c.currentConstruct=ie,c.events.length=X,s=W,v()}}function v(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function su(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 lu(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 au(e){const r={constructs:Vi([nu,...(e||{}).extensions||[]]),content:i(Il),defined:[],document:i(Ml),flow:i(Xc),lazy:{},string:i(Jc),text:i(eu)};return r;function i(a){return o;function o(s){return ru(r,a,s)}}}function su(e){for(;!no(e););return e}const uo=/[\0\t\n\r]/g;function lu(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const l=[];let c,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(uo.lastIndex=u,c=uo.exec(a),f=c&&c.index!==void 0?c.index:a.length,p=a.charCodeAt(f),!c){t=a.slice(u);break}if(p===10&&u===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),u<f&&(l.push(a.slice(u,f)),e+=f-u),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}u=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const cu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function uu(e){return e.replace(cu,du)}function du(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return Yi(n.slice(a?2:1),a?16:10)}return _r(n)||e}const po={}.hasOwnProperty;function pu(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),fu(n)(su(au(n).document().write(lu()(e,t,!0))))}function fu(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Tt),autolinkProtocol:H,autolinkEmail:H,atxHeading:a(Nt),blockQuote:a(He),characterEscape:H,characterReference:H,codeFenced:a(Ie),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Ie,o),codeText:a(Dt,o),codeTextData:H,data:H,codeFlowValue:H,definition:a(Ye),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Kt),hardBreakEscape:a(be),hardBreakTrailing:a(be),htmlFlow:a(nt,o),htmlFlowData:H,htmlText:a(nt,o),htmlTextData:H,image:a(ct),label:o,link:a(Tt),listItem:a(Tn),listItemValue:f,listOrdered:a(At,u),listUnordered:a(At),paragraph:a(Ct),reference:y,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Nt),strong:a(_t),thematicBreak:a(Be)},exit:{atxHeading:l(),atxHeadingSequence:R,autolink:l(),autolinkEmail:ht,autolinkProtocol:tt,blockQuote:l(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:et,characterReferenceMarkerNumeric:et,characterReferenceValue:fe,characterReference:lt,codeFenced:l(E),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:_,codeIndented:l(b),codeText:l(q),codeTextData:_,data:_,definition:l(),definitionDestinationString:O,definitionLabelString:N,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(P),hardBreakTrailing:l(P),htmlFlow:l(J),htmlFlowData:_,htmlText:l(Z),htmlTextData:_,image:l(ae),label:ke,labelText:Q,lineEnding:B,link:l(oe),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Te,resourceDestinationString:m,resourceTitleString:Ee,resource:de,setextHeading:l(G),setextHeadingLineSequence:U,setextHeadingText:x,strong:l(),thematicBreak:l()}};fo(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(S){let M={type:"root",children:[]};const j={stack:[M],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:d,data:n},se=[];let ye=-1;for(;++ye<S.length;)if(S[ye][1].type==="listOrdered"||S[ye][1].type==="listUnordered")if(S[ye][0]==="enter")se.push(ye);else{const Ge=se.pop();ye=i(S,Ge,ye)}for(ye=-1;++ye<S.length;){const Ge=t[S[ye][0]];po.call(Ge,S[ye][1].type)&&Ge[S[ye][1].type].call(Object.assign({sliceSerialize:S[ye][2].sliceSerialize},j),S[ye][1])}if(j.tokenStack.length>0){const Ge=j.tokenStack[j.tokenStack.length-1];(Ge[1]||go).call(j,void 0,Ge[0])}for(M.position={start:Lt(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:Lt(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},ye=-1;++ye<t.transforms.length;)M=t.transforms[ye](M)||M;return M}function i(S,M,j){let se=M-1,ye=-1,Ge=!1,rt,Ze,ut,mt;for(;++se<=j;){const De=S[se];switch(De[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{De[0]==="enter"?ye++:ye--,mt=void 0;break}case"lineEndingBlank":{De[0]==="enter"&&(rt&&!mt&&!ye&&!ut&&(ut=se),mt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mt=void 0}if(!ye&&De[0]==="enter"&&De[1].type==="listItemPrefix"||ye===-1&&De[0]==="exit"&&(De[1].type==="listUnordered"||De[1].type==="listOrdered")){if(rt){let bt=se;for(Ze=void 0;bt--;){const Xe=S[bt];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;Ze&&(S[Ze][1].type="lineEndingBlank",Ge=!0),Xe[1].type="lineEnding",Ze=bt}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}ut&&(!Ze||ut<Ze)&&(rt._spread=!0),rt.end=Object.assign({},Ze?S[Ze][1].start:De[1].end),S.splice(Ze||se,0,["exit",rt,De[2]]),se++,j++}if(De[1].type==="listItemPrefix"){const bt={type:"listItem",_spread:!1,start:Object.assign({},De[1].start),end:void 0};rt=bt,S.splice(se,0,["enter",bt,De[2]]),se++,j++,ut=void 0,mt=!0}}}return S[M][1]._spread=Ge,j}function a(S,M){return j;function j(se){s.call(this,S(se),se),M&&M.call(this,se)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(S,M,j){this.stack[this.stack.length-1].children.push(S),this.stack.push(S),this.tokenStack.push([M,j||void 0]),S.position={start:Lt(M.start),end:void 0}}function l(S){return M;function M(j){S&&S.call(this,j),c.call(this,j)}}function c(S,M){const j=this.stack.pop(),se=this.tokenStack.pop();if(se)se[0].type!==S.type&&(M?M.call(this,S,se[0]):(se[1]||go).call(this,S,se[0]));else throw new Error("Cannot close `"+S.type+"` ("+hn({start:S.start,end:S.end})+"): it’s not open");j.position.end=Lt(S.end)}function d(){return xr(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 E(){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(),j=this.stack[this.stack.length-1];j.label=M,j.identifier=gt(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 j=this.sliceSerialize(S).length;M.depth=j}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function U(S){const M=this.stack[this.stack.length-1];M.depth=this.sliceSerialize(S).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function H(S){const j=this.stack[this.stack.length-1].children;let se=j[j.length-1];(!se||se.type!=="text")&&(se=Re(),se.position={start:Lt(S.start),end:void 0},j.push(se)),this.stack.push(se)}function _(S){const M=this.stack.pop();M.value+=this.sliceSerialize(S),M.position.end=Lt(S.end)}function B(S){const M=this.stack[this.stack.length-1];if(this.data.atHardBreak){const j=M.children[M.children.length-1];j.position.end=Lt(S.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(M.type)&&(H.call(this,S),_.call(this,S))}function P(){this.data.atHardBreak=!0}function J(){const S=this.resume(),M=this.stack[this.stack.length-1];M.value=S}function Z(){const S=this.resume(),M=this.stack[this.stack.length-1];M.value=S}function q(){const S=this.resume(),M=this.stack[this.stack.length-1];M.value=S}function oe(){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 ae(){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 Q(S){const M=this.sliceSerialize(S),j=this.stack[this.stack.length-2];j.label=uu(M),j.identifier=gt(M).toLowerCase()}function ke(){const S=this.stack[this.stack.length-1],M=this.resume(),j=this.stack[this.stack.length-1];if(this.data.inReference=!0,j.type==="link"){const se=S.children;j.children=se}else j.alt=M}function m(){const S=this.resume(),M=this.stack[this.stack.length-1];M.url=S}function Ee(){const S=this.resume(),M=this.stack[this.stack.length-1];M.title=S}function de(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function Te(S){const M=this.resume(),j=this.stack[this.stack.length-1];j.label=M,j.identifier=gt(this.sliceSerialize(S)).toLowerCase(),this.data.referenceType="full"}function et(S){this.data.characterReferenceType=S.type}function fe(S){const M=this.sliceSerialize(S),j=this.data.characterReferenceType;let se;j?(se=Yi(M,j==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=_r(M);const ye=this.stack[this.stack.length-1];ye.value+=se}function lt(S){const M=this.stack.pop();M.position.end=Lt(S.end)}function tt(S){_.call(this,S);const M=this.stack[this.stack.length-1];M.url=this.sliceSerialize(S)}function ht(S){_.call(this,S);const M=this.stack[this.stack.length-1];M.url="mailto:"+this.sliceSerialize(S)}function He(){return{type:"blockquote",children:[]}}function Ie(){return{type:"code",lang:null,meta:null,value:""}}function Dt(){return{type:"inlineCode",value:""}}function Ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Kt(){return{type:"emphasis",children:[]}}function Nt(){return{type:"heading",depth:0,children:[]}}function be(){return{type:"break"}}function nt(){return{type:"html",value:""}}function ct(){return{type:"image",title:null,url:"",alt:null}}function Tt(){return{type:"link",title:null,url:"",children:[]}}function At(S){return{type:"list",ordered:S.type==="listOrdered",start:null,spread:S._spread,children:[]}}function Tn(S){return{type:"listItem",spread:S._spread,checked:null,children:[]}}function Ct(){return{type:"paragraph",children:[]}}function _t(){return{type:"strong",children:[]}}function Re(){return{type:"text",value:""}}function Be(){return{type:"thematicBreak"}}}function Lt(e){return{line:e.line,column:e.column,offset:e.offset}}function fo(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?fo(e,r):gu(e,r)}}function gu(e,t){let n;for(n in t)if(po.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 go(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+hn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+hn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+hn({start:t.start,end:t.end})+") is still open")}function hu(e){const t=this;t.parser=n;function n(r){return pu(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function mu(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 ku(e,t){const n=t.value?t.value+`
7
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let 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 yu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Eu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=jt(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 l={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,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function xu(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 _u(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ho(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 vu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ho(e,t);const i={src:jt(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 Su(e,t){const n={src:jt(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 Nu(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Tu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ho(e,t);const i={href:jt(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 Au(e,t){const n={href:jt(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 Cu(e,t,n){const r=e.all(t),i=n?Iu(n):mo(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 cu(e){const r={constructs:eo([ou,...(e||{}).extensions||[]]),content:i(Ll),defined:[],document:i(Rl),flow:i(Jc),lazy:{},string:i(nu),text:i(ru)};return r;function i(a){return o;function o(s){return au(r,a,s)}}}function uu(e){for(;!co(e););return e}const ko=/[\0\t\n\r]/g;function du(){let e=1,t="",n=!0,r;return i;function i(a,o,s){const l=[];let c,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(ko.lastIndex=u,c=ko.exec(a),f=c&&c.index!==void 0?c.index:a.length,p=a.charCodeAt(f),!c){t=a.slice(u);break}if(p===10&&u===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),u<f&&(l.push(a.slice(u,f)),e+=f-u),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}u=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const pu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fu(e){return e.replace(pu,gu)}function gu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return to(n.slice(a?2:1),a?16:10)}return Ir(n)||e}const yo={}.hasOwnProperty;function hu(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),mu(n)(uu(cu(n).document().write(du()(e,t,!0))))}function mu(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(De),autolinkProtocol:H,autolinkEmail:H,atxHeading:a(Dt),blockQuote:a(Xe),characterEscape:H,characterReference:H,codeFenced:a(Be),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(Be,o),codeText:a(Zt,o),codeTextData:H,data:H,codeFlowValue:H,definition:a(At),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ze),hardBreakEscape:a(be),hardBreakTrailing:a(be),htmlFlow:a(kt,o),htmlFlowData:H,htmlText:a(kt,o),htmlTextData:H,image:a(ft),label:o,link:a(De),listItem:a(He),listItemValue:f,listOrdered:a(Rt,u),listUnordered:a(Rt),paragraph:a(Cn),reference:y,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Dt),strong:a(Xt),thematicBreak:a(Ct)},exit:{atxHeading:l(),atxHeadingSequence:R,autolink:l(),autolinkEmail:pt,autolinkProtocol:Ze,blockQuote:l(),characterEscapeValue:v,characterReferenceMarkerHexadecimal:$e,characterReferenceMarkerNumeric:$e,characterReferenceValue:pe,characterReference:Ye,codeFenced:l(x),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:v,codeIndented:l(w),codeText:l(W),codeTextData:v,data:v,definition:l(),definitionDestinationString:I,definitionLabelString:E,definitionTitleString:S,emphasis:l(),hardBreakEscape:l(F),hardBreakTrailing:l(F),htmlFlow:l(ie),htmlFlowData:v,htmlText:l(X),htmlTextData:v,image:l(he),label:me,labelText:j,lineEnding:B,link:l(de),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Ae,resourceDestinationString:b,resourceTitleString:ce,resource:we,setextHeading:l(G),setextHeadingLineSequence:q,setextHeadingText:_,strong:l(),thematicBreak:l()}};wo(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(N){let D={type:"root",children:[]};const Q={stack:[D],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:d,data:n},se=[];let fe=-1;for(;++fe<N.length;)if(N[fe][1].type==="listOrdered"||N[fe][1].type==="listUnordered")if(N[fe][0]==="enter")se.push(fe);else{const Je=se.pop();fe=i(N,Je,fe)}for(fe=-1;++fe<N.length;){const Je=t[N[fe][0]];yo.call(Je,N[fe][1].type)&&Je[N[fe][1].type].call(Object.assign({sliceSerialize:N[fe][2].sliceSerialize},Q),N[fe][1])}if(Q.tokenStack.length>0){const Je=Q.tokenStack[Q.tokenStack.length-1];(Je[1]||xo).call(Q,void 0,Je[0])}for(D.position={start:Bt(N.length>0?N[0][1].start:{line:1,column:1,offset:0}),end:Bt(N.length>0?N[N.length-2][1].end:{line:1,column:1,offset:0})},fe=-1;++fe<t.transforms.length;)D=t.transforms[fe](D)||D;return D}function i(N,D,Q){let se=D-1,fe=-1,Je=!1,lt,Ge,Ue,Fe;for(;++se<=Q;){const Me=N[se];switch(Me[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Me[0]==="enter"?fe++:fe--,Fe=void 0;break}case"lineEndingBlank":{Me[0]==="enter"&&(lt&&!Fe&&!fe&&!Ue&&(Ue=se),Fe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fe=void 0}if(!fe&&Me[0]==="enter"&&Me[1].type==="listItemPrefix"||fe===-1&&Me[0]==="exit"&&(Me[1].type==="listUnordered"||Me[1].type==="listOrdered")){if(lt){let It=se;for(Ge=void 0;It--;){const et=N[It];if(et[1].type==="lineEnding"||et[1].type==="lineEndingBlank"){if(et[0]==="exit")continue;Ge&&(N[Ge][1].type="lineEndingBlank",Je=!0),et[1].type="lineEnding",Ge=It}else if(!(et[1].type==="linePrefix"||et[1].type==="blockQuotePrefix"||et[1].type==="blockQuotePrefixWhitespace"||et[1].type==="blockQuoteMarker"||et[1].type==="listItemIndent"))break}Ue&&(!Ge||Ue<Ge)&&(lt._spread=!0),lt.end=Object.assign({},Ge?N[Ge][1].start:Me[1].end),N.splice(Ge||se,0,["exit",lt,Me[2]]),se++,Q++}if(Me[1].type==="listItemPrefix"){const It={type:"listItem",_spread:!1,start:Object.assign({},Me[1].start),end:void 0};lt=It,N.splice(se,0,["enter",It,Me[2]]),se++,Q++,Ue=void 0,Fe=!0}}}return N[D][1]._spread=Je,Q}function a(N,D){return Q;function Q(se){s.call(this,N(se),se),D&&D.call(this,se)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(N,D,Q){this.stack[this.stack.length-1].children.push(N),this.stack.push(N),this.tokenStack.push([D,Q||void 0]),N.position={start:Bt(D.start),end:void 0}}function l(N){return D;function D(Q){N&&N.call(this,Q),c.call(this,Q)}}function c(N,D){const Q=this.stack.pop(),se=this.tokenStack.pop();if(se)se[0].type!==N.type&&(D?D.call(this,N,se[0]):(se[1]||xo).call(this,N,se[0]));else throw new Error("Cannot close `"+N.type+"` ("+bn({start:N.start,end:N.end})+"): it’s not open");Q.position.end=Bt(N.end)}function d(){return Cr(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function f(N){if(this.data.expectingFirstListItemValue){const D=this.stack[this.stack.length-2];D.start=Number.parseInt(this.sliceSerialize(N),10),this.data.expectingFirstListItemValue=void 0}}function p(){const N=this.resume(),D=this.stack[this.stack.length-1];D.lang=N}function g(){const N=this.resume(),D=this.stack[this.stack.length-1];D.meta=N}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const N=this.resume(),D=this.stack[this.stack.length-1];D.value=N.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const N=this.resume(),D=this.stack[this.stack.length-1];D.value=N.replace(/(\r?\n|\r)$/g,"")}function E(N){const D=this.resume(),Q=this.stack[this.stack.length-1];Q.label=D,Q.identifier=bt(this.sliceSerialize(N)).toLowerCase()}function S(){const N=this.resume(),D=this.stack[this.stack.length-1];D.title=N}function I(){const N=this.resume(),D=this.stack[this.stack.length-1];D.url=N}function R(N){const D=this.stack[this.stack.length-1];if(!D.depth){const Q=this.sliceSerialize(N).length;D.depth=Q}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function q(N){const D=this.stack[this.stack.length-1];D.depth=this.sliceSerialize(N).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function H(N){const Q=this.stack[this.stack.length-1].children;let se=Q[Q.length-1];(!se||se.type!=="text")&&(se=gt(),se.position={start:Bt(N.start),end:void 0},Q.push(se)),this.stack.push(se)}function v(N){const D=this.stack.pop();D.value+=this.sliceSerialize(N),D.position.end=Bt(N.end)}function B(N){const D=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Q=D.children[D.children.length-1];Q.position.end=Bt(N.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(D.type)&&(H.call(this,N),v.call(this,N))}function F(){this.data.atHardBreak=!0}function ie(){const N=this.resume(),D=this.stack[this.stack.length-1];D.value=N}function X(){const N=this.resume(),D=this.stack[this.stack.length-1];D.value=N}function W(){const N=this.resume(),D=this.stack[this.stack.length-1];D.value=N}function de(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=D,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function he(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=D,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function j(N){const D=this.sliceSerialize(N),Q=this.stack[this.stack.length-2];Q.label=fu(D),Q.identifier=bt(D).toLowerCase()}function me(){const N=this.stack[this.stack.length-1],D=this.resume(),Q=this.stack[this.stack.length-1];if(this.data.inReference=!0,Q.type==="link"){const se=N.children;Q.children=se}else Q.alt=D}function b(){const N=this.resume(),D=this.stack[this.stack.length-1];D.url=N}function ce(){const N=this.resume(),D=this.stack[this.stack.length-1];D.title=N}function we(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function Ae(N){const D=this.resume(),Q=this.stack[this.stack.length-1];Q.label=D,Q.identifier=bt(this.sliceSerialize(N)).toLowerCase(),this.data.referenceType="full"}function $e(N){this.data.characterReferenceType=N.type}function pe(N){const D=this.sliceSerialize(N),Q=this.data.characterReferenceType;let se;Q?(se=to(D,Q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=Ir(D);const fe=this.stack[this.stack.length-1];fe.value+=se}function Ye(N){const D=this.stack.pop();D.position.end=Bt(N.end)}function Ze(N){v.call(this,N);const D=this.stack[this.stack.length-1];D.url=this.sliceSerialize(N)}function pt(N){v.call(this,N);const D=this.stack[this.stack.length-1];D.url="mailto:"+this.sliceSerialize(N)}function Xe(){return{type:"blockquote",children:[]}}function Be(){return{type:"code",lang:null,meta:null,value:""}}function Zt(){return{type:"inlineCode",value:""}}function At(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ze(){return{type:"emphasis",children:[]}}function Dt(){return{type:"heading",depth:0,children:[]}}function be(){return{type:"break"}}function kt(){return{type:"html",value:""}}function ft(){return{type:"image",title:null,url:"",alt:null}}function De(){return{type:"link",title:null,url:"",children:[]}}function Rt(N){return{type:"list",ordered:N.type==="listOrdered",start:null,spread:N._spread,children:[]}}function He(N){return{type:"listItem",spread:N._spread,checked:null,children:[]}}function Cn(){return{type:"paragraph",children:[]}}function Xt(){return{type:"strong",children:[]}}function gt(){return{type:"text",value:""}}function Ct(){return{type:"thematicBreak"}}}function Bt(e){return{line:e.line,column:e.column,offset:e.offset}}function wo(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?wo(e,r):bu(e,r)}}function bu(e,t){let n;for(n in t)if(yo.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 xo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+bn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+bn({start:t.start,end:t.end})+") is still open")}function ku(e){const t=this;t.parser=n;function n(r){return hu(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function yu(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 wu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
6
+ `}]}function xu(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 Eu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _u(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=nn(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 l={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,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function Su(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nu(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Eo(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 Tu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Eo(e,t);const i={src:nn(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 Au(e,t){const n={src:nn(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 Cu(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 Iu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Eo(e,t);const i={href:nn(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 Ou(e,t){const n={href:nn(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 Mu(e,t,n){const r=e.all(t),i=n?Lu(n):_o(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 l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
9
- `});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)}function Iu(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=mo(n[r])}return t}function mo(e){const t=e.spread;return t??e.children.length>1}function Ou(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 Mu(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ru(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Lu(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Du(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]),l=Di(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),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 Pu(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 l=-1;const c=[];for(;++l<s;){const u=t.children[l],f={},p=o?o[l]: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)),c.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function Bu(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const bo=9,ko=32;function Fu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(yo(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(yo(t.slice(i),i>0,!1)),a.join("")}function yo(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===bo||a===ko;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===bo||a===ko;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function zu(e,t){const n={type:"text",value:Fu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Uu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const qu={blockquote:mu,break:bu,code:ku,delete:yu,emphasis:wu,footnoteReference:Eu,heading:xu,html:_u,imageReference:vu,image:Su,inlineCode:Nu,linkReference:Tu,link:Au,listItem:Cu,list:Ou,paragraph:Mu,root:Ru,strong:Lu,table:Du,tableCell:Bu,tableRow:Pu,text:zu,thematicBreak:Uu,toml:Fn,yaml:Fn,definition:Fn,footnoteDefinition:Fn};function Fn(){}const wo=-1,zn=0,wn=1,Un=2,Cr=3,Ir=4,Or=5,Mr=6,Eo=7,xo=8,_o=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 _o[e](t)},$u=(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 zn:case wo:return n(o,i);case wn:{const s=n([],i);for(const l of o)s.push(r(l));return s}case Un:{const s=n({},i);for(const[l,c]of o)s[r(l)]=r(c);return s}case Cr:return n(new Date(o),i);case Ir:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case Or:{const s=n(new Map,i);for(const[l,c]of o)s.set(r(l),r(c));return s}case Mr:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case Eo:{const{name:s,message:l}=o;return n(typeof _o[s]=="function"?vo(s,l):new Error(l),i)}case xo: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},So=e=>$u(new Map,e)(0),Ht="",{toString:Hu}={},{keys:Gu}=Object,En=e=>{const t=typeof e;if(t!=="object"||!e)return[zn,t];const n=Hu.call(e).slice(8,-1);switch(n){case"Array":return[wn,Ht];case"Object":return[Un,Ht];case"Date":return[Cr,Ht];case"RegExp":return[Ir,Ht];case"Map":return[Or,Ht];case"Set":return[Mr,Ht];case"DataView":return[wn,n]}return n.includes("Array")?[wn,n]:e instanceof Error?[Eo,e.name||"Error"]:[Un,n]},qn=([e,t])=>e===zn&&(t==="function"||t==="symbol"),Wu=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=En(o);switch(s){case zn:{let d=o;switch(l){case"bigint":s=xo,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([wo],o)}return i([s,d],o)}case wn:{if(l){let f=o;return l==="DataView"?f=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(o)),i([l,[...f]],o)}const d=[],u=i([s,d],o);for(const f of o)d.push(a(f));return u}case Un:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],u=i([s,d],o);for(const f of Gu(o))(e||!qn(En(o[f])))&&d.push([a(f),a(o[f])]);return u}case Cr:return i([s,isNaN(o.getTime())?Ht: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||!(qn(En(f))||qn(En(p))))&&d.push([a(f),a(p)]);return u}case Mr:{const d=[],u=i([s,d],o);for(const f of o)(e||!qn(En(f)))&&d.push(a(f));return u}}const{message:c}=o;return i([s,{name:l,message:c}],o)};return a},No=(e,{json:t,lossy:n}={})=>{const r=[];return Wu(!(t||n),!!t,new Map,r)(e),r},$n=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?So(No(e,t)):structuredClone(e):(e,t)=>So(No(e,t));function Ku(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 Vu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Yu(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ku,r=e.options.footnoteBackLabel||Vu,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const d=e.all(c),u=String(c.identifier).toUpperCase(),f=jt(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(l,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(l,p),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const E=d[d.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const N=E.children[E.children.length-1];N&&N.type==="text"?N.value+=" ":E.children.push({type:"text",value:" "}),E.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(c,b),s.push(b)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...$n(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9
+ `});const c={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,c),e.applyData(t,c)}function Lu(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=_o(n[r])}return t}function _o(e){const t=e.spread;return t??e.children.length>1}function Du(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const 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 Ru(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pu(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Bu(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fu(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=_r(t.children[1]),l=$i(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),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 zu(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 l=-1;const c=[];for(;++l<s;){const u=t.children[l],f={},p=o?o[l]: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)),c.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function Uu(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const vo=9,So=32;function qu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(No(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(No(t.slice(i),i>0,!1)),a.join("")}function No(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===vo||a===So;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===vo||a===So;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function $u(e,t){const n={type:"text",value:qu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Hu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Gu={blockquote:yu,break:wu,code:xu,delete:Eu,emphasis:_u,footnoteReference:vu,heading:Su,html:Nu,imageReference:Tu,image:Au,inlineCode:Cu,linkReference:Iu,link:Ou,listItem:Mu,list:Du,paragraph:Ru,root:Pu,strong:Bu,table:Fu,tableCell:Uu,tableRow:zu,text:$u,thematicBreak:Hu,toml:$n,yaml:$n,definition:$n,footnoteDefinition:$n};function $n(){}const To=-1,Hn=0,En=1,Gn=2,Pr=3,Br=4,Fr=5,zr=6,Ao=7,Co=8,Io=typeof self=="object"?self:globalThis,Oo=(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 Io[e](t)},Wu=(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 Hn:case To:return n(o,i);case En:{const s=n([],i);for(const l of o)s.push(r(l));return s}case Gn:{const s=n({},i);for(const[l,c]of o)s[r(l)]=r(c);return s}case Pr:return n(new Date(o),i);case Br:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case Fr:{const s=n(new Map,i);for(const[l,c]of o)s.set(r(l),r(c));return s}case zr:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case Ao:{const{name:s,message:l}=o;return n(typeof Io[s]=="function"?Oo(s,l):new Error(l),i)}case Co: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(Oo(a,o),i)};return r},Mo=e=>Wu(new Map,e)(0),Vt="",{toString:Vu}={},{keys:Ku}=Object,_n=e=>{const t=typeof e;if(t!=="object"||!e)return[Hn,t];const n=Vu.call(e).slice(8,-1);switch(n){case"Array":return[En,Vt];case"Object":return[Gn,Vt];case"Date":return[Pr,Vt];case"RegExp":return[Br,Vt];case"Map":return[Fr,Vt];case"Set":return[zr,Vt];case"DataView":return[En,n]}return n.includes("Array")?[En,n]:e instanceof Error?[Ao,e.name||"Error"]:[Gn,n]},Wn=([e,t])=>e===Hn&&(t==="function"||t==="symbol"),Yu=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=_n(o);switch(s){case Hn:{let d=o;switch(l){case"bigint":s=Co,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([To],o)}return i([s,d],o)}case En:{if(l){let f=o;return l==="DataView"?f=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(o)),i([l,[...f]],o)}const d=[],u=i([s,d],o);for(const f of o)d.push(a(f));return u}case Gn:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const d=[],u=i([s,d],o);for(const f of Ku(o))(e||!Wn(_n(o[f])))&&d.push([a(f),a(o[f])]);return u}case Pr:return i([s,isNaN(o.getTime())?Vt:o.toISOString()],o);case Br:{const{source:d,flags:u}=o;return i([s,{source:d,flags:u}],o)}case Fr:{const d=[],u=i([s,d],o);for(const[f,p]of o)(e||!(Wn(_n(f))||Wn(_n(p))))&&d.push([a(f),a(p)]);return u}case zr:{const d=[],u=i([s,d],o);for(const f of o)(e||!Wn(_n(f)))&&d.push(a(f));return u}}const{message:c}=o;return i([s,{name:l,message:c}],o)};return a},Lo=(e,{json:t,lossy:n}={})=>{const r=[];return Yu(!(t||n),!!t,new Map,r)(e),r},Vn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Mo(Lo(e,t)):structuredClone(e):(e,t)=>Mo(Lo(e,t));function Zu(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Xu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Qu(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Zu,r=e.options.footnoteBackLabel||Xu,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const d=e.all(c),u=String(c.identifier).toUpperCase(),f=nn(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 E=typeof n=="string"?n:n(l,p);typeof E=="string"&&(E={type:"text",value:E}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const x=d[d.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const E=x.children[x.children.length-1];E&&E.type==="text"?E.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...g)}else d.push(...g);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(c,w),s.push(w)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Vn(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 xn=(function(e){if(e==null)return ju;if(typeof e=="function")return Hn(e);if(typeof e=="object")return Array.isArray(e)?Zu(e):Xu(e);if(typeof e=="string")return Qu(e);throw new Error("Expected function, string, or object as test")});function Zu(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=xn(e[n]);return Hn(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Xu(e){const t=e;return Hn(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Qu(e){return Hn(t);function t(n){return n&&n.type===e}}function Hn(e){return t;function t(n,r,i){return!!(Ju(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ju(){return!0}function Ju(e){return e!==null&&typeof e=="object"&&"type"in e}function Am(e){return e}const To=[],ed=!0,Rr=!1,td="skip";function Ao(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=xn(i),o=r?-1:1;s(e,void 0,[])();function s(l,c,d){const u=l&&typeof l=="object"?l:{};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 ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=To,g,h,E;if((!t||a(l,c,d[d.length-1]||void 0))&&(p=nd(n(l,d)),p[0]===Rr))return p;if("children"in l&&l.children){const b=l;if(b.children&&p[0]!==td)for(h=(r?b.children.length:-1)+o,E=d.concat(b);h>-1&&h<b.children.length;){const N=b.children[h];if(g=s(N,h,E)(),g[0]===Rr)return g;h=typeof g[1]=="number"?g[1]:h+o}}return p}}}function nd(e){return Array.isArray(e)?e:typeof e=="number"?[ed,e]:e==null?To:[e]}function Gn(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),Ao(e,a,s,i);function s(l,c){const d=c[c.length-1],u=d?d.children.indexOf(l):void 0;return o(l,u,d)}}const Lr={}.hasOwnProperty,rd={};function id(e,t){const n=t||rd,r=new Map,i=new Map,a=new Map,o={...qu,...n.handlers},s={all:c,applyData:ad,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:n,patch:od,wrap:ld};return Gn(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 l(d,u){const f=d.type,p=s.handlers[f];if(Lr.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,...E}=d,b=$n(E);return b.children=s.all(d),b}return $n(d)}return(s.options.unknownHandler||sd)(s,d,u)}function c(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=Co(g.value)),!Array.isArray(g)&&g.type==="element")){const h=g.children[0];h&&h.type==="text"&&(h.value=Co(h.value))}Array.isArray(g)?u.push(...g):u.push(g)}}}return u}}function od(e,t){e.position&&(t.position=tl(e))}function ad(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,$n(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function sd(e,t){const n=t.data||{},r="value"in t&&!(Lr.call(n,"hProperties")||Lr.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 ld(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
11
+ `}]}}const vn=(function(e){if(e==null)return td;if(typeof e=="function")return Kn(e);if(typeof e=="object")return Array.isArray(e)?ju(e):Ju(e);if(typeof e=="string")return ed(e);throw new Error("Expected function, string, or object as test")});function ju(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vn(e[n]);return Kn(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Ju(e){const t=e;return Kn(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function ed(e){return Kn(t);function t(n){return n&&n.type===e}}function Kn(e){return t;function t(n,r,i){return!!(nd(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function td(){return!0}function nd(e){return e!==null&&typeof e=="object"&&"type"in e}function Rm(e){return e}const Do=[],rd=!0,Ur=!1,id="skip";function Ro(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=vn(i),o=r?-1:1;s(e,void 0,[])();function s(l,c,d){const u=l&&typeof l=="object"?l:{};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 ("+(l.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Do,g,h,x;if((!t||a(l,c,d[d.length-1]||void 0))&&(p=od(n(l,d)),p[0]===Ur))return p;if("children"in l&&l.children){const w=l;if(w.children&&p[0]!==id)for(h=(r?w.children.length:-1)+o,x=d.concat(w);h>-1&&h<w.children.length;){const E=w.children[h];if(g=s(E,h,x)(),g[0]===Ur)return g;h=typeof g[1]=="number"?g[1]:h+o}}return p}}}function od(e){return Array.isArray(e)?e:typeof e=="number"?[rd,e]:e==null?Do:[e]}function Yn(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),Ro(e,a,s,i);function s(l,c){const d=c[c.length-1],u=d?d.children.indexOf(l):void 0;return o(l,u,d)}}const qr={}.hasOwnProperty,ad={};function sd(e,t){const n=t||ad,r=new Map,i=new Map,a=new Map,o={...Gu,...n.handlers},s={all:c,applyData:cd,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:n,patch:ld,wrap:dd};return Yn(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 l(d,u){const f=d.type,p=s.handlers[f];if(qr.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,...x}=d,w=Vn(x);return w.children=s.all(d),w}return Vn(d)}return(s.options.unknownHandler||ud)(s,d,u)}function c(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=Po(g.value)),!Array.isArray(g)&&g.type==="element")){const h=g.children[0];h&&h.type==="text"&&(h.value=Po(h.value))}Array.isArray(g)?u.push(...g):u.push(g)}}}return u}}function ld(e,t){e.position&&(t.position=il(e))}function cd(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,Vn(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function ud(e,t){const n=t.data||{},r="value"in t&&!(qr.call(n,"hProperties")||qr.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 dd(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 Co(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Io(e,t){const n=id(e,t),r=n.one(e,void 0),i=Yu(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 cd(e,t){return e&&"run"in e?async function(n,r){const i=Io(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Io(n,{file:r,...e||t})}}function Oo(e){if(e)throw e}var Dr,Mo;function ud(){if(Mo)return Dr;Mo=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),u=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!u)return!1;var f;for(f in c);return typeof f>"u"||e.call(c,f)},o=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},s=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return Dr=function l(){var c,d,u,f,p,g,h=arguments[0],E=1,b=arguments.length,N=!1;for(typeof h=="boolean"&&(N=h,h=arguments[1]||{},E=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});E<b;++E)if(c=arguments[E],c!=null)for(d in c)u=s(h,d),f=s(c,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:l(N,g,f)})):typeof f<"u"&&o(h,{name:d,newValue:f}));return h},Dr}var dd=ud();const Pr=hr(dd);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 pd(){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(l,...c){const d=e[++a];let u=-1;if(l){o(l);return}for(;++u<i.length;)(c[u]===null||c[u]===void 0)&&(c[u]=i[u]);i=c,d?fd(d,s)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function fd(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const d=c;if(s&&n)throw d;return i(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const yt={basename:gd,dirname:hd,extname:md,join:bd,sep:"/"};function gd(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_n(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 hd(e){if(_n(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 md(e){_n(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;)_n(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":kd(n)}function kd(e){_n(e);const t=e.codePointAt(0)===47;let n=yd(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function yd(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;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(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),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 _n(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wd={cwd:Ed};function Ed(){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 xd(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 _d(e)}function _d(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 Ro{constructor(t){let n;t?Fr(t)?n={path:t}:typeof t=="string"||vd(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":wd.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"?yt.basename(this.path):void 0}set basename(t){qr(t,"basename"),Ur(t,"basename"),this.path=yt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?yt.dirname(this.path):void 0}set dirname(t){Lo(this.basename,"dirname"),this.path=yt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?yt.extname(this.path):void 0}set extname(t){if(Ur(t,"extname"),Lo(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=yt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Fr(t)&&(t=xd(t)),qr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?yt.basename(this.path,this.extname):void 0}set stem(t){qr(t,"stem"),Ur(t,"stem"),this.path=yt.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 Ue(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(yt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yt.sep+"`")}function qr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Lo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function vd(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Sd=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Nd={}.hasOwnProperty;class $r extends Sd{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=pd()}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):Nd.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=Wn(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=Wn(t),l=r.parse(s);r.run(l,s,function(d,u,f){if(d||!u||!f)return c(d);const p=u,g=r.stringify(p,f);Cd(g)?f.value=g:f.result=g,c(d,f)});function c(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),Po("processSync","process",n),r;function i(a,o){n=!0,Oo(a),r=o}}run(t,n,r){Do(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 l=Wn(n);i.run(t,l,c);function c(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),Po("runSync","run",r),i;function a(o,s){Oo(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=Wn(n),i=this.compiler||this.Compiler;return Gr("stringify",i),Do(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")l(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(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...u]=c;l(d,u)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))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(c.plugins),c.settings&&(i.settings=Pr(!0,i.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const u=c[d];a(u)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,d){let u=-1,f=-1;for(;++u<r.length;)if(r[u][0]===c){f=u;break}if(f===-1)r.push([c,...d]);else if(d.length>0){let[p,...g]=d;const h=r[f][1];Br(h)&&Br(p)&&(p=Pr(!0,h,p)),r[f]=[c,p,...g]}}}}const Td=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 Do(e){if(!Br(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Po(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Wn(e){return Ad(e)?e:new Ro(e)}function Ad(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Cd(e){return typeof e=="string"||Id(e)}function Id(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Od="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Bo=[],Fo={allowDangerousHtml:!0},Md=/^(https?|ircs?|mailto|xmpp)$/i,Rd=[{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 Ld(e){const t=Dd(e),n=Pd(e);return Bd(t.runSync(t.parse(n),n),e)}function Dd(e){const t=e.rehypePlugins||Bo,n=e.remarkPlugins||Bo,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Fo}:Fo;return Td().use(hu).use(n).use(cd,r).use(t)}function Pd(e){const t=e.children||"",n=new Ro;return typeof t=="string"&&(n.value=t),n}function Bd(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Fd;for(const d of Rd)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+Od+d.id,void 0);return Gn(e,c),al(e,{Fragment:w.Fragment,components:i,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.jsxs,passKeys:!0,passNode:!0});function c(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],h=Er[p];(h===null||h.includes(d.tagName))&&(d.properties[p]=l(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 Fd(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||Md.test(e.slice(0,t))?e:""}const zo=(function(e,t,n){const r=xn(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]}),Gt=(function(e){if(e==null)return qd;if(typeof e=="string")return Ud(e);if(typeof e=="object")return zd(e);if(typeof e=="function")return Kr(e);throw new Error("Expected function, string, or array as `test`")});function zd(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Gt(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 Ud(e){return Kr(t);function t(n){return n.tagName===e}}function Kr(e){return t;function t(n,r,i){return!!($d(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function qd(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function $d(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Uo=/\n/g,qo=/[\t ]+/g,Vr=Gt("br"),$o=Gt(Xd),Hd=Gt("p"),Ho=Gt("tr"),Gd=Gt(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Zd,Qd]),Go=Gt(["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 Wd(e,t){const n=t||{},r="children"in e?e.children:[],i=Go(e),a=Vo(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...Ko(e,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...Wo(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?Vr(r[s+1]):i}));const l=[];let c;for(s=-1;++s<o.length;){const d=o[s];typeof d=="number"?c!==void 0&&d>c&&(c=d):d&&(c!==void 0&&c>-1&&l.push(`
16
- `.repeat(c)||" "),c=-1,l.push(d))}return l.join("")}function Wo(e,t,n){return e.type==="element"?Kd(e,t,n):e.type==="text"?n.whitespace==="normal"?Ko(e,n):Vd(e):[]}function Kd(e,t,n){const r=Vo(e,n),i=e.children||[];let a=-1,o=[];if(Gd(e))return o;let s,l;for(Vr(e)||Ho(e)&&zo(t,e,Ho)?l=`
17
- `:Hd(e)?(s=2,l=2):Go(e)&&(s=1,l=1);++a<i.length;)o=o.concat(Wo(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?Vr(i[a+1]):l}));return $o(e)&&zo(t,e,$o)&&o.push(" "),s&&o.unshift(s),l&&o.push(l),o}function Ko(e,t){const n=String(e.value),r=[],i=[];let a=0;for(;a<=n.length;){Uo.lastIndex=a;const l=Uo.exec(n),c=l&&"index"in l?l.index:n.length;r.push(Yd(n.slice(a,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,c===n.length?t.breakAfter:!0)),a=c+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 Vd(e){return[String(e.value)]}function Yd(e,t,n){const r=[];let i=0,a;for(;i<e.length;){qo.lastIndex=i;const o=qo.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 Vo(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 Zd(e){return!!(e.properties||{}).hidden}function Xd(e){return e.tagName==="td"||e.tagName==="th"}function Qd(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function jd(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"},c={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(c,{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"],E=["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:E},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,c],U={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},G={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:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,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(U,G,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 Jd(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=jd(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 ep(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 l={match:/\\"/},c={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"],E=["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:E,built_in:[...N,...v,"set","shopt",...O,...R]},contains:[p,e.SHEBANG(),g,u,a,o,b,s,l,c,d,n]}}function tp(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/}]},c={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(c,{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*\\(",E={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,c],N={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:b.concat([{begin:/\(/,end:/\)/,keywords:E,contains:b.concat(["self"]),relevance:0}]),relevance:0},v={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:E,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C",aliases:["h"],keywords:E,disableAutodetect:!0,illegal:"</",contains:[].concat(N,v,b,[u,{begin:e.IDENT_RE+"::",keywords:E},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:u,strings:c,keywords:E}}}function np(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"},c={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(c,{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"],E=["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:E},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,c],U={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},G={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:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:O,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,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(U,G,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 rp(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)*"}),l={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},c={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]},E=e.inherit(h,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});f.contains=[h,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],p.contains=[E,g,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const b={variants:[c,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,l,{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,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},O]}}const ip=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_-]*/}}),op=["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"],ap=["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"],sp=[...op,...ap],lp=["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(),cp=["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(),up=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),dp=["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 pp(e){const t=e.regex,n=ip(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:":("+cp.join("|")+")"},{begin:":(:)?("+up.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+dp.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:lp.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+sp.join("|")+")\\b"}]}}function fp(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 gp(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 hp(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 mp(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},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,d=/'[^']*'/,u=t.either(l,c,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 en="[0-9](_*[0-9])*",Kn=`\\.(${en})`,Vn="[0-9a-fA-F](_*[0-9a-fA-F])*",Yo={className:"number",variants:[{begin:`(\\b(${en})((${Kn})|\\.)?|(${Kn}))[eE][+-]?(${en})[fFdD]?\\b`},{begin:`\\b(${en})((${Kn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Kn})[fFdD]?\\b`},{begin:`\\b(${en})[fFdD]\\b`},{begin:`\\b0[xX]((${Vn})\\.?|(${Vn})?\\.(${Vn}))[pP][+-]?(${en})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Vn})[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 bp(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+Zo("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={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"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,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:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Yo,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Yo,c]}}const Xo="[A-Za-z$_][0-9A-Za-z$_]*",kp=["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"],yp=["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"],jo=["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"],wp=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ep=[].concat(Jo,Qo,jo);function xp(e){const t=e.regex,n=(Q,{after:ke})=>{const m="</"+Q[0].slice(1);return Q.input.indexOf(m,ke)!==-1},r=Xo,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,ke)=>{const m=Q[0].length+Q.index,Ee=Q.input[m];if(Ee==="<"||Ee===","){ke.ignoreMatch();return}Ee===">"&&(n(Q,{after:m})||ke.ignoreMatch());let de;const y=Q.input.substring(m);if(de=y.match(/^\s*=/)){ke.ignoreMatch();return}if((de=y.match(/^\s+extends\s+/))&&de.index===0){ke.ignoreMatch();return}}},s={$pattern:Xo,keyword:kp,literal:yp,built_in:Ep,"variable.language":wp},l="[0-9](_?[0-9])*",c=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\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"}},E={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,E,{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},U={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:{_:[...Qo,...jo]}},H={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:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(Q){return t.concat("(?!",Q.join("|"),")")}const J={match:t.concat(/\b/,P([...Jo,"super","import"].map(Q=>`${Q}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Z={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},q={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},oe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",ae={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(oe)],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:G},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),H,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,h,E,N,{match:/\$\d+/},u,G,{scope:"attr",match:r+t.lookahead(":"),relevance:0},ae,{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:oe,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},Z,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},J,B,U,q,{match:/\$[(.]/}]}}function _p(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 tn="[0-9](_*[0-9])*",Yn=`\\.(${tn})`,Zn="[0-9a-fA-F](_*[0-9a-fA-F])*",vp={className:"number",variants:[{begin:`(\\b(${tn})((${Yn})|\\.)?|(${Yn}))[eE][+-]?(${tn})[fFdD]?\\b`},{begin:`\\b(${tn})((${Yn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Yn})[fFdD]?\\b`},{begin:`\\b(${tn})[fFdD]\\b`},{begin:`\\b0[xX]((${Zn})\\.?|(${Zn})?\\.(${Zn}))[pP][+-]?(${tn})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Zn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Sp(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+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},c=vp,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,l,{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,l,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,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
18
- `},c]}}const Np=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_-]*/}}),Tp=["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"],Ap=["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"],Cp=[...Tp,...Ap],Ip=["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(),ea=["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(),ta=["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(),Mp=ea.concat(ta).sort().reverse();function Rp(e){const t=Np(e),n=Mp,r="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",o=[],s=[],l=function(v){return{className:"string",begin:"~?"+v+".*?"+v}},c=function(v,O,R){return{className:v,begin:O,relevance:R}},d={$pattern:/[a-z-]+/,keyword:r,attribute:Ip.join(" ")},u={begin:"\\(",end:"\\)",contains:s,keywords:d,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,u,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("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("+Op.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}},E={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,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+Cp.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",a,0),c("selector-id","#"+a),c("selector-class","\\."+a,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+ea.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+ta.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,E,N,g,b,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function Lp(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 Dp(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 Pp(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+.-]*/,l={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}]},c={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(c,{contains:[]}),f=e.inherit(d,{contains:[]});c.contains.push(f),d.contains.push(u);let p=[n,l];return[c,d,u,f].forEach(b=>{b.contains=b.contains.concat(p)}),p=p.concat(c,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,c,d,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,l,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function Bp(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"]},l={$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:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function Fp(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*\(.*?\))?/},l={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]},c={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,l],u=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(h,E,b="\\1")=>{const N=b==="\\1"?b:t.concat(b,E);return t.concat(t.concat("(?:",h,")"),E,/(?:\\.|[^\\\/])*?/,N,/(?:\\.|[^\\\/])*?/,b,r)},p=(h,E,b)=>t.concat(t.concat("(?:",h,")"),E,/(?:\\.|[^\\\/])*?/,b,r),g=[l,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}]},c,{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,c]},{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 zp(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:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(Z,q)=>{q.data._beginMatch=Z[1]||Z[2]},"on:end":(Z,q)=>{q.data._beginMatch!==Z[1]&&q.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
19
- ]`,g={scope:"string",variants:[d,c,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},E=["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:(Z=>{const q=[];return Z.forEach(oe=>{q.push(oe),oe.toLowerCase()===oe?q.push(oe.toUpperCase()):q.push(oe.toLowerCase())}),q})(E),built_in:N},R=Z=>Z.map(q=>q.replace(/\|\d+$/,"")),x={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",R(N).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},U=t.concat(r,"\\b(?!\\()"),G={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),U],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),U],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"}}]},H={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},_={relevance:0,begin:/\(/,end:/\)/,keywords:O,contains:[H,o,G,e.C_BLOCK_COMMENT_MODE,g,h,x]},B={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(B);const P=[H,G,e.C_BLOCK_COMMENT_MODE,g,h,x],J={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:E,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:E,keyword:["new","array"]},contains:["self",...P]},...P,{scope:"meta",variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:O,contains:[J,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,B,G,{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",J,o,G,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 Up(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 qp(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function $p(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"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={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,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,d,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,d,c]},{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,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,c]},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})`}]},E={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",l,h,u,e.HASH_COMMENT_MODE]}]};return c.contains=[u,h,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},u,E,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 Hp(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Gp(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 Wp(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]+"},l={begin:"#<",end:">"},c=[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(l,c),relevance:0}].concat(l,c);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 c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(_).concat(c).concat(x)}}function Kp(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"],l=["true","false","Some","None","Ok","Err"],c=["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:l,built_in:c},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:c,type:d}},{className:"punctuation",begin:"->"},a]}}const Vp=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"],Zp=["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"],Xp=[...Yp,...Zp],Qp=["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(),jp=["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(),Jp=["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 tf(e){const t=Vp(e),n=Jp,r=jp,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("+Xp.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:Qp.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 nf(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function rf(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"],l=["add","asc","collation","desc","final","first","last","view"],c=["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=[...c,...l].filter(R=>!d.includes(R)),h={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},E={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:U}={}){const G=U;return x=x||[],R.map(H=>H.match(/\|\d+$/)||x.includes(H)?H:G(H)?`${H}|0`:H)}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,E]}}function na(e){return e?typeof e=="string"?e:e.source:null}function vn(e){return _e("(?=",e,")")}function _e(...e){return e.map(n=>na(n)).join("")}function of(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ve(...e){return"("+(of(e).capture?"":"?:")+e.map(r=>na(r)).join("|")+")"}const Yr=e=>_e(/\b/,e,/\w$/.test(e)?/\b/:/\B/),af=["Protocol","Type"].map(Yr),ra=["init","self"].map(Yr),sf=["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"],ia=["false","nil","true"],lf=["assignment","associativity","higherThan","left","lowerThan","none","right"],cf=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],oa=["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"],aa=Ve(/[/=\-+!*%<>&|^~?]/,/[\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]/),sa=Ve(aa,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Xr=_e(aa,sa,"*"),la=Ve(/[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]/),Xn=Ve(la,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),wt=_e(la,Xn,"*"),Qn=_e(/[A-Z]/,Xn,"*"),uf=["attached","autoclosure",_e(/convention\(/,Ve("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",_e(/objc\(/,wt,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],df=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function pf(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,Ve(...af,...ra)],className:{2:"keyword"}},a={match:_e(/\./,Ve(...Zr)),relevance:0},o=Zr.filter(be=>typeof be=="string").concat(["_|0"]),s=Zr.filter(be=>typeof be!="string").concat(sf).map(Yr),l={variants:[{className:"keyword",match:Ve(...s,...ra)}]},c={$pattern:Ve(/\b\w+/,/#\w+/),keyword:o.concat(cf),literal:ia},d=[i,a,l],u={match:_e(/\./,Ve(...oa)),relevance:0},f={className:"built_in",match:_e(/\b/,Ve(...oa),/(?=\()/)},p=[u,f],g={match:/->/,relevance:0},h={className:"operator",relevance:0,variants:[{match:Xr},{match:`\\.(\\.|${sa})+`}]},E=[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=(be="")=>({className:"subst",variants:[{match:_e(/\\/,be,/[0\\tnr"']/)},{match:_e(/\\/,be,/u\{[0-9a-fA-F]{1,8}\}/)}]}),R=(be="")=>({className:"subst",match:_e(/\\/,be,/[\t ]*(?:[\r\n]|\r\n)/)}),x=(be="")=>({className:"subst",label:"interpol",begin:_e(/\\/,be,/\(/),end:/\)/}),U=(be="")=>({begin:_e(be,/"""/),end:_e(/"""/,be),contains:[O(be),R(be),x(be)]}),G=(be="")=>({begin:_e(be,/"/),end:_e(/"/,be),contains:[O(be),x(be)]}),H={className:"string",variants:[U(),U("#"),U("##"),U("###"),G(),G("#"),G("##"),G("###")]},_=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],B={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:_},P=be=>{const nt=_e(be,/\//),ct=_e(/\//,be);return{begin:nt,end:ct,contains:[..._,{scope:"comment",begin:`#(?!.*${ct})`,end:/$/}]}},J={scope:"regexp",variants:[P("###"),P("##"),P("#"),B]},Z={match:_e(/`/,wt,/`/)},q={className:"variable",match:/\$\d+/},oe={className:"variable",match:`\\$${Xn}+`},ae=[Z,q,oe],Q={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:df,contains:[...E,v,H]}]}},ke={scope:"keyword",match:_e(/@/,Ve(...uf),vn(Ve(/\(/,/\s+/)))},m={scope:"meta",match:_e(/@/,wt)},Ee=[Q,ke,m],de={match:vn(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:_e(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Xn,"+")},{className:"type",match:Qn,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:_e(/\s+&\s+/,vn(Qn)),relevance:0}]},y={begin:/</,end:/>/,keywords:c,contains:[...r,...d,...Ee,g,de]};de.contains.push(y);const Te={match:_e(wt,/\s*:/),keywords:"_|0",relevance:0},et={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",Te,...r,J,...d,...p,...E,v,H,...ae,...Ee,de]},fe={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,de]},lt={begin:Ve(vn(_e(wt,/\s*:/)),vn(_e(wt,/\s+/,wt,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:wt}]},tt={begin:/\(/,end:/\)/,keywords:c,contains:[lt,...r,...d,...E,v,H,...Ee,de,et],endsParent:!0,illegal:/["']/},ht={match:[/(func|macro)/,/\s+/,Ve(Z.match,wt,Xr)],className:{1:"keyword",3:"title.function"},contains:[fe,tt,t],illegal:[/\[/,/%/]},He={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[fe,tt,t],illegal:/\[|%/},Ie={match:[/operator/,/\s+/,Xr],className:{1:"keyword",3:"title"}},Dt={begin:[/precedencegroup/,/\s+/,Qn],className:{1:"keyword",3:"title"},contains:[de],keywords:[...lf,...ia],end:/}/},Ye={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Kt={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Nt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,wt,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[fe,...d,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:Qn},...d],relevance:0}]};for(const be of H.variants){const nt=be.contains.find(Tt=>Tt.label==="interpol");nt.keywords=c;const ct=[...d,...p,...E,v,H,...ae];nt.contains=[...ct,{begin:/\(/,end:/\)/,contains:["self",...ct]}]}return{name:"Swift",keywords:c,contains:[...r,ht,He,Ye,Kt,Nt,Ie,Dt,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},J,...d,...p,...E,v,H,...ae,...Ee,de,et]}}const jn="[A-Za-z$_][0-9A-Za-z$_]*",ca=["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"],ua=["true","false","null","undefined","NaN","Infinity"],da=["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"],pa=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],fa=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ga=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ha=[].concat(fa,da,pa);function ff(e){const t=e.regex,n=(Q,{after:ke})=>{const m="</"+Q[0].slice(1);return Q.input.indexOf(m,ke)!==-1},r=jn,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,ke)=>{const m=Q[0].length+Q.index,Ee=Q.input[m];if(Ee==="<"||Ee===","){ke.ignoreMatch();return}Ee===">"&&(n(Q,{after:m})||ke.ignoreMatch());let de;const y=Q.input.substring(m);if(de=y.match(/^\s*=/)){ke.ignoreMatch();return}if((de=y.match(/^\s+extends\s+/))&&de.index===0){ke.ignoreMatch();return}}},s={$pattern:jn,keyword:ca,literal:ua,built_in:ha,"variable.language":ga},l="[0-9](_?[0-9])*",c=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\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"}},E={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,E,{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},U={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:{_:[...da,...pa]}},H={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:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(Q){return t.concat("(?!",Q.join("|"),")")}const J={match:t.concat(/\b/,P([...fa,"super","import"].map(Q=>`${Q}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},Z={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},q={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},oe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",ae={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(oe)],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:G},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),H,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,h,E,N,{match:/\$\d+/},u,G,{scope:"attr",match:r+t.lookahead(":"),relevance:0},ae,{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:oe,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},Z,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},J,B,U,q,{match:/\$[(.]/}]}}function gf(e){const t=e.regex,n=ff(e),r=jn,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['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:jn,keyword:ca.concat(l),literal:ua,built_in:ha.concat(i),"variable.language":ga},d={className:"meta",begin:"@"+r},u=(h,E,b)=>{const N=h.contains.findIndex(v=>v.label===E);if(N===-1)throw new Error("can not find mode to replace");h.contains.splice(N,1,b)};Object.assign(n.keywords,c),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 hf(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}/,l={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),/ *#/)}]},c={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,l,c,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 mf(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/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={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,l,c,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"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={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,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],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:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function kf(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},E=[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=[...E];return b.pop(),b.push(s),p.contains=b,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:E}}const yf={arduino:Jd,bash:ep,c:tp,cpp:np,csharp:rp,css:pp,diff:fp,go:gp,graphql:hp,ini:mp,java:bp,javascript:xp,json:_p,kotlin:Sp,less:Rp,lua:Lp,makefile:Dp,markdown:Pp,objectivec:Bp,perl:Fp,php:zp,"php-template":Up,plaintext:qp,python:$p,"python-repl":Hp,r:Gp,ruby:Wp,rust:Kp,scss:tf,shell:nf,sql:rf,swift:pf,typescript:gf,vbnet:hf,wasm:mf,xml:bf,yaml:kf};var Qr,ma;function wf(){if(ma)return Qr;ma=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 L=k[T],ee=typeof L;(ee==="object"||ee==="function")&&!Object.isFrozen(L)&&e(L)}),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 L=Object.create(null);for(const ee in k)L[ee]=k[ee];return T.forEach(function(ee){for(const Oe in ee)L[Oe]=ee[Oe]}),L}const i="</span>",a=k=>!!k.scope,o=(k,{prefix:T})=>{if(k.startsWith("language:"))return k.replace("language:","language-");if(k.includes(".")){const L=k.split(".");return[`${T}${L.shift()}`,...L.map((ee,Oe)=>`${ee}${"_".repeat(Oe+1)}`)].join(" ")}return`${T}${k}`};class s{constructor(T,L){this.buffer="",this.classPrefix=L.classPrefix,T.walk(this)}addText(T){this.buffer+=n(T)}openNode(T){if(!a(T))return;const L=o(T.scope,{prefix:this.classPrefix});this.span(L)}closeNode(T){a(T)&&(this.buffer+=i)}value(){return this.buffer}span(T){this.buffer+=`<span class="${T}">`}}const l=(k={})=>{const T={children:[]};return Object.assign(T,k),T};class c{constructor(){this.rootNode=l(),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 L=l({scope:T});this.add(L),this.stack.push(L)}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,L){return typeof L=="string"?T.addText(L):L.children&&(T.openNode(L),L.children.forEach(ee=>this._walk(T,ee)),T.closeNode(L)),T}static _collapse(T){typeof T!="string"&&T.children&&(T.children.every(L=>typeof L=="string")?T.children=[T.children.join("")]:T.children.forEach(L=>{c._collapse(L)}))}}class d extends c{constructor(T){super(),this.options=T}addText(T){T!==""&&this.add(T)}startScope(T){this.openNode(T)}endScope(){this.closeNode()}__addSublanguage(T,L){const ee=T.root;L&&(ee.scope=`language:${L}`),this.add(ee)}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(L=>u(L)).join("")}function E(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"("+(E(k).capture?"":"?:")+k.map(ee=>u(ee)).join("|")+")"}function N(k){return new RegExp(k.toString()+"|").exec("").length-1}function v(k,T){const L=k&&k.exec(T);return L&&L.index===0}const O=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function R(k,{joinWith:T}){let L=0;return k.map(ee=>{L+=1;const Oe=L;let we=u(ee),$="";for(;we.length>0;){const z=O.exec(we);if(!z){$+=we;break}$+=we.substring(0,z.index),we=we.substring(z.index+z[0].length),z[0][0]==="\\"&&z[1]?$+="\\"+String(Number(z[1])+Oe):($+=z[0],z[0]==="("&&L++)}return $}).map(ee=>`(${ee})`).join(T)}const x=/\b\B/,U="[a-zA-Z]\\w*",G="[a-zA-Z_]\\w*",H="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",B="\\b(0b[01]+)",P="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",J=(k={})=>{const T=/^#![ ]*\//;return k.binary&&(k.begin=h(T,/.*\b/,k.binary,/\b.*/)),r({scope:"meta",begin:T,end:/$/,relevance:0,"on:begin":(L,ee)=>{L.index!==0&&ee.ignoreMatch()}},k)},Z={begin:"\\\\[\\s\\S]",relevance:0},q={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Z]},oe={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Z]},ae={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/},Q=function(k,T,L={}){const ee=r({scope:"comment",begin:k,end:T,contains:[]},L);ee.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 Oe=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 ee.contains.push({begin:h(/[ ]+/,"(",Oe,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),ee},ke=Q("//","$"),m=Q("/\\*","\\*/"),Ee=Q("#","$"),de={scope:"number",begin:H,relevance:0},y={scope:"number",begin:_,relevance:0},Te={scope:"number",begin:B,relevance:0},et={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Z,{begin:/\[/,end:/\]/,relevance:0,contains:[Z]}]},fe={scope:"title",begin:U,relevance:0},lt={scope:"title",begin:G,relevance:0},tt={begin:"\\.\\s*"+G,relevance:0};var He=Object.freeze({__proto__:null,APOS_STRING_MODE:q,BACKSLASH_ESCAPE:Z,BINARY_NUMBER_MODE:Te,BINARY_NUMBER_RE:B,COMMENT:Q,C_BLOCK_COMMENT_MODE:m,C_LINE_COMMENT_MODE:ke,C_NUMBER_MODE:y,C_NUMBER_RE:_,END_SAME_AS_BEGIN:function(k){return Object.assign(k,{"on:begin":(T,L)=>{L.data._beginMatch=T[1]},"on:end":(T,L)=>{L.data._beginMatch!==T[1]&&L.ignoreMatch()}})},HASH_COMMENT_MODE:Ee,IDENT_RE:U,MATCH_NOTHING_RE:x,METHOD_GUARD:tt,NUMBER_MODE:de,NUMBER_RE:H,PHRASAL_WORDS_MODE:ae,QUOTE_STRING_MODE:oe,REGEXP_MODE:et,RE_STARTERS_RE:P,SHEBANG:J,TITLE_MODE:fe,UNDERSCORE_IDENT_RE:G,UNDERSCORE_TITLE_MODE:lt});function Ie(k,T){k.input[k.index-1]==="."&&T.ignoreMatch()}function Dt(k,T){k.className!==void 0&&(k.scope=k.className,delete k.className)}function Ye(k,T){T&&k.beginKeywords&&(k.begin="\\b("+k.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",k.__beforeBegin=Ie,k.keywords=k.keywords||k.beginKeywords,delete k.beginKeywords,k.relevance===void 0&&(k.relevance=0))}function Kt(k,T){Array.isArray(k.illegal)&&(k.illegal=b(...k.illegal))}function Nt(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 be(k,T){k.relevance===void 0&&(k.relevance=1)}const nt=(k,T)=>{if(!k.beforeMatch)return;if(k.starts)throw new Error("beforeMatch cannot be used with starts");const L=Object.assign({},k);Object.keys(k).forEach(ee=>{delete k[ee]}),k.keywords=L.keywords,k.begin=h(L.beforeMatch,f(L.begin)),k.starts={relevance:0,contains:[Object.assign(L,{endsParent:!0})]},k.relevance=0,delete L.beforeMatch},ct=["of","and","for","in","not","or","if","then","parent","list","value"],Tt="keyword";function At(k,T,L=Tt){const ee=Object.create(null);return typeof k=="string"?Oe(L,k.split(" ")):Array.isArray(k)?Oe(L,k):Object.keys(k).forEach(function(we){Object.assign(ee,At(k[we],T,we))}),ee;function Oe(we,$){T&&($=$.map(z=>z.toLowerCase())),$.forEach(function(z){const Y=z.split("|");ee[Y[0]]=[we,Tn(Y[0],Y[1])]})}}function Tn(k,T){return T?Number(T):Ct(k)?0:1}function Ct(k){return ct.includes(k.toLowerCase())}const _t={},Re=k=>{console.error(k)},Be=(k,...T)=>{console.log(`WARN: ${k}`,...T)},S=(k,T)=>{_t[`${k}/${T}`]||(console.log(`Deprecated as of ${k}. ${T}`),_t[`${k}/${T}`]=!0)},M=new Error;function j(k,T,{key:L}){let ee=0;const Oe=k[L],we={},$={};for(let z=1;z<=T.length;z++)$[z+ee]=Oe[z],we[z+ee]=!0,ee+=N(T[z-1]);k[L]=$,k[L]._emit=we,k[L]._multi=!0}function se(k){if(Array.isArray(k.begin)){if(k.skip||k.excludeBegin||k.returnBegin)throw Re("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),M;if(typeof k.beginScope!="object"||k.beginScope===null)throw Re("beginScope must be object"),M;j(k,k.begin,{key:"beginScope"}),k.begin=R(k.begin,{joinWith:""})}}function ye(k){if(Array.isArray(k.end)){if(k.skip||k.excludeEnd||k.returnEnd)throw Re("skip, excludeEnd, returnEnd not compatible with endScope: {}"),M;if(typeof k.endScope!="object"||k.endScope===null)throw Re("endScope must be object"),M;j(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 rt(k){Ge(k),typeof k.beginScope=="string"&&(k.beginScope={_wrap:k.beginScope}),typeof k.endScope=="string"&&(k.endScope={_wrap:k.endScope}),se(k),ye(k)}function Ze(k){function T($,z){return new RegExp(u($),"m"+(k.case_insensitive?"i":"")+(k.unicodeRegex?"u":"")+(z?"g":""))}class L{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(z,Y){Y.position=this.position++,this.matchIndexes[this.matchAt]=Y,this.regexes.push([Y,z]),this.matchAt+=N(z)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const z=this.regexes.map(Y=>Y[1]);this.matcherRe=T(R(z,{joinWith:"|"}),!0),this.lastIndex=0}exec(z){this.matcherRe.lastIndex=this.lastIndex;const Y=this.matcherRe.exec(z);if(!Y)return null;const le=Y.findIndex((kt,dt)=>dt>0&&kt!==void 0),Ae=this.matchIndexes[le];return Y.splice(0,le),Object.assign(Y,Ae)}}class ee{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(z){if(this.multiRegexes[z])return this.multiRegexes[z];const Y=new L;return this.rules.slice(z).forEach(([le,Ae])=>Y.addRule(le,Ae)),Y.compile(),this.multiRegexes[z]=Y,Y}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(z,Y){this.rules.push([z,Y]),Y.type==="begin"&&this.count++}exec(z){const Y=this.getMatcher(this.regexIndex);Y.lastIndex=this.lastIndex;let le=Y.exec(z);if(this.resumingScanAtSamePosition()&&!(le&&le.index===this.lastIndex)){const Ae=this.getMatcher(0);Ae.lastIndex=this.lastIndex+1,le=Ae.exec(z)}return le&&(this.regexIndex+=le.position+1,this.regexIndex===this.count&&this.considerAll()),le}}function Oe($){const z=new ee;return $.contains.forEach(Y=>z.addRule(Y.begin,{rule:Y,type:"begin"})),$.terminatorEnd&&z.addRule($.terminatorEnd,{type:"end"}),$.illegal&&z.addRule($.illegal,{type:"illegal"}),z}function we($,z){const Y=$;if($.isCompiled)return Y;[Dt,Nt,rt,nt].forEach(Ae=>Ae($,z)),k.compilerExtensions.forEach(Ae=>Ae($,z)),$.__beforeBegin=null,[Ye,Kt,be].forEach(Ae=>Ae($,z)),$.isCompiled=!0;let le=null;return typeof $.keywords=="object"&&$.keywords.$pattern&&($.keywords=Object.assign({},$.keywords),le=$.keywords.$pattern,delete $.keywords.$pattern),le=le||/\w+/,$.keywords&&($.keywords=At($.keywords,k.case_insensitive)),Y.keywordPatternRe=T(le,!0),z&&($.begin||($.begin=/\B|\b/),Y.beginRe=T(Y.begin),!$.end&&!$.endsWithParent&&($.end=/\B|\b/),$.end&&(Y.endRe=T(Y.end)),Y.terminatorEnd=u(Y.end)||"",$.endsWithParent&&z.terminatorEnd&&(Y.terminatorEnd+=($.end?"|":"")+z.terminatorEnd)),$.illegal&&(Y.illegalRe=T($.illegal)),$.contains||($.contains=[]),$.contains=[].concat(...$.contains.map(function(Ae){return mt(Ae==="self"?$:Ae)})),$.contains.forEach(function(Ae){we(Ae,Y)}),$.starts&&we($.starts,z),Y.matcher=Oe(Y),Y}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||{}),we(k)}function ut(k){return k?k.endsWithParent||ut(k.starts):!1}function mt(k){return k.variants&&!k.cachedVariants&&(k.cachedVariants=k.variants.map(function(T){return r(k,{variants:null},T)})),k.cachedVariants?k.cachedVariants:ut(k)?r(k,{starts:k.starts?r(k.starts):null}):Object.isFrozen(k)?r(k):k}var De="11.11.1";class bt extends Error{constructor(T,L){super(T),this.name="HTMLInjectionError",this.html=L}}const Xe=n,Vt=r,An=Symbol("nomatch"),li=7,nr=function(k){const T=Object.create(null),L=Object.create(null),ee=[];let Oe=!0;const we="Could not find the language '{}', did you forget to load/include a language module?",$={disableAutodetect:!0,name:"Plain text",contains:[]};let z={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function Y(A){return z.noHighlightRe.test(A)}function le(A){let K=A.className+" ";K+=A.parentNode?A.parentNode.className:"";const ge=z.languageDetectRe.exec(K);if(ge){const ve=Le(ge[1]);return ve||(Be(we.replace("{}",ge[1])),Be("Falling back to no-highlight mode for this block.",A)),ve?ge[1]:"no-highlight"}return K.split(/\s+/).find(ve=>Y(ve)||Le(ve))}function Ae(A,K,ge){let ve="",C="";typeof K=="object"?(ve=A,ge=K.ignoreIllegals,C=K.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`),C=A,ve=K),ge===void 0&&(ge=!0);const X={code:ve,language:C};Pt("before:highlight",X);const ne=X.result?X.result:kt(X.language,X.code,ge);return ne.code=X.code,Pt("after:highlight",ne),ne}function kt(A,K,ge,ve){const C=Object.create(null);function X(D,W){return D.keywords[W]}function ne(){if(!re.keywords){ze.addText(Ce);return}let D=0;re.keywordPatternRe.lastIndex=0;let W=re.keywordPatternRe.exec(Ce),ue="";for(;W;){ue+=Ce.substring(D,W.index);const xe=vt.case_insensitive?W[0].toLowerCase():W[0],We=X(re,xe);if(We){const[Mt,pm]=We;if(ze.addText(ue),ue="",C[xe]=(C[xe]||0)+1,C[xe]<=li&&(ar+=pm),Mt.startsWith("_"))ue+=W[0];else{const fm=vt.classNameAliases[Mt]||Mt;he(W[0],fm)}}else ue+=W[0];D=re.keywordPatternRe.lastIndex,W=re.keywordPatternRe.exec(Ce)}ue+=Ce.substring(D),ze.addText(ue)}function ie(){if(Ce==="")return;let D=null;if(typeof re.subLanguage=="string"){if(!T[re.subLanguage]){ze.addText(Ce);return}D=kt(re.subLanguage,Ce,!0,ls[re.subLanguage]),ls[re.subLanguage]=D._top}else D=sn(Ce,re.subLanguage.length?re.subLanguage:null);re.relevance>0&&(ar+=D.relevance),ze.__addSublanguage(D._emitter,D.language)}function ce(){re.subLanguage!=null?ie():ne(),Ce=""}function he(D,W){D!==""&&(ze.startScope(W),ze.addText(D),ze.endScope())}function pt(D,W){let ue=1;const xe=W.length-1;for(;ue<=xe;){if(!D._emit[ue]){ue++;continue}const We=vt.classNameAliases[D[ue]]||D[ue],Mt=W[ue];We?he(Mt,We):(Ce=Mt,ne(),Ce=""),ue++}}function Ot(D,W){return D.scope&&typeof D.scope=="string"&&ze.openNode(vt.classNameAliases[D.scope]||D.scope),D.beginScope&&(D.beginScope._wrap?(he(Ce,vt.classNameAliases[D.beginScope._wrap]||D.beginScope._wrap),Ce=""):D.beginScope._multi&&(pt(D.beginScope,W),Ce="")),re=Object.create(D,{parent:{value:re}}),re}function Fe(D,W,ue){let xe=v(D.endRe,ue);if(xe){if(D["on:end"]){const We=new t(D);D["on:end"](W,We),We.isMatchIgnored&&(xe=!1)}if(xe){for(;D.endsParent&&D.parent;)D=D.parent;return D}}if(D.endsWithParent)return Fe(D.parent,W,ue)}function un(D){return re.matcher.regexIndex===0?(Ce+=D[0],1):(mi=!0,0)}function Zt(D){const W=D[0],ue=D.rule,xe=new t(ue),We=[ue.__beforeBegin,ue["on:begin"]];for(const Mt of We)if(Mt&&(Mt(D,xe),xe.isMatchIgnored))return un(W);return ue.skip?Ce+=W:(ue.excludeBegin&&(Ce+=W),ce(),!ue.returnBegin&&!ue.excludeBegin&&(Ce=W)),Ot(ue,D),ue.returnBegin?0:W.length}function Bt(D){const W=D[0],ue=K.substring(D.index),xe=Fe(re,D,ue);if(!xe)return An;const We=re;re.endScope&&re.endScope._wrap?(ce(),he(W,re.endScope._wrap)):re.endScope&&re.endScope._multi?(ce(),pt(re.endScope,D)):We.skip?Ce+=W:(We.returnEnd||We.excludeEnd||(Ce+=W),ce(),We.excludeEnd&&(Ce=W));do re.scope&&ze.closeNode(),!re.skip&&!re.subLanguage&&(ar+=re.relevance),re=re.parent;while(re!==xe.parent);return xe.starts&&Ot(xe.starts,D),We.returnEnd?0:W.length}function fi(){const D=[];for(let W=re;W!==vt;W=W.parent)W.scope&&D.unshift(W.scope);D.forEach(W=>ze.openNode(W))}let dn={};function ss(D,W){const ue=W&&W[0];if(Ce+=D,ue==null)return ce(),0;if(dn.type==="begin"&&W.type==="end"&&dn.index===W.index&&ue===""){if(Ce+=K.slice(W.index,W.index+1),!Oe){const xe=new Error(`0 width match regex (${A})`);throw xe.languageName=A,xe.badRule=dn.rule,xe}return 1}if(dn=W,W.type==="begin")return Zt(W);if(W.type==="illegal"&&!ge){const xe=new Error('Illegal lexeme "'+ue+'" for mode "'+(re.scope||"<unnamed>")+'"');throw xe.mode=re,xe}else if(W.type==="end"){const xe=Bt(W);if(xe!==An)return xe}if(W.type==="illegal"&&ue==="")return Ce+=`
21
- `,1;if(hi>1e5&&hi>W.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ce+=ue,ue.length}const vt=Le(A);if(!vt)throw Re(we.replace("{}",A)),new Error('Unknown language: "'+A+'"');const dm=Ze(vt);let gi="",re=ve||dm;const ls={},ze=new z.__emitter(z);fi();let Ce="",ar=0,Xt=0,hi=0,mi=!1;try{if(vt.__emitTokens)vt.__emitTokens(K,ze);else{for(re.matcher.considerAll();;){hi++,mi?mi=!1:re.matcher.considerAll(),re.matcher.lastIndex=Xt;const D=re.matcher.exec(K);if(!D)break;const W=K.substring(Xt,D.index),ue=ss(W,D);Xt=D.index+ue}ss(K.substring(Xt))}return ze.finalize(),gi=ze.toHTML(),{language:A,value:gi,relevance:ar,illegal:!1,_emitter:ze,_top:re}}catch(D){if(D.message&&D.message.includes("Illegal"))return{language:A,value:Xe(K),illegal:!0,relevance:0,_illegalBy:{message:D.message,index:Xt,context:K.slice(Xt-100,Xt+100),mode:D.mode,resultSoFar:gi},_emitter:ze};if(Oe)return{language:A,value:Xe(K),illegal:!1,relevance:0,errorRaised:D,_emitter:ze,_top:re};throw D}}function dt(A){const K={value:Xe(A),illegal:!1,relevance:0,_top:$,_emitter:new z.__emitter(z)};return K._emitter.addText(A),K}function sn(A,K){K=K||z.languages||Object.keys(T);const ge=dt(A),ve=K.filter(Le).filter(It).map(ce=>kt(ce,A,!1));ve.unshift(ge);const C=ve.sort((ce,he)=>{if(ce.relevance!==he.relevance)return he.relevance-ce.relevance;if(ce.language&&he.language){if(Le(ce.language).supersetOf===he.language)return 1;if(Le(he.language).supersetOf===ce.language)return-1}return 0}),[X,ne]=C,ie=X;return ie.secondBest=ne,ie}function Cn(A,K,ge){const ve=K&&L[K]||ge;A.classList.add("hljs"),A.classList.add(`language-${ve}`)}function In(A){let K=null;const ge=le(A);if(Y(ge))return;if(Pt("before:highlightElement",{el:A,language:ge}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(z.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)),z.throwUnescapedHTML))throw new bt("One of your code blocks includes unescaped HTML.",A.innerHTML);K=A;const ve=K.textContent,C=ge?Ae(ve,{language:ge,ignoreIllegals:!0}):sn(ve);A.innerHTML=C.value,A.dataset.highlighted="yes",Cn(A,ge,C.language),A.result={language:C.language,re:C.relevance,relevance:C.relevance},C.secondBest&&(A.secondBest={language:C.secondBest.language,relevance:C.secondBest.relevance}),Pt("after:highlightElement",{el:A,result:C,text:ve})}function ci(A){z=Vt(z,A)}const ln=()=>{cn(),S("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function On(){cn(),S("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let rr=!1;function cn(){function A(){cn()}if(document.readyState==="loading"){rr||window.addEventListener("DOMContentLoaded",A,!1),rr=!0;return}document.querySelectorAll(z.cssSelector).forEach(In)}function ir(A,K){let ge=null;try{ge=K(k)}catch(ve){if(Re("Language definition for '{}' could not be registered.".replace("{}",A)),Oe)Re(ve);else throw ve;ge=$}ge.name||(ge.name=A),T[A]=ge,ge.rawDefinition=K.bind(null,k),ge.aliases&&Mn(ge.aliases,{languageName:A})}function Yt(A){delete T[A];for(const K of Object.keys(L))L[K]===A&&delete L[K]}function Qe(){return Object.keys(T)}function Le(A){return A=(A||"").toLowerCase(),T[A]||T[L[A]]}function Mn(A,{languageName:K}){typeof A=="string"&&(A=[A]),A.forEach(ge=>{L[ge.toLowerCase()]=K})}function It(A){const K=Le(A);return K&&!K.disableAutodetect}function ui(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=K=>{A["before:highlightBlock"](Object.assign({block:K.el},K))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=K=>{A["after:highlightBlock"](Object.assign({block:K.el},K))})}function di(A){ui(A),ee.push(A)}function pi(A){const K=ee.indexOf(A);K!==-1&&ee.splice(K,1)}function Pt(A,K){const ge=A;ee.forEach(function(ve){ve[ge]&&ve[ge](K)})}function or(A){return S("10.7.0","highlightBlock will be removed entirely in v12.0"),S("10.7.0","Please use highlightElement now."),In(A)}Object.assign(k,{highlight:Ae,highlightAuto:sn,highlightAll:cn,highlightElement:In,highlightBlock:or,configure:ci,initHighlighting:ln,initHighlightingOnLoad:On,registerLanguage:ir,unregisterLanguage:Yt,listLanguages:Qe,getLanguage:Le,registerAliases:Mn,autoDetection:It,inherit:Vt,addPlugin:di,removePlugin:pi}),k.debugMode=function(){Oe=!1},k.safeMode=function(){Oe=!0},k.versionString=De,k.regex={concat:h,lookahead:f,either:b,optional:g,anyNumberOfTimes:p};for(const A in He)typeof He[A]=="object"&&e(He[A]);return Object.assign(k,He),k},Pe=nr({});return Pe.newInstance=()=>nr({}),Qr=Pe,Pe.HighlightJS=Pe,Pe.default=Pe,Qr}var Ef=wf();const xf=hr(Ef),ba={},_f="hljs-";function vf(e){const t=xf.newInstance();return e&&a(e),{highlight:n,highlightAuto:r,listLanguages:i,register:a,registerAlias:o,registered:s};function n(l,c,d){const u=d||ba,f=typeof u.prefix=="string"?u.prefix:_f;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:Sf,classPrefix:f});const p=t.highlight(c,{ignoreIllegals:!0,language:l});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(l,c){const u=(c||ba).subset||i();let f=-1,p=0,g;for(;++f<u.length;){const h=u[f];if(!t.getLanguage(h))continue;const E=n(h,l,c);E.data&&E.data.relevance!==void 0&&E.data.relevance>p&&(p=E.data.relevance,g=E)}return g||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function a(l,c){if(typeof l=="string")t.registerLanguage(l,c);else{let d;for(d in l)Object.hasOwn(l,d)&&t.registerLanguage(d,l[d])}}function o(l,c){if(typeof l=="string")t.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let d;for(d in l)if(Object.hasOwn(l,d)){const u=l[d];t.registerAliases(typeof u=="string"?u:[...u],{languageName:d})}}}function s(l){return!!t.getLanguage(l)}}class Sf{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 Nf={};function Tf(e){const t=e||Nf,n=t.aliases,r=t.detect||!1,i=t.languages||yf,a=t.plainText,o=t.prefix,s=t.subset;let l="hljs";const c=vf(i);if(n&&c.registerAlias(n),o){const d=o.indexOf("-");l=d===-1?o:o.slice(0,d)}return function(d,u){Gn(d,"element",function(f,p,g){if(f.tagName!=="code"||!g||g.type!=="element"||g.tagName!=="pre")return;const h=Af(f);if(h===!1||!h&&!r||h&&a&&a.includes(h))return;Array.isArray(f.properties.className)||(f.properties.className=[]),f.properties.className.includes(l)||f.properties.className.unshift(l);const E=Wd(f,{whitespace:"pre"});let b;try{b=h?c.highlight(h,E,{prefix:o}):c.highlightAuto(E,{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 Af(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 ka(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 Cf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function If(e,t,n){const i=xn((n||{}).ignore||[]),a=Of(t);let o=-1;for(;++o<a.length;)Ao(e,"text",s);function s(c,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 l(c,d)}function l(c,d){const u=d[d.length-1],f=a[o][0],p=a[o][1];let g=0;const E=u.children.indexOf(c);let b=!1,N=[];f.lastIndex=0;let v=f.exec(c.value);for(;v;){const O=v.index,R={index:v.index,input:v.input,stack:[...d,c]};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:c.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(c.value)}return b?(g<c.value.length&&N.push({type:"text",value:c.value.slice(g)}),u.children.splice(E,1,...N)):N=[c],E+N.length}}function Of(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([Mf(i[0]),Rf(i[1])])}return t}function Mf(e){return typeof e=="string"?new RegExp(Cf(e),"g"):e}function Rf(e){return typeof e=="function"?e:function(){return e}}const jr="phrasing",Jr=["autolink","link","image","label"];function Lf(){return{transforms:[qf],enter:{literalAutolink:Pf,literalAutolinkEmail:ei,literalAutolinkHttp:ei,literalAutolinkWww:ei},exit:{literalAutolink:Uf,literalAutolinkEmail:zf,literalAutolinkHttp:Bf,literalAutolinkWww:Ff}}}function Df(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:jr,notInConstruct:Jr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:jr,notInConstruct:Jr},{character:":",before:"[ps]",after:"\\/",inConstruct:jr,notInConstruct:Jr}]}}function Pf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ei(e){this.config.enter.autolinkProtocol.call(this,e)}function Bf(e){this.config.exit.autolinkProtocol.call(this,e)}function Ff(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 zf(e){this.config.exit.autolinkEmail.call(this,e)}function Uf(e){this.exit(e)}function qf(e){If(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$f],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Hf]],{ignore:["link","linkReference"]})}function $f(e,t,n,r,i){let a="";if(!ya(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Gf(n)))return!1;const o=Wf(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 Hf(e,t,n,r){return!ya(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Gf(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 Wf(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=ka(e,"(");let a=ka(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 ya(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||$t(n)||Dn(n))&&(!t||n!==47)}wa.peek=eg;function Kf(){this.buffer()}function Vf(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Yf(){this.buffer()}function Zf(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Xf(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=gt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Qf(e){this.exit(e)}function jf(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=gt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Jf(e){this.exit(e)}function eg(){return"["}function wa(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 tg(){return{enter:{gfmFootnoteCallString:Kf,gfmFootnoteCall:Vf,gfmFootnoteDefinitionLabelString:Yf,gfmFootnoteDefinition:Zf},exit:{gfmFootnoteCallString:Xf,gfmFootnoteCall:Qf,gfmFootnoteDefinitionLabelString:jf,gfmFootnoteDefinition:Jf}}}function ng(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:wa},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const s=a.createTracker(o);let l=s.move("[^");const c=a.enter("footnoteDefinition"),d=a.enter("label");return l+=s.move(a.safe(a.associationId(r),{before:l,after:"]"})),d(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
22
- `:" ")+a.indentLines(a.containerFlow(r,s.current()),t?Ea:rg))),c(),l}}function rg(e,t,n){return t===0?e:Ea(e,t,n)}function Ea(e,t,n){return(n?"":" ")+e}const ig=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];xa.peek=cg;function og(){return{canContainEols:["delete"],enter:{strikethrough:sg},exit:{strikethrough:lg}}}function ag(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ig}],handlers:{delete:xa}}}function sg(e){this.enter({type:"delete",children:[]},e)}function lg(e){this.exit(e)}function xa(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 cg(){return"~"}function ug(e){return e.length}function dg(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||ug,a=[],o=[],s=[],l=[];let c=0,d=-1;for(;++d<e.length;){const h=[],E=[];let b=-1;for(e[d].length>c&&(c=e[d].length);++b<e[d].length;){const N=pg(e[d][b]);if(n.alignDelimiters!==!1){const v=i(N);E[b]=v,(l[b]===void 0||v>l[b])&&(l[b]=v)}h.push(N)}o[d]=h,s[d]=E}let u=-1;if(typeof r=="object"&&"length"in r)for(;++u<c;)a[u]=_a(r[u]);else{const h=_a(r);for(;++u<c;)a[u]=h}u=-1;const f=[],p=[];for(;++u<c;){const h=a[u];let E="",b="";h===99?(E=":",b=":"):h===108?E=":":h===114&&(b=":");let N=n.alignDelimiters===!1?1:Math.max(1,l[u]-E.length-b.length);const v=E+"-".repeat(N)+b;n.alignDelimiters!==!1&&(N=E.length+N+b.length,N>l[u]&&(l[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],E=s[d];u=-1;const b=[];for(;++u<c;){const N=h[u]||"";let v="",O="";if(n.alignDelimiters!==!1){const R=l[u]-(E[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!==c-1)&&b.push("|")}g.push(n.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return g.join(`
23
- `)}function pg(e){return e==null?"":String(e)}function _a(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 fg(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()),gg);return i(),o}function gg(e,t,n){return">"+(n?"":" ")+e}function hg(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 Sa(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
24
- `&&hg(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
25
- `}function mg(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 kg(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 yg(e,t,n,r){const i=kg(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(bg(e,n)){const u=n.enter("codeIndented"),f=n.indentLines(a,wg);return u(),f}const s=n.createTracker(r),l=i.repeat(Math.max(mg(a,i)+1,3)),c=n.enter("codeFenced");let d=s.move(l);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 Po(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Bo(e,t){const n=sd(e,t),r=n.one(e,void 0),i=Qu(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 pd(e,t){return e&&"run"in e?async function(n,r){const i=Bo(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Bo(n,{file:r,...e||t})}}function Fo(e){if(e)throw e}var $r,zo;function fd(){if(zo)return $r;zo=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},a=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),u=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!u)return!1;var f;for(f in c);return typeof f>"u"||e.call(c,f)},o=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},s=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return $r=function l(){var c,d,u,f,p,g,h=arguments[0],x=1,w=arguments.length,E=!1;for(typeof h=="boolean"&&(E=h,h=arguments[1]||{},x=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});x<w;++x)if(c=arguments[x],c!=null)for(d in c)u=s(h,d),f=s(c,d),h!==f&&(E&&f&&(a(f)||(p=i(f)))?(p?(p=!1,g=u&&i(u)?u:[]):g=u&&a(u)?u:{},o(h,{name:d,newValue:l(E,g,f)})):typeof f<"u"&&o(h,{name:d,newValue:f}));return h},$r}var gd=fd();const Hr=Er(gd);function Gr(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 hd(){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(l,...c){const d=e[++a];let u=-1;if(l){o(l);return}for(;++u<i.length;)(c[u]===null||c[u]===void 0)&&(c[u]=i[u]);i=c,d?md(d,s)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function md(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(c){const d=c;if(s&&n)throw d;return i(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){n||(n=!0,t(o,...s))}function a(o){i(null,o)}}const vt={basename:bd,dirname:kd,extname:yd,join:wd,sep:"/"};function bd(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Sn(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 kd(e){if(Sn(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 yd(e){Sn(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 wd(...e){let t=-1,n;for(;++t<e.length;)Sn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":xd(n)}function xd(e){Sn(e);const t=e.codePointAt(0)===47;let n=Ed(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ed(e,t){let n="",r=0,i=-1,a=0,o=-1,s,l;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(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),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 Sn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _d={cwd:vd};function vd(){return"/"}function Wr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Sd(e){if(typeof e=="string")e=new URL(e);else if(!Wr(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 Nd(e)}function Nd(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 Vr=["history","path","basename","stem","extname","dirname"];class Uo{constructor(t){let n;t?Wr(t)?n={path:t}:typeof t=="string"||Td(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":_d.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Vr.length;){const a=Vr[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)Vr.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?vt.basename(this.path):void 0}set basename(t){Yr(t,"basename"),Kr(t,"basename"),this.path=vt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?vt.dirname(this.path):void 0}set dirname(t){qo(this.basename,"dirname"),this.path=vt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?vt.extname(this.path):void 0}set extname(t){if(Kr(t,"extname"),qo(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=vt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Wr(t)&&(t=Sd(t)),Yr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?vt.basename(this.path,this.extname):void 0}set stem(t){Yr(t,"stem"),Kr(t,"stem"),this.path=vt.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 We(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 Kr(e,t){if(e&&e.includes(vt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+vt.sep+"`")}function Yr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function qo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Td(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ad=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Cd={}.hasOwnProperty;class Zr extends Ad{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=hd()}copy(){const t=new Zr;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Hr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(jr("data",this.frozen),this.namespace[t]=n,this):Cd.call(this.namespace,t)&&this.namespace[t]||void 0:t?(jr("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 Xr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Xr("process",this.parser||this.Parser),Qr("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,o){const s=Zn(t),l=r.parse(s);r.run(l,s,function(d,u,f){if(d||!u||!f)return c(d);const p=u,g=r.stringify(p,f);Md(g)?f.value=g:f.result=g,c(d,f)});function c(d,u){d||!u?o(d):a?a(u):n(void 0,u)}}}processSync(t){let n=!1,r;return this.freeze(),Xr("processSync",this.parser||this.Parser),Qr("processSync",this.compiler||this.Compiler),this.process(t,i),Ho("processSync","process",n),r;function i(a,o){n=!0,Fo(a),r=o}}run(t,n,r){$o(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 l=Zn(n);i.run(t,l,c);function c(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),Ho("runSync","run",r),i;function a(o,s){Fo(o),i=s,r=!0}}stringify(t,n){this.freeze();const r=Zn(n),i=this.compiler||this.Compiler;return Qr("stringify",i),$o(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(jr("use",this.frozen),t!=null)if(typeof t=="function")l(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(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...u]=c;l(d,u)}else o(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function o(c){if(!("plugins"in c)&&!("settings"in c))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(c.plugins),c.settings&&(i.settings=Hr(!0,i.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const u=c[d];a(u)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,d){let u=-1,f=-1;for(;++u<r.length;)if(r[u][0]===c){f=u;break}if(f===-1)r.push([c,...d]);else if(d.length>0){let[p,...g]=d;const h=r[f][1];Gr(h)&&Gr(p)&&(p=Hr(!0,h,p)),r[f]=[c,p,...g]}}}}const Id=new Zr().freeze();function Xr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Qr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function jr(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 $o(e){if(!Gr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ho(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zn(e){return Od(e)?e:new Uo(e)}function Od(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Md(e){return typeof e=="string"||Ld(e)}function Ld(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Dd="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Go=[],Wo={allowDangerousHtml:!0},Rd=/^(https?|ircs?|mailto|xmpp)$/i,Pd=[{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 Bd(e){const t=Fd(e),n=zd(e);return Ud(t.runSync(t.parse(n),n),e)}function Fd(e){const t=e.rehypePlugins||Go,n=e.remarkPlugins||Go,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Wo}:Wo;return Id().use(ku).use(n).use(pd,r).use(t)}function zd(e){const t=e.children||"",n=new Uo;return typeof t=="string"&&(n.value=t),n}function Ud(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||qd;for(const d of Pd)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+Dd+d.id,void 0);return Yn(e,c),cl(e,{Fragment:m.Fragment,components:i,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function c(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 Ar)if(Object.hasOwn(Ar,p)&&Object.hasOwn(d.properties,p)){const g=d.properties[p],h=Ar[p];(h===null||h.includes(d.tagName))&&(d.properties[p]=l(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 qd(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||Rd.test(e.slice(0,t))?e:""}const Vo=(function(e,t,n){const r=vn(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 Gd;if(typeof e=="string")return Hd(e);if(typeof e=="object")return $d(e);if(typeof e=="function")return Jr(e);throw new Error("Expected function, string, or array as `test`")});function $d(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Kt(e[n]);return Jr(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Hd(e){return Jr(t);function t(n){return n.tagName===e}}function Jr(e){return t;function t(n,r,i){return!!(Wd(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Gd(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Wd(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Ko=/\n/g,Yo=/[\t ]+/g,ei=Kt("br"),Zo=Kt(Jd),Vd=Kt("p"),Xo=Kt("tr"),Kd=Kt(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",jd,ep]),Qo=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 Yd(e,t){const n=t||{},r="children"in e?e.children:[],i=Qo(e),a=ea(e,{whitespace:n.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...Jo(e,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<r.length;)o.push(...jo(r[s],e,{whitespace:a,breakBefore:s?void 0:i,breakAfter:s<r.length-1?ei(r[s+1]):i}));const l=[];let c;for(s=-1;++s<o.length;){const d=o[s];typeof d=="number"?c!==void 0&&d>c&&(c=d):d&&(c!==void 0&&c>-1&&l.push(`
16
+ `.repeat(c)||" "),c=-1,l.push(d))}return l.join("")}function jo(e,t,n){return e.type==="element"?Zd(e,t,n):e.type==="text"?n.whitespace==="normal"?Jo(e,n):Xd(e):[]}function Zd(e,t,n){const r=ea(e,n),i=e.children||[];let a=-1,o=[];if(Kd(e))return o;let s,l;for(ei(e)||Xo(e)&&Vo(t,e,Xo)?l=`
17
+ `:Vd(e)?(s=2,l=2):Qo(e)&&(s=1,l=1);++a<i.length;)o=o.concat(jo(i[a],e,{whitespace:r,breakBefore:a?void 0:s,breakAfter:a<i.length-1?ei(i[a+1]):l}));return Zo(e)&&Vo(t,e,Zo)&&o.push(" "),s&&o.unshift(s),l&&o.push(l),o}function Jo(e,t){const n=String(e.value),r=[],i=[];let a=0;for(;a<=n.length;){Ko.lastIndex=a;const l=Ko.exec(n),c=l&&"index"in l?l.index:n.length;r.push(Qd(n.slice(a,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,c===n.length?t.breakAfter:!0)),a=c+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 Xd(e){return[String(e.value)]}function Qd(e,t,n){const r=[];let i=0,a;for(;i<e.length;){Yo.lastIndex=i;const o=Yo.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 ea(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 jd(e){return!!(e.properties||{}).hidden}function Jd(e){return e.tagName==="td"||e.tagName==="th"}function ep(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function tp(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"},c={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(c,{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"],x=["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"],w=["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"],I={type:h,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},R={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},_=[R,u,s,n,e.C_BLOCK_COMMENT_MODE,d,c],q={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:_.concat([{begin:/\(/,end:/\)/,keywords:I,contains:_.concat(["self"]),relevance:0}]),relevance:0},G={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:I,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(q,G,R,_,[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:I,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function np(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=tp(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 rp(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 l={match:/\\"/},c={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"],x=["true","false"],w={match:/(\/[a-z._-]+)+/},E=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],I=["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:x,built_in:[...E,...S,"set","shopt",...I,...R]},contains:[p,e.SHEBANG(),g,u,a,o,w,s,l,c,d,n]}}function ip(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/}]},c={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(c,{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*\\(",x={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"},w=[u,s,n,e.C_BLOCK_COMMENT_MODE,d,c],E={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:x,contains:w.concat([{begin:/\(/,end:/\)/,keywords:x,contains:w.concat(["self"]),relevance:0}]),relevance:0},S={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:x,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:x,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:x,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C",aliases:["h"],keywords:x,disableAutodetect:!0,illegal:"</",contains:[].concat(E,S,w,[u,{begin:e.IDENT_RE+"::",keywords:x},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:u,strings:c,keywords:x}}}function op(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"},c={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(c,{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"],x=["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"],w=["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"],I={type:h,keyword:g,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:x},R={className:"function.dispatch",relevance:0,keywords:{_hint:w},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},_=[R,u,s,n,e.C_BLOCK_COMMENT_MODE,d,c],q={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:I,contains:_.concat([{begin:/\(/,end:/\)/,keywords:I,contains:_.concat(["self"]),relevance:0}]),relevance:0},G={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:I,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:I,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,d,s,{begin:/\(/,end:/\)/,keywords:I,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,d,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,u]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:I,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(q,G,R,_,[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:I,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:I},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function ap(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)*"}),l={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},c={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]},x=e.inherit(h,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]});f.contains=[h,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],p.contains=[x,g,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const w={variants:[c,h,g,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},S=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",I={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"}},w,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,E,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,E,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:"("+S+"\\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,E],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[w,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},I]}}const sp=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_-]*/}}),lp=["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"],cp=["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"],up=[...lp,...cp],dp=["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(),pp=["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(),fp=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),gp=["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 hp(e){const t=e.regex,n=sp(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:":("+pp.join("|")+")"},{begin:":(:)?("+fp.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+gp.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:dp.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+up.join("|")+")\\b"}]}}function mp(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 bp(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 kp(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 yp(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},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,d=/'[^']*'/,u=t.either(l,c,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 on="[0-9](_*[0-9])*",Xn=`\\.(${on})`,Qn="[0-9a-fA-F](_*[0-9a-fA-F])*",ta={className:"number",variants:[{begin:`(\\b(${on})((${Xn})|\\.)?|(${Xn}))[eE][+-]?(${on})[fFdD]?\\b`},{begin:`\\b(${on})((${Xn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Xn})[fFdD]?\\b`},{begin:`\\b(${on})[fFdD]\\b`},{begin:`\\b0[xX]((${Qn})\\.?|(${Qn})?\\.(${Qn}))[pP][+-]?(${on})[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 na(e,t,n){return n===-1?"":e.replace(t,r=>na(e,t,n-1))}function wp(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+na("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),l={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"]},c={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,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:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,ta,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},ta,c]}}const ra="[A-Za-z$_][0-9A-Za-z$_]*",xp=["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"],Ep=["true","false","null","undefined","NaN","Infinity"],ia=["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"],oa=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],aa=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],_p=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],vp=[].concat(aa,ia,oa);function Sp(e){const t=e.regex,n=(j,{after:me})=>{const b="</"+j[0].slice(1);return j.input.indexOf(b,me)!==-1},r=ra,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(j,me)=>{const b=j[0].length+j.index,ce=j.input[b];if(ce==="<"||ce===","){me.ignoreMatch();return}ce===">"&&(n(j,{after:b})||me.ignoreMatch());let we;const y=j.input.substring(b);if(we=y.match(/^\s*=/)){me.ignoreMatch();return}if((we=y.match(/^\s+extends\s+/))&&we.index===0){me.ignoreMatch();return}}},s={$pattern:ra,keyword:xp,literal:Ep,built_in:vp,"variable.language":_p},l="[0-9](_?[0-9])*",c=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\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"}},x={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},E={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]},S=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,h,x,{match:/\$\d+/},u];f.contains=S.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(S)});const I=[].concat(E,f.contains),R=I.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(I)}]),_={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},q={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:{_:[...ia,...oa]}},H={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},v={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function F(j){return t.concat("(?!",j.join("|"),")")}const ie={match:t.concat(/\b/,F([...aa,"super","import"].map(j=>`${j}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},X={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},W={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},de="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",he={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(de)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:G},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),H,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,h,x,E,{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:[E,e.REGEXP_MODE,{className:"function",begin:de,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"]}]}]},v,{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},X,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},ie,B,q,W,{match:/\$[(.]/}]}}function Np(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 an="[0-9](_*[0-9])*",jn=`\\.(${an})`,Jn="[0-9a-fA-F](_*[0-9a-fA-F])*",Tp={className:"number",variants:[{begin:`(\\b(${an})((${jn})|\\.)?|(${jn}))[eE][+-]?(${an})[fFdD]?\\b`},{begin:`\\b(${an})((${jn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${jn})[fFdD]?\\b`},{begin:`\\b(${an})[fFdD]\\b`},{begin:`\\b0[xX]((${Jn})\\.?|(${Jn})?\\.(${Jn}))[pP][+-]?(${an})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Jn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Ap(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+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(o,{className:"string"}),"self"]}]},c=Tp,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,l,{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,l,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,l]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
18
+ `},c]}}const Cp=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_-]*/}}),Ip=["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"],Op=["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"],Mp=[...Ip,...Op],Lp=["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(),sa=["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(),la=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Dp=["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(),Rp=sa.concat(la).sort().reverse();function Pp(e){const t=Cp(e),n=Rp,r="and or not only",i="[\\w-]+",a="("+i+"|@\\{"+i+"\\})",o=[],s=[],l=function(S){return{className:"string",begin:"~?"+S+".*?"+S}},c=function(S,I,R){return{className:S,begin:I,relevance:R}},d={$pattern:/[a-z-]+/,keyword:r,attribute:Lp.join(" ")},u={begin:"\\(",end:"\\)",contains:s,keywords:d,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l("'"),l('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,u,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("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("+Dp.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}},x={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},w={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,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+Mp.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,c("selector-tag",a,0),c("selector-id","#"+a),c("selector-class","\\."+a,0),c("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+sa.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+la.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},t.FUNCTION_DISPATCH]},E={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[w]};return o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,h,x,E,g,w,p,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function Bp(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 Fp(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 zp(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+.-]*/,l={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}]},c={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(c,{contains:[]}),f=e.inherit(d,{contains:[]});c.contains.push(f),d.contains.push(u);let p=[n,l];return[c,d,u,f].forEach(w=>{w.contains=w.contains.concat(p)}),p=p.concat(c,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,c,d,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,l,o,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function Up(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"]},l={$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:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function qp(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*\(.*?\))?/},l={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]},c={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,l],u=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],f=(h,x,w="\\1")=>{const E=w==="\\1"?w:t.concat(w,x);return t.concat(t.concat("(?:",h,")"),x,/(?:\\.|[^\\\/])*?/,E,/(?:\\.|[^\\\/])*?/,w,r)},p=(h,x,w)=>t.concat(t.concat("(?:",h,")"),x,/(?:\\.|[^\\\/])*?/,w,r),g=[l,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}]},c,{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,c]},{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 $p(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:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(X,W)=>{W.data._beginMatch=X[1]||X[2]},"on:end":(X,W)=>{W.data._beginMatch!==X[1]&&W.ignoreMatch()}},f=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),p=`[
19
+ ]`,g={scope:"string",variants:[d,c,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},x=["false","null","true"],w=["__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"],E=["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"],I={keyword:w,literal:(X=>{const W=[];return X.forEach(de=>{W.push(de),de.toLowerCase()===de?W.push(de.toUpperCase()):W.push(de.toLowerCase())}),W})(x),built_in:E},R=X=>X.map(W=>W.replace(/\|\d+$/,"")),_={variants:[{match:[/new/,t.concat(p,"+"),t.concat("(?!",R(E).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},q=t.concat(r,"\\b(?!\\()"),G={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),q],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),q],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"}}]},H={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},v={relevance:0,begin:/\(/,end:/\)/,keywords:I,contains:[H,o,G,e.C_BLOCK_COMMENT_MODE,g,h,_]},B={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",R(w).join("\\b|"),"|",R(E).join("\\b|"),"\\b)"),r,t.concat(p,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[v]};v.contains.push(B);const F=[H,G,e.C_BLOCK_COMMENT_MODE,g,h,_],ie={begin:t.concat(/#\[\s*\\?/,t.either(i,a)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:x,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:x,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",variants:[{match:i},{match:a}]}]};return{case_insensitive:!1,keywords:I,contains:[ie,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,B,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:I,contains:["self",ie,o,G,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 Hp(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 Gp(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Wp(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"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={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,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,d,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,d,c]},{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,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,c]},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})`}]},x={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},w={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,h,u,e.HASH_COMMENT_MODE]}]};return c.contains=[u,h,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,h,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},u,x,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[w]},{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,w,u]}]}}function Vp(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function Kp(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 Yp(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]+"},l={begin:"#<",end:">"},c=[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}]},_=[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(l,c),relevance:0}].concat(l,c);d.contains=_,h.contains=_;const v=[{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 c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(v).concat(c).concat(_)}}function Zp(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"],l=["true","false","Some","None","Ok","Err"],c=["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:l,built_in:c},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:c,type:d}},{className:"punctuation",begin:"->"},a]}}const Xp=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_-]*/}}),Qp=["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"],jp=["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"],Jp=[...Qp,...jp],ef=["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(),tf=["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(),nf=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),rf=["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 of(e){const t=Xp(e),n=nf,r=tf,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("+Jp.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("+rf.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:ef.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 af(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function sf(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"],l=["add","asc","collation","desc","final","first","last","view"],c=["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=[...c,...l].filter(R=>!d.includes(R)),h={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},x={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},w={match:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function E(R){return t.concat(/\b/,t.either(...R.map(_=>_.replace(/\s+/,"\\s+"))),/\b/)}const S={scope:"keyword",match:E(f),relevance:0};function I(R,{exceptions:_,when:q}={}){const G=q;return _=_||[],R.map(H=>H.match(/\|\d+$/)||_.includes(H)?H:G(H)?`${H}|0`:H)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:I(g,{when:R=>R.length<3}),literal:a,type:s,built_in:u},contains:[{scope:"type",match:E(o)},S,w,h,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,x]}}function ca(e){return e?typeof e=="string"?e:e.source:null}function Nn(e){return ve("(?=",e,")")}function ve(...e){return e.map(n=>ca(n)).join("")}function lf(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function je(...e){return"("+(lf(e).capture?"":"?:")+e.map(r=>ca(r)).join("|")+")"}const ti=e=>ve(/\b/,e,/\w$/.test(e)?/\b/:/\B/),cf=["Protocol","Type"].map(ti),ua=["init","self"].map(ti),uf=["Any","Self"],ni=["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"],da=["false","nil","true"],df=["assignment","associativity","higherThan","left","lowerThan","none","right"],pf=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],pa=["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"],fa=je(/[/=\-+!*%<>&|^~?]/,/[\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]/),ga=je(fa,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),ri=ve(fa,ga,"*"),ha=je(/[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]/),er=je(ha,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),St=ve(ha,er,"*"),tr=ve(/[A-Z]/,er,"*"),ff=["attached","autoclosure",ve(/convention\(/,je("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",ve(/objc\(/,St,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],gf=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function hf(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,je(...cf,...ua)],className:{2:"keyword"}},a={match:ve(/\./,je(...ni)),relevance:0},o=ni.filter(be=>typeof be=="string").concat(["_|0"]),s=ni.filter(be=>typeof be!="string").concat(uf).map(ti),l={variants:[{className:"keyword",match:je(...s,...ua)}]},c={$pattern:je(/\b\w+/,/#\w+/),keyword:o.concat(pf),literal:da},d=[i,a,l],u={match:ve(/\./,je(...pa)),relevance:0},f={className:"built_in",match:ve(/\b/,je(...pa),/(?=\()/)},p=[u,f],g={match:/->/,relevance:0},h={className:"operator",relevance:0,variants:[{match:ri},{match:`\\.(\\.|${ga})+`}]},x=[g,h],w="([0-9]_*)+",E="([0-9a-fA-F]_*)+",S={className:"number",relevance:0,variants:[{match:`\\b(${w})(\\.(${w}))?([eE][+-]?(${w}))?\\b`},{match:`\\b0x(${E})(\\.(${E}))?([pP][+-]?(${w}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},I=(be="")=>({className:"subst",variants:[{match:ve(/\\/,be,/[0\\tnr"']/)},{match:ve(/\\/,be,/u\{[0-9a-fA-F]{1,8}\}/)}]}),R=(be="")=>({className:"subst",match:ve(/\\/,be,/[\t ]*(?:[\r\n]|\r\n)/)}),_=(be="")=>({className:"subst",label:"interpol",begin:ve(/\\/,be,/\(/),end:/\)/}),q=(be="")=>({begin:ve(be,/"""/),end:ve(/"""/,be),contains:[I(be),R(be),_(be)]}),G=(be="")=>({begin:ve(be,/"/),end:ve(/"/,be),contains:[I(be),_(be)]}),H={className:"string",variants:[q(),q("#"),q("##"),q("###"),G(),G("#"),G("##"),G("###")]},v=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],B={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:v},F=be=>{const kt=ve(be,/\//),ft=ve(/\//,be);return{begin:kt,end:ft,contains:[...v,{scope:"comment",begin:`#(?!.*${ft})`,end:/$/}]}},ie={scope:"regexp",variants:[F("###"),F("##"),F("#"),B]},X={match:ve(/`/,St,/`/)},W={className:"variable",match:/\$\d+/},de={className:"variable",match:`\\$${er}+`},he=[X,W,de],j={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:gf,contains:[...x,S,H]}]}},me={scope:"keyword",match:ve(/@/,je(...ff),Nn(je(/\(/,/\s+/)))},b={scope:"meta",match:ve(/@/,St)},ce=[j,me,b],we={match:Nn(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:ve(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,er,"+")},{className:"type",match:tr,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:ve(/\s+&\s+/,Nn(tr)),relevance:0}]},y={begin:/</,end:/>/,keywords:c,contains:[...r,...d,...ce,g,we]};we.contains.push(y);const Ae={match:ve(St,/\s*:/),keywords:"_|0",relevance:0},$e={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",Ae,...r,ie,...d,...p,...x,S,H,...he,...ce,we]},pe={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,we]},Ye={begin:je(Nn(ve(St,/\s*:/)),Nn(ve(St,/\s+/,St,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:St}]},Ze={begin:/\(/,end:/\)/,keywords:c,contains:[Ye,...r,...d,...x,S,H,...ce,we,$e],endsParent:!0,illegal:/["']/},pt={match:[/(func|macro)/,/\s+/,je(X.match,St,ri)],className:{1:"keyword",3:"title.function"},contains:[pe,Ze,t],illegal:[/\[/,/%/]},Xe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[pe,Ze,t],illegal:/\[|%/},Be={match:[/operator/,/\s+/,ri],className:{1:"keyword",3:"title"}},Zt={begin:[/precedencegroup/,/\s+/,tr],className:{1:"keyword",3:"title"},contains:[we],keywords:[...df,...da],end:/}/},At={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},ze={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Dt={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,St,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:c,contains:[pe,...d,{begin:/:/,end:/\{/,keywords:c,contains:[{scope:"title.class.inherited",match:tr},...d],relevance:0}]};for(const be of H.variants){const kt=be.contains.find(De=>De.label==="interpol");kt.keywords=c;const ft=[...d,...p,...x,S,H,...he];kt.contains=[...ft,{begin:/\(/,end:/\)/,contains:["self",...ft]}]}return{name:"Swift",keywords:c,contains:[...r,pt,Xe,At,ze,Dt,Be,Zt,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},ie,...d,...p,...x,S,H,...he,...ce,we,$e]}}const nr="[A-Za-z$_][0-9A-Za-z$_]*",ma=["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"],ba=["true","false","null","undefined","NaN","Infinity"],ka=["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"],ya=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],wa=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],xa=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ea=[].concat(wa,ka,ya);function mf(e){const t=e.regex,n=(j,{after:me})=>{const b="</"+j[0].slice(1);return j.input.indexOf(b,me)!==-1},r=nr,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(j,me)=>{const b=j[0].length+j.index,ce=j.input[b];if(ce==="<"||ce===","){me.ignoreMatch();return}ce===">"&&(n(j,{after:b})||me.ignoreMatch());let we;const y=j.input.substring(b);if(we=y.match(/^\s*=/)){me.ignoreMatch();return}if((we=y.match(/^\s+extends\s+/))&&we.index===0){me.ignoreMatch();return}}},s={$pattern:nr,keyword:ma,literal:ba,built_in:Ea,"variable.language":xa},l="[0-9](_?[0-9])*",c=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\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"}},x={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},E={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]},S=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,h,x,{match:/\$\d+/},u];f.contains=S.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(S)});const I=[].concat(E,f.contains),R=I.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(I)}]),_={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:R},q={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:{_:[...ka,...ya]}},H={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},v={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function F(j){return t.concat("(?!",j.join("|"),")")}const ie={match:t.concat(/\b/,F([...wa,"super","import"].map(j=>`${j}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},X={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},W={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},de="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",he={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(de)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:G},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),H,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,g,h,x,E,{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:[E,e.REGEXP_MODE,{className:"function",begin:de,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"]}]}]},v,{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},X,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},ie,B,q,W,{match:/\$[(.]/}]}}function bf(e){const t=e.regex,n=mf(e),r=nr,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['"]/},l=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:nr,keyword:ma.concat(l),literal:ba,built_in:Ea.concat(i),"variable.language":xa},d={className:"meta",begin:"@"+r},u=(h,x,w)=>{const E=h.contains.findIndex(S=>S.label===x);if(E===-1)throw new Error("can not find mode to replace");h.contains.splice(E,1,w)};Object.assign(n.keywords,c),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 kf(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}/,l={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),/ *#/)}]},c={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,l,c,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 yf(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/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={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,l,c,s]}}function wf(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"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={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,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],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:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function xf(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},x=[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],w=[...x];return w.pop(),w.push(s),p.contains=w,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:x}}const Ef={arduino:np,bash:rp,c:ip,cpp:op,csharp:ap,css:hp,diff:mp,go:bp,graphql:kp,ini:yp,java:wp,javascript:Sp,json:Np,kotlin:Ap,less:Pp,lua:Bp,makefile:Fp,markdown:zp,objectivec:Up,perl:qp,php:$p,"php-template":Hp,plaintext:Gp,python:Wp,"python-repl":Vp,r:Kp,ruby:Yp,rust:Zp,scss:of,shell:af,sql:sf,swift:hf,typescript:bf,vbnet:kf,wasm:yf,xml:wf,yaml:xf};var ii,_a;function _f(){if(_a)return ii;_a=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 P=k[T],te=typeof P;(te==="object"||te==="function")&&!Object.isFrozen(P)&&e(P)}),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 P=Object.create(null);for(const te in k)P[te]=k[te];return T.forEach(function(te){for(const Le in te)P[Le]=te[Le]}),P}const i="</span>",a=k=>!!k.scope,o=(k,{prefix:T})=>{if(k.startsWith("language:"))return k.replace("language:","language-");if(k.includes(".")){const P=k.split(".");return[`${T}${P.shift()}`,...P.map((te,Le)=>`${te}${"_".repeat(Le+1)}`)].join(" ")}return`${T}${k}`};class s{constructor(T,P){this.buffer="",this.classPrefix=P.classPrefix,T.walk(this)}addText(T){this.buffer+=n(T)}openNode(T){if(!a(T))return;const P=o(T.scope,{prefix:this.classPrefix});this.span(P)}closeNode(T){a(T)&&(this.buffer+=i)}value(){return this.buffer}span(T){this.buffer+=`<span class="${T}">`}}const l=(k={})=>{const T={children:[]};return Object.assign(T,k),T};class c{constructor(){this.rootNode=l(),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 P=l({scope:T});this.add(P),this.stack.push(P)}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,P){return typeof P=="string"?T.addText(P):P.children&&(T.openNode(P),P.children.forEach(te=>this._walk(T,te)),T.closeNode(P)),T}static _collapse(T){typeof T!="string"&&T.children&&(T.children.every(P=>typeof P=="string")?T.children=[T.children.join("")]:T.children.forEach(P=>{c._collapse(P)}))}}class d extends c{constructor(T){super(),this.options=T}addText(T){T!==""&&this.add(T)}startScope(T){this.openNode(T)}endScope(){this.closeNode()}__addSublanguage(T,P){const te=T.root;P&&(te.scope=`language:${P}`),this.add(te)}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(P=>u(P)).join("")}function x(k){const T=k[k.length-1];return typeof T=="object"&&T.constructor===Object?(k.splice(k.length-1,1),T):{}}function w(...k){return"("+(x(k).capture?"":"?:")+k.map(te=>u(te)).join("|")+")"}function E(k){return new RegExp(k.toString()+"|").exec("").length-1}function S(k,T){const P=k&&k.exec(T);return P&&P.index===0}const I=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function R(k,{joinWith:T}){let P=0;return k.map(te=>{P+=1;const Le=P;let Ce=u(te),$="";for(;Ce.length>0;){const U=I.exec(Ce);if(!U){$+=Ce;break}$+=Ce.substring(0,U.index),Ce=Ce.substring(U.index+U[0].length),U[0][0]==="\\"&&U[1]?$+="\\"+String(Number(U[1])+Le):($+=U[0],U[0]==="("&&P++)}return $}).map(te=>`(${te})`).join(T)}const _=/\b\B/,q="[a-zA-Z]\\w*",G="[a-zA-Z_]\\w*",H="\\b\\d+(\\.\\d+)?",v="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",B="\\b(0b[01]+)",F="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ie=(k={})=>{const T=/^#![ ]*\//;return k.binary&&(k.begin=h(T,/.*\b/,k.binary,/\b.*/)),r({scope:"meta",begin:T,end:/$/,relevance:0,"on:begin":(P,te)=>{P.index!==0&&te.ignoreMatch()}},k)},X={begin:"\\\\[\\s\\S]",relevance:0},W={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[X]},de={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[X]},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/},j=function(k,T,P={}){const te=r({scope:"comment",begin:k,end:T,contains:[]},P);te.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 Le=w("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 te.contains.push({begin:h(/[ ]+/,"(",Le,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),te},me=j("//","$"),b=j("/\\*","\\*/"),ce=j("#","$"),we={scope:"number",begin:H,relevance:0},y={scope:"number",begin:v,relevance:0},Ae={scope:"number",begin:B,relevance:0},$e={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[X,{begin:/\[/,end:/\]/,relevance:0,contains:[X]}]},pe={scope:"title",begin:q,relevance:0},Ye={scope:"title",begin:G,relevance:0},Ze={begin:"\\.\\s*"+G,relevance:0};var Xe=Object.freeze({__proto__:null,APOS_STRING_MODE:W,BACKSLASH_ESCAPE:X,BINARY_NUMBER_MODE:Ae,BINARY_NUMBER_RE:B,COMMENT:j,C_BLOCK_COMMENT_MODE:b,C_LINE_COMMENT_MODE:me,C_NUMBER_MODE:y,C_NUMBER_RE:v,END_SAME_AS_BEGIN:function(k){return Object.assign(k,{"on:begin":(T,P)=>{P.data._beginMatch=T[1]},"on:end":(T,P)=>{P.data._beginMatch!==T[1]&&P.ignoreMatch()}})},HASH_COMMENT_MODE:ce,IDENT_RE:q,MATCH_NOTHING_RE:_,METHOD_GUARD:Ze,NUMBER_MODE:we,NUMBER_RE:H,PHRASAL_WORDS_MODE:he,QUOTE_STRING_MODE:de,REGEXP_MODE:$e,RE_STARTERS_RE:F,SHEBANG:ie,TITLE_MODE:pe,UNDERSCORE_IDENT_RE:G,UNDERSCORE_TITLE_MODE:Ye});function Be(k,T){k.input[k.index-1]==="."&&T.ignoreMatch()}function Zt(k,T){k.className!==void 0&&(k.scope=k.className,delete k.className)}function At(k,T){T&&k.beginKeywords&&(k.begin="\\b("+k.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",k.__beforeBegin=Be,k.keywords=k.keywords||k.beginKeywords,delete k.beginKeywords,k.relevance===void 0&&(k.relevance=0))}function ze(k,T){Array.isArray(k.illegal)&&(k.illegal=w(...k.illegal))}function Dt(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 be(k,T){k.relevance===void 0&&(k.relevance=1)}const kt=(k,T)=>{if(!k.beforeMatch)return;if(k.starts)throw new Error("beforeMatch cannot be used with starts");const P=Object.assign({},k);Object.keys(k).forEach(te=>{delete k[te]}),k.keywords=P.keywords,k.begin=h(P.beforeMatch,f(P.begin)),k.starts={relevance:0,contains:[Object.assign(P,{endsParent:!0})]},k.relevance=0,delete P.beforeMatch},ft=["of","and","for","in","not","or","if","then","parent","list","value"],De="keyword";function Rt(k,T,P=De){const te=Object.create(null);return typeof k=="string"?Le(P,k.split(" ")):Array.isArray(k)?Le(P,k):Object.keys(k).forEach(function(Ce){Object.assign(te,Rt(k[Ce],T,Ce))}),te;function Le(Ce,$){T&&($=$.map(U=>U.toLowerCase())),$.forEach(function(U){const ee=U.split("|");te[ee[0]]=[Ce,He(ee[0],ee[1])]})}}function He(k,T){return T?Number(T):Cn(k)?0:1}function Cn(k){return ft.includes(k.toLowerCase())}const Xt={},gt=k=>{console.error(k)},Ct=(k,...T)=>{console.log(`WARN: ${k}`,...T)},N=(k,T)=>{Xt[`${k}/${T}`]||(console.log(`Deprecated as of ${k}. ${T}`),Xt[`${k}/${T}`]=!0)},D=new Error;function Q(k,T,{key:P}){let te=0;const Le=k[P],Ce={},$={};for(let U=1;U<=T.length;U++)$[U+te]=Le[U],Ce[U+te]=!0,te+=E(T[U-1]);k[P]=$,k[P]._emit=Ce,k[P]._multi=!0}function se(k){if(Array.isArray(k.begin)){if(k.skip||k.excludeBegin||k.returnBegin)throw gt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),D;if(typeof k.beginScope!="object"||k.beginScope===null)throw gt("beginScope must be object"),D;Q(k,k.begin,{key:"beginScope"}),k.begin=R(k.begin,{joinWith:""})}}function fe(k){if(Array.isArray(k.end)){if(k.skip||k.excludeEnd||k.returnEnd)throw gt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),D;if(typeof k.endScope!="object"||k.endScope===null)throw gt("endScope must be object"),D;Q(k,k.end,{key:"endScope"}),k.end=R(k.end,{joinWith:""})}}function Je(k){k.scope&&typeof k.scope=="object"&&k.scope!==null&&(k.beginScope=k.scope,delete k.scope)}function lt(k){Je(k),typeof k.beginScope=="string"&&(k.beginScope={_wrap:k.beginScope}),typeof k.endScope=="string"&&(k.endScope={_wrap:k.endScope}),se(k),fe(k)}function Ge(k){function T($,U){return new RegExp(u($),"m"+(k.case_insensitive?"i":"")+(k.unicodeRegex?"u":"")+(U?"g":""))}class P{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(U,ee){ee.position=this.position++,this.matchIndexes[this.matchAt]=ee,this.regexes.push([ee,U]),this.matchAt+=E(U)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const U=this.regexes.map(ee=>ee[1]);this.matcherRe=T(R(U,{joinWith:"|"}),!0),this.lastIndex=0}exec(U){this.matcherRe.lastIndex=this.lastIndex;const ee=this.matcherRe.exec(U);if(!ee)return null;const ke=ee.findIndex((Ft,On)=>On>0&&Ft!==void 0),Ie=this.matchIndexes[ke];return ee.splice(0,ke),Object.assign(ee,Ie)}}class te{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(U){if(this.multiRegexes[U])return this.multiRegexes[U];const ee=new P;return this.rules.slice(U).forEach(([ke,Ie])=>ee.addRule(ke,Ie)),ee.compile(),this.multiRegexes[U]=ee,ee}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(U,ee){this.rules.push([U,ee]),ee.type==="begin"&&this.count++}exec(U){const ee=this.getMatcher(this.regexIndex);ee.lastIndex=this.lastIndex;let ke=ee.exec(U);if(this.resumingScanAtSamePosition()&&!(ke&&ke.index===this.lastIndex)){const Ie=this.getMatcher(0);Ie.lastIndex=this.lastIndex+1,ke=Ie.exec(U)}return ke&&(this.regexIndex+=ke.position+1,this.regexIndex===this.count&&this.considerAll()),ke}}function Le($){const U=new te;return $.contains.forEach(ee=>U.addRule(ee.begin,{rule:ee,type:"begin"})),$.terminatorEnd&&U.addRule($.terminatorEnd,{type:"end"}),$.illegal&&U.addRule($.illegal,{type:"illegal"}),U}function Ce($,U){const ee=$;if($.isCompiled)return ee;[Zt,Dt,lt,kt].forEach(Ie=>Ie($,U)),k.compilerExtensions.forEach(Ie=>Ie($,U)),$.__beforeBegin=null,[At,ze,be].forEach(Ie=>Ie($,U)),$.isCompiled=!0;let ke=null;return typeof $.keywords=="object"&&$.keywords.$pattern&&($.keywords=Object.assign({},$.keywords),ke=$.keywords.$pattern,delete $.keywords.$pattern),ke=ke||/\w+/,$.keywords&&($.keywords=Rt($.keywords,k.case_insensitive)),ee.keywordPatternRe=T(ke,!0),U&&($.begin||($.begin=/\B|\b/),ee.beginRe=T(ee.begin),!$.end&&!$.endsWithParent&&($.end=/\B|\b/),$.end&&(ee.endRe=T(ee.end)),ee.terminatorEnd=u(ee.end)||"",$.endsWithParent&&U.terminatorEnd&&(ee.terminatorEnd+=($.end?"|":"")+U.terminatorEnd)),$.illegal&&(ee.illegalRe=T($.illegal)),$.contains||($.contains=[]),$.contains=[].concat(...$.contains.map(function(Ie){return Fe(Ie==="self"?$:Ie)})),$.contains.forEach(function(Ie){Ce(Ie,ee)}),$.starts&&Ce($.starts,U),ee.matcher=Le(ee),ee}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||{}),Ce(k)}function Ue(k){return k?k.endsWithParent||Ue(k.starts):!1}function Fe(k){return k.variants&&!k.cachedVariants&&(k.cachedVariants=k.variants.map(function(T){return r(k,{variants:null},T)})),k.cachedVariants?k.cachedVariants:Ue(k)?r(k,{starts:k.starts?r(k.starts):null}):Object.isFrozen(k)?r(k):k}var Me="11.11.1";class It extends Error{constructor(T,P){super(T),this.name="HTMLInjectionError",this.html=P}}const et=n,sr=r,In=Symbol("nomatch"),lr=7,Qt=function(k){const T=Object.create(null),P=Object.create(null),te=[];let Le=!0;const Ce="Could not find the language '{}', did you forget to load/include a language module?",$={disableAutodetect:!0,name:"Plain text",contains:[]};let U={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function ee(L){return U.noHighlightRe.test(L)}function ke(L){let K=L.className+" ";K+=L.parentNode?L.parentNode.className:"";const ae=U.languageDetectRe.exec(K);if(ae){const xe=yt(ae[1]);return xe||(Ct(Ce.replace("{}",ae[1])),Ct("Falling back to no-highlight mode for this block.",L)),xe?ae[1]:"no-highlight"}return K.split(/\s+/).find(xe=>ee(xe)||yt(xe))}function Ie(L,K,ae){let xe="",Re="";typeof K=="object"?(xe=L,ae=K.ignoreIllegals,Re=K.language):(N("10.7.0","highlight(lang, code, ...args) has been deprecated."),N("10.7.0",`Please use highlight(code, options) instead.
20
+ https://github.com/highlightjs/highlight.js/issues/2277`),Re=L,xe=K),ae===void 0&&(ae=!0);const ct={code:xe,language:Re};Jt("before:highlight",ct);const wt=ct.result?ct.result:Ft(ct.language,ct.code,ae);return wt.code=ct.code,Jt("after:highlight",wt),wt}function Ft(L,K,ae,xe){const Re=Object.create(null);function ct(C,z){return C.keywords[z]}function wt(){if(!re.keywords){qe.addText(A);return}let C=0;re.keywordPatternRe.lastIndex=0;let z=re.keywordPatternRe.exec(A),J="";for(;z;){J+=A.substring(C,z.index);const le=ht.case_insensitive?z[0].toLowerCase():z[0],Se=ct(re,le);if(Se){const[nt,_t]=Se;if(qe.addText(J),J="",Re[le]=(Re[le]||0)+1,Re[le]<=lr&&(oe+=_t),nt.startsWith("_"))J+=z[0];else{const Ei=ht.classNameAliases[nt]||nt;Oe(z[0],Ei)}}else J+=z[0];C=re.keywordPatternRe.lastIndex,z=re.keywordPatternRe.exec(A)}J+=A.substring(C),qe.addText(J)}function xt(){if(A==="")return;let C=null;if(typeof re.subLanguage=="string"){if(!T[re.subLanguage]){qe.addText(A);return}C=Ft(re.subLanguage,A,!0,fr[re.subLanguage]),fr[re.subLanguage]=C._top}else C=Mn(A,re.subLanguage.length?re.subLanguage:null);re.relevance>0&&(oe+=C.relevance),qe.__addSublanguage(C._emitter,C.language)}function _e(){re.subLanguage!=null?xt():wt(),A=""}function Oe(C,z){C!==""&&(qe.startScope(z),qe.addText(C),qe.endScope())}function Dn(C,z){let J=1;const le=z.length-1;for(;J<=le;){if(!C._emit[J]){J++;continue}const Se=ht.classNameAliases[C[J]]||C[J],nt=z[J];Se?Oe(nt,Se):(A=nt,wt(),A=""),J++}}function Et(C,z){return C.scope&&typeof C.scope=="string"&&qe.openNode(ht.classNameAliases[C.scope]||C.scope),C.beginScope&&(C.beginScope._wrap?(Oe(A,ht.classNameAliases[C.beginScope._wrap]||C.beginScope._wrap),A=""):C.beginScope._multi&&(Dn(C.beginScope,z),A="")),re=Object.create(C,{parent:{value:re}}),re}function dr(C,z,J){let le=S(C.endRe,J);if(le){if(C["on:end"]){const Se=new t(C);C["on:end"](z,Se),Se.isMatchIgnored&&(le=!1)}if(le){for(;C.endsParent&&C.parent;)C=C.parent;return C}}if(C.endsWithParent)return dr(C.parent,z,J)}function yi(C){return re.matcher.regexIndex===0?(A+=C[0],1):(ye=!0,0)}function wi(C){const z=C[0],J=C.rule,le=new t(J),Se=[J.__beforeBegin,J["on:begin"]];for(const nt of Se)if(nt&&(nt(C,le),le.isMatchIgnored))return yi(z);return J.skip?A+=z:(J.excludeBegin&&(A+=z),_e(),!J.returnBegin&&!J.excludeBegin&&(A=z)),Et(J,C),J.returnBegin?0:z.length}function Rn(C){const z=C[0],J=K.substring(C.index),le=dr(re,C,J);if(!le)return In;const Se=re;re.endScope&&re.endScope._wrap?(_e(),Oe(z,re.endScope._wrap)):re.endScope&&re.endScope._multi?(_e(),Dn(re.endScope,C)):Se.skip?A+=z:(Se.returnEnd||Se.excludeEnd||(A+=z),_e(),Se.excludeEnd&&(A=z));do re.scope&&qe.closeNode(),!re.skip&&!re.subLanguage&&(oe+=re.relevance),re=re.parent;while(re!==le.parent);return le.starts&&Et(le.starts,C),Se.returnEnd?0:z.length}function en(){const C=[];for(let z=re;z!==ht;z=z.parent)z.scope&&C.unshift(z.scope);C.forEach(z=>qe.openNode(z))}let ot={};function pr(C,z){const J=z&&z[0];if(A+=C,J==null)return _e(),0;if(ot.type==="begin"&&z.type==="end"&&ot.index===z.index&&J===""){if(A+=K.slice(z.index,z.index+1),!Le){const le=new Error(`0 width match regex (${L})`);throw le.languageName=L,le.badRule=ot.rule,le}return 1}if(ot=z,z.type==="begin")return wi(z);if(z.type==="illegal"&&!ae){const le=new Error('Illegal lexeme "'+J+'" for mode "'+(re.scope||"<unnamed>")+'"');throw le.mode=re,le}else if(z.type==="end"){const le=Rn(z);if(le!==In)return le}if(z.type==="illegal"&&J==="")return A+=`
21
+ `,1;if(Z>1e5&&Z>z.index*3)throw new Error("potential infinite loop, way more iterations than matches");return A+=J,J.length}const ht=yt(L);if(!ht)throw gt(Ce.replace("{}",L)),new Error('Unknown language: "'+L+'"');const xi=Ge(ht);let Pn="",re=xe||xi;const fr={},qe=new U.__emitter(U);en();let A="",oe=0,V=0,Z=0,ye=!1;try{if(ht.__emitTokens)ht.__emitTokens(K,qe);else{for(re.matcher.considerAll();;){Z++,ye?ye=!1:re.matcher.considerAll(),re.matcher.lastIndex=V;const C=re.matcher.exec(K);if(!C)break;const z=K.substring(V,C.index),J=pr(z,C);V=C.index+J}pr(K.substring(V))}return qe.finalize(),Pn=qe.toHTML(),{language:L,value:Pn,relevance:oe,illegal:!1,_emitter:qe,_top:re}}catch(C){if(C.message&&C.message.includes("Illegal"))return{language:L,value:et(K),illegal:!0,relevance:0,_illegalBy:{message:C.message,index:V,context:K.slice(V-100,V+100),mode:C.mode,resultSoFar:Pn},_emitter:qe};if(Le)return{language:L,value:et(K),illegal:!1,relevance:0,errorRaised:C,_emitter:qe,_top:re};throw C}}function On(L){const K={value:et(L),illegal:!1,relevance:0,_top:$,_emitter:new U.__emitter(U)};return K._emitter.addText(L),K}function Mn(L,K){K=K||U.languages||Object.keys(T);const ae=On(L),xe=K.filter(yt).filter(Ee).map(_e=>Ft(_e,L,!1));xe.unshift(ae);const Re=xe.sort((_e,Oe)=>{if(_e.relevance!==Oe.relevance)return Oe.relevance-_e.relevance;if(_e.language&&Oe.language){if(yt(_e.language).supersetOf===Oe.language)return 1;if(yt(Oe.language).supersetOf===_e.language)return-1}return 0}),[ct,wt]=Re,xt=ct;return xt.secondBest=wt,xt}function mi(L,K,ae){const xe=K&&P[K]||ae;L.classList.add("hljs"),L.classList.add(`language-${xe}`)}function dn(L){let K=null;const ae=ke(L);if(ee(ae))return;if(Jt("before:highlightElement",{el:L,language:ae}),L.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",L);return}if(L.children.length>0&&(U.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(L)),U.throwUnescapedHTML))throw new It("One of your code blocks includes unescaped HTML.",L.innerHTML);K=L;const xe=K.textContent,Re=ae?Ie(xe,{language:ae,ignoreIllegals:!0}):Mn(xe);L.innerHTML=Re.value,L.dataset.highlighted="yes",mi(L,ae,Re.language),L.result={language:Re.language,re:Re.relevance,relevance:Re.relevance},Re.secondBest&&(L.secondBest={language:Re.secondBest.language,relevance:Re.secondBest.relevance}),Jt("after:highlightElement",{el:L,result:Re,text:xe})}function cr(L){U=sr(U,L)}const ur=()=>{fn(),N("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function bi(){fn(),N("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let pn=!1;function fn(){function L(){fn()}if(document.readyState==="loading"){pn||window.addEventListener("DOMContentLoaded",L,!1),pn=!0;return}document.querySelectorAll(U.cssSelector).forEach(dn)}function ps(L,K){let ae=null;try{ae=K(k)}catch(xe){if(gt("Language definition for '{}' could not be registered.".replace("{}",L)),Le)gt(xe);else throw xe;ae=$}ae.name||(ae.name=L),T[L]=ae,ae.rawDefinition=K.bind(null,k),ae.aliases&&jt(ae.aliases,{languageName:L})}function tt(L){delete T[L];for(const K of Object.keys(P))P[K]===L&&delete P[K]}function ki(){return Object.keys(T)}function yt(L){return L=(L||"").toLowerCase(),T[L]||T[P[L]]}function jt(L,{languageName:K}){typeof L=="string"&&(L=[L]),L.forEach(ae=>{P[ae.toLowerCase()]=K})}function Ee(L){const K=yt(L);return K&&!K.disableAutodetect}function zt(L){L["before:highlightBlock"]&&!L["before:highlightElement"]&&(L["before:highlightElement"]=K=>{L["before:highlightBlock"](Object.assign({block:K.el},K))}),L["after:highlightBlock"]&&!L["after:highlightElement"]&&(L["after:highlightElement"]=K=>{L["after:highlightBlock"](Object.assign({block:K.el},K))})}function Ut(L){zt(L),te.push(L)}function Mt(L){const K=te.indexOf(L);K!==-1&&te.splice(K,1)}function Jt(L,K){const ae=L;te.forEach(function(xe){xe[ae]&&xe[ae](K)})}function Ln(L){return N("10.7.0","highlightBlock will be removed entirely in v12.0"),N("10.7.0","Please use highlightElement now."),dn(L)}Object.assign(k,{highlight:Ie,highlightAuto:Mn,highlightAll:fn,highlightElement:dn,highlightBlock:Ln,configure:cr,initHighlighting:ur,initHighlightingOnLoad:bi,registerLanguage:ps,unregisterLanguage:tt,listLanguages:ki,getLanguage:yt,registerAliases:jt,autoDetection:Ee,inherit:sr,addPlugin:Ut,removePlugin:Mt}),k.debugMode=function(){Le=!1},k.safeMode=function(){Le=!0},k.versionString=Me,k.regex={concat:h,lookahead:f,either:w,optional:g,anyNumberOfTimes:p};for(const L in Xe)typeof Xe[L]=="object"&&e(Xe[L]);return Object.assign(k,Xe),k},Ot=Qt({});return Ot.newInstance=()=>Qt({}),ii=Ot,Ot.HighlightJS=Ot,Ot.default=Ot,ii}var vf=_f();const Sf=Er(vf),va={},Nf="hljs-";function Tf(e){const t=Sf.newInstance();return e&&a(e),{highlight:n,highlightAuto:r,listLanguages:i,register:a,registerAlias:o,registered:s};function n(l,c,d){const u=d||va,f=typeof u.prefix=="string"?u.prefix:Nf;if(!t.getLanguage(l))throw new Error("Unknown language: `"+l+"` is not registered");t.configure({__emitter:Af,classPrefix:f});const p=t.highlight(c,{ignoreIllegals:!0,language:l});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(l,c){const u=(c||va).subset||i();let f=-1,p=0,g;for(;++f<u.length;){const h=u[f];if(!t.getLanguage(h))continue;const x=n(h,l,c);x.data&&x.data.relevance!==void 0&&x.data.relevance>p&&(p=x.data.relevance,g=x)}return g||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return t.listLanguages()}function a(l,c){if(typeof l=="string")t.registerLanguage(l,c);else{let d;for(d in l)Object.hasOwn(l,d)&&t.registerLanguage(d,l[d])}}function o(l,c){if(typeof l=="string")t.registerAliases(typeof c=="string"?c:[...c],{languageName:l});else{let d;for(d in l)if(Object.hasOwn(l,d)){const u=l[d];t.registerAliases(typeof u=="string"?u:[...u],{languageName:d})}}}function s(l){return!!t.getLanguage(l)}}class Af{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 Cf={};function If(e){const t=e||Cf,n=t.aliases,r=t.detect||!1,i=t.languages||Ef,a=t.plainText,o=t.prefix,s=t.subset;let l="hljs";const c=Tf(i);if(n&&c.registerAlias(n),o){const d=o.indexOf("-");l=d===-1?o:o.slice(0,d)}return function(d,u){Yn(d,"element",function(f,p,g){if(f.tagName!=="code"||!g||g.type!=="element"||g.tagName!=="pre")return;const h=Of(f);if(h===!1||!h&&!r||h&&a&&a.includes(h))return;Array.isArray(f.properties.className)||(f.properties.className=[]),f.properties.className.includes(l)||f.properties.className.unshift(l);const x=Yd(f,{whitespace:"pre"});let w;try{w=h?c.highlight(h,x,{prefix:o}):c.highlightAuto(x,{prefix:o,subset:s})}catch(E){const S=E;if(h&&/Unknown language/.test(S.message)){u.message("Cannot highlight as `"+h+"`, it’s not registered",{ancestors:[g,f],cause:S,place:f.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw S}!h&&w.data&&w.data.language&&f.properties.className.push("language-"+w.data.language),w.children.length>0&&(f.children=w.children)})}}function Of(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 Sa(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 Mf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Lf(e,t,n){const i=vn((n||{}).ignore||[]),a=Df(t);let o=-1;for(;++o<a.length;)Ro(e,"text",s);function s(c,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 l(c,d)}function l(c,d){const u=d[d.length-1],f=a[o][0],p=a[o][1];let g=0;const x=u.children.indexOf(c);let w=!1,E=[];f.lastIndex=0;let S=f.exec(c.value);for(;S;){const I=S.index,R={index:S.index,input:S.input,stack:[...d,c]};let _=p(...S,R);if(typeof _=="string"&&(_=_.length>0?{type:"text",value:_}:void 0),_===!1?f.lastIndex=I+1:(g!==I&&E.push({type:"text",value:c.value.slice(g,I)}),Array.isArray(_)?E.push(..._):_&&E.push(_),g=I+S[0].length,w=!0),!f.global)break;S=f.exec(c.value)}return w?(g<c.value.length&&E.push({type:"text",value:c.value.slice(g)}),u.children.splice(x,1,...E)):E=[c],x+E.length}}function Df(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([Rf(i[0]),Pf(i[1])])}return t}function Rf(e){return typeof e=="string"?new RegExp(Mf(e),"g"):e}function Pf(e){return typeof e=="function"?e:function(){return e}}const oi="phrasing",ai=["autolink","link","image","label"];function Bf(){return{transforms:[Gf],enter:{literalAutolink:zf,literalAutolinkEmail:si,literalAutolinkHttp:si,literalAutolinkWww:si},exit:{literalAutolink:Hf,literalAutolinkEmail:$f,literalAutolinkHttp:Uf,literalAutolinkWww:qf}}}function Ff(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:oi,notInConstruct:ai},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:oi,notInConstruct:ai},{character:":",before:"[ps]",after:"\\/",inConstruct:oi,notInConstruct:ai}]}}function zf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function si(e){this.config.enter.autolinkProtocol.call(this,e)}function Uf(e){this.config.exit.autolinkProtocol.call(this,e)}function qf(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 $f(e){this.config.exit.autolinkEmail.call(this,e)}function Hf(e){this.exit(e)}function Gf(e){Lf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Wf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Vf]],{ignore:["link","linkReference"]})}function Wf(e,t,n,r,i){let a="";if(!Na(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Kf(n)))return!1;const o=Yf(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 Vf(e,t,n,r){return!Na(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Kf(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 Yf(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=Sa(e,"(");let a=Sa(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 Na(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Wt(n)||zn(n))&&(!t||n!==47)}Ta.peek=rg;function Zf(){this.buffer()}function Xf(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Qf(){this.buffer()}function jf(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Jf(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function eg(e){this.exit(e)}function tg(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ng(e){this.exit(e)}function rg(){return"["}function Ta(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 ig(){return{enter:{gfmFootnoteCallString:Zf,gfmFootnoteCall:Xf,gfmFootnoteDefinitionLabelString:Qf,gfmFootnoteDefinition:jf},exit:{gfmFootnoteCallString:Jf,gfmFootnoteCall:eg,gfmFootnoteDefinitionLabelString:tg,gfmFootnoteDefinition:ng}}}function og(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ta},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,o){const s=a.createTracker(o);let l=s.move("[^");const c=a.enter("footnoteDefinition"),d=a.enter("label");return l+=s.move(a.safe(a.associationId(r),{before:l,after:"]"})),d(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?`
22
+ `:" ")+a.indentLines(a.containerFlow(r,s.current()),t?Aa:ag))),c(),l}}function ag(e,t,n){return t===0?e:Aa(e,t,n)}function Aa(e,t,n){return(n?"":" ")+e}const sg=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ca.peek=pg;function lg(){return{canContainEols:["delete"],enter:{strikethrough:ug},exit:{strikethrough:dg}}}function cg(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:sg}],handlers:{delete:Ca}}}function ug(e){this.enter({type:"delete",children:[]},e)}function dg(e){this.exit(e)}function Ca(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 pg(){return"~"}function fg(e){return e.length}function gg(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||fg,a=[],o=[],s=[],l=[];let c=0,d=-1;for(;++d<e.length;){const h=[],x=[];let w=-1;for(e[d].length>c&&(c=e[d].length);++w<e[d].length;){const E=hg(e[d][w]);if(n.alignDelimiters!==!1){const S=i(E);x[w]=S,(l[w]===void 0||S>l[w])&&(l[w]=S)}h.push(E)}o[d]=h,s[d]=x}let u=-1;if(typeof r=="object"&&"length"in r)for(;++u<c;)a[u]=Ia(r[u]);else{const h=Ia(r);for(;++u<c;)a[u]=h}u=-1;const f=[],p=[];for(;++u<c;){const h=a[u];let x="",w="";h===99?(x=":",w=":"):h===108?x=":":h===114&&(w=":");let E=n.alignDelimiters===!1?1:Math.max(1,l[u]-x.length-w.length);const S=x+"-".repeat(E)+w;n.alignDelimiters!==!1&&(E=x.length+E+w.length,E>l[u]&&(l[u]=E),p[u]=E),f[u]=S}o.splice(1,0,f),s.splice(1,0,p),d=-1;const g=[];for(;++d<o.length;){const h=o[d],x=s[d];u=-1;const w=[];for(;++u<c;){const E=h[u]||"";let S="",I="";if(n.alignDelimiters!==!1){const R=l[u]-(x[u]||0),_=a[u];_===114?S=" ".repeat(R):_===99?R%2?(S=" ".repeat(R/2+.5),I=" ".repeat(R/2-.5)):(S=" ".repeat(R/2),I=S):I=" ".repeat(R)}n.delimiterStart!==!1&&!u&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&E==="")&&(n.delimiterStart!==!1||u)&&w.push(" "),n.alignDelimiters!==!1&&w.push(S),w.push(E),n.alignDelimiters!==!1&&w.push(I),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||u!==c-1)&&w.push("|")}g.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return g.join(`
23
+ `)}function hg(e){return e==null?"":String(e)}function Ia(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 mg(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()),bg);return i(),o}function bg(e,t,n){return">"+(n?"":" ")+e}function kg(e,t){return Oa(e,t.inConstruct,!0)&&!Oa(e,t.notInConstruct,!1)}function Oa(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 Ma(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
24
+ `&&kg(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
25
+ `}function yg(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 wg(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 xg(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 Eg(e,t,n,r){const i=xg(n),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(wg(e,n)){const u=n.enter("codeIndented"),f=n.indentLines(a,_g);return u(),f}const s=n.createTracker(r),l=i.repeat(Math.max(yg(a,i)+1,3)),c=n.enter("codeFenced");let d=s.move(l);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(l),c(),d}function wg(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 Eg(e,t,n,r){const i=ti(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
29
- `,...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c}function xg(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 Sn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Jn(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}}Na.peek=_g;function Na(e,t,n,r){const i=xg(n),a=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),d=Jn(r.before.charCodeAt(r.before.length-1),c,i);d.inside&&(l=Sn(c)+l.slice(1));const u=l.charCodeAt(l.length-1),f=Jn(r.after.charCodeAt(0),u,i);f.inside&&(l=l.slice(0,-1)+Sn(u));const p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function _g(e,t,n){return n.options.emphasis||"*"}function vg(e,t){let n=!1;return Gn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Rr}),!!((!e.depth||e.depth<3)&&xr(e)&&(t.options.setext||n))}function Sg(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(vg(e,n)){const d=n.enter("headingSetext"),u=n.enter("phrasing"),f=n.containerPhrasing(e,{...a.current(),before:`
28
+ `)),d+=s.move(l),c(),d}function _g(e,t,n){return(n?"":" ")+e}function li(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 vg(e,t,n,r){const i=li(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
29
+ `,...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),o(),c}function Sg(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 Tn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function rr(e,t,n){const r=rn(e),i=rn(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}}La.peek=Ng;function La(e,t,n,r){const i=Sg(n),a=n.enter("emphasis"),o=n.createTracker(r),s=o.move(i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),d=rr(r.before.charCodeAt(r.before.length-1),c,i);d.inside&&(l=Tn(c)+l.slice(1));const u=l.charCodeAt(l.length-1),f=rr(r.after.charCodeAt(0),u,i);f.inside&&(l=l.slice(0,-1)+Tn(u));const p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function Ng(e,t,n){return n.options.emphasis||"*"}function Tg(e,t){let n=!1;return Yn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Ur}),!!((!e.depth||e.depth<3)&&Cr(e)&&(t.options.setext||n))}function Ag(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Tg(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"),l=n.enter("phrasing");a.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
34
- `,...a.current()});return/^[\t ]/.test(c)&&(c=Sn(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c}Ta.peek=Ng;function Ta(e){return e.value||""}function Ng(){return"<"}Aa.peek=Tg;function Aa(e,t,n,r){const i=ti(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function Tg(){return"!"}Ca.peek=Ag;function Ca(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const u=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!c||c!==u?l+=s.move(u+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Ag(){return"!"}Ia.peek=Cg;function Ia(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 l;if(o.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function Cg(){return"`"}function Oa(e,t){const n=xr(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))}Ma.peek=Ig;function Ma(e,t,n,r){const i=ti(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(Oa(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"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function Ig(e,t,n){return Oa(e,n)?"<":"["}Ra.peek=Og;function Ra(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const u=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!c||c!==u?l+=s.move(u+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Og(){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 Mg(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 Rg(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 La(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 Lg(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?Rg(n):ni(n);const s=e.ordered?o==="."?")":".":Mg(n);let l=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&&(l=!0),La(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"){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),c}function Dg(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 Pg(e,t,n,r){const i=Dg(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 l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),d);return l(),c;function d(u,f,p){return f?(p?"":" ".repeat(o))+u:(p?a:a+" ".repeat(o-a.length))+u}}function Bg(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const Fg=xn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zg(e,t,n,r){return(e.children.some(function(o){return Fg(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Ug(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Da.peek=qg;function Da(e,t,n,r){const i=Ug(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),d=Jn(r.before.charCodeAt(r.before.length-1),c,i);d.inside&&(l=Sn(c)+l.slice(1));const u=l.charCodeAt(l.length-1),f=Jn(r.after.charCodeAt(0),u,i);f.inside&&(l=l.slice(0,-1)+Sn(u));const p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function qg(e,t,n){return n.options.strong||"*"}function $g(e,t,n,r){return n.safe(e.value,r)}function Hg(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 Gg(e,t,n){const r=(La(n)+(n.options.ruleSpaces?" ":"")).repeat(Hg(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Pa={blockquote:fg,break:Sa,code:yg,definition:Eg,emphasis:Na,hardBreak:Sa,heading:Sg,html:Ta,image:Aa,imageReference:Ca,inlineCode:Ia,link:Ma,linkReference:Ra,list:Lg,listItem:Pg,paragraph:Bg,root:zg,strong:Da,text:$g,thematicBreak:Gg};function Wg(){return{enter:{table:Kg,tableData:Ba,tableHeader:Ba,tableRow:Yg},exit:{codeText:Zg,table:Vg,tableData:ri,tableHeader:ri,tableRow:ri}}}function Kg(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 Vg(e){this.exit(e),this.data.inTable=void 0}function Yg(e){this.enter({type:"tableRow",children:[]},e)}function ri(e){this.exit(e)}function Ba(e){this.enter({type:"tableCell",children:[]},e)}function Zg(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Xg));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Xg(e,t){return t==="|"?t:e}function Qg(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:l,tableRow:s}};function o(p,g,h,E){return c(d(p,h,E),p.align)}function s(p,g,h,E){const b=u(p,h,E),N=c([b]);return N.slice(0,N.indexOf(`
36
- `))}function l(p,g,h,E){const b=h.enter("tableCell"),N=h.enter("phrasing"),v=h.containerPhrasing(p,{...E,before:a,after:a});return N(),b(),v}function c(p,g){return dg(p,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function d(p,g,h){const E=p.children;let b=-1;const N=[],v=g.enter("table");for(;++b<E.length;)N[b]=u(E[b],g,h);return v(),N}function u(p,g,h){const E=p.children;let b=-1;const N=[],v=g.enter("tableRow");for(;++b<E.length;)N[b]=l(E[b],p,g,h);return v(),N}function f(p,g,h){let E=Pa.inlineCode(p,g,h);return h.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function jg(){return{exit:{taskListCheckValueChecked:Fa,taskListCheckValueUnchecked:Fa,paragraph:eh}}}function Jg(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:th}}}function Fa(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function eh(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 th(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 l=Pa.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(d){return d+o}}function nh(){return[Lf(),tg(),og(),Wg(),jg()]}function rh(e){return{extensions:[Df(),ng(e),ag(),Qg(e),Jg()]}}const ih={tokenize:uh,partial:!0},za={tokenize:dh,partial:!0},Ua={tokenize:ph,partial:!0},qa={tokenize:fh,partial:!0},oh={tokenize:gh,partial:!0},$a={name:"wwwAutolink",tokenize:lh,previous:Ga},Ha={name:"protocolAutolink",tokenize:ch,previous:Wa},St={name:"emailAutolink",tokenize:sh,previous:Ka},Et={};function ah(){return{text:Et}}let Wt=48;for(;Wt<123;)Et[Wt]=St,Wt++,Wt===58?Wt=65:Wt===91&&(Wt=97);Et[43]=St,Et[45]=St,Et[46]=St,Et[95]=St,Et[72]=[St,Ha],Et[104]=[St,Ha],Et[87]=[St,$a],Et[119]=[St,$a];function sh(e,t,n){const r=this;let i,a;return o;function o(u){return!ii(u)||!Ka.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),l):n(u)}function l(u){return u===46?e.check(oh,d,c)(u):u===45||u===95||qe(u)?(a=!0,e.consume(u),l):d(u)}function c(u){return e.consume(u),i=!0,l}function d(u){return a&&i&&Ke(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}function lh(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Ga.call(r,r.previous)||oi(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ih,e.attempt(za,e.attempt(Ua,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function ch(e,t,n){const r=this;let i="",a=!1;return o;function o(u){return(u===72||u===104)&&Wa.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(Ke(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),l}return n(u)}function l(u){return u===47?(e.consume(u),a?c:(a=!0,l)):n(u)}function c(u){return u===null||Ln(u)||Ne(u)||$t(u)||Dn(u)?n(u):e.attempt(za,e.attempt(Ua,d),n)(u)}function d(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function uh(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 dh(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(qa,l,s)(c):c===null||Ne(c)||$t(c)||c!==45&&Dn(c)?l(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function l(c){return i||r||!a?n(c):t(c)}}function ph(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(qa,t,a)(o):o===null||Ne(o)||$t(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function fh(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||Ne(s)||$t(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Ne(s)||$t(s)?t(s):r(s)}function a(s){return Ke(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Ke(s)?(e.consume(s),o):n(s)}}function gh(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return qe(a)?n(a):t(a)}}function Ga(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ne(e)}function Wa(e){return!Ke(e)}function Ka(e){return!(e===47||ii(e))}function ii(e){return e===43||e===45||e===46||e===95||qe(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 hh={tokenize:_h,partial:!0};function mh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:wh,continuation:{tokenize:Eh},exit:xh}},text:{91:{name:"gfmFootnoteCall",tokenize:yh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:bh,resolveTo:kh}}}}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 l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=gt(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function kh(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 yh(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"),l}function l(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(a>999||u===93&&!o||u===null||u===91||Ne(u))return n(u);if(u===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(gt(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return Ne(u)||(o=!0),a++,e.consume(u),u===92?d:c}function d(u){return u===91||u===92||u===93?(e.consume(u),a++,c):c(u)}}function wh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(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||Ne(g))return n(g);if(g===93){e.exit("chunkString");const h=e.exit("gfmFootnoteDefinitionLabelString");return a=gt(r.sliceSerialize(h)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Ne(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),me(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function Eh(e,t,n){return e.check(bn,t,e.attempt(hh,t,n))}function xh(e){e.exit("gfmFootnoteDefinition")}function _h(e,t,n){const r=this;return me(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 vh(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 l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},u={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},f=[["enter",d,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",u,s]],p=s.parser.constructs.insideSpan.null;p&&ot(f,f.length,0,Pn(p,o.slice(c+1,l),s)),ot(f,f.length,0,[["exit",u,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",d,s]]),ot(o,c-1,l-c+3,f),l=c+f.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,s,l){const c=this.previous,d=this.events;let u=0;return f;function f(g){return c===126&&d[d.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const h=Jt(c);if(g===126)return u>1?l(g):(o.consume(g),u++,p);if(u<2&&!n)return l(g);const E=o.exit("strikethroughSequenceTemporary"),b=Jt(g);return E._open=!b||b===2&&!!h,E._close=!h||h===2&&!!b,s(g)}}}class Sh{constructor(){this.map=[]}add(t,n,r){Nh(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 Nh(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 Th(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 Ah(){return{flow:{null:{name:"table",tokenize:Ch,resolveAll:Ih}}}}function Ch(e,t,n){const r=this;let i=0,a=0,o;return s;function s(_){let B=r.events.length-1;for(;B>-1;){const Z=r.events[B][1].type;if(Z==="lineEnding"||Z==="linePrefix")B--;else break}const P=B>-1?r.events[B][1].type:null,J=P==="tableHead"||P==="tableRow"?x:l;return J===x&&r.parser.lazy[r.now().line]?n(_):J(_)}function l(_){return e.enter("tableHead"),e.enter("tableRow"),c(_)}function c(_){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(_):pe(_)?me(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||Ne(_)?(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,pe(_)?me(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):g(_))}function g(_){return _===45||_===58?E(_):_===124?(o=!0,e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),h):R(_)}function h(_){return pe(_)?me(e,E,"whitespace")(_):E(_)}function E(_){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 pe(_)?me(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"),U(_)}function U(_){return _===124?(e.enter("tableCellDivider"),e.consume(_),e.exit("tableCellDivider"),U):_===null||V(_)?(e.exit("tableRow"),t(_)):pe(_)?me(e,U,"whitespace")(_):(e.enter("data"),G(_))}function G(_){return _===null||_===124||Ne(_)?(e.exit("data"),U(_)):(e.consume(_),_===92?H:G)}function H(_){return _===92||_===124?(e.consume(_),G):G(_)}}function Ih(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,d,u;const f=new Sh;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(Va(f,t,l,c,d),d=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",c,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=er(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=er(f,t,a,i,void 0,u)),a=o,o=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(o[0]=o[1],u=er(f,t,a,i,n,u)):o[1]!==0&&(u=er(f,t,o,i,n,u)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Va(f,t,l,c,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=Th(t.events,n))}return e}function er(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},nn(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=nn(t.events,n[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=nn(t.events,n[2]),d=nn(t.events,n[3]),u={type:s,start:Object.assign({},c),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({},nn(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Va(e,t,n,r,i){const a=[],o=nn(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 nn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Oh={name:"tasklistCheck",tokenize:Rh};function Mh(){return{text:{91:Oh}}}function Rh(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Ne(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return V(l)?t(l):pe(l)?e.check({tokenize:Lh},t,n)(l):n(l)}}function Lh(e,t,n){return me(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Dh(e){return Vi([ah(),mh(),vh(e),Ah(),Mh()])}const Ph={};function Bh(e){const t=this,n=e||Ph,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Dh(n)),a.push(nh()),o.push(rh(n))}function Fh(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}`})}function zh(e){return e.replace(/\[source\s+(\d+)\]/gi,(t,n)=>`[\`${n}\`](#source-${n})`)}function Uh(e){const t=Fh(e);return zh(t)}const qh=F.memo(function({content:t}){return w.jsx(Ld,{rehypePlugins:[Tf],remarkPlugins:[Bh],children:Uh(t)})});function $h(e){return e.variants?.find(t=>t.available)||e.variants?.[0]}function Ya(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}`:""}`}}function Hh({product:e,copy:t,locale:n,layout:r="vertical",onProductClick:i}){const a=$h(e),o=!!a?.available&&e.available!=="false",s=Ya(a?.price,a?.currency,n),l=Ya(a?.compare_at_price||void 0,a?.currency,n);return w.jsxs("article",{className:`akilio-product-card akilio-product-card--${r}`,role:"listitem",children:[w.jsxs("div",{className:"akilio-product-media",children:[e.image_url?w.jsx("img",{src:e.image_url,alt:"",loading:"lazy",decoding:"async"}):w.jsx("div",{className:"akilio-product-placeholder","aria-hidden":"true",children:"A"}),w.jsx("span",{className:o?"akilio-stock akilio-stock--available":"akilio-stock",children:o?t.inStock:t.outOfStock})]}),w.jsxs("div",{className:"akilio-product-body",children:[e.vendor&&w.jsx("span",{className:"akilio-product-vendor",children:e.vendor}),w.jsx("h4",{children:e.title}),a?.title&&a.title!==e.title&&w.jsx("span",{className:"akilio-product-variant",children:a.title}),w.jsxs("div",{className:"akilio-product-price",children:[s?w.jsx("strong",{children:s}):w.jsx("strong",{children:t.unavailable}),l&&l!==s&&w.jsx("del",{children:l})]}),e.url?w.jsx("a",{className:"akilio-product-action",href:e.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>i?.(e,a),children:t.viewProduct}):w.jsx("button",{type:"button",className:"akilio-product-action",disabled:!o,onClick:()=>i?.(e,a),children:t.viewProduct})]})]},e.id)}const Gh=F.memo(function({commerce:t,copy:n,locale:r,onProductClick:i}){const a=F.useMemo(()=>Array.isArray(t.products)?t.products.filter(s=>s?.id&&s?.title):[],[t.products]);if(!a.length)return null;const o=a.length>3?"vertical":"horizontal";return w.jsxs("section",{className:"akilio-products","aria-label":n.products,children:[w.jsxs("div",{className:"akilio-products-heading",children:[w.jsx("strong",{children:n.products}),w.jsx("span",{children:a.length})]}),w.jsx("div",{className:`akilio-products-grid akilio-products-grid--${o}`,role:"list",children:a.map(s=>w.jsx(Hh,{product:s,copy:n,locale:r,layout:o,onProductClick:i}))})]})});function Wh(e){return Array.isArray(e)?e.filter(t=>t?.title||t?.url):[]}const Za=F.memo(function({message:t,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o,primaryColor:s}){const l=t.role==="user",c=Wh(t.sources);return w.jsx("div",{className:Ft("akilio-message-row",l?"akilio-message-row--user":"akilio-message-row--assistant"),children:w.jsxs("div",{className:Ft("akilio-bubble",l&&"akilio-bubble--user",t.error&&"akilio-bubble--error"),children:[!l&&!t.error&&w.jsxs("div",{className:"akilio-bubble-meta",children:[w.jsx(sr,{style:{width:"20px",height:"20px"},primaryColor:s}),w.jsx("span",{children:n.title})]}),w.jsx("div",{className:Ft("akilio-answer",l&&"akilio-answer--user"),children:l?w.jsx("p",{children:t.content}):w.jsx(qh,{content:t.content})}),!l&&t.commerce?.products?.length?w.jsx(Gh,{commerce:t.commerce,copy:n,locale:r,onProductClick:(d,u)=>a?.(t,d,u)}):null,!l&&!t.error&&t.suggestions?.length?w.jsx("div",{className:"akilio-response-suggestions","aria-label":"Suggested follow-up questions",children:t.suggestions.map(d=>w.jsx("button",{type:"button",onClick:()=>o?.(d),children:d},d))}):null,!l&&c.length>0&&w.jsxs("details",{className:"akilio-sources",children:[w.jsxs("summary",{children:[n.sources," · ",c.length]}),w.jsx("div",{className:"akilio-sources-list",children:c.map((d,u)=>w.jsxs("div",{className:"akilio-source-card",children:[w.jsx("strong",{children:d.title||"Untitled source"}),typeof d.section_path=="string"&&w.jsx("span",{children:d.section_path}),d.url&&w.jsx("a",{href:d.url,target:"_blank",rel:"noreferrer",children:d.url})]},`${d.url||d.title}-${u}`))})]}),!l&&!t.error&&t.backendMessageId&&w.jsxs("div",{className:"akilio-feedback",children:[w.jsx("span",{children:t.feedback?n.feedbackThanks:n.feedbackQuestion}),w.jsx("button",{type:"button",className:Ft(t.feedback==="up"&&"akilio-feedback-active"),onClick:()=>i?.(t,"up"),"aria-label":n.voteUp,children:w.jsx(gs,{})}),w.jsx("button",{type:"button",className:Ft(t.feedback==="down"&&"akilio-feedback-active"),onClick:()=>i?.(t,"down"),"aria-label":n.voteDown,children:w.jsx(hs,{})})]})]})})}),Kh=F.memo(function({messages:t,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o,primaryColor:s}){return w.jsx(w.Fragment,{children:t.map(l=>w.jsx(Za,{message:l,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o,primaryColor:s},l.id))})});function Vh({copy:e,label:t,primaryColor:n}){return w.jsxs("div",{className:"akilio-message-row akilio-message-row--assistant akilio-stream-activity",role:"status","aria-live":"polite","aria-atomic":"true",children:[w.jsx("span",{className:"akilio-stream-activity-icon","aria-hidden":"true",children:w.jsx(sr,{style:{width:"20px",height:"20px"},primaryColor:n})}),w.jsxs("div",{className:"akilio-stream-activity-content",children:[w.jsx("span",{className:"akilio-stream-activity-label",children:t||e.loading},t),w.jsx("span",{className:"akilio-stream-activity-pulse","aria-hidden":"true"})]})]})}const Yh=F.forwardRef(function(t,n){const{open:r,isDesktop:i,inline:a,colorMode:o,allowColorModeToggle:s,widgetAvailable:l,showBranding:c,showPoweredBy:d,copy:u,locale:f,messages:p,streamingMessage:g,loading:h,loadingLabel:E,consentDecision:b,consentGranted:N,requireConsent:v,privacyNotice:O,privacyNoticeUrl:R,onConsentDecision:x,onClose:U,onToggleColorMode:G,onClear:H,onSubmit:_,onDraftChange:B,onFeedback:P,onProductClick:J,onSuggestion:Z,primaryColor:q}=t,oe=F.useRef(null),ae=F.useRef(null);return F.useImperativeHandle(n,()=>({getDraft:()=>ae.current?.getDraft()||"",setDraft:(Q,ke)=>ae.current?.setDraft(Q,ke),clearDraft:()=>ae.current?.clearDraft(),focusDraft:()=>ae.current?.focus(),submitDraft:()=>ae.current?ae.current.submit():Promise.reject(new Error("NOT_READY"))}),[]),F.useEffect(()=>{r&&oe.current?.scrollTo({top:oe.current.scrollHeight,behavior:p.length>1?"auto":"smooth"})},[p.length,g?.content,h,r]),w.jsxs("aside",{className:Ft("akilio-panel",i&&"akilio-panel--desktop",a&&"akilio-panel--inline",r&&"akilio-panel--open"),"aria-hidden":!r,"aria-label":u.title,children:[w.jsx("div",{className:"akilio-panel-glow"}),w.jsxs("header",{className:"akilio-panel-header",children:[c&&w.jsx("div",{className:"akilio-logo",children:w.jsx(Rn,{variant:"mark",style:{width:40,height:40},primaryColor:q})}),w.jsxs("div",{className:"akilio-header-content",children:[w.jsxs("div",{className:"akilio-header-topline",children:[w.jsx("div",{className:"akilio-header-title",children:w.jsx("h2",{children:u.title})}),w.jsxs("div",{className:"akilio-header-actions",children:[s&&w.jsx("button",{type:"button",onClick:G,title:o==="dark"?u.switchToLightMode:u.switchToDarkMode,"aria-label":o==="dark"?u.switchToLightMode:u.switchToDarkMode,children:o==="dark"?w.jsx(ms,{}):w.jsx(bs,{})}),w.jsx("button",{type:"button",onClick:H,title:u.clearHistory,"aria-label":u.clearHistory,children:w.jsx(fs,{})}),!a&&w.jsx("button",{type:"button",onClick:U,title:u.close,"aria-label":u.close,children:w.jsx(ps,{})})]})]}),w.jsx("p",{className:"akilio-header-description",children:u.description})]})]}),w.jsxs("div",{ref:oe,className:"akilio-thread","aria-live":"polite","aria-relevant":"additions",children:[p.length===0&&!h?w.jsx(ys,{copy:u,onSuggestion:_,widgetAvailable:l,showBranding:c,primaryColor:q}):w.jsx(Kh,{messages:p,copy:u,locale:f,onFeedback:P,onProductClick:J,onSuggestion:Z,primaryColor:q}),g&&w.jsx(Za,{message:g,copy:u,locale:f,onFeedback:P,onProductClick:J,onSuggestion:Z,primaryColor:q}),h&&!g&&w.jsx(Vh,{copy:u,label:E,primaryColor:q})]}),(O||v)&&b==="pending"&&w.jsxs("section",{className:"akilio-privacy","aria-label":u.privacyTitle,children:[w.jsxs("div",{children:[w.jsx("strong",{children:u.privacyTitle}),w.jsxs("p",{children:[O||u.privacyDefaultNotice," ",R&&w.jsx("a",{href:R,target:"_blank",rel:"noreferrer",children:u.privacyTitle})]}),v&&w.jsx("p",{className:"akilio-privacy-consent-copy",children:u.privacyAccept})]}),w.jsxs("div",{className:"akilio-privacy-actions",children:[w.jsx("button",{type:"button",className:"akilio-privacy-decline",onClick:()=>x("rejected"),children:u.privacyDecline}),w.jsx("button",{type:"button",className:"akilio-privacy-accept",onClick:()=>x("accepted"),children:u.privacyAcceptAction})]})]}),w.jsx(ks,{ref:ae,loading:h,disabled:!l||v&&!N,disabledMessage:l?u.privacyRequired:u.widgetUnavailable,showPoweredBy:d,copy:u,onSubmit:_,onDraftChange:B,onReviewConsent:v&&b==="rejected"?()=>x("pending"):void 0})]})});function Zh({label:e,onClick:t,showBranding:n=!0,primaryColor:r}){return w.jsxs("button",{id:"akilio-launcher",type:"button",className:"akilio-launcher",onClick:t,children:[w.jsx("span",{children:n?w.jsx(Rn,{variant:"mark",className:"akilio-launcher-logo",primaryColor:r}):w.jsx(lr,{className:"akilio-launcher-logo"})}),w.jsx("strong",{children:e})]})}function Xh({title:e,message:t,actionLabel:n,dismissLabel:r,onDismiss:i,onOpen:a,primaryColor:o,showBranding:s}){return w.jsxs("section",{className:"akilio-coachmark",role:"status","aria-live":"polite","aria-label":e,children:[w.jsx("button",{type:"button",className:"akilio-coachmark-close",onClick:i,"aria-label":r,children:w.jsx("span",{"aria-hidden":"true",children:"×"})}),w.jsx("div",{className:"akilio-coachmark-icon","aria-hidden":"true",children:s?w.jsx(Rn,{variant:"mark",primaryColor:o}):w.jsx(lr,{})}),w.jsxs("div",{className:"akilio-coachmark-content",children:[w.jsx("strong",{children:e}),w.jsx("p",{children:t}),w.jsx("button",{type:"button",className:"akilio-coachmark-action",onClick:a,children:n})]})]})}const Qh="(min-width: 1280px)";function jh(e=Qh){const[t,n]=F.useState(!1);return F.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 rn=60;function Xa(e,t){if(!e)return t;try{return JSON.parse(e)}catch{return t}}function Jh(e){const t=F.useMemo(()=>`akilio:${e.projectKey}:${e.locale||"default"}:messages:v1`,[e.projectKey,e.locale]),[n,r]=F.useState([]),[i,a]=F.useState(!1);return F.useEffect(()=>{if(!e.enabled||typeof window>"u"){a(!0);return}const o=Xa(window.localStorage.getItem(t),[]);r(Array.isArray(o)?o.slice(-rn):[]),a(!0)},[e.enabled,t]),F.useEffect(()=>{!e.enabled||!i||typeof window>"u"||window.localStorage.setItem(t,JSON.stringify(n.slice(-rn)))},[n,e.enabled,t,i]),[n,r,t]}function on(e){const[t,n]=F.useState(e.initialValue||""),[r,i]=F.useState(!1);return F.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]),F.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]}const em={version:"0.6.6"};function xt(e){const t=e.toLowerCase();return Array.from(document.scripts).some(n=>(n.src||"").toLowerCase().includes(t))}function tm(e){const t=e.toLowerCase();return Array.from(document.querySelectorAll("link[href]")).some(n=>n.href.toLowerCase().includes(t))}function nm(e,t){return Array.from(document.querySelectorAll(`meta[${e}]`)).some(n=>n.getAttribute(e)===t)}function rm(e){const t=e.toLowerCase();return Array.from(document.body?.classList??[]).some(n=>n.toLowerCase().includes(t))}function im(){const e=window.location.hostname.toLowerCase(),t=document.documentElement.innerHTML.toLowerCase(),n=[];if(window.Shopify&&n.push("window.Shopify"),xt("cdn.shopify.com")&&n.push("cdn.shopify.com script"),t.includes("shopify-section")&&n.push("shopify-section markup"),e.endsWith(".myshopify.com")&&n.push("myshopify.com hostname"),n.length>=2)return{integration:"shopify",confidence:"high",signals:n};if(n.length===1)return{integration:"shopify",confidence:"medium",signals:n};const r=[];if(window.wcSettings&&r.push("window.wcSettings"),xt("woocommerce")&&r.push("WooCommerce script"),rm("woocommerce")&&r.push("WooCommerce body class"),(t.includes("woocommerce-cart")||t.includes("woocommerce-checkout")||t.includes("wc-block-"))&&r.push("WooCommerce markup"),r.length>=2)return{integration:"woocommerce",confidence:"high",signals:r};if(r.length===1)return{integration:"woocommerce",confidence:"medium",signals:r};const i=[];if(tm("/wp-json/")&&i.push("WordPress REST API link"),(xt("/wp-content/")||xt("/wp-includes/"))&&i.push("WordPress asset path"),(t.includes("/wp-content/")||t.includes("/wp-includes/"))&&i.push("WordPress HTML asset path"),nm("name","generator")&&document.querySelector('meta[name="generator"]')?.content.toLowerCase()?.includes("wordpress")&&i.push("WordPress generator metadata"),i.length>=2)return{integration:"wordpress",confidence:"high",signals:i};if(i.length===1)return{integration:"wordpress",confidence:"medium",signals:i};const a=[];if((window.prestashop||window.PrestaShop)&&a.push("PrestaShop global"),xt("/modules/")&&t.includes("prestashop")&&a.push("PrestaShop module assets"),document.querySelector('meta[name="generator"]')?.content.toLowerCase()?.includes("prestashop")&&a.push("PrestaShop generator metadata"),a.length>=2)return{integration:"prestashop",confidence:"high",signals:a};if(a.length===1)return{integration:"prestashop",confidence:"medium",signals:a};const s=[];return window.requirejs&&xt("mage/")&&s.push("Magento RequireJS modules"),(xt("/static/frontend/")||t.includes("mage-init"))&&s.push("Magento frontend assets"),t.includes("data-mage-init")&&s.push("data-mage-init"),s.length>=2?{integration:"magento",confidence:"high",signals:s}:s.length===1?{integration:"magento",confidence:"medium",signals:s}:t.includes("wixstatic.com")||xt("wixstatic.com")?{integration:"wix",confidence:"high",signals:["Wix static assets"]}:document.documentElement.hasAttribute("data-wf-page")||xt("webflow")?{integration:"webflow",confidence:"high",signals:["Webflow page attributes or assets"]}:xt("static1.squarespace.com")||t.includes("squarespace")?{integration:"squarespace",confidence:"medium",signals:["Squarespace assets"]}:window.__NEXT_DATA__||document.getElementById("__next")?{integration:"nextjs",confidence:"high",signals:["Next.js runtime markers"]}:document.querySelector("[ng-version]")||window.angular?{integration:"angular",confidence:"high",signals:["Angular runtime markers"]}:window.__NUXT__||document.getElementById("__nuxt")?{integration:"vue",confidence:"medium",signals:["Nuxt/Vue runtime markers"]}:window.Vue?{integration:"vue",confidence:"medium",signals:["Vue global"]}:document.getElementById("root")||document.querySelector("[data-reactroot]")?{integration:"react",confidence:"low",signals:["Possible React root element"]}:{integration:"unknown",confidence:"low",signals:[]}}class ai extends Error{status;payload;constructor(t,n,r){super(t),this.name="AkilioHttpError",this.status=n,this.payload=r}}function Qa(e,t){return`${e.replace(/\/$/,"")}${t.startsWith("/")?t:`/${t}`}`}async function ja(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 om(e){if(typeof window>"u")return null;try{const t=window.sessionStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function Ja(e,t){if(!(typeof window>"u"))try{t?window.sessionStorage.setItem(e,JSON.stringify(t)):window.sessionStorage.removeItem(e)}catch{}}class es{apiBaseUrl;fetchImpl;auth;widgetToken=null;widgetTokenPromise=null;widgetTokenPromiseKey=null;mode;locale;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,this.mode=t.mode,this.locale=t.locale}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,Ja(si(this.apiBaseUrl,t,n),null)}async issueWidgetToken(t,n){const r=await this.publicRequest(`/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,Ja(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=om(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(Qa(this.apiBaseUrl,t),{...n,credentials:this.auth?.credentials||"omit",headers:{...r,...n.headers||{}}});return ja(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(l){if(!(l instanceof ai)||l.status!==401)throw l;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 c=await this.ensureWidgetToken(t,n);a.Authorization=`${c.tokenType} ${c.token}`}const s=()=>this.fetchImpl(Qa(this.apiBaseUrl,r),{...i,credentials:this.auth?.credentials||"omit",headers:{...a,...i.headers||{}}});let l=await s();if(l.status===401&&!o){await l.body?.cancel().catch(()=>{});const c=await this.ensureWidgetToken(t,n,!0);a.Authorization=`${c.tokenType} ${c.token}`,l=await s()}return l.ok||await ja(l),l}getProjectConfig(t){const n=im();return this.publicRequest(`/projects/${encodeURIComponent(t)}/config/`,{method:"POST",body:JSON.stringify({widget:{version:em.version,mode:this.mode,locale:this.locale,integration:n},browser:{screen_width:window.innerWidth,viewport_width:window.innerWidth,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,referrer:document.referrer||void 0}})})}async prepareWidgetToken(t,n){this.hasHostManagedToken()||this.auth?.autoIssueWidgetToken===!1||await this.ensureWidgetToken(t,n)}sendMessage(t,n,r){return this.authenticatedRequest(t,n,"/chat/",{method:"POST",body:JSON.stringify(r)})}async sendMessageStream(t,n,r,i={},a){let o;try{o=await this.authenticatedResponse(t,n,"/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(),l=new TextDecoder;let c="",d=null;const u=f=>{let p="message";const g=[];for(const E of f.split(/\r?\n/))!E||E.startsWith(":")||(E.startsWith("event:")&&(p=E.slice(6).trim()),E.startsWith("data:")&&g.push(E.slice(5).trimStart()));if(!g.length)return;let h;try{const E=JSON.parse(g.join(`
37
- `));h=E&&typeof E=="object"?E:{value:E}}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 E=h.conversation_id||h.id;E&&i.onConversation?.(String(E))}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();c+=l.decode(f,{stream:!p});const g=c.split(/\r?\n\r?\n/);c=g.pop()||"";for(const h of g)u(h);if(p)break}if(c.trim()&&u(c),!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,`/conversations/${encodeURIComponent(r)}/?${i}`)}deleteConversation(t,n,r){const i=new URLSearchParams({project_key:t});return this.authenticatedRequest(t,n,`/conversations/${encodeURIComponent(r)}/?${i}`,{method:"DELETE"})}sendCommerceEvent(t,n,r){return this.authenticatedRequest(t,n,"/commerce/events/",{method:"POST",body:JSON.stringify(r)})}sendFeedback(t){return this.authenticatedRequest(t.projectKey,t.subject,`/messages/${encodeURIComponent(t.messageId)}/feedback/`,{method:"POST",body:JSON.stringify({project_key:t.projectKey,rating:t.rating,comment:t.comment||"",metadata:t.metadata||{}})})}}function am(e){const n=(e.locale||"").toLowerCase().startsWith("fr")?{launcher:"Demander à Akilio",title:"Demander à Akilio",description:"Propulsé par l'IA",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",aiContentWarning:"Le contenu généré par l’IA peut être inexact ou incomplet.",tourTitle:"Besoin d’aide ?",tourMessage:"Posez une question à l’assistant pour trouver rapidement une réponse.",tourAction:"Essayer",tourDismiss:"Fermer cette aide",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:"Powered by AI",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",aiContentWarning:"AI content may be inaccurate or incomplete.",tourTitle:"Need help?",tourMessage:"Ask the assistant a question to quickly find the information you need.",tourAction:"Try it",tourDismiss:"Dismiss this tip",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?.launcher_label||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 ts=':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),color-mix(in srgb,var(--akilio-primary) 80%,transparent));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:10px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-logo,.akilio-empty-icon{display:grid;flex-shrink:0;place-items:center}.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: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:25px;height:25px;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),color-mix(in srgb,var(--akilio-primary) 80%,transparent));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:13px;line-height:1.7}.akilio-answer h2{font-size:15px;font-weight:700;margin:0}.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:8px 12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-composer-box{display:flex;align-items:flex-end;gap:8px;border:1px solid rgba(212,212,216,.95);border-radius:24px;background:#f8fafc;padding:6px 12px;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{flex:1;min-height:36px;max-height:120px;height:36px;overflow-y:hidden;resize:none;border:0;outline:0;background:transparent;color:#09090b;padding:6px 0;font:inherit;font-size:14px;line-height:1.5}.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-submit{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:999px;background:var(--akilio-primary);color:#fff;cursor:pointer;padding:0;transition:background .15s ease,opacity .15s ease,transform .15s ease}.akilio-composer-submit:hover:not(:disabled){background:var(--akilio-primary-hover);transform:scale(1.05)}.akilio-composer-submit:active:not(:disabled){transform:scale(.98)}.akilio-composer-submit:disabled{opacity:.45;cursor:not-allowed}.akilio-composer-submit svg{width:16px;height:16px}.akilio-composer-help{margin-top:6px;padding:0 12px;color:#71717a;font-size:11px;line-height:1.4;display:flex;align-items:center;gap:4px}.akilio-powered-by{margin-top:6px;padding:0 4px;color:#71717a;font-size:10px;font-weight:600;line-height:1.2;text-align:center}.akilio-coachmark{position:fixed;right:22px;bottom:94px;z-index:calc(var(--akilio-z-index) - 1);display:flex;width:min(320px,calc(100vw - 32px));gap:11px;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:18px;background:#fffffffa;color:#17211f;padding:15px 38px 15px 15px;pointer-events:auto;box-shadow:0 24px 64px #042f2e2e,0 0 0 1px #0f766e0a;animation:akilio-coachmark-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-coachmark:after{position:absolute;right:30px;bottom:-7px;width:13px;height:13px;transform:rotate(45deg);border-right:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-bottom:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);background:#fff;content:""}.akilio-coachmark-icon{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,#fff);color:var(--akilio-primary)}.akilio-coachmark-icon svg{width:17px;height:17px}.akilio-coachmark-content{min-width:0}.akilio-coachmark-content strong{display:block;margin:0 0 3px;color:#17211f;font-size:14px;line-height:1.35}.akilio-coachmark-content p{margin:0;color:#52525b;font-size:12px;line-height:1.5}.akilio-coachmark-action{margin-top:9px;border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground);padding:7px 12px;cursor:pointer;font-size:11px;font-weight:750}.akilio-coachmark-close{position:absolute;top:8px;right:8px;display:grid;width:26px;height:26px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;font-size:20px;line-height:1}.akilio-coachmark-close:hover{background:#f4f4f5;color:#18181b}@keyframes akilio-coachmark-in{0%{transform:translateY(8px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@media(max-width:640px){.akilio-launcher{right:16px;bottom:16px;padding:10px 12px}.akilio-coachmark{right:16px;bottom:82px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw}.akilio-bubble{max-width:94%}.akilio-composer-help{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(10px,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-box{background:#18181b;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-help,.akilio-root[data-akilio-color-mode=dark] .akilio-powered-by{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181bfa;color:#fafafa;box-shadow:0 24px 64px #0000006b}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark:after{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181b}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-content strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-content p,.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-close{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-close:hover{background:#27272a;color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box:focus-within{background:#18181b;border-color:color-mix(in srgb,var(--akilio-primary) 55%,#3f3f46)}.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-products-grid,.akilio-products-grid--vertical{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.akilio-products-grid--horizontal{display:flex;flex-direction:column;gap:10px}@media(max-width:640px){.akilio-products-grid--vertical{grid-template-columns:1fr}}@media(max-width:390px){.akilio-products-grid--vertical{grid-template-columns:1fr}.akilio-products-grid--horizontal{gap:8px}}.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{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px}.akilio-product-price strong{color:#0f172a;font-size:14px}.akilio-product-price del{color:#94a3b8;font-size:10px}.akilio-product-action{width:auto;min-height:auto;display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border:0;border-radius:6px;background:transparent;color:var(--akilio-primary);font:inherit;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer;transition:color .15s ease,background .15s ease}.akilio-product-action:hover{background:color-mix(in srgb,var(--akilio-primary) 8%,transparent);text-decoration:underline}.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-products-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:15px;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}.akilio-product-card--vertical{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f}.akilio-product-card--vertical .akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-card--vertical .akilio-product-body{padding:11px;display:flex;flex-direction:column}.akilio-product-card--horizontal{display:flex;flex-direction:row;gap:12px;min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f;align-items:stretch}.akilio-product-card--horizontal .akilio-product-media{flex:0 0 25%;min-width:80px;position:relative;aspect-ratio:1 / 1;overflow:hidden;background:#f1f5f9}.akilio-product-card--horizontal .akilio-product-body{flex:1;padding:11px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.akilio-product-card--horizontal .akilio-product-action{width:100%}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--vertical,.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--horizontal{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--vertical .akilio-product-media,.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--horizontal .akilio-product-media{background:#1e293b}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-product-card--vertical,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--horizontal{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-product-card--vertical .akilio-product-media,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--horizontal .akilio-product-media{background:#1e293b}}@media(max-width:480px){.akilio-product-card--horizontal{flex-direction:column;gap:0}.akilio-product-card--horizontal .akilio-product-media{flex:1;min-width:unset;aspect-ratio:4 / 3}}@media(max-width:390px){.akilio-product-card--vertical .akilio-product-media{aspect-ratio:16 / 9}.akilio-product-card--horizontal{flex-direction:column}.akilio-product-card--horizontal .akilio-product-media{aspect-ratio:16 / 9}}.source-ref{display:inline-flex;align-items:center;justify-content:center;margin-left:.3rem;padding:.1rem .45rem;border-radius:999px;font-size:.68rem;font-weight:600;letter-spacing:.01em;line-height:1.2;vertical-align:super;color:#334155;background:linear-gradient(180deg,#f8fafc,#eef2ff);border:1px solid #dbeafe;box-shadow:0 1px 2px #0f172a14;-webkit-user-select:none;user-select:none;white-space:nowrap}';class tr extends Error{code;constructor(t,n){super(n),this.name="AkilioPublicApiError",this.code=t}}function st(e,t){typeof window>"u"||window.dispatchEvent(new CustomEvent(`akilio:${e}`,{detail:t||{}}))}function $e(e,t){return new tr(e,t)}function an(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function Nn(){return new Date().toISOString()}function ns(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 sm(e,t){const n={...e?.theme_config||{},...t||{}};return{"--akilio-primary":String(n.primary_color||"#0F766E"),"--akilio-primary-hover":String(n.primary_dark_color||"#115E59"),"--akilio-primary-foreground":String(n.primary_foreground_color||"#ffffff"),"--akilio-accent":String(n.accent_color||"#2563eb"),"--akilio-radius":String(n.radius||"22px"),"--akilio-panel-width":`${Number(n.panel_width||440)}px`,"--akilio-z-index":String(Number(n.z_index||2147483647)),"--akilio-surface":String(n.surface_color||""),"--akilio-text":String(n.text_color||""),"--akilio-muted":String(n.muted_color||"")}}function lm(e,t){F.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 rs(e){return Array.isArray(e)?e.filter(t=>typeof t=="string").map(t=>t.trim()).filter(Boolean).slice(0,6):[]}function cm(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 is(e){if(!e)return null;try{const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}function um(e,t=!0){return{id:an(),role:"assistant",content:cm(e),backendMessageId:e.message_id,conversationId:e.conversation_id,confidence:e.confidence,sources:e.sources||[],provider:e.provider,model:e.model,commerce:t&&e.commerce||null,suggestions:rs(e.suggestions),createdAt:Nn()}}function os({apiBaseUrl:e="https://api.akilio-ai.com/v1",projectKey:t,locale:n="en",mode:r="floating",colorMode:i="system",allowColorModeToggle:a=!0,showAkilioBranding:o=!0,streaming:s=!0,defaultOpen:l=!1,open:c,launcher:d="default",persistOpenState:u=!0,enableTour:f=!0,tourDelayMs:p=3e3,tourVersion:g="v1",enableLocalHistory:h=!0,enableServerHistorySync:E=!0,anonymousId:b,externalUserId:N,channel:v,audience:O,productArea:R,assistantMode:x,pageContext:U,auth:G,accessToken:H,privacyNotice:_,privacyNoticeUrl:B,requireConsent:P,consentNoticeVersion:J="v1",initialConsent:Z=!1,onConsentChange:q,copy:oe,theme:ae,className:Q,onOpenChange:ke,onMessage:m,onProductClick:Ee,onError:de}){const y=F.useRef(null),Te=F.useRef(null),et=F.useRef(0),fe=F.useRef({open:!1,busy:!1,conversationId:null}),lt=`akilio:${t}:config`,[tt,ht]=F.useState(null),He=F.useMemo(()=>({...G||{},accessToken:G?.accessToken||H}),[H,G]),Ie=F.useMemo(()=>new es({apiBaseUrl:e,auth:He,mode:r,locale:n}),[e,He,r,n]),Dt=jh(),[Ye,Kt]=F.useState(Xa(localStorage.getItem(lt),null)),[Nt,be]=F.useState(null),[nt,ct]=F.useState(!1),[Tt,At]=F.useState({stage:"",message:""}),[Tn,Ct]=F.useState(null),[_t,Re]=Jh({enabled:h,projectKey:t,locale:n}),[Be,S]=on({enabled:h,key:`akilio:${t}:${n}:conversation-id:v2`}),M=F.useMemo(()=>an(),[t]),[j]=on({enabled:!0,key:`akilio:${t}:widget-subject:v1`,initialValue:M}),[se,ye]=on({enabled:u,key:`akilio:${t}:panel-open:v2`,initialValue:l?"true":""}),[Ge,rt]=on({enabled:!0,key:`akilio:${t}:coachmark:${g||"v1"}`}),[Ze,ut]=F.useState(!1),[mt,De]=on({enabled:!0,key:`akilio:${t}:consent:${J}`,initialValue:Z?"true":""}),[bt,Xe]=F.useState(l),[Vt,An]=on({enabled:!0,key:`akilio:${t}:color-mode:v1`}),[li,nr]=F.useState("light"),Pe=r==="inline",k=r==="floating",T=r==="hybrid"||r==="side-panel",L=!Pe&&(r==="side-panel"||r==="hybrid"&&Dt),ee=!Pe&&!k&&(r==="drawer"||r==="hybrid"&&!Dt),we=Pe||(c??(u&&se==="true"||bt)),$=i||ae?.color_mode||Ye?.theme_config?.color_mode||"system",z=Vt==="light"||Vt==="dark"||Vt==="system"?Vt:$,Y=z==="system"?li:z,le=F.useMemo(()=>am({locale:n,projectConfig:Ye,overrides:oe}),[oe,n,Ye]),Ae=Ye?.widget_policy,kt=Ae?.available!==!1,dt=Ae?.commerce_enabled!==!1,sn=Ae?.assistant_mode||x,Cn=Ae?.branding==="akilio_required"||Ae?.branding!=="white_label"&&o,In=Ae?.branding==="akilio_required",ci=F.useMemo(()=>dt?_t:_t.map(C=>C.commerce?{...C,commerce:null}:C),[dt,_t]),ln=F.useMemo(()=>sm(Ye,ae),[Ye,ae]),On=P??Ye?.require_consent??!1,rr=_||Ye?.privacy_notice||"",cn=B||Ye?.privacy_notice_url,ir=mt==="true"||mt==="accepted"?"accepted":mt==="rejected"?"rejected":"pending",Yt=ir==="accepted",Qe=N||b||j||void 0,Le=F.useCallback(C=>{if(Pe)return;const X=fe.current.open!==C;fe.current.open=C,c===void 0&&(Xe(C),u&&ye(C?"true":"")),ke?.(C),X&&st(C?"open":"close")},[c,Pe,ke,u,ye]),Mn=F.useMemo(()=>({open:we,openChat:()=>Le(!0),closeChat:()=>Le(!1),toggleChat:()=>Le(!we)}),[we,Le]),It=F.useCallback(()=>{ut(!1),rt("seen")},[rt]),ui=F.useCallback(()=>{It(),Le(!0)},[It,Le]),di=F.useCallback(C=>{De(C==="pending"?"":C),C!=="pending"&&q?.(C==="accepted")},[q,De]);F.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const C=window.matchMedia("(prefers-color-scheme: dark)"),X=()=>nr(C.matches?"dark":"light");return X(),C.addEventListener?.("change",X),()=>C.removeEventListener?.("change",X)},[]);const pi=F.useCallback(()=>{An(Y==="dark"?"light":"dark")},[Y,An]);lm(we,L&&T),F.useEffect(()=>{if(!(f&&!Pe&&d==="default"&&kt&&!we)){ut(!1),we&&f&&rt("seen");return}const X=(ce=!1)=>{(ce||Ge!=="seen")&&ut(!0)},ne=window.setTimeout(()=>X(!1),Math.min(6e4,Math.max(0,Number(p)||0))),ie=()=>X(!0);return window.addEventListener("akilio:start-tour",ie),()=>{window.clearTimeout(ne),window.removeEventListener("akilio:start-tour",ie)}},[f,Pe,d,we,rt,p,Ge,kt]),F.useEffect(()=>{if(!Ze)return;const C=X=>{X.key==="Escape"&&It()};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[Ze,It]),F.useEffect(()=>{let C=!1;return Ie.getProjectConfig(t).then(X=>{C||(window.localStorage.setItem(lt,JSON.stringify(X)),Kt(X),be(null))}).catch(X=>{C||(be(X.message),de?.(X))}),()=>{C=!0}},[Ie,de,t]),F.useEffect(()=>{Qe&&Ie.prepareWidgetToken(t,Qe).catch(C=>de?.(C))},[Ie,de,t,Qe]),F.useEffect(()=>{if(!E||!Qe||!Be||_t.length>0)return;let C=!1;return Ie.getConversation(t,Qe,Be).then(X=>{C||Re(X.messages.map(ne=>({id:ne.id,backendMessageId:ne.role==="assistant"?ne.id:void 0,conversationId:X.id,role:ne.role,content:ne.content,sources:ne.sources||[],confidence:ne.confidence,commerce:(()=>{const ie=ne.metadata&&typeof ne.metadata=="object"?ne.metadata:null,ce=is(ne.structured_content);return dt&&(ie?.commerce||ce?.commerce)||null})(),suggestions:(()=>{const ie=ne.metadata&&typeof ne.metadata=="object"?ne.metadata:null,ce=is(ne.structured_content);return rs(ie?.suggestions||ce?.suggestions)})(),createdAt:ne.created_at})).slice(-rn))}).catch(()=>S("")),()=>{C=!0}},[Ie,dt,Be,E,_t.length,t,S,Re,Qe]);const Pt=F.useCallback(()=>{Re([]),S("")},[S,Re]),or=F.useCallback(async C=>{if(!C)throw $e("INVALID_QUESTION","Question is empty");if(!kt)throw $e("INVALID_QUESTION","This widget is not currently available");if(nt)throw $e("BUSY","An answer is already in progress");if(On&&!Yt)throw $e("INVALID_QUESTION","Privacy consent is required");const X=ns(U),ne={id:an(),role:"user",content:C,createdAt:Nn(),conversationId:Be||void 0};Re(ce=>[...ce,ne].slice(-rn)),m?.(ne),st("question",{question:C}),ct(!0),fe.current.busy=!0,st("answer-start",{question:C}),At({stage:"",message:""}),Ct(null);const ie=an();try{const ce={project_key:t,conversation_id:Be||void 0,message:C,locale:n,channel:v||X.channel||"docs",audience:O||X.audience,product_area:R||X.productArea,assistant_mode:sn||void 0,page:{url:X.url,title:X.title,...X.metadata||{}},anonymous_id:b,external_user_id:N,consent:{granted:Yt,granted_at:Yt?Nn():void 0,notice_version:J}};let he="";const pt=s?await Ie.sendMessageStream(t,Qe,ce,{onStatus:(Fe,un)=>{const Zt=un.message||un.label;At({stage:Fe,message:typeof Zt=="string"?Zt:""})},onConversation:Fe=>{fe.current.conversationId=Fe,S(Fe)},onDelta:Fe=>{he+=Fe,st("answer-delta",{delta:Fe}),Ct({id:ie,role:"assistant",content:he,conversationId:Be||void 0,createdAt:Nn(),streaming:!0})}}):await Ie.sendMessage(t,Qe,ce);fe.current.conversationId=pt.conversation_id,S(pt.conversation_id);const Ot={...um(pt,dt),id:he?ie:an(),streaming:!1};return Ct(null),Re(Fe=>[...Fe,Ot].slice(-rn)),m?.(Ot),st("answer-complete",{response:pt}),pt}catch(ce){const he=ce instanceof Error?ce:new Error(le.requestFailed),pt={id:an(),role:"assistant",content:he.message||le.requestFailed,createdAt:Nn(),error:!0};throw Ct(null),Re(Ot=>[...Ot,pt].slice(-rn)),de?.(he),st("error",{code:ce instanceof tr?ce.code:"STREAM_FAILED",message:he.message||le.requestFailed}),he}finally{ct(!1),fe.current.busy=!1,At({stage:"",message:""})}},[b,O,v,Ie,dt,Yt,J,Be,le.requestFailed,On,sn,N,nt,n,de,m,U,R,t,S,Re,s,Qe,kt]),A=F.useCallback(()=>{const C=Te.current;C&&(Te.current=null,C.timer&&window.clearTimeout(C.timer),C.reject($e("TYPING_CANCELLED","Draft typing was cancelled")),st("typing-cancel",{draft:y.current?.getDraft()||""}))},[]),K=F.useCallback((C,X)=>{X&&Te.current&&A(),st("draft-change",{draft:C})},[A]);fe.current={open:we,busy:nt,conversationId:Be||null},F.useEffect(()=>{if(typeof window>"u"||window.AkilioWidget)return;const C=()=>{if(!y.current)throw $e("NOT_READY","The widget is not ready");return y.current},X=async(ie,ce={})=>{if(A(),typeof ie!="string")throw $e("INVALID_QUESTION","Draft must be a string");C().setDraft(ie,{focus:ce.focus,clearExisting:ce.clearExisting??!0}),await new Promise(he=>window.setTimeout(he,0))},ne=Object.freeze({open:async()=>{Le(!0),await new Promise(ie=>window.setTimeout(ie,0))},close:async()=>{Le(!1),await new Promise(ie=>window.setTimeout(ie,0))},setDraft:X,typeDraft:async(ie,ce={})=>{if(A(),typeof ie!="string"||!ie.length)throw $e("INVALID_QUESTION","Question must not be empty");const he=C(),pt=ce.clearExisting===!1?he.getDraft():"",Ot=Math.max(0,Number(ce.interval??35)),Fe=++et.current;return st("typing-start",{textLength:ie.length}),new Promise(async(un,Zt)=>{Te.current={id:Fe,reject:Zt};try{for(let Bt=1;Bt<=ie.length;Bt+=1){if(await new Promise(fi=>{const dn=window.setTimeout(fi,Ot);Te.current?.id===Fe&&(Te.current.timer=dn)}),Te.current?.id!==Fe)return;he.setDraft(`${pt}${ie.slice(0,Bt)}`,{clearExisting:!0,focus:ce.focus&&Bt===1})}if(Te.current?.id!==Fe)return;Te.current=null,st("typing-complete",{draft:he.getDraft()}),un()}catch(Bt){Te.current=null,Zt(Bt)}})},clearDraft:async()=>{A(),C().clearDraft()},cancelTyping:A,submit:async()=>{if(fe.current.busy)throw $e("BUSY","An answer is already in progress");const ie=C();if(!ie.getDraft().trim())throw $e("EMPTY_DRAFT","The draft is empty");try{return await ie.submitDraft()}catch(he){throw he instanceof tr?he:he instanceof Error&&he.message==="BUSY"?$e("BUSY","An answer is already in progress"):he instanceof Error&&he.message==="EMPTY_DRAFT"?$e("EMPTY_DRAFT","The draft is empty"):he instanceof Error&&he.message==="INVALID_QUESTION"?$e("INVALID_QUESTION","The question is invalid"):$e("STREAM_FAILED",he instanceof Error?he.message:"Streaming failed")}},ask:async(ie,ce)=>(await X(ie,ce),ne.submit()),reset:async()=>{try{if(A(),fe.current.busy)throw $e("BUSY","An answer is already in progress");Pt(),fe.current.conversationId=null,C().clearDraft(),Ct(null),st("reset")}catch(ie){throw ie instanceof tr?ie:$e("RESET_FAILED","The conversation could not be reset")}},getState:()=>({ready:!!y.current,open:fe.current.open,busy:fe.current.busy,typing:!!Te.current,draft:y.current?.getDraft()||"",conversationId:fe.current.conversationId})});return window.AkilioWidget=ne,st("ready"),()=>{A(),window.AkilioWidget===ne&&delete window.AkilioWidget}},[A,Pt,Le]);const ge=F.useCallback((C,X,ne)=>{dt&&(Ee?.(X,ne),Ie.sendCommerceEvent(t,Qe,{event_type:C.commerce?.capability==="product_search"?"search":"recommendation",product_id:X.id,variant_id:ne?.id||null,conversation_id:C.conversationId||Be||null,external_user_id:N||"",value:ne?.price||null,currency:ne?.currency||"",metadata:{source:"widget_product_card",capability:C.commerce?.capability,product_url:X.url||""}}).catch(ie=>de?.(ie)))},[Ie,dt,Be,N,de,Ee,t,Qe]),ve=F.useCallback(async(C,X)=>{if(C.backendMessageId){Re(ne=>ne.map(ie=>ie.id===C.id?{...ie,feedback:X}:ie));try{await Ie.sendFeedback({projectKey:t,subject:Qe,messageId:C.backendMessageId,rating:X,metadata:{conversation_id:C.conversationId||Be,locale:n,page:ns(U)}})}catch(ne){de?.(ne instanceof Error?ne:new Error("Feedback request failed"))}}},[Ie,Be,n,de,U,t,Re,Qe]);return w.jsxs("div",{ref:ht,className:Ft("akilio-root",Q),style:ln,"data-akilio-mode":Pe?"inline":k?"floating":L?"side-panel":"drawer","data-akilio-color-mode":Y,children:[!Pe&&d==="default"&&w.jsxs(w.Fragment,{children:[Ze&&w.jsx(Xh,{title:le.tourTitle,message:le.tourMessage,actionLabel:le.tourAction,dismissLabel:le.tourDismiss,onDismiss:It,onOpen:ui,primaryColor:ln["--akilio-primary"]||void 0,showBranding:o}),w.jsx(Zh,{label:Cn?le.launcher:le.title,onClick:()=>{It(),Mn.toggleChat()},showBranding:Cn,primaryColor:ln["--akilio-primary"]||void 0})]}),!Pe&&typeof d=="function"&&d(Mn),ee&&we&&w.jsx("button",{type:"button",className:"akilio-overlay","aria-label":le.close,onClick:()=>Le(!1)}),w.jsx(Yh,{ref:y,open:we,isDesktop:L,inline:Pe,colorMode:Y,allowColorModeToggle:a,widgetAvailable:kt,showBranding:Cn,showPoweredBy:In,locale:n,copy:{...le,description:Nt?`${le.description} ${le.configFailed}: ${Nt}`:le.description},messages:ci,streamingMessage:Tn,loading:nt,loadingLabel:Tt.message||(()=>{const C=Tt.stage.toLowerCase();return C.includes("retriev")||C.includes("search")?le.searching:C.includes("ground")||C.includes("source")?le.reviewingSources:C.includes("valid")||C.includes("check")||C.includes("safety")?le.checkingAnswer:C.includes("answer")||C.includes("generat")||C.includes("prepar")?le.preparingAnswer:le.loading})(),consentDecision:ir,consentGranted:Yt,requireConsent:On,privacyNotice:rr,privacyNoticeUrl:cn,onConsentDecision:di,onClose:()=>Le(!1),onToggleColorMode:pi,onClear:Pt,onSubmit:or,onDraftChange:K,onFeedback:ve,onProductClick:ge,onSuggestion:C=>{or(C).catch(()=>{})},primaryColor:ln["--akilio-primary"]||void 0})]})}function as(e){const t=e.styleIsolation??"shadow",n=(e.mode??"floating")!=="inline",r=F.useRef(null),[i,a]=F.useState(null);return F.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 l=s.querySelector("style[data-akilio-styles]");l||(l=document.createElement("style"),l.setAttribute("data-akilio-styles",""),l.textContent=ts,s.appendChild(l));let c=s.querySelector("[data-akilio-shadow-mount]");return c||(c=document.createElement("div"),c.setAttribute("data-akilio-shadow-mount",""),s.appendChild(c)),a(c),()=>{if(typeof o.hidePopover=="function")try{o.hidePopover()}catch{}o.removeAttribute("popover"),o.removeAttribute("style")}},[t,n]),t==="shadow"?w.jsx("div",{ref:r,"data-akilio-shadow-host":"true",children:i&&cs.createPortal(w.jsx(os,{...e}),i)}):w.jsxs(w.Fragment,{children:[t==="scoped"&&w.jsx("style",{"data-akilio-styles":!0,children:ts}),w.jsx(os,{...e})]})}ft.AkilioClient=es,ft.AkilioWidget=as,ft.EjibuWidget=as,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})}));
34
+ `,...a.current()});return/^[\t ]/.test(c)&&(c=Tn(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c}Da.peek=Cg;function Da(e){return e.value||""}function Cg(){return"<"}Ra.peek=Ig;function Ra(e,t,n,r){const i=li(n),a=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),o(),c}function Ig(){return"!"}Pa.peek=Og;function Pa(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const u=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!c||c!==u?l+=s.move(u+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Og(){return"!"}Ba.peek=Mg;function Ba(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 l;if(o.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function Mg(){return"`"}function Fa(e,t){const n=Cr(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))}za.peek=Lg;function za(e,t,n,r){const i=li(n),a=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(Fa(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"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),l()),c+=o.move(")"),s(),c}function Lg(e,t,n){return Fa(e,n)?"<":"["}Ua.peek=Dg;function Ua(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const u=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,a(),i==="full"||!c||c!==u?l+=s.move(u+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function Dg(){return"["}function ci(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 Rg(e){const t=ci(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 Pg(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 qa(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 Bg(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let o=e.ordered?Pg(n):ci(n);const s=e.ordered?o==="."?")":".":Rg(n);let l=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&&(l=!0),qa(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"){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),c}function Fg(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 zg(e,t,n,r){const i=Fg(n);let a=n.bulletCurrent||ci(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 l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),d);return l(),c;function d(u,f,p){return f?(p?"":" ".repeat(o))+u:(p?a:a+" ".repeat(o-a.length))+u}}function Ug(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),o=n.containerPhrasing(e,r);return a(),i(),o}const qg=vn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function $g(e,t,n,r){return(e.children.some(function(o){return qg(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Hg(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}$a.peek=Gg;function $a(e,t,n,r){const i=Hg(n),a=n.enter("strong"),o=n.createTracker(r),s=o.move(i+i);let l=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()}));const c=l.charCodeAt(0),d=rr(r.before.charCodeAt(r.before.length-1),c,i);d.inside&&(l=Tn(c)+l.slice(1));const u=l.charCodeAt(l.length-1),f=rr(r.after.charCodeAt(0),u,i);f.inside&&(l=l.slice(0,-1)+Tn(u));const p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+p}function Gg(e,t,n){return n.options.strong||"*"}function Wg(e,t,n,r){return n.safe(e.value,r)}function Vg(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 Kg(e,t,n){const r=(qa(n)+(n.options.ruleSpaces?" ":"")).repeat(Vg(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Ha={blockquote:mg,break:Ma,code:Eg,definition:vg,emphasis:La,hardBreak:Ma,heading:Ag,html:Da,image:Ra,imageReference:Pa,inlineCode:Ba,link:za,linkReference:Ua,list:Bg,listItem:zg,paragraph:Ug,root:$g,strong:$a,text:Wg,thematicBreak:Kg};function Yg(){return{enter:{table:Zg,tableData:Ga,tableHeader:Ga,tableRow:Qg},exit:{codeText:jg,table:Xg,tableData:ui,tableHeader:ui,tableRow:ui}}}function Zg(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 Xg(e){this.exit(e),this.data.inTable=void 0}function Qg(e){this.enter({type:"tableRow",children:[]},e)}function ui(e){this.exit(e)}function Ga(e){this.enter({type:"tableCell",children:[]},e)}function jg(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Jg));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Jg(e,t){return t==="|"?t:e}function eh(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:l,tableRow:s}};function o(p,g,h,x){return c(d(p,h,x),p.align)}function s(p,g,h,x){const w=u(p,h,x),E=c([w]);return E.slice(0,E.indexOf(`
36
+ `))}function l(p,g,h,x){const w=h.enter("tableCell"),E=h.enter("phrasing"),S=h.containerPhrasing(p,{...x,before:a,after:a});return E(),w(),S}function c(p,g){return gg(p,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function d(p,g,h){const x=p.children;let w=-1;const E=[],S=g.enter("table");for(;++w<x.length;)E[w]=u(x[w],g,h);return S(),E}function u(p,g,h){const x=p.children;let w=-1;const E=[],S=g.enter("tableRow");for(;++w<x.length;)E[w]=l(x[w],p,g,h);return S(),E}function f(p,g,h){let x=Ha.inlineCode(p,g,h);return h.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function th(){return{exit:{taskListCheckValueChecked:Wa,taskListCheckValueUnchecked:Wa,paragraph:rh}}}function nh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ih}}}function Wa(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function rh(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 ih(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 l=Ha.listItem(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(d){return d+o}}function oh(){return[Bf(),ig(),lg(),Yg(),th()]}function ah(e){return{extensions:[Ff(),og(e),cg(),eh(e),nh()]}}const sh={tokenize:fh,partial:!0},Va={tokenize:gh,partial:!0},Ka={tokenize:hh,partial:!0},Ya={tokenize:mh,partial:!0},lh={tokenize:bh,partial:!0},Za={name:"wwwAutolink",tokenize:dh,previous:Qa},Xa={name:"protocolAutolink",tokenize:ph,previous:ja},Lt={name:"emailAutolink",tokenize:uh,previous:Ja},Nt={};function ch(){return{text:Nt}}let Yt=48;for(;Yt<123;)Nt[Yt]=Lt,Yt++,Yt===58?Yt=65:Yt===91&&(Yt=97);Nt[43]=Lt,Nt[45]=Lt,Nt[46]=Lt,Nt[95]=Lt,Nt[72]=[Lt,Xa],Nt[104]=[Lt,Xa],Nt[87]=[Lt,Za],Nt[119]=[Lt,Za];function uh(e,t,n){const r=this;let i,a;return o;function o(u){return!di(u)||!Ja.call(r,r.previous)||pi(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(u))}function s(u){return di(u)?(e.consume(u),s):u===64?(e.consume(u),l):n(u)}function l(u){return u===46?e.check(lh,d,c)(u):u===45||u===95||Ve(u)?(a=!0,e.consume(u),l):d(u)}function c(u){return e.consume(u),i=!0,l}function d(u){return a&&i&&Qe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}function dh(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Qa.call(r,r.previous)||pi(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(sh,e.attempt(Va,e.attempt(Ka,a),n),n)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function ph(e,t,n){const r=this;let i="",a=!1;return o;function o(u){return(u===72||u===104)&&ja.call(r,r.previous)&&!pi(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),s):n(u)}function s(u){if(Qe(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),l}return n(u)}function l(u){return u===47?(e.consume(u),a?c:(a=!0,l)):n(u)}function c(u){return u===null||Fn(u)||Te(u)||Wt(u)||zn(u)?n(u):e.attempt(Va,e.attempt(Ka,d),n)(u)}function d(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function fh(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 gh(e,t,n){let r,i,a;return o;function o(c){return c===46||c===95?e.check(Ya,l,s)(c):c===null||Te(c)||Wt(c)||c!==45&&zn(c)?l(c):(a=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function l(c){return i||r||!a?n(c):t(c)}}function hh(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(Ya,t,a)(o):o===null||Te(o)||Wt(o)?t(o):(e.consume(o),i)}function a(o){return o===41&&r++,e.consume(o),i}}function mh(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||Te(s)||Wt(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Te(s)||Wt(s)?t(s):r(s)}function a(s){return Qe(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Qe(s)?(e.consume(s),o):n(s)}}function bh(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Ve(a)?n(a):t(a)}}function Qa(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Te(e)}function ja(e){return!Qe(e)}function Ja(e){return!(e===47||di(e))}function di(e){return e===43||e===45||e===46||e===95||Ve(e)}function pi(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 kh={tokenize:Nh,partial:!0};function yh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:_h,continuation:{tokenize:vh},exit:Sh}},text:{91:{name:"gfmFootnoteCall",tokenize:Eh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:wh,resolveTo:xh}}}}function wh(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=bt(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function xh(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 Eh(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"),l}function l(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(a>999||u===93&&!o||u===null||u===91||Te(u))return n(u);if(u===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(bt(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return Te(u)||(o=!0),a++,e.consume(u),u===92?d:c}function d(u){return u===91||u===92||u===93?(e.consume(u),a++,c):c(u)}}function _h(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(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||Te(g))return n(g);if(g===93){e.exit("chunkString");const h=e.exit("gfmFootnoteDefinitionLabelString");return a=bt(r.sliceSerialize(h)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Te(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),ge(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function vh(e,t,n){return e.check(yn,t,e.attempt(kh,t,n))}function Sh(e){e.exit("gfmFootnoteDefinition")}function Nh(e,t,n){const r=this;return ge(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 Th(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 l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},u={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},f=[["enter",d,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",u,s]],p=s.parser.constructs.insideSpan.null;p&&st(f,f.length,0,Un(p,o.slice(c+1,l),s)),st(f,f.length,0,[["exit",u,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",d,s]]),st(o,c-1,l-c+3,f),l=c+f.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function a(o,s,l){const c=this.previous,d=this.events;let u=0;return f;function f(g){return c===126&&d[d.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const h=rn(c);if(g===126)return u>1?l(g):(o.consume(g),u++,p);if(u<2&&!n)return l(g);const x=o.exit("strikethroughSequenceTemporary"),w=rn(g);return x._open=!w||w===2&&!!h,x._close=!h||h===2&&!!w,s(g)}}}class Ah{constructor(){this.map=[]}add(t,n,r){Ch(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 Ch(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 Ih(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 Oh(){return{flow:{null:{name:"table",tokenize:Mh,resolveAll:Lh}}}}function Mh(e,t,n){const r=this;let i=0,a=0,o;return s;function s(v){let B=r.events.length-1;for(;B>-1;){const X=r.events[B][1].type;if(X==="lineEnding"||X==="linePrefix")B--;else break}const F=B>-1?r.events[B][1].type:null,ie=F==="tableHead"||F==="tableRow"?_:l;return ie===_&&r.parser.lazy[r.now().line]?n(v):ie(v)}function l(v){return e.enter("tableHead"),e.enter("tableRow"),c(v)}function c(v){return v===124||(o=!0,a+=1),d(v)}function d(v){return v===null?n(v):Y(v)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),p):n(v):ue(v)?ge(e,d,"whitespace")(v):(a+=1,o&&(o=!1,i+=1),v===124?(e.enter("tableCellDivider"),e.consume(v),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),u(v)))}function u(v){return v===null||v===124||Te(v)?(e.exit("data"),d(v)):(e.consume(v),v===92?f:u)}function f(v){return v===92||v===124?(e.consume(v),u):u(v)}function p(v){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(v):(e.enter("tableDelimiterRow"),o=!1,ue(v)?ge(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):g(v))}function g(v){return v===45||v===58?x(v):v===124?(o=!0,e.enter("tableCellDivider"),e.consume(v),e.exit("tableCellDivider"),h):R(v)}function h(v){return ue(v)?ge(e,x,"whitespace")(v):x(v)}function x(v){return v===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(v),e.exit("tableDelimiterMarker"),w):v===45?(a+=1,w(v)):v===null||Y(v)?I(v):R(v)}function w(v){return v===45?(e.enter("tableDelimiterFiller"),E(v)):R(v)}function E(v){return v===45?(e.consume(v),E):v===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(v),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(v))}function S(v){return ue(v)?ge(e,I,"whitespace")(v):I(v)}function I(v){return v===124?g(v):v===null||Y(v)?!o||i!==a?R(v):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(v)):R(v)}function R(v){return n(v)}function _(v){return e.enter("tableRow"),q(v)}function q(v){return v===124?(e.enter("tableCellDivider"),e.consume(v),e.exit("tableCellDivider"),q):v===null||Y(v)?(e.exit("tableRow"),t(v)):ue(v)?ge(e,q,"whitespace")(v):(e.enter("data"),G(v))}function G(v){return v===null||v===124||Te(v)?(e.exit("data"),q(v)):(e.consume(v),v===92?H:G)}function H(v){return v===92||v===124?(e.consume(v),G):G(v)}}function Lh(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,d,u;const f=new Ah;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(es(f,t,l,c,d),d=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",c,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=ir(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=ir(f,t,a,i,void 0,u)),a=o,o=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(o[0]=o[1],u=ir(f,t,a,i,n,u)):o[1]!==0&&(u=ir(f,t,o,i,n,u)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&es(f,t,l,c,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=Ih(t.events,n))}return e}function ir(e,t,n,r,i,a){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},sn(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=sn(t.events,n[1]);if(a={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=sn(t.events,n[2]),d=sn(t.events,n[3]),u={type:s,start:Object.assign({},c),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({},sn(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function es(e,t,n,r,i){const a=[],o=sn(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 sn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Dh={name:"tasklistCheck",tokenize:Ph};function Rh(){return{text:{91:Dh}}}function Ph(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Te(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Y(l)?t(l):ue(l)?e.check({tokenize:Bh},t,n)(l):n(l)}}function Bh(e,t,n){return ge(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Fh(e){return eo([ch(),yh(),Th(e),Oh(),Rh()])}const zh={};function Uh(e){const t=this,n=e||zh,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Fh(n)),a.push(oh()),o.push(ah(n))}function qh(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}`})}function $h(e){return e.replace(/\[source\s+(\d+)\]/gi,(t,n)=>`[\`${n}\`](#source-${n})`)}function Hh(e){const t=qh(e);return $h(t)}const Gh=M.memo(function({content:t}){return m.jsx(Bd,{rehypePlugins:[If],remarkPlugins:[Uh],children:Hh(t)})});function Wh(e){return/^(https?:|mailto:|tel:)/i.test(e.trim())?e.trim():null}function Vh({message:e,capability:t,copy:n,onSubmit:r}){const i=e.actions?.find(E=>E.type==="start_contact_request"),a=M.useMemo(()=>new Set([...t?.required_fields||[],...i?.fields||[]]),[i?.fields,t?.required_fields]),o=M.useMemo(()=>new Set(t?.required_fields||[]),[t?.required_fields]),[s,l]=M.useState(!1),[c,d]=M.useState(!1),[u,f]=M.useState(!1),[p,g]=M.useState(!1),[h,x]=M.useState(!1),w=async E=>{if(E.preventDefault(),!r||!e.conversationId||!e.backendMessageId)return;const S=new FormData(E.currentTarget);d(!0),g(!1);try{await r({conversation_id:e.conversationId,source_message_id:e.backendMessageId,name:String(S.get("name")||""),email:String(S.get("email")||""),phone:String(S.get("phone")||""),preferred_contact_method:String(S.get("preferred_contact_method")||"either"),preferred_contact_time:String(S.get("preferred_contact_time")||""),message:String(S.get("message")||""),consent_given:t?.consent_required?h:!0}),f(!0),l(!1)}catch{g(!0)}finally{d(!1)}};return!e.contactOptions?.length&&!i?null:m.jsxs("section",{className:"akilio-contact","aria-label":n.contact,children:[e.contactOptions?.length?m.jsx("div",{className:"akilio-contact-options",children:e.contactOptions.map(E=>{const S=Wh(E.url);if(!S)return null;const I=/^https?:/i.test(S);return m.jsxs("a",{href:S,target:I?"_blank":void 0,rel:I?"noreferrer":void 0,children:[m.jsx("strong",{children:E.label}),E.value&&m.jsx("span",{children:E.value})]},`${E.type}:${S}`)})}):null,u&&m.jsx("p",{className:"akilio-contact-success",children:n.contactSuccess}),!u&&i&&t?.enabled&&r&&m.jsxs(m.Fragment,{children:[!s&&m.jsx("button",{type:"button",className:"akilio-contact-start",onClick:()=>l(!0),children:i.label||n.contact}),s&&m.jsxs("form",{className:"akilio-contact-form",onSubmit:w,children:[a.has("name")&&m.jsxs("label",{className:"akilio-contact-field akilio-contact-name",children:[m.jsx("span",{children:n.contactName}),m.jsx("input",{name:"name",required:o.has("name")})]}),a.has("email")&&m.jsxs("label",{className:"akilio-contact-field akilio-contact-email",children:[m.jsx("span",{children:n.contactEmail}),m.jsx("input",{name:"email",type:"email",required:o.has("email")})]}),a.has("phone")&&m.jsxs("label",{className:"akilio-contact-field akilio-contact-phone",children:[m.jsx("span",{children:n.contactPhone}),m.jsx("input",{name:"phone",type:"tel",required:o.has("phone")})]}),m.jsxs("label",{className:"akilio-contact-field akilio-contact-method",children:[m.jsx("span",{children:n.contactMethod}),m.jsxs("select",{name:"preferred_contact_method",defaultValue:"either",children:[m.jsx("option",{value:"email",children:n.contactMethodEmail}),m.jsx("option",{value:"phone",children:n.contactMethodPhone}),m.jsx("option",{value:"either",children:n.contactMethodEither})]})]}),a.has("preferred_contact_time")&&m.jsxs("label",{className:"akilio-contact-field akilio-contact-time",children:[m.jsx("span",{children:n.contactTime}),m.jsx("input",{name:"preferred_contact_time"})]}),m.jsxs("label",{className:"akilio-contact-field akilio-contact-message",children:[m.jsx("span",{children:n.contactMessage}),m.jsx("textarea",{name:"message",rows:3,required:!0,maxLength:4e3})]}),t.consent_required&&m.jsxs("label",{className:"akilio-contact-consent",children:[m.jsx("input",{type:"checkbox",checked:h,onChange:E=>x(E.target.checked),required:!0}),m.jsx("span",{children:t.consent_text||n.contactConsent})]}),p&&m.jsx("p",{className:"akilio-contact-error",role:"alert",children:n.contactFailed}),m.jsx("button",{type:"submit",className:"akilio-contact-submit",disabled:c||t.consent_required&&!h,children:c?n.contactSending:n.contactSubmit})]})]})]})}function Kh(e){return e.variants?.find(t=>t.available)||e.variants?.[0]}function ts(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}`:""}`}}function Yh({product:e,copy:t,locale:n,layout:r="vertical",onProductClick:i}){const a=Kh(e),o=!!a?.available&&e.available!=="false",s=ts(a?.price,a?.currency,n),l=ts(a?.compare_at_price||void 0,a?.currency,n);return m.jsxs("article",{className:`akilio-product-card akilio-product-card--${r}`,role:"listitem",children:[m.jsxs("div",{className:"akilio-product-media",children:[e.image_url?m.jsx("img",{src:e.image_url,alt:"",loading:"lazy",decoding:"async"}):m.jsx("div",{className:"akilio-product-placeholder","aria-hidden":"true",children:"A"}),m.jsx("span",{className:o?"akilio-stock akilio-stock--available":"akilio-stock",children:o?t.inStock:t.outOfStock})]}),m.jsxs("div",{className:"akilio-product-body",children:[e.vendor&&m.jsx("span",{className:"akilio-product-vendor",children:e.vendor}),m.jsx("h4",{children:e.title}),a?.title&&a.title!==e.title&&m.jsx("span",{className:"akilio-product-variant",children:a.title}),m.jsxs("div",{className:"akilio-product-price",children:[s?m.jsx("strong",{children:s}):m.jsx("strong",{children:t.unavailable}),l&&l!==s&&m.jsx("del",{children:l})]}),e.url?m.jsx("a",{className:"akilio-product-action",href:e.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>i?.(e,a),children:t.viewProduct}):m.jsx("button",{type:"button",className:"akilio-product-action",disabled:!o,onClick:()=>i?.(e,a),children:t.viewProduct})]})]},e.id)}const Zh=M.memo(function({commerce:t,copy:n,locale:r,onProductClick:i}){const a=M.useMemo(()=>Array.isArray(t.products)?t.products.filter(s=>s?.id&&s?.title):[],[t.products]);if(!a.length)return null;const o=a.length>3?"vertical":"horizontal";return m.jsxs("section",{className:"akilio-products","aria-label":n.products,children:[m.jsxs("div",{className:"akilio-products-heading",children:[m.jsx("strong",{children:n.products}),m.jsx("span",{children:a.length})]}),m.jsx("div",{className:`akilio-products-grid akilio-products-grid--${o}`,role:"list",children:a.map(s=>m.jsx(Yh,{product:s,copy:n,locale:r,layout:o,onProductClick:i}))})]})});function Xh(e){return Array.isArray(e)?e.filter(t=>t?.title||t?.url):[]}const ns=M.memo(function({message:t,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o,primaryColor:s,feedbackPending:l,contactRequestCapability:c,onContactRequest:d}){const u=t.role==="user",f=Xh(t.sources);return m.jsx("div",{className:qt("akilio-message-row",u?"akilio-message-row--user":"akilio-message-row--assistant"),children:m.jsxs("div",{className:qt("akilio-bubble",u&&"akilio-bubble--user",t.error&&"akilio-bubble--error"),children:[!u&&!t.error&&m.jsxs("div",{className:"akilio-bubble-meta",children:[m.jsx(gr,{style:{width:"20px",height:"20px"},primaryColor:s}),m.jsx("span",{children:n.title})]}),m.jsx("div",{className:qt("akilio-answer",u&&"akilio-answer--user"),children:u?m.jsx("p",{children:t.content}):m.jsx(Gh,{content:t.content})}),!u&&!t.error&&m.jsx(Vh,{message:t,capability:c,copy:n,onSubmit:d}),!u&&t.commerce?.products?.length?m.jsx(Zh,{commerce:t.commerce,copy:n,locale:r,onProductClick:(p,g)=>a?.(t,p,g)}):null,!u&&!t.error&&t.suggestions?.length?m.jsx("div",{className:"akilio-response-suggestions","aria-label":"Suggested follow-up questions",children:t.suggestions.map(p=>m.jsx("button",{type:"button",onClick:()=>o?.(p),children:p},p))}):null,!u&&f.length>0&&m.jsxs("details",{className:"akilio-sources",children:[m.jsxs("summary",{children:[n.sources," · ",f.length]}),m.jsx("div",{className:"akilio-sources-list",children:f.map((p,g)=>m.jsxs("div",{className:"akilio-source-card",children:[m.jsx("strong",{children:p.title||"Untitled source"}),typeof p.section_path=="string"&&m.jsx("span",{children:p.section_path}),p.url&&m.jsx("a",{href:p.url,target:"_blank",rel:"noreferrer",children:p.url})]},`${p.url||p.title}-${g}`))})]}),!u&&!t.error&&t.backendMessageId&&m.jsxs("div",{className:"akilio-feedback","aria-busy":l?"true":void 0,children:[m.jsx("span",{children:l?n.feedbackSending:t.feedback?n.feedbackThanks:n.feedbackQuestion}),m.jsx("button",{type:"button",className:qt(t.feedback==="up"&&"akilio-feedback-active",l==="up"&&"akilio-feedback-pending"),onClick:()=>i?.(t,"up"),"aria-label":n.voteUp,"aria-pressed":t.feedback==="up",disabled:!!l,children:l==="up"?m.jsx("i",{className:"akilio-feedback-spinner","aria-hidden":"true"}):m.jsx(bs,{})}),m.jsx("button",{type:"button",className:qt(t.feedback==="down"&&"akilio-feedback-active",l==="down"&&"akilio-feedback-pending"),onClick:()=>i?.(t,"down"),"aria-label":n.voteDown,"aria-pressed":t.feedback==="down",disabled:!!l,children:l==="down"?m.jsx("i",{className:"akilio-feedback-spinner","aria-hidden":"true"}):m.jsx(ks,{})})]})]})})}),Qh=M.memo(function({messages:t,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o,primaryColor:s,feedbackPending:l,contactRequestCapability:c,onContactRequest:d}){return m.jsx(m.Fragment,{children:t.map(u=>m.jsx(ns,{message:u,copy:n,locale:r,onFeedback:i,onProductClick:a,onSuggestion:o,primaryColor:s,feedbackPending:l[u.id],contactRequestCapability:c,onContactRequest:d},u.id))})});function jh({copy:e,label:t,primaryColor:n}){return m.jsxs("div",{className:"akilio-message-row akilio-message-row--assistant akilio-stream-activity",role:"status","aria-live":"polite","aria-atomic":"true",children:[m.jsx("span",{className:"akilio-stream-activity-icon","aria-hidden":"true",children:m.jsx(gr,{style:{width:"20px",height:"20px"},primaryColor:n})}),m.jsxs("div",{className:"akilio-stream-activity-content",children:[m.jsx("span",{className:"akilio-stream-activity-label",children:t||e.loading},t),m.jsx("span",{className:"akilio-stream-activity-pulse","aria-hidden":"true"})]})]})}const Jh=M.forwardRef(function(t,n){const{open:r,panelId:i,isDesktop:a,inline:o,colorMode:s,allowColorModeToggle:l,widgetAvailable:c,showBranding:d,showPoweredBy:u,copy:f,locale:p,messages:g,feedbackPending:h,contactRequestCapability:x,onContactRequest:w,streamingMessage:E,loading:S,loadingLabel:I,consentDecision:R,consentGranted:_,requireConsent:q,privacyNotice:G,privacyNoticeUrl:H,onConsentDecision:v,onClose:B,onToggleColorMode:F,onClear:ie,onSubmit:X,onDraftChange:W,onFeedback:de,onProductClick:he,onSuggestion:j,intentActions:me,onIntentAction:b,primaryColor:ce,slug:we}=t,y=M.useRef(null),Ae=M.useRef(null);return M.useImperativeHandle(n,()=>({getDraft:()=>Ae.current?.getDraft()||"",setDraft:($e,pe)=>Ae.current?.setDraft($e,pe),clearDraft:()=>Ae.current?.clearDraft(),focusDraft:()=>Ae.current?.focus(),submitDraft:()=>Ae.current?Ae.current.submit():Promise.reject(new Error("NOT_READY"))}),[]),M.useEffect(()=>{r&&y.current?.scrollTo({top:y.current.scrollHeight,behavior:g.length>1?"auto":"smooth"})},[g.length,E?.content,S,r]),m.jsxs("aside",{id:i,className:qt("akilio-panel",a&&"akilio-panel--desktop",o&&"akilio-panel--inline",r&&"akilio-panel--open"),"aria-hidden":!r,"aria-label":f.title,children:[m.jsx("div",{className:"akilio-panel-glow"}),m.jsxs("header",{className:"akilio-panel-header",children:[d&&m.jsx("div",{className:"akilio-logo",children:m.jsx(Bn,{variant:"mark",style:{width:40,height:40},primaryColor:ce})}),m.jsxs("div",{className:"akilio-header-content",children:[m.jsxs("div",{className:"akilio-header-topline",children:[m.jsx("div",{className:"akilio-header-title",children:m.jsx("h2",{children:f.title})}),m.jsxs("div",{className:"akilio-header-actions",children:[l&&m.jsx("button",{type:"button",onClick:F,title:s==="dark"?f.switchToLightMode:f.switchToDarkMode,"aria-label":s==="dark"?f.switchToLightMode:f.switchToDarkMode,children:s==="dark"?m.jsx(ys,{}):m.jsx(ws,{})}),m.jsx("button",{type:"button",onClick:ie,title:f.clearHistory,"aria-label":f.clearHistory,children:m.jsx(ms,{})}),!o&&m.jsx("button",{type:"button",onClick:B,title:f.close,"aria-label":f.close,children:m.jsx(hs,{})})]})]}),m.jsx("p",{className:"akilio-header-description",children:f.description})]})]}),m.jsxs("div",{ref:y,className:"akilio-thread","aria-live":"polite","aria-relevant":"additions",children:[g.length===0&&!S?m.jsx(Es,{copy:f,onSuggestion:X,widgetAvailable:c,showBranding:d,primaryColor:ce,intentActions:me,onIntentAction:b}):m.jsx(Qh,{messages:g,copy:f,locale:p,onFeedback:de,onProductClick:he,onSuggestion:j,primaryColor:ce,feedbackPending:h,contactRequestCapability:x,onContactRequest:w}),E&&m.jsx(ns,{message:E,copy:f,locale:p,onFeedback:de,onProductClick:he,onSuggestion:j,primaryColor:ce,feedbackPending:h[E.id],contactRequestCapability:x,onContactRequest:w}),S&&!E&&m.jsx(jh,{copy:f,label:I,primaryColor:ce})]}),(G||q)&&R==="pending"&&m.jsxs("section",{className:"akilio-privacy","aria-label":f.privacyTitle,children:[m.jsxs("div",{children:[m.jsx("strong",{children:f.privacyTitle}),m.jsxs("p",{children:[G||f.privacyDefaultNotice," ",H&&m.jsx("a",{href:H,target:"_blank",rel:"noreferrer",children:f.privacyTitle})]}),q&&m.jsx("p",{className:"akilio-privacy-consent-copy",children:f.privacyAccept})]}),m.jsxs("div",{className:"akilio-privacy-actions",children:[m.jsx("button",{type:"button",className:"akilio-privacy-decline",onClick:()=>v("rejected"),children:f.privacyDecline}),m.jsx("button",{type:"button",className:"akilio-privacy-accept",onClick:()=>v("accepted"),children:f.privacyAcceptAction})]})]}),m.jsx(xs,{ref:Ae,loading:S,disabled:!c||q&&!_,disabledMessage:c?f.privacyRequired:f.widgetUnavailable,showPoweredBy:u,copy:f,onSubmit:X,onDraftChange:W,onReviewConsent:q&&R==="rejected"?()=>v("pending"):void 0,slug:we})]})});function em({placeholder:e,dismissLabel:t,dismissible:n,onDismiss:r,onSubmit:i}){const[a,o]=M.useState(""),s=l=>{l.preventDefault();const c=a.trim();c&&i(c).catch(()=>{})};return m.jsxs("section",{className:"akilio-contextual-prompt","aria-label":e,role:"region",children:[m.jsxs("form",{onSubmit:s,children:[m.jsx("input",{type:"text",value:a,onChange:l=>o(l.target.value),onKeyDown:l=>{l.key==="Escape"&&n&&r()},placeholder:e,"aria-label":e}),m.jsx("button",{type:"submit",className:"akilio-contextual-submit",disabled:!a.trim(),"aria-label":e,children:m.jsx(vi,{color:"#fff"})})]}),n&&m.jsx("button",{type:"button",className:"akilio-contextual-dismiss",onClick:r,"aria-label":t,title:t,children:m.jsx("span",{"aria-hidden":"true",children:"×"})})]})}function tm({label:e,onClick:t,showBranding:n=!0,primaryColor:r,open:i,controlsId:a}){return m.jsxs("button",{id:"akilio-launcher",type:"button",className:"akilio-launcher",onClick:t,"aria-expanded":!!i,"aria-controls":a,children:[m.jsx("span",{children:n?m.jsx(Bn,{variant:"mark",className:"akilio-launcher-logo",primaryColor:r}):m.jsx(hr,{className:"akilio-launcher-logo"})}),m.jsx("strong",{children:e})]})}function nm({title:e,message:t,actionLabel:n,dismissLabel:r,onDismiss:i,onOpen:a,primaryColor:o,showBranding:s}){return m.jsxs("section",{className:"akilio-coachmark",role:"status","aria-live":"polite","aria-label":e,children:[m.jsx("button",{type:"button",className:"akilio-coachmark-close",onClick:i,"aria-label":r,children:m.jsx("span",{"aria-hidden":"true",children:"×"})}),m.jsx("div",{className:"akilio-coachmark-icon","aria-hidden":"true",children:s?m.jsx(Bn,{variant:"mark",primaryColor:o}):m.jsx(hr,{})}),m.jsxs("div",{className:"akilio-coachmark-content",children:[m.jsx("strong",{children:e}),m.jsx("p",{children:t}),m.jsx("button",{type:"button",className:"akilio-coachmark-action",onClick:a,children:n})]})]})}const rm="(min-width: 1280px)";function im(e=rm){const[t,n]=M.useState(!1);return M.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}function om(e,t){const[n,r]=M.useState(!1);return M.useEffect(()=>{if(!e||typeof window>"u"){r(!1);return}const i=Math.min(2e3,Math.max(0,Number(t)||0)),a=document.createElement("span");a.setAttribute("data-akilio-page-end-marker",""),a.setAttribute("aria-hidden","true"),a.style.cssText="display:block;width:1px;height:1px;pointer-events:none;visibility:hidden;",document.body.appendChild(a);const o=window.IntersectionObserver;if(o){const l=new o(([c])=>r(!!c?.isIntersecting),{rootMargin:`0px 0px ${i}px 0px`});return l.observe(a),()=>{l.disconnect(),a.remove()}}const s=()=>{const l=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);r(window.scrollY+window.innerHeight>=l-i)};return window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s),s(),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s),a.remove()}},[e,t]),n}function am(){if(typeof window>"u")return null;const e=window.AudioContext||window.webkitAudioContext;if(!e)return null;try{return new e}catch{return null}}function sm(e,t){const n=M.useRef(null),r=Math.min(1,Math.max(0,Number(t)||0)),i=M.useCallback(()=>{if(!e)return;const o=n.current||am();o&&(n.current=o,o.state==="suspended"&&o.resume().catch(()=>{}))},[e]),a=M.useCallback(()=>{if(!e||r===0)return;const o=n.current;if(!(!o||o.state!=="running"))try{const s=o.currentTime,l=o.createGain();l.gain.setValueAtTime(1e-4,s),l.gain.exponentialRampToValueAtTime(r,s+.025),l.gain.exponentialRampToValueAtTime(1e-4,s+.42),l.connect(o.destination),[659.25,880].forEach((c,d)=>{const u=o.createOscillator();u.type="sine",u.frequency.setValueAtTime(c,s),u.connect(l),u.start(s+d*.08),u.stop(s+.42)})}catch{}},[r,e]);return M.useEffect(()=>()=>{const o=n.current;n.current=null,o&&o.state!=="closed"&&o.close().catch(()=>{})},[]),{prepare:i,play:a}}const ln=60;function rs(e,t){if(!e)return t;try{return JSON.parse(e)}catch{return t}}function lm(e){const t=M.useMemo(()=>`akilio:${e.projectKey}:${e.locale||"default"}:messages:v1`,[e.projectKey,e.locale]),[n,r]=M.useState([]),[i,a]=M.useState(!1);return M.useEffect(()=>{if(!e.enabled||typeof window>"u"){a(!0);return}const o=rs(window.localStorage.getItem(t),[]);r(Array.isArray(o)?o.slice(-ln):[]),a(!0)},[e.enabled,t]),M.useEffect(()=>{!e.enabled||!i||typeof window>"u"||window.localStorage.setItem(t,JSON.stringify(n.slice(-ln)))},[n,e.enabled,t,i]),[n,r,t]}function cn(e){const[t,n]=M.useState(e.initialValue||""),[r,i]=M.useState(!1);return M.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]),M.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]}const cm={version:"0.7.0"};function Tt(e){const t=e.toLowerCase();return Array.from(document.scripts).some(n=>(n.src||"").toLowerCase().includes(t))}function um(e){const t=e.toLowerCase();return Array.from(document.querySelectorAll("link[href]")).some(n=>n.href.toLowerCase().includes(t))}function dm(e,t){return Array.from(document.querySelectorAll(`meta[${e}]`)).some(n=>n.getAttribute(e)===t)}function pm(e){const t=e.toLowerCase();return Array.from(document.body?.classList??[]).some(n=>n.toLowerCase().includes(t))}function fm(){const e=window.location.hostname.toLowerCase(),t=document.documentElement.innerHTML.toLowerCase(),n=[];if(window.Shopify&&n.push("window.Shopify"),Tt("cdn.shopify.com")&&n.push("cdn.shopify.com script"),t.includes("shopify-section")&&n.push("shopify-section markup"),e.endsWith(".myshopify.com")&&n.push("myshopify.com hostname"),n.length>=2)return{integration:"shopify",confidence:"high",signals:n};if(n.length===1)return{integration:"shopify",confidence:"medium",signals:n};const r=[];if(window.wcSettings&&r.push("window.wcSettings"),Tt("woocommerce")&&r.push("WooCommerce script"),pm("woocommerce")&&r.push("WooCommerce body class"),(t.includes("woocommerce-cart")||t.includes("woocommerce-checkout")||t.includes("wc-block-"))&&r.push("WooCommerce markup"),r.length>=2)return{integration:"woocommerce",confidence:"high",signals:r};if(r.length===1)return{integration:"woocommerce",confidence:"medium",signals:r};const i=[];if(um("/wp-json/")&&i.push("WordPress REST API link"),(Tt("/wp-content/")||Tt("/wp-includes/"))&&i.push("WordPress asset path"),(t.includes("/wp-content/")||t.includes("/wp-includes/"))&&i.push("WordPress HTML asset path"),dm("name","generator")&&document.querySelector('meta[name="generator"]')?.content.toLowerCase()?.includes("wordpress")&&i.push("WordPress generator metadata"),i.length>=2)return{integration:"wordpress",confidence:"high",signals:i};if(i.length===1)return{integration:"wordpress",confidence:"medium",signals:i};const a=[];if((window.prestashop||window.PrestaShop)&&a.push("PrestaShop global"),Tt("/modules/")&&t.includes("prestashop")&&a.push("PrestaShop module assets"),document.querySelector('meta[name="generator"]')?.content.toLowerCase()?.includes("prestashop")&&a.push("PrestaShop generator metadata"),a.length>=2)return{integration:"prestashop",confidence:"high",signals:a};if(a.length===1)return{integration:"prestashop",confidence:"medium",signals:a};const s=[];return window.requirejs&&Tt("mage/")&&s.push("Magento RequireJS modules"),(Tt("/static/frontend/")||t.includes("mage-init"))&&s.push("Magento frontend assets"),t.includes("data-mage-init")&&s.push("data-mage-init"),s.length>=2?{integration:"magento",confidence:"high",signals:s}:s.length===1?{integration:"magento",confidence:"medium",signals:s}:t.includes("wixstatic.com")||Tt("wixstatic.com")?{integration:"wix",confidence:"high",signals:["Wix static assets"]}:document.documentElement.hasAttribute("data-wf-page")||Tt("webflow")?{integration:"webflow",confidence:"high",signals:["Webflow page attributes or assets"]}:Tt("static1.squarespace.com")||t.includes("squarespace")?{integration:"squarespace",confidence:"medium",signals:["Squarespace assets"]}:window.__NEXT_DATA__||document.getElementById("__next")?{integration:"nextjs",confidence:"high",signals:["Next.js runtime markers"]}:document.querySelector("[ng-version]")||window.angular?{integration:"angular",confidence:"high",signals:["Angular runtime markers"]}:window.__NUXT__||document.getElementById("__nuxt")?{integration:"vue",confidence:"medium",signals:["Nuxt/Vue runtime markers"]}:window.Vue?{integration:"vue",confidence:"medium",signals:["Vue global"]}:document.getElementById("root")||document.querySelector("[data-reactroot]")?{integration:"react",confidence:"low",signals:["Possible React root element"]}:{integration:"unknown",confidence:"low",signals:[]}}class fi extends Error{status;payload;constructor(t,n,r){super(t),this.name="AkilioHttpError",this.status=n,this.payload=r}}function is(e,t){return`${e.replace(/\/$/,"")}${t.startsWith("/")?t:`/${t}`}`}async function os(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 fi(r,e.status,n)}return n}function gi(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 gm(e){if(typeof window>"u")return null;try{const t=window.sessionStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function as(e,t){if(!(typeof window>"u"))try{t?window.sessionStorage.setItem(e,JSON.stringify(t)):window.sessionStorage.removeItem(e)}catch{}}class ss{apiBaseUrl;fetchImpl;auth;widgetToken=null;widgetTokenPromise=null;widgetTokenPromiseKey=null;mode;locale;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,this.mode=t.mode,this.locale=t.locale}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,as(gi(this.apiBaseUrl,t,n),null)}async issueWidgetToken(t,n){const r=await this.publicRequest(`/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,as(gi(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=gi(this.apiBaseUrl,t,n);if(!r){const o=gm(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(is(this.apiBaseUrl,t),{...n,credentials:this.auth?.credentials||"omit",headers:{...r,...n.headers||{}}});return os(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(l){if(!(l instanceof fi)||l.status!==401)throw l;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 c=await this.ensureWidgetToken(t,n);a.Authorization=`${c.tokenType} ${c.token}`}const s=()=>this.fetchImpl(is(this.apiBaseUrl,r),{...i,credentials:this.auth?.credentials||"omit",headers:{...a,...i.headers||{}}});let l=await s();if(l.status===401&&!o){await l.body?.cancel().catch(()=>{});const c=await this.ensureWidgetToken(t,n,!0);a.Authorization=`${c.tokenType} ${c.token}`,l=await s()}return l.ok||await os(l),l}getProjectConfig(t){const n=fm();return this.publicRequest(`/projects/${encodeURIComponent(t)}/config/`,{method:"POST",body:JSON.stringify({widget:{version:cm.version,mode:this.mode,locale:this.locale,integration:n},browser:{screen_width:window.innerWidth,viewport_width:window.innerWidth,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,referrer:document.referrer||void 0}})})}async prepareWidgetToken(t,n){this.hasHostManagedToken()||this.auth?.autoIssueWidgetToken===!1||await this.ensureWidgetToken(t,n)}sendMessage(t,n,r){return this.authenticatedRequest(t,n,"/chat/",{method:"POST",body:JSON.stringify(r)})}async sendMessageStream(t,n,r,i={},a){let o;try{o=await this.authenticatedResponse(t,n,"/chat/stream/",{method:"POST",body:JSON.stringify(r),signal:a})}catch(f){if(f instanceof fi&&[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(),l=new TextDecoder;let c="",d=null;const u=f=>{let p="message";const g=[];for(const x of f.split(/\r?\n/))!x||x.startsWith(":")||(x.startsWith("event:")&&(p=x.slice(6).trim()),x.startsWith("data:")&&g.push(x.slice(5).trimStart()));if(!g.length)return;let h;try{const x=JSON.parse(g.join(`
37
+ `));h=x&&typeof x=="object"?x:{value:x}}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 x=h.conversation_id||h.id;x&&i.onConversation?.(String(x))}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();c+=l.decode(f,{stream:!p});const g=c.split(/\r?\n\r?\n/);c=g.pop()||"";for(const h of g)u(h);if(p)break}if(c.trim()&&u(c),!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,`/conversations/${encodeURIComponent(r)}/?${i}`)}deleteConversation(t,n,r){const i=new URLSearchParams({project_key:t});return this.authenticatedRequest(t,n,`/conversations/${encodeURIComponent(r)}/?${i}`,{method:"DELETE"})}sendCommerceEvent(t,n,r){return this.authenticatedRequest(t,n,"/commerce/events/",{method:"POST",body:JSON.stringify(r)})}sendFeedback(t){return this.authenticatedRequest(t.projectKey,t.subject,`/messages/${encodeURIComponent(t.messageId)}/feedback/`,{method:"POST",body:JSON.stringify({project_key:t.projectKey,rating:t.rating,comment:t.comment||"",metadata:t.metadata||{}})})}sendContactRequest(t,n,r){return this.authenticatedRequest(t,n,"/chat/contact-requests/",{method:"POST",body:JSON.stringify({project_key:t,...r})})}}function hm(e){const n=(e.locale||"").toLowerCase().startsWith("fr")?{launcher:"Demander à Akilio",title:"Demander à Akilio",description:"Propulsé par l'IA",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.",feedbackSending:"Envoi de votre avis...",contextualPlaceholder:"Posez une question sur cette page...",contextualDismiss:"Fermer la question contextuelle",contact:"Contacter l’équipe",contactName:"Nom",contactEmail:"Adresse courriel",contactPhone:"Téléphone",contactMethod:"Méthode de contact préférée",contactMethodEmail:"Courriel",contactMethodPhone:"Téléphone",contactMethodEither:"Courriel ou téléphone",contactTime:"Meilleur moment pour vous contacter",contactMessage:"Comment pouvons-nous vous aider ?",contactConsent:"J’accepte d’être contacté au sujet de cette demande.",contactSubmit:"Envoyer la demande",contactSending:"Envoi de la demande...",contactSuccess:"Votre demande a été envoyée.",contactFailed:"Impossible d’envoyer votre demande. Réessayez.",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",aiContentWarning:"Le contenu généré par l’IA peut être inexact ou incomplet.",tourTitle:"Besoin d’aide ?",tourMessage:"Posez une question à l’assistant pour trouver rapidement une réponse.",tourAction:"Essayer",tourDismiss:"Fermer cette aide",summarizePage:"Résumer cette page",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:"Powered by AI",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.",feedbackSending:"Sending feedback...",contextualPlaceholder:"Ask a question about this page...",contextualDismiss:"Dismiss page question",contact:"Contact the team",contactName:"Name",contactEmail:"Email address",contactPhone:"Phone number",contactMethod:"Preferred contact method",contactMethodEmail:"Email",contactMethodPhone:"Phone",contactMethodEither:"Email or phone",contactTime:"Best time to contact you",contactMessage:"How can we help?",contactConsent:"I agree to be contacted about this request.",contactSubmit:"Send request",contactSending:"Sending request...",contactSuccess:"Your request has been sent.",contactFailed:"Unable to send your request. Please try again.",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",aiContentWarning:"AI content may be inaccurate or incomplete.",tourTitle:"Need help?",tourMessage:"Ask the assistant a question to quickly find the information you need.",tourAction:"Try it",tourDismiss:"Dismiss this tip",summarizePage:"Summarize this page",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?.launcher_label||n.launcher,title:i.title||r?.title||n.title,placeholder:i.placeholder||r?.placeholder||n.placeholder,suggestions:r?.starter_questions?.length?r.starter_questions:r?.capabilities?.chat?n.suggestions.slice(0,3):n.suggestions,...i}}const ls=`: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-contextual-prompt,.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),color-mix(in srgb,var(--akilio-primary) 80%,transparent));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-contextual-prompt{position:fixed;left:50%;bottom:max(28px,env(safe-area-inset-bottom));z-index:calc(var(--akilio-z-index) - 5);width:min(640px,calc(100vw - 190px));transform:translate(-50%);border:1px solid color-mix(in srgb,var(--akilio-primary) 22%,#d4d4d8);border-radius:18px;background:#fffffff7;padding:7px 42px 7px 8px;box-shadow:0 20px 60px #0f172a33,0 0 0 1px #0f766e0a;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);animation:akilio-contextual-in .22s cubic-bezier(.2,.8,.2,1)}.akilio-contextual-prompt form{display:flex;align-items:center;gap:8px}.akilio-contextual-prompt input{width:100%;min-width:0;height:42px;border:0;outline:0;background:transparent;color:#18181b;padding:0 8px;font-size:14px}.akilio-contextual-prompt input::placeholder{color:#71717a;opacity:1}.akilio-root .akilio-contextual-prompt input:focus,.akilio-root .akilio-contextual-prompt input:focus-visible{border:0;outline:none;box-shadow:none}.akilio-contextual-prompt:focus-within{border-color:color-mix(in srgb,var(--akilio-primary) 58%,#d4d4d8);box-shadow:0 20px 60px #0f172a33,0 0 0 3px color-mix(in srgb,var(--akilio-primary) 15%,transparent)}.akilio-contextual-submit{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground);cursor:pointer}.akilio-contextual-submit:hover:not(:disabled){background:var(--akilio-primary-hover)}.akilio-contextual-submit:disabled{cursor:not-allowed;opacity:.45}.akilio-contextual-submit svg{width:17px;height:17px}.akilio-contextual-dismiss{position:absolute;top:50%;right:8px;display:grid;width:28px;height:28px;transform:translateY(-50%);place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;font-size:20px;line-height:1}.akilio-contextual-dismiss:hover{background:#f4f4f5;color:#18181b}@keyframes akilio-contextual-in{0%{transform:translate(-50%,12px) scale(.98);opacity:0}to{transform:translate(-50%) scale(1);opacity:1}}.akilio-root[data-akilio-launcher-position=bottom-left] .akilio-launcher{right:auto;left:22px}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher{top:50%;right:0;bottom:auto;min-width:52px;min-height:164px;flex-direction:column;justify-content:center;gap:9px;transform:translateY(-50%);border-right:0;border-radius:18px 0 0 18px;padding:13px 10px 15px}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher:hover{transform:translate(-3px,-50%)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher strong{writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:.02em}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark{top:50%;right:72px;bottom:auto;transform:translateY(-50%);animation:akilio-coachmark-side-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark:after{top:50%;right:-7px;bottom:auto;transform:translateY(-50%) rotate(-45deg)}.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-root[data-akilio-mode=floating][data-akilio-launcher-position=bottom-left] .akilio-panel{right:auto;left:22px;transform-origin:left bottom}.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:10px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-logo,.akilio-empty-icon{display:grid;flex-shrink:0;place-items:center}.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: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:25px;height:25px;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),color-mix(in srgb,var(--akilio-primary) 80%,transparent));color:#fff}.akilio-bubble--error{border-color:#f8717159;background:#fef2f2;color:#991b1b}.akilio-bubble-meta{display:flex;align-items:center;gap:5px;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:13px;line-height:1.7}.akilio-answer h2{font-size:15px;font-weight:700;margin:0}.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 button:disabled{cursor:wait;opacity:.62}.akilio-feedback .akilio-feedback-pending{border-color:color-mix(in srgb,var(--akilio-primary) 35%,#d4d4d8);color:var(--akilio-primary);opacity:1}.akilio-feedback-spinner{display:block;width:13px;height:13px;border:2px solid color-mix(in srgb,var(--akilio-primary) 24%,transparent);border-top-color:currentColor;border-radius:999px;animation:akilio-feedback-spin .65s linear infinite}@keyframes akilio-feedback-spin{to{transform:rotate(360deg)}}.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:8px 12px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.akilio-composer-box{display:flex;align-items:flex-end;gap:8px;border:1px solid rgba(212,212,216,.95);border-radius:24px;background:#f8fafc;padding:6px 12px;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{flex:1;min-height:36px;max-height:120px;height:36px;overflow-y:hidden;resize:none;border:0;outline:0;background:transparent;color:#09090b;padding:6px 0;font:inherit;font-size:14px;line-height:1.5}.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-submit{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;border-radius:999px;background:var(--akilio-primary);color:#fff;cursor:pointer;padding:0;transition:background .15s ease,opacity .15s ease,transform .15s ease}.akilio-composer-submit:hover:not(:disabled){background:var(--akilio-primary-hover);transform:scale(1.05)}.akilio-composer-submit:active:not(:disabled){transform:scale(.98)}.akilio-composer-submit:disabled{opacity:.45;cursor:not-allowed}.akilio-composer-submit svg{width:16px;height:16px}.akilio-composer-help{margin-top:6px;padding:0 12px;color:#71717a;font-size:11px;line-height:1.4;display:flex;align-items:center;gap:4px}.akilio-powered-by{margin-top:6px;padding:0 4px;color:#71717a;font-size:10px;font-weight:600;line-height:1.2;text-align:center}.akilio-powered-by a{text-decoration:none;font-weight:700}.akilio-coachmark{position:fixed;right:22px;bottom:94px;z-index:calc(var(--akilio-z-index) - 1);display:flex;width:min(320px,calc(100vw - 32px));gap:11px;border:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-radius:18px;background:#fffffffa;color:#17211f;padding:15px 38px 15px 15px;pointer-events:auto;box-shadow:0 24px 64px #042f2e2e,0 0 0 1px #0f766e0a;animation:akilio-coachmark-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-coachmark:after{position:absolute;right:30px;bottom:-7px;width:13px;height:13px;transform:rotate(45deg);border-right:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);border-bottom:1px solid color-mix(in srgb,var(--akilio-primary) 24%,#d4d4d8);background:#fff;content:""}.akilio-coachmark-icon{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:999px;background:color-mix(in srgb,var(--akilio-primary) 11%,#fff);color:var(--akilio-primary)}.akilio-coachmark-icon svg{width:17px;height:17px}.akilio-coachmark-content{min-width:0}.akilio-coachmark-content strong{display:block;margin:0 0 3px;color:#17211f;font-size:14px;line-height:1.35}.akilio-coachmark-content p{margin:0;color:#52525b;font-size:12px;line-height:1.5}.akilio-coachmark-action{margin-top:9px;border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground);padding:7px 12px;cursor:pointer;font-size:11px;font-weight:750}.akilio-coachmark-close{position:absolute;top:8px;right:8px;display:grid;width:26px;height:26px;place-items:center;border:0;border-radius:999px;background:transparent;color:#71717a;cursor:pointer;font-size:20px;line-height:1}.akilio-coachmark-close:hover{background:#f4f4f5;color:#18181b}@keyframes akilio-coachmark-in{0%{transform:translateY(8px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes akilio-coachmark-side-in{0%{transform:translate(8px,-50%) scale(.98);opacity:0}to{transform:translateY(-50%) scale(1);opacity:1}}@media(max-width:1279px){.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher{top:auto;right:22px;bottom:22px;min-width:0;min-height:0;flex-direction:row;transform:none;border-right:1px solid rgba(255,255,255,.22);border-radius:999px;padding:11px 16px 11px 12px}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher:hover{transform:translateY(-2px)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher strong{writing-mode:initial;transform:none}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark{top:auto;right:22px;bottom:94px;transform:none;animation:akilio-coachmark-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark:after{top:auto;right:30px;bottom:-7px;transform:rotate(45deg)}}@media(max-width:640px){.akilio-contextual-prompt{bottom:calc(78px + env(safe-area-inset-bottom));width:calc(100vw - 28px);padding-left:6px}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher{inset:auto 16px 16px auto;min-width:0;min-height:0;flex-direction:row;transform:none;border-right:1px solid rgba(255,255,255,.22);border-radius:999px}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher:hover{transform:translateY(-2px)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-launcher strong{writing-mode:initial;transform:none}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark{top:auto;right:16px;bottom:82px;animation:akilio-coachmark-in .2s cubic-bezier(.2,.8,.2,1)}.akilio-root[data-akilio-launcher-position=right-middle] .akilio-coachmark:after{top:auto;right:30px;bottom:-7px;transform:rotate(45deg)}.akilio-launcher{right:16px;bottom:16px;padding:10px 12px}.akilio-coachmark{right:16px;bottom:82px}.akilio-launcher strong{display:none}.akilio-panel{width:100vw}.akilio-bubble{max-width:94%}.akilio-composer-help{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-root[data-akilio-launcher-position=bottom-left] .akilio-launcher{right:auto;left:14px}.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-root[data-akilio-mode=floating][data-akilio-launcher-position=bottom-left] .akilio-panel{right:auto;left:14px}.akilio-panel-header{padding-top:max(10px,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-box{background:#18181b;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-help,.akilio-root[data-akilio-color-mode=dark] .akilio-powered-by{color:var(--akilio-muted, #a1a1aa)}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181bfa;color:#fafafa;box-shadow:0 24px 64px #0000006b}.akilio-root[data-akilio-color-mode=dark] .akilio-contextual-prompt{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181bf7;box-shadow:0 20px 60px #0000006b}.akilio-root[data-akilio-color-mode=dark] .akilio-contextual-prompt input{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-contextual-prompt input::placeholder{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-contextual-dismiss{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-contextual-dismiss:hover{background:#27272a;color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-contact-options a,.akilio-root[data-akilio-color-mode=dark] .akilio-contact-form{border-color:#3f3f46;background:#18181b;color:#e4e4e7}.akilio-root[data-akilio-color-mode=dark] .akilio-contact-options span,.akilio-root[data-akilio-color-mode=dark] .akilio-contact-form label{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-contact-form input,.akilio-root[data-akilio-color-mode=dark] .akilio-contact-form select,.akilio-root[data-akilio-color-mode=dark] .akilio-contact-form textarea{border-color:#52525b;background-color:#27272a;color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark:after{border-color:color-mix(in srgb,var(--akilio-primary) 34%,#3f3f46);background:#18181b}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-content strong{color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-content p,.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-close{color:#a1a1aa}.akilio-root[data-akilio-color-mode=dark] .akilio-coachmark-close:hover{background:#27272a;color:#fafafa}.akilio-root[data-akilio-color-mode=dark] .akilio-composer-box:focus-within{background:#18181b;border-color:color-mix(in srgb,var(--akilio-primary) 55%,#3f3f46)}.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-contact{display:grid;gap:9px;margin-top:12px}.akilio-contact-options{display:grid;grid-auto-rows:1fr;gap:7px}.akilio-contact-options a{display:flex;min-height:54px;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#334155;padding:7px 9px;text-decoration:none}.akilio-contact-options strong{align-self:flex-start;font-size:11px;line-height:1.25;text-align:left}.akilio-contact-options a:hover{border-color:color-mix(in srgb,var(--akilio-primary) 40%,#e2e8f0);color:var(--akilio-primary)}.akilio-contact-options span{align-self:flex-end;max-width:100%;margin-top:auto;overflow:hidden;color:#64748b;font-size:10px;line-height:1.2;text-align:right;text-overflow:ellipsis;white-space:nowrap}.akilio-contact-start,.akilio-contact-submit{justify-self:start;border:0;border-radius:999px;background:var(--akilio-primary);color:var(--akilio-primary-foreground)!important;padding:8px 13px;cursor:pointer;font-size:12px;font-weight:700}.akilio-contact-start:hover,.akilio-contact-submit:hover:not(:disabled){background:var(--akilio-primary-hover)}.akilio-contact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:12px}.akilio-contact-form label{display:grid;gap:4px;color:#475569;font-size:11px;font-weight:650}.akilio-contact-form label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.akilio-contact-name,.akilio-contact-message,.akilio-contact-consent,.akilio-contact-error,.akilio-contact-submit{grid-column:1 / -1}.akilio-contact-form input,.akilio-contact-form select,.akilio-contact-form textarea{width:100%;min-width:0;border:1px solid #d4d4d8;border-radius:9px;background:#fff;color:#18181b;padding:8px 9px;outline:0;font-size:12px}.akilio-contact-form input:not([type=checkbox]),.akilio-contact-form select{height:36px}.akilio-contact-form select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%2371717a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E");background-position:right 9px center;background-repeat:no-repeat;padding-right:28px}.akilio-contact-form textarea{resize:vertical}.akilio-contact-form input:focus,.akilio-contact-form select:focus,.akilio-contact-form textarea:focus{border-color:var(--akilio-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--akilio-primary) 14%,transparent)}.akilio-root .akilio-contact-form input:not([type=checkbox]):focus,.akilio-root .akilio-contact-form input:not([type=checkbox]):focus-visible,.akilio-root .akilio-contact-form select:focus,.akilio-root .akilio-contact-form select:focus-visible,.akilio-root .akilio-contact-form textarea:focus,.akilio-root .akilio-contact-form textarea:focus-visible{outline:none}.akilio-contact-form .akilio-contact-consent{display:flex;grid-template-columns:none;align-items:flex-start;gap:7px;font-weight:500}.akilio-contact-form .akilio-contact-consent>span{overflow:visible;text-overflow:clip;white-space:normal}.akilio-contact-consent input{width:15px;margin-top:1px;accent-color:var(--akilio-primary)}.akilio-contact-submit:disabled{cursor:wait;opacity:.55}.akilio-contact-success,.akilio-contact-error{margin:0;font-size:12px;font-weight:650}.akilio-contact-success{color:#047857}.akilio-contact-error{color:#b91c1c}@media(max-width:640px){.akilio-contact-form{grid-template-columns:1fr}}.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-products-grid,.akilio-products-grid--vertical{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.akilio-products-grid--horizontal{display:flex;flex-direction:column;gap:10px}@media(max-width:640px){.akilio-products-grid--vertical{grid-template-columns:1fr}}@media(max-width:390px){.akilio-products-grid--vertical{grid-template-columns:1fr}.akilio-products-grid--horizontal{gap:8px}}.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{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px}.akilio-product-price strong{color:#0f172a;font-size:14px}.akilio-product-price del{color:#94a3b8;font-size:10px}.akilio-product-action{width:auto;min-height:auto;display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border:0;border-radius:6px;background:transparent;color:var(--akilio-primary);font:inherit;font-size:11px;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer;transition:color .15s ease,background .15s ease}.akilio-product-action:hover{background:color-mix(in srgb,var(--akilio-primary) 8%,transparent);text-decoration:underline}.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-products-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:15px;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}.akilio-product-card--vertical{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f}.akilio-product-card--vertical .akilio-product-media{position:relative;aspect-ratio:4 / 3;overflow:hidden;background:#f1f5f9}.akilio-product-card--vertical .akilio-product-body{padding:11px;display:flex;flex-direction:column}.akilio-product-card--horizontal{display:flex;flex-direction:row;gap:12px;min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 6px 20px #0f172a0f;align-items:stretch}.akilio-product-card--horizontal .akilio-product-media{flex:0 0 25%;min-width:80px;position:relative;aspect-ratio:1 / 1;overflow:hidden;background:#f1f5f9}.akilio-product-card--horizontal .akilio-product-body{flex:1;padding:11px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.akilio-product-card--horizontal .akilio-product-action{width:100%}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--vertical,.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--horizontal{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--vertical .akilio-product-media,.akilio-root[data-akilio-color-mode=dark] .akilio-product-card--horizontal .akilio-product-media{background:#1e293b}@media(prefers-color-scheme:dark){.akilio-root[data-akilio-color-mode=system] .akilio-product-card--vertical,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--horizontal{background:#111827;border-color:#334155;box-shadow:none}.akilio-root[data-akilio-color-mode=system] .akilio-product-card--vertical .akilio-product-media,.akilio-root[data-akilio-color-mode=system] .akilio-product-card--horizontal .akilio-product-media{background:#1e293b}}@media(max-width:480px){.akilio-product-card--horizontal{flex-direction:column;gap:0}.akilio-product-card--horizontal .akilio-product-media{flex:1;min-width:unset;aspect-ratio:4 / 3}}@media(max-width:390px){.akilio-product-card--vertical .akilio-product-media{aspect-ratio:16 / 9}.akilio-product-card--horizontal{flex-direction:column}.akilio-product-card--horizontal .akilio-product-media{aspect-ratio:16 / 9}}.source-ref{display:inline-flex;align-items:center;justify-content:center;margin-left:.3rem;padding:.1rem .45rem;border-radius:999px;font-size:.68rem;font-weight:600;letter-spacing:.01em;line-height:1.2;vertical-align:super;color:#334155;background:linear-gradient(180deg,#f8fafc,#eef2ff);border:1px solid #dbeafe;box-shadow:0 1px 2px #0f172a14;-webkit-user-select:none;user-select:none;white-space:nowrap}`;class or extends Error{code;constructor(t,n){super(n),this.name="AkilioPublicApiError",this.code=t}}function dt(e,t){typeof window>"u"||window.dispatchEvent(new CustomEvent(`akilio:${e}`,{detail:t||{}}))}function Ke(e,t){return new or(e,t)}function un(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function An(){return new Date().toISOString()}function hi(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 mm(e,t){const n={...e?.theme_config||{},...t||{}};return{"--akilio-primary":String(n.primary_color||"#0F766E"),"--akilio-primary-hover":String(n.primary_dark_color||"#115E59"),"--akilio-primary-foreground":String(n.primary_foreground_color||"#ffffff"),"--akilio-accent":String(n.accent_color||"#2563eb"),"--akilio-radius":String(n.radius||"22px"),"--akilio-panel-width":`${Number(n.panel_width||440)}px`,"--akilio-z-index":String(Number(n.z_index||2147483647)),"--akilio-surface":String(n.surface_color||""),"--akilio-text":String(n.text_color||""),"--akilio-muted":String(n.muted_color||"")}}function bm(e,t){M.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 cs(e){return Array.isArray(e)?e.filter(t=>typeof t=="string").map(t=>t.trim()).filter(Boolean).slice(0,6):[]}function km(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 ar(e){if(!e)return null;try{const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}function ym(e,t=!0){return{id:un(),role:"assistant",content:km(e),backendMessageId:e.message_id,conversationId:e.conversation_id,confidence:e.confidence,sources:e.sources||[],provider:e.provider,model:e.model,commerce:t&&e.commerce||null,suggestions:cs(e.suggestions),contactOptions:Array.isArray(e.contact_options)?e.contact_options:[],actions:Array.isArray(e.actions)?e.actions:[],createdAt:An()}}function us({apiBaseUrl:e="https://api.akilio-ai.com/v1",projectKey:t,locale:n="en",mode:r="floating",colorMode:i="system",allowColorModeToggle:a=!0,showAkilioBranding:o=!0,streaming:s=!0,enableResponseSound:l=!1,responseSoundVolume:c=.22,defaultOpen:d=!1,open:u,launcher:f="default",launcherPosition:p="bottom-right",contextualPrompt:g=!1,persistOpenState:h=!0,enableTour:x=!0,tourDelayMs:w=3e3,tourVersion:E="v1",enableLocalHistory:S=!0,enableServerHistorySync:I=!0,anonymousId:R,externalUserId:_,channel:q,audience:G,productArea:H,assistantMode:v,pageContext:B,auth:F,accessToken:ie,privacyNotice:X,privacyNoticeUrl:W,requireConsent:de,consentNoticeVersion:he="v1",initialConsent:j=!1,onConsentChange:me,copy:b,theme:ce,className:we,onOpenChange:y,onMessage:Ae,onProductClick:$e,onError:pe}){const Ye=M.useRef(null),Ze=`akilio-chat-panel-${M.useId().replace(/:/g,"")}`,{prepare:pt,play:Xe}=sm(l,c),Be=M.useRef(null),Zt=M.useRef(0),At=M.useRef(new Set),ze=M.useRef({open:!1,busy:!1,conversationId:null}),Dt=`akilio:${t}:config`,[be,kt]=M.useState(null),ft=M.useMemo(()=>({...F||{},accessToken:F?.accessToken||ie}),[ie,F]),De=M.useMemo(()=>new ss({apiBaseUrl:e,auth:ft,mode:r,locale:n}),[e,ft,r,n]),Rt=im(),[He,Cn]=M.useState(rs(localStorage.getItem(Dt),null)),[Xt,gt]=M.useState(null),[Ct,N]=M.useState(!1),[D,Q]=M.useState({stage:"",message:""}),[se,fe]=M.useState(null),[Je,lt]=M.useState({}),[Ge,Ue]=lm({enabled:S,projectKey:t,locale:n}),[Fe,Me]=cn({enabled:S,key:`akilio:${t}:${n}:conversation-id:v2`}),It=M.useMemo(()=>un(),[t]),[et]=cn({enabled:!0,key:`akilio:${t}:widget-subject:v1`,initialValue:It}),[sr,In]=cn({enabled:h,key:`akilio:${t}:panel-open:v2`,initialValue:d?"true":""}),[lr,Qt]=cn({enabled:!0,key:`akilio:${t}:coachmark:${E||"v1"}`}),[Ot,k]=M.useState(!1),[T,P]=cn({enabled:!0,key:`akilio:${t}:consent:${he}`,initialValue:j?"true":""}),[te,Le]=M.useState(d),[Ce,$]=cn({enabled:!0,key:`akilio:${t}:color-mode:v1`}),[U,ee]=M.useState("light"),ke=r==="inline",Ie=typeof g=="boolean"?{enabled:g}:g,Ft=Ie?.enabled===!0,On=Math.min(2e3,Math.max(0,Number(Ie?.threshold??320)||0)),Mn=om(Ft&&!ke,On),[mi,dn]=M.useState(!1),cr=!ke&&p==="right-middle"&&Rt,ur=r==="floating"&&!cr,bi=r==="hybrid"||r==="side-panel",pn=!ke&&(r==="side-panel"||r==="hybrid"&&Rt),fn=!ke&&!ur&&(cr||r==="drawer"||r==="hybrid"&&!Rt),tt=ke||(u??(h&&sr==="true"||te)),ki=i||ce?.color_mode||He?.theme_config?.color_mode||"system",yt=Ce==="light"||Ce==="dark"||Ce==="system"?Ce:ki,jt=yt==="system"?U:yt,Ee=M.useMemo(()=>hm({locale:n,projectConfig:He,overrides:b}),[b,n,He]),zt=He?.widget_policy,Ut=zt?.available!==!1,Mt=zt?.commerce_enabled!==!1,Jt=zt?.assistant_mode||v,Ln=zt?.branding==="akilio_required"||zt?.branding!=="white_label"&&o,L=zt?.branding==="akilio_required",K=M.useMemo(()=>Mt?Ge:Ge.map(A=>A.commerce?{...A,commerce:null}:A),[Mt,Ge]),ae=M.useMemo(()=>mm(He,ce),[He,ce]),xe=de??He?.require_consent??!1,Re=X||He?.privacy_notice||"",ct=W||He?.privacy_notice_url,wt=T==="true"||T==="accepted"?"accepted":T==="rejected"?"rejected":"pending",xt=wt==="accepted",_e=_||R||et||void 0,Oe=M.useCallback(A=>{if(ke)return;const oe=ze.current.open!==A;ze.current.open=A,u===void 0&&(Le(A),h&&In(A?"true":"")),y?.(A),oe&&dt(A?"open":"close")},[u,ke,y,h,In]),Dn=M.useMemo(()=>({open:tt,openChat:()=>Oe(!0),closeChat:()=>Oe(!1),toggleChat:()=>Oe(!tt)}),[tt,Oe]),Et=M.useCallback(()=>{k(!1),Qt("seen")},[Qt]),dr=M.useCallback(()=>{Et(),Oe(!0)},[Et,Oe]),yi=M.useCallback(A=>{P(A==="pending"?"":A),A!=="pending"&&me?.(A==="accepted")},[me,P]);M.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const A=window.matchMedia("(prefers-color-scheme: dark)"),oe=()=>ee(A.matches?"dark":"light");return oe(),A.addEventListener?.("change",oe),()=>A.removeEventListener?.("change",oe)},[]);const wi=M.useCallback(()=>{$(jt==="dark"?"light":"dark")},[jt,$]);bm(tt,pn&&bi),M.useEffect(()=>{if(!(x&&!ke&&f==="default"&&Ut&&!tt)){k(!1),tt&&x&&Qt("seen");return}const oe=(ye=!1)=>{(ye||lr!=="seen")&&k(!0)},V=window.setTimeout(()=>oe(!1),Math.min(6e4,Math.max(0,Number(w)||0))),Z=()=>oe(!0);return window.addEventListener("akilio:start-tour",Z),()=>{window.clearTimeout(V),window.removeEventListener("akilio:start-tour",Z)}},[x,ke,f,tt,Qt,w,lr,Ut]),M.useEffect(()=>{if(!Ot)return;const A=oe=>{oe.key==="Escape"&&Et()};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[Ot,Et]),M.useEffect(()=>{let A=!1;return De.getProjectConfig(t).then(oe=>{A||(window.localStorage.setItem(Dt,JSON.stringify(oe)),Cn(oe),gt(null))}).catch(oe=>{A||(gt(oe.message),pe?.(oe))}),()=>{A=!0}},[De,pe,t]),M.useEffect(()=>{_e&&De.prepareWidgetToken(t,_e).catch(A=>pe?.(A))},[De,pe,t,_e]),M.useEffect(()=>{if(!I||!_e||!Fe||Ge.length>0)return;let A=!1;return De.getConversation(t,_e,Fe).then(oe=>{A||Ue(oe.messages.map(V=>({id:V.id,backendMessageId:V.role==="assistant"?V.id:void 0,conversationId:oe.id,role:V.role,content:V.content,sources:V.sources||[],confidence:V.confidence,commerce:(()=>{const Z=V.metadata&&typeof V.metadata=="object"?V.metadata:null,ye=ar(V.structured_content);return Mt&&(Z?.commerce||ye?.commerce)||null})(),suggestions:(()=>{const Z=V.metadata&&typeof V.metadata=="object"?V.metadata:null,ye=ar(V.structured_content);return cs(Z?.suggestions||ye?.suggestions)})(),contactOptions:(()=>{const Z=V.metadata,ye=ar(V.structured_content),C=Z?.contact_options||ye?.contact_options;return Array.isArray(C)?C:[]})(),actions:(()=>{const Z=V.metadata,ye=ar(V.structured_content),C=Z?.actions||ye?.actions;return Array.isArray(C)?C:[]})(),createdAt:V.created_at})).slice(-ln))}).catch(()=>Me("")),()=>{A=!0}},[De,Mt,Fe,I,Ge.length,t,Me,Ue,_e]);const Rn=M.useCallback(()=>{Ue([]),Me(""),At.current.clear(),lt({})},[Me,Ue]),en=M.useCallback(async(A,oe)=>{if(!A)throw Ke("INVALID_QUESTION","Question is empty");if(!Ut)throw Ke("INVALID_QUESTION","This widget is not currently available");if(Ct)throw Ke("BUSY","An answer is already in progress");if(xe&&!xt)throw Ke("INVALID_QUESTION","Privacy consent is required");pt();const V=hi(B),Z={id:un(),role:"user",content:A,createdAt:An(),conversationId:Fe||void 0};Ue(C=>[...C,Z].slice(-ln)),Ae?.(Z),dt("question",{question:A}),N(!0),ze.current.busy=!0,dt("answer-start",{question:A}),Q({stage:"",message:""}),fe(null);const ye=un();try{const C={project_key:t,conversation_id:Fe||void 0,message:A,intent:oe,locale:n,channel:q||V.channel||"docs",audience:G||V.audience,product_area:H||V.productArea,assistant_mode:Jt||void 0,page:{url:V.url,title:V.title,...V.metadata||{}},anonymous_id:R,external_user_id:_,consent:{granted:xt,granted_at:xt?An():void 0,notice_version:he}};let z="";const J=s?await De.sendMessageStream(t,_e,C,{onStatus:(Se,nt)=>{const _t=nt.message||nt.label;Q({stage:Se,message:typeof _t=="string"?_t:""})},onConversation:Se=>{ze.current.conversationId=Se,Me(Se)},onDelta:Se=>{z+=Se,dt("answer-delta",{delta:Se}),fe({id:ye,role:"assistant",content:z,conversationId:Fe||void 0,createdAt:An(),streaming:!0})}}):await De.sendMessage(t,_e,C);ze.current.conversationId=J.conversation_id,Me(J.conversation_id);const le={...ym(J,Mt),id:z?ye:un(),streaming:!1};return fe(null),Ue(Se=>[...Se,le].slice(-ln)),Ae?.(le),dt("answer-complete",{response:J}),Xe(),J}catch(C){const z=C instanceof Error?C:new Error(Ee.requestFailed),J={id:un(),role:"assistant",content:z.message||Ee.requestFailed,createdAt:An(),error:!0};throw fe(null),Ue(le=>[...le,J].slice(-ln)),pe?.(z),dt("error",{code:C instanceof or?C.code:"STREAM_FAILED",message:z.message||Ee.requestFailed}),z}finally{N(!1),ze.current.busy=!1,Q({stage:"",message:""})}},[R,G,q,De,Mt,xt,he,Fe,Ee.requestFailed,xe,Jt,_,Ct,n,pe,Ae,B,Xe,pt,H,t,Me,Ue,s,_e,Ut]),ot=M.useCallback(()=>{const A=Be.current;A&&(Be.current=null,A.timer&&window.clearTimeout(A.timer),A.reject(Ke("TYPING_CANCELLED","Draft typing was cancelled")),dt("typing-cancel",{draft:Ye.current?.getDraft()||""}))},[]),pr=M.useCallback((A,oe)=>{oe&&Be.current&&ot(),dt("draft-change",{draft:A})},[ot]);ze.current={open:tt,busy:Ct,conversationId:Fe||null},M.useEffect(()=>{if(typeof window>"u"||window.AkilioWidget)return;const A=()=>{if(!Ye.current)throw Ke("NOT_READY","The widget is not ready");return Ye.current},oe=async(Z,ye={})=>{if(ot(),typeof Z!="string")throw Ke("INVALID_QUESTION","Draft must be a string");A().setDraft(Z,{focus:ye.focus,clearExisting:ye.clearExisting??!0}),await new Promise(C=>window.setTimeout(C,0))},V=Object.freeze({open:async()=>{Oe(!0),await new Promise(Z=>window.setTimeout(Z,0))},close:async()=>{Oe(!1),await new Promise(Z=>window.setTimeout(Z,0))},setDraft:oe,typeDraft:async(Z,ye={})=>{if(ot(),typeof Z!="string"||!Z.length)throw Ke("INVALID_QUESTION","Question must not be empty");const C=A(),z=ye.clearExisting===!1?C.getDraft():"",J=Math.max(0,Number(ye.interval??35)),le=++Zt.current;return dt("typing-start",{textLength:Z.length}),new Promise(async(Se,nt)=>{Be.current={id:le,reject:nt};try{for(let _t=1;_t<=Z.length;_t+=1){if(await new Promise(Ei=>{const wm=window.setTimeout(Ei,J);Be.current?.id===le&&(Be.current.timer=wm)}),Be.current?.id!==le)return;C.setDraft(`${z}${Z.slice(0,_t)}`,{clearExisting:!0,focus:ye.focus&&_t===1})}if(Be.current?.id!==le)return;Be.current=null,dt("typing-complete",{draft:C.getDraft()}),Se()}catch(_t){Be.current=null,nt(_t)}})},clearDraft:async()=>{ot(),A().clearDraft()},cancelTyping:ot,submit:async()=>{if(ze.current.busy)throw Ke("BUSY","An answer is already in progress");const Z=A();if(!Z.getDraft().trim())throw Ke("EMPTY_DRAFT","The draft is empty");try{return await Z.submitDraft()}catch(C){throw C instanceof or?C:C instanceof Error&&C.message==="BUSY"?Ke("BUSY","An answer is already in progress"):C instanceof Error&&C.message==="EMPTY_DRAFT"?Ke("EMPTY_DRAFT","The draft is empty"):C instanceof Error&&C.message==="INVALID_QUESTION"?Ke("INVALID_QUESTION","The question is invalid"):Ke("STREAM_FAILED",C instanceof Error?C.message:"Streaming failed")}},ask:async(Z,ye)=>(await oe(Z,ye),V.submit()),reset:async()=>{try{if(ot(),ze.current.busy)throw Ke("BUSY","An answer is already in progress");Rn(),ze.current.conversationId=null,A().clearDraft(),fe(null),dt("reset")}catch(Z){throw Z instanceof or?Z:Ke("RESET_FAILED","The conversation could not be reset")}},getState:()=>({ready:!!Ye.current,open:ze.current.open,busy:ze.current.busy,typing:!!Be.current,draft:Ye.current?.getDraft()||"",conversationId:ze.current.conversationId})});return window.AkilioWidget=V,dt("ready"),()=>{ot(),window.AkilioWidget===V&&delete window.AkilioWidget}},[ot,Rn,Oe]);const ht=M.useCallback((A,oe,V)=>{Mt&&($e?.(oe,V),De.sendCommerceEvent(t,_e,{event_type:A.commerce?.capability==="product_search"?"search":"recommendation",product_id:oe.id,variant_id:V?.id||null,conversation_id:A.conversationId||Fe||null,external_user_id:_||"",value:V?.price||null,currency:V?.currency||"",metadata:{source:"widget_product_card",capability:A.commerce?.capability,product_url:oe.url||""}}).catch(Z=>pe?.(Z)))},[De,Mt,Fe,_,pe,$e,t,_e]),xi=M.useCallback(async(A,oe)=>{if(A.backendMessageId&&!At.current.has(A.id)){At.current.add(A.id),lt(V=>({...V,[A.id]:oe}));try{await De.sendFeedback({projectKey:t,subject:_e,messageId:A.backendMessageId,rating:oe,metadata:{conversation_id:A.conversationId||Fe,locale:n,page:hi(B)}}),Ue(V=>V.map(Z=>Z.id===A.id?{...Z,feedback:oe}:Z))}catch(V){pe?.(V instanceof Error?V:new Error("Feedback request failed"))}finally{At.current.delete(A.id),lt(V=>{const Z={...V};return delete Z[A.id],Z})}}},[De,Fe,n,pe,B,t,Ue,_e]),Pn=M.useCallback(A=>De.sendContactRequest(t,_e,A),[De,t,_e]),re=M.useMemo(()=>{const A=hi(B),oe=Z=>Z.every(ye=>ye==="page.url"?!!A.url:!1),V=He?.capabilities?.chat?.intents||[];return[{intent:"summarize_page",label:Ee.summarizePage},{intent:"contact",label:Ee.contact}].filter(Z=>{const ye=V.find(C=>C.code===Z.intent);return!!(ye?.enabled&&ye.surfaces.includes("widget")&&oe(ye.requirements))})},[Ee.contact,Ee.summarizePage,B,He?.capabilities]),fr=M.useCallback(async A=>{dn(!0),Et(),Oe(!0),await en(A)},[Et,Oe,en]),qe=Ft&&Mn&&!mi&&!tt&&!Ct&&Ut&&(!xe||xt);return m.jsxs("div",{ref:kt,className:qt("akilio-root",we),style:ae,"data-akilio-mode":ke?"inline":ur?"floating":pn?"side-panel":"drawer","data-akilio-color-mode":jt,"data-akilio-launcher-position":p,"data-akilio-open":tt?"true":"false",children:[qe&&m.jsx(em,{placeholder:Ie?.placeholder||Ee.contextualPlaceholder,dismissLabel:Ee.contextualDismiss,dismissible:Ie?.dismissible!==!1,onDismiss:()=>dn(!0),onSubmit:fr}),!ke&&f==="default"&&m.jsxs(m.Fragment,{children:[Ot&&m.jsx(nm,{title:Ee.tourTitle,message:Ee.tourMessage,actionLabel:Ee.tourAction,dismissLabel:Ee.tourDismiss,onDismiss:Et,onOpen:dr,primaryColor:ae["--akilio-primary"]||void 0,showBranding:o}),m.jsx(tm,{label:Ln?Ee.launcher:Ee.title,onClick:()=>{Et(),Dn.toggleChat()},showBranding:Ln,primaryColor:ae["--akilio-primary"]||void 0,open:tt,controlsId:Ze})]}),!ke&&typeof f=="function"&&f(Dn),fn&&tt&&m.jsx("button",{type:"button",className:"akilio-overlay","aria-label":Ee.close,onClick:()=>Oe(!1)}),m.jsx(Jh,{ref:Ye,panelId:Ze,open:tt,isDesktop:pn,inline:ke,colorMode:jt,allowColorModeToggle:a,widgetAvailable:Ut,showBranding:Ln,showPoweredBy:L,locale:n,copy:{...Ee,description:Xt?`${Ee.description} ${Ee.configFailed}: ${Xt}`:Ee.description},messages:K,feedbackPending:Je,streamingMessage:se,loading:Ct,loadingLabel:D.message||(()=>{const A=D.stage.toLowerCase();return A.includes("retriev")||A.includes("search")?Ee.searching:A.includes("ground")||A.includes("source")?Ee.reviewingSources:A.includes("valid")||A.includes("check")||A.includes("safety")?Ee.checkingAnswer:A.includes("answer")||A.includes("generat")||A.includes("prepar")?Ee.preparingAnswer:Ee.loading})(),consentDecision:wt,consentGranted:xt,requireConsent:xe,privacyNotice:Re,privacyNoticeUrl:ct,onConsentDecision:yi,onClose:()=>Oe(!1),onToggleColorMode:wi,onClear:Rn,onSubmit:en,onDraftChange:pr,onFeedback:xi,contactRequestCapability:He?.capabilities?.chat?.contact_request,onContactRequest:Pn,onProductClick:ht,onSuggestion:A=>{en(A).catch(()=>{})},intentActions:re,onIntentAction:(A,oe)=>{en(oe,A).catch(()=>{})},primaryColor:ae["--akilio-primary"]||void 0,slug:He?.slug})]})}function ds(e){const t=e.styleIsolation??"shadow",n=(e.mode??"floating")!=="inline",r=M.useRef(null),[i,a]=M.useState(null);return M.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 l=s.querySelector("style[data-akilio-styles]");l||(l=document.createElement("style"),l.setAttribute("data-akilio-styles",""),l.textContent=ls,s.appendChild(l));let c=s.querySelector("[data-akilio-shadow-mount]");return c||(c=document.createElement("div"),c.setAttribute("data-akilio-shadow-mount",""),s.appendChild(c)),a(c),()=>{if(typeof o.hidePopover=="function")try{o.hidePopover()}catch{}o.removeAttribute("popover"),o.removeAttribute("style")}},[t,n]),t==="shadow"?m.jsx("div",{ref:r,"data-akilio-shadow-host":"true",children:i&&fs.createPortal(m.jsx(us,{...e}),i)}):m.jsxs(m.Fragment,{children:[t==="scoped"&&m.jsx("style",{"data-akilio-styles":!0,children:ls}),m.jsx(us,{...e})]})}mt.AkilioClient=ss,mt.AkilioWidget=ds,mt.EjibuWidget=ds,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})}));