cindy-ai-chatbot 1.0.77 → 1.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -36,5 +36,5 @@ var _n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
36
36
  *
37
37
  * This source code is licensed under the ISC license.
38
38
  * See the LICENSE file in the root directory of this source tree.
39
- */const Wn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$n=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gn={};function Yn(e,t){return(Gn.jsx?$n:Wn).test(e)}const Zn=/[ \t\n\f\r]/g;function Qn(e){return""===e.replace(Zn,"")}class Kn{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function Xn(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Kn(n,r,t)}function Jn(e){return e.toLowerCase()}Kn.prototype.normal={},Kn.prototype.property={},Kn.prototype.space=void 0;class er{constructor(e,t){this.attribute=t,this.property=e}}er.prototype.attribute="",er.prototype.booleanish=!1,er.prototype.boolean=!1,er.prototype.commaOrSpaceSeparated=!1,er.prototype.commaSeparated=!1,er.prototype.defined=!1,er.prototype.mustUseProperty=!1,er.prototype.number=!1,er.prototype.overloadedBoolean=!1,er.prototype.property="",er.prototype.spaceSeparated=!1,er.prototype.space=void 0;let tr=0;const nr=cr(),rr=cr(),or=cr(),ir=cr(),ar=cr(),lr=cr(),sr=cr();function cr(){return 2**++tr}var ur=Object.freeze({__proto__:null,boolean:nr,booleanish:rr,commaOrSpaceSeparated:sr,commaSeparated:lr,number:ir,overloadedBoolean:or,spaceSeparated:ar});const dr=Object.keys(ur);class pr extends er{constructor(e,t,n,r){let o=-1;if(super(e,t),fr(this,"space",r),"number"==typeof n)for(;++o<dr.length;){const e=dr[o];fr(this,dr[o],(n&ur[e])===ur[e])}}}function fr(e,t,n){n&&(e[t]=n)}function hr(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new pr(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Jn(r)]=r,n[Jn(i.attribute)]=r}return new Kn(t,n,e.space)}pr.prototype.defined=!0;const mr=hr({properties:{ariaActiveDescendant:null,ariaAtomic:rr,ariaAutoComplete:null,ariaBusy:rr,ariaChecked:rr,ariaColCount:ir,ariaColIndex:ir,ariaColSpan:ir,ariaControls:ar,ariaCurrent:null,ariaDescribedBy:ar,ariaDetails:null,ariaDisabled:rr,ariaDropEffect:ar,ariaErrorMessage:null,ariaExpanded:rr,ariaFlowTo:ar,ariaGrabbed:rr,ariaHasPopup:null,ariaHidden:rr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ar,ariaLevel:ir,ariaLive:null,ariaModal:rr,ariaMultiLine:rr,ariaMultiSelectable:rr,ariaOrientation:null,ariaOwns:ar,ariaPlaceholder:null,ariaPosInSet:ir,ariaPressed:rr,ariaReadOnly:rr,ariaRelevant:null,ariaRequired:rr,ariaRoleDescription:ar,ariaRowCount:ir,ariaRowIndex:ir,ariaRowSpan:ir,ariaSelected:rr,ariaSetSize:ir,ariaSort:null,ariaValueMax:ir,ariaValueMin:ir,ariaValueNow:ir,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function gr(e,t){return t in e?e[t]:t}function yr(e,t){return gr(e,t.toLowerCase())}const vr=hr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lr,acceptCharset:ar,accessKey:ar,action:null,allow:null,allowFullScreen:nr,allowPaymentRequest:nr,allowUserMedia:nr,alt:null,as:null,async:nr,autoCapitalize:null,autoComplete:ar,autoFocus:nr,autoPlay:nr,blocking:ar,capture:null,charSet:null,checked:nr,cite:null,className:ar,cols:ir,colSpan:null,content:null,contentEditable:rr,controls:nr,controlsList:ar,coords:ir|lr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:nr,defer:nr,dir:null,dirName:null,disabled:nr,download:or,draggable:rr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:nr,formTarget:null,headers:ar,height:ir,hidden:or,high:ir,href:null,hrefLang:null,htmlFor:ar,httpEquiv:ar,id:null,imageSizes:null,imageSrcSet:null,inert:nr,inputMode:null,integrity:null,is:null,isMap:nr,itemId:null,itemProp:ar,itemRef:ar,itemScope:nr,itemType:ar,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:nr,low:ir,manifest:null,max:null,maxLength:ir,media:null,method:null,min:null,minLength:ir,multiple:nr,muted:nr,name:null,nonce:null,noModule:nr,noValidate:nr,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:nr,optimum:ir,pattern:null,ping:ar,placeholder:null,playsInline:nr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:nr,referrerPolicy:null,rel:ar,required:nr,reversed:nr,rows:ir,rowSpan:ir,sandbox:ar,scope:null,scoped:nr,seamless:nr,selected:nr,shadowRootClonable:nr,shadowRootDelegatesFocus:nr,shadowRootMode:null,shape:null,size:ir,sizes:null,slot:null,span:ir,spellCheck:rr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ir,step:null,style:null,tabIndex:ir,target:null,title:null,translate:null,type:null,typeMustMatch:nr,useMap:null,value:rr,width:ir,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ar,axis:null,background:null,bgColor:null,border:ir,borderColor:null,bottomMargin:ir,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:nr,declare:nr,event:null,face:null,frame:null,frameBorder:null,hSpace:ir,leftMargin:ir,link:null,longDesc:null,lowSrc:null,marginHeight:ir,marginWidth:ir,noResize:nr,noHref:nr,noShade:nr,noWrap:nr,object:null,profile:null,prompt:null,rev:null,rightMargin:ir,rules:null,scheme:null,scrolling:rr,standby:null,summary:null,text:null,topMargin:ir,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ir,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:nr,disableRemotePlayback:nr,prefix:null,property:null,results:ir,security:null,unselectable:null},space:"html",transform:yr}),br=hr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:sr,accentHeight:ir,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ir,amplitude:ir,arabicForm:null,ascent:ir,attributeName:null,attributeType:null,azimuth:ir,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ir,by:null,calcMode:null,capHeight:ir,className:ar,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:ir,diffuseConstant:ir,direction:null,display:null,dur:null,divisor:ir,dominantBaseline:null,download:nr,dx:null,dy:null,edgeMode:null,editable:null,elevation:ir,enableBackground:null,end:null,event:null,exponent:ir,externalResourcesRequired:null,fill:null,fillOpacity:ir,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:lr,g2:lr,glyphName:lr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ir,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ir,horizOriginX:ir,horizOriginY:ir,id:null,ideographic:ir,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ir,k:ir,k1:ir,k2:ir,k3:ir,k4:ir,kernelMatrix:sr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ir,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:ir,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ir,overlineThickness:ir,paintOrder:null,panose1:null,path:null,pathLength:ir,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ar,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ir,pointsAtY:ir,pointsAtZ:ir,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:sr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:sr,rev:sr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:sr,requiredFeatures:sr,requiredFonts:sr,requiredFormats:sr,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:ir,specularExponent:ir,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ir,strikethroughThickness:ir,string:null,stroke:null,strokeDashArray:sr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ir,strokeOpacity:ir,strokeWidth:null,style:null,surfaceScale:ir,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:sr,tabIndex:ir,tableValues:null,target:null,targetX:ir,targetY:ir,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:sr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ir,underlineThickness:ir,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ir,values:null,vAlphabetic:ir,vMathematical:ir,vectorEffect:null,vHanging:ir,vIdeographic:ir,version:null,vertAdvY:ir,vertOriginX:ir,vertOriginY:ir,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ir,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gr}),xr=hr({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()}),wr=hr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),kr=hr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Cr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sr=/[A-Z]/g,Er=/-[a-z]/g,Tr=/^data[-\w.:]+$/i;function Or(e){return"-"+e.toLowerCase()}function Ar(e){return e.charAt(1).toUpperCase()}const Nr=Xn([mr,vr,xr,wr,kr],"html"),Pr=Xn([mr,br,xr,wr,kr],"svg");var Ir={},Dr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Lr=/\n/g,_r=/^\s*/,Rr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,jr=/^:\s*/,Mr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Fr=/^[;\s]*/,zr=/^\s+|\s+$/g,qr="";function Br(e){return e?e.replace(zr,qr):qr}var Ur=de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,Hr.default)(e),o="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}})),n};var Hr=Ur((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(Lr);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function s(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){s(_r)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;qr!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,qr===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=i(),t=s(Rr);if(t){if(d(),!s(jr))return l("property missing ':'");var n=s(Mr),r=e({type:"declaration",property:Br(t[0].replace(Dr,qr)),value:n?Br(n[0].replace(Dr,qr)):qr});return s(Fr),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()}));var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.camelCase=void 0;var Wr=/^--[a-zA-Z0-9_-]+$/,$r=/-([a-z])/g,Gr=/^[^-]+$/,Yr=/^-(webkit|moz|ms|o|khtml)-/,Zr=/^-(ms)-/,Qr=function(e,t){return t.toUpperCase()},Kr=function(e,t){return"".concat(t,"-")};Vr.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Gr.test(e)||Wr.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Zr,Kr):e.replace(Yr,Kr)).replace($r,Qr))};var Xr=(de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Ir),Jr=Vr;function eo(e,t){var n={};return e&&"string"==typeof e?((0,Xr.default)(e,(function(e,r){e&&r&&(n[(0,Jr.camelCase)(e,t)]=r)})),n):n}eo.default=eo;var to=pe(eo);const no=oo("end"),ro=oo("start");function oo(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function io(e){return e&&"object"==typeof e?"position"in e||"type"in e?lo(e.position):"start"in e||"end"in e?lo(e):"line"in e||"column"in e?ao(e):"":""}function ao(e){return so(e&&e.line)+":"+so(e&&e.column)}function lo(e){return ao(e&&e.start)+"-"+ao(e&&e.end)}function so(e){return e&&"number"==typeof e?e:1}class co extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=io(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}co.prototype.file="",co.prototype.name="",co.prototype.reason="",co.prototype.message="",co.prototype.stack="",co.prototype.column=void 0,co.prototype.line=void 0,co.prototype.ancestors=void 0,co.prototype.cause=void 0,co.prototype.fatal=void 0,co.prototype.place=void 0,co.prototype.ruleId=void 0,co.prototype.source=void 0;const uo={}.hasOwnProperty,po=new Map,fo=/[A-Z]/g,ho=new Set(["table","tbody","thead","tfoot","tr"]),mo=new Set(["td","th"]),go="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function yo(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),l=ro(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Pr:Nr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=vo(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function vo(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Pr,e.schema=o);e.ancestors.push(t);const i=Co(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&uo.call(t.properties,o)){const i=ko(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&mo.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=wo(e,t);ho.has(t.tagName)&&(l=l.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Qn(t.value):Qn(t));var t})));return bo(e,a,i,t),xo(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}So(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Pr,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:Co(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else So(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else So(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=wo(e,t);return bo(e,a,i,t),xo(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);So(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return xo(r,wo(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function bo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function xo(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function wo(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:po;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const l=vo(e,i,a);void 0!==l&&n.push(l)}return n}function ko(e,t,n){const r=function(e,t){const n=Jn(t);let r=t,o=er;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Tr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Er,Ar);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Er.test(e)){let n=e.replace(Sr,Or);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=pr}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return to(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new co("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=go+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)uo.call(e,n)&&(t[Eo(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Cr[r.property]||r.property:r.attribute,n]}}function Co(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Yn(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=Yn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return uo.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);So(e)}function So(e,t){const n=new co("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=go+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Eo(e){let t=e.replace(fo,To);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function To(e){return"-"+e.toLowerCase()}const Oo={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ao={};function No(e,t){return Po(e,"boolean"!=typeof Ao.includeImageAlt||Ao.includeImageAlt,"boolean"!=typeof Ao.includeHtml||Ao.includeHtml)}function Po(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Io(e.children,t,n)}return Array.isArray(e)?Io(e,t,n):""}function Io(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Po(e[o],t,n);return r.join("")}const Do={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Lo={}.hasOwnProperty;function _o(e){return!!Lo.call(Do,e)&&Do[e]}function Ro(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function jo(e,t){return e.length>0?(Ro(e,e.length,0,t),e):t}const Mo={}.hasOwnProperty;function Fo(e){const t={};let n=-1;for(;++n<e.length;)zo(t,e[n]);return t}function zo(e,t){let n;for(n in t){const r=(Mo.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Mo.call(r,i)||(r[i]=[]);const e=o[i];qo(r[i],Array.isArray(e)?e:e?[e]:[])}}}function qo(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Ro(e,0,0,r)}function Bo(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Uo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ho=ti(/[A-Za-z]/),Vo=ti(/[\dA-Za-z]/),Wo=ti(/[#-'*+\--9=?A-Z^-~]/);function $o(e){return null!==e&&(e<32||127===e)}const Go=ti(/\d/),Yo=ti(/[\dA-Fa-f]/),Zo=ti(/[!-/:-@[-`{-~]/);function Qo(e){return null!==e&&e<-2}function Ko(e){return null!==e&&(e<0||32===e)}function Xo(e){return-2===e||-1===e||32===e}const Jo=ti(/\p{P}|\p{S}/u),ei=ti(/\s/);function ti(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ni(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&Vo(e.charCodeAt(n+1))&&Vo(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ri(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(Xo(r))return e.enter(n),a(r);return t(r)};function a(r){return Xo(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const oi={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ri(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Qo(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const ii={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return l;function l(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return Ro(t.events,i+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(a===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ai,u,d)(o)}function u(e){return r&&v(),y(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(ai,f,h)(n)}function f(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):Qo(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,l):(e.consume(n),m)}function g(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;Ro(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ai={tokenize:function(e,t,n){return ri(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function li(e){return null===e||Ko(e)||ei(e)?1:Jo(e)?2:void 0}function si(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const ci={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};ui(d,-l),ui(p,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=jo(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=jo(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=jo(s,si(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=jo(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=jo(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ro(e,n-1,u-n+3,s),u=n+s.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=li(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(l){if(l===i)return e.consume(l),a;const s=e.exit("attentionSequence"),c=li(l),u=!c||2===c&&o||n.includes(l),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!d)),s._close=Boolean(42===i?d:d&&(c||!u)),t(l)}}};function ui(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const di={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return Ho(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||Vo(e)?(r=1,a(e)):s(e)}function a(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Vo(t))&&r++<32?(e.consume(t),a):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||$o(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):Wo(t)?(e.consume(t),s):n(t)}function c(e){return Vo(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Vo(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const pi={partial:!0,tokenize:function(e,t,n){return function(t){return Xo(t)?ri(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Qo(e)?t(e):n(e)}}};const fi={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Xo(t))return ri(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(fi,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Xo(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const hi={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Zo(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const mi={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=Vo,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Yo,c):(e.enter("characterReferenceValue"),o=7,i=Go,c(t))}function c(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==Vo||_o(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++<o?(e.consume(l),c):n(l)}}};const gi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},yi={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),Xo(t)?ri(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),Xo(t)?ri(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Qo(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),Xo(t)?ri(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Qo(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(gi,f,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Qo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Xo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ri(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||Qo(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Qo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&Xo(t)?ri(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Qo(t)?e.check(gi,f,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Qo(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const vi={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ri(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):Qo(t)?e.attempt(bi,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Qo(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},bi={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ri(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Qo(e)?o(e):n(e)}}};const xi={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Qo(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};class wi{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&ki(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ki(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ki(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);ki(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ki(this.left,t.reverse())}}}function ki(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ci(e){const t={};let n,r,o,i,a,l,s,c=-1;const u=new wi(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Si(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return Ro(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Si(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,s=[],c={};let u,d,p=-1,f=n,h=0,m=0;const g=[m];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<l.length;)"exit"===l[p][0]&&"enter"===l[p-1][0]&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=l.slice(g[p],g[p+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),p=-1;++p<s.length;)c[h+s[p][0]]=h+s[p][1],h+=s[p][1]-s[p][0]-1;return c}const Ei={resolve:function(e){return Ci(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Qo(t)?e.check(Ti,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Ti={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ri(e,o,"linePrefix")};function o(o){if(null===o||Qo(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Oi(e,t,n,r,o,i,a,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||$o(t))return n(t);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||Qo(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!Ko(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||$o(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Ai(e,t,n,r,o,i){const a=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Qo(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Qo(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!Xo(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Ni(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l;return n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ri(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Qo(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Pi(e,t){let n;return function r(o){if(Qo(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(Xo(o))return ri(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const Ii={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Ai.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Uo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return Ko(t)?Pi(e,l)(t):l(t)}function l(t){return Oi(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Di,c,c)(t)}function c(t){return Xo(t)?ri(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Qo(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Di={partial:!0,tokenize:function(e,t,n){return function(t){return Ko(t)?Pi(e,r)(t):n(t)};function r(t){return Ni(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Xo(t)?ri(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Qo(e)?t(e):n(e)}}};const Li={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Qo(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const _i={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Ro(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Ko(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Qo(n)?(e.exit("atxHeading"),t(n)):Xo(n)?ri(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||Ko(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}}};const Ri=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ji=["pre","script","style","textarea"],Mi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),i=!0,f):63===l?(e.consume(l),o=3,r.interrupt?t:_):Ho(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,p):Ho(i)?(e.consume(i),o=4,r.interrupt?t:_):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:_):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:T:p):n(o)}function f(t){return Ho(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||Ko(l)){const s=47===l,c=a.toLowerCase();return s||i||!ji.includes(c)?Ri.includes(a.toLowerCase())?(o=6,s?(e.consume(l),m):r.interrupt?t(l):T(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?g(l):y(l)):(o=1,r.interrupt?t(l):T(l))}return 45===l||Vo(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:T):n(o)}function g(t){return Xo(t)?(e.consume(t),g):S(t)}function y(t){return 47===t?(e.consume(t),S):58===t||95===t||Ho(t)?(e.consume(t),v):Xo(t)?(e.consume(t),y):S(t)}function v(t){return 45===t||46===t||58===t||95===t||Vo(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),x):Xo(t)?(e.consume(t),b):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):Xo(t)?(e.consume(t),x):k(t)}function w(t){return t===s?(e.consume(t),s=null,C):null===t||Qo(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Ko(t)?b(t):(e.consume(t),k)}function C(e){return 47===e||62===e||Xo(e)?y(e):n(e)}function S(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||Qo(t)?T(t):Xo(t)?(e.consume(t),E):n(t)}function T(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),I):62===t&&4===o?(e.consume(t),R):63===t&&3===o?(e.consume(t),_):93===t&&5===o?(e.consume(t),L):!Qo(t)||6!==o&&7!==o?null===t||Qo(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(Fi,j,O)(t))}function O(t){return e.check(zi,A,j)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||Qo(t)?O(t):(e.enter("htmlFlowData"),T(t))}function P(t){return 45===t?(e.consume(t),_):T(t)}function I(t){return 47===t?(e.consume(t),a="",D):T(t)}function D(t){if(62===t){const n=a.toLowerCase();return ji.includes(n)?(e.consume(t),R):T(t)}return Ho(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),D):T(t)}function L(t){return 93===t?(e.consume(t),_):T(t)}function _(t){return 62===t?(e.consume(t),R):45===t&&2===o?(e.consume(t),_):T(t)}function R(t){return null===t||Qo(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),R)}function j(n){return e.exit("htmlFlow"),t(n)}}},Fi={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(pi,t,n)}}},zi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Qo(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const qi={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),v):Ho(t)?(e.consume(t),C):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):Ho(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Qo(t)?(a=u,D(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?I(e):45===e?d(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Qo(t)?(a=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?I(t):Qo(t)?(a=y,D(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):Qo(t)?(a=v,D(t)):(e.consume(t),v)}function b(e){return 62===e?I(e):v(e)}function x(t){return Ho(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||Vo(t)?(e.consume(t),w):k(t)}function k(t){return Qo(t)?(a=k,D(t)):Xo(t)?(e.consume(t),k):I(t)}function C(t){return 45===t||Vo(t)?(e.consume(t),C):47===t||62===t||Ko(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),I):58===t||95===t||Ho(t)?(e.consume(t),E):Qo(t)?(a=S,D(t)):Xo(t)?(e.consume(t),S):I(t)}function E(t){return 45===t||46===t||58===t||95===t||Vo(t)?(e.consume(t),E):T(t)}function T(t){return 61===t?(e.consume(t),O):Qo(t)?(a=T,D(t)):Xo(t)?(e.consume(t),T):S(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,A):Qo(t)?(a=O,D(t)):Xo(t)?(e.consume(t),O):(e.consume(t),N)}function A(t){return t===o?(e.consume(t),o=void 0,P):null===t?n(t):Qo(t)?(a=A,D(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Ko(t)?S(t):(e.consume(t),N)}function P(e){return 47===e||62===e||Ko(e)?S(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return Xo(t)?ri(e,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):_(t)}function _(t){return e.enter("htmlTextData"),a(t)}}};const Bi={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Ro(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=a);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",c,t]],i=jo(i,e.slice(r+1,r+l+3)),i=jo(i,[["enter",u,t]]),i=jo(i,si(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),i=jo(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=jo(i,e.slice(o+1)),i=jo(i,[["exit",s,t]]),Ro(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(Uo(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l};function l(t){return 40===t?e.attempt(Ui,c,i?c:u)(t):91===t?e.attempt(Hi,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(Vi,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},Ui={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Ko(t)?Pi(e,o)(t):o(t)}function o(t){return 41===t?c(t):Oi(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Ko(t)?Pi(e,l)(t):c(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?Ni(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return Ko(t)?Pi(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Hi={tokenize:function(e,t,n){const r=this;return function(t){return Ai.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Uo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Vi={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Wi={name:"labelStartImage",resolveAll:Bi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const $i={name:"labelStartLink",resolveAll:Bi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Gi={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ri(e,t,"linePrefix")}}};const Yi={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||Qo(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),Xo(t)?ri(e,i,"whitespace")(t):i(t))}}};const Zi={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(pi,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ri(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!Xo(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ki,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ri(e,e.attempt(Zi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Go(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Yi,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Go(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(pi,r.interrupt?n:c,e.attempt(Qi,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return Xo(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Qi={partial:!0,tokenize:function(e,t,n){const r=this;return ri(e,(function(e){const o=r.events[r.events.length-1];return!Xo(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Ki={partial:!0,tokenize:function(e,t,n){const r=this;return ri(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const Xi={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),Xo(t)?ri(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Qo(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const Ji={tokenize:function(e){const t=this,n=e.attempt(pi,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,ri(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ei,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const ea={resolveAll:oa()},ta=ra("string"),na=ra("text");function ra(e){return{resolveAll:oa("text"===e?ia:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function oa(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function ia(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,l=-1,s=0;for(;a--;){const e=o[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)i=!0,s++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const aa={42:Zi,43:Zi,45:Zi,48:Zi,49:Zi,50:Zi,51:Zi,52:Zi,53:Zi,54:Zi,55:Zi,56:Zi,57:Zi,62:fi},la={91:Ii},sa={[-2]:vi,[-1]:vi,32:vi},ca={35:_i,42:Yi,45:[Xi,Yi],60:Mi,61:Xi,95:Yi,96:yi,126:yi},ua={38:mi,92:hi},da={[-5]:Gi,[-4]:Gi,[-3]:Gi,33:Wi,38:mi,42:ci,60:[di,qi],91:$i,92:[Li,hi],93:Bi,95:ci,96:xi},pa={null:[ci,ea]};var fa=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:la,disable:{null:[]},document:aa,flow:ca,flowInitial:sa,insideSpan:pa,string:ua,text:da});function ha(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],l=[];const s={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){Qo(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=jo(a,e),f(),null!==a[a.length-1])return[];return y(t,0),c.events=si(i,c.events,c),c.events}};let u=t.tokenize.call(c,s);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function f(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){f=function(){const e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(l);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=i,v()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,g,y)(n)}}function g(t){return e(d,f),o}function y(e){return f.restore(),++u<a.length?m(a[u]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Ro(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const ma=/[\0\t\n\r]/g;const ga=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ya(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Bo(n.slice(t?2:1),t?16:10)}return _o(n)||e}const va={}.hasOwnProperty;function ba(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(K),blockQuote:i($),characterEscape:E,characterReference:E,codeFenced:i(G),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(G,a),codeText:i(Y,a),codeTextData:E,data:E,codeFlowValue:E,definition:i(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(Q),hardBreakEscape:i(X),hardBreakTrailing:i(X),htmlFlow:i(J,a),htmlFlowData:E,htmlText:i(J,a),htmlTextData:E,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:p,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:z,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(K),strong:i(ie),thematicBreak:i(le)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:W,autolinkProtocol:V,blockQuote:s(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:U,characterReference:H,codeFenced:s(g),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:s(y),codeText:s(I),codeTextData:T,data:T,definition:s(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(A),hardBreakTrailing:s(A),htmlFlow:s(N),htmlFlowData:T,htmlText:s(P),htmlTextData:T,image:s(L),label:R,labelText:_,lineEnding:O,link:s(D),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:q,resourceDestinationString:j,resourceTitleString:M,resource:F,setextHeading:s(S),setextHeadingLineSequence:C,setextHeadingText:k,strong:s(),thematicBreak:s()}};wa(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:u,data:n},s=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])s.push(d);else{d=o(e,s.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];va.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Ca).call(i,void 0,e[0])}for(r.position={start:xa(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:xa(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,l=t-1,s=-1,c=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||i||(i=l),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){l.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:xa(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+io({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Ca).call(this,e,r[0])}n.position.end=xa(e.end)}function u(){return No(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Uo(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:xa(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=xa(e.end)}function O(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=xa(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),T.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function _(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(ga,ya)}(t),n.identifier=Uo(t).toLowerCase()}function R(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function M(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function q(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Uo(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Bo(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=_o(t)}this.stack[this.stack.length-1].value+=r}function H(e){this.stack.pop().position.end=xa(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function $(){return{type:"blockquote",children:[]}}function G(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function K(){return{type:"heading",depth:0,children:[]}}function X(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Ci(e););return e}(function(e){const t={constructs:Fo([fa,...(e||{}).extensions||[]]),content:n(oi),defined:[],document:n(ii),flow:n(Ji),lazy:{},string:n(ta),text:n(na)};return t;function n(e){return function(n){return ha(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const l=[];let s,c,u,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(ma.lastIndex=u,s=ma.exec(o),d=s&&void 0!==s.index?s.index:o.length,p=o.charCodeAt(d),!s){n=o.slice(u);break}if(10===p&&u===d&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<d&&(l.push(o.slice(u,d)),t+=d-u),p){case 0:l.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),l.push(-2);t++<c;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function xa(e){return{line:e.line,column:e.column,offset:e.offset}}function wa(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?wa(e,r):ka(e,r)}}function ka(e,t){let n;for(n in t)if(va.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ca(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+io({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+io({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+io({start:t.start,end:t.end})+") is still open")}function Sa(e){const t=this;t.parser=function(n){return ba(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ea(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Ta(e){const t=e.spread;return null==t?e.children.length>1:t}function Oa(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Aa(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Aa(t.slice(o),o>0,!1)),i.join("")}function Aa(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Na={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=ni(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ea(e,t);const o={src:ni(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:ni(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ea(e,t);const o={href:ni(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:ni(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ta(n[r])}return t}(n):Ta(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=ro(t.children[1]),a=no(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l<a;){const n=t.children[l],r={},a=i?i[l]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Oa(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Pa,yaml:Pa,definition:Pa,footnoteDefinition:Pa};function Pa(){}const Ia="object"==typeof self?self:globalThis,Da=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Ia[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new Ia[i](a),o)};return r})(new Map,e)(0),La="",{toString:_a}={},{keys:Ra}=Object,ja=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=_a.call(e).slice(8,-1);switch(n){case"Array":return[1,La];case"Object":return[2,La];case"Date":return[3,La];case"RegExp":return[4,La];case"Map":return[5,La];case"Set":return[6,La];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Ma=([e,t])=>0===e&&("function"===t||"symbol"===t),Fa=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=ja(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),o([l,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of Ra(r))!e&&Ma(ja(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!Ma(ja(n))&&!Ma(ja(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&Ma(ja(n))||t.push(i(n));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var za="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Da(Fa(e,t)):structuredClone(e):(e,t)=>Da(Fa(e,t));function qa(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Ba(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Ua=function(e){if(null==e)return Va;if("function"==typeof e)return Ha(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ua(e[n]);return Ha(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return Ha(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return Ha(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Ha(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Va(){return!0}const Wa=[],$a=!0,Ga=!1;function Ya(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Ua(o),a=r?-1:1;!function e(o,l,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Wa;if((!t||i(o,l,s[s.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[$a,e];return null==e?Wa:[e]}(n(o,s)),p[0]===Ga))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+a,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Ga)return c;u="number"==typeof c[1]?c[1]:u+a}}return p}}(e,void 0,[])()}function Za(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),Ya(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}const Qa={}.hasOwnProperty,Ka={};function Xa(e,t){e.position&&(t.position=function(e){const t=ro(e),n=no(e);if(t&&n)return{start:t,end:n}}(e))}function Ja(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,za(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function el(e,t){const n=t.data||{},r=!("value"in t)||Qa.call(n,"hProperties")||Qa.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function tl(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nl(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function rl(e,t){const n=function(e,t){const n=t||Ka,r=new Map,o=new Map,i=new Map,a={...Na,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=nl(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=nl(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Ja,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=l.handlers[n];if(Qa.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=za(n);return r.children=l.all(e),r}return za(e)}return(l.options.unknownHandler||el)(l,e,t)},options:n,patch:Xa,wrap:tl};return Za(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),l}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||qa,r=e.options.footnoteBackLabel||Ba,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=ni(a.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(a);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...za(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function ol(e,t){return e&&"run"in e?async function(n,r){const o=rl(n,{file:r,...t});await e.run(o,r)}:function(n,r){return rl(n,{file:r,...e||t})}}function il(e){if(e)throw e}var al=Object.prototype.hasOwnProperty,ll=Object.prototype.toString,sl=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,ul=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ll.call(e)},dl=function(e){if(!e||"[object Object]"!==ll.call(e))return!1;var t,n=al.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&al.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||al.call(e,t)},pl=function(e,t){sl&&"__proto__"===t.name?sl(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},fl=function(e,t){if("__proto__"===t){if(!al.call(e,t))return;if(cl)return cl(e,t).value}return e[t]},hl=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=fl(l,n),l!==(o=fl(t,n))&&(u&&o&&(dl(o)||(i=ul(o)))?(i?(i=!1,a=r&&ul(r)?r:[]):a=r&&dl(r)?r:{},pl(l,{name:n,newValue:e(u,a,o)})):void 0!==o&&pl(l,{name:n,newValue:o}));return l},ml=pe(hl);function gl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function yl(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const l=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==a[s]&&void 0!==a[s]||(a[s]=t[s]);t=a,l?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const vl={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');bl(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(bl(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){bl(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)bl(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){bl(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===l);else if(a!==s-1&&2===l){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function bl(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xl={cwd:function(){return"/"}};function wl(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function kl(e){if("string"==typeof e)e=new URL(e);else if(!wl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Cl=["history","path","basename","stem","extname","dirname"];class Sl{constructor(e){let t;t=e?wl(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":xl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Cl.length;){const e=Cl[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Cl.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?vl.basename(this.path):void 0}set basename(e){Tl(e,"basename"),El(e,"basename"),this.path=vl.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?vl.dirname(this.path):void 0}set dirname(e){Ol(this.basename,"dirname"),this.path=vl.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?vl.extname(this.path):void 0}set extname(e){if(El(e,"extname"),Ol(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=vl.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){wl(e)&&(e=kl(e)),Tl(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?vl.basename(this.path,this.extname):void 0}set stem(e){Tl(e,"stem"),El(e,"stem"),this.path=vl.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new co(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function El(e,t){if(e&&e.includes(vl.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+vl.sep+"`")}function Tl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ol(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Al=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Nl={}.hasOwnProperty;class Pl extends Al{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=yl()}copy(){const e=new Pl;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(ml(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(_l("data",this.frozen),this.namespace[e]=t,this):Nl.call(this.namespace,e)&&this.namespace[e]||void 0:e?(_l("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Ml(e),n=this.parser||this.Parser;return Dl("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Dl("process",this.parser||this.Parser),Ll("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=Ml(e),a=n.parse(i);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return l(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,l(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),Dl("processSync",this.parser||this.Parser),Ll("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,il(e),t=r})),jl("processSync","process",n),t}run(e,t,n){Rl(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=Ml(t);r.run(e,a,(function(t,r,a){const l=r||e;t?i(t):o?o(l):n(void 0,l,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){il(e),n=t,r=!0})),jl("runSync","run",r),n}stringify(e,t){this.freeze();const n=Ml(t),r=this.compiler||this.Compiler;return Ll("stringify",r),Rl(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(_l("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=ml(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];gl(a)&&gl(r)&&(r=ml(!0,a,r)),n[o]=[e,r,...i]}}}}const Il=(new Pl).freeze();function Dl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Ll(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function _l(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rl(e){if(!gl(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function jl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ml(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Sl(e)}const Fl=[],zl={allowDangerousHtml:!0},ql=/^(https?|ircs?|mailto|xmpp)$/i,Bl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ul(r){const o=function(e){const t=e.rehypePlugins||Fl,n=e.remarkPlugins||Fl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...zl}:zl,o=Il().use(Sa).use(n).use(ol,r).use(t);return o}(r),i=function(e){const t=e.children||"",n=new Sl;"string"==typeof t&&(n.value=t);return n}(r);return function(r,o){const i=o.allowedElements,a=o.allowElement,l=o.components,s=o.disallowedElements,c=o.skipHtml,u=o.unwrapDisallowed,d=o.urlTransform||Hl;for(const e of Bl)Object.hasOwn(o,e.from)&&(e.from,e.to&&e.to,e.id);return Za(r,p),yo(r,{Fragment:n,components:l,ignoreInvalidStyle:!0,jsx:t,jsxs:e,passKeys:!0,passNode:!0});function p(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return c?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Oo)if(Object.hasOwn(Oo,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Oo[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let r=i?!i.includes(e.tagName):!!s&&s.includes(e.tagName);if(!r&&a&&"number"==typeof t&&(r=!a(e,t,n)),r&&n&&"number"==typeof t)return u&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(o.runSync(o.parse(i),i),r)}function Hl(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||ql.test(e.slice(0,t))?e:""}var Vl="access",Wl="refresh",$l="/token/refresh/",Gl=b.withAttributes({path:"/",secure:!0,sameSite:"strict"}),Yl=function(e,t,n,r){var o=v.create({baseURL:e,headers:{"Content-Type":"application/json"}});Vl=t,Wl=n,$l=r;var i=function(e,t){return(t-e)/86400},a=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},l=function(){return Sn(void 0,void 0,void 0,(function(){var t,n,r;return En(this,(function(o){switch(o.label){case 0:if(!(t=Gl.get(Wl)))return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,v.post("".concat(e).concat($l),{refresh:t})];case 2:return function(e){var t=e.access,n=e.refresh,r=a(t),o=a(n);Gl.set(Vl,t,{expires:i(r.iat,r.exp)}),Gl.set(Wl,n,{expires:i(o.iat,o.exp)})}({access:(n=o.sent()).data.access,refresh:n.data.refresh}),[2,n.data.access];case 3:return r=o.sent(),[2,Promise.reject(r)];case 4:return[2]}}))}))};return o.interceptors.request.use((function(e){return Sn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return t=["login/","register/","password-reset/","password-reset/confirm/","password-reset/validate_token/"],e.url&&t.some((function(t){var n;return null===(n=e.url)||void 0===n?void 0:n.includes(t)}))?[2,e]:function(e){var t=!0;(e.includes("login/")||e.includes("register/")||e.includes("forgot-password/")||e.includes("reset-password/"))&&(t=!1);var n=Gl.get(Vl);if(n){var r=a(n).exp;Date.now()<1e3*r&&(t=!1)}return console.log("hasExpired",t),t}(e.url||"")&&Gl.get(Wl)?[4,l()]:[3,2];case 1:r.sent(),r.label=2;case 2:return(n=Gl.get(Vl))&&e.headers&&(e.headers.Authorization="Bearer ".concat(n)),[2,e]}}))}))}),(function(e){return console.error("Request error:",e),Promise.reject(e)})),o.interceptors.response.use((function(e){return e}),(function(e){return Sn(void 0,void 0,void 0,(function(){var t,n,r,o,i,a;return En(this,(function(l){return e.response?(t=e.response,n=t.status,r=t.data,o="An unexpected error occurred",r&&(r.message?o=r.message:r.msg?o=r.msg:r.detail?o=r.detail:"string"==typeof r?o=r:Object.keys(r).length>0&&(i=Object.keys(r)[0],a=r[i],o=Array.isArray(a)?"".concat(i,": ").concat(a[0]):"".concat(i,": ").concat(a))),401===n?console.error("Authentication error:",o):403===n?console.error("Permission denied:",o):404===n?console.error("Resource not found:",o):n>=500&&console.error("Server error:",o),[2,Promise.reject({status:n,message:o,data:r})]):(console.error("Network error:",e),[2,Promise.reject({message:"Network error. Please check your connection."})])}))}))})),o},Zl=function(n){var r=n.visible,o=n.onSubmit,a=n.title,l=void 0===a?"Enter 6-digit Code":a,s=n.setVisible,c=i(""),u=c[0],d=c[1];return r?e("div",{className:"modal-overlay",children:[e("div",{className:"modal-content",children:[t("div",{className:"modal-header",children:t("h3",{children:l})}),e("div",{className:"modal-body",children:[t("div",{className:"otp-container",children:t("div",{className:"otp-inputs",children:Tn([],Array(6),!0).map((function(e,n){return t("input",{type:"text",maxLength:1,className:"otp-input",value:u[n]||"",onChange:function(e){var t=e.target.value;if(/^\d*$/.test(t)){var r=u.split("");r[n]=t;var o=r.join("");if(d(o),t&&n<5){var i=document.querySelectorAll(".otp-input")[n+1];null==i||i.focus()}}},onKeyDown:function(e){if("Backspace"===e.key&&!u[n]&&n>0){var t=document.querySelectorAll(".otp-input")[n-1];null==t||t.focus()}},onFocus:function(e){return e.target.select()}},n)}))})}),e("div",{className:"modal-actions",children:[t("button",{className:"cancel-btn",onClick:function(){s(!1),d("")},children:"Cancel"}),t("button",{className:"submit-btn ".concat(6===u.length?"active":"disabled"),onClick:function(){s(!1),6===u.length&&(null==o||o(u))},disabled:6!==u.length,children:"Authorize"})]})]})]}),t("style",{children:"\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n }\n\n .modal-content {\n background: white;\n border-radius: 6px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n width: fit-content;\n min-width: 400px;\n position: relative;\n }\n\n .modal-header {\n padding: 1rem;\n border-bottom: 1px solid #e5e7eb;\n }\n\n .modal-header h3 {\n margin: 0;\n font-size: 1.25rem;\n font-weight: 600;\n color: #374151;\n }\n\n .modal-body {\n padding: 1rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n .otp-container {\n display: flex;\n justify-content: center;\n margin-bottom: 1rem;\n }\n\n .otp-inputs {\n display: flex;\n gap: 0.5rem;\n }\n\n .otp-input {\n width: 40px;\n height: 40px;\n text-align: center;\n font-size: 1.25rem;\n border: 2px solid #d1d5db;\n border-radius: 6px;\n outline: none;\n transition: all 0.2s;\n }\n\n .otp-input:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);\n }\n\n .otp-input:not(:placeholder-shown) {\n border-color: #7761F3;\n }\n\n .modal-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.5rem;\n }\n\n .cancel-btn {\n padding: 0.5rem 1rem;\n background-color: white;\n color: #666;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 90px;\n }\n\n .cancel-btn:hover {\n background-color: white;\n }\n\n .submit-btn {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 110px;\n transition: all 0.2s;\n }\n\n .submit-btn.active {\n background-color: #7761F3;\n color: white;\n cursor: pointer;\n }\n\n .submit-btn.active:hover {\n background-color: #7761F3;\n }\n\n .submit-btn.disabled {\n background-color: #d1d5db;\n color: #6b7280;\n cursor: not-allowed;\n }\n "})]}):null};function Ql(e){var t=i(!1),n=t[0],r=t[1];return d((function(){var t=window.matchMedia(e);r(t.matches);var n=function(e){r(e.matches)};return t.addEventListener("change",n),function(){return t.removeEventListener("change",n)}}),[e]),n}var Kl=function(n){var r,o=n.visible,a=n.onSubmit,l=n.title,s=void 0===l?"Enter 6-digit Code":l,c=n.setVisible,u=n.selectedConversation,d=i("");if(d[0],d[1],!o)return null;var p={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},f=kn(kn({},p),{backgroundColor:"#ffffff",color:"#666",border:"none"}),h=kn(kn({},p),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return c(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t(Hn,{size:18,style:{color:"#FF0000"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:s})]}),e("div",{style:{padding:"20px",color:"#333",fontSize:"18px"},children:[t("span",{style:{fontWeight:"bold"},children:(null===(r=null==u?void 0:u.title)||void 0===r?void 0:r.length)>32?"".concat(u.title.slice(0,32),"..."):(null==u?void 0:u.title)||""})," ","conversation will be permanently removed"]}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:f,onClick:function(){return c(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:h,onClick:function(){return a&&a()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Yes Delete"})]})]})})};function Xl(n){var r=n.onEdit,o=n.onDelete,a=i(!1),l=a[0],s=a[1],c=u(null);d((function(){function e(e){c.current&&!c.current.contains(e.target)&&s(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var p={display:"flex",alignItems:"center",gap:"8px",padding:"0.5rem 1rem",cursor:"pointer",border:"none",backgroundColor:"transparent",width:"100%",textAlign:"left",fontSize:"14px",transition:"background-color 0.2s ease"},f={borderRadius:"50%",padding:"6px",fontSize:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",color:"white"};return e("div",{style:{position:"relative",display:"inline-block"},ref:c,children:[t("button",{onClick:function(e){e.stopPropagation(),s(!l)},style:{backgroundColor:"transparent",border:"none",color:"#333",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},"aria-haspopup":"true","aria-expanded":l,children:t(zn,{size:16})}),l&&e("div",{style:{position:"absolute",top:"100%",right:"0",backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"6px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",zIndex:50,minWidth:"140px",marginTop:"4px"},children:[e("button",{style:p,onClick:function(e){e.stopPropagation(),r(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},f),{backgroundColor:"green"}),children:t(Un,{size:12})}),t("span",{children:"Rename"})]}),e("button",{style:p,onClick:function(e){e.stopPropagation(),o(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},f),{backgroundColor:"red"}),children:t(Hn,{size:12})}),t("span",{children:"Delete"})]})]})]})}var Jl=function(n){var r=n.visible,o=n.onSubmit,i=n.title,a=void 0===i?"Enter 6-digit Code":i,l=n.setVisible;n.selectedConversation;var s=n.tempTitle,c=n.setTempTitle;if(!r)return null;var u={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},d=kn(kn({},u),{backgroundColor:"#ffffff",color:"#666",border:"none"}),p=kn(kn({},u),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return l(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t(Un,{size:18,style:{color:"green"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:a})]}),t("div",{style:{padding:"20px"},children:t("input",{value:s,onChange:function(e){return c(e.target.value)},style:{width:"100%",border:"1px solid #d1d5db",borderRadius:"4px",padding:"10px",fontSize:"14px",outline:"none",transition:"border-color 0.2s ease"},placeholder:"Enter conversation title",onFocus:function(e){e.target.style.borderColor="#7761F3"},onBlur:function(e){e.target.style.borderColor="#d1d5db"}})}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:d,onClick:function(){return l(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:p,onClick:function(){return o&&o()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Save"})]})]})})};function es(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function ts(e,t,n){const r=Ua((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([ns(e[0]),rs(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Ya(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let l=0;const s=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(l!==n&&u.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),l=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(l<e.value.length&&u.push({type:"text",value:e.value.slice(l)}),n.children.splice(s,1,...u)):u=[e];return s+u.length}(e,t)}}function ns(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function rs(e){return"function"==typeof e?e:function(){return e}}const os="phrasing",is=["autolink","link","image","label"];function as(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ls(e){this.config.enter.autolinkProtocol.call(this,e)}function ss(e){this.config.exit.autolinkProtocol.call(this,e)}function cs(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function us(e){this.config.exit.autolinkEmail.call(this,e)}function ds(e){this.exit(e)}function ps(e){ts(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,fs],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,hs]],{ignore:["link","linkReference"]})}function fs(e,t,n,r,o){let i="";if(!ms(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=es(e,"(");let i=es(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function hs(e,t,n,r){return!(!ms(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ms(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||ei(n)||Jo(n))&&(!t||47!==n)}function gs(){this.buffer()}function ys(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vs(){this.buffer()}function bs(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function xs(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Uo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ws(e){this.exit(e)}function ks(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Uo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Cs(e){this.exit(e)}function Ss(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),a(),i+=o.move("]"),i}function Es(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const l=r.enter("footnoteDefinition"),s=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),s(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?Os:Ts)));return l(),a},footnoteReference:Ss},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Ts(e,t,n){return 0===t?e:Os(e,t,n)}function Os(e,t,n){return(n?"":" ")+e}Ss.peek=function(){return"["};const As=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ns(e){this.enter({type:"delete",children:[]},e)}function Ps(e){this.exit(e)}function Is(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function Ds(e){return e.length}function Ls(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function _s(e,t,n){return">"+(n?"":" ")+e}function Rs(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function js(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],Rs(i,a.inConstruct,!0)&&!Rs(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function Ms(e,t,n){return(n?"":" ")+e}function Fs(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function zs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function qs(e,t,n){const r=li(e),o=li(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Bs(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),l=a.move(o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=qs(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=zs(c)+s.slice(1));const d=s.charCodeAt(s.length-1),p=qs(r.after.charCodeAt(0),d,o);p.inside&&(s=s.slice(0,-1)+zs(d));const f=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},l+s+f}function Us(e){return e.value||""}function Hs(e,t,n,r){const o=Fs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("![");return c+=s.move(n.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),c+=s.move(")"),a(),c}function Vs(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("![");const c=n.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Ws(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function $s(e,t){const n=No(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Gs(e,t,n,r){const o=Fs(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let l,s;if($s(e,n)){const t=n.stack;n.stack=[],l=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),l(),n.stack=t,r}l=n.enter("link"),s=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),s()),c+=a.move(")"),l(),c}function Ys(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("[");const c=n.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Zs(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Qs(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Is.peek=function(){return"~"},Bs.peek=function(e,t,n){return n.options.emphasis||"*"},Us.peek=function(){return"<"},Hs.peek=function(){return"!"},Vs.peek=function(){return"!"},Ws.peek=function(){return"`"},Gs.peek=function(e,t,n){return $s(e,n)?"<":"["},Ys.peek=function(){return"["};const Ks=Ua(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Xs(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),l=a.move(o+o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=qs(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=zs(c)+s.slice(1));const d=s.charCodeAt(s.length-1),p=qs(r.after.charCodeAt(0),d,o);p.inside&&(s=s.slice(0,-1)+zs(d));const f=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},l+s+f}Xs.peek=function(e,t,n){return n.options.strong||"*"};const Js={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),_s);return o(),a},break:js,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,Ms);return e(),t}const l=n.createTracker(r),s=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=l.move(s);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...l.current()})),t()}return u+=l.move("\n"),i&&(u+=l.move(i+"\n")),u+=l.move(s),c(),u},definition:function(e,t,n,r){const o=Fs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("[");return c+=s.move(n.safe(n.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),a(),c},emphasis:Bs,hardBreak:js,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return Za(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Ga})),Boolean((!e.depth||e.depth<3)&&No(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),l=n.enter("headingAtx"),s=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=zs(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),s(),l(),c},html:Us,image:Hs,imageReference:Vs,inlineCode:Ws,link:Gs,linkReference:Ys,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Zs(n);const l=e.ordered?"."===a?")":".":function(e){const t=Zs(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let s=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),Qs(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(a=l),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||Zs(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const l=n.createTracker(r);l.move(i+" ".repeat(a-i.length)),l.shift(a);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return s(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return Ks(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Xs,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Qs(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function ec(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function tc(e){this.exit(e),this.data.inTable=void 0}function nc(e){this.enter({type:"tableRow",children:[]},e)}function rc(e){this.exit(e)}function oc(e){this.enter({type:"tableCell",children:[]},e)}function ic(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ac));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ac(e,t){return"|"===t?t:e}function lc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Js.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=s(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=s(e,n,r),i=l([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),l=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Ds,i=[],a=[],l=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=null==(d=e[u][i])?"":String(d);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===s[i]||e>s[i])&&(s[i]=e)}t.push(a)}a[u]=t,l[u]=r}var d;let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)i[p]=Ls(r[p]);else{const e=Ls(r);for(;++p<c;)i[p]=e}p=-1;const f=[],h=[];for(;++p<c;){const e=i[p];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[p]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[p]&&(s[p]=o),h[p]=o),f[p]=a}a.splice(1,0,f),l.splice(1,0,h),u=-1;const m=[];for(;++u<a.length;){const e=a[u],t=l[u];p=-1;const r=[];for(;++p<c;){const o=e[p]||"";let a="",l="";if(!1!==n.alignDelimiters){const e=s[p]-(t[p]||0),n=i[p];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),l=a):l=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!p||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&p===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return l(),i}}function sc(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function cc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function uc(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);i&&l.move(a);let s=Js.listItem(e,t,n,{...r,...l.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),s}const dc={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},pc={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(hc,s,l)(t):null===t||Ko(t)||ei(t)||45!==t&&Jo(t)?s(t):(i=!0,e.consume(t),a)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},fc={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(hc,t,i)(a):null===a||Ko(a)||ei(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},hc={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||Ko(a)||ei(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||Ko(e)||ei(e)?t(e):r(e)}function i(e){return Ho(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):Ho(t)?(e.consume(t),a):n(t)}},partial:!0},mc={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Vo(e)?n(e):t(e)}},partial:!0},gc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!wc.call(r,r.previous)||Ec(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(dc,e.attempt(pc,e.attempt(fc,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:wc},yc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&kc.call(r,r.previous)&&!Ec(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(Ho(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),i?s:(i=!0,l)):n(t)}function s(t){return null===t||$o(t)||Ko(t)||ei(t)||Jo(t)?n(t):e.attempt(pc,e.attempt(fc,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:kc},vc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Sc(t)||!Cc.call(r,r.previous)||Ec(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Sc(t)?(e.consume(t),a):64===t?(e.consume(t),l):n(t)}function l(t){return 46===t?e.check(mc,c,s)(t):45===t||95===t||Vo(t)?(i=!0,e.consume(t),l):c(t)}function s(t){return e.consume(t),o=!0,l}function c(a){return i&&o&&Ho(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Cc},bc={};let xc=48;for(;xc<123;)bc[xc]=vc,xc++,58===xc?xc=65:91===xc&&(xc=97);function wc(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Ko(e)}function kc(e){return!Ho(e)}function Cc(e){return!(47===e||Sc(e))}function Sc(e){return 43===e||45===e||46===e||95===e||Vo(e)}function Ec(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}bc[43]=vc,bc[45]=vc,bc[46]=vc,bc[95]=vc,bc[72]=[vc,yc],bc[104]=[vc,yc],bc[87]=[vc,gc],bc[119]=[vc,gc];const Tc={tokenize:function(e,t,n){const r=this;return ri(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Oc(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const l=Uo(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==l.codePointAt(0)||!i.includes(l.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Ac(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function Nc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(l){if(a>999||93===l&&!i||null===l||91===l||Ko(l))return n(l);if(93===l){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(Uo(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return Ko(l)||(i=!0),a++,e.consume(l),92===l?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function Pc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(l>999||93===t&&!a||null===t||91===t||Ko(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Uo(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Ko(t)||(a=!0),l++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),ri(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function Ic(e,t,n){return e.check(pi,t,e.attempt(Tc,t,n))}function Dc(e){e.exit("gfmFootnoteDefinition")}function Lc(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),l(t)};function l(i){const s=li(o);if(126===i)return a>1?r(i):(e.consume(i),a++,l);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=li(i);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],l=t.parser.constructs.insideSpan.null;l&&Ro(a,a.length,0,si(l,e.slice(r+1,n),t)),Ro(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),Ro(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class _c{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function Rc(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function jc(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?x:l;if(i===x&&r.parser.lazy[r.now().line])return n(e);return i(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return s(e);return o=!0,a+=1,s(e)}(t)}function s(t){return null===t?n(t):Qo(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Xo(t)?ri(e,s,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,s):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Ko(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,Xo(t)?ri(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):b(t)}function f(t){return Xo(t)?ri(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Qo(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return Xo(t)?ri(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?p(n):(null===n||Qo(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function x(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||Qo(n)?(e.exit("tableRow"),t(n)):Xo(n)?ri(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||Ko(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?C:k)}function C(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function Mc(e,t){let n,r,o,i=-1,a=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new _c;for(;++i<e.length;){const f=e[i],h=f[1];"enter"===f[0]?"tableHead"===h.type?(u=!1,0!==d&&(zc(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,s=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",r,t]])),l="tableDelimiterRow"===h.type?2:r?3:1):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==s[1]&&(c[0]=c[1],o=Fc(p,t,s,l,void 0,o)),s=c,c=[s[1],i,0,0])):(a=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],o=Fc(p,t,s,l,void 0,o),s=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==s[1]?(c[0]=c[1],o=Fc(p,t,s,l,i,o)):0!==c[1]&&(o=Fc(p,t,c,l,i,o)),l=0):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&zc(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Rc(t.events,i))}return e}function Fc(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},qc(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=qc(t.events,n[1]);if(i={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=qc(t.events,n[2]),i=qc(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},qc(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function zc(e,t,n,r,o){const i=[],a=qc(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function qc(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Bc={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return Ko(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Qo(r)?t(r):Xo(r)?e.check({tokenize:Uc},t,n)(r):n(r)}}};function Uc(e,t,n){return ri(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const Hc={};function Vc(e){const t=e||Hc,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Fo([{text:bc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Pc,continuation:{tokenize:Ic},exit:Dc}},text:{91:{name:"gfmFootnoteCall",tokenize:Nc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Oc,resolveTo:Ac}}},Lc(e),{flow:{null:{name:"table",tokenize:jc,resolveAll:Mc}}},{text:{91:Bc}}])}(t)),o.push([{transforms:[ps],enter:{literalAutolink:as,literalAutolinkEmail:ls,literalAutolinkHttp:ls,literalAutolinkWww:ls},exit:{literalAutolink:ds,literalAutolinkEmail:us,literalAutolinkHttp:ss,literalAutolinkWww:cs}},{enter:{gfmFootnoteCallString:gs,gfmFootnoteCall:ys,gfmFootnoteDefinitionLabelString:vs,gfmFootnoteDefinition:bs},exit:{gfmFootnoteCallString:xs,gfmFootnoteCall:ws,gfmFootnoteDefinitionLabelString:ks,gfmFootnoteDefinition:Cs}},{canContainEols:["delete"],enter:{strikethrough:Ns},exit:{strikethrough:Ps}},{enter:{table:ec,tableData:oc,tableHeader:oc,tableRow:nc},exit:{codeText:ic,table:tc,tableData:rc,tableHeader:rc,tableRow:rc}},{exit:{taskListCheckValueChecked:sc,taskListCheckValueUnchecked:sc,paragraph:cc}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:os,notInConstruct:is},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:os,notInConstruct:is},{character:":",before:"[ps]",after:"\\/",inConstruct:os,notInConstruct:is}]},Es(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:As}],handlers:{delete:Is}},lc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:uc}}]}}(t))}var Wc=function(e){var n=e.children,r=e.expandedWidth,o=void 0===r?"280px":r;e.collapsedWidth;var i=e.className,a=void 0===i?"":i,l=e.isExpanded;return e.setIsExpanded,t("div",{style:{position:"relative",height:"100%"},children:t("div",{style:kn({height:"100%",backgroundColor:"transparent",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",paddingRight:"0.25rem",marginTop:"0.25rem",width:l?o:"0px"},a&&{className:a}),children:t("div",{style:{height:"100%",overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:t("div",{style:{height:"100%",transition:"opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1)",opacity:l?1:0,pointerEvents:l?"auto":"none",overflow:"auto"},children:n})})})})};function $c(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Gc(e,n=[]){let o=[];const i=()=>{const t=o.map((e=>r.createContext(e)));return function(n){const o=n?.[e]||t;return r.useMemo((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return i.scopeName=e,[function(n,i){const a=r.createContext(i),l=o.length;o=[...o,i];const s=n=>{const{scope:o,children:i,...s}=n,c=o?.[e]?.[l]||a,u=r.useMemo((()=>s),Object.values(s));return t(c.Provider,{value:u,children:i})};return s.displayName=n+"Provider",[s,function(t,o){const s=o?.[e]?.[l]||a,c=r.useContext(s);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},Yc(i,...n)]}function Yc(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function Zc(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Qc(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Zc(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Zc(e[t],null)}}}}function Kc(...e){return r.useCallback(Qc(...e),e)}function Xc(e){const n=Jc(e),o=r.forwardRef(((e,o)=>{const{children:i,...a}=e,l=r.Children.toArray(i),s=l.find(tu);if(s){const e=s.props.children,i=l.map((t=>t===s?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t));return t(n,{...a,ref:o,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return t(n,{...a,ref:o,children:i})}));return o.displayName=`${e}.Slot`,o}function Jc(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?Qc(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var eu=Symbol("radix.slottable");function tu(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eu}var nu=globalThis?.document?r.useLayoutEffect:()=>{},ru=r[" useId ".trim().toString()]||(()=>{}),ou=0;function iu(e){const[t,n]=r.useState(ru());return nu((()=>{n((e=>e??String(ou++)))}),[e]),e||(t?`radix-${t}`:"")}var au=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,n)=>{const o=Xc(`Primitive.${n}`),i=r.forwardRef(((e,r)=>{const{asChild:i,...a}=e,l=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t(l,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...e,[n]:i}}),{});var lu=r[" useInsertionEffect ".trim().toString()]||nu;function su({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[i,a,l]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return lu((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s}),[s,o])}const u=r.useCallback((t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&l.current?.(n)}else a(t)}),[s,e,a,l]);return[c,u]}var cu=r.createContext(void 0);function uu(e){const t=r.useContext(cu);return e||t||"ltr"}var du="rovingFocusGroup.onEntryFocus",pu={bubbles:!1,cancelable:!0},fu="RovingFocusGroup",[hu,mu,gu]=function(e){const n=e+"CollectionProvider",[r,i]=Gc(n),[a,l]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:n,children:r}=e,i=o.useRef(null),l=o.useRef(new Map).current;return t(a,{scope:n,itemMap:l,collectionRef:i,children:r})};s.displayName=n;const c=e+"CollectionSlot",u=Xc(c),d=o.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=Kc(n,l(c,r).collectionRef);return t(u,{ref:i,children:o})}));d.displayName=c;const p=e+"CollectionItemSlot",f="data-radix-collection-item",h=Xc(p),m=o.forwardRef(((e,n)=>{const{scope:r,children:i,...a}=e,s=o.useRef(null),c=Kc(n,s),u=l(p,r);return o.useEffect((()=>(u.itemMap.set(s,{ref:s,...a}),()=>{u.itemMap.delete(s)}))),t(h,{[f]:"",ref:c,children:i})}));return m.displayName=p,[{Provider:s,Slot:d,ItemSlot:m},function(t){const n=l(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},i]}(fu),[yu,vu]=Gc(fu,[gu]),[bu,xu]=yu(fu),wu=r.forwardRef(((e,n)=>t(hu.Provider,{scope:e.__scopeRovingFocusGroup,children:t(hu.Slot,{scope:e.__scopeRovingFocusGroup,children:t(ku,{...e,ref:n})})})));wu.displayName=fu;var ku=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...f}=e,h=r.useRef(null),m=Kc(n,h),g=uu(l),[y,v]=su({prop:s,defaultProp:c??null,onChange:u,caller:fu}),[b,x]=r.useState(!1),w=function(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}(d),k=mu(o),C=r.useRef(!1),[S,E]=r.useState(0);return r.useEffect((()=>{const e=h.current;if(e)return e.addEventListener(du,w),()=>e.removeEventListener(du,w)}),[w]),t(bu,{scope:o,orientation:i,dir:g,loop:a,currentTabStopId:y,onItemFocus:r.useCallback((e=>v(e)),[v]),onItemShiftTab:r.useCallback((()=>x(!0)),[]),onFocusableItemAdd:r.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:r.useCallback((()=>E((e=>e-1))),[]),children:t(au.div,{tabIndex:b||0===S?-1:0,"data-orientation":i,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:$c(e.onMouseDown,(()=>{C.current=!0})),onFocus:$c(e.onFocus,(e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(du,pu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));Tu([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),p)}}C.current=!1})),onBlur:$c(e.onBlur,(()=>x(!1)))})})})),Cu="RovingFocusGroupItem",Su=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:l,children:s,...c}=e,u=iu(),d=l||u,p=xu(Cu,o),f=p.currentTabStopId===d,h=mu(o),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:y}=p;return r.useEffect((()=>{if(i)return m(),()=>g()}),[i,m,g]),t(hu.ItemSlot,{scope:o,id:d,focusable:i,active:a,children:t(au.span,{tabIndex:f?0:-1,"data-orientation":p.orientation,...c,ref:n,onMouseDown:$c(e.onMouseDown,(e=>{i?p.onItemFocus(d):e.preventDefault()})),onFocus:$c(e.onFocus,(()=>p.onItemFocus(d))),onKeyDown:$c(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Eu[r]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=p.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Tu(o)))}var n,r})),children:"function"==typeof s?s({isCurrentTabStop:f,hasTabStop:null!=y}):s})})}));Su.displayName=Cu;var Eu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Tu(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Ou=wu,Au=Su;var Nu=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef(null),i=r.useRef(e),a=r.useRef("none"),l=e?"mounted":"unmounted",[s,c]=function(e,t){return r.useReducer(((e,n)=>t[e][n]??e),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=Pu(o.current);a.current="mounted"===s?e:"none"}),[s]),nu((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=Pu(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),nu((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const a=Pu(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&a&&(c("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},l=e=>{e.target===t&&(a.current=Pu(o.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback((e=>{o.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=Kc(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function Pu(e){return e?.animationName||"none"}Nu.displayName="Presence";var Iu="Tabs",[Du,Lu]=Gc(Iu,[vu]),_u=vu(),[Ru,ju]=Du(Iu),Mu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:s,activationMode:c="automatic",...u}=e,d=uu(s),[p,f]=su({prop:o,onChange:i,defaultProp:a??"",caller:Iu});return t(Ru,{scope:r,baseId:iu(),value:p,onValueChange:f,orientation:l,dir:d,activationMode:c,children:t(au.div,{dir:d,"data-orientation":l,...u,ref:n})})}));Mu.displayName=Iu;var Fu="TabsList",zu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,loop:o=!0,...i}=e,a=ju(Fu,r),l=_u(r);return t(Ou,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:o,children:t(au.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:n})})}));zu.displayName=Fu;var qu="TabsTrigger",Bu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...a}=e,l=ju(qu,r),s=_u(r),c=Hu(l.baseId,o),u=Vu(l.baseId,o),d=o===l.value;return t(Au,{asChild:!0,...s,focusable:!i,active:d,children:t(au.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:n,onMouseDown:$c(e.onMouseDown,(e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(o)})),onKeyDown:$c(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(o)})),onFocus:$c(e.onFocus,(()=>{const e="manual"!==l.activationMode;d||i||!e||l.onValueChange(o)}))})})}));Bu.displayName=qu;var Uu="TabsContent";function Hu(e,t){return`${e}-trigger-${t}`}function Vu(e,t){return`${e}-content-${t}`}r.forwardRef(((e,n)=>{const{__scopeTabs:o,value:i,forceMount:a,children:l,...s}=e,c=ju(Uu,o),u=Hu(c.baseId,i),d=Vu(c.baseId,i),p=i===c.value,f=r.useRef(p);return r.useEffect((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),t(Nu,{present:a||p,children:({present:r})=>t(au.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...s,ref:n,style:{...e.style,animationDuration:f.current?"0s":void 0},children:r&&l})})})).displayName=Uu;var Wu=Mu,$u=zu,Gu=Bu;function Yu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Yu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Zu=e=>{const t=Ju(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Qu(n,t)||Xu(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Qu=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Qu(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},Ku=/^\[(.+)\]$/,Xu=e=>{if(Ku.test(e)){const t=Ku.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ju=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)ed(n[e],r,e,t);return r},ed=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return nd(e)?void ed(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{ed(o,td(t,e),n,r)}))}else{(""===e?t:td(t,e)).classGroupId=n}}))},td=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},nd=e=>e.isThemeGetter,rd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},od=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let a=0;a<e.length;a++){let l=e[a];if(0===r&&0===o){if(":"===l){t.push(e.slice(i,a)),i=a+1;continue}if("/"===l){n=a;continue}}"["===l?r++:"]"===l?r--:"("===l?o++:")"===l&&o--}const a=0===t.length?e:e.substring(i),l=id(a);return{modifiers:t,hasImportantModifier:l!==a,baseClassName:l,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},id=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,ad=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach((e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)})),n.push(...r.sort()),n}},ld=/\s+/;function sd(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=cd(e))&&(r&&(r+=" "),r+=t);return r}const cd=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=cd(e[r]))&&(n&&(n+=" "),n+=t);return n};function ud(e,...t){let n,r,o,i=function(l){const s=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:rd(e.cacheSize),parseClassName:od(e),sortModifiers:ad(e),...Zu(e)}))(s),r=n.cache.get,o=n.cache.set,i=a,a(l)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],l=e.trim().split(ld);let s="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(t);if(c){s=t+(s.length>0?" "+s:s);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h){s=t+(s.length>0?" "+s:s);continue}if(m=r(p),!m){s=t+(s.length>0?" "+s:s);continue}h=!1}const g=i(u).join(":"),y=d?g+"!":g,v=y+m;if(a.includes(v))continue;a.push(v);const b=o(m,h);for(let e=0;e<b.length;++e){const t=b[e];a.push(y+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(sd.apply(null,arguments))}}const dd=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},pd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hd=/^\d+\/\d+$/,md=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xd=e=>hd.test(e),wd=e=>!!e&&!Number.isNaN(Number(e)),kd=e=>!!e&&Number.isInteger(Number(e)),Cd=e=>e.endsWith("%")&&wd(e.slice(0,-1)),Sd=e=>md.test(e),Ed=()=>!0,Td=e=>gd.test(e)&&!yd.test(e),Od=()=>!1,Ad=e=>vd.test(e),Nd=e=>bd.test(e),Pd=e=>!Dd(e)&&!Fd(e),Id=e=>Wd(e,Zd,Od),Dd=e=>pd.test(e),Ld=e=>Wd(e,Qd,Td),_d=e=>Wd(e,Kd,wd),Rd=e=>Wd(e,Gd,Od),jd=e=>Wd(e,Yd,Nd),Md=e=>Wd(e,Jd,Ad),Fd=e=>fd.test(e),zd=e=>$d(e,Qd),qd=e=>$d(e,Xd),Bd=e=>$d(e,Gd),Ud=e=>$d(e,Zd),Hd=e=>$d(e,Yd),Vd=e=>$d(e,Jd,!0),Wd=(e,t,n)=>{const r=pd.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},$d=(e,t,n=!1)=>{const r=fd.exec(e);return!!r&&(r[1]?t(r[1]):n)},Gd=e=>"position"===e||"percentage"===e,Yd=e=>"image"===e||"url"===e,Zd=e=>"length"===e||"size"===e||"bg-size"===e,Qd=e=>"length"===e,Kd=e=>"number"===e,Xd=e=>"family-name"===e,Jd=e=>"shadow"===e,ep=ud((()=>{const e=dd("color"),t=dd("font"),n=dd("text"),r=dd("font-weight"),o=dd("tracking"),i=dd("leading"),a=dd("breakpoint"),l=dd("container"),s=dd("spacing"),c=dd("radius"),u=dd("shadow"),d=dd("inset-shadow"),p=dd("text-shadow"),f=dd("drop-shadow"),h=dd("blur"),m=dd("perspective"),g=dd("aspect"),y=dd("ease"),v=dd("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Fd,Dd],x=()=>[Fd,Dd,s],w=()=>[xd,"full","auto",...x()],k=()=>[kd,"none","subgrid",Fd,Dd],C=()=>["auto",{span:["full",kd,Fd,Dd]},kd,Fd,Dd],S=()=>[kd,"auto",Fd,Dd],E=()=>["auto","min","max","fr",Fd,Dd],T=()=>["auto",...x()],O=()=>[xd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],A=()=>[e,Fd,Dd],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Bd,Rd,{position:[Fd,Dd]}],P=()=>["auto","cover","contain",Ud,Id,{size:[Fd,Dd]}],I=()=>[Cd,zd,Ld],D=()=>["","none","full",c,Fd,Dd],L=()=>["",wd,zd,Ld],_=()=>[wd,Cd,Bd,Rd],R=()=>["","none",h,Fd,Dd],j=()=>["none",wd,Fd,Dd],M=()=>["none",wd,Fd,Dd],F=()=>[wd,Fd,Dd],z=()=>[xd,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sd],breakpoint:[Sd],color:[Ed],container:[Sd],"drop-shadow":[Sd],ease:["in","out","in-out"],font:[Pd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sd],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sd],shadow:[Sd],spacing:["px",wd],text:[Sd],"text-shadow":[Sd],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xd,Dd,Fd,g]}],container:["container"],columns:[{columns:[wd,Dd,Fd,l]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[kd,"auto",Fd,Dd]}],basis:[{basis:[xd,"full","auto",l,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[wd,xd,"auto","initial","none",Dd]}],grow:[{grow:["",wd,Fd,Dd]}],shrink:[{shrink:["",wd,Fd,Dd]}],order:[{order:[kd,"first","last","none",Fd,Dd]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[l,"screen",...O()]}],"min-w":[{"min-w":[l,"screen","none",...O()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,zd,Ld]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Fd,_d]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cd,Dd]}],"font-family":[{font:[qd,Dd,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Fd,Dd]}],"line-clamp":[{"line-clamp":[wd,"none",Fd,_d]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",Fd,Dd]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Fd,Dd]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[wd,"from-font","auto",Fd,Ld]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[wd,"auto",Fd,Dd]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Fd,Dd]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Fd,Dd]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},kd,Fd,Dd],radial:["",Fd,Dd],conic:[kd,Fd,Dd]},Hd,jd]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[wd,Fd,Dd]}],"outline-w":[{outline:["",wd,zd,Ld]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,Vd,Md]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",d,Vd,Md]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[wd,Ld]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",p,Vd,Md]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[wd,Fd,Dd]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[wd]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Fd,Dd]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[wd]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Fd,Dd]}],filter:[{filter:["","none",Fd,Dd]}],blur:[{blur:R()}],brightness:[{brightness:[wd,Fd,Dd]}],contrast:[{contrast:[wd,Fd,Dd]}],"drop-shadow":[{"drop-shadow":["","none",f,Vd,Md]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",wd,Fd,Dd]}],"hue-rotate":[{"hue-rotate":[wd,Fd,Dd]}],invert:[{invert:["",wd,Fd,Dd]}],saturate:[{saturate:[wd,Fd,Dd]}],sepia:[{sepia:["",wd,Fd,Dd]}],"backdrop-filter":[{"backdrop-filter":["","none",Fd,Dd]}],"backdrop-blur":[{"backdrop-blur":R()}],"backdrop-brightness":[{"backdrop-brightness":[wd,Fd,Dd]}],"backdrop-contrast":[{"backdrop-contrast":[wd,Fd,Dd]}],"backdrop-grayscale":[{"backdrop-grayscale":["",wd,Fd,Dd]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[wd,Fd,Dd]}],"backdrop-invert":[{"backdrop-invert":["",wd,Fd,Dd]}],"backdrop-opacity":[{"backdrop-opacity":[wd,Fd,Dd]}],"backdrop-saturate":[{"backdrop-saturate":[wd,Fd,Dd]}],"backdrop-sepia":[{"backdrop-sepia":["",wd,Fd,Dd]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Fd,Dd]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[wd,"initial",Fd,Dd]}],ease:[{ease:["linear","initial",y,Fd,Dd]}],delay:[{delay:[wd,Fd,Dd]}],animate:[{animate:["none",v,Fd,Dd]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Fd,Dd]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:F()}],"skew-x":[{"skew-x":F()}],"skew-y":[{"skew-y":F()}],transform:[{transform:[Fd,Dd,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Fd,Dd]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Fd,Dd]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[wd,zd,Ld,_d]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}));function tp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ep(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yu(e))&&(r&&(r+=" "),r+=t);return r}(e))}function np(e){var n=e.className,r=Cn(e,["className"]);return t(Wu,kn({"data-slot":"tabs",className:tp("flex flex-col gap-2",n)},r))}function rp(e){var n=e.className,r=Cn(e,["className"]);return t($u,kn({"data-slot":"tabs-list",className:tp("flex gap-1 bg-[#e8e8e8] p-1 rounded-lg ",n)},r))}function op(e){var n=e.className,r=Cn(e,["className"]);return t(Gu,kn({"data-slot":"tabs-trigger",className:tp("flex-1 select-none rounded-md px-2 py-2 text-xs font-semibold text-[#666] transition-all duration-150 flex items-center justify-center gap-1 cursor-pointer hover:bg-white/50 data-[state=active]:bg-white data-[state=active]:text-[#1a1a1a] data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",n)},r))}var ip={devops:{icon:"⚡",title:"DevOps Assistant",subtitle:"Ask me anything about builds, deployments, and infrastructure",theme:{primary:"#3b82f6",background:"#f0f9ff",border:"#bfdbfe",cardHover:"#dbeafe"},quickActions:[{id:"1",title:"Build Status",description:"Show me the latest build status for applications",query:"Show me the latest build status for applications",category:"general",icon:"🔨"},{id:"2",title:"Deployment History",description:"Summarize deployment history for this month",query:"Summarize deployment history for this month",category:"general",icon:"🚀"},{id:"3",title:"Infrastructure Config",description:"Review infrastructure configuration for environments",query:"Review infrastructure configuration for environments",category:"general",icon:"🏗️"},{id:"4",title:"DORA Metrics",description:"What are the DORA metrics for last quarter?",query:"What are the DORA metrics for last quarter?",category:"general",icon:"📊"}]},security:{icon:"🛡️",title:"Security Operations Assistant",subtitle:"Ask me about vulnerabilities, scans, and security compliance",theme:{primary:"#ef4444",background:"#fef2f2",border:"#fecaca",cardHover:"#fee2e2"},quickActions:[{id:"1",title:"Critical Vulnerabilities",description:"Show me all critical vulnerabilities across applications",query:"Show me all critical vulnerabilities across applications",category:"vulnerabilities",icon:"🔍"},{id:"2",title:"Compliance Report",description:"Generate security compliance report for Q4",query:"Generate security compliance report for Q4",category:"compliance",icon:"📋"},{id:"3",title:"Failed Scans",description:"Which scans failed in the last 24 hours?",query:"Which scans failed in the last 24 hours?",category:"scans",icon:"⚠️"},{id:"4",title:"Security Posture",description:"Compare security posture: DEV vs PROD",query:"Compare security posture: DEV vs PROD",category:"comparison",icon:"🎯"}]},sre:{icon:"📊",title:"Site Reliability Assistant",subtitle:"Ask me about incidents, monitoring, performance, and SLOs",theme:{primary:"#10b981",background:"#f0fdf4",border:"#bbf7d0",cardHover:"#dcfce7"},quickActions:[{id:"1",title:"Active Incidents",description:"Show me active incidents and their severity",query:"Show me active incidents and their severity",category:"general",icon:"🚨"},{id:"2",title:"Uptime Report",description:"What is the uptime for production services?",query:"What is the uptime for production services?",category:"general",icon:"📈"},{id:"3",title:"Latency Analysis",description:"Analyze latency trends for the past week",query:"Analyze latency trends for the past week",category:"general",icon:"⚡"},{id:"4",title:"SLO Targets",description:"Are we meeting our SLO targets?",query:"Are we meeting our SLO targets?",category:"general",icon:"🎯"}]}},ap=function(n){var r=n.setMessage;n.onSendMessage;var o=n.type,i=n.quickActions,a=n.className,l=void 0===a?"":a,s=ip[o],c=i||s.quickActions;return e("div",{className:"security-assistant ".concat(l),style:{"--primary-color":s.theme.primary,"--background-color":s.theme.background,"--border-color":s.theme.border,"--card-hover-color":s.theme.cardHover},children:[e("div",{className:"assistant-header",children:[t("div",{className:"agent-icon-title",children:e("div",{children:[t("span",{className:"agent-icon",style:{width:"64px",height:"64px",background:"#9333ea",borderRadius:"16px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"32px",margin:"auto",color:"white"},children:s.icon}),t("h2",{style:{fontSize:"28px",fontWeight:600,color:"#1a1a1a",marginBottom:"12px"},children:s.title})]})}),t("p",{style:{fontSize:"16px",color:"#666",textAlign:"center",margin:"auto",maxWidth:"500px"},children:s.subtitle})]}),t("div",{className:"quick-actions-grid",children:c.map((function(n){return t("div",{className:"security-card ".concat(n.category),onClick:function(){return function(e){console.log(e),r(e.query)}(n)},children:e("div",{className:"card-content",children:[n.icon&&t("div",{className:"card-icon",children:n.icon}),t("h3",{className:"card-title",children:n.title}),t("p",{className:"card-description",children:n.description})]})},n.id)}))}),t("style",{children:"\n .security-assistant {\n // margin-bottom:5vh;\n background: none;\n // border-radius: 12px;\n padding: 20px;\n // box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n // border: 1px solid var(--border-color);\n }\n\n .assistant-header {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .agent-icon-title {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .agent-icon {\n font-size: 24px;\n }\n\n .assistant-header h2 {\n margin: 0;\n color: #1f2937;\n font-size: 1.5rem;\n font-weight: 600;\n }\n\n .assistant-header p {\n margin: 0;\n color: #6b7280;\n font-size: 0.875rem;\n }\n\n .quick-actions-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 12px;\n margin-bottom: 24px;\n padding-left:18vw;\n padding-right:18vw;\n }\n\n .security-card {\n background: #f9f9f9;\n border: 1px solid #e5e5e5;\n border-radius: 8px;\n padding: 16px;\n cursor: pointer;\n transition: all 0.2s ease;\n position: relative;\n overflow: hidden;\n // border-left: 4px solid var(--primary-color);\n }\n\n .security-card:hover {\n // background: var(--card-hover-color);\n // // border-color: var(--primary-color);\n // transform: translateY(-2px);\n // box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n }\n\n .card-content {\n position: relative;\n z-index: 2;\n }\n\n .card-icon {\n font-size: 20px;\n margin-bottom: 8px;\n }\n\n .card-title {\n margin: 0 0 8px 0;\n font-size: 14px;\n font-weight: 600;\n color: #1f2937;\n }\n\n .card-description {\n margin: 0;\n font-size: 12px;\n color: #6b7280;\n line-height: 1.4;\n }\n\n .card-hover-effect {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n // background: linear-gradient(135deg, var(--primary-color), var(--primary-color));\n color: white;\n display: flex;\n align-items: start;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s ease;\n z-index: 1;\n }\n\n .security-card:hover .card-hover-effect {\n opacity: 1;\n }\n\n .card-hover-effect span {\n font-size: 12px;\n font-weight: 500;\n }\n\n .message-input-section {\n border-top: 1px solid #e5e7eb;\n padding-top: 20px;\n }\n\n .input-container {\n display: flex;\n gap: 12px;\n margin-bottom: 8px;\n }\n\n .message-input {\n flex: 1;\n padding: 12px 16px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n outline: none;\n transition: border-color 0.2s ease, box-shadow 0.2s ease;\n }\n\n .message-input:focus {\n border-color: var(--primary-color);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 10%, transparent);\n }\n\n .send-button {\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 8px;\n padding: 12px 16px;\n cursor: pointer;\n transition: background 0.2s ease;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .send-button:hover:not(:disabled) {\n background: color-mix(in srgb, var(--primary-color) 80%, black);\n }\n\n .send-button:disabled {\n background: #9ca3af;\n cursor: not-allowed;\n }\n\n .input-hint {\n font-size: 12px;\n color: #6b7280;\n margin: 0;\n }\n\n /* Category-specific styles */\n .security-card.vulnerabilities {\n // border-left-color: #ef4444;\n }\n\n .security-card.scans {\n // border-left-color: #f59e0b;\n }\n\n .security-card.compliance {\n // border-left-color: #10b981;\n }\n\n .security-card.comparison {\n // border-left-color: #8b5cf6;\n }\n\n .security-card.general {\n // border-left-color: #6b7280;\n }\n "})]})},lp=function(){return t("div",{className:"fixed inset-0 bg-black/30 flex items-center justify-center z-50",children:t("img",{src:"/images/loading-icon.svg",alt:"Loading...",className:"w-32 h-32"})})},sp=null,cp=function(){var r=i([]),o=r[0],a=r[1],l=m((function(e){var t=Math.random().toString(36).substr(2,9),n=kn(kn({},e),{id:t});a((function(e){return Tn(Tn([],e,!0),[n],!1)})),setTimeout((function(){a((function(e){return e.filter((function(e){return e.id!==t}))}))}),e.life||5e3)}),[]),s=m((function(e){a((function(t){return t.filter((function(t){return t.id!==e}))}))}),[]);return d((function(){return sp={show:l},function(){sp=null}}),[l]),e(n,{children:[t("div",{className:"toast-container",children:o.map((function(n,r){return t("div",{className:"toast toast-".concat(n.severity),style:{animationDelay:"".concat(100*r,"ms"),top:"".concat(20+80*r,"px")},children:e("div",{className:"toast-content",children:[e("span",{className:"toast-icon",children:["success"===n.severity&&"✅","error"===n.severity&&"❌","warn"===n.severity&&"⚠️","info"===n.severity&&"ℹ️"]}),e("div",{className:"toast-text",children:[t("div",{className:"toast-summary",children:n.summary}),n.detail&&t("div",{className:"toast-detail",children:n.detail})]}),t("button",{className:"toast-close",onClick:function(){return s(n.id)},children:"×"})]})},n.id)}))}),t("style",{children:"\n .toast-container {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999;\n display: flex;\n flex-direction: column;\n gap: 10px;\n max-width: 400px;\n }\n\n .toast {\n background: white;\n border-radius: 8px;\n padding: 12px 16px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border-left: 4px solid #ccc;\n animation: slideIn 0.3s ease-out;\n transition: all 0.3s ease;\n min-width: 300px;\n max-width: 400px;\n }\n\n .toast-success {\n border-left-color: #10b981;\n background: #f0fdf4;\n }\n\n .toast-error {\n border-left-color: #ef4444;\n background: #fef2f2;\n }\n\n .toast-warn {\n border-left-color: #f59e0b;\n background: #fffbeb;\n }\n\n .toast-info {\n border-left-color: #3b82f6;\n background: #eff6ff;\n }\n\n .toast-content {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n }\n\n .toast-icon {\n font-size: 16px;\n flex-shrink: 0;\n margin-top: 2px;\n }\n\n .toast-text {\n flex: 1;\n min-width: 0;\n }\n\n .toast-summary {\n font-size: 14px;\n font-weight: 600;\n color: #374151;\n margin-bottom: 4px;\n }\n\n .toast-detail {\n font-size: 13px;\n color: #6b7280;\n line-height: 1.4;\n }\n\n .toast-close {\n background: none;\n border: none;\n font-size: 18px;\n cursor: pointer;\n color: #6b7280;\n padding: 0;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n flex-shrink: 0;\n margin-top: -2px;\n }\n\n .toast-close:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n\n @keyframes slideIn {\n from {\n transform: translateX(100%);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n\n @keyframes slideOut {\n from {\n transform: translateX(0);\n opacity: 1;\n }\n to {\n transform: translateX(100%);\n opacity: 0;\n }\n }\n\n .toast.hiding {\n animation: slideOut 0.3s ease-in forwards;\n }\n "})]})},up=function(e){sp?sp.show(e):(console.log("Toast:",e),"error"===e.severity&&alert("Error: ".concat(e.summary," - ").concat(e.detail)))},dp=function(r){var a=r.app_type;r.placeholder,r.sidebarClassName,r.className;var l=r.HTTP;r.closeChat;var s=o.useState(""),c=s[0],p=s[1],f=o.useState({}),h=f[0],g=f[1],y=o.useState("devops"),v=y[0],w=y[1],k=o.useState(!1),C=k[0],S=k[1],E=i(!0),T=E[0],O=E[1],A=i([]),N=A[0],P=A[1],I=i(!1),D=I[0],L=I[1],_=i(!1),R=_[0],j=_[1],M=i(null);M[0];var F=M[1],z=i([]),q=z[0],B=z[1],U=i([]);U[0];var H=U[1],V=i({}),W=V[0];V[1];var $=i(""),G=$[0],Y=$[1],Z=i([]),Q=Z[0],K=Z[1],X=i(!1),J=X[0],ee=X[1],te=i((new Date).toISOString().split("T")[0]),ne=te[0],re=te[1],oe=u(null),ie=i(""),ae=ie[0],le=ie[1],se=i(null),ce=se[0],ue=se[1],de=i(!1),pe=de[0],fe=de[1],he=u(null),me=i([]),ge=me[0],ye=me[1],ve=i([]),be=ve[0],xe=ve[1],we=i(null),ke=we[0],Ce=we[1],Se=i(!1),Ee=Se[0],Te=Se[1],Oe=i(!1),Ae=Oe[0],Ne=Oe[1],Pe=Nn(),Ie=Pe.getTaskID,De=Pe.prompts,Le=Pe.setPrompts,_e=Pe.isLoading,Re=Pe.isResize;Pe.setIsResize;var je=i(""),Me=je[0],Fe=je[1],ze=i(!0),qe=ze[0],Be=ze[1],Ue=i([{label:"Project",options:[],disabled:!1},{label:"Application",options:[],disabled:!0},{label:"Action Type",options:"devops"===v?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:"sre"===v?[{label:"SRE",value:"sre"}]:[],disabled:!0},{label:"Environment",options:[],disabled:!0},{label:"Metric Type",options:[{label:"Uptime",value:"uptime"},{label:"Latency",value:"latency"},{label:"Error Rate",value:"error_rate"},{label:"Throughput",value:"throughput"}],disabled:!1},{label:"Category",options:[],disabled:!1},{label:"Tool",options:[],disabled:!1},{label:"Scan Type",options:[],disabled:!1}]),He=Ue[0],Ve=Ue[1];function We(e){try{var t=e.includes(".")?e.split(".")[1]:e;return JSON.parse(atob(t))}catch(e){return console.error("Decode error:",e),null}}var $e=Ql("(max-width: 640px)"),Ge=Ql("(max-width: 1024px)");Ql("(min-width: 1024px)");var Ye=Ql("(max-width: 640px)"),Ze=m((function(){return Sn(void 0,void 0,void 0,(function(){var e,t,n,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_conversation_titles/",{app_type:a})];case 1:return e=o.sent(),t=null==e?void 0:e.data.sort((function(e,t){return null===e.latest_date_time_epoch?1:null===t.latest_date_time_epoch?-1:t.latest_date_time_epoch-e.latest_date_time_epoch})),n=t.map((function(e){return kn(kn({},e),{isEdit:!1,isDelete:!1,deleteConfirmation:null})})),K(n||[]),[3,4];case 2:return r=o.sent(),console.error("Error fetching recent actions:",r),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[a,l]),Qe=m((function(){return Sn(void 0,void 0,void 0,(function(){var e,t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/project/list/?page=1&count+per+page=10000")];case 1:return e=r.sent(),P((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data)||[]),[3,4];case 2:return t=r.sent(),console.error("Error fetching projects:",t),up({severity:"error",summary:"Error Fetching Projects",detail:t.message||"Failed to load projects. Please try again.",life:5e3}),P([]),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[l]);d((function(){g((function(e){var t,n;return kn(kn({},e),((t={})["Time Range"]=null!==(n=null==e?void 0:e["Time Range"])&&void 0!==n?n:"last_hour",t))})),Gl.get(Vl)&&(Ze(),Qe())}),[Ze,Qe]),d((function(){var e=b.get("access");if(e){var t=We(e);if(null==t?void 0:t.oidc_acs){var n=We(t.oidc_acs);(null==n?void 0:n.name)&&Y(n.name)}}}),[]),d((function(){Ve((function(e){return e.map((function(e){return"Project"===e.label?kn(kn({},e),{options:T?[{label:"Loading...",value:""}]:Array.isArray(N)?N.map((function(e){return{label:e.name,value:e.uuid}})):[]}):e}))}))}),[N,T]);var Ke="security"===v?He.filter((function(e){return"Project"===e.label||"Category"===e.label||"Tool"===e.label||"Scan Type"===e.label})):He.filter((function(e){return"Project"===e.label||"Application"===e.label||"Action Type"===e.label||"Environment"===e.label})),Xe=function(){var e,t,n,r,o,i,a,l,s,u,d,f,m,g,y,b;if(c&&(null===(e=null==c?void 0:c.trim())||void 0===e?void 0:e.length)>0){var w=x();j(!0),Le((function(e){return Tn(Tn([],e,!0),[{id:w,question:c,answer:"",time:new Date,answerTime:new Date,conversationId:null,isLoading:!0}],!1)}));var k=null===(t=null==N?void 0:N.filter((function(e){return(null==e?void 0:e.uuid)===h.Project})))||void 0===t?void 0:t[0],C={};if("devops"===v||"sre"===v){var S=null===(n=null==q?void 0:q.filter((function(e){return(null==e?void 0:e.uuid)===h.Application})))||void 0===n?void 0:n[0],E=null===(i=null===(o=null===(r=He.find((function(e){return"Environment"===e.label})))||void 0===r?void 0:r.options)||void 0===o?void 0:o.filter((function(e){return(null==e?void 0:e.value)===h.Environment})))||void 0===i?void 0:i[0];C={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),project_id:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",project_uuid:(null==k?void 0:k.uuid)||"",app_uuid:(null==h?void 0:h.Application)||"",env_uuid:(null==h?void 0:h.Environment)||"",action_type:(null==h?void 0:h["Action Type"])||"",context:"devops"===v?"devops":"sreops",conversation_title:ae,conversation_uuid:ce,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==S?void 0:S.name)||"",application_action_type:(null===(l=null===(a=null==h?void 0:h["Action Type"])||void 0===a?void 0:a.charAt(0))||void 0===l?void 0:l.toUpperCase())+(null===(s=null==h?void 0:h["Action Type"])||void 0===s?void 0:s.slice(1)),application_env:(null==E?void 0:E.label)||""}}}else{var T=null===(u=null==ge?void 0:ge.filter((function(e){return(null==e?void 0:e.value)===h.Category})))||void 0===u?void 0:u[0],O=null===(g=null===(m=null===(f=null===(d=null==ge?void 0:ge.filter((function(e){return(null==e?void 0:e.value)===(null==h?void 0:h.Category)})))||void 0===d?void 0:d[0])||void 0===f?void 0:f.tools)||void 0===m?void 0:m.filter((function(e){return(null==e?void 0:e.value)===(null==h?void 0:h.Tool)})))||void 0===g?void 0:g[0],A=(S=null===(y=null==q?void 0:q.filter((function(e){return(null==e?void 0:e.uuid)===h.Application})))||void 0===y?void 0:y[0],null===(b=null==be?void 0:be.filter((function(e){return(null==e?void 0:e.uuid)===h["Scan Type"]})))||void 0===b?void 0:b[0]);C={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),scan_uuid:(null==h?void 0:h["Scan Type"])||"",project_uuid:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",app_uuid:(null==h?void 0:h.Application)||"",category:(null==h?void 0:h.Category)||"",tool:(null==h?void 0:h.Tool)||"",context:"secops",conversation_title:ae,conversation_uuid:ce,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==S?void 0:S.name)||"",category_name:(null==T?void 0:T.name)||"",tool_name:(null==O?void 0:O.name)||"",scan_name:(null==A?void 0:A.scan_name)||""}}}p(""),Ie(w,C,p,K,le,ue,ae)}else up({severity:"error",summary:"Error",detail:"Please enter a message"})},Je=function(e,t,n){return Sn(void 0,void 0,void 0,(function(){var r,o,i,a,s;return En(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,4]),O(!0),r="deploy"===n?"/api/v1/application/deployment/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t):"/api/v1/application/build/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t,"&action_type=").concat(n),[4,l.get(r)];case 1:return o=c.sent(),console.log("Environments:",null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.data),H((null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.data)||[]),Ve((function(e){return e.map((function(e){var t,r;return"Environment"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==o?void 0:o.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:"deploy"===n?e.deployment_stage_name:e.stage_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return i=c.sent(),console.error("Error fetching environments:",i),up({severity:"error",summary:"Error Fetching Environments",detail:i.message||"Failed to load environments. Please try again.",life:5e3}),H([]),Ve((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},et=function(e,t){if(console.log("label---",e),console.log("value---",t),!t||"Loading..."!==(null==t?void 0:t.label)){var n,r;if(g((function(n){var r;return kn(kn({},n),((r={})[e]=t,r))})),"Project"===e&&null!==t&&(Ve((function(e){return e.map((function(e){var t=kn({},e),n="Application"===e.label&&("devops"===v||"sre"===v||"security"===v)||"Category"===e.label&&"security"===v||"Metric Type"===e.label&&"sre"===v||"Time Range"===e.label&&"sre"===v||"Project"===e.label;return t.disabled=!n,"Application"===e.label&&(t.options=[]),t}))})),g((function(e){return kn(kn({},e),{Application:null,Environment:null,"Action Type":null,"Scan Type":null,Category:null,Tool:null})})),"devops"===v||"sre"===v?(n=t,Sn(void 0,void 0,void 0,(function(){var e,t,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/application/build/store/list/?page=1&count+per+page=1000&project_id=".concat(n))];case 1:return e=i.sent(),console.log("Applications:",null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.data),B((null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.data)||[]),Ve((function(t){return t.map((function(t){var n,r;return"Application"===t.label?kn(kn({},t),{options:(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.uuid}})))||[]}):t}))})),[3,4];case 2:return t=i.sent(),console.error("Error fetching applications:",t),up({severity:"error",summary:"Error Fetching Applications",detail:t.message||"Failed to load applications. Please try again.",life:5e3}),B([]),Ve((function(e){return e.map((function(e){return"Application"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))):function(e){Sn(void 0,void 0,void 0,(function(){var t,n,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/devsecops/scan/categories/?page=1&count+per+page=1000&project_id=".concat(e))];case 1:return t=o.sent(),ye((null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.categories)||[]),Ve((function(e){return e.map((function(e){var n,r;return"Category"===e.label?kn(kn({},e),{options:(null===(r=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.categories)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.value}})))||[]}):e}))})),[3,4];case 2:return n=o.sent(),console.error("Error fetching category:",n),up({severity:"error",summary:"Error Fetching Category",detail:n.message||"Failed to load category. Please try again.",life:5e3}),B([]),Ve((function(e){return e.map((function(e){return"Category"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}(t),F(null)),"Application"===e&&null!==t&&(Ve((function(e){return e.map((function(e){return"Action Type"===e.label?kn(kn({},e),{disabled:!1,options:"devops"===v?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:[{label:"SRE",value:"sre"}]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null,"Action Type":"sre"===v?"sre":null})})),"sre"===v&&(Ve((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),Je(t,h.Project,"sre"))),"Category"===e&&null!==t){var o=ge.find((function(e){return e.value===t})),i=((null==o?void 0:o.tools)||[]).map((function(e){return{label:e.name,value:e.value}}));Ve((function(e){return e.map((function(e){return"Tool"===e.label?kn(kn({},e),{disabled:!1,options:i}):"Scan Type"===e.label?kn(kn({},e),{disabled:!0,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Tool:null,"Scan Type":null})}))}"Tool"===e&&null!==t&&(Ve((function(e){return e.map((function(e){return"Scan Type"===e.label?kn(kn({},e),{disabled:!1,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null})})),r=t,Sn(void 0,void 0,void 0,(function(){var e,t,n,o,i;return En(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),e={category:h.Category,tool:r,page:1,"count per page":200,project_id:h.Project},t=new URLSearchParams(e).toString(),O(!0),[4,l.get("/api/v1/devsecops/scan/list/?".concat(t))];case 1:return n=a.sent(),xe(null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.data),Ve((function(e){return e.map((function(e){var t,r;return"Scan Type"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:e.scan_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return o=a.sent(),console.error("Error fetching scan Type:",o),up({severity:"error",summary:"Error Fetching Scan Type",detail:o.message||"Failed to load scan type. Please try again.",life:5e3}),Ve((function(e){return e.map((function(e){return"Scan Type"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))})),F(null)),"Action Type"===e&&null!==t&&(Ve((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),g((function(e){var n;return kn(kn({},e),((n={})["Action Type"]=t,n.Environment=null,n))})),Je(h.Application,h.Project,t)),"Environment"===e&&null!==t&&F(null==h?void 0:h["Action Type"]),"Scan Type"===e&&null!==t&&F(null)}};"devops"!==v&&"sre"!==v||h.Project&&h.Application&&h.Environment&&h["Action Type"];var tt=function(e,t,n,r){return Sn(void 0,void 0,void 0,(function(){var o,i,s,c,u,d;return En(this,(function(p){switch(p.label){case 0:return p.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_latest_dialog_threads/",{conversation_title:e,latest_date:t,app_type:a,conversation_uuid:r})];case 1:return o=p.sent(),null==(i=Object.values(null==o?void 0:o.data).map((function(e){return console.log("item---",e),{id:r,question:null==e?void 0:e.Prompt,answer:null==e?void 0:e.LLM_response,time:new Date(null==e?void 0:e.Date),answerTime:new Date(null==e?void 0:e.Date),conversationId:r,isLoading:!1}})))||i.sort((function(e,t){return(null==e?void 0:e.time.getTime())-(null==t?void 0:t.time.getTime())})),console.log("transformedChats---",i),s=(null==i?void 0:i.length)>0?null===(d=i.reduce((function(e,t){return(null==t?void 0:t.time)<(null==e?void 0:e.time)?t:e}),i[0]))||void 0===d?void 0:d.time:null,console.log("oldestDate---",s),s&&(c=s?new Date(s.getTime()-864e5):null,console.log("previousDayDate---",c),re(null==c?void 0:c.toISOString())),Le(n?i:function(e){return Tn(Tn([],i,!0),e,!0).reduce((function(e,t){return e.find((function(e){return e.conversationId===t.conversationId}))?e:Tn(Tn([],e,!0),[t],!1)}),[])}),i.length>0?ee(!0):ee(!1),n&&i.length>0&&setTimeout((function(){var e=document.getElementById("chat-container");console.log("chatContainer---",e),e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),1e3),fe(!1),[3,4];case 2:return u=p.sent(),fe(!1),console.error("Error fetching recent actions:",u),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},nt=function(){return(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})},rt=function(e){return e?new Date(1e3*e).toISOString().split("T")[0]:""};return e("div",{style:{display:"flex",height:"100%",flexDirection:"column",fontFamily:"sans-serif"},className:"custom-focus",children:[t(cp,{}),T&&t(lp,{}),e("div",{style:{display:"flex",flex:1,flexDirection:$e?"column":"row",overflow:"hidden"},children:[Re&&e("aside",{style:{width:Ge?"100%":qe?"300px":"0px",backgroundColor:qe?"#f5f5f5":"transparent",color:"black",padding:qe?"0.75rem":"0px",overflow:"hidden",borderRight:"1px solid rgb(209, 213, 219)"},children:[" ",e("button",{style:{alignItems:"center",gap:"0.5rem",fontSize:"0.875rem",fontWeight:"600",display:Ye?"flex":"none"},onClick:function(){return S((function(e){return!e}))},children:[t(C?Fn:Mn,{style:{width:"16px",height:"16px"}}),C?"Hide Filters & History":"Show Filters & History"]}),t("div",{style:{display:Ge?C?"flex":"none":"flex",flexDirection:"column",gap:"1rem",height:"calc(100vh - 84px)",maxWidth:qe?"300px":"10px"},children:e(Wc,{isExpanded:qe,setIsExpanded:Be,children:[e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"https://framerusercontent.com/images/c367SKe2MI1WUDYtnPQdjNnk.png?scale-down-to=512&width=694&height=528",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t(np,{value:v,onValueChange:function(e){le(""),ue(null),re(nt()),Le([]),j(!1),w(e),g({}),F(null),Ve((function(t){return t.map((function(t){return"Project"===t.label||"Action Type"===t.label?"Action Type"===t.label?kn(kn({},t),{disabled:!0}):kn({},t):"Category"===t.label||"Tool"===t.label||"Scan Type"===t.label?kn(kn({},t),{disabled:"security"!==e}):"Metric Type"===t.label||"Time Range"===t.label?kn(kn({},t),{disabled:!1}):kn(kn({},t),{options:[],disabled:!0})}))}))},children:e(rp,{children:[e(op,{value:"devops",children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),e(op,{value:"security",children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),e(op,{value:"sre",children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]})}),t("div",{className:"pb-2 border-b border-gray-200",children:e("button",{onClick:function(){j(!1),le(""),ue(null),re(nt()),Le([])},title:"New Chat",className:tp("new-chat-btn flex w-full items-center justify-center gap-[6px]","bg-[#7761F3] text-white border-none rounded-md font-medium text-[13px]","cursor-pointer transition-all duration-150 ease-in-out","px-4 py-[10px] my-[16px] mb-[12px]"),children:[t("span",{children:"+"}),t("span",{children:"New chat"})]})}),e("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem",paddingLeft:"5px",paddingRight:"5px"},className:"pt-2 text-[#666]",children:[t("div",{className:"filters-title text-[11px] font-semibold text-[#666] uppercase tracking-[0.05em]",children:"Contextual Filters"}),Ke.map((function(n,r){var o="Project"===n.label||"Application"===n.label||"Time Range"===n.label;return e("div",{className:"filter-group",children:[t("div",{className:"filter-label text-xs font-semibold text-gray-700 mb-1",children:n.label}),o?e("select",{disabled:n.disabled,value:h[n.label]||"",onChange:function(e){return et(n.label,e.target.value)},className:"filter-select w-full border border-gray-300 rounded-md text-sm p-2 outline-none focus:ring-2 focus:ring-[#7761F3] hover:border-[#7761F3]",children:[e("option",{value:"",children:["Select ",n.label]}),n.options.map((function(e,n){return t("option",{value:e.value,children:e.label},n)}))]}):t("div",{className:"filter-tags flex flex-wrap gap-2 max-h-20 overflow-y-auto",children:"Environment"===n.label&&"buildd"===String((null==h?void 0:h["Action Type"])||"").toLowerCase()?t("div",{className:"text-xs text-gray-500",children:"Build doesnt have env"}):n.options&&0!==n.options.length?n.options.map((function(e,r){var o=(null==h?void 0:h[n.label])===e.value;return t("div",{onClick:function(){et(n.label,o?null:e.value)},className:"filter-tag cursor-pointer rounded-full px-3 py-1 max-h-10 text-xs items-center justify-center font-medium border transition\n ".concat(o?"bg-[#7761F3] text-white border-#7761F3":"bg-gray-100 text-gray-700 hover:bg-gray-200 border-gray-300"),children:e.label},r)})):t("div",{className:"text-xs text-gray-500",children:"Environment"===n.label?"Environment not found":"No filters"})})]},r)})),t("button",{onClick:function(){g((function(e){return{Project:e.Project,Application:e.Application}})),F(null)},className:"w-full p-1.5 bg-transparent border border-gray-300 rounded-md text-xs text-gray-600 cursor-pointer mt-2 transition-all duration-150 ease-in-out hover:bg-gray-50",children:"Clear All Filters"})]}),(null==Q?void 0:Q.length)>0&&t("div",{style:{marginTop:"10px"},className:"border-t border-gray-200",children:(null==Q?void 0:Q.length)>0&&e("div",{style:{marginTop:"10px",backgroundColor:"white",color:"black",padding:"0.75rem",paddingTop:"0px",borderRadius:"0.5rem"},children:[t("div",{style:{fontWeight:"bold",paddingTop:"5px",marginBottom:"5px",fontSize:"11px",color:"#666",letterSpacing:"0.05em"},children:"Recent Conversation"}),Q.map((function(n,r){var o,i,a;return e("div",{style:{padding:"0.15rem",paddingTop:"0px",borderRadius:"0.5rem",backgroundColor:"#F2F4F7",cursor:"pointer",marginBottom:"0.5rem",position:"relative"},children:[e("div",{style:{fontSize:"0.875rem",fontWeight:500,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"},children:[t("div",{style:{flex:1},children:t("div",{onClick:function(){j(!0),Le([]),fe(!0),le(null==n?void 0:n.title),ue(null==n?void 0:n.conversation_uuid),re((null==n?void 0:n.latest_date_time_epoch)?rt(null==n?void 0:n.latest_date_time_epoch):nt()),tt(null==n?void 0:n.title,(null==n?void 0:n.latest_date_time_epoch)?rt(null==n?void 0:n.latest_date_time_epoch):nt(),!0,null==n?void 0:n.conversation_uuid)},children:(null===(o=null==n?void 0:n.title)||void 0===o?void 0:o.length)>30?"".concat(null===(i=null==n?void 0:n.title)||void 0===i?void 0:i.substring(0,30),"..."):(null==n?void 0:n.title)||""})}),t("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:t(Xl,{onEdit:function(){Ne(!0),Fe(null==n?void 0:n.title),Ce(n),K(Q.map((function(e){return kn(kn({},e),{isEdit:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))},onDelete:function(){Te(!0),Ce(n),K(Q.map((function(e){return kn(kn({},e),{deleteConfirmation:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))}})})]}),t("div",{style:{fontSize:"0.75rem",color:"#666",textAlign:"right"},children:(null==n?void 0:n.latest_date_time_epoch)?(a=null==n?void 0:n.latest_date_time_epoch,new Date(1e3*a).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})):""})]},r)}))]})})]})}),e("div",{className:"p-4 flex items-center gap-3 bg-background border-t border-gray-200 ".concat(qe?"px-1":"px-4"),children:[t("div",{className:"w-8 h-8 rounded-full bg-[#7761F3] flex items-center justify-center text-sm font-semibold text-white",children:G.split(" ").map((function(e){var t;return null===(t=e[0])||void 0===t?void 0:t.toUpperCase()})).join("")}),t("div",{className:"text-sm font-medium text-foreground",children:G})]})]}),e("main",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",fontSize:"1.125rem",backgroundColor:"white"},children:[e("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"16px",borderBottom:"1px solid rgb(229, 231, 235)",backgroundColor:"#f9f9f9"},children:[Re?e(n,{children:[t("button",{title:qe?"Hide Sidebar":"Show Sidebar",onClick:function(){return Be(!qe)},"aria-label":qe?"Collapse sidebar":"Expand sidebar",className:"\n \n w-8 h-8\n bg-[#f5f5f5] border border-[#e5e5e5] rounded-md\n flex items-center justify-center\n cursor-pointer\n z-10\n transition-all duration-150 ease-in-out\n hover:bg-gray-100 hover:scale-105\n ",children:t(qe?Vn:Bn,{className:"w-3 h-3 text-gray-600 font-bold"})}),e("div",{style:{display:"flex",flexDirection:Ge?"column":"row",gap:"0.75rem",alignItems:"center",justifyContent:"space-between"},children:[t("div",{style:{fontSize:"12px",fontWeight:600,color:"#666"},children:"Selected Context:"}),e("div",{style:{display:"flex",flexDirection:Ye?"column":"row",gap:"0.75rem",flexWrap:"wrap",alignItems:"center"},children:[e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:["devops"===v&&e(n,{children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),"security"===v&&e(n,{children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),"sre"===v&&e(n,{children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]}),Object.entries(h).map((function(n){var r=n[0],o=n[1];if(!o||""===o||null===o)return null;if("devops"===v&&("Time Range"===r||"Metric Type"===r))return null;if("devops"===v&&("Category"===r||"Tool"===r||"Scan Type"===r))return null;if("security"===v&&("Time Range"===r||"Metric Type"===r))return null;if("sre"===v&&("Category"===r||"Tool"===r||"Scan Type"===r))return null;return e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:[e("span",{style:{fontWeight:"500"},children:[r,": ",function(){var e=He.find((function(e){return e.label===r}));if(!e)return o;if("Project"===r){var t=N.find((function(e){return e.uuid===o}));return t?t.name:o}var n=e.options.find((function(e){return e.value===o}));return n?n.label:o}()]}),t(Vn,{size:16,style:{cursor:"pointer",color:"#666"},onClick:function(){return et(r,null)}})]},r)}))]})]})]}):e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"https://framerusercontent.com/images/c367SKe2MI1WUDYtnPQdjNnk.png?scale-down-to=512&width=694&height=528",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t("div",{style:{display:"flex",gap:"0.75rem"},children:!Re&&t("button",{title:"New Chat",onClick:function(){le(""),ue(null),re(nt()),Le([])},children:t("span",{style:{width:"1.5rem",height:"1.5rem",cursor:"pointer",marginLeft:"auto",padding:"5px 10px",color:"white",backgroundColor:"#7761F3"},children:"+"})})})]}),((null==h?void 0:h["Scan Type"])&&"security"===v&&Re||Re)&&t(n,{children:!R&&t(ap,{setMessage:p,onSendMessage:Xe,type:v})}),e("div",{style:{flex:1,overflowY:"auto",padding:"1rem",gap:"0.25rem",display:"flex",flexDirection:"column"},ref:oe,id:"chat-container",onScroll:function(e){!function(e){0===e.currentTarget.scrollTop&&J&&(fe(!0),tt(ae,ne,!1,ce))}(e)},children:[pe&&t("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"25px"},children:t("div",{style:{animation:"spin 1s linear infinite",borderRadius:"50%",height:"20px",width:"20px",borderTop:"2px solid #18279a",borderBottom:"2px solid #18279a",borderLeft:"2px solid transparent",borderRight:"2px solid transparent"}})}),De.map((function(n,r){return e("div",{style:{marginTop:"0.5rem"},children:[t("div",{style:{display:"flex",justifyContent:"flex-start"},children:e("div",{style:{borderRadius:"20px",padding:"20px",minHeight:"78px",minWidth:"40%",maxWidth:"60%",backgroundColor:"#ffffffff",borderBottomLeftRadius:"0px",fontSize:"16px",color:"#000",display:"flex",gap:"15px",flexDirection:"column",alignItems:"flex-start",whiteSpace:"pre-line"},children:[e("div",{className:"flex gap-2 items-center justify-center max-w-full",children:[t("span",{style:{width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",flexShrink:0,backgroundColor:"#7761F3",color:"white"},children:"👤"}),t("span",{style:{wordBreak:"break-word",maxWidth:"100%"},children:n.question})]}),n.time&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-start",fontSize:"12px",color:"#666",marginTop:"8px"},children:n.time.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})]})}),t("div",{style:{display:"flex",justifyContent:"flex-start"},children:t("div",{style:{padding:"20px",minWidth:"60%",maxWidth:"90%",backgroundColor:"#ffffff",fontSize:"16px",color:"#000",display:"flex",flexDirection:"column",marginBottom:"8px"},children:n.isLoading?e("div",{style:{color:"#98A2B3",textAlign:"left",display:"flex",alignItems:"center",gap:"8px",flexDirection:"row"},children:["Loading... ",t(qn,{style:{width:"2rem",height:"2rem",animation:"spin 1s linear infinite",color:"#7761F3"}})]}):e("div",{style:{overflow:"auto",wordWrap:"break-word",overflowWrap:"break-word",maxWidth:"100%"},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px",paddingBottom:"8px"},children:[t("div",{style:{width:"24px",height:"24px",backgroundColor:"#7761F3",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"12px",fontWeight:"bold"},children:"C"}),t("span",{style:{fontWeight:"600",color:"#7761F3",fontSize:"14px"},children:"[Cindy - EveryOps AI]"})]}),t("div",{style:{color:"#374151"},children:t(Ul,{remarkPlugins:[Vc],components:{table:function(e){e.node;var n=Cn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%",border:"1px solid #e5e7eb",marginBottom:"16px"}},n))})},thead:function(e){e.node;var n=Cn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=Cn(e,["node"]);return t("th",kn({style:{padding:"12px",textAlign:"left",borderBottom:"2px solid #e5e7eb",color:"#374151",fontWeight:"600"}},n))},td:function(e){e.node;var n=Cn(e,["node"]);return t("td",kn({style:{padding:"12px",borderBottom:"1px solid #e5e7eb",color:"#4b5563"}},n))},tr:function(e){e.node;var n=Cn(e,["node"]);return t("tr",kn({style:{borderBottom:"1px solid #e5e7eb",backgroundColor:"#f9fafb"}},n))},code:function(e){e.node;var n=e.className,r=e.children,o=Cn(e,["node","className","children"]),i=/language-(\w+)/.exec(n||"");return i&&"markdown"===i[1]&&(null==r?void 0:r.toString().includes("|"))?t(Ul,{remarkPlugins:[Vc],components:{table:function(e){e.node;var n=Cn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%"}},n))})},thead:function(e){e.node;var n=Cn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=Cn(e,["node"]);return t("th",kn({style:{padding:"12px",textAlign:"left",color:"#374151",fontWeight:"600"}},n))},td:function(e){e.node;var n=Cn(e,["node"]);return t("td",kn({style:{padding:"12px",color:"#4b5563"}},n))},tr:function(e){e.node;var n=Cn(e,["node"]);return t("tr",kn({style:{backgroundColor:"#f9fafb"}},n))}},children:String(r)}):t("code",kn({className:n},o,{children:r}))}},children:n.answer})}),e("div",{style:{display:"flex",gap:"8px",paddingTop:"12px"},children:[e("div",{style:{display:"flex",gap:"8px",paddingTop:"12px"},children:[t("button",{onClick:function(){n.isLoading?up({severity:"warn",summary:"Please wait",detail:"Response is still loading",life:2e3}):n.answer&&""!==n.answer.trim()?navigator.clipboard.writeText(n.answer).then((function(){up({severity:"success",summary:"Copied!",detail:"Response copied to clipboard",life:2e3})})).catch((function(e){console.error("Copy failed:",e),up({severity:"error",summary:"Copy failed",detail:"Failed to copy to clipboard",life:2e3})})):up({severity:"warn",summary:"No content",detail:"Nothing to copy",life:2e3})},style:{padding:"6px 12px",backgroundColor:n.isLoading?"#d1d5db":"#7761F3",color:"white",border:"none",borderRadius:"6px",fontSize:"14px",cursor:n.isLoading?"not-allowed":"pointer",display:"flex",alignItems:"center",gap:"4px",opacity:n.isLoading?.6:1,transition:"all 0.2s ease",width:"100px"},disabled:n.isLoading,children:"📋 Copy"}),t("button",{onClick:function(){return Sn(void 0,void 0,void 0,(function(){var e,t,r,o,i,a,l,s,c,u,d,f,m,g,y,b,x,w,k,C,S,E,T,O;return En(this,(function(A){switch(A.label){case 0:if(n.isLoading)return[2];e=n.id,Le((function(e){return e.map((function(e){return e.id===n.id?kn(kn({},e),{isLoading:!0,answer:""}):e}))})),A.label=1;case 1:return A.trys.push([1,3,,4]),t=null===(u=null==N?void 0:N.filter((function(e){return(null==e?void 0:e.uuid)===h.Project})))||void 0===u?void 0:u[0],r={},"devops"===v||"sre"===v?(l=null===(d=null==q?void 0:q.filter((function(e){return(null==e?void 0:e.uuid)===h.Application})))||void 0===d?void 0:d[0],o=null===(g=null===(m=null===(f=He.find((function(e){return"Environment"===e.label})))||void 0===f?void 0:f.options)||void 0===m?void 0:m.filter((function(e){return(null==e?void 0:e.value)===h.Environment})))||void 0===g?void 0:g[0],r={org_name:"".concat((null==t?void 0:t.organization_realm_name)||"teksecur","_dfact"),project_id:(null==t?void 0:t.uuid)||"",question:n.question,doc_type:"private",app_type:"dfact",org_uuid:(null==t?void 0:t.organization)||"",project_uuid:(null==t?void 0:t.uuid)||"",app_uuid:(null==h?void 0:h.Application)||"",env_uuid:(null==h?void 0:h.Environment)||"",action_type:(null==h?void 0:h["Action Type"])||"",context:"devops"===v?"devops":"sreops",conversation_title:ae,conversation_uuid:ce,context_param:{project_name:(null==t?void 0:t.name)||"",application_name:(null==l?void 0:l.name)||"",application_action_type:(null===(b=null===(y=null==h?void 0:h["Action Type"])||void 0===y?void 0:y.charAt(0))||void 0===b?void 0:b.toUpperCase())+(null===(x=null==h?void 0:h["Action Type"])||void 0===x?void 0:x.slice(1)),application_env:(null==o?void 0:o.label)||""}}):(i=null===(w=null==ge?void 0:ge.filter((function(e){return(null==e?void 0:e.value)===h.Category})))||void 0===w?void 0:w[0],a=null===(E=null===(S=null===(C=null===(k=null==ge?void 0:ge.filter((function(e){return(null==e?void 0:e.value)===(null==h?void 0:h.Category)})))||void 0===k?void 0:k[0])||void 0===C?void 0:C.tools)||void 0===S?void 0:S.filter((function(e){return(null==e?void 0:e.value)===(null==h?void 0:h.Tool)})))||void 0===E?void 0:E[0],l=null===(T=null==q?void 0:q.filter((function(e){return(null==e?void 0:e.uuid)===h.Application})))||void 0===T?void 0:T[0],s=null===(O=null==be?void 0:be.filter((function(e){return(null==e?void 0:e.uuid)===h["Scan Type"]})))||void 0===O?void 0:O[0],r={org_name:"".concat((null==t?void 0:t.organization_realm_name)||"teksecur","_dfact"),scan_uuid:(null==h?void 0:h["Scan Type"])||"",project_uuid:(null==t?void 0:t.uuid)||"",question:n.question,doc_type:"private",app_type:"dfact",org_uuid:(null==t?void 0:t.organization)||"",app_uuid:(null==h?void 0:h.Application)||"",category:(null==h?void 0:h.Category)||"",tool:(null==h?void 0:h.Tool)||"",context:"secops",conversation_title:ae,conversation_uuid:ce,context_param:{project_name:(null==t?void 0:t.name)||"",application_name:(null==l?void 0:l.name)||"",category_name:(null==i?void 0:i.name)||"",tool_name:(null==a?void 0:a.name)||"",scan_name:(null==s?void 0:s.scan_name)||""}}),[4,Ie(e,r,p,K,le,ue,ae)];case 2:return A.sent(),[3,4];case 3:return c=A.sent(),console.error("Retry error:",c),Le((function(e){return e.map((function(e){return e.id===n.id?kn(kn({},e),{isLoading:!1,answer:"❌ Error: ".concat(c.message||"Failed to get response. Please try again."),error:c.message}):e}))})),[3,4];case 4:return[2]}}))}))},style:{padding:"6px 12px",backgroundColor:n.isLoading?"#d1d5db":"#7761F3",color:"white",border:"none",borderRadius:"6px",fontSize:"14px",cursor:n.isLoading?"not-allowed":"pointer",display:"flex",alignItems:"center",gap:"4px",opacity:n.isLoading?.6:1,transition:"all 0.2s ease",width:"100px"},children:"🔄 Retry"})]}),n.answerTime&&!n.isLoading&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-end",fontSize:"12px",color:"#666",alignItems:"center",marginTop:"8px"},children:n.answerTime.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})]})]})})})]},r)})),De.length>0&&t("p",{style:{color:"#98A2B3",textAlign:"left",fontSize:"12px",paddingLeft:"16px"},children:"The response is AI-generated and should be independently verified for accuracy."})]}),t("div",{style:{backgroundColor:"white",padding:"0.5rem",display:"flex",flexDirection:"column",alignItems:"center",gap:"0.25rem"},children:e("div",{className:"input-container flex flex-col",style:{width:Re?"60%":"100%"},children:[e("div",{className:"input-wrapper",style:{position:"relative",width:"100%",display:"flex"},children:[t("textarea",{className:"input-box my-1",id:"messageInput",rows:1,value:c,disabled:_e,placeholder:"Message Cindy - EveryOps Agentic AI",onChange:function(e){p(e.target.value),e.target.style.height="auto",e.target.style.height=Math.min(e.target.scrollHeight,150)+"px"},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),Xe())},style:{flex:1,width:"100%",borderRadius:"0.7rem",border:"1px solid #d1d5db",backgroundColor:"transparent",padding:"1rem 0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",resize:"vertical",minHeight:"3.5rem",maxHeight:"9.375rem",fontFamily:"inherit",outline:"none",overflow:"auto"}}),e("div",{style:{position:"absolute",right:"0.5rem",bottom:"0.5rem",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"},children:[t("input",{ref:he,type:"file",className:"hidden",onChange:function(e){}}),t("button",{style:{height:"2rem",width:"2rem",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",fontSize:"0.875rem",fontWeight:"500",backgroundColor:"#7761F3",color:"white",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",transition:"background-color 0.2s",outline:"none",border:"none",cursor:_e?"not-allowed":"pointer",opacity:_e?.5:1,marginBottom:"7.8px"},title:"Send",id:"sendBtn",onClick:function(){return Xe()},disabled:_e||""==c,children:"➤"})]})]}),t("div",{style:{fontSize:"0.75rem",color:"#6b7280",margin:"auto"},children:"Cindy can make mistakes. Check important info."})]})})]})]}),D&&t(Zl,{title:"Authorization",visible:D,setVisible:L,onSubmit:function(e){!function(e){Sn(void 0,void 0,void 0,(function(){var t,n,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/itom/operations/".concat(null==W?void 0:W.uuid,"/execute/"),{auth_code:e})];case 1:return t=i.sent(),console.log("response---",t),(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.msg)&&200===(null==t?void 0:t.status)?(L(!1),up({severity:"success",summary:"Success",detail:(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.msg)||"Code verified successfully. Operation started.",life:3e3})):up({severity:"error",summary:"Error",detail:"Invalid code or operation failed to start",life:3e3}),[3,4];case 2:return n=i.sent(),console.error("Error checking code:",n),up({severity:"error",summary:"Error",detail:n.message||(null==n?void 0:n.msg)||"Invalid code or server error",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}(e)}}),Ee&&t(Kl,{title:"Are you sure?",visible:Ee,setVisible:Te,onSubmit:function(){var e;Te(!1),e=null==ke?void 0:ke.conversation_uuid,Sn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/delete_conversation/",{conversation_uuid:e})];case 1:return t=r.sent(),console.log("response---",t),201===(null==t?void 0:t.status)||200===(null==t?void 0:t.status)?(K(Q.filter((function(t){return(null==t?void 0:t.conversation_uuid)!==e}))),up({severity:"success",summary:"Success",detail:"Conversation deleted successfully",life:3e3}),console.log("conversation_uuid---",e),console.log("recentUuid---",ce),console.log("prompts---",De),Te(!1),Ce(null),e===ce&&(ue(null),re(nt()),Le([]),le(""))):up({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 2:return n=r.sent(),console.error("Error deleting conversation:",n),up({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 3:return O(!1),Te(!1),[7];case 4:return[2]}}))}))},selectedConversation:ke}),Ae&&t(Jl,{title:"Rename chat",visible:Ae,setVisible:Ne,onSubmit:function(){var e,t,n;Ne(!1),Me&&(null===(e=null==Me?void 0:Me.trim())||void 0===e?void 0:e.length)>0?(t=null==ke?void 0:ke.conversation_uuid,n=Me,Sn(void 0,void 0,void 0,(function(){var e,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/rename_conversation/",{conversation_uuid:t,new_title:n})];case 1:return e=o.sent(),console.log("response---",e),201!==(null==e?void 0:e.status)&&200!==(null==e?void 0:e.status)||(K((function(e){return e.map((function(e){return e.conversation_uuid===t?kn(kn({},e),{title:n,isEdit:!1}):e}))})),Ne(!1),Ce(null),up({severity:"success",summary:"Success",detail:"Conversation renamed successfully",life:3e3})),[3,4];case 2:return r=o.sent(),console.error("Error renaming conversation:",r),up({severity:"error",summary:"Error",detail:"Failed to rename conversation",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))):up({severity:"error",summary:"Error",detail:"Please enter a title",life:3e3})},selectedConversation:ke,tempTitle:Me,setTempTitle:Fe})]})},pp=function(r){var o=r.app_type,i=r.title,a=r.placeholder;r.base_url,r.access_token_key,r.refresh_token_key,r.token_refresh_route;var l=r.aiIconSrc,s=void 0===l?"/images/ai-icon.svg":l,c=r.expandedStyle,u=void 0===c?{width:"100%",height:"100vh",maxHeight:"100%",margin:"0px"}:c,d=r.dialogStyle,p=void 0===d?{width:"523px",height:"80vh"}:d;r.position;var f=r.HTTP,h=Nn(),m=h.opneChatModal,g=h.setOpenChatModal,y=h.isResize,v=kn({position:"fixed",bottom:"0",right:"0",backgroundColor:"white",boxShadow:"0 -4px 20px rgba(0, 0, 0, 0.15)",zIndex:10000001,overflow:"hidden"},y?u:p);return e("div",{style:{position:"relative"},children:[m&&e(n,{children:[!y&&t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1e7},onClick:function(){return g(!1)}}),t("div",{style:v,children:t(dp,{app_type:o,title:i,placeholder:a,HTTP:f,closeChat:function(){g(!1)}})})]}),!m&&t("div",{style:{position:"fixed",bottom:"20px",right:"20px",zIndex:1e7},children:t("img",{src:s,style:{cursor:"pointer",transition:"transform 0.2s ease"},onClick:function(){g(!m)},onMouseOver:function(e){e.currentTarget.style.transform="scale(1.1)"},onMouseOut:function(e){e.currentTarget.style.transform="scale(1)"},alt:"Ai Icon",height:82,width:82})})]})},fp=function(e){var n=e.app_type,r=e.title,o=e.placeholder,i=e.base_url,a=e.access_token_key,l=e.refresh_token_key,s=e.token_refresh_route,c=g((function(){return Yl(i,a,l,s)}),[i,a,l,s]);return t(ie,{children:t(wn,{children:t(An,{HTTP:c,children:t(pp,{app_type:n,title:r,placeholder:o,base_url:i,access_token_key:a,refresh_token_key:l,token_refresh_route:s,HTTP:c})})})})};export{fp as CindyChatBot};
39
+ */const Wn=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$n=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Gn={};function Yn(e,t){return(Gn.jsx?$n:Wn).test(e)}const Zn=/[ \t\n\f\r]/g;function Qn(e){return""===e.replace(Zn,"")}class Kn{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function Xn(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Kn(n,r,t)}function Jn(e){return e.toLowerCase()}Kn.prototype.normal={},Kn.prototype.property={},Kn.prototype.space=void 0;class er{constructor(e,t){this.attribute=t,this.property=e}}er.prototype.attribute="",er.prototype.booleanish=!1,er.prototype.boolean=!1,er.prototype.commaOrSpaceSeparated=!1,er.prototype.commaSeparated=!1,er.prototype.defined=!1,er.prototype.mustUseProperty=!1,er.prototype.number=!1,er.prototype.overloadedBoolean=!1,er.prototype.property="",er.prototype.spaceSeparated=!1,er.prototype.space=void 0;let tr=0;const nr=cr(),rr=cr(),or=cr(),ir=cr(),ar=cr(),lr=cr(),sr=cr();function cr(){return 2**++tr}var ur=Object.freeze({__proto__:null,boolean:nr,booleanish:rr,commaOrSpaceSeparated:sr,commaSeparated:lr,number:ir,overloadedBoolean:or,spaceSeparated:ar});const dr=Object.keys(ur);class pr extends er{constructor(e,t,n,r){let o=-1;if(super(e,t),fr(this,"space",r),"number"==typeof n)for(;++o<dr.length;){const e=dr[o];fr(this,dr[o],(n&ur[e])===ur[e])}}}function fr(e,t,n){n&&(e[t]=n)}function hr(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new pr(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Jn(r)]=r,n[Jn(i.attribute)]=r}return new Kn(t,n,e.space)}pr.prototype.defined=!0;const mr=hr({properties:{ariaActiveDescendant:null,ariaAtomic:rr,ariaAutoComplete:null,ariaBusy:rr,ariaChecked:rr,ariaColCount:ir,ariaColIndex:ir,ariaColSpan:ir,ariaControls:ar,ariaCurrent:null,ariaDescribedBy:ar,ariaDetails:null,ariaDisabled:rr,ariaDropEffect:ar,ariaErrorMessage:null,ariaExpanded:rr,ariaFlowTo:ar,ariaGrabbed:rr,ariaHasPopup:null,ariaHidden:rr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ar,ariaLevel:ir,ariaLive:null,ariaModal:rr,ariaMultiLine:rr,ariaMultiSelectable:rr,ariaOrientation:null,ariaOwns:ar,ariaPlaceholder:null,ariaPosInSet:ir,ariaPressed:rr,ariaReadOnly:rr,ariaRelevant:null,ariaRequired:rr,ariaRoleDescription:ar,ariaRowCount:ir,ariaRowIndex:ir,ariaRowSpan:ir,ariaSelected:rr,ariaSetSize:ir,ariaSort:null,ariaValueMax:ir,ariaValueMin:ir,ariaValueNow:ir,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function gr(e,t){return t in e?e[t]:t}function yr(e,t){return gr(e,t.toLowerCase())}const vr=hr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lr,acceptCharset:ar,accessKey:ar,action:null,allow:null,allowFullScreen:nr,allowPaymentRequest:nr,allowUserMedia:nr,alt:null,as:null,async:nr,autoCapitalize:null,autoComplete:ar,autoFocus:nr,autoPlay:nr,blocking:ar,capture:null,charSet:null,checked:nr,cite:null,className:ar,cols:ir,colSpan:null,content:null,contentEditable:rr,controls:nr,controlsList:ar,coords:ir|lr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:nr,defer:nr,dir:null,dirName:null,disabled:nr,download:or,draggable:rr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:nr,formTarget:null,headers:ar,height:ir,hidden:or,high:ir,href:null,hrefLang:null,htmlFor:ar,httpEquiv:ar,id:null,imageSizes:null,imageSrcSet:null,inert:nr,inputMode:null,integrity:null,is:null,isMap:nr,itemId:null,itemProp:ar,itemRef:ar,itemScope:nr,itemType:ar,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:nr,low:ir,manifest:null,max:null,maxLength:ir,media:null,method:null,min:null,minLength:ir,multiple:nr,muted:nr,name:null,nonce:null,noModule:nr,noValidate:nr,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:nr,optimum:ir,pattern:null,ping:ar,placeholder:null,playsInline:nr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:nr,referrerPolicy:null,rel:ar,required:nr,reversed:nr,rows:ir,rowSpan:ir,sandbox:ar,scope:null,scoped:nr,seamless:nr,selected:nr,shadowRootClonable:nr,shadowRootDelegatesFocus:nr,shadowRootMode:null,shape:null,size:ir,sizes:null,slot:null,span:ir,spellCheck:rr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ir,step:null,style:null,tabIndex:ir,target:null,title:null,translate:null,type:null,typeMustMatch:nr,useMap:null,value:rr,width:ir,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ar,axis:null,background:null,bgColor:null,border:ir,borderColor:null,bottomMargin:ir,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:nr,declare:nr,event:null,face:null,frame:null,frameBorder:null,hSpace:ir,leftMargin:ir,link:null,longDesc:null,lowSrc:null,marginHeight:ir,marginWidth:ir,noResize:nr,noHref:nr,noShade:nr,noWrap:nr,object:null,profile:null,prompt:null,rev:null,rightMargin:ir,rules:null,scheme:null,scrolling:rr,standby:null,summary:null,text:null,topMargin:ir,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ir,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:nr,disableRemotePlayback:nr,prefix:null,property:null,results:ir,security:null,unselectable:null},space:"html",transform:yr}),br=hr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:sr,accentHeight:ir,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ir,amplitude:ir,arabicForm:null,ascent:ir,attributeName:null,attributeType:null,azimuth:ir,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ir,by:null,calcMode:null,capHeight:ir,className:ar,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:ir,diffuseConstant:ir,direction:null,display:null,dur:null,divisor:ir,dominantBaseline:null,download:nr,dx:null,dy:null,edgeMode:null,editable:null,elevation:ir,enableBackground:null,end:null,event:null,exponent:ir,externalResourcesRequired:null,fill:null,fillOpacity:ir,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:lr,g2:lr,glyphName:lr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ir,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ir,horizOriginX:ir,horizOriginY:ir,id:null,ideographic:ir,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ir,k:ir,k1:ir,k2:ir,k3:ir,k4:ir,kernelMatrix:sr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ir,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:ir,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ir,overlineThickness:ir,paintOrder:null,panose1:null,path:null,pathLength:ir,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ar,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ir,pointsAtY:ir,pointsAtZ:ir,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:sr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:sr,rev:sr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:sr,requiredFeatures:sr,requiredFonts:sr,requiredFormats:sr,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:ir,specularExponent:ir,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ir,strikethroughThickness:ir,string:null,stroke:null,strokeDashArray:sr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ir,strokeOpacity:ir,strokeWidth:null,style:null,surfaceScale:ir,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:sr,tabIndex:ir,tableValues:null,target:null,targetX:ir,targetY:ir,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:sr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ir,underlineThickness:ir,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ir,values:null,vAlphabetic:ir,vMathematical:ir,vectorEffect:null,vHanging:ir,vIdeographic:ir,version:null,vertAdvY:ir,vertOriginX:ir,vertOriginY:ir,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ir,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gr}),xr=hr({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()}),wr=hr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),kr=hr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Cr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sr=/[A-Z]/g,Er=/-[a-z]/g,Tr=/^data[-\w.:]+$/i;function Or(e){return"-"+e.toLowerCase()}function Ar(e){return e.charAt(1).toUpperCase()}const Nr=Xn([mr,vr,xr,wr,kr],"html"),Pr=Xn([mr,br,xr,wr,kr],"svg");var Ir={},Dr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Lr=/\n/g,_r=/^\s*/,Rr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,jr=/^:\s*/,Mr=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Fr=/^[;\s]*/,zr=/^\s+|\s+$/g,qr="";function Br(e){return e?e.replace(zr,qr):qr}var Ur=de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,Hr.default)(e),o="function"==typeof t;return r.forEach((function(e){if("declaration"===e.type){var r=e.property,i=e.value;o?t(r,i,e):i&&((n=n||{})[r]=i)}})),n};var Hr=Ur((function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(Lr);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),c(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function l(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function s(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function c(){s(_r)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;qr!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,qr===e.charAt(n-1))return l("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=i(),t=s(Rr);if(t){if(d(),!s(jr))return l("property missing ':'");var n=s(Mr),r=e({type:"declaration",property:Br(t[0].replace(Dr,qr)),value:n?Br(n[0].replace(Dr,qr)):qr});return s(Fr),r}}return a.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()}));var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.camelCase=void 0;var Wr=/^--[a-zA-Z0-9_-]+$/,$r=/-([a-z])/g,Gr=/^[^-]+$/,Yr=/^-(webkit|moz|ms|o|khtml)-/,Zr=/^-(ms)-/,Qr=function(e,t){return t.toUpperCase()},Kr=function(e,t){return"".concat(t,"-")};Vr.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Gr.test(e)||Wr.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(Zr,Kr):e.replace(Yr,Kr)).replace($r,Qr))};var Xr=(de&&de.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Ir),Jr=Vr;function eo(e,t){var n={};return e&&"string"==typeof e?((0,Xr.default)(e,(function(e,r){e&&r&&(n[(0,Jr.camelCase)(e,t)]=r)})),n):n}eo.default=eo;var to=pe(eo);const no=oo("end"),ro=oo("start");function oo(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function io(e){return e&&"object"==typeof e?"position"in e||"type"in e?lo(e.position):"start"in e||"end"in e?lo(e):"line"in e||"column"in e?ao(e):"":""}function ao(e){return so(e&&e.line)+":"+so(e&&e.column)}function lo(e){return ao(e&&e.start)+"-"+ao(e&&e.end)}function so(e){return e&&"number"==typeof e?e:1}class co extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=io(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}co.prototype.file="",co.prototype.name="",co.prototype.reason="",co.prototype.message="",co.prototype.stack="",co.prototype.column=void 0,co.prototype.line=void 0,co.prototype.ancestors=void 0,co.prototype.cause=void 0,co.prototype.fatal=void 0,co.prototype.place=void 0,co.prototype.ruleId=void 0,co.prototype.source=void 0;const uo={}.hasOwnProperty,po=new Map,fo=/[A-Z]/g,ho=new Set(["table","tbody","thead","tfoot","tr"]),mo=new Set(["td","th"]),go="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function yo(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),l=ro(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Pr:Nr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=vo(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function vo(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Pr,e.schema=o);e.ancestors.push(t);const i=Co(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&uo.call(t.properties,o)){const i=ko(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&mo.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=wo(e,t);ho.has(t.tagName)&&(l=l.filter((function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Qn(t.value):Qn(t));var t})));return bo(e,a,i,t),xo(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}So(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Pr,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:Co(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else So(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else So(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=wo(e,t);return bo(e,a,i,t),xo(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);So(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return xo(r,wo(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function bo(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function xo(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function wo(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:po;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const l=vo(e,i,a);void 0!==l&&n.push(l)}return n}function ko(e,t,n){const r=function(e,t){const n=Jn(t);let r=t,o=er;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Tr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Er,Ar);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Er.test(e)){let n=e.replace(Sr,Or);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=pr}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):function(e){return e.join(" ").trim()}(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return to(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new co("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=go+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)uo.call(e,n)&&(t[Eo(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Cr[r.property]||r.property:r.attribute,n]}}function Co(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Yn(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=Yn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return uo.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);So(e)}function So(e,t){const n=new co("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=go+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Eo(e){let t=e.replace(fo,To);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function To(e){return"-"+e.toLowerCase()}const Oo={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ao={};function No(e,t){return Po(e,"boolean"!=typeof Ao.includeImageAlt||Ao.includeImageAlt,"boolean"!=typeof Ao.includeHtml||Ao.includeHtml)}function Po(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Io(e.children,t,n)}return Array.isArray(e)?Io(e,t,n):""}function Io(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Po(e[o],t,n);return r.join("")}const Do={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Lo={}.hasOwnProperty;function _o(e){return!!Lo.call(Do,e)&&Do[e]}function Ro(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function jo(e,t){return e.length>0?(Ro(e,e.length,0,t),e):t}const Mo={}.hasOwnProperty;function Fo(e){const t={};let n=-1;for(;++n<e.length;)zo(t,e[n]);return t}function zo(e,t){let n;for(n in t){const r=(Mo.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Mo.call(r,i)||(r[i]=[]);const e=o[i];qo(r[i],Array.isArray(e)?e:e?[e]:[])}}}function qo(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Ro(e,0,0,r)}function Bo(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Uo(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ho=ti(/[A-Za-z]/),Vo=ti(/[\dA-Za-z]/),Wo=ti(/[#-'*+\--9=?A-Z^-~]/);function $o(e){return null!==e&&(e<32||127===e)}const Go=ti(/\d/),Yo=ti(/[\dA-Fa-f]/),Zo=ti(/[!-/:-@[-`{-~]/);function Qo(e){return null!==e&&e<-2}function Ko(e){return null!==e&&(e<0||32===e)}function Xo(e){return-2===e||-1===e||32===e}const Jo=ti(/\p{P}|\p{S}/u),ei=ti(/\s/);function ti(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ni(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&Vo(e.charCodeAt(n+1))&&Vo(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ri(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(Xo(r))return e.enter(n),a(r);return t(r)};function a(r){return Xo(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const oi={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ri(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Qo(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const ii={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return l;function l(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return Ro(t.events,i+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(a===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ai,u,d)(o)}function u(e){return r&&v(),y(a),p(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function p(n){return t.containerState={},e.attempt(ai,f,h)(n)}function f(e){return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function h(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):Qo(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,l):(e.consume(n),m)}function g(e,n){const l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(l),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;Ro(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ai={tokenize:function(e,t,n){return ri(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function li(e){return null===e||Ko(e)||ei(e)?1:Jo(e)?2:void 0}function si(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const ci={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,l,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};ui(d,-l),ui(p,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:l>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=jo(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=jo(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=jo(s,si(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=jo(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=jo(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ro(e,n-1,u-n+3,s),u=n+s.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=li(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(l){if(l===i)return e.consume(l),a;const s=e.exit("attentionSequence"),c=li(l),u=!c||2===c&&o||n.includes(l),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===i?u:u&&(o||!d)),s._close=Boolean(42===i?d:d&&(c||!u)),t(l)}}};function ui(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const di={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return Ho(t)?(e.consume(t),i):64===t?n(t):s(t)}function i(e){return 43===e||45===e||46===e||Vo(e)?(r=1,a(e)):s(e)}function a(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||Vo(t))&&r++<32?(e.consume(t),a):(r=0,s(t))}function l(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||$o(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):Wo(t)?(e.consume(t),s):n(t)}function c(e){return Vo(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Vo(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const pi={partial:!0,tokenize:function(e,t,n){return function(t){return Xo(t)?ri(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Qo(e)?t(e):n(e)}}};const fi={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Xo(t))return ri(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(fi,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Xo(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const hi={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Zo(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const mi={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=Vo,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Yo,c):(e.enter("characterReferenceValue"),o=7,i=Go,c(t))}function c(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==Vo||_o(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++<o?(e.consume(l),c):n(l)}}};const gi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},yi={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),Xo(t)?ri(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),Xo(t)?ri(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||Qo(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),Xo(t)?ri(e,c,"whitespace")(t):c(t))}function c(n){return null===n||Qo(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(gi,f,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||Qo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Xo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ri(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||Qo(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||Qo(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&Xo(t)?ri(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||Qo(t)?e.check(gi,f,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||Qo(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const vi={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ri(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):Qo(t)?e.attempt(bi,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||Qo(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},bi={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ri(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Qo(e)?o(e):n(e)}}};const xi={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),l(t))}function l(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("codeTextData"),s(t))}function s(t){return null===t||32===t||96===t||Qo(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}};class wi{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&ki(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ki(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ki(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);ki(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);ki(this.left,t.reverse())}}}function ki(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ci(e){const t={};let n,r,o,i,a,l,s,c=-1;const u=new wi(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(l=n[1]._tokenizer.events,o=0,o<l.length&&"lineEndingBlank"===l[o][1].type&&(o+=2),o<l.length&&"content"===l[o][1].type))for(;++o<l.length&&"content"!==l[o][1].type;)"chunkText"===l[o][1].type&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Si(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return Ro(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function Si(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,s=[],c={};let u,d,p=-1,f=n,h=0,m=0;const g=[m];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&a.defineSkip(f.start),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),f._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<l.length;)"exit"===l[p][0]&&"enter"===l[p-1][0]&&l[p][1].type===l[p-1][1].type&&l[p][1].start.line!==l[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(a.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){const t=l.slice(g[p],g[p+1]),n=i.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),p=-1;++p<s.length;)c[h+s[p][0]]=h+s[p][1],h+=s[p][1]-s[p][0]-1;return c}const Ei={resolve:function(e){return Ci(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):Qo(t)?e.check(Ti,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Ti={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ri(e,o,"linePrefix")};function o(o){if(null===o||Qo(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Oi(e,t,n,r,o,i,a,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||$o(t))return n(t);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||Qo(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!Ko(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||$o(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Ai(e,t,n,r,o,i){const a=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):Qo(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||Qo(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!Xo(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Ni(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l;return n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):Qo(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ri(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||Qo(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Pi(e,t){let n;return function r(o){if(Qo(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(Xo(o))return ri(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const Ii={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Ai.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Uo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return Ko(t)?Pi(e,l)(t):l(t)}function l(t){return Oi(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Di,c,c)(t)}function c(t){return Xo(t)?ri(e,u,"whitespace")(t):u(t)}function u(i){return null===i||Qo(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Di={partial:!0,tokenize:function(e,t,n){return function(t){return Ko(t)?Pi(e,r)(t):n(t)};function r(t){return Ni(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Xo(t)?ri(e,i,"whitespace")(t):i(t)}function i(e){return null===e||Qo(e)?t(e):n(e)}}};const Li={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Qo(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const _i={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Ro(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||Ko(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||Qo(n)?(e.exit("atxHeading"),t(n)):Xo(n)?ri(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||Ko(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}}};const Ri=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ji=["pre","script","style","textarea"],Mi={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),i=!0,f):63===l?(e.consume(l),o=3,r.interrupt?t:_):Ho(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,p):Ho(i)?(e.consume(i),o=4,r.interrupt?t:_):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:_):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:T:p):n(o)}function f(t){return Ho(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||Ko(l)){const s=47===l,c=a.toLowerCase();return s||i||!ji.includes(c)?Ri.includes(a.toLowerCase())?(o=6,s?(e.consume(l),m):r.interrupt?t(l):T(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?g(l):y(l)):(o=1,r.interrupt?t(l):T(l))}return 45===l||Vo(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:T):n(o)}function g(t){return Xo(t)?(e.consume(t),g):S(t)}function y(t){return 47===t?(e.consume(t),S):58===t||95===t||Ho(t)?(e.consume(t),v):Xo(t)?(e.consume(t),y):S(t)}function v(t){return 45===t||46===t||58===t||95===t||Vo(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),x):Xo(t)?(e.consume(t),b):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):Xo(t)?(e.consume(t),x):k(t)}function w(t){return t===s?(e.consume(t),s=null,C):null===t||Qo(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Ko(t)?b(t):(e.consume(t),k)}function C(e){return 47===e||62===e||Xo(e)?y(e):n(e)}function S(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||Qo(t)?T(t):Xo(t)?(e.consume(t),E):n(t)}function T(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),I):62===t&&4===o?(e.consume(t),R):63===t&&3===o?(e.consume(t),_):93===t&&5===o?(e.consume(t),L):!Qo(t)||6!==o&&7!==o?null===t||Qo(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(Fi,j,O)(t))}function O(t){return e.check(zi,A,j)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||Qo(t)?O(t):(e.enter("htmlFlowData"),T(t))}function P(t){return 45===t?(e.consume(t),_):T(t)}function I(t){return 47===t?(e.consume(t),a="",D):T(t)}function D(t){if(62===t){const n=a.toLowerCase();return ji.includes(n)?(e.consume(t),R):T(t)}return Ho(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),D):T(t)}function L(t){return 93===t?(e.consume(t),_):T(t)}function _(t){return 62===t?(e.consume(t),R):45===t&&2===o?(e.consume(t),_):T(t)}function R(t){return null===t||Qo(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),R)}function j(n){return e.exit("htmlFlow"),t(n)}}},Fi={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(pi,t,n)}}},zi={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Qo(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const qi={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),x):63===t?(e.consume(t),v):Ho(t)?(e.consume(t),C):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):Ho(t)?(e.consume(t),y):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):Qo(t)?(a=u,D(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?I(e):45===e?d(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):Qo(t)?(a=h,D(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?I(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?I(t):Qo(t)?(a=y,D(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):Qo(t)?(a=v,D(t)):(e.consume(t),v)}function b(e){return 62===e?I(e):v(e)}function x(t){return Ho(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||Vo(t)?(e.consume(t),w):k(t)}function k(t){return Qo(t)?(a=k,D(t)):Xo(t)?(e.consume(t),k):I(t)}function C(t){return 45===t||Vo(t)?(e.consume(t),C):47===t||62===t||Ko(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),I):58===t||95===t||Ho(t)?(e.consume(t),E):Qo(t)?(a=S,D(t)):Xo(t)?(e.consume(t),S):I(t)}function E(t){return 45===t||46===t||58===t||95===t||Vo(t)?(e.consume(t),E):T(t)}function T(t){return 61===t?(e.consume(t),O):Qo(t)?(a=T,D(t)):Xo(t)?(e.consume(t),T):S(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,A):Qo(t)?(a=O,D(t)):Xo(t)?(e.consume(t),O):(e.consume(t),N)}function A(t){return t===o?(e.consume(t),o=void 0,P):null===t?n(t):Qo(t)?(a=A,D(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Ko(t)?S(t):(e.consume(t),N)}function P(e){return 47===e||62===e||Ko(e)?S(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return Xo(t)?ri(e,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):_(t)}function _(t){return e.enter("htmlTextData"),a(t)}}};const Bi={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Ro(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,l=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=a);const s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[r+l+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",s,t],["enter",c,t]],i=jo(i,e.slice(r+1,r+l+3)),i=jo(i,[["enter",u,t]]),i=jo(i,si(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),i=jo(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=jo(i,e.slice(o+1)),i=jo(i,[["exit",s,t]]),Ro(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(Uo(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l};function l(t){return 40===t?e.attempt(Ui,c,i?c:u)(t):91===t?e.attempt(Hi,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(Vi,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},Ui={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Ko(t)?Pi(e,o)(t):o(t)}function o(t){return 41===t?c(t):Oi(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Ko(t)?Pi(e,l)(t):c(t)}function a(e){return n(e)}function l(t){return 34===t||39===t||40===t?Ni(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return Ko(t)?Pi(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Hi={tokenize:function(e,t,n){const r=this;return function(t){return Ai.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Uo(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Vi={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Wi={name:"labelStartImage",resolveAll:Bi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const $i={name:"labelStartLink",resolveAll:Bi.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Gi={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ri(e,t,"linePrefix")}}};const Yi={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||Qo(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),Xo(t)?ri(e,i,"whitespace")(t):i(t))}}};const Zi={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(pi,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ri(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!Xo(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ki,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ri(e,e.attempt(Zi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Go(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Yi,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Go(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(pi,r.interrupt?n:c,e.attempt(Qi,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return Xo(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Qi={partial:!0,tokenize:function(e,t,n){const r=this;return ri(e,(function(e){const o=r.events[r.events.length-1];return!Xo(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Ki={partial:!0,tokenize:function(e,t,n){const r=this;return ri(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)}};const Xi={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),Xo(t)?ri(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||Qo(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const Ji={tokenize:function(e){const t=this,n=e.attempt(pi,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,ri(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ei,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const ea={resolveAll:oa()},ta=ra("string"),na=ra("text");function ra(e){return{resolveAll:oa("text"===e?ia:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function oa(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function ia(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,l=-1,s=0;for(;a--;){const e=o[a];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)i=!0,s++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const o={type:n===e.length||i||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const aa={42:Zi,43:Zi,45:Zi,48:Zi,49:Zi,50:Zi,51:Zi,52:Zi,53:Zi,54:Zi,55:Zi,56:Zi,57:Zi,62:fi},la={91:Ii},sa={[-2]:vi,[-1]:vi,32:vi},ca={35:_i,42:Yi,45:[Xi,Yi],60:Mi,61:Xi,95:Yi,96:yi,126:yi},ua={38:mi,92:hi},da={[-5]:Gi,[-4]:Gi,[-3]:Gi,33:Wi,38:mi,42:ci,60:[di,qi],91:$i,92:[Li,hi],93:Bi,95:ci,96:xi},pa={null:[ci,ea]};var fa=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:la,disable:{null:[]},document:aa,flow:ca,flowInitial:sa,insideSpan:pa,string:ua,text:da});function ha(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],l=[];const s={attempt:g((function(e,t){y(e,t.from)})),check:g(m),consume:function(e){Qo(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=jo(a,e),f(),null!==a[a.length-1])return[];return y(t,0),c.events=si(i,c.events,c),c.events}};let u=t.tokenize.call(c,s);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function f(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,o,i){let a,u,d,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){f=function(){const e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(l);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,l=i,v()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,g,y)(n)}}function g(t){return e(d,f),o}function y(e){return f.restore(),++u<a.length?m(a[u]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Ro(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const ma=/[\0\t\n\r]/g;const ga=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ya(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Bo(n.slice(t?2:1),t?16:10)}return _o(n)||e}const va={}.hasOwnProperty;function ba(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(K),blockQuote:i($),characterEscape:E,characterReference:E,codeFenced:i(G),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(G,a),codeText:i(Y,a),codeTextData:E,data:E,codeFlowValue:E,definition:i(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(Q),hardBreakEscape:i(X),hardBreakTrailing:i(X),htmlFlow:i(J,a),htmlFlowData:E,htmlText:i(J,a),htmlTextData:E,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:p,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:z,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(K),strong:i(ie),thematicBreak:i(le)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:W,autolinkProtocol:V,blockQuote:s(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:U,characterReference:H,codeFenced:s(g),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:s(y),codeText:s(I),codeTextData:T,data:T,definition:s(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(A),hardBreakTrailing:s(A),htmlFlow:s(N),htmlFlowData:T,htmlText:s(P),htmlTextData:T,image:s(L),label:R,labelText:_,lineEnding:O,link:s(D),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:q,resourceDestinationString:j,resourceTitleString:M,resource:F,setextHeading:s(S),setextHeadingLineSequence:C,setextHeadingText:k,strong:s(),thematicBreak:s()}};wa(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:u,data:n},s=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])s.push(d);else{d=o(e,s.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];va.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Ca).call(i,void 0,e[0])}for(r.position={start:xa(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:xa(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,l=t-1,s=-1,c=!1;for(;++l<=n;){const t=e[l];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||s||i||(i=l),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=l;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||l,0,["exit",r,t[2]]),l++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(l,0,["enter",o,t[2]]),l++,n++,i=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){l.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:xa(t.start),end:void 0}}function s(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+io({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Ca).call(this,e,r[0])}n.position.end=xa(e.end)}function u(){return No(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Uo(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:xa(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=xa(e.end)}function O(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=xa(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),T.call(this,e))}function A(){this.data.atHardBreak=!0}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function _(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(ga,ya)}(t),n.identifier=Uo(t).toLowerCase()}function R(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function j(){const e=this.resume();this.stack[this.stack.length-1].url=e}function M(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function q(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Uo(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Bo(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=_o(t)}this.stack[this.stack.length-1].value+=r}function H(e){this.stack.pop().position.end=xa(e.end)}function V(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function $(){return{type:"blockquote",children:[]}}function G(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function Z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function K(){return{type:"heading",depth:0,children:[]}}function X(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Ci(e););return e}(function(e){const t={constructs:Fo([fa,...(e||{}).extensions||[]]),content:n(oi),defined:[],document:n(ii),flow:n(Ji),lazy:{},string:n(ta),text:n(na)};return t;function n(e){return function(n){return ha(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const l=[];let s,c,u,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(ma.lastIndex=u,s=ma.exec(o),d=s&&void 0!==s.index?s.index:o.length,p=o.charCodeAt(d),!s){n=o.slice(u);break}if(10===p&&u===d&&e)l.push(-3),e=void 0;else switch(e&&(l.push(-5),e=void 0),u<d&&(l.push(o.slice(u,d)),t+=d-u),p){case 0:l.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),l.push(-2);t++<c;)l.push(-1);break;case 10:l.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function xa(e){return{line:e.line,column:e.column,offset:e.offset}}function wa(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?wa(e,r):ka(e,r)}}function ka(e,t){let n;for(n in t)if(va.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ca(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+io({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+io({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+io({start:t.start,end:t.end})+") is still open")}function Sa(e){const t=this;t.parser=function(n){return ba(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ea(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Ta(e){const t=e.spread;return null==t?e.children.length>1:t}function Oa(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Aa(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Aa(t.slice(o),o>0,!1)),i.join("")}function Aa(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Na={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=ni(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ea(e,t);const o={src:ni(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:ni(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Ea(e,t);const o={href:ni(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:ni(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Ta(n[r])}return t}(n):Ta(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=ro(t.children[1]),a=no(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l<a;){const n=t.children[l],r={},a=i?i[l]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Oa(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Pa,yaml:Pa,definition:Pa,footnoteDefinition:Pa};function Pa(){}const Ia="object"==typeof self?self:globalThis,Da=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Ia[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new Ia[i](a),o)};return r})(new Map,e)(0),La="",{toString:_a}={},{keys:Ra}=Object,ja=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=_a.call(e).slice(8,-1);switch(n){case"Array":return[1,La];case"Object":return[2,La];case"Date":return[3,La];case"RegExp":return[4,La];case"Map":return[5,La];case"Set":return[6,La];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Ma=([e,t])=>0===e&&("function"===t||"symbol"===t),Fa=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=ja(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),o([l,[...e]],r)}const e=[],t=o([a,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of Ra(r))!e&&Ma(ja(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[n,o]of r)(e||!Ma(ja(n))&&!Ma(ja(o)))&&t.push([i(n),i(o)]);return n}case 6:{const t=[],n=o([a,t],r);for(const n of r)!e&&Ma(ja(n))||t.push(i(n));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var za="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Da(Fa(e,t)):structuredClone(e):(e,t)=>Da(Fa(e,t));function qa(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Ba(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Ua=function(e){if(null==e)return Va;if("function"==typeof e)return Ha(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ua(e[n]);return Ha(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return Ha(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return Ha(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Ha(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Va(){return!0}const Wa=[],$a=!0,Ga=!1;function Ya(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Ua(o),a=r?-1:1;!function e(o,l,s){const c=o&&"object"==typeof o?o:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=Wa;if((!t||i(o,l,s[s.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[$a,e];return null==e?Wa:[e]}(n(o,s)),p[0]===Ga))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+a,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Ga)return c;u="number"==typeof c[1]?c[1]:u+a}}return p}}(e,void 0,[])()}function Za(e,t,n,r){let o,i,a;"function"==typeof t?(i=void 0,a=t,o=n):(i=t,a=n,o=r),Ya(e,i,(function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}const Qa={}.hasOwnProperty,Ka={};function Xa(e,t){e.position&&(t.position=function(e){const t=ro(e),n=no(e);if(t&&n)return{start:t,end:n}}(e))}function Ja(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,za(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function el(e,t){const n=t.data||{},r=!("value"in t)||Qa.call(n,"hProperties")||Qa.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function tl(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nl(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function rl(e,t){const n=function(e,t){const n=t||Ka,r=new Map,o=new Map,i=new Map,a={...Na,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=l.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=nl(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=nl(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Ja,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=l.handlers[n];if(Qa.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=za(n);return r.children=l.all(e),r}return za(e)}return(l.options.unknownHandler||el)(l,e,t)},options:n,patch:Xa,wrap:tl};return Za(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),l}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||qa,r=e.options.footnoteBackLabel||Ba,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[s]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=ni(a.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(a);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...za(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function ol(e,t){return e&&"run"in e?async function(n,r){const o=rl(n,{file:r,...t});await e.run(o,r)}:function(n,r){return rl(n,{file:r,...e||t})}}function il(e){if(e)throw e}var al=Object.prototype.hasOwnProperty,ll=Object.prototype.toString,sl=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,ul=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ll.call(e)},dl=function(e){if(!e||"[object Object]"!==ll.call(e))return!1;var t,n=al.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&al.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||al.call(e,t)},pl=function(e,t){sl&&"__proto__"===t.name?sl(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},fl=function(e,t){if("__proto__"===t){if(!al.call(e,t))return;if(cl)return cl(e,t).value}return e[t]},hl=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=fl(l,n),l!==(o=fl(t,n))&&(u&&o&&(dl(o)||(i=ul(o)))?(i?(i=!1,a=r&&ul(r)?r:[]):a=r&&dl(r)?r:{},pl(l,{name:n,newValue:e(u,a,o)})):void 0!==o&&pl(l,{name:n,newValue:o}));return l},ml=pe(hl);function gl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function yl(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const l=e[++n];let s=-1;if(i)r(i);else{for(;++s<t.length;)null!==a[s]&&void 0!==a[s]||(a[s]=t[s]);t=a,l?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a&&a.then&&"function"==typeof a.then?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const vl={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');bl(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(bl(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){bl(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)bl(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){bl(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,l=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===l);else if(a!==s-1&&2===l){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function bl(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xl={cwd:function(){return"/"}};function wl(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function kl(e){if("string"==typeof e)e=new URL(e);else if(!wl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Cl=["history","path","basename","stem","extname","dirname"];class Sl{constructor(e){let t;t=e?wl(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":xl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Cl.length;){const e=Cl[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Cl.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?vl.basename(this.path):void 0}set basename(e){Tl(e,"basename"),El(e,"basename"),this.path=vl.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?vl.dirname(this.path):void 0}set dirname(e){Ol(this.basename,"dirname"),this.path=vl.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?vl.extname(this.path):void 0}set extname(e){if(El(e,"extname"),Ol(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=vl.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){wl(e)&&(e=kl(e)),Tl(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?vl.basename(this.path,this.extname):void 0}set stem(e){Tl(e,"stem"),El(e,"stem"),this.path=vl.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new co(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function El(e,t){if(e&&e.includes(vl.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+vl.sep+"`")}function Tl(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ol(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Al=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Nl={}.hasOwnProperty;class Pl extends Al{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=yl()}copy(){const e=new Pl;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(ml(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(_l("data",this.frozen),this.namespace[e]=t,this):Nl.call(this.namespace,e)&&this.namespace[e]||void 0:e?(_l("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Ml(e),n=this.parser||this.Parser;return Dl("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Dl("process",this.parser||this.Parser),Ll("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=Ml(e),a=n.parse(i);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){if(e||!t||!r)return l(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,l(e,r)}))}}processSync(e){let t,n=!1;return this.freeze(),Dl("processSync",this.parser||this.Parser),Ll("processSync",this.compiler||this.Compiler),this.process(e,(function(e,r){n=!0,il(e),t=r})),jl("processSync","process",n),t}run(e,t,n){Rl(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=Ml(t);r.run(e,a,(function(t,r,a){const l=r||e;t?i(t):o?o(l):n(void 0,l,a)}))}}runSync(e,t){let n,r=!1;return this.run(e,t,(function(e,t){il(e),n=t,r=!0})),jl("runSync","run",r),n}stringify(e,t){this.freeze();const n=Ml(t),r=this.compiler||this.Compiler;return Ll("stringify",r),Rl(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(_l("use",this.frozen),null==e);else if("function"==typeof e)l(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)l(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;l(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=ml(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function l(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];gl(a)&&gl(r)&&(r=ml(!0,a,r)),n[o]=[e,r,...i]}}}}const Il=(new Pl).freeze();function Dl(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Ll(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function _l(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rl(e){if(!gl(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function jl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ml(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Sl(e)}const Fl=[],zl={allowDangerousHtml:!0},ql=/^(https?|ircs?|mailto|xmpp)$/i,Bl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ul(r){const o=function(e){const t=e.rehypePlugins||Fl,n=e.remarkPlugins||Fl,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...zl}:zl,o=Il().use(Sa).use(n).use(ol,r).use(t);return o}(r),i=function(e){const t=e.children||"",n=new Sl;"string"==typeof t&&(n.value=t);return n}(r);return function(r,o){const i=o.allowedElements,a=o.allowElement,l=o.components,s=o.disallowedElements,c=o.skipHtml,u=o.unwrapDisallowed,d=o.urlTransform||Hl;for(const e of Bl)Object.hasOwn(o,e.from)&&(e.from,e.to&&e.to,e.id);return Za(r,p),yo(r,{Fragment:n,components:l,ignoreInvalidStyle:!0,jsx:t,jsxs:e,passKeys:!0,passNode:!0});function p(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return c?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Oo)if(Object.hasOwn(Oo,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Oo[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let r=i?!i.includes(e.tagName):!!s&&s.includes(e.tagName);if(!r&&a&&"number"==typeof t&&(r=!a(e,t,n)),r&&n&&"number"==typeof t)return u&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(o.runSync(o.parse(i),i),r)}function Hl(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||ql.test(e.slice(0,t))?e:""}var Vl="access",Wl="refresh",$l="/token/refresh/",Gl=b.withAttributes({path:"/",secure:!0,sameSite:"strict"}),Yl=function(e,t,n,r){var o=v.create({baseURL:e,headers:{"Content-Type":"application/json"}});Vl=t,Wl=n,$l=r;var i=function(e,t){return(t-e)/86400},a=function(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)},l=function(){return Sn(void 0,void 0,void 0,(function(){var t,n,r;return En(this,(function(o){switch(o.label){case 0:if(!(t=Gl.get(Wl)))return[2];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,v.post("".concat(e).concat($l),{refresh:t})];case 2:return function(e){var t=e.access,n=e.refresh,r=a(t),o=a(n);Gl.set(Vl,t,{expires:i(r.iat,r.exp)}),Gl.set(Wl,n,{expires:i(o.iat,o.exp)})}({access:(n=o.sent()).data.access,refresh:n.data.refresh}),[2,n.data.access];case 3:return r=o.sent(),[2,Promise.reject(r)];case 4:return[2]}}))}))};return o.interceptors.request.use((function(e){return Sn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return t=["login/","register/","password-reset/","password-reset/confirm/","password-reset/validate_token/"],e.url&&t.some((function(t){var n;return null===(n=e.url)||void 0===n?void 0:n.includes(t)}))?[2,e]:function(e){var t=!0;(e.includes("login/")||e.includes("register/")||e.includes("forgot-password/")||e.includes("reset-password/"))&&(t=!1);var n=Gl.get(Vl);if(n){var r=a(n).exp;Date.now()<1e3*r&&(t=!1)}return console.log("hasExpired",t),t}(e.url||"")&&Gl.get(Wl)?[4,l()]:[3,2];case 1:r.sent(),r.label=2;case 2:return(n=Gl.get(Vl))&&e.headers&&(e.headers.Authorization="Bearer ".concat(n)),[2,e]}}))}))}),(function(e){return console.error("Request error:",e),Promise.reject(e)})),o.interceptors.response.use((function(e){return e}),(function(e){return Sn(void 0,void 0,void 0,(function(){var t,n,r,o,i,a;return En(this,(function(l){return e.response?(t=e.response,n=t.status,r=t.data,o="An unexpected error occurred",r&&(r.message?o=r.message:r.msg?o=r.msg:r.detail?o=r.detail:"string"==typeof r?o=r:Object.keys(r).length>0&&(i=Object.keys(r)[0],a=r[i],o=Array.isArray(a)?"".concat(i,": ").concat(a[0]):"".concat(i,": ").concat(a))),401===n?console.error("Authentication error:",o):403===n?console.error("Permission denied:",o):404===n?console.error("Resource not found:",o):n>=500&&console.error("Server error:",o),[2,Promise.reject({status:n,message:o,data:r})]):(console.error("Network error:",e),[2,Promise.reject({message:"Network error. Please check your connection."})])}))}))})),o},Zl=function(n){var r=n.visible,o=n.onSubmit,a=n.title,l=void 0===a?"Enter 6-digit Code":a,s=n.setVisible,c=i(""),u=c[0],d=c[1];return r?e("div",{className:"modal-overlay",children:[e("div",{className:"modal-content",children:[t("div",{className:"modal-header",children:t("h3",{children:l})}),e("div",{className:"modal-body",children:[t("div",{className:"otp-container",children:t("div",{className:"otp-inputs",children:Tn([],Array(6),!0).map((function(e,n){return t("input",{type:"text",maxLength:1,className:"otp-input",value:u[n]||"",onChange:function(e){var t=e.target.value;if(/^\d*$/.test(t)){var r=u.split("");r[n]=t;var o=r.join("");if(d(o),t&&n<5){var i=document.querySelectorAll(".otp-input")[n+1];null==i||i.focus()}}},onKeyDown:function(e){if("Backspace"===e.key&&!u[n]&&n>0){var t=document.querySelectorAll(".otp-input")[n-1];null==t||t.focus()}},onFocus:function(e){return e.target.select()}},n)}))})}),e("div",{className:"modal-actions",children:[t("button",{className:"cancel-btn",onClick:function(){s(!1),d("")},children:"Cancel"}),t("button",{className:"submit-btn ".concat(6===u.length?"active":"disabled"),onClick:function(){s(!1),6===u.length&&(null==o||o(u))},disabled:6!==u.length,children:"Authorize"})]})]})]}),t("style",{children:"\n .modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n }\n\n .modal-content {\n background: white;\n border-radius: 6px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n width: fit-content;\n min-width: 400px;\n position: relative;\n }\n\n .modal-header {\n padding: 1rem;\n border-bottom: 1px solid #e5e7eb;\n }\n\n .modal-header h3 {\n margin: 0;\n font-size: 1.25rem;\n font-weight: 600;\n color: #374151;\n }\n\n .modal-body {\n padding: 1rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n }\n\n .otp-container {\n display: flex;\n justify-content: center;\n margin-bottom: 1rem;\n }\n\n .otp-inputs {\n display: flex;\n gap: 0.5rem;\n }\n\n .otp-input {\n width: 40px;\n height: 40px;\n text-align: center;\n font-size: 1.25rem;\n border: 2px solid #d1d5db;\n border-radius: 6px;\n outline: none;\n transition: all 0.2s;\n }\n\n .otp-input:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);\n }\n\n .otp-input:not(:placeholder-shown) {\n border-color: #7761F3;\n }\n\n .modal-actions {\n display: flex;\n justify-content: flex-end;\n gap: 0.5rem;\n }\n\n .cancel-btn {\n padding: 0.5rem 1rem;\n background-color: white;\n color: #666;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 90px;\n }\n\n .cancel-btn:hover {\n background-color: white;\n }\n\n .submit-btn {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 0.875rem;\n width: 110px;\n transition: all 0.2s;\n }\n\n .submit-btn.active {\n background-color: #7761F3;\n color: white;\n cursor: pointer;\n }\n\n .submit-btn.active:hover {\n background-color: #7761F3;\n }\n\n .submit-btn.disabled {\n background-color: #d1d5db;\n color: #6b7280;\n cursor: not-allowed;\n }\n "})]}):null};function Ql(e){var t=i(!1),n=t[0],r=t[1];return d((function(){var t=window.matchMedia(e);r(t.matches);var n=function(e){r(e.matches)};return t.addEventListener("change",n),function(){return t.removeEventListener("change",n)}}),[e]),n}var Kl=function(n){var r,o=n.visible,a=n.onSubmit,l=n.title,s=void 0===l?"Enter 6-digit Code":l,c=n.setVisible,u=n.selectedConversation,d=i("");if(d[0],d[1],!o)return null;var p={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},f=kn(kn({},p),{backgroundColor:"#ffffff",color:"#666",border:"none"}),h=kn(kn({},p),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return c(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t(Hn,{size:18,style:{color:"#FF0000"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:s})]}),e("div",{style:{padding:"20px",color:"#333",fontSize:"18px"},children:[t("span",{style:{fontWeight:"bold"},children:(null===(r=null==u?void 0:u.title)||void 0===r?void 0:r.length)>32?"".concat(u.title.slice(0,32),"..."):(null==u?void 0:u.title)||""})," ","conversation will be permanently removed"]}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:f,onClick:function(){return c(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:h,onClick:function(){return a&&a()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Yes Delete"})]})]})})};function Xl(n){var r=n.onEdit,o=n.onDelete,a=i(!1),l=a[0],s=a[1],c=u(null);d((function(){function e(e){c.current&&!c.current.contains(e.target)&&s(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var p={display:"flex",alignItems:"center",gap:"8px",padding:"0.5rem 1rem",cursor:"pointer",border:"none",backgroundColor:"transparent",width:"100%",textAlign:"left",fontSize:"14px",transition:"background-color 0.2s ease"},f={borderRadius:"50%",padding:"6px",fontSize:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",color:"white"};return e("div",{style:{position:"relative",display:"inline-block"},ref:c,children:[t("button",{onClick:function(e){e.stopPropagation(),s(!l)},style:{backgroundColor:"transparent",border:"none",color:"#333",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center"},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},"aria-haspopup":"true","aria-expanded":l,children:t(zn,{size:16})}),l&&e("div",{style:{position:"absolute",top:"100%",right:"0",backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"6px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",zIndex:50,minWidth:"140px",marginTop:"4px"},children:[e("button",{style:p,onClick:function(e){e.stopPropagation(),r(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},f),{backgroundColor:"green"}),children:t(Un,{size:12})}),t("span",{children:"Rename"})]}),e("button",{style:p,onClick:function(e){e.stopPropagation(),o(),s(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="transparent"},children:[t("span",{style:kn(kn({},f),{backgroundColor:"red"}),children:t(Hn,{size:12})}),t("span",{children:"Delete"})]})]})]})}var Jl=function(n){var r=n.visible,o=n.onSubmit,i=n.title,a=void 0===i?"Enter 6-digit Code":i,l=n.setVisible;n.selectedConversation;var s=n.tempTitle,c=n.setTempTitle;if(!r)return null;var u={cursor:"pointer",padding:"8px 16px",borderRadius:"4px",border:"1px solid",fontSize:"14px",fontWeight:"500",width:"110px",transition:"all 0.2s ease"},d=kn(kn({},u),{backgroundColor:"#ffffff",color:"#666",border:"none"}),p=kn(kn({},u),{backgroundColor:"#7761F3",color:"#fff",border:"none"});return t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:function(){return l(!1)},children:e("div",{style:{backgroundColor:"white",borderRadius:"6px",width:"30rem",height:"14rem",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)",position:"relative"},onClick:function(e){return e.stopPropagation()},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",borderBottom:"1px solid #e5e7eb"},children:[t(Un,{size:18,style:{color:"green"}}),t("span",{style:{fontSize:"18px",fontWeight:600},children:a})]}),t("div",{style:{padding:"20px"},children:t("input",{value:s,onChange:function(e){return c(e.target.value)},style:{width:"100%",border:"1px solid #d1d5db",borderRadius:"4px",padding:"10px",fontSize:"14px",outline:"none",transition:"border-color 0.2s ease"},placeholder:"Enter conversation title",onFocus:function(e){e.target.style.borderColor="#7761F3"},onBlur:function(e){e.target.style.borderColor="#d1d5db"}})}),e("div",{style:{display:"flex",justifyContent:"flex-end",gap:"0.5rem",position:"absolute",right:"1rem",bottom:"1rem"},children:[t("button",{style:d,onClick:function(){return l(!1)},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#f3f4f6"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#ffffff"},children:"Cancel"}),t("button",{style:p,onClick:function(){return o&&o()},onMouseOver:function(e){e.currentTarget.style.backgroundColor="#6b5bc9"},onMouseOut:function(e){e.currentTarget.style.backgroundColor="#7761F3"},children:"Save"})]})]})})};function es(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function ts(e,t,n){const r=Ua((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([ns(e[0]),rs(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)Ya(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let l=0;const s=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(l!==n&&u.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),l=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(l<e.value.length&&u.push({type:"text",value:e.value.slice(l)}),n.children.splice(s,1,...u)):u=[e];return s+u.length}(e,t)}}function ns(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function rs(e){return"function"==typeof e?e:function(){return e}}const os="phrasing",is=["autolink","link","image","label"];function as(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ls(e){this.config.enter.autolinkProtocol.call(this,e)}function ss(e){this.config.exit.autolinkProtocol.call(this,e)}function cs(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function us(e){this.config.exit.autolinkEmail.call(this,e)}function ds(e){this.exit(e)}function ps(e){ts(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,fs],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,hs]],{ignore:["link","linkReference"]})}function fs(e,t,n,r,o){let i="";if(!ms(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=es(e,"(");let i=es(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function hs(e,t,n,r){return!(!ms(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ms(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||ei(n)||Jo(n))&&(!t||47!==n)}function gs(){this.buffer()}function ys(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vs(){this.buffer()}function bs(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function xs(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Uo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ws(e){this.exit(e)}function ks(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Uo(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Cs(e){this.exit(e)}function Ss(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),l=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),a(),i+=o.move("]"),i}function Es(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const l=r.enter("footnoteDefinition"),s=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),s(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?Os:Ts)));return l(),a},footnoteReference:Ss},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Ts(e,t,n){return 0===t?e:Os(e,t,n)}function Os(e,t,n){return(n?"":" ")+e}Ss.peek=function(){return"["};const As=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Ns(e){this.enter({type:"delete",children:[]},e)}function Ps(e){this.exit(e)}function Is(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function Ds(e){return e.length}function Ls(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function _s(e,t,n){return">"+(n?"":" ")+e}function Rs(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function js(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&(i=n.stack,a=n.unsafe[o],Rs(i,a.inConstruct,!0)&&!Rs(i,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var i,a;return"\\\n"}function Ms(e,t,n){return(n?"":" ")+e}function Fs(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function zs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function qs(e,t,n){const r=li(e),o=li(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Bs(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),l=a.move(o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=qs(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=zs(c)+s.slice(1));const d=s.charCodeAt(s.length-1),p=qs(r.after.charCodeAt(0),d,o);p.inside&&(s=s.slice(0,-1)+zs(d));const f=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},l+s+f}function Us(e){return e.value||""}function Hs(e,t,n,r){const o=Fs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("![");return c+=s.move(n.safe(e.alt,{before:c,after:"]",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),c+=s.move(")"),a(),c}function Vs(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("![");const c=n.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Ws(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function $s(e,t){const n=No(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Gs(e,t,n,r){const o=Fs(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let l,s;if($s(e,n)){const t=n.stack;n.stack=[],l=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),l(),n.stack=t,r}l=n.enter("link"),s=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),s()),c+=a.move(")"),l(),c}function Ys(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const l=n.createTracker(r);let s=l.move("[");const c=n.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function Zs(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Qs(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Is.peek=function(){return"~"},Bs.peek=function(e,t,n){return n.options.emphasis||"*"},Us.peek=function(){return"<"},Hs.peek=function(){return"!"},Vs.peek=function(){return"!"},Ws.peek=function(){return"`"},Gs.peek=function(e,t,n){return $s(e,n)?"<":"["},Ys.peek=function(){return"["};const Ks=Ua(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Xs(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),l=a.move(o+o);let s=a.move(n.containerPhrasing(e,{after:o,before:l,...a.current()}));const c=s.charCodeAt(0),u=qs(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=zs(c)+s.slice(1));const d=s.charCodeAt(s.length-1),p=qs(r.after.charCodeAt(0),d,o);p.inside&&(s=s.slice(0,-1)+zs(d));const f=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},l+s+f}Xs.peek=function(e,t,n){return n.options.strong||"*"};const Js={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),_s);return o(),a},break:js,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,Ms);return e(),t}const l=n.createTracker(r),s=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),c=n.enter("codeFenced");let u=l.move(s);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...l.current()})),t()}return u+=l.move("\n"),i&&(u+=l.move(i+"\n")),u+=l.move(s),c(),u},definition:function(e,t,n,r){const o=Fs(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let l=n.enter("label");const s=n.createTracker(r);let c=s.move("[");return c+=s.move(n.safe(n.associationId(e),{before:c,after:"]",...s.current()})),c+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),a(),c},emphasis:Bs,hardBreak:js,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return Za(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Ga})),Boolean((!e.depth||e.depth<3)&&No(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),l=n.enter("headingAtx"),s=n.enter("phrasing");i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=zs(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),s(),l(),c},html:Us,image:Hs,imageReference:Vs,inlineCode:Ws,link:Gs,linkReference:Ys,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Zs(n);const l=e.ordered?"."===a?")":".":function(e){const t=Zs(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let s=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),Qs(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(a=l),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||Zs(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const l=n.createTracker(r);l.move(i+" ".repeat(a-i.length)),l.shift(a);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}));return s(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){return Ks(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Xs,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Qs(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function ec(e){const t=e._align;this.enter({type:"table",align:t.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function tc(e){this.exit(e),this.data.inTable=void 0}function nc(e){this.enter({type:"tableRow",children:[]},e)}function rc(e){this.exit(e)}function oc(e){this.enter({type:"tableCell",children:[]},e)}function ic(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ac));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function ac(e,t){return"|"===t?t:e}function lc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Js.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=s(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=s(e,n,r),i=l([o]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),l=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Ds,i=[],a=[],l=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const a=null==(d=e[u][i])?"":String(d);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===s[i]||e>s[i])&&(s[i]=e)}t.push(a)}a[u]=t,l[u]=r}var d;let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)i[p]=Ls(r[p]);else{const e=Ls(r);for(;++p<c;)i[p]=e}p=-1;const f=[],h=[];for(;++p<c;){const e=i[p];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[p]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[p]&&(s[p]=o),h[p]=o),f[p]=a}a.splice(1,0,f),l.splice(1,0,h),u=-1;const m=[];for(;++u<a.length;){const e=a[u],t=l[u];p=-1;const r=[];for(;++p<c;){const o=e[p]||"";let a="",l="";if(!1!==n.alignDelimiters){const e=s[p]-(t[p]||0),n=i[p];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),l=a):l=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!p||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&p===c-1||r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function s(e,t,n){const r=e.children;let o=-1;const i=[],l=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return l(),i}}function sc(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function cc(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function uc(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);i&&l.move(a);let s=Js.listItem(e,t,n,{...r,...l.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),s}const dc={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},pc={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(hc,s,l)(t):null===t||Ko(t)||ei(t)||45!==t&&Jo(t)?s(t):(i=!0,e.consume(t),a)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function s(e){return o||r||!i?n(e):t(e)}},partial:!0},fc={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(hc,t,i)(a):null===a||Ko(a)||ei(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},hc={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||Ko(a)||ei(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||Ko(e)||ei(e)?t(e):r(e)}function i(e){return Ho(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):Ho(t)?(e.consume(t),a):n(t)}},partial:!0},mc={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Vo(e)?n(e):t(e)}},partial:!0},gc={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!wc.call(r,r.previous)||Ec(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(dc,e.attempt(pc,e.attempt(fc,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:wc},yc={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&kc.call(r,r.previous)&&!Ec(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(Ho(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),i?s:(i=!0,l)):n(t)}function s(t){return null===t||$o(t)||Ko(t)||ei(t)||Jo(t)?n(t):e.attempt(pc,e.attempt(fc,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:kc},vc={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Sc(t)||!Cc.call(r,r.previous)||Ec(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Sc(t)?(e.consume(t),a):64===t?(e.consume(t),l):n(t)}function l(t){return 46===t?e.check(mc,c,s)(t):45===t||95===t||Vo(t)?(i=!0,e.consume(t),l):c(t)}function s(t){return e.consume(t),o=!0,l}function c(a){return i&&o&&Ho(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Cc},bc={};let xc=48;for(;xc<123;)bc[xc]=vc,xc++,58===xc?xc=65:91===xc&&(xc=97);function wc(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Ko(e)}function kc(e){return!Ho(e)}function Cc(e){return!(47===e||Sc(e))}function Sc(e){return 43===e||45===e||46===e||95===e||Vo(e)}function Ec(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}bc[43]=vc,bc[45]=vc,bc[46]=vc,bc[95]=vc,bc[72]=[vc,yc],bc[104]=[vc,yc],bc[87]=[vc,gc],bc[119]=[vc,gc];const Tc={tokenize:function(e,t,n){const r=this;return ri(e,(function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Oc(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const l=Uo(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==l.codePointAt(0)||!i.includes(l.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Ac(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...l),e}function Nc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(l){if(a>999||93===l&&!i||null===l||91===l||Ko(l))return n(l);if(93===l){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(Uo(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return Ko(l)||(i=!0),a++,e.consume(l),92===l?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,s):s(t)}}function Pc(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,l=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(l>999||93===t&&!a||null===t||91===t||Ko(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Uo(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Ko(t)||(a=!0),l++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),ri(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function Ic(e,t,n){return e.check(pi,t,e.attempt(Tc,t,n))}function Dc(e){e.exit("gfmFootnoteDefinition")}function Lc(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),l(t)};function l(i){const s=li(o);if(126===i)return a>1?r(i):(e.consume(i),a++,l);if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=li(i);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],l=t.parser.constructs.insideSpan.null;l&&Ro(a,a.length,0,si(l,e.slice(r+1,n),t)),Ro(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),Ro(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class _c{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function Rc(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function jc(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?x:l;if(i===x&&r.parser.lazy[r.now().line])return n(e);return i(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return s(e);return o=!0,a+=1,s(e)}(t)}function s(t){return null===t?n(t):Qo(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Xo(t)?ri(e,s,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,s):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Ko(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,Xo(t)?ri(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):b(t)}function f(t){return Xo(t)?ri(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||Qo(t)?v(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return Xo(t)?ri(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?p(n):(null===n||Qo(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function x(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||Qo(n)?(e.exit("tableRow"),t(n)):Xo(n)?ri(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||Ko(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?C:k)}function C(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function Mc(e,t){let n,r,o,i=-1,a=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new _c;for(;++i<e.length;){const f=e[i],h=f[1];"enter"===f[0]?"tableHead"===h.type?(u=!1,0!==d&&(zc(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,s=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(i,0,[["enter",r,t]])),l="tableDelimiterRow"===h.type?2:r?3:1):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==s[1]&&(c[0]=c[1],o=Fc(p,t,s,l,void 0,o)),s=c,c=[s[1],i,0,0])):(a=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],o=Fc(p,t,s,l,void 0,o),s=[0,0,0,0]),c[2]=i)):"tableHead"===h.type?(u=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==s[1]?(c[0]=c[1],o=Fc(p,t,s,l,i,o)):0!==c[1]&&(o=Fc(p,t,c,l,i,o)),l=0):!l||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(c[3]=i)}for(0!==d&&zc(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Rc(t.events,i))}return e}function Fc(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},qc(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=qc(t.events,n[1]);if(i={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=qc(t.events,n[2]),i=qc(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},qc(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function zc(e,t,n,r,o){const i=[],a=qc(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function qc(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Bc={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return Ko(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return Qo(r)?t(r):Xo(r)?e.check({tokenize:Uc},t,n)(r):n(r)}}};function Uc(e,t,n){return ri(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const Hc={};function Vc(e){const t=e||Hc,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Fo([{text:bc},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Pc,continuation:{tokenize:Ic},exit:Dc}},text:{91:{name:"gfmFootnoteCall",tokenize:Nc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Oc,resolveTo:Ac}}},Lc(e),{flow:{null:{name:"table",tokenize:jc,resolveAll:Mc}}},{text:{91:Bc}}])}(t)),o.push([{transforms:[ps],enter:{literalAutolink:as,literalAutolinkEmail:ls,literalAutolinkHttp:ls,literalAutolinkWww:ls},exit:{literalAutolink:ds,literalAutolinkEmail:us,literalAutolinkHttp:ss,literalAutolinkWww:cs}},{enter:{gfmFootnoteCallString:gs,gfmFootnoteCall:ys,gfmFootnoteDefinitionLabelString:vs,gfmFootnoteDefinition:bs},exit:{gfmFootnoteCallString:xs,gfmFootnoteCall:ws,gfmFootnoteDefinitionLabelString:ks,gfmFootnoteDefinition:Cs}},{canContainEols:["delete"],enter:{strikethrough:Ns},exit:{strikethrough:Ps}},{enter:{table:ec,tableData:oc,tableHeader:oc,tableRow:nc},exit:{codeText:ic,table:tc,tableData:rc,tableHeader:rc,tableRow:rc}},{exit:{taskListCheckValueChecked:sc,taskListCheckValueUnchecked:sc,paragraph:cc}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:os,notInConstruct:is},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:os,notInConstruct:is},{character:":",before:"[ps]",after:"\\/",inConstruct:os,notInConstruct:is}]},Es(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:As}],handlers:{delete:Is}},lc(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:uc}}]}}(t))}var Wc=function(e){var n=e.children,r=e.expandedWidth,o=void 0===r?"280px":r;e.collapsedWidth;var i=e.className,a=void 0===i?"":i,l=e.isExpanded;return e.setIsExpanded,t("div",{style:{position:"relative",height:"100%"},children:t("div",{style:kn({height:"100%",backgroundColor:"transparent",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",paddingRight:"0.25rem",marginTop:"0.25rem",width:l?o:"0px"},a&&{className:a}),children:t("div",{style:{height:"100%",overflow:"auto",scrollbarWidth:"none",msOverflowStyle:"none"},children:t("div",{style:{height:"100%",transition:"opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1)",opacity:l?1:0,pointerEvents:l?"auto":"none",overflow:"auto"},children:n})})})})};function $c(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Gc(e,n=[]){let o=[];const i=()=>{const t=o.map((e=>r.createContext(e)));return function(n){const o=n?.[e]||t;return r.useMemo((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return i.scopeName=e,[function(n,i){const a=r.createContext(i),l=o.length;o=[...o,i];const s=n=>{const{scope:o,children:i,...s}=n,c=o?.[e]?.[l]||a,u=r.useMemo((()=>s),Object.values(s));return t(c.Provider,{value:u,children:i})};return s.displayName=n+"Provider",[s,function(t,o){const s=o?.[e]?.[l]||a,c=r.useContext(s);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},Yc(i,...n)]}function Yc(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function Zc(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Qc(...e){return t=>{let n=!1;const r=e.map((e=>{const r=Zc(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():Zc(e[t],null)}}}}function Kc(...e){return r.useCallback(Qc(...e),e)}function Xc(e){const n=Jc(e),o=r.forwardRef(((e,o)=>{const{children:i,...a}=e,l=r.Children.toArray(i),s=l.find(tu);if(s){const e=s.props.children,i=l.map((t=>t===s?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t));return t(n,{...a,ref:o,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return t(n,{...a,ref:o,children:i})}));return o.displayName=`${e}.Slot`,o}function Jc(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(i.ref=t?Qc(t,e):e),r.cloneElement(n,i)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var eu=Symbol("radix.slottable");function tu(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eu}var nu=globalThis?.document?r.useLayoutEffect:()=>{},ru=r[" useId ".trim().toString()]||(()=>{}),ou=0;function iu(e){const[t,n]=r.useState(ru());return nu((()=>{n((e=>e??String(ou++)))}),[e]),e||(t?`radix-${t}`:"")}var au=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,n)=>{const o=Xc(`Primitive.${n}`),i=r.forwardRef(((e,r)=>{const{asChild:i,...a}=e,l=i?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t(l,{...a,ref:r})}));return i.displayName=`Primitive.${n}`,{...e,[n]:i}}),{});var lu=r[" useInsertionEffect ".trim().toString()]||nu;function su({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[i,a,l]=function({defaultProp:e,onChange:t}){const[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return lu((()=>{a.current=t}),[t]),r.useEffect((()=>{i.current!==n&&(a.current?.(n),i.current=n)}),[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i;{const t=r.useRef(void 0!==e);r.useEffect((()=>{const e=t.current;if(e!==s){const t=e?"controlled":"uncontrolled",n=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s}),[s,o])}const u=r.useCallback((t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&l.current?.(n)}else a(t)}),[s,e,a,l]);return[c,u]}var cu=r.createContext(void 0);function uu(e){const t=r.useContext(cu);return e||t||"ltr"}var du="rovingFocusGroup.onEntryFocus",pu={bubbles:!1,cancelable:!0},fu="RovingFocusGroup",[hu,mu,gu]=function(e){const n=e+"CollectionProvider",[r,i]=Gc(n),[a,l]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:n,children:r}=e,i=o.useRef(null),l=o.useRef(new Map).current;return t(a,{scope:n,itemMap:l,collectionRef:i,children:r})};s.displayName=n;const c=e+"CollectionSlot",u=Xc(c),d=o.forwardRef(((e,n)=>{const{scope:r,children:o}=e,i=Kc(n,l(c,r).collectionRef);return t(u,{ref:i,children:o})}));d.displayName=c;const p=e+"CollectionItemSlot",f="data-radix-collection-item",h=Xc(p),m=o.forwardRef(((e,n)=>{const{scope:r,children:i,...a}=e,s=o.useRef(null),c=Kc(n,s),u=l(p,r);return o.useEffect((()=>(u.itemMap.set(s,{ref:s,...a}),()=>{u.itemMap.delete(s)}))),t(h,{[f]:"",ref:c,children:i})}));return m.displayName=p,[{Provider:s,Slot:d,ItemSlot:m},function(t){const n=l(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},i]}(fu),[yu,vu]=Gc(fu,[gu]),[bu,xu]=yu(fu),wu=r.forwardRef(((e,n)=>t(hu.Provider,{scope:e.__scopeRovingFocusGroup,children:t(hu.Slot,{scope:e.__scopeRovingFocusGroup,children:t(ku,{...e,ref:n})})})));wu.displayName=fu;var ku=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:a=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...f}=e,h=r.useRef(null),m=Kc(n,h),g=uu(l),[y,v]=su({prop:s,defaultProp:c??null,onChange:u,caller:fu}),[b,x]=r.useState(!1),w=function(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}(d),k=mu(o),C=r.useRef(!1),[S,E]=r.useState(0);return r.useEffect((()=>{const e=h.current;if(e)return e.addEventListener(du,w),()=>e.removeEventListener(du,w)}),[w]),t(bu,{scope:o,orientation:i,dir:g,loop:a,currentTabStopId:y,onItemFocus:r.useCallback((e=>v(e)),[v]),onItemShiftTab:r.useCallback((()=>x(!0)),[]),onFocusableItemAdd:r.useCallback((()=>E((e=>e+1))),[]),onFocusableItemRemove:r.useCallback((()=>E((e=>e-1))),[]),children:t(au.div,{tabIndex:b||0===S?-1:0,"data-orientation":i,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:$c(e.onMouseDown,(()=>{C.current=!0})),onFocus:$c(e.onFocus,(e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(du,pu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=k().filter((e=>e.focusable));Tu([e.find((e=>e.active)),e.find((e=>e.id===y)),...e].filter(Boolean).map((e=>e.ref.current)),p)}}C.current=!1})),onBlur:$c(e.onBlur,(()=>x(!1)))})})})),Cu="RovingFocusGroupItem",Su=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:a=!1,tabStopId:l,children:s,...c}=e,u=iu(),d=l||u,p=xu(Cu,o),f=p.currentTabStopId===d,h=mu(o),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:y}=p;return r.useEffect((()=>{if(i)return m(),()=>g()}),[i,m,g]),t(hu.ItemSlot,{scope:o,id:d,focusable:i,active:a,children:t(au.span,{tabIndex:f?0:-1,"data-orientation":p.orientation,...c,ref:n,onMouseDown:$c(e.onMouseDown,(e=>{i?p.onItemFocus(d):e.preventDefault()})),onFocus:$c(e.onFocus,(()=>p.onItemFocus(d))),onKeyDown:$c(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Eu[r]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=p.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>Tu(o)))}var n,r})),children:"function"==typeof s?s({isCurrentTabStop:f,hasTabStop:null!=y}):s})})}));Su.displayName=Cu;var Eu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Tu(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Ou=wu,Au=Su;var Nu=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef(null),i=r.useRef(e),a=r.useRef("none"),l=e?"mounted":"unmounted",[s,c]=function(e,t){return r.useReducer(((e,n)=>t[e][n]??e),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=Pu(o.current);a.current="mounted"===s?e:"none"}),[s]),nu((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=Pu(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),nu((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const a=Pu(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&a&&(c("ANIMATION_END"),!i.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},l=e=>{e.target===t&&(a.current=Pu(o.current))};return t.addEventListener("animationstart",l),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",l),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback((e=>{o.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=Kc(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function Pu(e){return e?.animationName||"none"}Nu.displayName="Presence";var Iu="Tabs",[Du,Lu]=Gc(Iu,[vu]),_u=vu(),[Ru,ju]=Du(Iu),Mu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:s,activationMode:c="automatic",...u}=e,d=uu(s),[p,f]=su({prop:o,onChange:i,defaultProp:a??"",caller:Iu});return t(Ru,{scope:r,baseId:iu(),value:p,onValueChange:f,orientation:l,dir:d,activationMode:c,children:t(au.div,{dir:d,"data-orientation":l,...u,ref:n})})}));Mu.displayName=Iu;var Fu="TabsList",zu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,loop:o=!0,...i}=e,a=ju(Fu,r),l=_u(r);return t(Ou,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:o,children:t(au.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:n})})}));zu.displayName=Fu;var qu="TabsTrigger",Bu=r.forwardRef(((e,n)=>{const{__scopeTabs:r,value:o,disabled:i=!1,...a}=e,l=ju(qu,r),s=_u(r),c=Hu(l.baseId,o),u=Vu(l.baseId,o),d=o===l.value;return t(Au,{asChild:!0,...s,focusable:!i,active:d,children:t(au.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c,...a,ref:n,onMouseDown:$c(e.onMouseDown,(e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(o)})),onKeyDown:$c(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(o)})),onFocus:$c(e.onFocus,(()=>{const e="manual"!==l.activationMode;d||i||!e||l.onValueChange(o)}))})})}));Bu.displayName=qu;var Uu="TabsContent";function Hu(e,t){return`${e}-trigger-${t}`}function Vu(e,t){return`${e}-content-${t}`}r.forwardRef(((e,n)=>{const{__scopeTabs:o,value:i,forceMount:a,children:l,...s}=e,c=ju(Uu,o),u=Hu(c.baseId,i),d=Vu(c.baseId,i),p=i===c.value,f=r.useRef(p);return r.useEffect((()=>{const e=requestAnimationFrame((()=>f.current=!1));return()=>cancelAnimationFrame(e)}),[]),t(Nu,{present:a||p,children:({present:r})=>t(au.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...s,ref:n,style:{...e.style,animationDuration:f.current?"0s":void 0},children:r&&l})})})).displayName=Uu;var Wu=Mu,$u=zu,Gu=Bu;function Yu(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Yu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Zu=e=>{const t=Ju(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Qu(n,t)||Xu(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Qu=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Qu(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},Ku=/^\[(.+)\]$/,Xu=e=>{if(Ku.test(e)){const t=Ku.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ju=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const e in n)ed(n[e],r,e,t);return r},ed=(e,t,n,r)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return nd(e)?void ed(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{ed(o,td(t,e),n,r)}))}else{(""===e?t:td(t,e)).classGroupId=n}}))},td=(e,t)=>{let n=e;return t.split("-").forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n},nd=e=>e.isThemeGetter,rd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},od=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;for(let a=0;a<e.length;a++){let l=e[a];if(0===r&&0===o){if(":"===l){t.push(e.slice(i,a)),i=a+1;continue}if("/"===l){n=a;continue}}"["===l?r++:"]"===l?r--:"("===l?o++:")"===l&&o--}const a=0===t.length?e:e.substring(i),l=id(a);return{modifiers:t,hasImportantModifier:l!==a,baseClassName:l,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},id=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,ad=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach((e=>{"["===e[0]||t[e]?(n.push(...r.sort(),e),r=[]):r.push(e)})),n.push(...r.sort()),n}},ld=/\s+/;function sd(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=cd(e))&&(r&&(r+=" "),r+=t);return r}const cd=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=cd(e[r]))&&(n&&(n+=" "),n+=t);return n};function ud(e,...t){let n,r,o,i=function(l){const s=t.reduce(((e,t)=>t(e)),e());return n=(e=>({cache:rd(e.cacheSize),parseClassName:od(e),sortModifiers:ad(e),...Zu(e)}))(s),r=n.cache.get,o=n.cache.set,i=a,a(l)};function a(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],l=e.trim().split(ld);let s="";for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(t);if(c){s=t+(s.length>0?" "+s:s);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h){s=t+(s.length>0?" "+s:s);continue}if(m=r(p),!m){s=t+(s.length>0?" "+s:s);continue}h=!1}const g=i(u).join(":"),y=d?g+"!":g,v=y+m;if(a.includes(v))continue;a.push(v);const b=o(m,h);for(let e=0;e<b.length;++e){const t=b[e];a.push(y+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,i),i}return function(){return i(sd.apply(null,arguments))}}const dd=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},pd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hd=/^\d+\/\d+$/,md=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xd=e=>hd.test(e),wd=e=>!!e&&!Number.isNaN(Number(e)),kd=e=>!!e&&Number.isInteger(Number(e)),Cd=e=>e.endsWith("%")&&wd(e.slice(0,-1)),Sd=e=>md.test(e),Ed=()=>!0,Td=e=>gd.test(e)&&!yd.test(e),Od=()=>!1,Ad=e=>vd.test(e),Nd=e=>bd.test(e),Pd=e=>!Dd(e)&&!Fd(e),Id=e=>Wd(e,Zd,Od),Dd=e=>pd.test(e),Ld=e=>Wd(e,Qd,Td),_d=e=>Wd(e,Kd,wd),Rd=e=>Wd(e,Gd,Od),jd=e=>Wd(e,Yd,Nd),Md=e=>Wd(e,Jd,Ad),Fd=e=>fd.test(e),zd=e=>$d(e,Qd),qd=e=>$d(e,Xd),Bd=e=>$d(e,Gd),Ud=e=>$d(e,Zd),Hd=e=>$d(e,Yd),Vd=e=>$d(e,Jd,!0),Wd=(e,t,n)=>{const r=pd.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},$d=(e,t,n=!1)=>{const r=fd.exec(e);return!!r&&(r[1]?t(r[1]):n)},Gd=e=>"position"===e||"percentage"===e,Yd=e=>"image"===e||"url"===e,Zd=e=>"length"===e||"size"===e||"bg-size"===e,Qd=e=>"length"===e,Kd=e=>"number"===e,Xd=e=>"family-name"===e,Jd=e=>"shadow"===e,ep=ud((()=>{const e=dd("color"),t=dd("font"),n=dd("text"),r=dd("font-weight"),o=dd("tracking"),i=dd("leading"),a=dd("breakpoint"),l=dd("container"),s=dd("spacing"),c=dd("radius"),u=dd("shadow"),d=dd("inset-shadow"),p=dd("text-shadow"),f=dd("drop-shadow"),h=dd("blur"),m=dd("perspective"),g=dd("aspect"),y=dd("ease"),v=dd("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Fd,Dd],x=()=>[Fd,Dd,s],w=()=>[xd,"full","auto",...x()],k=()=>[kd,"none","subgrid",Fd,Dd],C=()=>["auto",{span:["full",kd,Fd,Dd]},kd,Fd,Dd],S=()=>[kd,"auto",Fd,Dd],E=()=>["auto","min","max","fr",Fd,Dd],T=()=>["auto",...x()],O=()=>[xd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],A=()=>[e,Fd,Dd],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Bd,Rd,{position:[Fd,Dd]}],P=()=>["auto","cover","contain",Ud,Id,{size:[Fd,Dd]}],I=()=>[Cd,zd,Ld],D=()=>["","none","full",c,Fd,Dd],L=()=>["",wd,zd,Ld],_=()=>[wd,Cd,Bd,Rd],R=()=>["","none",h,Fd,Dd],j=()=>["none",wd,Fd,Dd],M=()=>["none",wd,Fd,Dd],F=()=>[wd,Fd,Dd],z=()=>[xd,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sd],breakpoint:[Sd],color:[Ed],container:[Sd],"drop-shadow":[Sd],ease:["in","out","in-out"],font:[Pd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sd],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sd],shadow:[Sd],spacing:["px",wd],text:[Sd],"text-shadow":[Sd],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",xd,Dd,Fd,g]}],container:["container"],columns:[{columns:[wd,Dd,Fd,l]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[kd,"auto",Fd,Dd]}],basis:[{basis:[xd,"full","auto",l,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[wd,xd,"auto","initial","none",Dd]}],grow:[{grow:["",wd,Fd,Dd]}],shrink:[{shrink:["",wd,Fd,Dd]}],order:[{order:[kd,"first","last","none",Fd,Dd]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":E()}],"auto-rows":[{"auto-rows":E()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[l,"screen",...O()]}],"min-w":[{"min-w":[l,"screen","none",...O()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,zd,Ld]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Fd,_d]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cd,Dd]}],"font-family":[{font:[qd,Dd,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Fd,Dd]}],"line-clamp":[{"line-clamp":[wd,"none",Fd,_d]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",Fd,Dd]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Fd,Dd]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[wd,"from-font","auto",Fd,Ld]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[wd,"auto",Fd,Dd]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Fd,Dd]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Fd,Dd]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},kd,Fd,Dd],radial:["",Fd,Dd],conic:[kd,Fd,Dd]},Hd,jd]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[wd,Fd,Dd]}],"outline-w":[{outline:["",wd,zd,Ld]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,Vd,Md]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",d,Vd,Md]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[wd,Ld]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",p,Vd,Md]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[wd,Fd,Dd]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[wd]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Fd,Dd]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[wd]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Fd,Dd]}],filter:[{filter:["","none",Fd,Dd]}],blur:[{blur:R()}],brightness:[{brightness:[wd,Fd,Dd]}],contrast:[{contrast:[wd,Fd,Dd]}],"drop-shadow":[{"drop-shadow":["","none",f,Vd,Md]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",wd,Fd,Dd]}],"hue-rotate":[{"hue-rotate":[wd,Fd,Dd]}],invert:[{invert:["",wd,Fd,Dd]}],saturate:[{saturate:[wd,Fd,Dd]}],sepia:[{sepia:["",wd,Fd,Dd]}],"backdrop-filter":[{"backdrop-filter":["","none",Fd,Dd]}],"backdrop-blur":[{"backdrop-blur":R()}],"backdrop-brightness":[{"backdrop-brightness":[wd,Fd,Dd]}],"backdrop-contrast":[{"backdrop-contrast":[wd,Fd,Dd]}],"backdrop-grayscale":[{"backdrop-grayscale":["",wd,Fd,Dd]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[wd,Fd,Dd]}],"backdrop-invert":[{"backdrop-invert":["",wd,Fd,Dd]}],"backdrop-opacity":[{"backdrop-opacity":[wd,Fd,Dd]}],"backdrop-saturate":[{"backdrop-saturate":[wd,Fd,Dd]}],"backdrop-sepia":[{"backdrop-sepia":["",wd,Fd,Dd]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Fd,Dd]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[wd,"initial",Fd,Dd]}],ease:[{ease:["linear","initial",y,Fd,Dd]}],delay:[{delay:[wd,Fd,Dd]}],animate:[{animate:["none",v,Fd,Dd]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Fd,Dd]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:F()}],"skew-x":[{"skew-x":F()}],"skew-y":[{"skew-y":F()}],transform:[{transform:[Fd,Dd,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Fd,Dd]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Fd,Dd]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[wd,zd,Ld,_d]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}));function tp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ep(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yu(e))&&(r&&(r+=" "),r+=t);return r}(e))}function np(e){var n=e.className,r=Cn(e,["className"]);return t(Wu,kn({"data-slot":"tabs",className:tp("flex flex-col gap-2",n)},r))}function rp(e){var n=e.className,r=Cn(e,["className"]);return t($u,kn({"data-slot":"tabs-list",className:tp("flex gap-1 bg-[#e8e8e8] p-1 rounded-lg ",n)},r))}function op(e){var n=e.className,r=Cn(e,["className"]);return t(Gu,kn({"data-slot":"tabs-trigger",className:tp("flex-1 select-none rounded-md px-2 py-2 text-xs font-semibold text-[#666] transition-all duration-150 flex items-center justify-center gap-1 cursor-pointer hover:bg-white/50 data-[state=active]:bg-white data-[state=active]:text-[#1a1a1a] data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",n)},r))}var ip={devops:{icon:"⚡",title:"DevOps Assistant",subtitle:"Ask me anything about builds, deployments, and infrastructure",theme:{primary:"#3b82f6",background:"#f0f9ff",border:"#bfdbfe",cardHover:"#dbeafe"},quickActions:[{id:"1",title:"Build Status",description:"Show me the latest build status for applications",query:"Show me the latest build status for applications",category:"general",icon:"🔨"},{id:"2",title:"Deployment History",description:"Summarize deployment history for this month",query:"Summarize deployment history for this month",category:"general",icon:"🚀"},{id:"3",title:"Infrastructure Config",description:"Review infrastructure configuration for environments",query:"Review infrastructure configuration for environments",category:"general",icon:"🏗️"},{id:"4",title:"DORA Metrics",description:"What are the DORA metrics for last quarter?",query:"What are the DORA metrics for last quarter?",category:"general",icon:"📊"}]},security:{icon:"🛡️",title:"Security Operations Assistant",subtitle:"Ask me about vulnerabilities, scans, and security compliance",theme:{primary:"#ef4444",background:"#fef2f2",border:"#fecaca",cardHover:"#fee2e2"},quickActions:[{id:"1",title:"Critical Vulnerabilities",description:"Show me all critical vulnerabilities across applications",query:"Show me all critical vulnerabilities across applications",category:"vulnerabilities",icon:"🔍"},{id:"2",title:"Compliance Report",description:"Generate security compliance report for Q4",query:"Generate security compliance report for Q4",category:"compliance",icon:"📋"},{id:"3",title:"Failed Scans",description:"Which scans failed in the last 24 hours?",query:"Which scans failed in the last 24 hours?",category:"scans",icon:"⚠️"},{id:"4",title:"Security Posture",description:"Compare security posture: DEV vs PROD",query:"Compare security posture: DEV vs PROD",category:"comparison",icon:"🎯"}]},sre:{icon:"📊",title:"Site Reliability Assistant",subtitle:"Ask me about incidents, monitoring, performance, and SLOs",theme:{primary:"#10b981",background:"#f0fdf4",border:"#bbf7d0",cardHover:"#dcfce7"},quickActions:[{id:"1",title:"Active Incidents",description:"Show me active incidents and their severity",query:"Show me active incidents and their severity",category:"general",icon:"🚨"},{id:"2",title:"Uptime Report",description:"What is the uptime for production services?",query:"What is the uptime for production services?",category:"general",icon:"📈"},{id:"3",title:"Latency Analysis",description:"Analyze latency trends for the past week",query:"Analyze latency trends for the past week",category:"general",icon:"⚡"},{id:"4",title:"SLO Targets",description:"Are we meeting our SLO targets?",query:"Are we meeting our SLO targets?",category:"general",icon:"🎯"}]}},ap=function(n){var r=n.setMessage;n.onSendMessage;var o=n.type,i=n.quickActions,a=n.className,l=void 0===a?"":a,s=ip[o],c=i||s.quickActions;return e("div",{className:"security-assistant ".concat(l),style:{"--primary-color":s.theme.primary,"--background-color":s.theme.background,"--border-color":s.theme.border,"--card-hover-color":s.theme.cardHover},children:[e("div",{className:"assistant-header",children:[t("div",{className:"agent-icon-title",children:e("div",{children:[t("span",{className:"agent-icon",style:{width:"64px",height:"64px",background:"#9333ea",borderRadius:"16px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"32px",margin:"auto",color:"white"},children:s.icon}),t("h2",{style:{fontSize:"28px",fontWeight:600,color:"#1a1a1a",marginBottom:"12px"},children:s.title})]})}),t("p",{style:{fontSize:"16px",color:"#666",textAlign:"center",margin:"auto",maxWidth:"500px"},children:s.subtitle})]}),t("div",{className:"quick-actions-grid",children:c.map((function(n){return t("div",{className:"security-card ".concat(n.category),onClick:function(){return function(e){console.log(e),r(e.query)}(n)},children:e("div",{className:"card-content",children:[n.icon&&t("div",{className:"card-icon",children:n.icon}),t("h3",{className:"card-title",children:n.title}),t("p",{className:"card-description",children:n.description})]})},n.id)}))}),t("style",{children:"\n .security-assistant {\n // margin-bottom:5vh;\n background: none;\n // border-radius: 12px;\n padding: 20px;\n // box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n // border: 1px solid var(--border-color);\n }\n\n .assistant-header {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .agent-icon-title {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n margin-bottom: 8px;\n }\n\n .agent-icon {\n font-size: 24px;\n }\n\n .assistant-header h2 {\n margin: 0;\n color: #1f2937;\n font-size: 1.5rem;\n font-weight: 600;\n }\n\n .assistant-header p {\n margin: 0;\n color: #6b7280;\n font-size: 0.875rem;\n }\n\n .quick-actions-grid {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n gap: 12px;\n margin-bottom: 24px;\n padding-left:18vw;\n padding-right:18vw;\n }\n\n .security-card {\n background: #f9f9f9;\n border: 1px solid #e5e5e5;\n border-radius: 8px;\n padding: 16px;\n cursor: pointer;\n transition: all 0.2s ease;\n position: relative;\n overflow: hidden;\n // border-left: 4px solid var(--primary-color);\n }\n\n .security-card:hover {\n // background: var(--card-hover-color);\n // // border-color: var(--primary-color);\n // transform: translateY(-2px);\n // box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n }\n\n .card-content {\n position: relative;\n z-index: 2;\n }\n\n .card-icon {\n font-size: 20px;\n margin-bottom: 8px;\n }\n\n .card-title {\n margin: 0 0 8px 0;\n font-size: 14px;\n font-weight: 600;\n color: #1f2937;\n }\n\n .card-description {\n margin: 0;\n font-size: 12px;\n color: #6b7280;\n line-height: 1.4;\n }\n\n .card-hover-effect {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n // background: linear-gradient(135deg, var(--primary-color), var(--primary-color));\n color: white;\n display: flex;\n align-items: start;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.2s ease;\n z-index: 1;\n }\n\n .security-card:hover .card-hover-effect {\n opacity: 1;\n }\n\n .card-hover-effect span {\n font-size: 12px;\n font-weight: 500;\n }\n\n .message-input-section {\n border-top: 1px solid #e5e7eb;\n padding-top: 20px;\n }\n\n .input-container {\n display: flex;\n gap: 12px;\n margin-bottom: 8px;\n }\n\n .message-input {\n flex: 1;\n padding: 12px 16px;\n border: 1px solid #d1d5db;\n border-radius: 8px;\n font-size: 14px;\n outline: none;\n transition: border-color 0.2s ease, box-shadow 0.2s ease;\n }\n\n .message-input:focus {\n border-color: var(--primary-color);\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 10%, transparent);\n }\n\n .send-button {\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 8px;\n padding: 12px 16px;\n cursor: pointer;\n transition: background 0.2s ease;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .send-button:hover:not(:disabled) {\n background: color-mix(in srgb, var(--primary-color) 80%, black);\n }\n\n .send-button:disabled {\n background: #9ca3af;\n cursor: not-allowed;\n }\n\n .input-hint {\n font-size: 12px;\n color: #6b7280;\n margin: 0;\n }\n\n /* Category-specific styles */\n .security-card.vulnerabilities {\n // border-left-color: #ef4444;\n }\n\n .security-card.scans {\n // border-left-color: #f59e0b;\n }\n\n .security-card.compliance {\n // border-left-color: #10b981;\n }\n\n .security-card.comparison {\n // border-left-color: #8b5cf6;\n }\n\n .security-card.general {\n // border-left-color: #6b7280;\n }\n "})]})},lp=function(){return t("div",{className:"fixed inset-0 bg-black/30 flex items-center justify-center z-50",children:t("img",{src:"/images/loading-icon.svg",alt:"Loading...",className:"w-32 h-32"})})},sp=null,cp=function(){var r=i([]),o=r[0],a=r[1],l=m((function(e){var t=Math.random().toString(36).substr(2,9),n=kn(kn({},e),{id:t});a((function(e){return Tn(Tn([],e,!0),[n],!1)})),setTimeout((function(){a((function(e){return e.filter((function(e){return e.id!==t}))}))}),e.life||5e3)}),[]),s=m((function(e){a((function(t){return t.filter((function(t){return t.id!==e}))}))}),[]);return d((function(){return sp={show:l},function(){sp=null}}),[l]),e(n,{children:[t("div",{className:"toast-container",children:o.map((function(n,r){return t("div",{className:"toast toast-".concat(n.severity),style:{animationDelay:"".concat(100*r,"ms"),top:"".concat(20+80*r,"px")},children:e("div",{className:"toast-content",children:[e("span",{className:"toast-icon",children:["success"===n.severity&&"✅","error"===n.severity&&"❌","warn"===n.severity&&"⚠️","info"===n.severity&&"ℹ️"]}),e("div",{className:"toast-text",children:[t("div",{className:"toast-summary",children:n.summary}),n.detail&&t("div",{className:"toast-detail",children:n.detail})]}),t("button",{className:"toast-close",onClick:function(){return s(n.id)},children:"×"})]})},n.id)}))}),t("style",{children:"\n .toast-container {\n position: fixed;\n top: 20px;\n right: 20px;\n z-index: 9999;\n display: flex;\n flex-direction: column;\n gap: 10px;\n max-width: 400px;\n }\n\n .toast {\n background: white;\n border-radius: 8px;\n padding: 12px 16px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border-left: 4px solid #ccc;\n animation: slideIn 0.3s ease-out;\n transition: all 0.3s ease;\n min-width: 300px;\n max-width: 400px;\n }\n\n .toast-success {\n border-left-color: #10b981;\n background: #f0fdf4;\n }\n\n .toast-error {\n border-left-color: #ef4444;\n background: #fef2f2;\n }\n\n .toast-warn {\n border-left-color: #f59e0b;\n background: #fffbeb;\n }\n\n .toast-info {\n border-left-color: #3b82f6;\n background: #eff6ff;\n }\n\n .toast-content {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n }\n\n .toast-icon {\n font-size: 16px;\n flex-shrink: 0;\n margin-top: 2px;\n }\n\n .toast-text {\n flex: 1;\n min-width: 0;\n }\n\n .toast-summary {\n font-size: 14px;\n font-weight: 600;\n color: #374151;\n margin-bottom: 4px;\n }\n\n .toast-detail {\n font-size: 13px;\n color: #6b7280;\n line-height: 1.4;\n }\n\n .toast-close {\n background: none;\n border: none;\n font-size: 18px;\n cursor: pointer;\n color: #6b7280;\n padding: 0;\n width: 24px;\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n flex-shrink: 0;\n margin-top: -2px;\n }\n\n .toast-close:hover {\n background: rgba(0, 0, 0, 0.1);\n }\n\n @keyframes slideIn {\n from {\n transform: translateX(100%);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n\n @keyframes slideOut {\n from {\n transform: translateX(0);\n opacity: 1;\n }\n to {\n transform: translateX(100%);\n opacity: 0;\n }\n }\n\n .toast.hiding {\n animation: slideOut 0.3s ease-in forwards;\n }\n "})]})},up=function(e){sp?sp.show(e):(console.log("Toast:",e),"error"===e.severity&&alert("Error: ".concat(e.summary," - ").concat(e.detail)))},dp=function(r){var a=r.app_type;r.placeholder,r.sidebarClassName,r.className;var l=r.HTTP;r.closeChat;var s=o.useState(""),c=s[0],p=s[1],f=o.useState({}),h=f[0],g=f[1],y=o.useState("devops"),v=y[0],w=y[1],k=o.useState(!1),C=k[0],S=k[1],E=i(!0),T=E[0],O=E[1],A=i([]),N=A[0],P=A[1],I=i(!1),D=I[0],L=I[1],_=i(!1),R=_[0],j=_[1],M=i(null);M[0];var F=M[1],z=i([]),q=z[0],B=z[1],U=i([]);U[0];var H=U[1],V=i({}),W=V[0];V[1];var $=i(""),G=$[0],Y=$[1],Z=i([]),Q=Z[0],K=Z[1],X=i(!1),J=X[0],ee=X[1],te=i((new Date).toISOString().split("T")[0]),ne=te[0],re=te[1],oe=u(null),ie=i(""),ae=ie[0],le=ie[1],se=i(null),ce=se[0],ue=se[1],de=i(!1),pe=de[0],fe=de[1],he=u(null),me=i([]),ge=me[0],ye=me[1],ve=i([]),be=ve[0],xe=ve[1],we=i(null),ke=we[0],Ce=we[1],Se=i(!1),Ee=Se[0],Te=Se[1],Oe=i(!1),Ae=Oe[0],Ne=Oe[1],Pe=Nn(),Ie=Pe.getTaskID,De=Pe.prompts,Le=Pe.setPrompts,_e=Pe.isLoading,Re=Pe.isResize;Pe.setIsResize;var je=i(""),Me=je[0],Fe=je[1],ze=i(!0),qe=ze[0],Be=ze[1],Ue=i([{label:"Project",options:[],disabled:!1},{label:"Application",options:[],disabled:!0},{label:"Action Type",options:"devops"===v?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:"sre"===v?[{label:"SRE",value:"sre"}]:[],disabled:!0},{label:"Environment",options:[],disabled:!0},{label:"Metric Type",options:[{label:"Uptime",value:"uptime"},{label:"Latency",value:"latency"},{label:"Error Rate",value:"error_rate"},{label:"Throughput",value:"throughput"}],disabled:!1},{label:"Category",options:[],disabled:!1},{label:"Tool",options:[],disabled:!1},{label:"Scan Type",options:[],disabled:!1}]),He=Ue[0],Ve=Ue[1];function We(e){try{var t=e.includes(".")?e.split(".")[1]:e;return JSON.parse(atob(t))}catch(e){return console.error("Decode error:",e),null}}var $e=Ql("(max-width: 640px)"),Ge=Ql("(max-width: 1024px)");Ql("(min-width: 1024px)");var Ye=Ql("(max-width: 640px)"),Ze=m((function(){return Sn(void 0,void 0,void 0,(function(){var e,t,n,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_conversation_titles/",{app_type:a})];case 1:return e=o.sent(),t=null==e?void 0:e.data.sort((function(e,t){return null===e.latest_date_time_epoch?1:null===t.latest_date_time_epoch?-1:t.latest_date_time_epoch-e.latest_date_time_epoch})),n=t.map((function(e){return kn(kn({},e),{isEdit:!1,isDelete:!1,deleteConfirmation:null})})),K(n||[]),[3,4];case 2:return r=o.sent(),console.error("Error fetching recent actions:",r),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[a,l]),Qe=m((function(){return Sn(void 0,void 0,void 0,(function(){var e,t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/project/list/?page=1&count+per+page=10000")];case 1:return e=r.sent(),P((null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data)||[]),[3,4];case 2:return t=r.sent(),console.error("Error fetching projects:",t),up({severity:"error",summary:"Error Fetching Projects",detail:t.message||"Failed to load projects. Please try again.",life:5e3}),P([]),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}),[l]);d((function(){g((function(e){var t,n;return kn(kn({},e),((t={})["Time Range"]=null!==(n=null==e?void 0:e["Time Range"])&&void 0!==n?n:"last_hour",t))})),Gl.get(Vl)&&(Ze(),Qe())}),[Ze,Qe]),d((function(){var e=b.get("access");if(e){var t=We(e);if(null==t?void 0:t.oidc_acs){var n=We(t.oidc_acs);(null==n?void 0:n.name)&&Y(n.name)}}}),[]),d((function(){Ve((function(e){return e.map((function(e){return"Project"===e.label?kn(kn({},e),{options:T?[{label:"Loading...",value:""}]:Array.isArray(N)?N.map((function(e){return{label:e.name,value:e.uuid}})):[]}):e}))}))}),[N,T]);var Ke="security"===v?He.filter((function(e){return"Project"===e.label||"Category"===e.label||"Tool"===e.label||"Scan Type"===e.label})):He.filter((function(e){return"Project"===e.label||"Application"===e.label||"Action Type"===e.label||"Environment"===e.label})),Xe=function(){var e,t,n,r,o,i,a,l,s,u,d,f,m,g,y,b;if(c&&(null===(e=null==c?void 0:c.trim())||void 0===e?void 0:e.length)>0){var w=x();j(!0),Le((function(e){return Tn(Tn([],e,!0),[{id:w,question:c,answer:"",time:new Date,answerTime:new Date,conversationId:null,isLoading:!0}],!1)}));var k=null===(t=null==N?void 0:N.filter((function(e){return(null==e?void 0:e.uuid)===h.Project})))||void 0===t?void 0:t[0],C={};if("devops"===v||"sre"===v){var S=null===(n=null==q?void 0:q.filter((function(e){return(null==e?void 0:e.uuid)===h.Application})))||void 0===n?void 0:n[0],E=null===(i=null===(o=null===(r=He.find((function(e){return"Environment"===e.label})))||void 0===r?void 0:r.options)||void 0===o?void 0:o.filter((function(e){return(null==e?void 0:e.value)===h.Environment})))||void 0===i?void 0:i[0];C={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),project_id:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",project_uuid:(null==k?void 0:k.uuid)||"",app_uuid:(null==h?void 0:h.Application)||"",env_uuid:(null==h?void 0:h.Environment)||"",action_type:(null==h?void 0:h["Action Type"])||"",context:"devops"===v?"devops":"sreops",conversation_title:ae,conversation_uuid:ce,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==S?void 0:S.name)||"",application_action_type:(null===(l=null===(a=null==h?void 0:h["Action Type"])||void 0===a?void 0:a.charAt(0))||void 0===l?void 0:l.toUpperCase())+(null===(s=null==h?void 0:h["Action Type"])||void 0===s?void 0:s.slice(1)),application_env:(null==E?void 0:E.label)||""}}}else{var T=null===(u=null==ge?void 0:ge.filter((function(e){return(null==e?void 0:e.value)===h.Category})))||void 0===u?void 0:u[0],O=null===(g=null===(m=null===(f=null===(d=null==ge?void 0:ge.filter((function(e){return(null==e?void 0:e.value)===(null==h?void 0:h.Category)})))||void 0===d?void 0:d[0])||void 0===f?void 0:f.tools)||void 0===m?void 0:m.filter((function(e){return(null==e?void 0:e.value)===(null==h?void 0:h.Tool)})))||void 0===g?void 0:g[0],A=(S=null===(y=null==q?void 0:q.filter((function(e){return(null==e?void 0:e.uuid)===h.Application})))||void 0===y?void 0:y[0],null===(b=null==be?void 0:be.filter((function(e){return(null==e?void 0:e.uuid)===h["Scan Type"]})))||void 0===b?void 0:b[0]);C={org_name:"".concat((null==k?void 0:k.organization_realm_name)||"teksecur","_dfact"),scan_uuid:(null==h?void 0:h["Scan Type"])||"",project_uuid:(null==k?void 0:k.uuid)||"",question:c,doc_type:"private",app_type:"dfact",org_uuid:(null==k?void 0:k.organization)||"",app_uuid:(null==h?void 0:h.Application)||"",category:(null==h?void 0:h.Category)||"",tool:(null==h?void 0:h.Tool)||"",context:"secops",conversation_title:ae,conversation_uuid:ce,context_param:{project_name:(null==k?void 0:k.name)||"",application_name:(null==S?void 0:S.name)||"",category_name:(null==T?void 0:T.name)||"",tool_name:(null==O?void 0:O.name)||"",scan_name:(null==A?void 0:A.scan_name)||""}}}p(""),Ie(w,C,p,K,le,ue,ae)}else up({severity:"error",summary:"Error",detail:"Please enter a message"})},Je=function(e,t,n){return Sn(void 0,void 0,void 0,(function(){var r,o,i,a,s;return En(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,3,4]),O(!0),r="deploy"===n?"/api/v1/application/deployment/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t):"/api/v1/application/build/stages/list/?release_store_id=".concat(e,"&project_id=").concat(t,"&action_type=").concat(n),[4,l.get(r)];case 1:return o=c.sent(),console.log("Environments:",null===(a=null==o?void 0:o.data)||void 0===a?void 0:a.data),H((null===(s=null==o?void 0:o.data)||void 0===s?void 0:s.data)||[]),Ve((function(e){return e.map((function(e){var t,r;return"Environment"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==o?void 0:o.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:"deploy"===n?e.deployment_stage_name:e.stage_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return i=c.sent(),console.error("Error fetching environments:",i),up({severity:"error",summary:"Error Fetching Environments",detail:i.message||"Failed to load environments. Please try again.",life:5e3}),H([]),Ve((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},et=function(e,t){if(console.log("label---",e),console.log("value---",t),!t||"Loading..."!==(null==t?void 0:t.label)){var n,r;if(g((function(n){var r;return kn(kn({},n),((r={})[e]=t,r))})),"Project"===e&&null!==t&&(Ve((function(e){return e.map((function(e){var t=kn({},e),n="Application"===e.label&&("devops"===v||"sre"===v||"security"===v)||"Category"===e.label&&"security"===v||"Metric Type"===e.label&&"sre"===v||"Time Range"===e.label&&"sre"===v||"Project"===e.label;return t.disabled=!n,"Application"===e.label&&(t.options=[]),t}))})),g((function(e){return kn(kn({},e),{Application:null,Environment:null,"Action Type":null,"Scan Type":null,Category:null,Tool:null})})),"devops"===v||"sre"===v?(n=t,Sn(void 0,void 0,void 0,(function(){var e,t,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/application/build/store/list/?page=1&count+per+page=1000&project_id=".concat(n))];case 1:return e=i.sent(),console.log("Applications:",null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.data),B((null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.data)||[]),Ve((function(t){return t.map((function(t){var n,r;return"Application"===t.label?kn(kn({},t),{options:(null===(r=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.data)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.uuid}})))||[]}):t}))})),[3,4];case 2:return t=i.sent(),console.error("Error fetching applications:",t),up({severity:"error",summary:"Error Fetching Applications",detail:t.message||"Failed to load applications. Please try again.",life:5e3}),B([]),Ve((function(e){return e.map((function(e){return"Application"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))):function(e){Sn(void 0,void 0,void 0,(function(){var t,n,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.get("/api/v1/devsecops/scan/categories/?page=1&count+per+page=1000&project_id=".concat(e))];case 1:return t=o.sent(),ye((null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.categories)||[]),Ve((function(e){return e.map((function(e){var n,r;return"Category"===e.label?kn(kn({},e),{options:(null===(r=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.categories)||void 0===r?void 0:r.map((function(e){return{label:e.name,value:e.value}})))||[]}):e}))})),[3,4];case 2:return n=o.sent(),console.error("Error fetching category:",n),up({severity:"error",summary:"Error Fetching Category",detail:n.message||"Failed to load category. Please try again.",life:5e3}),B([]),Ve((function(e){return e.map((function(e){return"Category"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}(t),F(null)),"Application"===e&&null!==t&&(Ve((function(e){return e.map((function(e){return"Action Type"===e.label?kn(kn({},e),{disabled:!1,options:"devops"===v?[{label:"Infra",value:"infra"},{label:"Build",value:"build"},{label:"Deploy",value:"deploy"}]:[{label:"SRE",value:"sre"}]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null,"Action Type":"sre"===v?"sre":null})})),"sre"===v&&(Ve((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),Je(t,h.Project,"sre"))),"Category"===e&&null!==t){var o=ge.find((function(e){return e.value===t})),i=((null==o?void 0:o.tools)||[]).map((function(e){return{label:e.name,value:e.value}}));Ve((function(e){return e.map((function(e){return"Tool"===e.label?kn(kn({},e),{disabled:!1,options:i}):"Scan Type"===e.label?kn(kn({},e),{disabled:!0,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Tool:null,"Scan Type":null})}))}"Tool"===e&&null!==t&&(Ve((function(e){return e.map((function(e){return"Scan Type"===e.label?kn(kn({},e),{disabled:!1,options:[]}):e}))})),g((function(e){return kn(kn({},e),{Environment:null})})),r=t,Sn(void 0,void 0,void 0,(function(){var e,t,n,o,i;return En(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),e={category:h.Category,tool:r,page:1,"count per page":200,project_id:h.Project},t=new URLSearchParams(e).toString(),O(!0),[4,l.get("/api/v1/devsecops/scan/list/?".concat(t))];case 1:return n=a.sent(),xe(null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.data),Ve((function(e){return e.map((function(e){var t,r;return"Scan Type"===e.label?kn(kn({},e),{options:(null===(r=null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.data)||void 0===r?void 0:r.map((function(e){return{label:e.scan_name,value:e.uuid}})))||[]}):e}))})),[3,4];case 2:return o=a.sent(),console.error("Error fetching scan Type:",o),up({severity:"error",summary:"Error Fetching Scan Type",detail:o.message||"Failed to load scan type. Please try again.",life:5e3}),Ve((function(e){return e.map((function(e){return"Scan Type"===e.label?kn(kn({},e),{options:[]}):e}))})),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))})),F(null)),"Action Type"===e&&null!==t&&(Ve((function(e){return e.map((function(e){return"Environment"===e.label?kn(kn({},e),{disabled:!1}):e}))})),g((function(e){var n;return kn(kn({},e),((n={})["Action Type"]=t,n.Environment=null,n))})),Je(h.Application,h.Project,t)),"Environment"===e&&null!==t&&F(null==h?void 0:h["Action Type"]),"Scan Type"===e&&null!==t&&F(null)}};"devops"!==v&&"sre"!==v||h.Project&&h.Application&&h.Environment&&h["Action Type"];var tt=function(e,t,n,r){return Sn(void 0,void 0,void 0,(function(){var o,i,s,c,u,d;return En(this,(function(p){switch(p.label){case 0:return p.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/get_latest_dialog_threads/",{conversation_title:e,latest_date:t,app_type:a,conversation_uuid:r})];case 1:return o=p.sent(),null==(i=Object.values(null==o?void 0:o.data).map((function(e){return console.log("item---",e),{id:r,question:null==e?void 0:e.Prompt,answer:null==e?void 0:e.LLM_response,time:new Date(null==e?void 0:e.Date),answerTime:new Date(null==e?void 0:e.Date),conversationId:r,isLoading:!1}})))||i.sort((function(e,t){return(null==e?void 0:e.time.getTime())-(null==t?void 0:t.time.getTime())})),console.log("transformedChats---",i),s=(null==i?void 0:i.length)>0?null===(d=i.reduce((function(e,t){return(null==t?void 0:t.time)<(null==e?void 0:e.time)?t:e}),i[0]))||void 0===d?void 0:d.time:null,console.log("oldestDate---",s),s&&(c=s?new Date(s.getTime()-864e5):null,console.log("previousDayDate---",c),re(null==c?void 0:c.toISOString())),Le(n?i:function(e){return Tn(Tn([],i,!0),e,!0).reduce((function(e,t){return e.find((function(e){return e.conversationId===t.conversationId}))?e:Tn(Tn([],e,!0),[t],!1)}),[])}),i.length>0?ee(!0):ee(!1),n&&i.length>0&&setTimeout((function(){var e=document.getElementById("chat-container");console.log("chatContainer---",e),e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}),1e3),fe(!1),[3,4];case 2:return u=p.sent(),fe(!1),console.error("Error fetching recent actions:",u),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))},nt=function(){return(new Date).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"})},rt=function(e){return e?new Date(1e3*e).toISOString().split("T")[0]:""};return e("div",{style:{display:"flex",height:"100%",flexDirection:"column",fontFamily:"sans-serif"},className:"custom-focus",children:[t(cp,{}),T&&t(lp,{}),e("div",{style:{display:"flex",flex:1,flexDirection:$e?"column":"row",overflow:"hidden"},children:[Re&&e("aside",{style:{width:Ge?"100%":qe?"300px":"0px",backgroundColor:qe?"#f5f5f5":"transparent",color:"black",padding:qe?"0.75rem":"0px",overflow:"hidden",borderRight:"1px solid rgb(209, 213, 219)"},children:[" ",e("button",{style:{alignItems:"center",gap:"0.5rem",fontSize:"0.875rem",fontWeight:"600",display:Ye?"flex":"none"},onClick:function(){return S((function(e){return!e}))},children:[t(C?Fn:Mn,{style:{width:"16px",height:"16px"}}),C?"Hide Filters & History":"Show Filters & History"]}),t("div",{style:{display:Ge?C?"flex":"none":"flex",flexDirection:"column",gap:"1rem",height:"calc(100vh - 84px)",maxWidth:qe?"300px":"10px"},children:e(Wc,{isExpanded:qe,setIsExpanded:Be,children:[e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"https://framerusercontent.com/images/c367SKe2MI1WUDYtnPQdjNnk.png?scale-down-to=512&width=694&height=528",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t(np,{value:v,onValueChange:function(e){le(""),ue(null),re(nt()),Le([]),j(!1),w(e),g({}),F(null),Ve((function(t){return t.map((function(t){return"Project"===t.label||"Action Type"===t.label?"Action Type"===t.label?kn(kn({},t),{disabled:!0}):kn({},t):"Category"===t.label||"Tool"===t.label||"Scan Type"===t.label?kn(kn({},t),{disabled:"security"!==e}):"Metric Type"===t.label||"Time Range"===t.label?kn(kn({},t),{disabled:!1}):kn(kn({},t),{options:[],disabled:!0})}))}))},children:e(rp,{children:[e(op,{value:"devops",children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),e(op,{value:"security",children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),e(op,{value:"sre",children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]})}),t("div",{className:"pb-2 border-b border-gray-200",children:e("button",{onClick:function(){j(!1),le(""),ue(null),re(nt()),Le([])},title:"New Chat",className:tp("new-chat-btn flex w-full items-center justify-center gap-[6px]","bg-[#7761F3] text-white border-none rounded-md font-medium text-[13px]","cursor-pointer transition-all duration-150 ease-in-out","px-4 py-[10px] my-[16px] mb-[12px]"),children:[t("span",{children:"+"}),t("span",{children:"New chat"})]})}),e("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem",paddingLeft:"5px",paddingRight:"5px"},className:"pt-2 text-[#666]",children:[t("div",{className:"filters-title text-[11px] font-semibold text-[#666] uppercase tracking-[0.05em]",children:"Contextual Filters"}),Ke.map((function(n,r){var o="Project"===n.label||"Application"===n.label||"Time Range"===n.label;return e("div",{className:"filter-group",children:[t("div",{className:"filter-label text-xs font-semibold text-gray-700 mb-1",children:n.label}),o?e("select",{disabled:n.disabled,value:h[n.label]||"",onChange:function(e){return et(n.label,e.target.value)},className:"filter-select w-full border border-gray-300 rounded-md text-sm p-2 outline-none focus:ring-2 focus:ring-[#7761F3] hover:border-[#7761F3]",children:[e("option",{value:"",children:["Select ",n.label]}),n.options.map((function(e,n){return t("option",{value:e.value,children:e.label},n)}))]}):t("div",{className:"filter-tags flex flex-wrap gap-2 max-h-20 overflow-y-auto",children:"Environment"===n.label&&"buildd"===String((null==h?void 0:h["Action Type"])||"").toLowerCase()?t("div",{className:"text-xs text-gray-500",children:"Build doesnt have env"}):n.options&&0!==n.options.length?n.options.map((function(e,r){var o=(null==h?void 0:h[n.label])===e.value;return t("div",{onClick:function(){et(n.label,o?null:e.value)},className:"filter-tag cursor-pointer rounded-full px-3 py-1 max-h-10 text-xs items-center justify-center font-medium border transition\n ".concat(o?"bg-[#7761F3] text-white border-#7761F3":"bg-gray-100 text-gray-700 hover:bg-gray-200 border-gray-300"),children:e.label},r)})):t("div",{className:"text-xs text-gray-500",children:"Environment"===n.label?"Environment not found":"No filters"})})]},r)})),t("button",{onClick:function(){g((function(e){return{Project:e.Project,Application:e.Application}})),F(null)},className:"w-full p-1.5 bg-transparent border border-gray-300 rounded-md text-xs text-gray-600 cursor-pointer mt-2 transition-all duration-150 ease-in-out hover:bg-gray-50",children:"Clear All Filters"})]}),(null==Q?void 0:Q.length)>0&&t("div",{style:{marginTop:"10px"},className:"border-t border-gray-200",children:(null==Q?void 0:Q.length)>0&&e("div",{style:{marginTop:"10px",backgroundColor:"white",color:"black",padding:"0.75rem",paddingTop:"0px",borderRadius:"0.5rem"},children:[t("div",{style:{fontWeight:"bold",paddingTop:"5px",marginBottom:"5px",fontSize:"11px",color:"#666",letterSpacing:"0.05em"},children:"Recent Conversation"}),Q.map((function(n,r){var o,i,a;return e("div",{style:{padding:"0.15rem",paddingTop:"0px",borderRadius:"0.5rem",backgroundColor:"#F2F4F7",cursor:"pointer",marginBottom:"0.5rem",position:"relative"},children:[e("div",{style:{fontSize:"0.875rem",fontWeight:500,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px"},children:[t("div",{style:{flex:1},children:t("div",{onClick:function(){j(!0),Le([]),fe(!0),le(null==n?void 0:n.title),ue(null==n?void 0:n.conversation_uuid),re((null==n?void 0:n.latest_date_time_epoch)?rt(null==n?void 0:n.latest_date_time_epoch):nt()),tt(null==n?void 0:n.title,(null==n?void 0:n.latest_date_time_epoch)?rt(null==n?void 0:n.latest_date_time_epoch):nt(),!0,null==n?void 0:n.conversation_uuid)},children:(null===(o=null==n?void 0:n.title)||void 0===o?void 0:o.length)>30?"".concat(null===(i=null==n?void 0:n.title)||void 0===i?void 0:i.substring(0,30),"..."):(null==n?void 0:n.title)||""})}),t("div",{style:{display:"flex",gap:"8px",alignItems:"center"},children:t(Xl,{onEdit:function(){Ne(!0),Fe(null==n?void 0:n.title),Ce(n),K(Q.map((function(e){return kn(kn({},e),{isEdit:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))},onDelete:function(){Te(!0),Ce(n),K(Q.map((function(e){return kn(kn({},e),{deleteConfirmation:(null==e?void 0:e.conversation_uuid)===(null==n?void 0:n.conversation_uuid)})})))}})})]}),t("div",{style:{fontSize:"0.75rem",color:"#666",textAlign:"right"},children:(null==n?void 0:n.latest_date_time_epoch)?(a=null==n?void 0:n.latest_date_time_epoch,new Date(1e3*a).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})):""})]},r)}))]})})]})}),e("div",{className:"p-4 flex items-center gap-3 bg-background border-t border-gray-200 ".concat(qe?"px-1":"px-4"),children:[t("div",{className:"w-8 h-8 rounded-full bg-[#7761F3] flex items-center justify-center text-sm font-semibold text-white",children:G.split(" ").map((function(e){var t;return null===(t=e[0])||void 0===t?void 0:t.toUpperCase()})).join("")}),t("div",{className:"text-sm font-medium text-foreground",children:G})]})]}),e("main",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",fontSize:"1.125rem",backgroundColor:"white"},children:[e("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"16px",borderBottom:"1px solid rgb(229, 231, 235)",backgroundColor:"#f9f9f9"},children:[Re?e(n,{children:[t("button",{title:qe?"Hide Sidebar":"Show Sidebar",onClick:function(){return Be(!qe)},"aria-label":qe?"Collapse sidebar":"Expand sidebar",className:"\n \n w-8 h-8\n bg-[#f5f5f5] border border-[#e5e5e5] rounded-md\n flex items-center justify-center\n cursor-pointer\n z-10\n transition-all duration-150 ease-in-out\n hover:bg-gray-100 hover:scale-105\n ",children:t(qe?Vn:Bn,{className:"w-3 h-3 text-gray-600 font-bold"})}),e("div",{style:{display:"flex",flexDirection:Ge?"column":"row",gap:"0.75rem",alignItems:"center",justifyContent:"space-between"},children:[t("div",{style:{fontSize:"12px",fontWeight:600,color:"#666"},children:"Selected Context:"}),e("div",{style:{display:"flex",flexDirection:Ye?"column":"row",gap:"0.75rem",flexWrap:"wrap",alignItems:"center"},children:[e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:["devops"===v&&e(n,{children:[t("span",{children:"⚡"}),t("span",{children:"DevOps"})]}),"security"===v&&e(n,{children:[t("span",{children:"🛡️"}),t("span",{children:"SecOps"})]}),"sre"===v&&e(n,{children:[t("span",{children:"📊"}),t("span",{children:"SREOps"})]})]}),Object.entries(h).map((function(n){var r=n[0],o=n[1];if(!o||""===o||null===o)return null;if("devops"===v&&("Time Range"===r||"Metric Type"===r))return null;if("devops"===v&&("Category"===r||"Tool"===r||"Scan Type"===r))return null;if("security"===v&&("Time Range"===r||"Metric Type"===r))return null;if("sre"===v&&("Category"===r||"Tool"===r||"Scan Type"===r))return null;return e("div",{style:{display:"flex",alignItems:"center",backgroundColor:"#fff",fontWeight:"500",padding:"6px 12px",background:"white",border:"1px solid #e5e5e5",borderRadius:"16px",fontSize:"12px",color:"#666",gap:"6px"},children:[e("span",{style:{fontWeight:"500"},children:[r,": ",function(){var e=He.find((function(e){return e.label===r}));if(!e)return o;if("Project"===r){var t=N.find((function(e){return e.uuid===o}));return t?t.name:o}var n=e.options.find((function(e){return e.value===o}));return n?n.label:o}()]}),t(Vn,{size:16,style:{cursor:"pointer",color:"#666"},onClick:function(){return et(r,null)}})]},r)}))]})]})]}):e("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.75rem"},children:[t("img",{src:"https://framerusercontent.com/images/c367SKe2MI1WUDYtnPQdjNnk.png?scale-down-to=512&width=694&height=528",alt:"Ai Icon",height:54,width:54}),t("div",{style:{display:"flex",flexDirection:"column",marginLeft:"4px"},children:t("div",{style:{fontSize:"20px",display:"flex",color:"#000",fontWeight:"bold"},children:"EveryOps AI"})})]}),t("div",{style:{display:"flex",gap:"0.75rem"},children:!Re&&t("button",{title:"New Chat",onClick:function(){le(""),ue(null),re(nt()),Le([])},children:t("span",{style:{width:"1.5rem",height:"1.5rem",cursor:"pointer",marginLeft:"auto",padding:"5px 10px",color:"white",backgroundColor:"#7761F3"},children:"+"})})})]}),((null==h?void 0:h["Scan Type"])&&"security"===v&&Re||Re)&&t(n,{children:!R&&t(ap,{setMessage:p,onSendMessage:Xe,type:v})}),e("div",{style:{flex:1,overflowY:"auto",padding:"1rem",gap:"0.25rem",display:"flex",flexDirection:"column"},ref:oe,id:"chat-container",onScroll:function(e){!function(e){0===e.currentTarget.scrollTop&&J&&(fe(!0),tt(ae,ne,!1,ce))}(e)},children:[pe&&t("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"25px"},children:t("div",{style:{animation:"spin 1s linear infinite",borderRadius:"50%",height:"20px",width:"20px",borderTop:"2px solid #18279a",borderBottom:"2px solid #18279a",borderLeft:"2px solid transparent",borderRight:"2px solid transparent"}})}),De.map((function(n,r){return e("div",{style:{marginTop:"0.5rem"},children:[t("div",{style:{display:"flex",justifyContent:"flex-start"},children:e("div",{style:{borderRadius:"20px",padding:"20px",minHeight:"78px",minWidth:"40%",maxWidth:"60%",backgroundColor:"#ffffffff",borderBottomLeftRadius:"0px",fontSize:"16px",color:"#000",display:"flex",gap:"15px",flexDirection:"column",alignItems:"flex-start",whiteSpace:"pre-line"},children:[e("div",{className:"flex gap-2 items-center justify-center max-w-full",children:[t("span",{style:{width:"32px",height:"32px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",flexShrink:0,backgroundColor:"#7761F3",color:"white"},children:"👤"}),t("span",{style:{wordBreak:"break-word",maxWidth:"100%"},children:n.question})]}),n.time&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-start",fontSize:"12px",color:"#666",marginTop:"8px"},children:n.time.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})]})}),t("div",{style:{display:"flex",justifyContent:"flex-start"},children:t("div",{style:{padding:"20px",minWidth:"60%",maxWidth:"90%",backgroundColor:"#ffffff",fontSize:"16px",color:"#000",display:"flex",flexDirection:"column",marginBottom:"8px"},children:n.isLoading?e("div",{style:{color:"#98A2B3",textAlign:"left",display:"flex",alignItems:"center",gap:"8px",flexDirection:"row"},children:["Loading... ",t(qn,{style:{width:"2rem",height:"2rem",animation:"spin 1s linear infinite",color:"#7761F3"}})]}):e("div",{style:{overflow:"auto",wordWrap:"break-word",overflowWrap:"break-word",maxWidth:"100%"},children:[e("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px",paddingBottom:"8px"},children:[t("div",{style:{width:"24px",height:"24px",backgroundColor:"#7761F3",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:"12px",fontWeight:"bold"},children:"C"}),t("span",{style:{fontWeight:"600",color:"#7761F3",fontSize:"14px"},children:"[Cindy - EveryOps AI]"})]}),t("div",{style:{color:"#374151"},children:t(Ul,{remarkPlugins:[Vc],components:{table:function(e){e.node;var n=Cn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%",border:"1px solid #e5e7eb",marginBottom:"16px"}},n))})},thead:function(e){e.node;var n=Cn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=Cn(e,["node"]);return t("th",kn({style:{padding:"12px",textAlign:"left",borderBottom:"2px solid #e5e7eb",color:"#374151",fontWeight:"600"}},n))},td:function(e){e.node;var n=Cn(e,["node"]);return t("td",kn({style:{padding:"12px",borderBottom:"1px solid #e5e7eb",color:"#4b5563"}},n))},tr:function(e){e.node;var n=Cn(e,["node"]);return t("tr",kn({style:{borderBottom:"1px solid #e5e7eb",backgroundColor:"#f9fafb"}},n))},code:function(e){e.node;var n=e.className,r=e.children,o=Cn(e,["node","className","children"]),i=/language-(\w+)/.exec(n||"");return i&&"markdown"===i[1]&&(null==r?void 0:r.toString().includes("|"))?t(Ul,{remarkPlugins:[Vc],components:{table:function(e){e.node;var n=Cn(e,["node"]);return t("div",{style:{overflowX:"auto",margin:"16px 0"},children:t("table",kn({style:{borderCollapse:"collapse",width:"100%"}},n))})},thead:function(e){e.node;var n=Cn(e,["node"]);return t("thead",kn({style:{backgroundColor:"#f3f4f6"}},n))},th:function(e){e.node;var n=Cn(e,["node"]);return t("th",kn({style:{padding:"12px",textAlign:"left",color:"#374151",fontWeight:"600"}},n))},td:function(e){e.node;var n=Cn(e,["node"]);return t("td",kn({style:{padding:"12px",color:"#4b5563"}},n))},tr:function(e){e.node;var n=Cn(e,["node"]);return t("tr",kn({style:{backgroundColor:"#f9fafb"}},n))}},children:String(r)}):t("code",kn({className:n},o,{children:r}))}},children:n.answer})}),e("div",{style:{display:"flex",gap:"8px",paddingTop:"12px"},children:[e("div",{style:{display:"flex",gap:"8px",paddingTop:"12px"},children:[t("button",{onClick:function(){n.isLoading?up({severity:"warn",summary:"Please wait",detail:"Response is still loading",life:2e3}):n.answer&&""!==n.answer.trim()?navigator.clipboard.writeText(n.answer).then((function(){up({severity:"success",summary:"Copied!",detail:"Response copied to clipboard",life:2e3})})).catch((function(e){console.error("Copy failed:",e),up({severity:"error",summary:"Copy failed",detail:"Failed to copy to clipboard",life:2e3})})):up({severity:"warn",summary:"No content",detail:"Nothing to copy",life:2e3})},style:{padding:"6px 12px",backgroundColor:n.isLoading?"#d1d5db":"#7761F3",color:"white",border:"none",borderRadius:"6px",fontSize:"14px",cursor:n.isLoading?"not-allowed":"pointer",display:"flex",alignItems:"center",gap:"4px",opacity:n.isLoading?.6:1,transition:"all 0.2s ease",width:"100px"},disabled:n.isLoading,children:"📋 Copy"}),t("button",{onClick:function(){return Sn(void 0,void 0,void 0,(function(){var e,t,r,o,i,a,l,s,c,u,d,f,m,g,y,b,x,w,k,C,S,E,T,O;return En(this,(function(A){switch(A.label){case 0:if(n.isLoading)return[2];e=n.id,Le((function(e){return e.map((function(e){return e.id===n.id?kn(kn({},e),{isLoading:!0,answer:""}):e}))})),A.label=1;case 1:return A.trys.push([1,3,,4]),t=null===(u=null==N?void 0:N.filter((function(e){return(null==e?void 0:e.uuid)===h.Project})))||void 0===u?void 0:u[0],r={},"devops"===v||"sre"===v?(l=null===(d=null==q?void 0:q.filter((function(e){return(null==e?void 0:e.uuid)===h.Application})))||void 0===d?void 0:d[0],o=null===(g=null===(m=null===(f=He.find((function(e){return"Environment"===e.label})))||void 0===f?void 0:f.options)||void 0===m?void 0:m.filter((function(e){return(null==e?void 0:e.value)===h.Environment})))||void 0===g?void 0:g[0],r={org_name:"".concat((null==t?void 0:t.organization_realm_name)||"teksecur","_dfact"),project_id:(null==t?void 0:t.uuid)||"",question:n.question,doc_type:"private",app_type:"dfact",org_uuid:(null==t?void 0:t.organization)||"",project_uuid:(null==t?void 0:t.uuid)||"",app_uuid:(null==h?void 0:h.Application)||"",env_uuid:(null==h?void 0:h.Environment)||"",action_type:(null==h?void 0:h["Action Type"])||"",context:"devops"===v?"devops":"sreops",conversation_title:ae,conversation_uuid:ce,context_param:{project_name:(null==t?void 0:t.name)||"",application_name:(null==l?void 0:l.name)||"",application_action_type:(null===(b=null===(y=null==h?void 0:h["Action Type"])||void 0===y?void 0:y.charAt(0))||void 0===b?void 0:b.toUpperCase())+(null===(x=null==h?void 0:h["Action Type"])||void 0===x?void 0:x.slice(1)),application_env:(null==o?void 0:o.label)||""}}):(i=null===(w=null==ge?void 0:ge.filter((function(e){return(null==e?void 0:e.value)===h.Category})))||void 0===w?void 0:w[0],a=null===(E=null===(S=null===(C=null===(k=null==ge?void 0:ge.filter((function(e){return(null==e?void 0:e.value)===(null==h?void 0:h.Category)})))||void 0===k?void 0:k[0])||void 0===C?void 0:C.tools)||void 0===S?void 0:S.filter((function(e){return(null==e?void 0:e.value)===(null==h?void 0:h.Tool)})))||void 0===E?void 0:E[0],l=null===(T=null==q?void 0:q.filter((function(e){return(null==e?void 0:e.uuid)===h.Application})))||void 0===T?void 0:T[0],s=null===(O=null==be?void 0:be.filter((function(e){return(null==e?void 0:e.uuid)===h["Scan Type"]})))||void 0===O?void 0:O[0],r={org_name:"".concat((null==t?void 0:t.organization_realm_name)||"teksecur","_dfact"),scan_uuid:(null==h?void 0:h["Scan Type"])||"",project_uuid:(null==t?void 0:t.uuid)||"",question:n.question,doc_type:"private",app_type:"dfact",org_uuid:(null==t?void 0:t.organization)||"",app_uuid:(null==h?void 0:h.Application)||"",category:(null==h?void 0:h.Category)||"",tool:(null==h?void 0:h.Tool)||"",context:"secops",conversation_title:ae,conversation_uuid:ce,context_param:{project_name:(null==t?void 0:t.name)||"",application_name:(null==l?void 0:l.name)||"",category_name:(null==i?void 0:i.name)||"",tool_name:(null==a?void 0:a.name)||"",scan_name:(null==s?void 0:s.scan_name)||""}}),[4,Ie(e,r,p,K,le,ue,ae)];case 2:return A.sent(),[3,4];case 3:return c=A.sent(),console.error("Retry error:",c),Le((function(e){return e.map((function(e){return e.id===n.id?kn(kn({},e),{isLoading:!1,answer:"❌ Error: ".concat(c.message||"Failed to get response. Please try again."),error:c.message}):e}))})),[3,4];case 4:return[2]}}))}))},style:{padding:"6px 12px",backgroundColor:n.isLoading?"#d1d5db":"#7761F3",color:"white",border:"none",borderRadius:"6px",fontSize:"14px",cursor:n.isLoading?"not-allowed":"pointer",display:"flex",alignItems:"center",gap:"4px",opacity:n.isLoading?.6:1,transition:"all 0.2s ease",width:"100px"},children:"🔄 Retry"})]}),n.answerTime&&!n.isLoading&&t("span",{style:{width:"100%",display:"flex",justifyContent:"flex-end",fontSize:"12px",color:"#666",alignItems:"center",marginTop:"8px"},children:n.answerTime.toLocaleString("en-US",{day:"2-digit",month:"2-digit",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).replace(","," -")})]})]})})})]},r)})),De.length>0&&t("p",{style:{color:"#98A2B3",textAlign:"left",fontSize:"12px",paddingLeft:"16px"},children:"The response is AI-generated and should be independently verified for accuracy."})]}),t("div",{style:{backgroundColor:"white",padding:"0.5rem",display:"flex",flexDirection:"column",alignItems:"center",gap:"0.25rem"},children:e("div",{className:"input-container flex flex-col",style:{width:Re?"60%":"100%"},children:[e("div",{className:"input-wrapper",style:{position:"relative",width:"100%",display:"flex"},children:[t("textarea",{className:"input-box my-1",id:"messageInput",rows:1,value:c,disabled:_e,placeholder:"Message Cindy - EveryOps Agentic AI",onChange:function(e){p(e.target.value),e.target.style.height="auto",e.target.style.height=Math.min(e.target.scrollHeight,150)+"px"},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),Xe())},style:{flex:1,width:"100%",borderRadius:"0.7rem",border:"1px solid #d1d5db",backgroundColor:"transparent",padding:"1rem 0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",resize:"vertical",minHeight:"3.5rem",maxHeight:"9.375rem",fontFamily:"inherit",outline:"none",overflow:"auto"}}),e("div",{style:{position:"absolute",right:"0.5rem",bottom:"0.5rem",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem"},children:[t("input",{ref:he,type:"file",className:"hidden",onChange:function(e){}}),t("button",{style:{height:"2rem",width:"2rem",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"0.375rem",fontSize:"0.875rem",fontWeight:"500",backgroundColor:"#7761F3",color:"white",boxShadow:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",transition:"background-color 0.2s",outline:"none",border:"none",cursor:_e?"not-allowed":"pointer",opacity:_e?.5:1,marginBottom:"7.8px"},title:"Send",id:"sendBtn",onClick:function(){return Xe()},disabled:_e||""==c,children:"➤"})]})]}),t("div",{style:{fontSize:"0.75rem",color:"#6b7280",margin:"auto"},children:"Cindy can make mistakes. Check important info."})]})})]})]}),D&&t(Zl,{title:"Authorization",visible:D,setVisible:L,onSubmit:function(e){!function(e){Sn(void 0,void 0,void 0,(function(){var t,n,r,o;return En(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/itom/operations/".concat(null==W?void 0:W.uuid,"/execute/"),{auth_code:e})];case 1:return t=i.sent(),console.log("response---",t),(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.msg)&&200===(null==t?void 0:t.status)?(L(!1),up({severity:"success",summary:"Success",detail:(null===(o=null==t?void 0:t.data)||void 0===o?void 0:o.msg)||"Code verified successfully. Operation started.",life:3e3})):up({severity:"error",summary:"Error",detail:"Invalid code or operation failed to start",life:3e3}),[3,4];case 2:return n=i.sent(),console.error("Error checking code:",n),up({severity:"error",summary:"Error",detail:n.message||(null==n?void 0:n.msg)||"Invalid code or server error",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))}(e)}}),Ee&&t(Kl,{title:"Are you sure?",visible:Ee,setVisible:Te,onSubmit:function(){var e;Te(!1),e=null==ke?void 0:ke.conversation_uuid,Sn(void 0,void 0,void 0,(function(){var t,n;return En(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/delete_conversation/",{conversation_uuid:e})];case 1:return t=r.sent(),console.log("response---",t),201===(null==t?void 0:t.status)||200===(null==t?void 0:t.status)?(K(Q.filter((function(t){return(null==t?void 0:t.conversation_uuid)!==e}))),up({severity:"success",summary:"Success",detail:"Conversation deleted successfully",life:3e3}),console.log("conversation_uuid---",e),console.log("recentUuid---",ce),console.log("prompts---",De),Te(!1),Ce(null),e===ce&&(ue(null),re(nt()),Le([]),le(""))):up({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 2:return n=r.sent(),console.error("Error deleting conversation:",n),up({severity:"error",summary:"Error",detail:"Failed to delete conversation",life:3e3}),[3,4];case 3:return O(!1),Te(!1),[7];case 4:return[2]}}))}))},selectedConversation:ke}),Ae&&t(Jl,{title:"Rename chat",visible:Ae,setVisible:Ne,onSubmit:function(){var e,t,n;Ne(!1),Me&&(null===(e=null==Me?void 0:Me.trim())||void 0===e?void 0:e.length)>0?(t=null==ke?void 0:ke.conversation_uuid,n=Me,Sn(void 0,void 0,void 0,(function(){var e,r;return En(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),O(!0),[4,l.post("/api/v1/cindy/rename_conversation/",{conversation_uuid:t,new_title:n})];case 1:return e=o.sent(),console.log("response---",e),201!==(null==e?void 0:e.status)&&200!==(null==e?void 0:e.status)||(K((function(e){return e.map((function(e){return e.conversation_uuid===t?kn(kn({},e),{title:n,isEdit:!1}):e}))})),Ne(!1),Ce(null),up({severity:"success",summary:"Success",detail:"Conversation renamed successfully",life:3e3})),[3,4];case 2:return r=o.sent(),console.error("Error renaming conversation:",r),up({severity:"error",summary:"Error",detail:"Failed to rename conversation",life:3e3}),[3,4];case 3:return O(!1),[7];case 4:return[2]}}))}))):up({severity:"error",summary:"Error",detail:"Please enter a title",life:3e3})},selectedConversation:ke,tempTitle:Me,setTempTitle:Fe})]})},pp=function(n){var r=n.app_type,o=n.title,i=n.placeholder;n.base_url,n.access_token_key,n.refresh_token_key,n.token_refresh_route;var a=n.aiIconSrc,l=void 0===a?"/images/ai-icon.svg":a;n.expandedStyle,n.dialogStyle,n.position;var s=n.HTTP,c=Nn(),u=c.opneChatModal,d=c.setOpenChatModal;c.isResize;return e("div",{style:{position:"relative"},children:[u&&t("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"white",zIndex:10000001,overflow:"hidden",display:"flex",flexDirection:"column"},children:t(dp,{app_type:r,title:o,placeholder:i,HTTP:s,closeChat:function(){d(!1)}})}),!u&&t("div",{style:{position:"fixed",bottom:"20px",right:"20px",zIndex:1e7},children:t("img",{src:l,style:{cursor:"pointer",transition:"transform 0.2s ease"},onClick:function(){d(!u)},onMouseOver:function(e){e.currentTarget.style.transform="scale(1.1)"},onMouseOut:function(e){e.currentTarget.style.transform="scale(1)"},alt:"Ai Icon",height:82,width:82})})]})},fp=function(e){var n=e.app_type,r=e.title,o=e.placeholder,i=e.base_url,a=e.access_token_key,l=e.refresh_token_key,s=e.token_refresh_route,c=g((function(){return Yl(i,a,l,s)}),[i,a,l,s]);return t(ie,{children:t(wn,{children:t(An,{HTTP:c,children:t(pp,{app_type:n,title:r,placeholder:o,base_url:i,access_token_key:a,refresh_token_key:l,token_refresh_route:s,HTTP:c})})})})};export{fp as CindyChatBot};
40
40
  //# sourceMappingURL=index.esm.js.map