1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,76696,e=>{"use strict";function t(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}e.s(["stringify",()=>t])},124963,e=>{"use strict";let t=/[ \t\n\f\r]/g;function n(e){return"object"==typeof e?"text"===e.type&&r(e.value):r(e)}function r(e){return""===e.replace(t,"")}e.s(["whitespace",()=>n])},402326,28619,400744,e=>{"use strict";class t{constructor(e,t){this.attribute=t,this.property=e}}t.prototype.attribute="",t.prototype.booleanish=!1,t.prototype.boolean=!1,t.prototype.commaOrSpaceSeparated=!1,t.prototype.commaSeparated=!1,t.prototype.defined=!1,t.prototype.mustUseProperty=!1,t.prototype.number=!1,t.prototype.overloadedBoolean=!1,t.prototype.property="",t.prototype.spaceSeparated=!1,t.prototype.space=void 0,e.s(["Info",()=>t],28619);let n=0,r=c(),a=c(),i=c(),o=c(),s=c(),l=c(),u=c();function c(){return 2**++n}e.s(["boolean",0,r,"booleanish",0,a,"commaOrSpaceSeparated",0,u,"commaSeparated",0,l,"number",0,o,"overloadedBoolean",0,i,"spaceSeparated",0,s],400744);var h=e.i(400744);let p=Object.keys(h);class d extends t{constructor(e,t,n,r){let a=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++a<p.length;){const e=p[a];!function(e,t,n){n&&(e[t]=n)}(this,p[a],(n&h[e])===h[e])}}}d.prototype.defined=!0,e.s(["DefinedInfo",()=>d],402326)},864012,e=>{"use strict";function t(e){return e.toLowerCase()}e.s(["normalize",()=>t])},640553,e=>{"use strict";var t=e.i(402326),n=e.i(28619),r=e.i(864012);let a=/[A-Z]/g,i=/-[a-z]/g,o=/^data[-\w.:]+$/i;function s(e,s){let c=(0,r.normalize)(s),h=s,p=n.Info;if(c in e.normal)return e.property[e.normal[c]];if(c.length>4&&"data"===c.slice(0,4)&&o.test(s)){if("-"===s.charAt(4)){let e=s.slice(5).replace(i,u);h="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=s.slice(4);if(!i.test(e)){let t=e.replace(a,l);"-"!==t.charAt(0)&&(t="-"+t),s="data"+t}}p=t.DefinedInfo}return new p(h,s)}function l(e){return"-"+e.toLowerCase()}function u(e){return e.charAt(1).toUpperCase()}e.s(["find",()=>s])},77034,298651,e=>{"use strict";class t{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function n(e,n){let r={},a={};for(let t of e)Object.assign(r,t.property),Object.assign(a,t.normal);return new t(r,a,n)}t.prototype.normal={},t.prototype.property={},t.prototype.space=void 0,e.s(["Schema",()=>t],298651),e.s(["merge",()=>n],77034)},157871,e=>{"use strict";var t=e.i(77034),n=e.i(864012),r=e.i(402326),a=e.i(298651);function i(e){let t={},i={};for(let[a,o]of Object.entries(e.properties)){let s=new r.DefinedInfo(a,e.transform(e.attributes||{},a),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),t[a]=s,i[(0,n.normalize)(a)]=a,i[(0,n.normalize)(s.attribute)]=a}return new a.Schema(t,i,e.space)}var o=e.i(400744);let s=i({properties:{ariaActiveDescendant:null,ariaAtomic:o.booleanish,ariaAutoComplete:null,ariaBusy:o.booleanish,ariaChecked:o.booleanish,ariaColCount:o.number,ariaColIndex:o.number,ariaColSpan:o.number,ariaControls:o.spaceSeparated,ariaCurrent:null,ariaDescribedBy:o.spaceSeparated,ariaDetails:null,ariaDisabled:o.booleanish,ariaDropEffect:o.spaceSeparated,ariaErrorMessage:null,ariaExpanded:o.booleanish,ariaFlowTo:o.spaceSeparated,ariaGrabbed:o.booleanish,ariaHasPopup:null,ariaHidden:o.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:o.spaceSeparated,ariaLevel:o.number,ariaLive:null,ariaModal:o.booleanish,ariaMultiLine:o.booleanish,ariaMultiSelectable:o.booleanish,ariaOrientation:null,ariaOwns:o.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:o.number,ariaPressed:o.booleanish,ariaReadOnly:o.booleanish,ariaRelevant:null,ariaRequired:o.booleanish,ariaRoleDescription:o.spaceSeparated,ariaRowCount:o.number,ariaRowIndex:o.number,ariaRowSpan:o.number,ariaSelected:o.booleanish,ariaSetSize:o.number,ariaSort:null,ariaValueMax:o.number,ariaValueMin:o.number,ariaValueNow:o.number,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function l(e,t){return t in e?e[t]:t}function u(e,t){return l(e,t.toLowerCase())}
1let c=i({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:o.commaSeparated,acceptCharset:o.spaceSeparated,accessKey:o.spaceSeparated,action:null,allow:null,allowFullScreen:o.boolean,allowPaymentRequest:o.boolean,allowUserMedia:o.boolean,alt:null,as:null,async:o.boolean,autoCapitalize:null,autoComplete:o.spaceSeparated,autoFocus:o.boolean,autoPlay:o.boolean,blocking:o.spaceSeparated,capture:null,charSet:null,checked:o.boolean,cite:null,className:o.spaceSeparated,cols:o.number,colSpan:null,content:null,contentEditable:o.booleanish,controls:o.boolean,controlsList:o.spaceSeparated,coords:o.number|o.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o.boolean,defer:o.boolean,dir:null,dirName:null,disabled:o.boolean,download:o.overloadedBoolean,draggable:o.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o.boolean,formTarget:null,headers:o.spaceSeparated,height:o.number,hidden:o.overloadedBoolean,high:o.number,href:null,hrefLang:null,htmlFor:o.spaceSeparated,httpEquiv:o.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:o.boolean,inputMode:null,integrity:null,is:null,isMap:o.boolean,itemId:null,itemProp:o.spaceSeparated,itemRef:o.spaceSeparated,itemScope:o.boolean,itemType:o.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o.boolean,low:o.number,manifest:null,max:null,maxLength:o.number,media:null,method:null,min:null,minLength:o.number,multiple:o.boolean,muted:o.boolean,name:null,nonce:null,noModule:o.boolean,noValidate:o.boolean,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:o.boolean,optimum:o.number,pattern:null,ping:o.spaceSeparated,placeholder:null,playsInline:o.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:o.boolean,referrerPolicy:null,rel:o.spaceSeparated,required:o.boolean,reversed:o.boolean,rows:o.number,rowSpan:o.number,sandbox:o.spaceSeparated,scope:null,scoped:o.boolean,seamless:o.boolean,selected:o.boolean,shadowRootClonable:o.boolean,shadowRootDelegatesFocus:o.boolean,shadowRootMode:null,shape:null,size:o.number,sizes:null,slot:null,span:o.number,spellCheck:o.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:o.number,step:null,style:null,tabIndex:o.number,target:null,title:null,translate:null,type:null,typeMustMatch:o.boolean,useMap:null,value:o.booleanish,width:o.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:o.spaceSeparated,axis:null,background:null,bgColor:null,border:o.number,borderColor:null,bottomMargin:o.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o.boolean,declare:o.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:o.number,leftMargin:o.number,link:null,longDesc:null,lowSrc:null,marginHeight:o.number,marginWidth:o.number,noResize:o.boolean,noHref:
1o.boolean,noShade:o.boolean,noWrap:o.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:o.number,rules:null,scheme:null,scrolling:o.booleanish,standby:null,summary:null,text:null,topMargin:o.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o.boolean,disableRemotePlayback:o.boolean,prefix:null,property:null,results:o.number,security:null,unselectable:null},space:"html",transform:u}),h=i({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1-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:o.commaOrSpaceSeparated,accentHeight:o.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:o.number,amplitude:o.number,arabicForm:null,ascent:o.number,attributeName:null,attributeType:null,azimuth:o.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:o.number,by:null,calcMode:null,capHeight:o.number,className:o.spaceSeparated,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.number,diffuseConstant:o.number,direction:null,display:null,dur:null,divisor:o.number,dominantBaseline:null,download:o.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:o.number,enableBackground:null,end:null,event:null,exponent:o.number,externalResourcesRequired:null,fill:null,fillOpacity:o.number,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:o.commaSeparated,g2:o.commaSeparated,glyphName:o.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:o.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:o.number,horizOriginX:o.number,horizOriginY:o.number,id:null,ideographic:o.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:o.number,k:o.number,k1:o.number,k2:o.number,k3:o.number,k4:o.number,kernelMatrix:o.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:o.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:o.number,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,on
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:o.number,overlineThickness:o.number,paintOrder:null,panose1:null,path:null,pathLength:o.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:o.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:o.number,pointsAtY:o.number,pointsAtZ:o.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:o.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:o.commaOrSpaceSeparated,rev:o.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:o.commaOrSpaceSeparated,requiredFeatures:o.commaOrSpaceSeparated,requiredFonts:o.commaOrSpaceSeparated,requiredFormats:o.commaOrSpaceSeparated,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.number,specularExponent:o.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:o.number,strikethroughThickness:o.number,string:null,stroke:null,strokeDashArray:o.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:o.number,strokeOpacity:o.number,strokeWidth:null,style:null,surfaceScale:o.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:o.commaOrSpaceSeparated,tabIndex:o.number,tableValues:null,target:null,targetX:o.number,targetY:o.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:o.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:o.number,underlineThickness:o.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:o.number,values:null,vAlphabetic:o.number,vMathematical:o.number,vectorEffect:null,vHanging:o.number,vIdeographic:o.number,version:null,vertAdvY:o.number,vertOriginX:o.number,vertOriginY:o.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:o.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:l}),p=i({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),d=i({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:u}),m=i({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),g=(0,t.merge)([s,c,p,d,m],"html"),f=(0,t.merge)([s,h,p,d,m],"svg");e.s(["html",0,g,"svg",0,f],157871)},359091,e=>{"use strict";function t(e){return e.join(" ").trim()}e.s(["stringify",()=>t])},496481,e=>{"use strict";function t(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}e.s(["ccount",()=>t])},918146,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(647163),a=e.i(289768),i=e.i(530589);function o({children:e,as:o="p",className:s,style:l,variants:u,transition:c}){let h=(0,n.useId)(),p=(0,n.useMemo)(()=>{let t={};return e.split("").map(e=>{let n=e.toLowerCase();return t[n]=(t[n]||0)+1,{id:`${h}-${n}${t[n]}`,label:" "===e?"Â ":e}})},[e,h]),d={initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0}},m={type:"spring",stiffness:280,damping:18,mass:.3};return(0,t.jsx)(o,{className:(0,r.cn)(s),"aria-label":e,style:l,children:(0,t.jsx)(a.AnimatePresence,{mode:"popLayout",initial:!1,children:p.map(e=>(0,t.jsx)(i.motion.span,{layoutId:e.id,className:"inline-block","aria-hidden":"true",initial:"initial",animate:"animate",exit:"exit",variants:u||d,transition:c||m,children:e.label},e.id))})})}function s({code:e}){let[r,a]=(0,n.useState)(!1);return(0,t.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(e),a(!0),setTimeout(()=>{a(!1)},1e3)},type:"button",className:"text-muted-foreground hover:bg-muted inline-flex items-center justify-center gap-1.5 rounded-md px-2 py-1 text-xs",children:(0,t.jsx)(o,{as:"span",children:r?"Copied":"Copy"})})}e.s(["ButtonCopy",()=>s],918146)},945546,991966,241631,e=>{"use strict";class t extends Error{constructor(e){super(e),this.name="ShikiError"}}e.s(["ShikiError",()=>t],945546);var n,r,a=e.i(247167);function i(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var o=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,s=class{static hasCaptures(e){return null!==e&&(o.lastIndex=0,o.test(e))}static replaceCaptures(e,t,n){return e.replace(o,(e,r,a,i)=>{let o=n[parseInt(r||a,10)];if(!o)return e;{let e=t.substring(o.start,o.end);for(;"."===e[0];)e=e.substring(1);switch(i){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function l(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){var a,i;let n=(a=e[r],a<(i=t[r])?-1:+(a>i));if(0!==n)return n}return 0}return n-r}function u(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function c(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var h=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},p=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,a=t.length;e<a;e++){let a,i=t[e];if(!i.settings)continue;if("string"==typeof i.scope){let e=i.scope;a=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else a=Array.isArray(i.scope)?i.scope:[""];let o=-1;if("string"==typeof i.settings.fontStyle){o=0;let e=i.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break;case"strikethrough":o|=8}}let s=null;"string"==typeof i.settings.foreground&&u(i.settings.foreground)&&(s=i.settings.foreground);let l=null;"string"==typeof i.settings.background&&u(i.settings.background)&&(l=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(" "),u=i[i.length-1],c=null;i.length>1&&(c=i.slice(0,i.length-1)).reverse(),n[r++]=new g(u,c,e,o,s,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let a=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==a||0!==(a=l(e.parentScopes,t.parentScopes))?a:e.index-t.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(a=t.background)}let i=new y(t),o=new m(n,i.getId(r),i.getId(a)),s=new A(new S(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,i.getId(n.foreground),i.getId(n.background))}return new p(i,o,s)}(e,t)}_cachedMatchRoot=new h(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let a=0;a<t.length;a++){var n,r;let i=t[a],o=!1;if(">"===i){if(a===t.length-1)return!1;i=t[++a],o=!0}for(;e&&(n=e.scopeName,!((r=i)===n||n.startsWith(r)&&"."===n[r.length]));){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new m(n.fontStyle,n.foreground,n.background):null}},d=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}
1toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},m=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},g=class{constructor(e,t,n,r,a,i){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=i}},f=((n=f||{})[n.NotSet=-1]="NotSet",n[n.None=0]="None",n[n.Italic=1]="Italic",n[n.Bold=2]="Bold",n[n.Underline=4]="Underline",n[n.Strikethrough=8]="Strikethrough",n),y=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},b=Object.freeze([]),S=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,a){this.scopeDepth=e,this.parentScopes=t||b,this.fontStyle=n,this.foreground=r,this.background=a}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},A=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[r]&&r++,!(n>=e.parentScopes.length)&&!(r>=t.parentScopes.length);){let a=t.parentScopes[r].length-e.parentScopes[n].length;if(0!==a)return a;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,a,i,o){let s,l,u;if(""===n)return void this._doInsertHere(t,r,a,i,o);let c=n.indexOf(".");-1===c?(s=n,l=""):(s=n.substring(0,c),l=n.substring(c+1)),this._children.hasOwnProperty(s)?u=this._children[s]:(u=new e(this._mainRule.clone(),S.cloneArr(this._rulesWithParentScopes)),this._children[s]=u),u.insert(t+1,l,r,a,i,o)}_doInsertHere(e,t,n,r,a){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,a);for(let i=0,o=this._rulesWithParentScopes.length;i<o;i++){let o=this._rulesWithParentScopes[i];if(0===l(o.parentScopes,t))return void o.acceptOverwrite(e,n,r,a)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===a&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new S(e,t,n,r,a))}},_=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),a=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,a,i,o,s){let l=e.getLanguageId(t),u=e.getTokenType(t),c=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),p=e.getForeground(t),d=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(u=r),null!==a&&(c=+!!a),-1!==i&&(h=i),0!==o&&(p=o),0!==s&&(d=s),(l|u<<8|c<<10|h<<11|p<<15|d<<24)>>>0}};function k(e,t){var n;let r,a,i=[],o=(n=e,a=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!a)return null;let e=a[0];return a=r.exec(n),e}}),s=o.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=o.next()}let t=u();if(i.push({matcher:t,priority:e}),","!==s)break;s=o.next()}return i;function l(){if("-"===s){s=o.next();let e=l();return t=>!!e&&!e(t)}if("("===s){s=o.next();let e=function(){let e=[],t=u();for(;t&&(e.push(t),"|"===s||","===s);){do s=o.next();while("|"===s||","===s)t=u()}return t=>e.some(e=>e(t))}();return")"===s&&(s=o.next()),e}if(v(s)){let e=[];do e.push(s),s=o.next();while(v(s))return n=>t(e,n)}return null}function u(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function v(e){return!!e&&!!e.match(/[\w\.:]+/)}var w=((r=w||{})[r.None=0]="None",r[r.NotBeginString=1]="NotBeginString",r[r.NotEndString=2]="NotEndString",r[r.NotBeginPosition=4]="NotBeginPosition",r[r.DebugCall=8]="DebugCall",r);function C(e){"function"==typeof e.dispose&&e.dispose()}var N=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},x=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},P=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},T=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new N(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new P;for(let n of e)!function(e,t,n,r){let a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let i=n.lookup(t);e instanceof N?E({baseGrammar:i,selfGrammar:a},r):L(e.ruleName,{baseGrammar:i,selfGrammar:a,repository:a.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new N(e))}(n,this.initialScopeName,this.repo,t);
1for(let e of t.references)if(e instanceof N){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function L(e,t,n){t.repository&&t.repository[e]&&R([t.repository[e]],t,n)}function E(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&R(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&R(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function R(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?i({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&R(r.patterns,{...t,repository:e},n);let a=r.include;if(!a)continue;let o=G(a);switch(o.kind){case 0:E({...t,selfGrammar:t.baseGrammar},n);break;case 1:E(t,n);break;case 2:L(o.ruleName,{...t,repository:e},n);break;case 3:case 4:let s=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let r={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===o.kind?L(o.ruleName,r,n):E(r,n)}else 4===o.kind?n.add(new x(o.scopeName,o.ruleName)):n.add(new N(o.scopeName))}}}var O=class{kind=0},I=class{kind=1},M=class{constructor(e){this.ruleName=e}kind=2},D=class{constructor(e){this.scopeName=e}kind=3},B=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
1function G(e){if("$base"===e)return new O;if("$self"===e)return new I;let t=e.indexOf("#");return -1===t?new D(e):0===t?new M(e.substring(1)):new B(e.substring(0,t),e.substring(t+1))}var j=/\\(\d+)/,U=/\\(\d+)/g;Symbol("RuleId");var $=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=s.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=s.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?s.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?s.replaceCaptures(this._contentName,e,t):this._contentName}},F=class extends ${retokenizeCapturedWithRuleId;constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,r){throw Error("Not supported!")}},H=class extends ${_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,null),this._match=new K(r,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new X,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},W=class extends ${hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,r),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new X,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},q=class extends ${_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a,i,o,s,l,u){super(e,t,n,r),this._begin=new K(a,this.id),this.beginCaptures=i,this._end=new K(o||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new X,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},z=class extends ${_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,a,i,o,s,l){super(e,t,n,r),this._begin=new K(a,this.id),this.beginCaptures=i,this.whileCaptures=s,this._while=ne
1w K(o,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new X,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new X,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
1},V=class e{static createCaptureRule(e,t,n,r,a){return e.registerRule(e=>new F(t,e,n,r,a))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new H(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=i({},r,t.repository));let a=t.patterns;return void 0===a&&t.include&&(a=[{include:t.include}]),new W(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(a,n,r))}return t.while?new z(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new q(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let i=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>i&&(i=t)}for(let e=0;e<=i;e++)a[e]=null;for(let i in t){if("$vscodeTextmateLocation"===i)continue;let o=parseInt(i,10),s=0;t[i].patterns&&(s=e.getCompiledRuleId(t[i],n,r)),a[o]=e.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,s)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let i=0,o=t.length;i<o;i++){let o=t[i],s=-1;if(o.include){let t=G(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let a=r[t.ruleName];a&&(s=e.getCompiledRuleId(a,n,r));break;case 3:case 4:let i=t.scopeName,l=4===t.kind?t.ruleName:null,u=n.getExternalGrammar(i,r);if(u)if(l){let t=u.repository[l];t&&(s=e.getCompiledRuleId(t,n,u.repository))}else s=e.getCompiledRuleId(u.repository.$self,n,u.repository)}}else s=e.getCompiledRuleId(o,n,r);if(-1!==s){let e=n.getRule(s),t=!1;if((e instanceof W||e instanceof q||e instanceof z)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;a.push(s)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},K=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let n=0,r=[],a=!1;for(let i=0;i<t;i++)if("\\"===e.charAt(i)&&i+1<t){const t=e.charAt(i+1);"z"===t?(r.push(e.substring(n,i)),r.push("$(?!\\n)(?<!\\n)"),n=i+2):("A"===t||"G"===t)&&(a=!0),i++}this.hasAnchor=a,0===n?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=j.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return U.lastIndex=0,this.source.replace(U,(e,t)=>c(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let a=[],i=[],o=[],s=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),a[e]=n,i[e]=n,o[e]=n,s[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(a[e+1]="ï¿¿",i[e+1]="ï¿¿",o[e+1]="A",s[e+1]="A"):"G"===r?(a[e+1]="ï¿¿",i[e+1]="G",o[e+1]="ï¿¿",s[e+1]="G"):(a[e+1]=r,i[e+1]=r,o[e+1]=r,s[e+1]=r),e++);return{A0_G0:a.join(""),A0_G1:i.join(""),A1_G0:o.join(""),A1_G1:s.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},X=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}
1push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new J(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,n){return new J(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},J=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Q=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Y=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Q(e,8),this._embeddedLanguagesMatcher=new Z(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Q(0,0);_getBasicScopeAttributes=new h(e=>new Q(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Z=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>c(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==a.default&&a.default.env.VSCODE_TEXTMATE_DEBUG;var ee=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function et(e,t,n,r,a,i,o,s){let l=t.content.length,u=!1,c=-1;if(o){let o=function(e,t,n,r,a,i){let o=a.beginRuleCapturedEOL?0:-1,s=[];for(let t=a;t;t=t.pop()){let n=t.getRule(e);n instanceof z&&s.push({rule:n,stack:t})}for(let d=s.pop();d;d=s.pop()){var l,u,c,h,p;let{ruleScanner:s,findOptions:m}=(l=d.rule,u=e,c=d.stack.endRule,h=n,p=r===o,{ruleScanner:l.compileWhileAG(u,c,h,p),findOptions:0}),g=s.findNextMatchSync(t,r,m);if(g){if(-2!==g.ruleId){a=d.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(i.produce(d.stack,g.captureIndices[0].start),er(e,t,n,d.stack,i,d.rule.whileCaptures,g.captureIndices),i.produce(d.stack,g.captureIndices[0].end),o=g.captureIndices[0].end,g.captureIndices[0].end>r&&(r=g.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:o,isFirstLine:n}}(e,t,n,r,a,i);a=o.stack,r=o.linePos,n=o.isFirstLine,c=o.anchorPosition}let h=Date.now();for(;!u;){if(0!==s&&Date.now()-h>s)return new ee(a,!0);!function(){let o=function(e,t,n,r,a,i){let o=function(e,t,n,r,a,i){let{ruleScanner:o,findOptions:s}=en(a.getRule(e),e,a.endRule,n,r===i),l=o.findNextMatchSync(t,r,s);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,a,i),s=e.getInjections();if(0===s.length)return o;let l=function(e,t,n,r,a,i,o){let s,l=Number.MAX_VALUE,u=null,c=0,h=i.contentNameScopesList.getScopeNames();for(let i=0,p=e.length;i<p;i++){let p=e[i];if(!p.matcher(h))continue;let{ruleScanner:d,findOptions:m}=en(t.getRule(p.ruleId),t,null,r,a===o),g=d.findNextMatchSync(n,a,m);
1if(!g)continue;let f=g.captureIndices[0].start;if(!(f>=l)&&(l=f,u=g.captureIndices,s=g.ruleId,c=p.priority,l===a))break}return u?{priorityMatch:-1===c,captureIndices:u,matchedRuleId:s}:null}(s,e,t,n,r,a,i);if(!l)return o;if(!o)return l;let u=o.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:o}(e,t,n,r,a,c);if(!o){i.produce(a,l),u=!0;return}let s=o.captureIndices,h=o.matchedRuleId,p=!!s&&s.length>0&&s[0].end>r;if(-1===h){let o=a.getRule(e);i.produce(a,s[0].start),a=a.withContentNameScopesList(a.nameScopesList),er(e,t,n,a,i,o.endCaptures,s),i.produce(a,s[0].end);let h=a;if(a=a.parent,c=h.getAnchorPos(),!p&&h.getEnterPos()===r){a=h,i.produce(a,l),u=!0;return}}else{let o=e.getRule(h);i.produce(a,s[0].start);let d=a,m=o.getName(t.content,s),g=a.contentNameScopesList.pushAttributed(m,e);if(a=a.push(h,r,c,s[0].end===l,null,g,g),o instanceof q){er(e,t,n,a,i,o.beginCaptures,s),i.produce(a,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),h=g.pushAttributed(r,e);if(a=a.withContentNameScopesList(h),o.endHasBackReferences&&(a=a.withEndRule(o.getEndWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(a)){a=a.pop(),i.produce(a,l),u=!0;return}}else if(o instanceof z){er(e,t,n,a,i,o.beginCaptures,s),i.produce(a,s[0].end),c=s[0].end;let r=o.getContentName(t.content,s),h=g.pushAttributed(r,e);if(a=a.withContentNameScopesList(h),o.whileHasBackReferences&&(a=a.withEndRule(o.getWhileWithResolvedBackReferences(t.content,s))),!p&&d.hasSameRuleAs(a)){a=a.pop(),i.produce(a,l),u=!0;return}}else if(er(e,t,n,a,i,o.captures,s),i.produce(a,s[0].end),a=a.pop(),!p){a=a.safePop(),i.produce(a,l),u=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}()}return new ee(a,!1)}function en(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function er(e,t,n,r,a,i,o){if(0===i.length)return;let s=t.content,l=Math.min(i.length,o.length),u=[],c=o[0].end;for(let t=0;t<l;t++){let l=i[t];if(null===l)continue;let h=o[t];if(0===h.length)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)a.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?a.produceFromScopes(u[u.length-1].scopes,h.start):a.produce(r,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(s,o),i=r.contentNameScopesList.pushAttributed(t,e),u=l.getContentName(s,o),c=i.pushAttributed(u,e),p=r.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,i,c),d=e.createOnigString(s.substring(0,h.end));et(e,d,n&&0===h.start,h.start,p,a,!1,0),C(d);continue}let p=l.getName(s,o);if(null!==p){let t=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new ea(t,h.end))}}for(;u.length>0;)a.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var ea=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function ei(e,t,n,r,a){let i=k(t,eo),o=V.getCompiledRuleId(n,r,a.repository);for(let n of i)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:a,priority:n.priority})}function eo(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[r],e))return n=r+1,!0;return!1})}var es=class{constructor(e,t,n,r,a,i,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=s,this._basicScopeAttributesProvider=new Y(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=el(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const e of Object.keys(a))for(const t of k(e,eo))this._tokenTypeMatchers.push({matcher:t.matcher,type:a[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);
1if(n){let r=n.injections;if(r)for(let t in r)ei(e,t,r[t],this,n);let a=this._grammarRepository.injections(t);a&&a.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&ei(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=el(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){let a;if(-1===this._rootId&&(this._rootId=V.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==ec.NULL)a=!1,t.reset();else{let e;a=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),i=_.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),o=this.getRule(this._rootId).getName(null,null);e=o?eu.createRootAndLookUpScopeName(o,i,this):eu.createRoot("unknown",i),t=new ec(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let i=this.createOnigString(e),o=i.content.length,s=new ep(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=et(this,i,a,0,t,s,!0,r);return C(i),{lineLength:o,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function el(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var eu=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(let t of n)r=new e(r,a=d.push(a,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new d(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let a=r.getMetadataForScope(t),i=new d(null,t),o=r.themeProvider.themeMatch(i),s=e.mergeAttributes(n,a,o);return new e(null,i,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let r=-1,a=0,i=0;return null!==n&&(r=n.fontStyle,a=n.foregroundId,i=n.backgroundId),_.set(e,t.languageId,t.tokenType,null,r,a,i)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let r=t.split(/ /g),a=this;for(let t of r)a=e._pushAttributed(a,t,n);return a}static _pushAttributed(t,n,r){let a=r.getMetadataForScope(n),i=t.scopePath.push(n),o=r.themeProvider.themeMatch(i),s=e.mergeAttributes(t.tokenAttributes,a,o);return new e(t,i,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},ec=class e{constructor(e,t,n,r,a,i,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=a,this.endRule=i,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eu.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;
1if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,i,o,s){return new e(this,t,n,r,a,i,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=eu.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,eu.fromExtension(r,n.contentNameScopesList))}},eh=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):k(e,eo).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>k(e,eo).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},ep=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>
10||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=_.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=_.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},ed=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,a){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,new es(e,i,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},em=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ed(p.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(p.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new eh(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,a){let i=new T(this._syncRegistry,e);for(;i.Q.length>0;)i.Q.map(e=>this._loadSingleGrammar(e.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,n,r,a)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,a)}},eg=ec.NULL;e.s(["EncodedTokenMetadata",()=>_,"FontStyle",()=>f,"INITIAL",()=>eg,"Registry",()=>em,"Theme",()=>p],991966),e.s(["htmlVoidElements",0,["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]],241631)},369587,800681,817139,393982,e=>{"use strict";let t,n={}.hasOwnProperty;function r(e,t){let r=t||{};function a(t,...r){let i=a.invalid,o=a.handlers;if(t&&n.call(t,e)){let r=String(t[e]);i=n.call(o,r)?o[r]:a.unknown}if(i)return i.call(this,t,...r)}return a.handlers=r.handlers||{}
1,a.invalid=r.invalid,a.unknown=r.unknown,a}e.s(["zwitch",()=>r],369587);let a=/["&'<>`]/g,i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,s=/[|\\{}()[\]^$+*?.]/g,l=new WeakMap,u=/[\dA-Fa-f]/,c=/\d/,h=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],p={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"Â",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"Ã",Aacute:"Ã",Acirc:"Ã",Atilde:"Ã",Auml:"Ã",Aring:"Ã
",AElig:"Ã",Ccedil:"Ã",Egrave:"Ã",Eacute:"Ã",Ecirc:"Ã",Euml:"Ã",Igrave:"Ã",Iacute:"Ã",Icirc:"Ã",Iuml:"Ã",ETH:"Ã",Ntilde:"Ã",Ograve:"Ã",Oacute:"Ã",Ocirc:"Ã",Otilde:"Ã",Ouml:"Ã",times:"Ã",Oslash:"Ã",Ugrave:"Ã",Uacute:"Ã",Ucirc:"Ã",Uuml:"Ã",Yacute:"Ã",THORN:"Ã",szlig:"Ã",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"Æ",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",bull:"â¢",hellip:"â¦",prime:"â²",Prime:"â³",oline:"â¾",frasl:"â",weierp:"â",image:"â",real:"â",trade:"â¢",alefsym:"âµ",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lArr:"â",uArr:"â",rArr:"â",dArr:"â",hArr:"â",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub
1:"â",sube:"â",supe:"â",oplus:"â",otimes:"â",perp:"â¥",sdot:"â
",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",lang:"â©",rang:"âª",loz:"â",spades:"â ",clubs:"â£",hearts:"â¥",diams:"â¦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Å",oelig:"Å",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",circ:"Ë",tilde:"Ë",ensp:"â",emsp:"â",thinsp:"â",zwnj:"â",zwj:"â",lrm:"â",rlm:"â",ndash:"â",mdash:"â",lsquo:"â",rsquo:"â",sbquo:"â",ldquo:"â",rdquo:"â",bdquo:"â",dagger:"â ",Dagger:"â¡",permil:"â°",lsaquo:"â¹",rsaquo:"âº",euro:"â¬"},d=["cent","copy","divide","gt","lt","not","para","times"],m={}.hasOwnProperty,g={};for(t in p)m.call(p,t)&&(g[p[t]]=t);let f=/[^\dA-Za-z]/;function y(e,t,n){var r,a;let i,o,s=(r=n.omitOptionalSemicolons,i="&#x"+e.toString(16).toUpperCase(),r&&t&&!u.test(String.fromCharCode(t))?i:i+";");if((n.useNamedReferences||n.useShortestReferences)&&(o=function(e,t,n,r){let a=String.fromCharCode(e);if(m.call(g,a)){let e=g[a],i="&"+e;return n&&h.includes(e)&&!d.includes(e)&&(!r||t&&61!==t&&f.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!o)&&n.useShortestReferences){let r,i=(a=n.omitOptionalSemicolons,r="&#"+String(e),a&&t&&!c.test(String.fromCharCode(t))?r:r+";");i.length<s.length&&(s=i)}return o&&(!n.useShortestReferences||o.length<s.length)?o:s}function b(e,t){let n;var r,u=e,c=Object.assign({format:y},t);if(u=u.replace(c.subset?(r=c.subset,(n=l.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(s,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),l.set(r,n)),n):a,h),c.subset||c.escapeOnly)return u;return u.replace(i,function(e,t,n){return c.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),c)}).replace(o,h);function h(e,t,n){return c.format(e.charCodeAt(0),n.charCodeAt(t+1),c)}}e.s(["stringifyEntities",()=>b],800681);let S=/^>|^->|<!--|-->|--!>|<!-$/g,A=[">"],_=["<",">"];function k(e,t,n,r){return r.settings.bogusComments?"<?"+b(e.value,Object.assign({},r.settings.characterReferences,{subset:A}))+">":"<!--"+e.value.replace(S,function(e){return b(e,Object.assign({},r.settings.characterReferences,{subset:_}))})+"-->"}function v(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}e.s(["comment",()=>k],817139),e.s(["doctype",()=>v],393982)},456002,e=>{"use strict";let t,n,r,a;var i,o=e.i(843476),s=e.i(647163),l=e.i(363178),u=e.i(271645),c=e.i(945546),h=e.i(991966),p=e.i(241631),d=e.i(157871),m=e.i(369587),g=e.i(817139),f=e.i(393982),y=e.i(496481),b=e.i(76696),S=e.i(640553),A=e.i(359091),_=e.i(800681),k=e.i(124963);let v=N(1),w=N(-1),C=[];function N(e){return function(t,n,r){let a=t?t.children:C,i=(n||0)+e,o=a[i];if(!r)for(;o&&(0,k.whitespace)(o);)i+=e,o=a[i];return o}}let x={}.hasOwnProperty;function P(e){return function(t,n,r){return x.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let T=P({body:function(e,t,n){let r=v(n,t);return!r||"comment"!==r.type},caption:L,colgroup:L,dd:function(e,t,n){let r=v(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=v(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:L,html:function(e,t,n){let r=v(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=v(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=v(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=v(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=v(n,t);return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:E,rt:E,tbody:function(e,t,n){let r=v(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:R,tfoot:function(e,t,n){return!v(n,t)},th:R,thead:function(e,t,n){let r=v(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=v(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function L(e,t,n){let r=v(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,k.whitespace)(r.value.charAt(0)))}function E(e,t,n){let r=v(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function R(e,t,n){let r=v(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let O=P({body:function(e){let t=v(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,k.whitespace)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=w(n,t),a=v(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&T(r,n.children.indexOf(r),n))&&!!(a&&"element"===a.type&&"col"===a.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=v(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=w(n,t),a=v(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&T(r,n.children.indexOf(r),n))&&!!(a&&"element"===a.type&&"tr"===a.tagName)}}),I={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>
1`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},M=["<","&"];function D(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:(0,_.stringifyEntities)(e.value,Object.assign({},r.settings.characterReferences,{subset:M}))}let B=(0,m.zwitch)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:g.comment,doctype:f.doctype,element:function(e,t,n,r){let a,i=r.schema,o="svg"!==i.space&&r.settings.omitOptionalTags,s="svg"===i.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===i.space&&"svg"===e.tagName&&(r.schema=d.svg);let u=function(e,t){let n,r=[],a=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let a=function(e,t,n){let r,a=(0,S.find)(e.schema,t),i=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=+!e.settings.allowDangerousCharacters,s=e.quote;if(a.overloadedBoolean&&(n===a.attribute||""===n)?n=!0:(a.boolean||a.overloadedBoolean)&&("string"!=typeof n||n===a.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=(0,_.stringifyEntities)(a.attribute,Object.assign({},e.settings.characterReferences,{subset:I.name[i][o]}));return!0===n||(n=Array.isArray(n)?(a.commaSeparated?b.stringify:A.stringify)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=(0,_.stringifyEntities)(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:I.unquoted[i][o]}))),r!==n&&(e.settings.quoteSmart&&(0,y.ccount)(n,s)>(0,y.ccount)(n,e.alternative)&&(s=e.alternative),r=s+(0,_.stringifyEntities)(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?I.single:I.double)[i][o],attribute:!0}))+s),l+(r?"="+r:r))}(e,n,t[n]);a&&r.push(a)}}for(;++a<r.length;){let t=e.settings.tightAttributes?r[a].charAt(r[a].length-1):void 0;a!==r.length-1&&'"'!==t&&"'"!==t&&(r[a]+=" ")}return r.join("")}(r,e.properties),c=r.all("html"===i.space&&"template"===e.tagName?e.content:e);return r.schema=i,c&&(s=!1),!u&&o&&O(e,t,n)||(l.push("<",e.tagName,u?" "+u:""),s&&("svg"===i.space||r.settings.closeSelfClosing)&&(a=u.charAt(u.length-1),(!r.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),s||o&&T(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:D(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:D}}),G={},j={},U=[];function $(e,t,n){return B(e,t,n,this)}function F(e){let t=[],n=e&&e.children||U,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function H(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,a]of Object.entries(t?.colorReplacements||{}))"string"==typeof a?n[e]=a:e===r&&Object.assign(n,a);return n}function W(e,t){return e&&t?.[e?.toLowerCase()]||e}async function q(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function z(e){return!e||["plaintext","txt","text","plain"].includes(e)}function V(e){return"ansi"===e||z(e)}function K(e){return"none"===e}function X(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function J(e,t=!1){let n=e.split(/(\r?\n)/g),r=0,a=[];for(let e=0;e<n.length;e+=2){let i=t?n[e]+(n[e+1]||""):n[e];a.push([i,r]),r+=n[e].length,r+=n[e+1]?.length||0}return a}let Q="light-dark()";function Y(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&h.FontStyle.Italic&&(t["font-style"]="italic"),e.fontStyle&h.FontStyle.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&h.FontStyle.Underline&&n.push("underline"),e.fontStyle&h.FontStyle.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Z(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let ee=new WeakMap;function et(e,t){ee.set(e,t)}function en(e){return ee.get(e)}class er{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new er(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,h.INITIAL])),e)}constructor(...e){if(2===e.length){const[t,n]=e;this.lang=n,this._stacks=t}else{const[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let n,r;return t=this._stacks[e],n=[],r=new Set,!function e(t){if(r.has(t))return;r.add(t);let a=t?.nameScopesList?.scopeName;a&&n.push(a),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let ea=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var n;let r,a=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new c.ShikiError(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...i.indexToPos(e),offset:e}}{let t=i.lines[e.line];if(void 0===t)throw new c.ShikiError(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);if(e.character<0||e.character>t.length)throw new c.ShikiError(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,offset:i.posToIndex(e.line,e.character)}}},i={lines:r=J(n=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===n.length)return{line:r.length-1,character:r[r.length-1].length};let t=e,a=0;for(let e of r){if(t<e.length)break;t-=e.length,a++}return{line:a,character:t}},posToIndex:function(e,t){let n=0;for(let t=0;t<e;t++)n+=r[t].length;return n+t}},o=(t.options.decorations||[]).map(e=>({...e,start:a(e.start),end:a(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new c.ShikiError(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],a=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,i=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;
1if(a||i||o||s){if(a&&i||o&&s)continue;throw new c.ShikiError(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(o),e.set(t.meta,{decorations:o,converter:i,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){let n;if(!this.options.decorations?.length)return;let r=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);return(n=Array.from(r instanceof Set?r:new Set(r)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let r=0,a=[];for(let n of t)n>r&&a.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&a.push({...e,content:e.content.slice(r),offset:e.offset+r}),a})):e},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new c.ShikiError(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function a(e,t,n,a){let o=r[e],s="",l=-1,u=-1;if(0===t&&(l=0),0===n&&(u=0),n===1/0&&(u=o.children.length),-1===l||-1===u)for(let e=0;e<o.children.length;e++)s+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===l&&s.length===t&&(l=e+1),-1===u&&s.length===n&&(u=e+1);if(-1===l)throw new c.ShikiError(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);if(-1===u)throw new c.ShikiError(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);let h=o.children.slice(l,u);if(a.alwaysWrap||h.length!==o.children.length)if(a.alwaysWrap||1!==h.length||"element"!==h[0].type){let e={type:"element",tagName:"span",properties:{},children:h};i(e,a,"wrapper"),o.children.splice(l,h.length,e)}else i(h[0],a,"token");else i(o,a,"line")}function i(e,t,n){let r=t.properties||{},a=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&X(e,t.properties.class),e=a(e,n)||e}let o=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)a(t.line,t.character,n.character,e);else if(t.line<n.line){a(t.line,t.character,1/0,e);for(let a=t.line+1;a<n.line;a++)o.unshift(()=>{var t;r[t=a]=i(r[t],e,"line")});a(n.line,0,n.character,e)}}o.forEach(e=>e())}}}()];function ei(e){return[...e.transformers||[],...ea]}var eo=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],es={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function el(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var eu={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function ec(e,t,n={}){var r,a,i,o,s;let l,u,{lang:p="text",theme:d=e.getLoadedThemes()[0]}=n;if(z(p)||K(d))return J(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:m,colorMap:g}=e.setTheme(d);if("ansi"===p){let e,r,a,i,o,s,l;return e=H(m,n),r=J(t),a=function(e=eu){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var a;return a=r.index,function(){if(t)return t;t=[];for(let n=0;n<eo.length;n++)t.push(e[eo[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let a=0;a<6;a++)for(let i=0;i<6;i++)t.push(n([r[e],r[a],r[i]]));let a=8;for(let e=0;e<24;e++,a+=10)t.push(n([a,a,a]));return t}()[a]}}}}(Object.fromEntries(eo.map(e=>[e,m.colors?.[`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`]]))),i=null,o=null,s=new Set,l={parse(e){let t=[],n=0;do{let r=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),a=r.sequence?e.substring(n,r.startPosition):e.substring(n);if(a.length>0&&t.push({value:a,foreground:i,background:o,decorations:new Set(s)}),r.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)es[r]&&t.push({type:"setDecoration",value:es[r]}
1);else if(r<=29){let e=es[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:eo[r-30]}});else if(38===r){let n=el(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:eo[r-40]}});else if(48===r){let n=el(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:eo[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:eo[r-100+8]}})}return t}(r.sequence);for(let t of e)"resetAll"===t.type?(i=null,o=null,s.clear()):"resetForegroundColor"===t.type?i=null:"resetBackgroundColor"===t.type?o=null:"resetDecoration"===t.type&&s.delete(t.value);for(let t of e)"setForegroundColor"===t.type?i=t.value:"setBackgroundColor"===t.type?o=t.value:"setDecoration"===t.type&&s.add(t.value)}n=r.position}while(n<e.length)return t}},r.map(t=>l.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?a.value(n.background):m.bg,i=n.foreground?a.value(n.foreground):m.fg):(r=n.foreground?a.value(n.foreground):m.fg,i=n.background?a.value(n.background):void 0),r=W(r,e),i=W(i,e),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){let e=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${e}`}else if(t[2])return`#${t[1]}${t[2]}80`;else return`#${Array.from(t[1]).map(e=>`${e}${e}`).join("")}80`;let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let o=h.FontStyle.None;return n.decorations.has("bold")&&(o|=h.FontStyle.Bold),n.decorations.has("italic")&&(o|=h.FontStyle.Italic),n.decorations.has("underline")&&(o|=h.FontStyle.Underline),n.decorations.has("strikethrough")&&(o|=h.FontStyle.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:o}}))}let f=e.getLanguage(p);if(n.grammarState){if(n.grammarState.lang!==f.name)throw new c.ShikiError(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${f.name}"`);if(!n.grammarState.themes.includes(m.name))throw new c.ShikiError(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${m.name}"`)}return l=eh(r=t,a=f,i=m,o=g,s=n),u=new er(eh(r,a,i,o,s).stateStack,a.name,i.name),et(l.tokens,u),l.tokens}function eh(e,t,n,r,a){let i=H(n,a),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=a,l=J(e),u=a.grammarState?function(e,t){if(!(e instanceof er))throw new c.ShikiError("Invalid grammar state");return e.getInternalStack(t)}(a.grammarState,n.name)??h.INITIAL:null!=a.grammarContextCode?eh(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:h.INITIAL,p=[],d=[];for(let e=0,c=l.length;e<c;e++){let c,m,[g,f]=l[e];if(""===g){p=[],d.push([]);continue}if(o>0&&g.length>=o){p=[],d.push([{content:g,offset:f,color:"",fontStyle:0}]);continue}a.includeExplanation&&(c=t.tokenizeLine(g,u,s).tokens,m=0);let y=t.tokenizeLine2(g,u,s),b=y.tokens.length/2;for(let e=0;e<b;e++){let t=y.tokens[2*e],o=e+1<b?y.tokens[2*e+2]:g.length;if(t===o)continue;let s=y.tokens[2*e+1],l=W(r[h.EncodedTokenMetadata.getForeground(s)],i),u=h.EncodedTokenMetadata.getFontStyle(s),d={content:g.substring(t,o),offset:f+t,color:l,fontStyle:u};if(a.includeExplanation){let e=[];
1if("scopeName"!==a.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=c[m],n=g.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:"scopeName"===a.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,a=t.length;r<a;r++){let a=t[r];n[r]={scopeName:a,themeMatches:function(e,t,n){let r=[];for(let{selectors:a,settings:i}of e)for(let e of a)if(function(e,t,n){if(!ep(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)ep(e[r],n[a])&&(r-=1),a-=1;return -1===r}(e,t,n)){r.push(i);break}return r}(e,a,t.slice(0,r))}}return n}(e,t.scopes)}),m+=1}}p.push(d)}d.push(p),p=[],u=y.ruleStack}return{tokens:d,stateStack:u}}function ep(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function ed(e,t,n){let r=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=r.map(r=>{let a=ec(e,t,{...n,theme:r.theme}),i=en(a);return{tokens:a,state:i,theme:"string"==typeof r.theme?r.theme:r.theme.name}}),i=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let a=e.map(e=>e[r]),i=t.map(()=>[]);t.forEach((e,t)=>e.push(i[t]));let o=a.map(()=>0),s=a.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(i[t].push(n),o[t]+=1,s[t]=a[t][o[t]]):(i[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...a.map(e=>e.tokens)),o=i[0].map((e,t)=>e.map((e,a)=>{let o={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(o.explanation=e.explanation),i.forEach((e,n)=>{let{content:i,explanation:s,offset:l,...u}=e[t][a];o.variants[r[n].color]=u}),o})),s=a[0].state?new er(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return s&&et(o,s),o}function em(e,t,n){let r,a,i,o,s,l;if("themes"in n){let{defaultColor:u="light",cssVariablePrefix:h="--shiki-",colorsRendering:p="css-vars"}=n,d=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===u?-1:+(t.color===u));if(0===d.length)throw new c.ShikiError("`themes` option must not be empty");let m=ed(e,t,n);if(l=en(m),u&&Q!==u&&!d.find(e=>e.color===u))throw new c.ShikiError(`\`themes\` option must contain the defaultColor key \`${u}\``);let g=d.map(t=>e.getTheme(t.theme)),f=d.map(e=>e.color);i=m.map(e=>e.map(e=>(function(e,t,n,r,a="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>Y(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),l={},u=(e,r)=>{let a="color"===r?"":"background-color"===r?"-bg":`-${r}`;
1return n+t[e]+("color"===r?"":a)};return o.forEach((e,n)=>{for(let i of s){let s=e[i]||"inherit";if(0===n&&r)if(r===Q&&o.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new c.ShikiError('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let h=o[e][i]||"inherit",p=o[r][i]||"inherit";l[i]=`light-dark(${h}, ${p})`,"css-vars"===a&&(l[u(n,i)]=s)}else l[i]=s;else"css-vars"===a&&(l[u(n,i)]=s)}}),i.htmlStyle=l,i})(e,f,h,u,p))),l&&et(i,l);let y=d.map(e=>H(e.theme,n));a=eg(d,g,y,h,u,"fg",p),r=eg(d,g,y,h,u,"bg",p),o=`shiki-themes ${g.map(e=>e.name).join(" ")}`,s=u?void 0:[a,r].join(";")}else if("theme"in n){let s=H(n.theme,n);i=ec(e,t,n);let u=e.getTheme(n.theme);r=W(u.bg,s),a=W(u.fg,s),o=u.name,l=en(i)}else throw new c.ShikiError("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:a,bg:r,themeName:o,rootStyle:s,grammarState:l}}function eg(e,t,n,r,a,i,o){return e.map((s,l)=>{let u=W(t[l][i],n[l])||"inherit",h=`${r+s.color}${"bg"===i?"-bg":""}:${u}`;if(0===l&&a){if(a===Q&&e.length>1){let r=e.findIndex(e=>"light"===e.color),a=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===a)throw new c.ShikiError('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let o=W(t[r][i],n[r])||"inherit",s=W(t[a][i],n[a])||"inherit";return`light-dark(${o}, ${s});${h}`}return u}return"css-vars"===o?h:null}).filter(e=>!!e).join(";")}function ef(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>ef(e,t,n),codeToTokens:(t,n)=>em(e,t,n)}){let a=t;for(let e of ei(n))a=e.preprocess?.call(r,a,n)||a;let{tokens:i,fg:o,bg:s,themeName:l,rootStyle:u,grammarState:c}=em(e,a,n),{mergeWhitespaces:p=!0,mergeSameStyleTokens:d=!1}=n;!0===p?i=i.map(e=>{let t=[],n="",r=0;return e.forEach((a,i)=>{let o=!(a.fontStyle&&(a.fontStyle&h.FontStyle.Underline||a.fontStyle&h.FontStyle.Strikethrough));o&&a.content.match(/^\s+$/)&&e[i+1]?(r||(r=a.offset),n+=a.content):n?(o?t.push({...a,offset:r,content:n+a.content}):t.push({content:n,offset:r},a),r=0,n=""):t.push(a)}),t}):"never"===p&&(i=i.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,a]=t;if(!n&&!a)return e;let i=[{...e,offset:e.offset+n.length,content:r}];return n&&i.unshift({content:n,offset:e.offset}),a&&i.push({content:a,offset:e.offset+n.length+r.length}),i}))),d&&(i=i.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=Z(e.htmlStyle||Y(e)),a=Z(n.htmlStyle||Y(n)),i=e.fontStyle&&(e.fontStyle&h.FontStyle.Underline||e.fontStyle&h.FontStyle.Strikethrough),o=n.fontStyle&&(n.fontStyle&h.FontStyle.Underline||n.fontStyle&h.FontStyle.Strikethrough);i||o||r!==a?t.push({...n}):e.content+=n.content}return t}));let m={...r,get source(){return a}};for(let e of ei(n))i=e.tokens?.call(m,i)||i;return function(e,t,n,r=en(e)){let a=ei(t),i=[],o={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...!1!==l&&null!=l?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([e])=>!e.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:i},h=[],p={...n,structure:s,addClassToHast:X,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return c},get lines(){return h}};if(e.forEach((e,t)=>{t&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&i.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let i of e){let e={type:"element",tagName:"span",properties:{...i.htmlAttrs},children:[{type:"text",value:i.content}]},l=Z(i.htmlStyle||Y(i));for(let o of(l&&(e.properties.style=l),a))e=o?.span?.call(p,e,t+1,r,n,i)||e;"inline"===s?o.children.push(e):"classic"===s&&n.children.push(e),r+=i.content.length}if("classic"===s){for(let e of a)n=e?.line?.call(p,n,t+1)||n;h.push(n),i.push(n)}}),"classic"===s){for(let e of a)c=e?.code?.call(p,c)||c;for(let e of(u.children.push(c),a))u=e?.pre?.call(p,u)||u;o.children.push(u)}let d=o;for(let e of a)d=e?.root?.call(p,d)||d;return r&&et(d,r),d}(i,{...n,fg:o,bg:s,themeName:l,rootStyle:u},m,c)}let ey=function(e,t){let n=t||G,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:$,all:F,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||p.htmlVoidElements,characterReferences:n.characterReferences||j,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?d.svg:d.html,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},eb="__shiki_resolved";function eS(e){if(e?.[eb])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?"#333333":"#bbbbbb"),n||(n="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0,i=new Map;function o(e){if(i.has(e))return i.get(e);a+=1;let n=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(i.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let a={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,a.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,a.settings.background=n}return a}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,eb,{enumerable:!1,writable:!1,value:!0}),t}async function eA(e){return Array.from(new Set((await Promise.all(e.filter(e=>!V(e)).map(async e=>await q(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function e_(e){return(await Promise.all(e.map(async e=>K(e)?null:eS(await q(e))))).filter(e=>!!e)}
1class ek extends Error{constructor(e){super(e),this.name="ShikiError"}}class ev extends h.Registry{constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=eS(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=h.Theme.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){if(this._alias[e]){let t=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],t.has(e))throw new ek(`Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t&&t.embeddedLangs?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new ek(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){if(this._langMap.set(e.name,e),this._langGraph.set(e.name,e),e.embeddedLangs)for(let t of e.embeddedLangs)this._langGraph.set(t,this._langMap.get(t))}}class ew{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}}let eC=0;async function eN(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([e_(e.themes||[]),eA(e.langs||[]),e.engine]);return function(e){let t;eC+=1,!1!==e.warnings&&eC>=10&&eC%10==0&&console.warn(`[Shiki] ${eC} instances have been created. Shiki is supposed to be used as a singleton, c
1onsider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new ek("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(eS),i=new ev(new ew(e.engine,r),a,r,e.langAlias);function o(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};u();let t=i.getTheme(e);if(!t)throw new ek(`Theme \`${e}\` not found, you may need to load it first`);return t}function s(...e){u(),i.loadLanguages(e.flat(1))}function l(...e){for(let t of(u(),e.flat(1)))i.loadTheme(t)}function u(){if(n)throw new ek("Shiki instance has been disposed")}function c(){n||(n=!0,i.dispose(),eC-=1)}return{setTheme:function(e){u();let n=o(e);return t!==e&&(i.setTheme(n),t=e),{theme:n,colorMap:i.getColorMap()}},getTheme:o,getLanguage:function(e){u();let t=i.getGrammar("string"==typeof e?e:e.name);if(!t)throw new ek(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return u(),i.getLoadedThemes()},getLoadedLanguages:function(){return u(),i.getLoadedLanguages()},loadLanguage:async function(...e){return s(await eA(e))},loadLanguageSync:s,loadTheme:async function(...e){return u(),l(await e_(e))},loadThemeSync:l,dispose:c,[Symbol.dispose]:c}}({...e,themes:t,langs:n,engine:r})}async function ex(e){let t=await eN(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return en(e[1]);let[t,n,r={}]=e,{lang:a="text",theme:i=t.getLoadedThemes()[0]}=r;if(z(a)||K(i))throw new c.ShikiError("Plain language does not have grammar state");if("ansi"===a)throw new c.ShikiError("ANSI language does not have grammar state");
1let{theme:o,colorMap:s}=t.setTheme(i),l=t.getLanguage(a);return new er(eh(n,l,o,s,r).stateStack,l.name,o.name)})(t,...e),codeToTokensBase:(e,n)=>ec(t,e,n),codeToTokensWithThemes:(e,n)=>ed(t,e,n),codeToTokens:(e,n)=>em(t,e,n),codeToHast:(e,n)=>ef(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>ef(e,t,n),codeToTokens:(t,n)=>em(e,t,n)},a=ey(ef(e,t,n,r));for(let e of ei(n))a=e.postprocess?.call(r,a,n)||a;return a})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let eP=[{id:"abap",name:"ABAP",import:()=>e.A(516690)},{id:"actionscript-3",name:"ActionScript",import:()=>e.A(274435)},{id:"ada",name:"Ada",import:()=>e.A(796339)},{id:"angular-html",name:"Angular HTML",import:()=>e.A(196546)},{id:"angular-ts",name:"Angular TypeScript",import:()=>e.A(60308)},{id:"apache",name:"Apache Conf",import:()=>e.A(608734)},{id:"apex",name:"Apex",import:()=>e.A(902952)},{id:"apl",name:"APL",import:()=>e.A(814026)},{id:"applescript",name:"AppleScript",import:()=>e.A(210042)},{id:"ara",name:"Ara",import:()=>e.A(327701)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e.A(864940)},{id:"asm",name:"Assembly",import:()=>e.A(581996)},{id:"astro",name:"Astro",import:()=>e.A(185223)},{id:"awk",name:"AWK",import:()=>e.A(577689)},{id:"ballerina",name:"Ballerina",import:()=>e.A(887861)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e.A(769047)},{id:"beancount",name:"Beancount",import:()=>e.A(566005)},{id:"berry",name:"Berry",aliases:["be"],import:()=>e.A(64129)},{id:"bibtex",name:"BibTeX",import:()=>e.A(686785)},{id:"bicep",name:"Bicep",import:()=>e.A(234475)},{id:"blade",name:"Blade",import:()=>e.A(184291)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e.A(254810)},{id:"c",name:"C",import:()=>e.A(715630)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e.A(928418)},{id:"cairo",name:"Cairo",import:()=>e.A(496018)},{id:"clarity",name:"Clarity",import:()=>e.A(268805)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e.A(885670)},{id:"cmake",name:"CMake",import:()=>e.A(850277)},{id:"cobol",name:"COBOL",import:()=>e.A(608435)},{id:"codeowners",name:"CODEOWNERS",import:()=>e.A(677655)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e.A(393919)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e.A(499510)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e.A(314583)},{id:"coq",name:"Coq",import:()=>e.A(138305)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e.A(162895)},{id:"crystal",name:"Crystal",import:()=>e.A(715822)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e.A(156548)},{id:"css",name:"CSS",import:()=>e.A(68853)},{id:"csv",name:"CSV",import:()=>e.A(508072)},{id:"cue",name:"CUE",import:()=>e.A(379420)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e.A(901081)},{id:"d",name:"D",import:()=>e.A(732086)},{id:"dart",name:"Dart",import:()=>e.A(8814)},{id:"dax",name:"DAX",import:()=>e.A(706010)},{id:"desktop",name:"Desktop",import:()=>e.A(611671)},{id:"diff",name:"Diff",import:()=>e.A(499264)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e.A(964927)},{id:"dotenv",name:"dotEnv",import:()=>e.A(86855)},{id:"dream-maker",name:"Dream Maker",import:()=>e.A(955357)},{id:"edge",name:"Edge",import:()=>e.A(40814)},{id:"elixir",name:"Elixir",import:()=>e.A(534593)},{id:"elm",name:"Elm",import:()=>e.A(80402)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e.A(659962)},{id:"erb",name:"ERB",import:()=>e.A(655306)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e.A(379291)},{id:"fennel",name:"Fennel",import:()=>e.A(56334)},{id:"fish",name:"Fish",import:()=>e.A(955953)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e.A(372286)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e.A(709599)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e.A(417187)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e.A(106583)},{id:"gdresource",name:"GDResource",import:()=>e.A(600350)},{id:"gdscript",name:"GDScript",import:()=>e.A(718592)},{id:"gdshader",name:"GDShader",import:()=>e.A(964292)},{id:"genie",name:"Genie",import:()=>e.A(251227)},{id:"gherkin",name:"Gherkin",import:()=>e.A(781674)},{id:"git-commit",name:"Git Commit Message",import:()=>e.A(765886)}
1,{id:"git-rebase",name:"Git Rebase Message",import:()=>e.A(643635)},{id:"gleam",name:"Gleam",import:()=>e.A(469752)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e.A(220210)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e.A(952204)},{id:"glsl",name:"GLSL",import:()=>e.A(615932)},{id:"gnuplot",name:"Gnuplot",import:()=>e.A(334810)},{id:"go",name:"Go",import:()=>e.A(518233)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e.A(527502)},{id:"groovy",name:"Groovy",import:()=>e.A(783131)},{id:"hack",name:"Hack",import:()=>e.A(866363)},{id:"haml",name:"Ruby Haml",import:()=>e.A(936482)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e.A(219104)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e.A(982274)},{id:"haxe",name:"Haxe",import:()=>e.A(843593)},{id:"hcl",name:"HashiCorp HCL",import:()=>e.A(392582)},{id:"hjson",name:"Hjson",import:()=>e.A(32395)},{id:"hlsl",name:"HLSL",import:()=>e.A(336975)},{id:"html",name:"HTML",import:()=>e.A(615475)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e.A(736812)},{id:"http",name:"HTTP",import:()=>e.A(722332)},{id:"hxml",name:"HXML",import:()=>e.A(412671)},{id:"hy",name:"Hy",import:()=>e.A(98975)},{id:"imba",name:"Imba",import:()=>e.A(221794)},{id:"ini",name:"INI",aliases:["properties"],import:()=>e.A(712237)},{id:"java",name:"Java",import:()=>e.A(25004)},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>e.A(792799)},{id:"jinja",name:"Jinja",import:()=>e.A(300535)},{id:"jison",name:"Jison",import:()=>e.A(299868)},{id:"json",name:"JSON",import:()=>e.A(692658)},{id:"json5",name:"JSON5",import:()=>e.A(145390)},{id:"jsonc",name:"JSON with Comments",import:()=>e.A(459901)},{id:"jsonl",name:"JSON Lines",import:()=>e.A(844018)},{id:"jsonnet",name:"Jsonnet",import:()=>e.A(932597)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e.A(386493)},{id:"jsx",name:"JSX",import:()=>e.A(287672)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e.A(148045)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e.A(278014)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e.A(511938)},{id:"latex",name:"LaTeX",import:()=>e.A(382697)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e.A(106774)},{id:"less",name:"Less",import:()=>e.A(657069)},{id:"liquid",name:"Liquid",import:()=>e.A(133954)},{id:"llvm",name:"LLVM IR",import:()=>e.A(969445)},{id:"log",name:"Log file",import:()=>e.A(532210)},{id:"logo",name:"Logo",import:()=>e.A(917136)},{id:"lua",name:"Lua",import:()=>e.A(147287)},{id:"luau",name:"Luau",import:()=>e.A(298173)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e.A(418877)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e.A(159142)},{id:"marko",name:"Marko",import:()=>e.A(644609)},{id:"matlab",name:"MATLAB",import:()=>e.A(323845)},{id:"mdc",name:"MDC",import:()=>e.A(367535)},{id:"mdx",name:"MDX",import:()=>e.A(659189)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e.A(457619)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e.A(401626)},{id:"mojo",name:"Mojo",import:()=>e.A(524176)},{id:"move",name:"Move",import:()=>e.A(847969)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e.A(755902)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e.A(557638)},{id:"nginx",name:"Nginx",import:()=>e.A(47723)},{id:"nim",name:"Nim",import:()=>e.A(446820)},{id:"nix",name:"Nix",import:()=>e.A(565220)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e.A(821908)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e.A(798543)},{id:"objective-cpp",name:"Objective-C++",import:()=>e.A(953213)},{id:"ocaml",name:"OCaml",import:()=>e.A(357016)},{id:"pascal",name:"Pascal",import:()=>e.A(494584)},{id:"perl",name:"Perl",import:()=>e.A(590087)},{id:"php",name:"PHP",import:()=>e.A(753525)},{id:"plsql",name:"PL/SQL",import:()=>e.A(985641)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e.A(215520)},{id:"polar",name:"Polar",import:()=>e.A(579736)},{id:"postcss",name:"PostCSS",import:()=>e.A(344743)},{id:"powerquery",name:"PowerQuery",import:()=>e.A(69901)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e.A(849765)},{id:"prisma",name:"Prisma",import:()=>e.A(925840)},{id:"prolog",name:"Prolog",import:()=>e.A(678110)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e.A(710002)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e.A(753456)},{id:"puppet",name:"Puppet",import:()=>e.A(328116)},{id:"purescript",name:"PureScript",import:()=>e.A(762792)},{id:"python",name:"Python",aliases:["py"],import:()=>e.A(548436)},{id:"qml",name:"QML",import:()=>e.A(985774)},{id:"qmldir",name:"QML Directory",import:()=>e.A(822682)},{id:"qss",name:"Qt Style Sheets",import:()=>e.A(29273)},{id:"r",name:"R",import:()=>e.A(917431)},{id:"racket",name:"Racket",import:()=>e.A(127184)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e.A(402999)}
1,{id:"razor",name:"ASP.NET Razor",import:()=>e.A(22510)},{id:"reg",name:"Windows Registry Script",import:()=>e.A(392914)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e.A(864980)},{id:"rel",name:"Rel",import:()=>e.A(362249)},{id:"riscv",name:"RISC-V",import:()=>e.A(919686)},{id:"rst",name:"reStructuredText",import:()=>e.A(580357)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e.A(660137)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e.A(225837)},{id:"sas",name:"SAS",import:()=>e.A(559154)},{id:"sass",name:"Sass",import:()=>e.A(428160)},{id:"scala",name:"Scala",import:()=>e.A(679226)},{id:"scheme",name:"Scheme",import:()=>e.A(95554)},{id:"scss",name:"SCSS",import:()=>e.A(256229)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e.A(257294)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e.A(287646)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e.A(77876)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e.A(702789)},{id:"smalltalk",name:"Smalltalk",import:()=>e.A(105404)},{id:"solidity",name:"Solidity",import:()=>e.A(664050)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e.A(423766)},{id:"sparql",name:"SPARQL",import:()=>e.A(471095)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e.A(713125)},{id:"sql",name:"SQL",import:()=>e.A(347760)},{id:"ssh-config",name:"SSH Config",import:()=>e.A(525380)},{id:"stata",name:"Stata",import:()=>e.A(927772)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e.A(131592)},{id:"svelte",name:"Svelte",import:()=>e.A(209551)},{id:"swift",name:"Swift",import:()=>e.A(174099)},{id:"system-verilog",name:"SystemVerilog",import:()=>e.A(401250)},{id:"systemd",name:"Systemd Units",import:()=>e.A(944475)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e.A(600538)},{id:"tasl",name:"Tasl",import:()=>e.A(336651)},{id:"tcl",name:"Tcl",import:()=>e.A(709948)},{id:"templ",name:"Templ",import:()=>e.A(340336)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e.A(508436)}
1,{id:"tex",name:"TeX",import:()=>e.A(155636)},{id:"toml",name:"TOML",import:()=>e.A(351979)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e.A(65678)},{id:"tsv",name:"TSV",import:()=>e.A(841727)},{id:"tsx",name:"TSX",import:()=>e.A(557754)},{id:"turtle",name:"Turtle",import:()=>e.A(670454)},{id:"twig",name:"Twig",import:()=>e.A(670515)},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>e.A(48460)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e.A(744538)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e.A(963321)},{id:"v",name:"V",import:()=>e.A(43837)},{id:"vala",name:"Vala",import:()=>e.A(830536)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e.A(785051)},{id:"verilog",name:"Verilog",import:()=>e.A(586017)},{id:"vhdl",name:"VHDL",import:()=>e.A(495694)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e.A(404547)},{id:"vue",name:"Vue",import:()=>e.A(934329)},{id:"vue-html",name:"Vue HTML",import:()=>e.A(160550)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e.A(834235)},{id:"wasm",name:"WebAssembly",import:()=>e.A(879931)},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>e.A(738463)},{id:"wgsl",name:"WGSL",import:()=>e.A(464547)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e.A(74196)},{id:"wit",name:"WebAssembly Interface Types",import:()=>e.A(926245)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e.A(998654)},{id:"xml",name:"XML",import:()=>e.A(160115)},{id:"xsl",name:"XSL",import:()=>e.A(656841)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e.A(291412)},{id:"zenscript",name:"ZenScript",import:()=>e.A(441270)},{id:"zig",name:"Zig",import:()=>e.A(332344)}],eT=Object.fromEntries(eP.map(e=>[e.id,e.import])),eL=Object.fromEntries(eP.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),eE={...eT,...eL},eR=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e.A(252913)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e.A(695208)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e.A(952844)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e.A(872934)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e.A(831036)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e.A(423803)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e.A(486330)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e.A(381001)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e.A(295735)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e.A(902100)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e.A(358172)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e.A(775274)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e.A(157811)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e.A(514214)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e.A(948353)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e.A(640920)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e.A(579755)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e.A(805550)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e.A(360233)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e.A(980721)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e.A(27266)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>
1e.A(231214)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e.A(881110)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e.A(337683)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e.A(28130)},{id:"houston",displayName:"Houston",type:"dark",import:()=>e.A(677856)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e.A(194363)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e.A(448953)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e.A(711812)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e.A(409732)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e.A(930788)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e.A(411374)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e.A(769460)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e.A(774478)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e.A(49008)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e.A(377952)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e.A(820463)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e.A(630169)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e.A(777035)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e.A(161439)},{id:"nord",displayName:"Nord",type:"dark",import:()=>e.A(467304)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e.A(794497)},{id:"one-light",displayName:"One Light",type:"light",import:()=>e.A(353619)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e.A(841717)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e.A(703232)},{id:"red",displayName:"Red",type:"dark",import:()=>e.A(469411)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e.A(753065)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e.A(81356)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e.A(291336)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e.A(758732)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e.A(505358)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e.A(953493)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e.A(767374)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e.A(461630)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e.A(135353)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e.A(129817)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e.A(666144)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e.A(496740)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e.A(896290)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e.A(161379)}].map(e=>[e.id,e.import]));var eO=e.i(467034);class eI extends Error{constructor(e){super(e),this.name="ShikiError"}}function eM(){return"undefined"!=typeof performance?performance.now():Date.now()}let eD=(e,t)=>e+(t-e%t)%t;async function eB(e){let t,n,r={};function a(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let i="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function o(e,t){return e?function(e,t,n=1024){let r=t+n,a=t;for(;e[a]&&!(a>=r);)++a;if(a-t>16&&e.buffer&&i)return i.decode(e.subarray(t,a));let o="";for(;t<a;){let n=e[t++];if(!(128&n)){o+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){o+=String.fromCharCode((31&n)<<6|r);continue}let a=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|a:(7&n)<<18|r<<12|a<<6|63&e[t++])<65536)o+=String.fromCharCode(n);else{let e=n-65536;o+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return o}(r.HEAPU8,e,t):""}let s={emscripten_get_now:eM,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let i=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let o=i*(1+.2/r);if(o=Math.min(o,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}(Math.min(0x80000000,eD(Math.max(e,o),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:s,wasi_snapshot_preview1:s});a((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=o}return await l(),r}var eG=Object.defineProperty,ej=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?eG(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};let eU=null;class e${constructor(e){ej(this,"utf16Length"),ej(this,"utf8Length"),ej(this,"utf16Value"),ej(this,"utf8Value"),ej(this,"utf16OffsetToUtf8"),ej(this,"utf8Off
1setToUtf16");const t=e.length,n=e$._utf8ByteLength(e),r=n!==t,a=r?new Uint32Array(t+1):null;r&&(a[t]=n);const i=r?new Uint32Array(n+1):null;r&&(i[n]=t);const o=new Uint8Array(n);let s=0;for(let n=0;n<t;n++){const l=e.charCodeAt(n);let u=l,c=!1;if(l>=55296&&l<=56319&&n+1<t){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(u=(l-55296<<10)+65536|t-56320,c=!0)}r&&(a[n]=s,c&&(a[n+1]=s),u<=127?i[s+0]=n:u<=2047?(i[s+0]=n,i[s+1]=n):u<=65535?(i[s+0]=n,i[s+1]=n,i[s+2]=n):(i[s+0]=n,i[s+1]=n,i[s+2]=n,i[s+3]=n)),u<=127?o[s++]=u:(u<=2047?o[s++]=192|(1984&u)>>>6:(u<=65535?o[s++]=224|(61440&u)>>>12:(o[s++]=240|(1835008&u)>>>18,o[s++]=128|(258048&u)>>>12),o[s++]=128|(4032&u)>>>6),o[s++]=128|(63&u)>>>0),c&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=o,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let a=e.charCodeAt(n),i=a,o=!1;if(a>=55296&&a<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(i=(a-55296<<10)+65536|t-56320,o=!0)}i<=127?t+=1:i<=2047?t+=2:i<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let eF=class e{constructor(t){if(ej(this,"id",++e.LAST_ID),ej(this,"_onigBinding"),ej(this,"content"),ej(this,"utf16Length"),ej(this,"utf8Length"),ej(this,"utf16OffsetToUtf8"),ej(this,"utf8OffsetToUtf16"),ej(this,"ptr"),!eU)throw new eI("Must invoke loadWasm first.");this._onigBinding=eU,this.content=t;const n=new e$(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=eU.omalloc(1e4)),e._sharedPtrInUse=!0,eU.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(eU)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ej(eF,"LAST_ID",0),ej(eF,"_sharedPtr",0),ej(eF,"_sharedPtrInUse",!1);class eH{constructor(e){if(ej(this,"_onigBinding"),ej(this,"_ptr"),!eU)throw new eI("Must invoke loadWasm first.");const t=[],n=[];for(let r=0,a=e.length;r<a;r++){const a=new e$(e[r]);t[r]=a.createString(eU),n[r]=a.utf8Length}const r=eU.omalloc(4*e.length);eU.HEAPU32.set(t,r/4);const a=eU.omalloc(4*e.length);eU.HEAPU32.set(n,a/4);const i=eU.createOnigScanner(r,a,e.length);for(let n=0,r=e.length;n<r;n++)eU.ofree(t[n]);eU.ofree(a),eU.ofree(r),0===i&&function(e){throw new eI(e.UTF8ToString(e.getLastO
1nigError()))}(eU),this._onigBinding=eU,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new eF(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let a=this._onigBinding,i=a.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===i)return null;let o=a.HEAPU32,s=i/4,l=o[s++],u=o[s++],c=[];for(let t=0;t<u;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);c[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:c}}}function eW(e){return t=>WebAssembly.instantiate(e,t)}async function eq(e){return e&&await (t||(t=async function(){eU=await eB(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,a,i,o;
1if(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (i=n,e=>WebAssembly.instantiateStreaming(i,e))(t):await (o=n,async e=>{let t=await o.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(a=n,"undefined"!=typeof ArrayBuffer&&(a instanceof ArrayBuffer||ArrayBuffer.isView(a))||void 0!==eO.Buffer&&eO.Buffer.isBuffer?.(a)||"undefined"!=typeof SharedArrayBuffer&&a instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&a instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await eW(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await eW(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())),{createScanner:e=>new eH(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new eF(e)}}let{codeToHtml:ez}=function(e,t){let n,r=async function(t={}){if(!n)return n=e({...t,themes:t.themes||[],langs:t.langs||[]});{let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}};async function a(e,n){let a=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),i=await t?.guessEmbeddedLanguages?.(e,n.lang,a);return i&&await a.loadLanguage(...i),a}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await a(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await a(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await a(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await a(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await a(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}((n=(i={langs:eE,themes:eR,engine:()=>eq(e.A(514467))}).langs,r=i.themes,a=i.engine,async function(e){function t(e){if("string"==typeof e){if(V(e))return[];let t=n[e];if(!t)throw new c.ShikiError(`Language \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}function i(e){if(K(e))return"none";if("string"==typeof e){let t=r[e];if(!t)throw new c.ShikiError(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>i(e)),s=(e.langs??[]).map(e=>t(e)),l=await ex({engine:e.engine??a(),...e,themes:o,langs:s});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(t)),loadTheme:(...e)=>l.loadTheme(...e.map(i)),getBundledLanguages:()=>n,getBundledThemes:()=>r}}),{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(t[1]);for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(t[1]);for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(t[1]);if(!n)return Array.from(r);let a=n.getBundledLanguages();return Array.from(r).filter(e=>e&&a[e])}});function eV({children:e,className:t,...n}){return(0,o.jsx)("div",{className:(0,s.cn)("not-prose flex w-full flex-col overflow-clip border","border-border bg-card text-card-foreground rounded-xl",t),...n,children:e})}function eK({code:e,language:t="tsx",theme:n="github-light",className:r,...a}){let{resolvedTheme:i}=(0,l.useTheme)(),[c,h]=(0,u.useState)(null);(0,u.useEffect)(()=>{!async function(){h(await ez(e,{lang:t,theme:"dark"===i?"github-dark":"github-light"}))}()},[e,t,i]);let p=(0,s.cn)("w-full overflow-x-auto text-[13px] [&>pre]:px-4 [&>pre]:py-4 [&>pre]:!bg-background",r);return c?(0,o.jsx)("div",{className:p,dangerouslySetInnerHTML:{__html:c},...a}):(0,o.jsx)("div",{className:p,...a,children:(0,o.jsx)("pre",{children:(0,o.jsx)("code",{children:e})})})}function eX({children:e,className:t,...n}){return(0,o.jsx)("div",{className:(0,s.cn)("flex items-center justify-between",t),...n,children:e})}e.s(["CodeBlock",()=>eV,"CodeBlockCode",()=>eK,"CodeBlockGroup",()=>eX],456002)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.