inferno_core 1.2.2 → 1.3.1

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.
@@ -130,7 +130,7 @@
130
130
  &::after {
131
131
  animation: ${$h} 2s linear 0.5s infinite;
132
132
  }
133
- `:null,Dh=qc("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(mu(({theme:e})=>{const t=(o=e.shape.borderRadius,String(o).match(/[\d.\-+]*\s*(.*)/)[1]||""||"px"),n=(r=e.shape.borderRadius,parseFloat(r));var r,o;return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:_i(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Nh||{animation:`${jh} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(\n 90deg,\n transparent,\n ${(e.vars||e).palette.action.hover},\n transparent\n )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:_h||{"&::after":{animation:`${$h} 2s linear 0.5s infinite`}}}]}})),zh=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:a="span",height:i,style:l,variant:s="text",width:c,...u}=n,d={...n,animation:r,component:a,variant:s,hasChildren:Boolean(u.children)},p=(e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:a,height:i}=e;return mc({root:["root",n,r,o&&"withChildren",o&&!a&&"fitContent",o&&!i&&"heightAuto"]},Lh,t)})(d);return(0,Dc.jsx)(Dh,{as:a,ref:t,className:cc(p.root,o),ownerState:d,...u,style:{width:c,height:i,...l}})}),Fh=zh,Bh=function(){for(var e=Cm().classes,t=rc(function(e){return e.windowIsSmall}),n=i.createElement(Fh,{variant:"rounded",height:10,width:t?200:300,style:{margin:"32px"}}),r=[],o=0;o<3;o++)r.push(i.createElement("div",{key:o},n));return i.createElement(nu,{display:"flex","data-testid":"selectionSkeleton"},i.createElement(Lu,{elevation:0,className:e.optionsList,sx:{width:t?"auto":"400px",maxWidth:"400px"}},i.createElement(nu,{display:"flex",alignItems:"center",justifyContent:"center",mx:1},i.createElement(Fh,{variant:"rounded",height:30,width:150,style:{marginTop:"16px"}})),i.createElement(nu,{px:2,pb:2},r),i.createElement(nu,{px:2},i.createElement(Fh,{variant:"rounded",height:40}))))},Wh=function(e){var t=e.testSuites,n=pt(),r=Ah().classes,o=Fr().enqueueSnackbar,a=lc(i.useState(""),2),l=a[0],s=a[1],c=rc(function(e){return e.windowIsSmall});(0,i.useEffect)(function(){1===(null==t?void 0:t.length)&&(s(t[0].id),u(t[0]))},[]);var u=function(e){e&&e.suite_options&&e.suite_options.length>0?n("".concat(e.id)):e&&null!=e&&e.id||l?Cu((null==e?void 0:e.id)||l,null,null).then(function(e){e&&e.test_suite&&n("/".concat(e.test_suite_id,"/").concat(e.id,"#").concat(e.test_suite_id))}).catch(function(e){o("Error while creating test session: ".concat(e.message),{variant:"error"})}):o("No test suite selected.",{variant:"error"})};return i.createElement(Xc,{maxWidth:!1,role:"main",className:r.main,sx:c?{}:{minHeight:"400px",maxHeight:"100vh",py:10}},i.createElement(Tu,{title:"Inferno Test Session",description:"Test your server's conformance to authentication, authorization, and FHIR content standards."}),i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:c?"center":"flex-end",alignItems:"center",overflow:"initial",minHeight:"300px",pb:c?0:2,px:2},i.createElement(nu,{my:2,alignItems:"center",maxWidth:"800px"},i.createElement(nu,{display:"flex",alignItems:"center",justifyContent:"center"},i.createElement("img",{src:Qs(Ou),alt:"Inferno Logo",style:{height:c?"5em":"8em"}})),i.createElement(Su,{variant:"h4",component:"h1",align:"center",sx:{color:Mh.palette.common.grayDark,fontSize:c?"2rem":"auto",fontWeight:"bolder"}},"FHIR Testing with Inferno")),i.createElement(nu,{mb:2,alignItems:"center",maxWidth:"600px"},i.createElement(Su,{variant:"h5",component:"h2",align:"center",sx:{fontSize:c?"1.2rem":"auto"}},"Test your server's conformance to authentication, authorization, and FHIR content standards."))),i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",overflow:"initial",width:"100%",minHeight:"200px",py:4,sx:{backgroundColor:Mh.palette.common.grayLight}},t?i.createElement(Ph,{title:"Test Suites",options:(t||[]).sort(function(e,t){return e.title.localeCompare(t.title)}),setSelection:function(e){"string"==typeof e&&s(e)},submitAction:function(){return u(null==t?void 0:t.find(function(e){return e.id===l}))},submitText:"Select Suite"}):i.createElement(Bh,null)))};function Hh(){}function Vh(){}const qh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kh={};function Gh(e,t){return((t||Kh).jsx?Uh:qh).test(e)}const Yh=/[ \t\n\f\r]/g;function Xh(e){return""===e.replace(Yh,"")}class Qh{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function Jh(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Qh(n,r,t)}function Zh(e){return e.toLowerCase()}Qh.prototype.normal={},Qh.prototype.property={},Qh.prototype.space=void 0;class eg{constructor(e,t){this.attribute=t,this.property=e}}eg.prototype.attribute="",eg.prototype.booleanish=!1,eg.prototype.boolean=!1,eg.prototype.commaOrSpaceSeparated=!1,eg.prototype.commaSeparated=!1,eg.prototype.defined=!1,eg.prototype.mustUseProperty=!1,eg.prototype.number=!1,eg.prototype.overloadedBoolean=!1,eg.prototype.property="",eg.prototype.spaceSeparated=!1,eg.prototype.space=void 0;let tg=0;const ng=cg(),rg=cg(),og=cg(),ag=cg(),ig=cg(),lg=cg(),sg=cg();function cg(){return 2**++tg}const ug=Object.keys(r);class dg extends eg{constructor(e,t,n,o){let a=-1;if(super(e,t),pg(this,"space",o),"number"==typeof n)for(;++a<ug.length;){const e=ug[a];pg(this,ug[a],(n&r[e])===r[e])}}}function pg(e,t,n){n&&(e[t]=n)}function fg(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new dg(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Zh(r)]=r,n[Zh(a.attribute)]=r}return new Qh(t,n,e.space)}dg.prototype.defined=!0;const mg=fg({properties:{ariaActiveDescendant:null,ariaAtomic:rg,ariaAutoComplete:null,ariaBusy:rg,ariaChecked:rg,ariaColCount:ag,ariaColIndex:ag,ariaColSpan:ag,ariaControls:ig,ariaCurrent:null,ariaDescribedBy:ig,ariaDetails:null,ariaDisabled:rg,ariaDropEffect:ig,ariaErrorMessage:null,ariaExpanded:rg,ariaFlowTo:ig,ariaGrabbed:rg,ariaHasPopup:null,ariaHidden:rg,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ig,ariaLevel:ag,ariaLive:null,ariaModal:rg,ariaMultiLine:rg,ariaMultiSelectable:rg,ariaOrientation:null,ariaOwns:ig,ariaPlaceholder:null,ariaPosInSet:ag,ariaPressed:rg,ariaReadOnly:rg,ariaRelevant:null,ariaRequired:rg,ariaRoleDescription:ig,ariaRowCount:ag,ariaRowIndex:ag,ariaRowSpan:ag,ariaSelected:rg,ariaSetSize:ag,ariaSort:null,ariaValueMax:ag,ariaValueMin:ag,ariaValueNow:ag,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function hg(e,t){return t in e?e[t]:t}function gg(e,t){return hg(e,t.toLowerCase())}const vg=fg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lg,acceptCharset:ig,accessKey:ig,action:null,allow:null,allowFullScreen:ng,allowPaymentRequest:ng,allowUserMedia:ng,alt:null,as:null,async:ng,autoCapitalize:null,autoComplete:ig,autoFocus:ng,autoPlay:ng,blocking:ig,capture:null,charSet:null,checked:ng,cite:null,className:ig,cols:ag,colSpan:null,content:null,contentEditable:rg,controls:ng,controlsList:ig,coords:ag|lg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ng,defer:ng,dir:null,dirName:null,disabled:ng,download:og,draggable:rg,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ng,formTarget:null,headers:ig,height:ag,hidden:og,high:ag,href:null,hrefLang:null,htmlFor:ig,httpEquiv:ig,id:null,imageSizes:null,imageSrcSet:null,inert:ng,inputMode:null,integrity:null,is:null,isMap:ng,itemId:null,itemProp:ig,itemRef:ig,itemScope:ng,itemType:ig,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ng,low:ag,manifest:null,max:null,maxLength:ag,media:null,method:null,min:null,minLength:ag,multiple:ng,muted:ng,name:null,nonce:null,noModule:ng,noValidate:ng,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:ng,optimum:ag,pattern:null,ping:ig,placeholder:null,playsInline:ng,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ng,referrerPolicy:null,rel:ig,required:ng,reversed:ng,rows:ag,rowSpan:ag,sandbox:ig,scope:null,scoped:ng,seamless:ng,selected:ng,shadowRootClonable:ng,shadowRootDelegatesFocus:ng,shadowRootMode:null,shape:null,size:ag,sizes:null,slot:null,span:ag,spellCheck:rg,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ag,step:null,style:null,tabIndex:ag,target:null,title:null,translate:null,type:null,typeMustMatch:ng,useMap:null,value:rg,width:ag,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ig,axis:null,background:null,bgColor:null,border:ag,borderColor:null,bottomMargin:ag,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ng,declare:ng,event:null,face:null,frame:null,frameBorder:null,hSpace:ag,leftMargin:ag,link:null,longDesc:null,lowSrc:null,marginHeight:ag,marginWidth:ag,noResize:ng,noHref:ng,noShade:ng,noWrap:ng,object:null,profile:null,prompt:null,rev:null,rightMargin:ag,rules:null,scheme:null,scrolling:rg,standby:null,summary:null,text:null,topMargin:ag,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ag,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ng,disableRemotePlayback:ng,prefix:null,property:null,results:ag,security:null,unselectable:null},space:"html",transform:gg}),yg=fg({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:sg,accentHeight:ag,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ag,amplitude:ag,arabicForm:null,ascent:ag,attributeName:null,attributeType:null,azimuth:ag,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ag,by:null,calcMode:null,capHeight:ag,className:ig,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:ag,diffuseConstant:ag,direction:null,display:null,dur:null,divisor:ag,dominantBaseline:null,download:ng,dx:null,dy:null,edgeMode:null,editable:null,elevation:ag,enableBackground:null,end:null,event:null,exponent:ag,externalResourcesRequired:null,fill:null,fillOpacity:ag,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:lg,g2:lg,glyphName:lg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ag,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ag,horizOriginX:ag,horizOriginY:ag,id:null,ideographic:ag,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ag,k:ag,k1:ag,k2:ag,k3:ag,k4:ag,kernelMatrix:sg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ag,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:ag,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:ag,overlineThickness:ag,paintOrder:null,panose1:null,path:null,pathLength:ag,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ig,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ag,pointsAtY:ag,pointsAtZ:ag,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:sg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:sg,rev:sg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:sg,requiredFeatures:sg,requiredFonts:sg,requiredFormats:sg,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:ag,specularExponent:ag,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ag,strikethroughThickness:ag,string:null,stroke:null,strokeDashArray:sg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ag,strokeOpacity:ag,strokeWidth:null,style:null,surfaceScale:ag,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:sg,tabIndex:ag,tableValues:null,target:null,targetX:ag,targetY:ag,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:sg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ag,underlineThickness:ag,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ag,values:null,vAlphabetic:ag,vMathematical:ag,vectorEffect:null,vHanging:ag,vIdeographic:ag,version:null,vertAdvY:ag,vertOriginX:ag,vertOriginY:ag,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ag,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hg}),bg=fg({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()}),xg=fg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gg}),wg=fg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),kg=Jh([mg,vg,bg,xg,wg],"html"),Sg=Jh([mg,yg,bg,xg,wg],"svg"),Eg=/[A-Z]/g,Cg=/-[a-z]/g,Ig=/^data[-\w.:]+$/i;function Pg(e){return"-"+e.toLowerCase()}function Og(e){return e.charAt(1).toUpperCase()}const Tg={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"};var Rg=n(229);const Mg=Lg("end"),Ag=Lg("start");function Lg(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 jg(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ng(e.position):"start"in e||"end"in e?Ng(e):"line"in e||"column"in e?$g(e):"":""}function $g(e){return _g(e&&e.line)+":"+_g(e&&e.column)}function Ng(e){return $g(e&&e.start)+"-"+$g(e&&e.end)}function _g(e){return e&&"number"==typeof e?e:1}class Dg extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},a=!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&&(a=!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 i=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=i?i.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=i?i.line:void 0,this.name=jg(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=a&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Dg.prototype.file="",Dg.prototype.name="",Dg.prototype.reason="",Dg.prototype.message="",Dg.prototype.stack="",Dg.prototype.column=void 0,Dg.prototype.line=void 0,Dg.prototype.ancestors=void 0,Dg.prototype.cause=void 0,Dg.prototype.fatal=void 0,Dg.prototype.place=void 0,Dg.prototype.ruleId=void 0,Dg.prototype.source=void 0;const zg={}.hasOwnProperty,Fg=new Map,Bg=/[A-Z]/g,Wg=new Set(["table","tbody","thead","tfoot","tr"]),Hg=new Set(["td","th"]),Vg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qg(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=Sg,e.schema=o),e.ancestors.push(t);const a=Xg(e,t.tagName,!1),i=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&zg.call(t.properties,o)){const a=Yg(e,o,t.properties[o]);if(a){const[o,i]=a;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof i&&Hg.has(t.tagName)?r=i:n[o]=i}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let l=Gg(e,t);return Wg.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Xh(t.value):Xh(t));var t})),Ug(e,i,a,t),Kg(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,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)}Qg(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=Sg,e.schema=o),e.ancestors.push(t);const a=null===t.name?e.Fragment:Xg(e,t.name,!0),i=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];Hh(t.type);const o=t.expression;Hh(o.type);const a=o.properties[0];Hh(a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Qg(e,t.position);else{const o=r.name;let a;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];Hh(t.type),a=e.evaluater.evaluateExpression(t.expression)}else Qg(e,t.position);else a=null===r.value||r.value;n[o]=a}return n}(e,t),l=Gg(e,t);return Ug(e,i,a,t),Kg(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,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);Qg(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Kg(r,Gg(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 Ug(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Kg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Gg(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Fg;for(;++r<t.children.length;){const a=t.children[r];let i;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=o.get(e)||0;i=e+"-"+t,o.set(e,t+1)}}const l=qg(e,a,i);void 0!==l&&n.push(l)}return n}function Yg(e,t,n){const r=function(e,t){const n=Zh(t);let r=t,o=eg;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Ig.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Cg,Og);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Cg.test(e)){let n=e.replace(Eg,Pg);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=dg}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 Rg(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new Dg("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=Vg+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)zg.call(e,n)&&(t[Jg(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Tg[r.property]||r.property:r.attribute,n]}}function Xg(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Gh(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=Gh(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 zg.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Qg(e)}function Qg(e,t){const n=new Dg("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=Vg+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Jg(e){let t=e.replace(Bg,Zg);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Zg(e){return"-"+e.toLowerCase()}const ev={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"]},tv={};function nv(e,t){const n=t||tv;return rv(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function rv(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 ov(e.children,t,n)}return Array.isArray(e)?ov(e,t,n):""}function ov(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=rv(e[o],t,n);return r.join("")}function av(e,t,n,r){const o=e.length;let a,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function iv(e,t){return e.length>0?(av(e,e.length,0,t),e):t}class lv{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&&sv(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),sv(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),sv(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);sv(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);sv(this.left,t.reverse())}}}function sv(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 cv(e){const t={};let n,r,o,a,i,l,s,c=-1;const u=new lv(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,uv(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(a=u.get(o),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=o);else if("linePrefix"!==a[1].type&&"listItemIndent"!==a[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return av(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function uv(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const l=i.events,s=[],c={};let u,d,p=-1,f=n,m=0,h=0;const g=[h];for(;f;){for(;e.get(++o)[1]!==f;);a.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),f._isInFirstContentOfListItem&&(i._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&&(h=p+1,g.push(h),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.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=a.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),p=-1;++p<s.length;)c[m+s[p][0]]=m+s[p][1],m+=s[p][1]-s[p][0]-1;return c}const dv={}.hasOwnProperty;function pv(e){const t={};let n=-1;for(;++n<e.length;)fv(t,e[n]);return t}function fv(e,t){let n;for(n in t){const r=(dv.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){dv.call(r,a)||(r[a]=[]);const e=o[a];mv(r[a],Array.isArray(e)?e:e?[e]:[])}}}function mv(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);av(e,0,0,r)}const hv=Pv(/[A-Za-z]/),gv=Pv(/[\dA-Za-z]/),vv=Pv(/[#-'*+\--9=?A-Z^-~]/);function yv(e){return null!==e&&(e<32||127===e)}const bv=Pv(/\d/),xv=Pv(/[\dA-Fa-f]/),wv=Pv(/[!-/:-@[-`{-~]/);function kv(e){return null!==e&&e<-2}function Sv(e){return null!==e&&(e<0||32===e)}function Ev(e){return-2===e||-1===e||32===e}const Cv=Pv(/\p{P}|\p{S}/u),Iv=Pv(/\s/);function Pv(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Ov(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return Ev(r)?(e.enter(n),i(r)):t(r)};function i(r){return Ev(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}const Tv={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ov(e,t,"linePrefix");e.consume(n)},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)):kv(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}},Rv={tokenize:function(e){const t=this,n=[];let r,o,a,i=0;return l;function l(r){if(i<n.length){const o=n[i];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){o=t.events[a][1].end;break}v(i);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return av(t.events,a+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(i===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return m(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Mv,u,d)(o)}function u(e){return r&&y(),v(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,a=t.now().offset,m(e)}function p(n){return t.containerState={},e.attempt(Mv,f,m)(n)}function f(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function m(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),h(n))}function h(n){return null===n?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):kv(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(n),h)}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<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))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(v(i),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;av(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function v(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 y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Mv={tokenize:function(e,t,n){return Ov(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},Av={partial:!0,tokenize:function(e,t,n){return function(t){return Ev(t)?Ov(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||kv(e)?t(e):n(e)}}},Lv={resolve:function(e){return cv(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):kv(t)?e.check(jv,a,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},jv={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"),Ov(e,o,"linePrefix")};function o(o){if(null===o||kv(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}},$v={tokenize:function(e){const t=this,n=e.attempt(Av,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,Ov(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Lv,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)}}},Nv={resolveAll:Fv()},_v=zv("string"),Dv=zv("text");function zv(e){return{resolveAll:Fv("text"===e?Bv:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return s(e)?o(e):i(e)}function i(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 Fv(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 Bv(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 a,i=o.length,l=-1,s=0;for(;i--;){const e=o[i];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)a=!0,s++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const o={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,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 Wv={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),i(a)):o>=3&&(null===a||kv(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),Ev(t)?Ov(e,a,"whitespace")(t):a(t))}}},Hv={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Av,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ov(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!Ev(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qv,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ov(e,e.attempt(Hv,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 a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=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:bv(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(Wv,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 bv(t)&&++i<10?(e.consume(t),l):(!r.interrupt||i<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(Av,r.interrupt?n:c,e.attempt(Vv,d,u))}function c(e){return r.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return Ev(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Vv={partial:!0,tokenize:function(e,t,n){const r=this;return Ov(e,function(e){const o=r.events[r.events.length-1];return!Ev(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},qv={partial:!0,tokenize:function(e,t,n){const r=this;return Ov(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)}},Uv={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return Ev(t)?Ov(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(Uv,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 Ev(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function Kv(e,t,n,r,o,a,i,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||yv(t)?n(t):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),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||kv(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 m(o){return u||null!==o&&41!==o&&!Sv(o)?u<c&&40===o?(e.consume(o),u++,m):41===o?(e.consume(o),u--,m):null===o||32===o||40===o||yv(o)?n(o):(e.consume(o),92===o?h:m):(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(o))}function h(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function Gv(e,t,n,r,o,a){const i=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(a),c};function c(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(a),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):kv(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||kv(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!Ev(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Yv(e,t,n,r,o,a){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,l):n(t)};function l(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),s(n))}function s(t){return t===i?(e.exit(a),l(i)):null===t?n(t):kv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ov(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||kv(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function Xv(e,t){let n;return function r(o){return kv(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Ev(o)?Ov(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function Qv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jv={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Gv.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return o=Qv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return Sv(t)?Xv(e,l)(t):l(t)}function l(t){return Kv(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Zv,c,c)(t)}function c(t){return Ev(t)?Ov(e,u,"whitespace")(t):u(t)}function u(a){return null===a||kv(a)?(e.exit("definition"),r.parser.defined.push(o),t(a)):n(a)}}},Zv={partial:!0,tokenize:function(e,t,n){return function(t){return Sv(t)?Xv(e,r)(t):n(t)};function r(t){return Yv(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Ev(t)?Ov(e,a,"whitespace")(t):a(t)}function a(e){return null===e||kv(e)?t(e):n(e)}}},ey={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Ov(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?a(e):n(e)}function a(t){return null===t?l(t):kv(t)?e.attempt(ty,a,l)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||kv(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function l(n){return e.exit("codeIndented"),t(n)}}},ty={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):kv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Ov(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):kv(e)?o(e):n(e)}}},ny={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),o-2>a&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4),o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},av(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(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||Sv(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||kv(n)?(e.exit("atxHeading"),t(n)):Ev(n)?Ov(e,a,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function l(t){return null===t||35===t||Sv(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),l)}}},ry={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=i,e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let i,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){i="paragraph"===r.events[l][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!i?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===o?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),Ev(t)?Ov(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||kv(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},oy=["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"],ay=["pre","script","style","textarea"],iy={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,a,i,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),a=!0,f):63===l?(e.consume(l),o=3,r.interrupt?t:j):hv(l)?(e.consume(l),i=String.fromCharCode(l),m):n(l)}function u(a){return 45===a?(e.consume(a),o=2,d):91===a?(e.consume(a),o=5,l=0,p):hv(a)?(e.consume(a),o=4,r.interrupt?t:j):n(a)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:j):n(o)}function p(o){return o==="CDATA[".charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:I:p):n(o)}function f(t){return hv(t)?(e.consume(t),i=String.fromCharCode(t),m):n(t)}function m(l){if(null===l||47===l||62===l||Sv(l)){const s=47===l,c=i.toLowerCase();return s||a||!ay.includes(c)?oy.includes(i.toLowerCase())?(o=6,s?(e.consume(l),h):r.interrupt?t(l):I(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):a?g(l):v(l)):(o=1,r.interrupt?t(l):I(l))}return 45===l||gv(l)?(e.consume(l),i+=String.fromCharCode(l),m):n(l)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:I):n(o)}function g(t){return Ev(t)?(e.consume(t),g):E(t)}function v(t){return 47===t?(e.consume(t),E):58===t||95===t||hv(t)?(e.consume(t),y):Ev(t)?(e.consume(t),v):E(t)}function y(t){return 45===t||46===t||58===t||95===t||gv(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),x):Ev(t)?(e.consume(t),b):v(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):Ev(t)?(e.consume(t),x):k(t)}function w(t){return t===s?(e.consume(t),s=null,S):null===t||kv(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||Sv(t)?b(t):(e.consume(t),k)}function S(e){return 47===e||62===e||Ev(e)?v(e):n(e)}function E(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||kv(t)?I(t):Ev(t)?(e.consume(t),C):n(t)}function I(t){return 45===t&&2===o?(e.consume(t),R):60===t&&1===o?(e.consume(t),M):62===t&&4===o?(e.consume(t),$):63===t&&3===o?(e.consume(t),j):93===t&&5===o?(e.consume(t),L):!kv(t)||6!==o&&7!==o?null===t||kv(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),I):(e.exit("htmlFlowData"),e.check(ly,N,P)(t))}function P(t){return e.check(sy,O,N)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||kv(t)?P(t):(e.enter("htmlFlowData"),I(t))}function R(t){return 45===t?(e.consume(t),j):I(t)}function M(t){return 47===t?(e.consume(t),i="",A):I(t)}function A(t){if(62===t){const n=i.toLowerCase();return ay.includes(n)?(e.consume(t),$):I(t)}return hv(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),A):I(t)}function L(t){return 93===t?(e.consume(t),j):I(t)}function j(t){return 62===t?(e.consume(t),$):45===t&&2===o?(e.consume(t),j):I(t)}function $(t){return null===t||kv(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),$)}function N(n){return e.exit("htmlFlow"),t(n)}}},ly={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Av,t,n)}}},sy={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return kv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},cy={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},uy={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),Ev(t)?Ov(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===a?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===a?(o++,e.consume(t),c):o>=l?(e.exit("codeFencedFenceSequence"),Ev(t)?Ov(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||kv(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let a,i=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===a?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),Ev(t)?Ov(e,c,"whitespace")(t):c(t))}function c(n){return null===n||kv(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(cy,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||kv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Ev(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ov(e,d,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),u)}function d(t){return null===t||kv(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||kv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,y,m)(t)}function m(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return i>0&&Ev(t)?Ov(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||kv(t)?e.check(cy,f,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||kv(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}}},dy=document.createElement("i");function py(e){const t="&"+e+";";dy.innerHTML=t;const n=dy.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const fy={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,a,i=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,a=gv,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=xv,c):(e.enter("characterReferenceValue"),o=7,a=bv,c(t))}function c(l){if(59===l&&i){const o=e.exit("characterReferenceValue");return a!==gv||py(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return a(l)&&i++<o?(e.consume(l),c):n(l)}}},my={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 wv(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},hy={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ov(e,t,"linePrefix")}}};function gy(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const vy={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}}return e.length!==n.length&&av(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,a,i=e.length,l=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=i);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 a=[["enter",s,t],["enter",c,t]],a=iv(a,e.slice(r+1,r+l+3)),a=iv(a,[["enter",u,t]]),a=iv(a,gy(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),a=iv(a,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),a=iv(a,e.slice(o+1)),a=iv(a,[["exit",s,t]]),av(e,r,e.length,a),e},tokenize:function(e,t,n){const r=this;let o,a,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){o=r.events[i][1];break}return function(t){return o?o._inactive?u(t):(a=r.parser.defined.includes(Qv(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(yy,c,a?c:u)(t):91===t?e.attempt(by,c,a?s:u)(t):a?c(t):u(t)}function s(t){return e.attempt(xy,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},yy={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 Sv(t)?Xv(e,o)(t):o(t)}function o(t){return 41===t?c(t):Kv(e,a,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return Sv(t)?Xv(e,l)(t):c(t)}function i(e){return n(e)}function l(t){return 34===t||39===t||40===t?Yv(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return Sv(t)?Xv(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)}}},by={tokenize:function(e,t,n){const r=this;return function(t){return Gv.call(r,e,o,a,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Qv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},xy={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)}}},wy={name:"labelStartImage",resolveAll:vy.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"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function ky(e){return null===e||Sv(e)||Iv(e)?1:Cv(e)?2:void 0}const Sy={name:"attention",resolveAll:function(e,t){let n,r,o,a,i,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};Ey(d,-l),Ey(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={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:{...a.start},end:{...i.end}},e[n][1].end={...a.start},e[u][1].start={...i.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=iv(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=iv(s,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),s=iv(s,gy(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=iv(s,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=iv(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,av(e,n-1,u-n+3,s),u=n+s.length-c-2;break}for(u=-1;++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=ky(r);let a;return function(t){return a=t,e.enter("attentionSequence"),i(t)};function i(l){if(l===a)return e.consume(l),i;const s=e.exit("attentionSequence"),c=ky(l),u=!c||2===c&&o||n.includes(l),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===a?u:u&&(o||!d)),s._close=Boolean(42===a?d:d&&(c||!u)),t(l)}}};function Ey(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Cy={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 hv(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(e){return 43===e||45===e||46===e||gv(e)?(r=1,i(e)):s(e)}function i(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||gv(t))&&r++<32?(e.consume(t),i):(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||yv(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):vv(t)?(e.consume(t),s):n(t)}function c(e){return gv(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||gv(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},Iy={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,a,i;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),y):hv(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,f):hv(t)?(e.consume(t),v):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):kv(t)?(i=u,A(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?M(e):45===e?d(e):u(e)}function f(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?m:f):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),h):kv(t)?(i=m,A(t)):(e.consume(t),m)}function h(t){return 93===t?(e.consume(t),g):m(t)}function g(t){return 62===t?M(t):93===t?(e.consume(t),g):m(t)}function v(t){return null===t||62===t?M(t):kv(t)?(i=v,A(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):kv(t)?(i=y,A(t)):(e.consume(t),y)}function b(e){return 62===e?M(e):y(e)}function x(t){return hv(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||gv(t)?(e.consume(t),w):k(t)}function k(t){return kv(t)?(i=k,A(t)):Ev(t)?(e.consume(t),k):M(t)}function S(t){return 45===t||gv(t)?(e.consume(t),S):47===t||62===t||Sv(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),M):58===t||95===t||hv(t)?(e.consume(t),C):kv(t)?(i=E,A(t)):Ev(t)?(e.consume(t),E):M(t)}function C(t){return 45===t||46===t||58===t||95===t||gv(t)?(e.consume(t),C):I(t)}function I(t){return 61===t?(e.consume(t),P):kv(t)?(i=I,A(t)):Ev(t)?(e.consume(t),I):E(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):kv(t)?(i=P,A(t)):Ev(t)?(e.consume(t),P):(e.consume(t),T)}function O(t){return t===o?(e.consume(t),o=void 0,R):null===t?n(t):kv(t)?(i=O,A(t)):(e.consume(t),O)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Sv(t)?E(t):(e.consume(t),T)}function R(e){return 47===e||62===e||Sv(e)?E(e):n(e)}function M(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return Ev(t)?Ov(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):j(t)}function j(t){return e.enter("htmlTextData"),i(t)}}},Py={name:"labelStartLink",resolveAll:vy.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)}}},Oy={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return kv(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Ty={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}for(t=o-1,r++;++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,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),a++,i):(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)):kv(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||kv(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}},Ry={42:Hv,43:Hv,45:Hv,48:Hv,49:Hv,50:Hv,51:Hv,52:Hv,53:Hv,54:Hv,55:Hv,56:Hv,57:Hv,62:Uv},My={91:Jv},Ay={[-2]:ey,[-1]:ey,32:ey},Ly={35:ny,42:Wv,45:[ry,Wv],60:iy,61:ry,95:Wv,96:uy,126:uy},jy={38:fy,92:my},$y={[-5]:hy,[-4]:hy,[-3]:hy,33:wy,38:fy,42:Sy,60:[Cy,Iy],91:Py,92:[Oy,my],93:vy,95:Sy,96:Ty},Ny={null:[Sy,Nv]},_y={null:[42,95]},Dy={null:[]};function zy(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={},a=[];let i=[],l=[],s=!0;const c={attempt:v(function(e,t){y(e,t.from)}),check:v(g),consume:function(e){kv(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e,s=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=m(),u.events.push(["enter",n,u]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=m(),u.events.push(["exit",t,u]),t},interrupt:v(g,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,b()},events:[],now:m,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if("string"==typeof a)i=a;else switch(a){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&o)continue;i=" ";break;default:i=String.fromCharCode(a)}o=-2===a,r.push(i)}return r.join("")}(f(e),t)},sliceStream:f,write:function(e){return i=iv(i,e),function(){let e;for(;r._index<i.length;){const t=i[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)}}(),null!==i[i.length-1]?[]:(y(t,0),u.events=gy(a,u.events,u),u.events)}};let d,p=t.tokenize.call(u,c);return t.resolveAll&&a.push(t),u;function f(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}(i,e)}function m(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:a}}function h(e){s=void 0,d=e,p=p(e)}function g(e,t){t.restore()}function v(e,t){return function(n,o,a){let i,d,p,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return function(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 i=e,d=0,0===e.length?a:g(e[d])}function g(e){return function(n){return f=function(){const e=m(),t=u.previous,n=u.currentConstruct,o=u.events.length,a=Array.from(l);return{from:o,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,l=a,b()}}}(),p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name)?y():e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,v,y)(n)}}function v(t){return s=!0,e(p,f),o}function y(e){return s=!0,f.restore(),++d<i.length?g(i[d]):a}}}function y(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&av(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function b(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Fy=/[\0\t\n\r]/g;function By(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)}const Wy=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Hy(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return By(n.slice(t?2:1),t?16:10)}return py(n)||e}const Vy={}.hasOwnProperty;function qy(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:o(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:o(h),blockQuote:o(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:o(m),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(m,a),codeText:o(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:o(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:o(g),hardBreakTrailing:o(g),htmlFlow:o(v,a),htmlFlowData:u,htmlText:o(v,a),htmlTextData:u,image:o(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:o(y),listItem:o(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:o(b),paragraph:o(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(h),strong:o(function(){return{type:"strong",children:[]}}),thematicBreak:o(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:l(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=By(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=py(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=Uy(e.end)},codeFenced:l(function(){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}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:l(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Qv(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(p),hardBreakTrailing:l(p),htmlFlow:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:l(function(){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}),label:function(){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},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Wy,Hy)}(t),n.identifier=Qv(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Uy(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:l(function(){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}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Qv(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};Ky(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let o={type:"root",children:[]};const l={stack:[o],tokenStack:[],config:t,enter:i,exit:s,buffer:a,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];Vy.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},l),e[d][1])}if(l.tokenStack.length>0){const e=l.tokenStack[l.tokenStack.length-1];(e[1]||Yy).call(l,void 0,e[0])}for(o.position={start:Uy(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Uy(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)o=t.transforms[d](o)||o;return o};function r(e,t,n){let r,o,a,i,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--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||s||a||(a=l),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=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 i=l;for(o=void 0;i--;){const t=e[i];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=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!o||a<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++,a=void 0,i=!0}}}return e[t][1]._spread=c,n}function o(e,t){return function(n){i.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function i(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:Uy(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+jg({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Yy).call(this,e,r[0])),n.position.end=Uy(e.end)}function c(){return nv(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Uy(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Uy(e.end)}function p(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function v(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!cv(e););return e}(function(e){const t={constructs:pv([o,...(e||{}).extensions||[]]),content:n(Tv),defined:[],document:n(Rv),flow:n($v),lazy:{},string:n(_v),text:n(Dv)};return t;function n(e){return function(n){return zy(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,a,i){const l=[];let s,c,u,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(a||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(Fy.lastIndex=u,s=Fy.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 i&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function Uy(e){return{line:e.line,column:e.column,offset:e.offset}}function Ky(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ky(e,r):Gy(e,r)}}function Gy(e,t){let n;for(n in t)if(Vy.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 Yy(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+jg({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+jg({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+jg({start:t.start,end:t.end})+") is still open")}function Xy(e){const t=this;t.parser=function(n){return qy(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Qy="object"==typeof self?self:globalThis,Jy=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[a,i]=t[o];switch(a){case 0:case-1:return n(i,o);case 1:{const e=n([],o);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),o);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new Qy[e](t),o)}case 8:return n(BigInt(i),o);case"BigInt":return n(Object(BigInt(i)),o);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new Qy[a](i),o)};return r})(new Map,e)(0),Zy="",{toString:eb}={},{keys:tb}=Object,nb=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=eb.call(e).slice(8,-1);switch(n){case"Array":return[1,Zy];case"Object":return[2,Zy];case"Date":return[3,Zy];case"RegExp":return[4,Zy];case"Map":return[5,Zy];case"Set":return[6,Zy];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},rb=([e,t])=>0===e&&("function"===t||"symbol"===t),ob=(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},a=r=>{if(n.has(r))return n.get(r);let[i,l]=nb(r);switch(i){case 0:{let t=r;switch(l){case"bigint":i=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([i,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([i,e],r);for(const t of r)e.push(a(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 a(r.toJSON());const n=[],s=o([i,n],r);for(const t of tb(r))!e&&rb(nb(r[t]))||n.push([a(t),a(r[t])]);return s}case 3:return o([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([i,{source:e,flags:t}],r)}case 5:{const t=[],n=o([i,t],r);for(const[n,o]of r)(e||!rb(nb(n))&&!rb(nb(o)))&&t.push([a(n),a(o)]);return n}case 6:{const t=[],n=o([i,t],r);for(const n of r)!e&&rb(nb(n))||t.push(a(n));return n}}const{message:s}=r;return o([i,{name:l,message:s}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},ab="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Jy(ob(e,t)):structuredClone(e):(e,t)=>Jy(ob(e,t));function ib(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(37===a&&gv(e.charCodeAt(n+1))&&gv(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(i=String.fromCharCode(a,t),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function lb(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 sb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const cb=function(e){if(null==e)return db;if("function"==typeof e)return ub(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=cb(e[n]);return ub(function(...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 ub(function(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 t=e,ub(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function ub(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 db(){return!0}const pb=[],fb=!1;function mb(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const a=cb(o),i=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=pb;if((!t||a(o,l,s[s.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:null==e?pb:[e]}(n(o,s)),p[0]===fb))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+i,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===fb)return c;u="number"==typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function hb(e,t,n,r){let o,a,i;"function"==typeof t&&"function"!=typeof n?(a=void 0,i=t,o=n):(a=t,i=n,o=r),mb(e,a,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},o)}function gb(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),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});const i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function vb(e){const t=e.spread;return null==t?e.children.length>1:t}function yb(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(bb(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(bb(t.slice(o),o>0,!1)),a.join("")}function bb(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 xb={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=ib(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let i,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=a+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(i)}]};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 gb(e,t);const o={src:ib(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const n={src:ib(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 gb(e,t);const o={href:ib(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const n={href:ib(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=vb(n[r])}return t}(n):vb(t),a={},i=[];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:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?i.push(e):i.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:i};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 a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},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)},a=Ag(t.children[1]),i=Mg(t.children[t.children.length-1]);a&&i&&(r.position={start:a,end:i}),o.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)},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",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length;let l=-1;const s=[];for(;++l<i;){const n=t.children[l],r={},i=a?a[l]:void 0;i&&(r.align=i);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:yb(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:wb,yaml:wb,definition:wb,footnoteDefinition:wb};function wb(){}const kb={}.hasOwnProperty,Sb={};function Eb(e,t){e.position&&(t.position=function(e){const t=Ag(e),n=Mg(e);if(t&&n)return{start:t,end:n}}(e))}function Cb(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,ab(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Ib(e,t){const n=t.data||{},r=!("value"in t)||kb.call(n,"hProperties")||kb.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 Pb(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 Ob(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Tb(e,t){const n=function(e,t){const n=t||Sb,r=new Map,o=new Map,a=new Map,i={...xb,...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=Ob(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Ob(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Cb,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=l.handlers[n];if(kb.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=ab(n);return r.children=l.all(e),r}return ab(e)}return(l.options.unknownHandler||Ib)(l,e,t)},options:n,patch:Eb,wrap:Pb};return hb(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||lb,r=e.options.footnoteBackLabel||sb,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=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 a=e.all(o),i=String(o.identifier).toUpperCase(),c=ib(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);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=a[a.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 a.push(...d);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(o,m),l.push(m)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...ab(i),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),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:"\n"},o),a}function Rb(e,t){return e&&"run"in e?async function(n,r){const o=Tb(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Tb(n,{file:r,...e||t})}}function Mb(e){if(e)throw e}var Ab=n(849);function Lb(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)}const jb=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');zb(e);let n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,l=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(o=a):(l=-1,o=i));return r===o?o=i:o<0&&(o=e.length),e.slice(r,o)},$b=function(e){if(zb(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)},Nb=function(e){zb(e);let t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}return a<0||r<0||0===i||1===i&&a===r-1&&a===o+1?"":e.slice(a,r)},_b=function(...e){let t,n=-1;for(;++n<e.length;)zb(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){zb(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",a=0,i=-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(i===s-1||1===l);else if(i!==s-1&&2===l){if(o.length<2||2!==a||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="",a=0):(o=o.slice(0,r),a=o.length-1-o.lastIndexOf("/")),i=s,l=0;continue}}else if(o.length>0){o="",a=0,i=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),a=s-i-1;i=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},Db="/";function zb(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Fb=function(){return"/"};function Bb(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const Wb=["history","path","basename","stem","extname","dirname"];class Hb{constructor(e){let t;t=e?Bb(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?"":Fb(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Wb.length;){const e=Wb[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Wb.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?jb(this.path):void 0}set basename(e){qb(e,"basename"),Vb(e,"basename"),this.path=_b(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?$b(this.path):void 0}set dirname(e){Ub(this.basename,"dirname"),this.path=_b(e||"",this.basename)}get extname(){return"string"==typeof this.path?Nb(this.path):void 0}set extname(e){if(Vb(e,"extname"),Ub(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=_b(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Bb(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!Bb(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)}(e)),qb(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?jb(this.path,this.extname):void 0}set stem(e){qb(e,"stem"),Vb(e,"stem"),this.path=_b(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 Dg(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){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Vb(e,t){if(e&&e.includes(Db))throw new Error("`"+t+"` cannot be a path: did not expect `"+Db+"`")}function qb(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ub(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Kb=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Gb={}.hasOwnProperty;class Yb extends Kb{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=function(){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(a,...i){const l=e[++n];let s=-1;if(a)r(a);else{for(;++s<t.length;)null!==i[s]&&void 0!==i[s]||(i[s]=t[s]);t=i,l?function(e,t){let n;return function(...t){const a=e.length>t.length;let i;a&&t.push(r);try{i=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(i&&i.then&&"function"==typeof i.then?i.then(o,r):i instanceof Error?r(i):o(i))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(l,o)(...i):r(null,...i)}}(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}()}copy(){const e=new Yb;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Ab(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Zb("data",this.frozen),this.namespace[e]=t,this):Gb.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Zb("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=nx(e),n=this.parser||this.Parser;return Qb("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Qb("process",this.parser||this.Parser),Jb("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const a=nx(e),i=n.parse(a);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(i,a,function(e,t,r){if(e||!t||!r)return l(e);const o=t,a=n.stringify(o,r);var i;"string"==typeof(i=a)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=a:r.result=a,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Qb("processSync",this.parser||this.Parser),Jb("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Mb(e),t=r}),tx("processSync","process",n),t}run(e,t,n){ex(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,a){const i=nx(t);r.run(e,i,function(t,r,i){const l=r||e;t?a(t):o?o(l):n(void 0,l,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Mb(e),n=t,r=!0}),tx("runSync","run",r),n}stringify(e,t){this.freeze();const n=nx(t),r=this.compiler||this.Compiler;return Jb("stringify",r),ex(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Zb("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)?i(e):a(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 a(e)}}function a(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");i(e.plugins),e.settings&&(r.settings=Ab(!0,r.settings,e.settings))}function i(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,...a]=t;const i=n[o][1];Lb(i)&&Lb(r)&&(r=Ab(!0,i,r)),n[o]=[e,r,...a]}}}}const Xb=(new Yb).freeze();function Qb(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Jb(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Zb(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 ex(e){if(!Lb(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function tx(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function nx(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Hb(e)}const rx=[],ox={allowDangerousHtml:!0},ax=/^(https?|ircs?|mailto|xmpp)$/i,ix=[{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:"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 lx(e){const t=function(e){const t=e.rehypePlugins||rx,n=e.remarkPlugins||rx,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ox}:ox;return Xb().use(Xy).use(n).use(Rb,r).use(t)}(e),n=function(e){const t=e.children||"",n=new Hb;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,a=t.disallowedElements,i=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||sx;for(const e of ix)Object.hasOwn(t,e.from)&&Vh((e.from,e.to&&e.to,e.id));return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]}),hb(e,function(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return i?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ev)if(Object.hasOwn(ev,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=ev[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=s(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&r&&"number"==typeof t&&(i=!r(e,t,o)),i&&o&&"number"==typeof t)return l&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}),function(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 function(n,r,o,a){const i=Array.isArray(o.children),l=Ag(n);return t(r,o,a,i,{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 function(e,r,o,a){const i=Array.isArray(o.children)?n:t;return a?i(r,o,a):i(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?Sg:kg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=qg(o,e,void 0);return a&&"string"!=typeof a?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}(e,{Fragment:Dc.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Dc.jsx,jsxs:Dc.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function sx(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||ax.test(e.slice(0,t))?e:""}function cx(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 ux(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 dx(e){return"function"==typeof e?e:function(){return e}}const px="phrasing",fx=["autolink","link","image","label"];function mx(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function hx(e){this.config.enter.autolinkProtocol.call(this,e)}function gx(e){this.config.exit.autolinkProtocol.call(this,e)}function vx(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 yx(e){this.config.exit.autolinkEmail.call(this,e)}function bx(e){this.exit(e)}function xx(e){!function(e,t,n){const r=cb((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([ux(e[0]),dx(e[1])])}return t}(t);let a=-1;for(;++a<o.length;)mb(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],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[a][0],i=o[a][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 a=i(...d,o);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(l!==n&&u.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),l=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(l<e.value.length&&u.push({type:"text",value:e.value.slice(l)}),n.children.splice(s,1,...u)):u=[e],s+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wx],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,kx]],{ignore:["link","linkReference"]})}function wx(e,t,n,r,o){let a="";if(!Sx(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const i=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=cx(e,"(");let a=cx(e,")");for(;-1!==r&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}(n+r);if(!i[0])return!1;const l={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function kx(e,t,n,r){return!(!Sx(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Sx(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Iv(n)||Cv(n))&&(!t||47!==n)}function Ex(){this.buffer()}function Cx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ix(){this.buffer()}function Px(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ox(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qv(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Tx(e){this.exit(e)}function Rx(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qv(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Mx(e){this.exit(e)}function Ax(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const i=n.enter("footnoteReference"),l=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),i(),a+=o.move("]"),a}function Lx(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const a=r.createTracker(o);let i=a.move("[^");const l=r.enter("footnoteDefinition"),s=r.enter("label");return i+=a.move(r.safe(r.associationId(e),{before:i,after:"]"})),s(),i+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),i+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?$x:jx))),l(),i},footnoteReference:Ax},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function jx(e,t,n){return 0===t?e:$x(e,0,n)}function $x(e,t,n){return(n?"":" ")+e}Ax.peek=function(){return"["};const Nx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function _x(e){this.enter({type:"delete",children:[]},e)}function Dx(e){this.exit(e)}function zx(e,t,n,r){const o=n.createTracker(r),a=n.enter("strikethrough");let i=o.move("~~");return i+=n.containerPhrasing(e,{...o.current(),before:i,after:"~"}),i+=o.move("~~"),a(),i}function Fx(e){return e.length}function Bx(e){return null==e?"":String(e)}function Wx(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 Hx(e,t,n){return">"+(n?"":" ")+e}function Vx(e,t){return qx(e,t.inConstruct,!0)&&!qx(e,t.notInConstruct,!1)}function qx(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 Ux(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&Vx(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function Kx(e,t,n){return(n?"":" ")+e}function Gx(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 Yx(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Xx(e,t,n){const r=ky(e),o=ky(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 Qx(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),a=n.enter("emphasis"),i=n.createTracker(r),l=i.move(o);let s=i.move(n.containerPhrasing(e,{after:o,before:l,...i.current()}));const c=s.charCodeAt(0),u=Xx(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Yx(c)+s.slice(1));const d=s.charCodeAt(s.length-1),p=Xx(r.after.charCodeAt(0),d,o);p.inside&&(s=s.slice(0,-1)+Yx(d));const f=i.move(o);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},l+s+f}function Jx(e){return e.value||""}function Zx(e,t,n,r){const o=Gx(n),a='"'===o?"Quote":"Apostrophe",i=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${a}`),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(")"),i(),c}function ew(e,t,n,r){const o=e.referenceType,a=n.enter("imageReference");let i=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+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return i(),n.stack=u,a(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function tw(e,t,n){let r=e.value||"",o="`",a=-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+" ");++a<n.unsafe.length;){const e=n.unsafe[a],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 nw(e,t){const n=nv(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 rw(e,t,n,r){const o=Gx(n),a='"'===o?"Quote":"Apostrophe",i=n.createTracker(r);let l,s;if(nw(e,n)){const t=n.stack;n.stack=[],l=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),l(),n.stack=t,r}l=n.enter("link"),s=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(s=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=i.move(" "+o),c+=i.move(n.safe(e.title,{before:c,after:o,...i.current()})),c+=i.move(o),s()),c+=i.move(")"),l(),c}function ow(e,t,n,r){const o=e.referenceType,a=n.enter("linkReference");let i=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+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return i(),n.stack=u,a(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function aw(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 iw(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}zx.peek=function(){return"~"},Qx.peek=function(e,t,n){return n.options.emphasis||"*"},Jx.peek=function(){return"<"},Zx.peek=function(){return"!"},ew.peek=function(){return"!"},tw.peek=function(){return"`"},rw.peek=function(e,t,n){return nw(e,n)?"<":"["},ow.peek=function(){return"["};const lw=cb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function sw(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),a=n.enter("strong"),i=n.createTracker(r),l=i.move(o+o);let s=i.move(n.containerPhrasing(e,{after:o,before:l,...i.current()}));const c=s.charCodeAt(0),u=Xx(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Yx(c)+s.slice(1));const d=s.charCodeAt(s.length-1),p=Xx(r.after.charCodeAt(0),d,o);p.inside&&(s=s.slice(0,-1)+Yx(d));const f=i.move(o+o);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},l+s+f}sw.peek=function(e,t,n){return n.options.strong||"*"};const cw={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const i=n.indentLines(n.containerFlow(e,a.current()),Hx);return o(),i},break:Ux,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),a=e.value||"",i="`"===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(a,Kx);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,a=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++a>i&&(i=a):a=1,o=r+t.length,r=n.indexOf(t,o);return i}(a,o)+1,3)),c=n.enter("codeFenced");let u=l.move(s);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...l.current()})),t()}return u+=l.move("\n"),a&&(u+=l.move(a+"\n")),u+=l.move(s),c(),u},definition:function(e,t,n,r){const o=Gx(n),a='"'===o?"Quote":"Apostrophe",i=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${a}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),i(),c},emphasis:Qx,hardBreak:Ux,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(function(e,t){let n=!1;return hb(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,fb}),Boolean((!e.depth||e.depth<3)&&nv(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...a.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===o?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(o),l=n.enter("headingAtx"),s=n.enter("phrasing");a.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...a.current()});return/^[\t ]/.test(c)&&(c=Yx(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),s(),l(),c},html:Jx,image:Zx,imageReference:ew,inlineCode:tw,link:rw,linkReference:ow,list:function(e,t,n,r){const o=n.enter("list"),a=n.bulletCurrent;let i=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):aw(n);const l=e.ordered?"."===i?")":".":function(e){const t=aw(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)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!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),iw(n)===i&&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&&(i=l),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=a,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 a=n.bulletCurrent||aw(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let i=a.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const l=n.createTracker(r);l.move(a+" ".repeat(i-a.length)),l.shift(i);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),function(e,t,n){return t?(n?"":" ".repeat(i))+e:(n?a:a+" ".repeat(i-a.length))+e});return s(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),a=n.enter("phrasing"),i=n.containerPhrasing(e,r);return a(),o(),i},root:function(e,t,n,r){return(e.children.some(function(e){return lw(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:sw,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(iw(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 uw(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 dw(e){this.exit(e),this.data.inTable=void 0}function pw(e){this.enter({type:"tableRow",children:[]},e)}function fw(e){this.exit(e)}function mw(e){this.enter({type:"tableCell",children:[]},e)}function hw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gw));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function gw(e,t){return"|"===t?t:e}function vw(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=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=cw.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const a=[],i=t.enter("table");for(;++o<r.length;)a[o]=s(r[o],t,n);return i(),a}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const o=l([s(e,n,r)]);return o.slice(0,o.indexOf("\n"))}}};function i(e,t,n,r){const o=n.enter("tableCell"),i=n.enter("phrasing"),l=n.containerPhrasing(e,{...r,before:a,after:a});return i(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Fx,a=[],i=[],l=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){const i=Bx(e[u][a]);if(!1!==n.alignDelimiters){const e=o(i);r[a]=e,(void 0===s[a]||e>s[a])&&(s[a]=e)}t.push(i)}i[u]=t,l[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)a[d]=Wx(r[d]);else{const e=Wx(r);for(;++d<c;)a[d]=e}d=-1;const p=[],f=[];for(;++d<c;){const e=a[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[d]-t.length-r.length);const i=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[d]&&(s[d]=o),f[d]=o),p[d]=i}i.splice(1,0,p),l.splice(1,0,f),u=-1;const m=[];for(;++u<i.length;){const e=i[u],t=l[u];d=-1;const r=[];for(;++d<c;){const o=e[d]||"";let i="",l="";if(!1!==n.alignDelimiters){const e=s[d]-(t[d]||0),n=a[d];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),l=i):l=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===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 a=[],l=t.enter("tableRow");for(;++o<r.length;)a[o]=i(r[o],0,t,n);return l(),a}}function yw(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function bw(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,a=-1;for(;++a<r.length;){const e=r[a];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 xw(e,t,n,r){const o=e.children[0],a="boolean"==typeof e.checked&&o&&"paragraph"===o.type,i="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);a&&l.move(i);let s=cw.listItem(e,t,n,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),s}const ww={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),o):n(a)};function o(e){return null===e?n(e):t(e)}},partial:!0},kw={tokenize:function(e,t,n){let r,o,a;return i;function i(t){return 46===t||95===t?e.check(Ew,s,l)(t):null===t||Sv(t)||Iv(t)||45!==t&&Cv(t)?s(t):(a=!0,e.consume(t),i)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),i}function s(e){return o||r||!a?n(e):t(e)}},partial:!0},Sw={tokenize:function(e,t){let n=0,r=0;return o;function o(i){return 40===i?(n++,e.consume(i),o):41===i&&r<n?a(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(Ew,t,a)(i):null===i||Sv(i)||Iv(i)?t(i):(e.consume(i),o)}function a(t){return 41===t&&r++,e.consume(t),o}},partial:!0},Ew={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),a):93===i?(e.consume(i),o):60===i||null===i||Sv(i)||Iv(i)?t(i):n(i)}function o(e){return null===e||40===e||91===e||Sv(e)||Iv(e)?t(e):r(e)}function a(e){return hv(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):hv(t)?(e.consume(t),i):n(t)}},partial:!0},Cw={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return gv(e)?n(e):t(e)}},partial:!0},Iw={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!Mw.call(r,r.previous)||$w(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ww,e.attempt(kw,e.attempt(Sw,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Mw},Pw={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",a=!1;return function(t){return 72!==t&&104!==t||!Aw.call(r,r.previous)||$w(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),i)};function i(t){if(hv(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),i;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),a?s:(a=!0,l)):n(t)}function s(t){return null===t||yv(t)||Sv(t)||Iv(t)||Cv(t)?n(t):e.attempt(kw,e.attempt(Sw,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Aw},Ow={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,a;return function(t){return jw(t)&&Lw.call(r,r.previous)&&!$w(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)):n(t)};function i(t){return jw(t)?(e.consume(t),i):64===t?(e.consume(t),l):n(t)}function l(t){return 46===t?e.check(Cw,c,s)(t):45===t||95===t||gv(t)?(a=!0,e.consume(t),l):c(t)}function s(t){return e.consume(t),o=!0,l}function c(i){return a&&o&&hv(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:Lw},Tw={};let Rw=48;for(;Rw<123;)Tw[Rw]=Ow,Rw++,58===Rw?Rw=65:91===Rw&&(Rw=97);function Mw(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Sv(e)}function Aw(e){return!hv(e)}function Lw(e){return!(47===e||jw(e))}function jw(e){return 43===e||45===e||46===e||95===e||gv(e)}function $w(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}Tw[43]=Ow,Tw[45]=Ow,Tw[46]=Ow,Tw[95]=Ow,Tw[72]=[Ow,Pw],Tw[104]=[Ow,Pw],Tw[87]=[Ow,Iw],Tw[119]=[Ow,Iw];const Nw={tokenize:function(e,t,n){const r=this;return Ov(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 _w(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!i||!i._balanced)return n(o);const l=Qv(r.sliceSerialize({start:i.end,end:r.now()}));return 94===l.codePointAt(0)&&a.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function Dw(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...s),e}function zw(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i=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(i>999||93===l&&!a||null===l||91===l||Sv(l))return n(l);if(93===l){e.exit("chunkString");const a=e.exit("gfmFootnoteCallString");return o.includes(Qv(r.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return Sv(l)||(a=!0),i++,e.consume(l),92===l?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,s):s(t)}}function Fw(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i,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&&!i||null===t||91===t||Sv(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return a=Qv(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Sv(t)||(i=!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(a)||o.push(a),Ov(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function Bw(e,t,n){return e.check(Av,t,e.attempt(Nw,t,n))}function Ww(e){e.exit("gfmFootnoteDefinition")}function Hw(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,a=this.events;let i=0;return function(t){return 126===o&&"characterEscape"!==a[a.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),l(t))};function l(a){const s=ky(o);if(126===a)return i>1?r(a):(e.consume(a),i++,l);if(i<2&&!t)return r(a);const c=e.exit("strikethroughSequenceTemporary"),u=ky(a);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(a)}},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)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],l=t.parser.constructs.insideSpan.null;l&&av(i,i.length,0,gy(l,e.slice(r+1,n),t)),av(i,i.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),av(e,r-1,n-r+3,i),n=r+i.length-2;break}}for(n=-1;++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 Vw{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0!==n||0!==r.length){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 qw(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 Uw(e,t,n){const r=this;let o,a=0,i=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,a="tableHead"===o||"tableRow"===o?x:l;return a===x&&r.parser.lazy[r.now().line]?n(e):a(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(o=!0,i+=1),s(e)}(t)}function s(t){return null===t?n(t):kv(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Ev(t)?Ov(e,s,"whitespace")(t):(i+=1,o&&(o=!1,a+=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||Sv(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,Ev(t)?Ov(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?m(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):b(t)}function f(t){return Ev(t)?Ov(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(i+=1,h(t)):null===t||kv(t)?y(t):b(t)}function h(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"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return Ev(t)?Ov(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||kv(n))&&o&&a===i?(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||kv(n)?(e.exit("tableRow"),t(n)):Ev(n)?Ov(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||Sv(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?S:k)}function S(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function Kw(e,t){let n,r,o,a=-1,i=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new Vw;for(;++a<e.length;){const f=e[a],m=f[1];"enter"===f[0]?"tableHead"===m.type?(u=!1,0!==d&&(Yw(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",n,t]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(i=!0,o=void 0,s=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",r,t]])),l="tableDelimiterRow"===m.type?2:r?3:1):!l||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type?"tableCellDivider"===m.type&&(i?i=!1:(0!==s[1]&&(c[0]=c[1],o=Gw(p,t,s,l,void 0,o)),s=c,c=[s[1],a,0,0])):(i=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],o=Gw(p,t,s,l,void 0,o),s=[0,0,0,0]),c[2]=a)):"tableHead"===m.type?(u=!0,d=a):"tableRow"===m.type||"tableDelimiterRow"===m.type?(d=a,0!==s[1]?(c[0]=c[1],o=Gw(p,t,s,l,a,o)):0!==c[1]&&(o=Gw(p,t,c,l,a,o)),l=0):!l||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type||(c[3]=a)}for(0!==d&&Yw(p,t,d,n,r),p.consume(t.events),a=-1;++a<t.events.length;){const e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=qw(t.events,a))}return e}function Gw(e,t,n,r,o,a){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(a.end=Object.assign({},Xw(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=Xw(t.events,n[1]);if(a={type:i,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){const o=Xw(t.events,n[2]),a=Xw(t.events,n[3]),i={type:"tableContent",start:Object.assign({},o),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",i,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",i,t]])}return void 0!==o&&(a.end=Object.assign({},Xw(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function Yw(e,t,n,r,o){const a=[],i=Xw(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function Xw(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Qw={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return Sv(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return kv(r)?t(r):Ev(r)?e.check({tokenize:Jw},t,n)(r):n(r)}}};function Jw(e,t,n){return Ov(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Zw={};function ek(e){const t=e||Zw,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return pv([{text:Tw},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Fw,continuation:{tokenize:Bw},exit:Ww}},text:{91:{name:"gfmFootnoteCall",tokenize:zw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_w,resolveTo:Dw}}},Hw(e),{flow:{null:{name:"table",tokenize:Uw,resolveAll:Kw}}},{text:{91:Qw}}])}(t)),o.push([{transforms:[xx],enter:{literalAutolink:mx,literalAutolinkEmail:hx,literalAutolinkHttp:hx,literalAutolinkWww:hx},exit:{literalAutolink:bx,literalAutolinkEmail:yx,literalAutolinkHttp:gx,literalAutolinkWww:vx}},{enter:{gfmFootnoteCallString:Ex,gfmFootnoteCall:Cx,gfmFootnoteDefinitionLabelString:Ix,gfmFootnoteDefinition:Px},exit:{gfmFootnoteCallString:Ox,gfmFootnoteCall:Tx,gfmFootnoteDefinitionLabelString:Rx,gfmFootnoteDefinition:Mx}},{canContainEols:["delete"],enter:{strikethrough:_x},exit:{strikethrough:Dx}},{enter:{table:uw,tableData:mw,tableHeader:mw,tableRow:pw},exit:{codeText:hw,table:dw,tableData:fw,tableHeader:fw,tableRow:fw}},{exit:{taskListCheckValueChecked:yw,taskListCheckValueUnchecked:yw,paragraph:bw}}]),a.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:px,notInConstruct:fx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:px,notInConstruct:fx},{character:":",before:"[ps]",after:"\\/",inConstruct:px,notInConstruct:fx}]},Lx(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Nx}],handlers:{delete:zx}},vw(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xw}}]}}(t))}const tk=Vs()(function(){return{main:{display:"flex",flexWrap:"wrap",alignItems:"initial",justifyContent:"space-evenly",height:"100%",minHeight:"600px",padding:"0 !important"}}}),nk=function(e){var t,n=e.testSuite,r=pt(),o=tk().classes,a=Fr().enqueueSnackbar,l=rc(function(e){return e.windowIsSmall}),s=rc(function(e){return e.smallWindowThreshold}),c=ft().test_suite_id,u=null==n||null===(t=n.suite_options)||void 0===t?void 0:t.map(function(e){return{id:e.id,value:e&&e.list_options?e.list_options[0].value:""}}),d=lc(i.useState(u||[]),2),p=d[0],f=d[1],m=lc(i.useState(""),2),h=m[0],g=m[1],v=lc(i.useState(!1),2),y=v[0],b=v[1],x=(0,i.useRef)(null);(0,i.useEffect)(function(){null!=n&&n.suite_summary||null!=n&&n.suite_options&&0!==(null==n?void 0:n.suite_options.length)?(b(!0),w()):k(null)},[]),(0,i.useEffect)(function(){w()},[l,x.current]);var w=function(){l?g("100%"):x.current&&g("".concat(s-(x.current.clientWidth||0),"px"))},k=function(){c&&Cu(c,null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:null).then(function(e){if(e&&e.test_suite){var t="/".concat(e.test_suite_id,"/").concat(e.id,"#").concat(e.test_suite_id);r(t);var n=Ys?"/".concat(Ys):window.location.origin;window.location.href="".concat(n).concat(t)}}).catch(function(e){a("Error while creating test session: ".concat(e.message),{variant:"error"})})};return y?i.createElement(Xc,{maxWidth:!1,role:"main",className:o.main,sx:l?{}:{flexDirection:"column",minHeight:"400px",maxHeight:"100vh",py:10}},i.createElement(Tu,{title:(null==n?void 0:n.title.toUpperCase())||"Suite Options",description:(null==n?void 0:n.short_description)||"Select options for the ".concat(null==n?void 0:n.title," Test Suite")}),i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:l?"100%":"50%",maxHeight:l?"unset":"100%",minHeight:l?"unset":"100%",overflow:"auto",px:l?0:8},i.createElement(nu,{display:"flex",alignItems:"center",maxWidth:h,maxHeight:l?"none":"100%",pt:3,sx:l?{mx:2}:{m:4}},i.createElement(Su,{variant:"h3",component:"h1",align:"center",sx:{color:Mh.palette.common.grayDark,fontSize:l?"2rem":"auto",fontWeight:"bolder",letterSpacing:2}},null==n?void 0:n.title.toUpperCase())),i.createElement(nu,{display:"flex",maxWidth:h,justifyContent:"center",overflow:"auto",px:2,mb:3},i.createElement(Su,{variant:"h6",component:"h2",sx:{wordBreak:"break-word"}},i.createElement(lx,{remarkPlugins:[ek]},(null==n?void 0:n.suite_summary)||(null==n?void 0:n.description)||"")))),i.createElement(nu,{display:"flex",height:l?"unset":"100%",width:l?"100%":"unset",maxWidth:l?"100%":"50%",justifyContent:"center",alignItems:"center",sx:{backgroundColor:Mh.palette.common.grayLight}},i.createElement(nu,{display:"flex",ref:x,justifyContent:"center",maxHeight:"100%",m:3},null!=n&&n.suite_options?i.createElement(Ph,{title:"Options",options:(null==n?void 0:n.suite_options)||[],setSelection:function(e){var t;t=e,Array.isArray(t)&&f(e)},showBackButton:!0,backTooltipText:"Back to Suites",submitAction:function(){return k(p)},submitText:"Start Testing"}):i.createElement(Bh,null)))):i.createElement(nu,{ref:x,width:"432px"})},rk={entering:{opacity:1},entered:{opacity:1}},ok=i.forwardRef(function(e,t){const n=gs(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:l,easing:s,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:v=r,TransitionComponent:y=fp,...b}=e,x=i.useRef(null),w=Fu(x,ap(l),t),k=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=k(p),E=k((e,t)=>{mp(e);const r=hp({style:g,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),C=k(d),I=k(h),P=k(e=>{const t=hp({style:g,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),O=k(m);return(0,Dc.jsx)(y,{appear:a,in:c,nodeRef:x,onEnter:E,onEntered:C,onEntering:S,onExit:P,onExited:O,onExiting:I,addEndListener:e=>{o&&o(x.current,e)},timeout:v,...b,children:(e,{ownerState:t,...n})=>i.cloneElement(l,{style:{opacity:0,visibility:"exited"!==e||c?void 0:"hidden",...rk[e],...g,...l.props.style},ref:w,...n})})}),ak=ok;function ik(e){return fc("MuiAlert",e)}const lk=Jc("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),sk=Jd((0,Dc.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ck=Jd((0,Dc.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),uk=Jd((0,Dc.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),dk=Jd((0,Dc.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),pk=Jd((0,Dc.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),fk=qc(Lu,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Wc(n.color||n.severity)}`]]}})(mu(({theme:e})=>{const t="light"===e.palette.mode?zi:Bi,n="light"===e.palette.mode?Bi:zi;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(hu(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${lk.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(hu(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${lk.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(hu(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),mk=qc("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hk=qc("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),gk=qc("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),vk={success:(0,Dc.jsx)(sk,{fontSize:"inherit"}),warning:(0,Dc.jsx)(ck,{fontSize:"inherit"}),error:(0,Dc.jsx)(uk,{fontSize:"inherit"}),info:(0,Dc.jsx)(dk,{fontSize:"inherit"})},yk=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAlert"}),{action:r,children:o,className:a,closeText:i="Close",color:l,components:s={},componentsProps:c={},icon:u,iconMapping:d=vk,onClose:p,role:f="alert",severity:m="success",slotProps:h={},slots:g={},variant:v="standard",...y}=n,b={...n,color:l,severity:m,variant:v,colorSeverity:l||m},x=(e=>{const{variant:t,color:n,severity:r,classes:o}=e;return mc({root:["root",`color${Wc(n||r)}`,`${t}${Wc(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},ik,o)})(b),w={slots:{closeButton:s.CloseButton,closeIcon:s.CloseIcon,...g},slotProps:{...c,...h}},[k,S]=Qf("root",{ref:t,shouldForwardComponentProp:!0,className:cc(x.root,a),elementType:fk,externalForwardedProps:{...w,...y},ownerState:b,additionalProps:{role:f,elevation:0}}),[E,C]=Qf("icon",{className:x.icon,elementType:mk,externalForwardedProps:w,ownerState:b}),[I,P]=Qf("message",{className:x.message,elementType:hk,externalForwardedProps:w,ownerState:b}),[O,T]=Qf("action",{className:x.action,elementType:gk,externalForwardedProps:w,ownerState:b}),[R,M]=Qf("closeButton",{elementType:Kd,externalForwardedProps:w,ownerState:b}),[A,L]=Qf("closeIcon",{elementType:pk,externalForwardedProps:w,ownerState:b});return(0,Dc.jsxs)(k,{...S,children:[!1!==u?(0,Dc.jsx)(E,{...C,children:u||d[m]||vk[m]}):null,(0,Dc.jsx)(I,{...P,children:o}),null!=r?(0,Dc.jsx)(O,{...T,children:r}):null,null==r&&p?(0,Dc.jsx)(O,{...T,children:(0,Dc.jsx)(R,{size:"small","aria-label":i,title:i,color:"inherit",onClick:p,...M,children:(0,Dc.jsx)(A,{fontSize:"small",...L})})}):null]})}),bk=yk;var xk=function(){var e,t=null===(e=document.getElementsByClassName("banner")[0])||void 0===e?void 0:e.clientHeight;return null==t?0:t};const wk=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},contentContainer:{overflowX:"hidden",overflow:"auto","@media print":{margin:0,position:"absolute",left:0,right:0,top:"51px"}},drawer:{display:"flex",flexGrow:1,overflow:"hidden","@media print":{display:"none"}},testSuiteMain:{display:"flex",flexGrow:1,overflow:"hidden",maxHeight:"calc(100vh - ".concat(xk(),"px)"),"@media print":{maxHeight:"unset"}},drawerPaper:{flexShrink:0,width:"300px",position:"static"},swipeableDrawerHeight:{marginTop:"".concat(xk(),"px"),height:"calc(100% - ".concat(xk(),"px)")},hidePrint:{"@media print":{display:"none"}}}}),kk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sk(e){const t=[],n=[];return Array.from(e.querySelectorAll(kk)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Ek(){return!0}const Ck=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Sk,isEnabled:l=Ek,open:s}=e,c=i.useRef(!1),u=i.useRef(null),d=i.useRef(null),p=i.useRef(null),f=i.useRef(null),m=i.useRef(!1),h=i.useRef(null),g=zu(ap(t),h),v=i.useRef(null);i.useEffect(()=>{s&&h.current&&(m.current=!n)},[n,s]),i.useEffect(()=>{if(!s||!h.current)return;const e=wp(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[s]),i.useEffect(()=>{if(!s||!h.current)return;const e=wp(h.current),t=t=>{v.current=t,!r&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=a(h.current)),n.length>0){const e=Boolean(v.current?.shiftKey&&"Tab"===v.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,l,s,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Dc.jsx)("div",{tabIndex:s?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})};function Ik(e){return fc("MuiBackdrop",e)}Jc("MuiBackdrop",["root","invisible"]);const Pk=qc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ok=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:a="div",invisible:i=!1,open:l,components:s={},componentsProps:c={},slotProps:u={},slots:d={},TransitionComponent:p,transitionDuration:f,...m}=n,h={...n,component:a,invisible:i},g=(e=>{const{classes:t,invisible:n}=e;return mc({root:["root",n&&"invisible"]},Ik,t)})(h),v={slots:{transition:p,root:s.Root,...d},slotProps:{...c,...u}},[y,b]=Qf("root",{elementType:Pk,externalForwardedProps:v,className:cc(g.root,o),ownerState:h}),[x,w]=Qf("transition",{elementType:ak,externalForwardedProps:v,ownerState:h});return(0,Dc.jsx)(x,{in:l,timeout:f,...m,...w,children:(0,Dc.jsx)(y,{"aria-hidden":!0,...b,classes:g,ref:t,children:r})})}),Tk=Ok;function Rk(e){return wp(e).defaultView||window}function Mk(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ak(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Lk(e){return parseInt(Rk(e).getComputedStyle(e).paddingRight,10)||0}function jk(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,e=>{const t=!a.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Ak(e,o)})}function $k(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}const Nk=()=>{},_k=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ak(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);jk(t,e.mount,e.modalRef,r,!0);const o=$k(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=$k(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=wp(e);return t.body===e?Rk(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Mk(Rk(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Lk(r)+e}px`;const t=wp(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Lk(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=wp(r).body;else{const t=r.parentElement,n=Rk(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=$k(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Ak(e.modalRef,t),jk(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Ak(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Dk(e){return fc("MuiModal",e)}Jc("MuiModal",["root","hidden","backdrop"]);const zk=qc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(mu(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),Fk=qc(Tk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Bk=i.forwardRef(function(e,t){const n=Gc({name:"MuiModal",props:e}),{BackdropComponent:r=Fk,BackdropProps:o,classes:a,className:l,closeAfterTransition:s=!1,children:c,container:u,component:d,components:p={},componentsProps:f={},disableAutoFocus:m=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:g=!1,disablePortal:v=!1,disableRestoreFocus:y=!1,disableScrollLock:b=!1,hideBackdrop:x=!1,keepMounted:w=!1,onBackdropClick:k,onClose:S,onTransitionEnter:E,onTransitionExited:C,open:I,slotProps:P={},slots:O={},theme:T,...R}=n,M={...n,closeAfterTransition:s,disableAutoFocus:m,disableEnforceFocus:h,disableEscapeKeyDown:g,disablePortal:v,disableRestoreFocus:y,disableScrollLock:b,hideBackdrop:x,keepMounted:w},{getRootProps:A,getBackdropProps:L,getTransitionProps:j,portalRef:$,isTopModal:N,exited:_,hasTransition:D}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=i.useRef({}),f=i.useRef(null),m=i.useRef(null),h=zu(m,d),[g,v]=i.useState(!u),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),w=()=>{_k.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},k=Wu(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||wp(f.current).body;_k.add(x(),e),m.current&&w()}),S=()=>_k.isTopModal(x()),E=Wu(e=>{f.current=e,e&&(u&&S()?w():m.current&&Ak(m.current,b))}),C=i.useCallback(()=>{_k.remove(x(),b)},[b]);i.useEffect(()=>()=>{C()},[C]),i.useEffect(()=>{u?k():y&&o||C()},[u,C,y,o,k]);const I=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&S()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},P=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=$f(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:I(r),ref:h}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:P(t),open:u}},getTransitionProps:()=>({onEnter:hh(()=>{v(!1),a&&a()},s?.props.onEnter??Nk),onExited:hh(()=>{v(!0),l&&l(),o&&C()},s?.props.onExited??Nk)}),rootRef:h,portalRef:E,isTopModal:S,exited:g,hasTransition:y}}({...M,rootRef:t}),z={...M,exited:_},F=(e=>{const{open:t,exited:n,classes:r}=e;return mc({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Dk,r)})(z),B={};if(void 0===c.props.tabIndex&&(B.tabIndex="-1"),D){const{onEnter:e,onExited:t}=j();B.onEnter=e,B.onExited=t}const W={slots:{root:p.Root,backdrop:p.Backdrop,...O},slotProps:{...f,...P}},[H,V]=Qf("root",{ref:t,elementType:zk,externalForwardedProps:{...W,...R,component:d},getSlotProps:A,ownerState:z,className:cc(l,F?.root,!z.open&&z.exited&&F?.hidden)}),[q,U]=Qf("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:W,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>L({...e,onClick:t=>{k&&k(t),e?.onClick&&e.onClick(t)}}),className:cc(o?.className,F?.backdrop),ownerState:z});return w||I||D&&!_?(0,Dc.jsx)(Bf,{ref:$,container:u,disablePortal:v,children:(0,Dc.jsxs)(H,{...V,children:[!x&&r?(0,Dc.jsx)(q,{...U}):null,(0,Dc.jsx)(Ck,{disableEnforceFocus:h,disableAutoFocus:m,disableRestoreFocus:y,isEnabled:N,open:I,children:i.cloneElement(c,B)})]})}):null}),Wk=Bk;function Hk(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}const Vk=Hk,qk=Rk;function Uk(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=qk(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const e=a.getComputedStyle(t);i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let l=0,s=0;if(i&&"none"!==i&&"string"==typeof i){const e=i.split("(")[1].split(")")[0].split(",");l=parseInt(e[4],10),s=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+l-r.left}px)`:`translateX(${a.innerWidth+l-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:"up"===e?o?`translateY(${o.bottom+s-r.top}px)`:`translateY(${a.innerHeight+s-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-s}px)`:`translateY(-${r.top+r.height-s}px)`}(e,t,"function"==typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Kk=i.forwardRef(function(e,t){const n=gs(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,container:c,direction:u="down",easing:d=r,in:p,onEnter:f,onEntered:m,onEntering:h,onExit:g,onExited:v,onExiting:y,style:b,timeout:x=o,TransitionComponent:w=fp,...k}=e,S=i.useRef(null),E=Fu(ap(s),S,t),C=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},I=C((e,t)=>{Uk(u,e,c),mp(e),f&&f(e,t)}),P=C((e,t)=>{const r=hp({timeout:x,style:b,easing:d},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",{...r}),e.style.transition=n.transitions.create("transform",{...r}),e.style.webkitTransform="none",e.style.transform="none",h&&h(e,t)}),O=C(m),T=C(y),R=C(e=>{const t=hp({timeout:x,style:b,easing:d},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),Uk(u,e,c),g&&g(e)}),M=C(e=>{e.style.webkitTransition="",e.style.transition="",v&&v(e)}),A=i.useCallback(()=>{S.current&&Uk(u,S.current,c)},[u,c]);return i.useEffect(()=>{if(p||"down"===u||"right"===u)return;const e=Vk(()=>{S.current&&Uk(u,S.current,c)}),t=qk(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[u,p,c]),i.useEffect(()=>{p||A()},[p,A]),(0,Dc.jsx)(w,{nodeRef:S,onEnter:I,onEntered:O,onEntering:P,onExit:R,onExited:M,onExiting:T,addEndListener:e=>{a&&a(S.current,e)},appear:l,in:p,timeout:x,...k,children:(e,{ownerState:t,...n})=>i.cloneElement(s,{ref:E,style:{visibility:"exited"!==e||p?void 0:"hidden",...b,...s.props.style},...n})})}),Gk=Kk;function Yk(e){return fc("MuiDrawer",e)}function Xk(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return n=>{const r="function"==typeof t?t(n):t,o="function"==typeof e?e({...n,...r}):e,a=cc(n?.className,r?.className,o?.className);return{...r,...o,...!!a&&{className:a},...r?.style&&o?.style&&{style:{...r.style,...o.style}},...r?.sx&&o?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const n=t,r=cc(n?.className,e?.className);return{...t,...e,...!!r&&{className:r},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}Jc("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Qk=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},Jk=qc(Wk,{name:"MuiDrawer",slot:"Root",overridesResolver:Qk})(mu(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Zk=qc("div",{shouldForwardProp:Vc,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Qk})({flex:"0 0 auto"}),eS=qc(Lu,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Wc(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${Wc(n.anchor)}`]]}})(mu(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:e})=>"left"===e.anchor&&"temporary"!==e.variant,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"top"===e.anchor&&"temporary"!==e.variant,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"right"===e.anchor&&"temporary"!==e.variant,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"bottom"===e.anchor&&"temporary"!==e.variant,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),tS={left:"right",right:"left",top:"down",bottom:"up"};function nS(e){return["left","right"].includes(e)}function rS({direction:e},t){return"rtl"===e&&nS(t)?tS[t]:t}const oS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDrawer"}),r=gs(),o=rp(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:s,children:c,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:f,...m}={},onClose:h,open:g=!1,PaperProps:v={},SlideProps:y,TransitionComponent:b,transitionDuration:x=a,variant:w="temporary",slots:k={},slotProps:S={},...E}=n,C=i.useRef(!1);i.useEffect(()=>{C.current=!0},[]);const I=rS({direction:o?"rtl":"ltr"},l),P=l,O={...n,anchor:P,elevation:d,open:g,variant:w,...E},T=(e=>{const{classes:t,anchor:n,variant:r}=e;return mc({root:["root",`anchor${Wc(n)}`],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Wc(n)}`,"temporary"!==r&&`paperAnchorDocked${Wc(n)}`]},Yk,t)})(O),R={slots:{transition:b,...k},slotProps:{paper:v,transition:y,...S,backdrop:Xk(S.backdrop||{...s,...f},{transitionDuration:x})}},[M,A]=Qf("root",{ref:t,elementType:Jk,className:cc(T.root,T.modal,u),shouldForwardComponentProp:!0,ownerState:O,externalForwardedProps:{...R,...E,...m},additionalProps:{open:g,onClose:h,hideBackdrop:p,slots:{backdrop:R.slots.backdrop},slotProps:{backdrop:R.slotProps.backdrop}}}),[L,j]=Qf("paper",{elementType:eS,shouldForwardComponentProp:!0,className:cc(T.paper,v.className),ownerState:O,externalForwardedProps:R,additionalProps:{elevation:"temporary"===w?d:0,square:!0}}),[$,N]=Qf("docked",{elementType:Zk,ref:t,className:cc(T.root,T.docked,u),ownerState:O,externalForwardedProps:R,additionalProps:E}),[_,D]=Qf("transition",{elementType:Gk,ownerState:O,externalForwardedProps:R,additionalProps:{in:g,direction:tS[I],timeout:x,appear:C.current}}),z=(0,Dc.jsx)(L,{...j,children:c});if("permanent"===w)return(0,Dc.jsx)($,{...N,children:z});const F=(0,Dc.jsx)(_,{...D,children:z});return"persistent"===w?(0,Dc.jsx)($,{...N,children:F}):(0,Dc.jsx)(M,{...A,children:F})}),aS=oS;function iS(e){return fc("MuiDivider",e)}const lS=Jc("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sS=qc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(mu(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:_i(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),cS=qc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(mu(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),uS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,orientation:i="horizontal",component:l=(o||"vertical"===i?"div":"hr"),flexItem:s=!1,light:c=!1,role:u=("hr"!==l?"separator":void 0),textAlign:d="center",variant:p="fullWidth",...f}=n,m={...n,absolute:r,component:l,flexItem:s,light:c,orientation:i,role:u,textAlign:d,variant:p},h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return mc({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},iS,r)})(m);return(0,Dc.jsx)(sS,{as:l,className:cc(h.root,a),role:u,ref:t,ownerState:m,"aria-orientation":"separator"!==u||"hr"===l&&"vertical"!==i?void 0:i,...f,children:o?(0,Dc.jsx)(cS,{className:h.wrapper,ownerState:m,children:o}):null})});uS&&(uS.muiSkipListHighlight=!0);const dS=uS,pS=Vs()(function(e){return{labelRoot:{display:"flex",flex:"1 1 auto",alignItems:"center",padding:e.spacing(.5,0)},labelText:{display:"inline"},optionalLabel:{display:"inline",fontStyle:"italic",alignSelf:"center",color:e.palette.common.gray,paddingLeft:"8px"},shortId:{display:"inline",fontWeight:"bold",alignSelf:"center",color:e.palette.common.grayDark},testSuiteTreePanel:{display:"flex",flexDirection:"column",width:"300px",flexGrow:1,overflow:"hidden"},testSuiteTree:{height:"100%",display:"flex",flexDirection:"column",overflowY:"auto"},treeRoot:{"& $labelText":{textTransform:"uppercase",fontWeight:"bold"},padding:"8px 20px !important"},treeItemTopBorder:{borderTop:"1px solid ".concat(e.palette.divider)},treeItemBottomBorder:{borderBottom:"1px solid ".concat(e.palette.divider)}}}),fS=function(){for(var e=wk().classes,t=pS().classes,n=rc(function(e){return e.windowIsSmall}),r=i.createElement(nu,{display:"flex",flexDirection:"row",alignItems:"center",mx:2,my:2},i.createElement(Fh,{variant:"circular",height:"14px",width:"16px"}),i.createElement(Fh,{height:10,width:200,sx:{ml:1}})),o=i.createElement(nu,{ml:3},r),a=[],l=0;l<3;l++)a.push(i.createElement("div",{key:l},r,o,o));return n?i.createElement(i.Fragment,null):i.createElement(aS,{variant:"permanent",anchor:"left",classes:{paper:e.drawerPaper},"data-testid":"drawerSkeleton"},i.createElement(Fh,{variant:"rounded",height:32,sx:{m:2}}),i.createElement(dS,null),i.createElement(nu,{className:t.testSuiteTreePanel,py:1},a))};function mS(e){return fc("MuiCard",e)}Jc("MuiCard",["root"]);const hS=qc(Lu,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),gS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiCard"}),{className:r,raised:o=!1,...a}=n,i={...n,raised:o},l=(e=>{const{classes:t}=e;return mc({root:["root"]},mS,t)})(i);return(0,Dc.jsx)(hS,{className:cc(l.root,r),elevation:o?8:void 0,ref:t,ownerState:i,...a})}),vS=gS,yS=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},currentItem:{fontWeight:600},shortId:{display:"inline",fontWeight:"bold",alignSelf:"center",color:e.palette.common.grayDark},testGroupCardHeader:{display:"flex",overflow:"auto",alignItems:"center",minHeight:"36.5px",padding:"8px 16px",backgroundColor:e.palette.common.blueLightest,"@media print":{padding:"0 8px"}},testGroupCardHeaderText:{flexGrow:1,padding:"0 8px"},testGroupCardHeaderButton:{minWidth:"fit-content","@media print":{display:"none"}},reportSummaryItems:{padding:"16px;",display:"flex",justifyContent:"space-around",textAlign:"center"},reportSummaryURL:{textAlign:"right",padding:"0 8px;",fontSize:"12px",wordBreak:"break-word"},alert:{marginBottom:"8px",alignItems:"center",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact","& .MuiAlert-message":{width:"100%"}},alertMessage:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1",overflow:"hidden",alignItems:"center",justifyContent:"space-between"},alertCursor:{"& :hover":{cursor:"pointer"}}}}),bS=function(){for(var e=yS().classes,t=rc(function(e){return e.windowIsSmall}),n=i.createElement(i.Fragment,null,i.createElement(dS,null),i.createElement(nu,{sx:{display:"flex",alignItems:"center",minHeight:"36.5px",px:2,py:1}},i.createElement(Fh,{variant:"circular",height:24,width:24}),i.createElement("span",{className:e.testGroupCardHeaderText},i.createElement(Fh,{height:20,width:240})))),r=[],o=0;o<3;o++)r.push(i.createElement("div",{key:o},n));return i.createElement(vS,{variant:"outlined",sx:{mb:3},"data-testid":"testSessionSkeleton"},i.createElement(nu,{className:e.testGroupCardHeader},i.createElement(Fh,{variant:"circular",height:24,width:24}),i.createElement("span",{className:e.testGroupCardHeaderText},i.createElement(Fh,{height:20,width:t?120:240})),i.createElement("span",{className:e.testGroupCardHeaderButton},i.createElement(Fh,{variant:"rounded",height:30,width:140}))),i.createElement(dS,null),i.createElement(nu,{m:2.5},i.createElement(Fh,{height:10,sx:{my:2}}),i.createElement(Fh,{height:10,width:"90%",sx:{my:2}}),i.createElement(Fh,{height:10,width:"95%",sx:{my:2}}),i.createElement(Fh,{height:10,sx:{my:2}}),i.createElement(Fh,{height:10,width:"90%",sx:{my:2}}),i.createElement(Fh,{height:10,width:"95%",sx:{my:2}}),i.createElement(Fh,{height:10,width:"50%",sx:{my:2}})),r)},xS=function(){var e=wk().classes,t=rc(function(e){return e.windowIsSmall});return i.createElement(nu,{className:e.testSuiteMain,"data-testid":"appSkeleton"},i.createElement(fS,null),i.createElement("main",{style:{overflow:"auto",width:"100%",backgroundColor:Bi(Mh.palette.common.grayLight,.5)}},i.createElement(nu,{className:e.contentContainer,p:t?1:4},i.createElement(bS,null))))};function wS(e){return fc("MuiLink",e)}const kS=Jc("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),SS=({theme:e,ownerState:t})=>{const n=t.color,r=ro(e,`palette.${n}.main`,!1)||ro(e,`palette.${n}`,!1)||t.color,o=ro(e,`palette.${n}.mainChannel`)||ro(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:_i(r,.4)},ES={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},CS=qc(Su,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Wc(n.underline)}`],"button"===n.component&&t.button]}})(mu(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:_i(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:_i(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:_i(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kS.focusVisible}`]:{outline:"auto"}}}]}))),IS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiLink"}),r=gs(),{className:o,color:a="primary",component:l="a",onBlur:s,onFocus:c,TypographyClasses:u,underline:d="always",variant:p="inherit",sx:f,...m}=n,[h,g]=i.useState(!1),v={...n,color:a,component:l,focusVisible:h,underline:d,variant:p},y=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return mc({root:["root",`underline${Wc(o)}`,"button"===n&&"button",r&&"focusVisible"]},wS,t)})(v);return(0,Dc.jsx)(CS,{color:a,className:cc(y.root,o),classes:u,component:l,onBlur:e=>{Du(e.target)||g(!1),s&&s(e)},onFocus:e=>{Du(e.target)&&g(!0),c&&c(e)},ref:t,ownerState:v,variant:p,...m,sx:[...void 0===ES[a]?[{color:a}]:[],...Array.isArray(f)?f:[f]],style:{...m.style,..."always"===d&&"inherit"!==a&&!ES[a]&&{"--Link-underlineColor":SS({theme:r,ownerState:v})}}})}),PS=IS,OS=wp;function TS(e){return fc("MuiList",e)}Jc("MuiList",["root","padding","dense","subheader"]);const RS=qc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),MS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:c,...u}=n,d=i.useMemo(()=>({dense:l}),[l]),p={...n,component:a,dense:l,disablePadding:s},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return mc({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},TS,t)})(p);return(0,Dc.jsx)(mm.Provider,{value:d,children:(0,Dc.jsxs)(RS,{as:a,className:cc(f.root,o),ref:t,ownerState:p,...u,children:[c,r]})})}),AS=MS,LS=Mk;function jS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $S(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function NS(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function _S(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&NS(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const DS=i.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=e,f=i.useRef(null),m=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fm(()=>{r&&f.current.focus()},[r]),i.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${LS(qk(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const h=Fu(f,t);let g=-1;i.Children.forEach(a,(e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))});const v=i.Children.map(a,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),i.cloneElement(e,t)}return e});return(0,Dc.jsx)(AS,{role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=OS(t).activeElement;if("ArrowDown"===n)e.preventDefault(),_S(t,r,c,s,jS);else if("ArrowUp"===n)e.preventDefault(),_S(t,r,c,s,$S);else if("Home"===n)e.preventDefault(),_S(t,null,c,s,jS);else if("End"===n)e.preventDefault(),_S(t,null,c,s,$S);else if(1===n.length){const o=m.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const l=r&&!o.repeating&&NS(r,o);o.previousKeyMatched&&(l||_S(t,r,!1,s,jS,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1,...p,children:v})}),zS=DS,FS=function(e){return"string"==typeof e};function BS(e){return fc("MuiPopover",e)}function WS(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function HS(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function VS(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function qS(e){return"function"==typeof e?e():e}Jc("MuiPopover",["root","paper"]);const US=qc(Wk,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KS=qc(Lu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),GS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:s="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:f=16,open:m,PaperProps:h={},slots:g={},slotProps:v={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:x="auto",TransitionProps:w={},disableScrollLock:k=!1,...S}=n,E=i.useRef(),C={...n,anchorOrigin:a,anchorReference:s,elevation:p,marginThreshold:f,transformOrigin:y,TransitionComponent:b,transitionDuration:x,TransitionProps:w},I=(e=>{const{classes:t}=e;return mc({root:["root"],paper:["paper"]},BS,t)})(C),P=i.useCallback(()=>{if("anchorPosition"===s)return l;const e=qS(o),t=(e&&1===e.nodeType?e:OS(E.current).body).getBoundingClientRect();return{top:t.top+WS(t,a.vertical),left:t.left+HS(t,a.horizontal)}},[o,a.horizontal,a.vertical,l,s]),O=i.useCallback(e=>({vertical:WS(e,y.vertical),horizontal:HS(e,y.horizontal)}),[y.horizontal,y.vertical]),T=i.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if("none"===s)return{top:null,left:null,transformOrigin:VS(n)};const r=P();let a=r.top-n.vertical,i=r.left-n.horizontal;const l=a+t.height,c=i+t.width,u=qk(qS(o)),d=u.innerHeight-f,p=u.innerWidth-f;if(null!==f&&a<f){const e=a-f;a-=e,n.vertical+=e}else if(null!==f&&l>d){const e=l-d;a-=e,n.vertical+=e}if(null!==f&&i<f){const e=i-f;i-=e,n.horizontal+=e}else if(c>p){const e=c-p;i-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(i)}px`,transformOrigin:VS(n)}},[o,s,P,O,f]),[R,M]=i.useState(m),A=i.useCallback(()=>{const e=E.current;if(!e)return;const t=T(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)},[T]);i.useEffect(()=>(k&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[o,k,A]),i.useEffect(()=>{m&&A()}),i.useImperativeHandle(r,()=>m?{updatePosition:()=>{A()}}:null,[m,A]),i.useEffect(()=>{if(!m)return;const e=Vk(()=>{A()}),t=qk(qS(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,m,A]);let L=x;const j={slots:{transition:b,...g},slotProps:{transition:w,paper:h,...v}},[$,N]=Qf("transition",{elementType:xp,externalForwardedProps:j,ownerState:C,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),M(!1)}}),additionalProps:{appear:!0,in:m}});"auto"!==x||$.muiSupportAuto||(L=void 0);const _=d||(o?OS(qS(o)).body:void 0),[D,{slots:z,slotProps:F,...B}]=Qf("root",{ref:t,elementType:US,externalForwardedProps:{...j,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:Xk("function"==typeof v.backdrop?v.backdrop(C):v.backdrop,{invisible:!0})},container:_,open:m},ownerState:C,className:cc(I.root,u)}),[W,H]=Qf("paper",{ref:E,className:I.paper,elementType:KS,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:R?void 0:{opacity:0}},ownerState:C});return(0,Dc.jsx)(D,{...B,...!FS(D)&&{slots:z,slotProps:F,disableScrollLock:k},children:(0,Dc.jsx)($,{...N,timeout:L,children:(0,Dc.jsx)(W,{...H,children:c})})})}),YS=GS;function XS(e){return fc("MuiMenu",e)}Jc("MuiMenu",["root","paper","list"]);const QS={vertical:"top",horizontal:"right"},JS={vertical:"top",horizontal:"left"},ZS=qc(YS,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eE=qc(KS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tE=qc(zS,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:l=!1,MenuListProps:s={},onClose:c,open:u,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:m,...h}={},variant:g="selectedMenu",slots:v={},slotProps:y={},...b}=n,x=rp(),w={...n,autoFocus:r,disableAutoFocusItem:l,MenuListProps:s,onEntering:m,PaperProps:d,transitionDuration:f,TransitionProps:h,variant:g},k=(e=>{const{classes:t}=e;return mc({root:["root"],paper:["paper"],list:["list"]},XS,t)})(w),S=r&&!l&&u,E=i.useRef(null);let C=-1;i.Children.map(o,(e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===C)&&(C=t))});const I={slots:v,slotProps:{list:s,transition:h,paper:d,...y}},P=zf({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[k.root,a]}),[O,T]=Qf("paper",{className:k.paper,elementType:eE,externalForwardedProps:I,shouldForwardComponentProp:!0,ownerState:w}),[R,M]=Qf("list",{className:cc(k.list,s.className),elementType:tE,shouldForwardComponentProp:!0,externalForwardedProps:I,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:w}),A="function"==typeof I.slotProps.transition?I.slotProps.transition(w):I.slotProps.transition;return(0,Dc.jsx)(ZS,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?QS:JS,slots:{root:v.root,paper:O,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:P,paper:T,backdrop:"function"==typeof y.backdrop?y.backdrop(w):y.backdrop,transition:{...A,onEntering:(...e)=>{((e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,{direction:x?"rtl":"ltr"}),m&&m(e,t)})(...e),A?.onEntering?.(...e)}}},open:u,ref:t,transitionDuration:f,ownerState:w,...b,classes:p,children:(0,Dc.jsx)(R,{actions:E,autoFocus:r&&(-1===C||l),autoFocusItem:S,variant:g,...M,children:o})})}),rE=nE;function oE(e){return fc("MuiListItemIcon",e)}const aE=Jc("MuiListItemIcon",["root","alignItemsFlexStart"]);function iE(e){return fc("MuiMenuItem",e)}const lE=Jc("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sE=qc(bd,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(mu(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lE.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${lE.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${lE.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lE.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${lS.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${lS.inset}`]:{marginLeft:52},[`& .${wm.root}`]:{marginTop:0,marginBottom:0},[`& .${wm.inset}`]:{paddingLeft:36},[`& .${aE.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${aE.root} svg`]:{fontSize:"1.25rem"}}}]}))),cE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...f}=n,m=i.useContext(mm),h=i.useMemo(()=>({dense:a||m.dense||!1,disableGutters:s}),[m.dense,a,s]),g=i.useRef(null);fm(()=>{r&&g.current&&g.current.focus()},[r]);const v={...n,dense:h.dense,divider:l,disableGutters:s},y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=mc({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},iE,i);return{...i,...l}})(n),b=Fu(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),(0,Dc.jsx)(mm.Provider,{value:h,children:(0,Dc.jsx)(sE,{ref:b,role:u,tabIndex:x,component:o,focusVisibleClassName:cc(y.focusVisible,c),className:cc(y.root,p),...f,ownerState:v,classes:y})})}),uE=cE,dE=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),pE=Vs()(function(e){return{footer:{display:"flex",width:"100%",overflow:"auto",borderTop:"1px ".concat(e.palette.divider," solid"),bottom:0,"@media print":{display:"none"}},logo:{objectFit:"contain",height:"2.5em",padding:"0 8px 0 0"},mobileLogo:{objectFit:"contain",height:"1.7em",padding:"4px 8px 0 0"},logoText:{fontStyle:"italic",textTransform:"uppercase",width:"max-content"},link:{fontWeight:"bolder",width:"max-content"}}}),fE=function(e){var t=e.version,n=e.linkList,r=pE().classes,o=rc(function(e){return e.footerHeight}),a=rc(function(e){return e.windowIsSmall}),l=lc(i.useState(null),2),s=l[0],c=l[1],u=lc(i.useState(!1),2),d=u[0],p=u[1],f=function(){var e=window.location.host,t="".concat(e,"/").concat(Ys),n=window.location.protocol;return i.createElement(nu,{display:"flex"},i.createElement(PS,{href:"".concat("https://inferno-framework.github.io/inferno-core/api-docs/","?scheme=").concat(n,"&host=").concat(t),target:"_blank",rel:"noreferrer",color:"secondary.dark",className:r.link,sx:{fontSize:a?"0.7rem":"0.9rem"}},"API"))},m=function(e){return i.createElement(PS,{href:e.url,target:"_blank",rel:"noreferrer",color:"secondary.dark",className:r.link,style:a?{fontSize:"0.8rem"}:{fontSize:"1.1rem",margin:"0 16px"}},e.label)};return i.createElement("footer",{className:r.footer,style:{minHeight:"".concat(o,"px"),maxHeight:"".concat(o,"px")}},i.createElement(nu,{display:"flex",flexDirection:"row",justifyContent:"space-between",overflow:"auto",width:"100%"},i.createElement(nu,{display:"flex",alignItems:"center",px:2},i.createElement(PS,{href:"https://inferno-framework.github.io/",target:"_blank",rel:"noreferrer","aria-label":"Inferno"},i.createElement("img",{src:Qs(Ou),alt:"Inferno logo - documentation",className:a?r.mobileLogo:r.logo})),t?i.createElement(nu,{display:"flex",flexDirection:"column"},!a&&i.createElement(Su,{className:r.logoText,sx:{fontSize:"0.7rem"}},"Built with"),i.createElement(nu,{display:"flex",flexDirection:"row",alignItems:"center"},i.createElement(nu,null,i.createElement(Su,{className:r.logoText,sx:{fontSize:a?"0.7rem":"0.9rem"}},"v.".concat(t))),i.createElement(dS,{flexItem:!0,orientation:"vertical",sx:{margin:"4px 8px"}}),f())):f()),a?function(){if(n&&0!==n.length)return i.createElement(nu,{display:"flex",alignItems:"center","data-testid":"footer-links"},i.createElement(Kd,{"aria-label":"links",size:"small",color:"secondary",onClick:function(e){c(s?null:e.currentTarget),p(!d)}},i.createElement(dE,{fontSize:"inherit"})),n&&d&&i.createElement(rE,{anchorEl:s,open:d,MenuListProps:{dense:!0},onClose:function(){p(!1),c(null)}},n.map(function(e){return i.createElement(uE,{key:e.url},m(e))})))}():function(){if(n&&0!==n.length)return i.createElement(nu,{display:"flex",alignItems:"center",p:2,"data-testid":"footer-links"},n&&n.map(function(e,t){return i.createElement(i.Fragment,{key:e.url},m(e),t!==n.length-1&&i.createElement(dS,{orientation:"vertical",flexItem:!0}))}))}()))},mE=function(){var e=pE().classes,t=rc(function(e){return e.footerHeight}),n=rc(function(e){return e.windowIsSmall});return i.createElement("footer",{className:e.footer,style:{minHeight:"".concat(t,"px"),maxHeight:"".concat(t,"px"),backgroundColor:"white"},"data-testid":"footerSkeleton"},i.createElement(nu,{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},i.createElement(nu,{display:"flex",alignItems:"center",px:2},n?i.createElement(Fh,{variant:"rectangular",height:22,width:80,sx:{mr:1}}):i.createElement(Fh,{variant:"rectangular",height:40,width:100,style:{marginRight:"16px"}}),i.createElement(nu,{display:"flex",flexDirection:"column"},!n&&i.createElement(Fh,{height:10,width:60}),i.createElement(Fh,{height:20,width:100}))),i.createElement(nu,{display:"flex",alignItems:"center",pr:n?1:3,py:2},n?i.createElement(Fh,{variant:"circular",height:20,width:20}):i.createElement(Fh,{variant:"rounded",height:24,width:200}))))};function hE(e){return fc("MuiAppBar",e)}Jc("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const gE=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,vE=qc(Lu,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Wc(n.position)}`],t[`color${Wc(n.color)}`]]}})(mu(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(hu(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:e=>!0===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>!1===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?gE(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?gE(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),yE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAppBar"}),{className:r,color:o="primary",enableColorOnDark:a=!1,position:i="fixed",...l}=n,s={...n,color:o,position:i,enableColorOnDark:a},c=(e=>{const{color:t,position:n,classes:r}=e;return mc({root:["root",`color${Wc(t)}`,`position${Wc(n)}`]},hE,r)})(s);return(0,Dc.jsx)(vE,{square:!0,component:"header",ownerState:s,elevation:4,className:cc(c.root,r,"fixed"===i&&"mui-fixed"),ref:t,...l})}),bE=yE;function xE(e){return fc("MuiToolbar",e)}Jc("MuiToolbar",["root","gutters","regular","dense"]);const wE=qc("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(mu(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),kE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:a=!1,variant:i="regular",...l}=n,s={...n,component:o,disableGutters:a,variant:i},c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return mc({root:["root",!n&&"gutters",r]},xE,t)})(s);return(0,Dc.jsx)(wE,{as:o,className:cc(c.root,r),ref:t,ownerState:s,...l})}),SE=kE,EE=Jd((0,Dc.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function CE(e){return fc("MuiAvatar",e)}Jc("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const IE=qc("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(mu(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),PE=qc("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),OE=qc(EE,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),TE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAvatar"}),{alt:r,children:o,className:a,component:l="div",slots:s={},slotProps:c={},imgProps:u,sizes:d,src:p,srcSet:f,variant:m="circular",...h}=n;let g=null;const v={...n,component:l,variant:m},y=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=i.useState(!1);return i.useEffect(()=>{if(!n&&!r)return;a(!1);let o=!0;const i=new Image;return i.onload=()=>{o&&a("loaded")},i.onerror=()=>{o&&a("error")},i.crossOrigin=e,i.referrerPolicy=t,i.src=n,r&&(i.srcset=r),()=>{o=!1}},[e,t,n,r]),o}({...u,..."function"==typeof c.img?c.img(v):c.img,src:p,srcSet:f}),b=p||f,x=b&&"error"!==y;v.colorDefault=!x,delete v.ownerState;const w=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return mc({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},CE,t)})(v),[k,S]=Qf("img",{className:w.img,elementType:PE,externalForwardedProps:{slots:s,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:r,src:p,srcSet:f,sizes:d},ownerState:v});return g=x?(0,Dc.jsx)(k,{...S}):o||0===o?o:b&&r?r[0]:(0,Dc.jsx)(OE,{ownerState:v,className:w.fallback}),(0,Dc.jsx)(IE,{as:l,className:cc(w.root,a),ref:t,...h,ownerState:v,children:g})}),RE=TE,ME=Jd((0,Dc.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),AE=Jd((0,Dc.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3zm-3-7V3.5L18.5 9z"}),"NoteAdd"),LE=Vs()(function(e){return{appbar:{zIndex:"".concat(e.zIndex.drawer+1," !important"),position:"sticky","@media print":{display:"none"}},toolbar:{display:"flex",height:"100%",maxWidth:"100vw",overflow:"hidden",justifyContent:"space-between",alignItems:"center"},logo:{objectFit:"contain",height:"2.75em",paddingRight:"8px"},title:{padding:"0 8px",whiteSpace:"nowrap"},version:{fontStyle:"italic"},homeLink:{color:e.palette.common.grayDark,fontWeight:600,textDecoration:"none"},textButton:{fontWeight:"bolder",cursor:"pointer"}}}),jE="public/a5cd39450ab0336db73c5e57228b649d.png";function $E(e){return fc("MuiDialog",e)}const NE=Jc("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_E=i.createContext({}),DE=qc(Tk,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),zE=qc(Wk,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),FE=qc("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Wc(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),BE=qc(Lu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Wc(n.scroll)}`],t[`paperWidth${Wc(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(mu(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${NE.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${NE.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${NE.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),WE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDialog"}),r=gs(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":s=!0,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:m=!1,fullWidth:h=!1,maxWidth:g="sm",onBackdropClick:v,onClick:y,onClose:b,open:x,PaperComponent:w=Lu,PaperProps:k={},scroll:S="paper",slots:E={},slotProps:C={},TransitionComponent:I=ak,transitionDuration:P=o,TransitionProps:O,...T}=n,R={...n,disableEscapeKeyDown:f,fullScreen:m,fullWidth:h,maxWidth:g,scroll:S},M=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e;return mc({root:["root"],container:["container",`scroll${Wc(n)}`],paper:["paper",`paperScroll${Wc(n)}`,`paperWidth${Wc(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]},$E,t)})(R),A=i.useRef(),L=Nu(l),j=i.useMemo(()=>({titleId:L}),[L]),$={slots:{transition:I,...E},slotProps:{transition:O,paper:k,backdrop:u,...C}},[N,_]=Qf("root",{elementType:zE,shouldForwardComponentProp:!0,externalForwardedProps:$,ownerState:R,className:cc(M.root,p),ref:t}),[D,z]=Qf("backdrop",{elementType:DE,shouldForwardComponentProp:!0,externalForwardedProps:$,ownerState:R}),[F,B]=Qf("paper",{elementType:BE,shouldForwardComponentProp:!0,externalForwardedProps:$,ownerState:R,className:cc(M.paper,k.className)}),[W,H]=Qf("container",{elementType:FE,externalForwardedProps:$,ownerState:R,className:cc(M.container)}),[V,q]=Qf("transition",{elementType:ak,externalForwardedProps:$,ownerState:R,additionalProps:{appear:!0,in:x,timeout:P,role:"presentation"}});return(0,Dc.jsx)(N,{closeAfterTransition:!0,slots:{backdrop:D},slotProps:{backdrop:{transitionDuration:P,as:c,...z}},disableEscapeKeyDown:f,onClose:b,open:x,onClick:e=>{y&&y(e),A.current&&(A.current=null,v&&v(e),b&&b(e,"backdropClick"))},..._,...T,children:(0,Dc.jsx)(V,{...q,children:(0,Dc.jsx)(W,{onMouseDown:e=>{A.current=e.target===e.currentTarget},...H,children:(0,Dc.jsx)(F,{as:w,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":L,"aria-modal":s,...B,children:(0,Dc.jsx)(_E.Provider,{value:j,children:d})})})})})}),HE=WE;function VE(e){return fc("MuiDialogTitle",e)}const qE=Jc("MuiDialogTitle",["root"]),UE=qc(Su,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),KE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDialogTitle"}),{className:r,id:o,...a}=n,l=n,s=(e=>{const{classes:t}=e;return mc({root:["root"]},VE,t)})(l),{titleId:c=o}=i.useContext(_E);return(0,Dc.jsx)(UE,{component:"h2",className:cc(s.root,r),ownerState:l,ref:t,variant:"h6",id:o??c,...a})}),GE=KE;function YE(e){return fc("MuiDialogContent",e)}Jc("MuiDialogContent",["root","dividers"]);const XE=qc("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(mu(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${qE.root} + &`]:{paddingTop:0}}}]}))),QE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...a}=n,i={...n,dividers:o},l=(e=>{const{classes:t,dividers:n}=e;return mc({root:["root",n&&"dividers"]},YE,t)})(i);return(0,Dc.jsx)(XE,{className:cc(l.root,r),ownerState:i,ref:t,...a})}),JE=QE;function ZE(e){return fc("MuiTableContainer",e)}Jc("MuiTableContainer",["root"]);const eC=qc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),tC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTableContainer"}),{className:r,component:o="div",...a}=n,i={...n,component:o},l=(e=>{const{classes:t}=e;return mc({root:["root"]},ZE,t)})(i);return(0,Dc.jsx)(eC,{ref:t,as:o,className:cc(l.root,r),ownerState:i,...a})}),nC=tC,rC=i.createContext();function oC(e){return fc("MuiTable",e)}Jc("MuiTable",["root","stickyHeader"]);const aC=qc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(mu(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),iC="table",lC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTable"}),{className:r,component:o=iC,padding:a="normal",size:l="medium",stickyHeader:s=!1,...c}=n,u={...n,component:o,padding:a,size:l,stickyHeader:s},d=(e=>{const{classes:t,stickyHeader:n}=e;return mc({root:["root",n&&"stickyHeader"]},oC,t)})(u),p=i.useMemo(()=>({padding:a,size:l,stickyHeader:s}),[a,l,s]);return(0,Dc.jsx)(rC.Provider,{value:p,children:(0,Dc.jsx)(aC,{as:o,role:o===iC?null:"table",ref:t,className:cc(d.root,r),ownerState:u,...c})})}),sC=lC,cC=i.createContext();function uC(e){return fc("MuiTableBody",e)}Jc("MuiTableBody",["root"]);const dC=qc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),pC={variant:"body"},fC="tbody",mC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTableBody"}),{className:r,component:o=fC,...a}=n,i={...n,component:o},l=(e=>{const{classes:t}=e;return mc({root:["root"]},uC,t)})(i);return(0,Dc.jsx)(cC.Provider,{value:pC,children:(0,Dc.jsx)(dC,{className:cc(l.root,r),as:o,ref:t,role:o===fC?null:"rowgroup",ownerState:i,...a})})}),hC=mC;function gC(e){return fc("MuiTableRow",e)}const vC=Jc("MuiTableRow",["root","selected","hover","head","footer"]),yC=qc("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(mu(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${vC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${vC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),bC="tr",xC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTableRow"}),{className:r,component:o=bC,hover:a=!1,selected:l=!1,...s}=n,c=i.useContext(cC),u={...n,component:o,hover:a,selected:l,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant},d=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return mc({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},gC,t)})(u);return(0,Dc.jsx)(yC,{as:o,ref:t,className:cc(d.root,r),role:o===bC?null:"row",ownerState:u,...s})}),wC=xC;function kC(e){return fc("MuiTableCell",e)}const SC=Jc("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),EC=qc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Wc(n.size)}`],"normal"!==n.padding&&t[`padding${Wc(n.padding)}`],"inherit"!==n.align&&t[`align${Wc(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(mu(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Bi(_i(e.palette.divider,1),.88):zi(_i(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${SC.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),CC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:a,padding:l,scope:s,size:c,sortDirection:u,variant:d,...p}=n,f=i.useContext(rC),m=i.useContext(cC),h=m&&"head"===m.variant;let g;g=a||(h?"th":"td");let v=s;"td"===g?v=void 0:!v&&h&&(v="col");const y=d||m&&m.variant,b={...n,align:r,component:g,padding:l||(f&&f.padding?f.padding:"normal"),size:c||(f&&f.size?f.size:"medium"),sortDirection:u,stickyHeader:"head"===y&&f&&f.stickyHeader,variant:y},x=(e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e;return mc({root:["root",n,i&&"stickyHeader","inherit"!==r&&`align${Wc(r)}`,"normal"!==o&&`padding${Wc(o)}`,`size${Wc(a)}`]},kC,t)})(b);let w=null;return u&&(w="asc"===u?"ascending":"descending"),(0,Dc.jsx)(EC,{as:g,ref:t,className:cc(x.root,o),"aria-sort":w,scope:v,ownerState:b,...p})}),IC=CC;function PC(e){return fc("MuiDialogActions",e)}Jc("MuiDialogActions",["root","spacing"]);const OC=qc("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),TC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...a}=n,i={...n,disableSpacing:o},l=(e=>{const{classes:t,disableSpacing:n}=e;return mc({root:["root",!n&&"spacing"]},PC,t)})(i);return(0,Dc.jsx)(OC,{className:cc(l.root,r),ownerState:i,ref:t,...a})}),RC=TC,MC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M7 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"Pending"),AC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),LC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),jC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block"),$C=Jd((0,Dc.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"}),"Circle"),NC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),_C=Jd([(0,Dc.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Dc.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),DC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked");function zC(e,t){let n;try{n=e()}catch(e){return}const r={getItem:e=>{var r;const o=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(r=n.getItem(e))?r:null;return a instanceof Promise?a.then(o):o(a)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)};return r}const FC=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>FC(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>FC(t)(e)}}};function BC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BC(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var HC,VC,qC=nc()((HC=function(e,t){return{readOnly:!1,currentRunnables:{},runnableId:"",testRunId:void 0,setReadOnly:function(t){return e({readOnly:t})},setCurrentRunnables:function(t){return e({currentRunnables:WC({},t)})},setRunnableId:function(t){return e({runnableId:t})},setTestRunId:function(t){return e({testRunId:t})}}},VC={name:"test-session"},(e,t,n)=>{let r={storage:zC(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...VC},o=!1;const a=new Set,i=new Set;let l=r.storage;if(!l)return HC((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),e(...t)},t,n);const s=()=>{const e=r.partialize({...t()});return l.setItem(r.name,{state:e,version:r.version})},c=n.setState;n.setState=(e,t)=>{c(e,t),s()};const u=HC((...t)=>{e(...t),s()},t,n);let d;n.getInitialState=()=>u;const p=()=>{var n,c;if(!l)return;o=!1,a.forEach(e=>{var n;return e(null!=(n=t())?n:u)});const p=(null==(c=r.onRehydrateStorage)?void 0:c.call(r,null!=(n=t())?n:u))||void 0;return FC(l.getItem.bind(l))(r.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===r.version)return[!1,e.state];if(r.migrate){const t=r.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(n=>{var o;const[a,i]=n;if(d=r.merge(i,null!=(o=t())?o:u),e(d,!0),a)return s()}).then(()=>{null==p||p(d,void 0),d=t(),o=!0,i.forEach(e=>e(d))}).catch(e=>{null==p||p(void 0,e)})};return n.persist={setOptions:e=>{r={...r,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:e=>(a.add(e),()=>{a.delete(e)}),onFinishHydration:e=>(i.add(e),()=>{i.delete(e)})},r.skipHydration||p(),d||u}));const UC=function(e){var t=e.result,n=e.isRunning,r=qC(function(e){return e.testRunId});if(n&&(null==t?void 0:t.test_run_id)!==r)return i.createElement(dm,{title:"pending"},i.createElement(MC,{tabIndex:0,"aria-hidden":"false",style:{color:Ui[500]}}));switch(null==t?void 0:t.result){case"pass":return i.createElement(dm,{title:"passed"},i.createElement(AC,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?Sl:Il},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"fail":return i.createElement(dm,{title:"failed"},i.createElement(LC,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?el:ol},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"cancel":return i.createElement(dm,{title:"cancel"},i.createElement(LC,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?el:ol},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"skip":return i.createElement(dm,{title:"skipped"},i.createElement(jC,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?il:dl},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"omit":return i.createElement(dm,{title:"omitted"},i.createElement($C,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?Ui[300]:Ui[600]},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"error":return i.createElement(dm,{title:"error"},i.createElement(NC,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?Gi:Ji},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"wait":return i.createElement(dm,{title:"wait"},i.createElement(_C,{tabIndex:0,"aria-hidden":"false","data-testid":"".concat(t.id,"-").concat(t.result)}));default:return i.createElement(dm,{title:"no result"},i.createElement(DC,{tabIndex:0,"aria-hidden":"false",style:{color:Ui[500]}}))}},KC=function(e){var t=e.hideModal,n=e.modalVisible;return i.createElement(HE,{open:n,fullWidth:!0,maxWidth:"md",onClose:t,"data-testid":"HelpModal",onKeyDown:function(e){return e.stopPropagation()}},i.createElement(GE,null,"Help"),i.createElement(dS,null),i.createElement(JE,null,i.createElement(nu,{pb:3},i.createElement(Su,{component:"h3",fontWeight:"bold",sx:{mb:2}},"Test Icon Legend"),i.createElement(nC,{component:Lu,elevation:0},i.createElement(sC,{size:"small","aria-label":"icon legend"},i.createElement(hC,null,[{icon:"pass",label:"Pass",description:"A test passed"},{icon:"pass",label:"Pass - optional test",description:"An optional test passed",optional:!0},{icon:"fail",label:"Fail",description:"A test failed"},{icon:"fail",label:"Fail - optional test",description:"An optional test failed - this will not affect overall count of passed tests",optional:!0},{icon:"cancel",label:"Cancel",description:"Test was cancelled"},{icon:"error",label:"Error",description:"An error occurred while running test"},{icon:"skip",label:"Skip",description:"A test was skipped"},{icon:"omit",label:"Omit",description:"A test was omitted and does not affect passed or failed scores"},{icon:"wait",label:"Wait",description:"A test is waiting for user interaction"},{icon:"pending",label:"Pending",description:"A test is being run",pending:!0},{icon:"no result",label:"No Result",description:"A test has not been run"}].map(function(e){return i.createElement(wC,{key:e.label,sx:{borderTop:"1px solid ".concat(Mh.palette.common.grayLight)}},i.createElement(IC,{sx:{display:"flex",alignItems:"center",fontWeight:"bold",borderBottom:0}},i.createElement(UC,{result:{id:e.icon,result:e.icon,test_run_id:"",test_session_id:"",updated_at:"",outputs:[],optional:e.optional},isRunning:e.pending}),i.createElement(nu,{px:1},e.label)),i.createElement(IC,{sx:{borderBottom:0}},e.description))})))))),i.createElement(RC,null,i.createElement(Bd,{color:"secondary",variant:"contained","data-testid":"cancel-button",onClick:t,sx:{fontWeight:"bold"}},"Close")))},GC=qc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(mu(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),YC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,a=i.useContext(mm),l={...n,alignItems:a.alignItems},s=(e=>{const{alignItems:t,classes:n}=e;return mc({root:["root","flex-start"===t&&"alignItemsFlexStart"]},oE,n)})(l);return(0,Dc.jsx)(GC,{className:cc(s.root,r),ownerState:l,ref:t,...o})}),XC=YC,QC=Jd((0,Dc.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share"),JC=Jd((0,Dc.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),ZC=Jd((0,Dc.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eI(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const nI=function(){var e=Fr().enqueueSnackbar,t=ct(),n=rc(function(e){return e.windowIsSmall}),r=lc(i.useState(null),2),o=r[0],a=r[1],l=lc(i.useState({}),2),s=l[0],c=l[1],u=Boolean(o),d=function(n){f();var r=function(e){for(var n=t.hash;n.endsWith("/");)n=n.slice(0,-1);if(e&&!n.includes("/view")&&(n+="/view"),!e&&n.includes("/view")){var r=n.indexOf("/view");n=n.substring(0,r)}return"".concat(window.location.origin).concat((window.location.pathname+"/").replace(/\/\/$/,"")).concat(n)}(n);navigator.clipboard.writeText(r).then(function(){c(tI(tI({},s),{},tp({},r,!0))),e("Successfully copied ".concat(n?"read-only ":"","session link"),{variant:"success"}),setTimeout(function(){c({})},2e3)}).catch(function(t){e("Failed to copy session link: ".concat(t),{variant:"error"})})},p=function(e){a(e.currentTarget)},f=function(){a(null)};return i.createElement(nu,{display:"flex",minWidth:"fit-content",pl:1,sx:n?{mr:-2}:{}},n?i.createElement(Kd,{id:"share-button",color:"secondary","aria-label":"Share Session","aria-controls":u?"share-menu":void 0,"aria-haspopup":"true","aria-expanded":u?"true":void 0,onClick:p},i.createElement(RE,{sx:{width:32,height:32,bgcolor:Mh.palette.secondary.main}},i.createElement(QC,{fontSize:"small"}))):i.createElement(Bd,{id:"share-button",disableElevation:!0,color:"secondary",size:"small",variant:"text",startIcon:i.createElement(QC,null),"aria-controls":u?"share-menu":void 0,"aria-haspopup":"true","aria-expanded":u?"true":void 0,onClick:p},"Share Session"),i.createElement(rE,{id:"share-menu",anchorEl:o,open:u,onClose:f,MenuListProps:{dense:!0,"aria-labelledby":"share-button"}},i.createElement(uE,{onClick:function(){return d()}},i.createElement(XC,null,i.createElement(JC,{fontSize:"small"})),i.createElement(Em,null,"Copy Session Link")),i.createElement(uE,{onClick:function(){return d(!0)}},i.createElement(XC,null,i.createElement(ZC,{fontSize:"small"})),i.createElement(Em,null,"Copy Read-Only Session Link"))))},rI=function(){var e=LE().classes,t=rc(function(e){return e.headerHeight}),n=rc(function(e){return e.windowIsSmall});return i.createElement(bE,{color:"default",className:e.appbar,style:{minHeight:"".concat(t,"px"),maxHeight:"".concat(t,"px")},"data-testid":"headerSkeleton"},i.createElement(SE,{className:e.toolbar},i.createElement(Fh,{variant:"circular",height:44,width:44}),i.createElement(nu,{display:"flex",flexDirection:"column",flexGrow:"1",alignSelf:"center",py:.5,pl:2},i.createElement(Fh,{height:35,width:"70%"}),i.createElement(Fh,{height:15,width:"60%"})),i.createElement(nu,{display:"flex",sx:n?{}:{pr:2}},n?i.createElement(Fh,{variant:"circular",height:32,width:32,sx:{mr:1}}):i.createElement(Fh,{variant:"rounded",height:30,width:140})),i.createElement(nu,{display:"flex",sx:n?{mr:"-16px"}:{}},n?i.createElement(Fh,{variant:"circular",height:32,width:32,sx:{mr:1}}):i.createElement(Fh,{variant:"rounded",height:30,width:140}))))},oI=function(e){var t=e.suiteId,n=e.suiteTitle,r=e.suiteVersion,o=e.suiteOptions,a=e.drawerOpen,l=e.toggleDrawer,s=LE().classes,c=rc(function(e){return e.headerHeight}),u=rc(function(e){return e.windowIsSmall}),d=qC(function(e){return e.readOnly}),p=lc(i.useState(!1),2),f=p[0],m=p[1],h=function(){window.location.href="/".concat(Ys)},g=o&&o.length>0?"".concat(o.map(function(e){return e.label}).join(", ")):"";return n?i.createElement(bE,{color:"default",className:s.appbar,style:{minHeight:"".concat(c,"px"),maxHeight:"".concat(c,"px")}},i.createElement(SE,{className:s.toolbar},u?i.createElement(Kd,{size:"large",edge:"start",color:"secondary","aria-label":"menu",onClick:function(){return l(!a)}},i.createElement(ME,{fontSize:"inherit"})):i.createElement(nn,{to:"/",reloadDocument:!0,"aria-label":"Inferno Home"},i.createElement(dm,{title:"Return to Suite Selection"},i.createElement("img",{src:Qs(jE),alt:"Inferno logo",className:s.logo}))),i.createElement(nu,{display:"flex",flexDirection:"column",flexGrow:"1",alignSelf:"center",overflow:"auto",py:.5,tabIndex:0},i.createElement(nu,{display:"flex",flexDirection:"row",alignItems:"baseline"},i.createElement(Su,{variant:"h5",component:"h1",className:s.title},i.createElement(nn,{to:"/".concat(t||""),reloadDocument:!0,"aria-label":"Inferno Home",className:s.homeLink},n,d?" (Read Only)":"")),r&&i.createElement(Su,{variant:"overline",className:s.version},"v.".concat(r),d?" (Read-Only Mode)":"")),g&&i.createElement(Su,{variant:"subtitle2",component:"h2",className:s.title},g)),i.createElement(nI,null),i.createElement(nu,{display:"flex",minWidth:"fit-content",pl:1,style:u?{marginRight:"-8px"}:{}},u?i.createElement(Kd,{color:"secondary","aria-label":"New Session",onClick:h},i.createElement(RE,{sx:{width:32,height:32,bgcolor:Mh.palette.secondary.main}},i.createElement(AE,{fontSize:"small"}))):i.createElement(Bd,{disableElevation:!0,color:"secondary",size:"small",variant:"contained",startIcon:i.createElement(AE,null),onClick:h},"New Session")),i.createElement(nu,{display:"flex",minWidth:"fit-content",pl:1},i.createElement(PS,{color:"secondary",className:s.textButton,style:u?{fontSize:"0.8rem"}:{margin:"0 8px"},onClick:function(){return m(!0)}},"Help")),i.createElement(KC,{modalVisible:f,hideModal:function(){return m(!1)}}))):i.createElement(rI,null)},aI=function(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,a]=i.useState(!1);return Bu(()=>{n||a(!0)},[n]),i.useEffect(()=>{n&&a(!0)},[n]),o?t:r},iI=qc("div",{name:"MuiSwipeArea",shouldForwardProp:Vc})(mu(({theme:e})=>({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1,variants:[{props:{anchor:"left"},style:{right:"auto"}},{props:{anchor:"right"},style:{left:"auto",right:0}},{props:{anchor:"top"},style:{bottom:"auto",right:0}},{props:{anchor:"bottom"},style:{top:"auto",bottom:0,right:0}}]}))),lI=i.forwardRef(function(e,t){const{anchor:n,classes:r={},className:o,width:a,style:i,...l}=e,s=e;return(0,Dc.jsx)(iI,{className:cc("PrivateSwipeArea-root",r.root,r[`anchor${Wc(n)}`],o),ref:t,style:{[nS(n)?"width":"height"]:a,...i},ownerState:s,...l})}),sI=lI;let cI=null;function uI(e,t,n){return"right"===e?n.body.offsetWidth-t[0].pageX:t[0].pageX}function dI(e,t,n){return"bottom"===e?n.innerHeight-t[0].clientY:t[0].clientY}function pI(e,t){return e?t.clientWidth:t.clientHeight}function fI(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}const mI="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),hI=i.forwardRef(function(e,t){const n=Gc({name:"MuiSwipeableDrawer",props:e}),r=gs(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:a="left",disableBackdropTransition:l=!1,disableDiscovery:s=!1,disableSwipeToOpen:c=mI,hideBackdrop:u,hysteresis:d=.52,allowSwipeInChildren:p=!1,minFlingVelocity:f=450,ModalProps:{BackdropProps:m,...h}={},onClose:g,onOpen:v,open:y=!1,PaperProps:b={},SwipeAreaProps:x,swipeAreaWidth:w=20,transitionDuration:k=o,variant:S="temporary",slots:E={},slotProps:C={},...I}=n,[P,O]=i.useState(!1),T=i.useRef({isSwiping:null}),R=i.useRef(),M=i.useRef(),A=i.useRef(),L=Fu(b.ref,A),j=i.useRef(!1),$=i.useRef();fm(()=>{$.current=null},[y]);const N=i.useCallback((e,t={})=>{const{mode:n=null,changeTransition:o=!0}=t,i=rS(r,a),s=["right","bottom"].includes(i)?1:-1,c=nS(a),d=c?`translate(${s*e}px, 0)`:`translate(0, ${s*e}px)`,p=A.current.style;p.webkitTransform=d,p.transform=d;let f="";if(n&&(f=r.transitions.create("all",hp({easing:void 0,style:void 0,timeout:k},{mode:n}))),o&&(p.webkitTransition=f,p.transition=f),!l&&!u){const t=M.current.style;t.opacity=1-e/pI(c,A.current),o&&(t.webkitTransition=f,t.transition=f)}},[a,l,u,r,k]),_=Hu(e=>{if(!j.current)return;if(cI=null,j.current=!1,cn.flushSync(()=>{O(!1)}),!T.current.isSwiping)return void(T.current.isSwiping=null);T.current.isSwiping=null;const t=rS(r,a),n=nS(a);let o;o=n?uI(t,e.changedTouches,OS(e.currentTarget)):dI(t,e.changedTouches,qk(e.currentTarget));const i=n?T.current.startX:T.current.startY,l=pI(n,A.current),s=fI(o,i,y,l),c=s/l;Math.abs(T.current.velocity)>f&&($.current=1e3*Math.abs((l-s)/T.current.velocity)),y?T.current.velocity>f||c>d?g():N(0,{mode:"exit"}):T.current.velocity<-f||1-c>d?v():N(pI(n,A.current),{mode:"enter"})}),D=(e=!1)=>{if(!P){!e&&s&&p||cn.flushSync(()=>{O(!0)});const t=nS(a);!y&&A.current&&N(pI(t,A.current)+(s?15:-20),{changeTransition:!1}),T.current.velocity=0,T.current.lastTime=null,T.current.lastTranslate=null,T.current.paperHit=!1,j.current=!0}},z=Hu(e=>{if(!A.current||!j.current)return;if(null!==cI&&cI!==T.current)return;D(!0);const t=rS(r,a),n=nS(a),o=uI(t,e.touches,OS(e.currentTarget)),i=dI(t,e.touches,qk(e.currentTarget));if(y&&A.current.contains(e.target)&&null===cI){const t=function({domTreeShapes:e,start:t,current:n,anchor:r}){const o={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},i={x:"clientWidth",y:"clientHeight"};return e.some(e=>{let l=n>=t;"top"!==r&&"left"!==r||(l=!l);const s="left"===r||"right"===r?"x":"y",c=Math.round(e[o[s]]),u=c>0,d=c+e[i[s]]<e[a[s]];return!!(l&&d||!l&&u)})}({domTreeShapes:function(e,t){const n=[];for(;e&&e!==t.parentElement;){const r=qk(t).getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,A.current),start:n?T.current.startX:T.current.startY,current:n?o:i,anchor:a});if(t)return void(cI=!0);cI=T.current}if(null==T.current.isSwiping){const t=Math.abs(o-T.current.startX),r=Math.abs(i-T.current.startY),a=n?t>r&&t>3:r>t&&r>3;if(a&&e.cancelable&&e.preventDefault(),!0===a||(n?r>3:t>3)){if(T.current.isSwiping=a,!a)return void _(e);T.current.startX=o,T.current.startY=i,s||y||(n?T.current.startX-=20:T.current.startY-=20)}}if(!T.current.isSwiping)return;const l=pI(n,A.current);let c=n?T.current.startX:T.current.startY;y&&!T.current.paperHit&&(c=Math.min(c,l));const u=fI(n?o:i,c,y,l);if(y)if(T.current.paperHit)0===u&&(T.current.startX=o,T.current.startY=i);else{if(!(n?o<l:i<l))return;T.current.paperHit=!0,T.current.startX=o,T.current.startY=i}null===T.current.lastTranslate&&(T.current.lastTranslate=u,T.current.lastTime=performance.now()+1);const d=(u-T.current.lastTranslate)/(performance.now()-T.current.lastTime)*1e3;T.current.velocity=.4*T.current.velocity+.6*d,T.current.lastTranslate=u,T.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),N(u)}),F=Hu(e=>{if(e.defaultPrevented)return;if(e.defaultMuiPrevented)return;if(y&&(u||!M.current.contains(e.target))&&!A.current.contains(e.target))return;const t=rS(r,a),n=nS(a),o=uI(t,e.touches,OS(e.currentTarget)),i=dI(t,e.touches,qk(e.currentTarget));if(!y){if(c||!(e.target===R.current||A.current?.contains(e.target)&&("function"==typeof p?p(e,R.current,A.current):p)))return;if(n){if(o>w)return}else if(i>w)return}e.defaultMuiPrevented=!0,cI=null,T.current.startX=o,T.current.startY=i,D()});i.useEffect(()=>{if("temporary"===S){const e=OS(A.current);return e.addEventListener("touchstart",F),e.addEventListener("touchmove",z,{passive:!y}),e.addEventListener("touchend",_),()=>{e.removeEventListener("touchstart",F),e.removeEventListener("touchmove",z,{passive:!y}),e.removeEventListener("touchend",_)}}},[S,y,F,z,_]),i.useEffect(()=>()=>{cI===T.current&&(cI=null)},[]),i.useEffect(()=>{y||O(!1)},[y]);const[B,W]=Qf("swipeArea",{ref:R,elementType:sI,ownerState:n,externalForwardedProps:{slots:E,slotProps:{swipeArea:x,...C}},additionalProps:{width:w,anchor:a}});return(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)(aS,{open:!("temporary"!==S||!P)||y,variant:S,ModalProps:{BackdropProps:{...m,ref:M},..."temporary"===S&&{keepMounted:!0},...h},hideBackdrop:u,anchor:a,transitionDuration:$.current||k,onClose:g,ref:t,slots:E,slotProps:{...C,backdrop:Xk(C.backdrop??m,{ref:M}),paper:Xk(C.paper??b,{style:{pointerEvents:"temporary"!==S||y||p?"":"none"},ref:L})},...I}),!c&&"temporary"===S&&(0,Dc.jsx)(aI,{children:(0,Dc.jsx)(B,{...W})})]})}),gI=hI;var vI=function(e){return e[e.TestSuite=0]="TestSuite",e[e.TestGroup=1]="TestGroup",e[e.Test=2]="Test",e}({}),yI=function(e){return"test_groups"in e&&"tests"in e};function bI(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function xI(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){bI(a,r,o,i,l,"next",e)}function l(e){bI(a,r,o,i,l,"throw",e)}i(void 0)})}}var wI=n(756),kI=n.n(wI);function SI(){return(SI=xI(kI().mark(function e(t,n){var r,o,a;return kI().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=Xs("/test_suites/".concat(t,"/requirements?session_id=").concat(n)),e.prev=1,e.next=2,fetch(r);case 2:return o=e.sent,e.next=3,o.json();case 3:return a=e.sent,e.abrupt("return",a||[]);case 4:return e.prev=4,e.catch(1),e.abrupt("return",[]);case 5:case"end":return e.stop()}},e,null,[[1,4]])}))).apply(this,arguments)}function EI(){return(EI=xI(kI().mark(function e(t){var n,r,o;return kI().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Xs("/requirements/".concat(t)),e.prev=1,e.next=2,fetch(n);case 2:return r=e.sent,e.next=3,r.json();case 3:return o=e.sent,e.abrupt("return",o||null);case 4:return e.prev=4,e.catch(1),e.abrupt("return",null);case 5:case"end":return e.stop()}},e,null,[[1,4]])}))).apply(this,arguments)}function CI(e){return fc("MuiDialogContentText",e)}Jc("MuiDialogContentText",["root"]);const II=qc(Su,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),PI=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDialogContentText"}),{children:r,className:o,...a}=n,i=(e=>{const{classes:t}=e,n=mc({root:["root"]},CI,t);return{...t,...n}})(a);return(0,Dc.jsx)(II,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:a,className:cc(i.root,o),...n,classes:i})}),OI=PI,TI=function(e){var t=e.modalVisible,n=e.message,r=e.cancelTestRun;return i.createElement(HE,{open:t,fullWidth:!0,maxWidth:"sm"},i.createElement(GE,null,"User Action Required"),i.createElement(JE,null,i.createElement(OI,{component:"div"},i.createElement(lx,{remarkPlugins:[ek]},n||""))),i.createElement(RC,null,i.createElement(Bd,{color:"secondary",variant:"contained",disableElevation:!0,onClick:r,"data-testid":"cancel-button",sx:{fontWeight:"bold"}},"Cancel")))};function RI(e){return parseInt(e,10)||0}const MI={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function AI(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const LI=i.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:l,...s}=e,{current:c}=i.useRef(null!=l),u=i.useRef(null),d=zu(t,u),p=i.useRef(null),f=i.useRef(null),m=i.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const a=Rk(t).getComputedStyle(t);if("0px"===a.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const i=a.boxSizing,l=RI(a.paddingBottom)+RI(a.paddingTop),s=RI(a.borderBottomWidth)+RI(a.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;return o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+("border-box"===i?l+s:0),overflowing:Math.abs(p-c)<=1}},[r,o,e.placeholder]),h=Wu(()=>{const e=u.current,t=m();if(!e||!t||AI(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=i.useCallback(()=>{const e=u.current,t=m();if(!e||!t||AI(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[m]),v=i.useRef(-1);return Bu(()=>{const e=Hk(g),t=u?.current;if(!t)return;const n=Rk(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[m,g,h]),Bu(()=>{g()}),(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)("textarea",{value:l,onChange:e=>{c||g(),n&&n(e)},ref:d,rows:o,style:a,...s}),(0,Dc.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...MI,...a,paddingTop:0,paddingBottom:0}})]})}),jI=LI;function $I(e){return fc("MuiInputBase",e)}const NI=Jc("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _I;const DI=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Wc(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},zI=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},FI=qc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:DI})(mu(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${NI.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),BI=qc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zI})(mu(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${NI.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${NI.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),WI=function(e){return function(t){return(0,Dc.jsx)(pu,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),HI=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:l,color:s,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,error:h,fullWidth:g=!1,id:v,inputComponent:y="input",inputProps:b={},inputRef:x,margin:w,maxRows:k,minRows:S,multiline:E=!1,name:C,onBlur:I,onChange:P,onClick:O,onFocus:T,onKeyDown:R,onKeyUp:M,placeholder:A,readOnly:L,renderSuffix:j,rows:$,size:N,slotProps:_={},slots:D={},startAdornment:z,type:F="text",value:B,...W}=n,H=null!=b.value?b.value:B,{current:V}=i.useRef(null!=H),q=i.useRef(),U=i.useCallback(e=>{},[]),K=Fu(q,x,b.ref,U),[G,Y]=i.useState(!1),X=_m(),Q=Nm({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=X?X.focused:G,i.useEffect(()=>{!X&&p&&G&&(Y(!1),I&&I())},[X,p,G,I]);const J=X&&X.onFilled,Z=X&&X.onEmpty,ee=i.useCallback(e=>{Om(e)?J&&J():Z&&Z()},[J,Z]);fm(()=>{V&&ee({value:H})},[H,ee,V]),i.useEffect(()=>{ee(q.current)},[]);let te=y,ne=b;E&&"input"===te&&(ne=$?{type:void 0,minRows:$,maxRows:$,...ne}:{type:void 0,maxRows:k,minRows:S,...ne},te=jI),i.useEffect(()=>{X&&X.setAdornedStart(Boolean(z))},[X,z]);const re={...n,color:Q.color||"primary",disabled:Q.disabled,endAdornment:m,error:Q.error,focused:Q.focused,formControl:X,fullWidth:g,hiddenLabel:Q.hiddenLabel,multiline:E,size:Q.size,startAdornment:z,type:F},oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:m}=e;return mc({root:["root",`color${Wc(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Wc(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},$I,t)})(re),ae=D.root||c.Root||FI,ie=_.root||u.root||{},le=D.input||c.Input||BI;return ne={...ne,..._.input??u.input},(0,Dc.jsxs)(i.Fragment,{children:[!f&&"function"==typeof WI&&(_I||(_I=(0,Dc.jsx)(WI,{}))),(0,Dc.jsxs)(ae,{...ie,ref:t,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),O&&O(e)},...W,...!FS(ae)&&{ownerState:{...re,...ie.ownerState}},className:cc(oe.root,ie.className,l,L&&"MuiInputBase-readOnly"),children:[z,(0,Dc.jsx)(Mm.Provider,{value:null,children:(0,Dc.jsx)(le,{"aria-invalid":Q.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:d,disabled:Q.disabled,id:v,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:C,placeholder:A,readOnly:L,required:Q.required,rows:$,value:H,onKeyDown:R,onKeyUp:M,type:F,...ne,...!FS(le)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:K,className:cc(oe.input,ne.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{I&&I(e),b.onBlur&&b.onBlur(e),X&&X.onBlur?X.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!V){const t=e.target||q.current;if(null==t)throw new Error(to(1));ee({value:t.value})}b.onChange&&b.onChange(e,...t),P&&P(e,...t)},onFocus:e=>{T&&T(e),b.onFocus&&b.onFocus(e),X&&X.onFocus?X.onFocus(e):Y(!0)}})}),m,j?j({...Q,startAdornment:z}):null]})]})}),VI=HI;function qI(e){return fc("MuiInput",e)}const UI={...NI,...Jc("MuiInput",["root","underline","input"])},KI=qc(FI,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...DI(e,t),!n.disableUnderline&&t.underline]}})(mu(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${UI.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${UI.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${UI.disabled}, .${UI.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${UI.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),GI=qc(BI,{name:"MuiInput",slot:"Input",overridesResolver:zI})({}),YI=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,inputComponent:l="input",multiline:s=!1,slotProps:c,slots:u={},type:d="text",...p}=n,f=(e=>{const{classes:t,disableUnderline:n}=e,r=mc({root:["root",!n&&"underline"],input:["input"]},qI,t);return{...t,...r}})(n),m={root:{ownerState:{disableUnderline:r}}},h=c??a?Vr(c??a,m):m,g=u.root??o.Root??KI,v=u.input??o.Input??GI;return(0,Dc.jsx)(VI,{slots:{root:g,input:v},slotProps:h,fullWidth:i,inputComponent:l,multiline:s,ref:t,type:d,...p,classes:f})});YI.muiName="Input";const XI=YI;function QI(e){return fc("MuiFilledInput",e)}const JI={...NI,...Jc("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ZI=qc(FI,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...DI(e,t),!n.disableUnderline&&t.underline]}})(mu(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${JI.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${JI.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${JI.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${JI.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${JI.disabled}, .${JI.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${JI.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),eP=qc(BI,{name:"MuiFilledInput",slot:"Input",overridesResolver:zI})(mu(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),tP=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,hiddenLabel:l,inputComponent:s="input",multiline:c=!1,slotProps:u,slots:d={},type:p="text",...f}=n,m={...n,disableUnderline:r,fullWidth:i,inputComponent:s,multiline:c,type:p},h=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=e,s=mc({root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd","small"===a&&`size${Wc(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},QI,t);return{...t,...s}})(n),g={root:{ownerState:m},input:{ownerState:m}},v=u??a?Vr(g,u??a):g,y=d.root??o.Root??ZI,b=d.input??o.Input??eP;return(0,Dc.jsx)(VI,{slots:{root:y,input:b},slotProps:v,fullWidth:i,inputComponent:s,multiline:c,ref:t,type:p,...f,classes:h})});tP.muiName="Input";const nP=tP;var rP;const oP=qc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Vc})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),aP=qc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Vc})(mu(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function iP(e){return fc("MuiOutlinedInput",e)}const lP={...NI,...Jc("MuiOutlinedInput",["root","notchedOutline","input"])},sP=qc(FI,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:DI})(mu(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${lP.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lP.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${lP.focused} .${lP.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{[`&.${lP.focused} .${lP.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lP.error} .${lP.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${lP.disabled} .${lP.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),cP=qc(function(e){const{children:t,classes:n,className:r,label:o,notched:a,...i}=e,l=null!=o&&""!==o,s={...e,notched:a,withLabel:l};return(0,Dc.jsx)(oP,{"aria-hidden":!0,className:r,ownerState:s,...i,children:(0,Dc.jsx)(aP,{ownerState:s,children:l?(0,Dc.jsx)("span",{children:o}):rP||(rP=(0,Dc.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(mu(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),uP=qc(BI,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zI})(mu(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),dP=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:l,multiline:s=!1,notched:c,slots:u={},slotProps:d={},type:p="text",...f}=n,m=(e=>{const{classes:t}=e,n=mc({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},iP,t);return{...t,...n}})(n),h=_m(),g=Nm({props:n,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...n,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:h,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:s,size:g.size,type:p},y=u.root??r.Root??sP,b=u.input??r.Input??uP,[x,w]=Qf("notchedOutline",{elementType:cP,className:m.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:null!=l&&""!==l&&g.required?(0,Dc.jsxs)(i.Fragment,{children:[l," ","*"]}):l}});return(0,Dc.jsx)(VI,{slots:{root:y,input:b},slotProps:d,renderSuffix:e=>(0,Dc.jsx)(x,{...w,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:a,multiline:s,ref:t,type:p,...f,classes:{...m,notchedOutline:null}})});dP.muiName="Input";const pP=dP;function fP(e){return fc("MuiInputLabel",e)}Jc("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const mP=qc(Hm,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zm.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(mu(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),hP=i.forwardRef(function(e,t){const n=Gc({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:i,className:l,...s}=n,c=_m();let u=a;void 0===u&&c&&(u=c.filled||c.focused||c.adornedStart);const d=Nm({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),p={...n,disableAnimation:r,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},f=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:l}=e,s=mc({root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&"normal"!==r&&`size${Wc(r)}`,i],asterisk:[l&&"asterisk"]},fP,t);return{...t,...s}})(p);return(0,Dc.jsx)(mP,{"data-shrink":u,ref:t,className:cc(f.root,l),...s,ownerState:p,classes:f})}),gP=hP;function vP(e){return fc("MuiFormHelperText",e)}const yP=Jc("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var bP;const xP=qc("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Wc(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(mu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yP.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yP.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),wP=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:i,error:l,filled:s,focused:c,margin:u,required:d,variant:p,...f}=n,m=Nm({props:n,muiFormControl:_m(),states:["variant","size","disabled","error","filled","focused","required"]}),h={...n,component:a,contained:"filled"===m.variant||"outlined"===m.variant,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete h.ownerState;const g=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:l,required:s}=e;return mc({root:["root",o&&"disabled",a&&"error",r&&`size${Wc(r)}`,n&&"contained",l&&"focused",i&&"filled",s&&"required"]},vP,t)})(h);return(0,Dc.jsx)(xP,{as:a,className:cc(g.root,o),ref:t,...f,ownerState:h,children:" "===r?bP||(bP=(0,Dc.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})}),kP=wP;function SP(e){return fc("MuiNativeSelect",e)}const EP=Jc("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),CP=qc("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${EP.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),IP=qc(CP,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${EP.multiple}`]:t.multiple}]}})({}),PP=qc("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${EP.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),OP=qc(PP,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Wc(n.variant)}`],n.open&&t.iconOpen]}})({}),TP=i.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:l,variant:s="standard",...c}=e,u={...e,disabled:r,variant:s,error:o},d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e;return mc({select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Wc(n)}`,a&&"iconOpen",r&&"disabled"]},SP,t)})(u);return(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)(IP,{ownerState:u,className:cc(d.select,n),disabled:r,ref:l||t,...c}),e.multiple?null:(0,Dc.jsx)(OP,{as:a,ownerState:u,className:d.icon})]})}),RP=TP;function MP(e){return fc("MuiSelect",e)}const AP=Jc("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var LP;const jP=qc(CP,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${AP.select}`]:t.select},{[`&.${AP.select}`]:t[n.variant]},{[`&.${AP.error}`]:t.error},{[`&.${AP.multiple}`]:t.multiple}]}})({[`&.${AP.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$P=qc(PP,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Wc(n.variant)}`],n.open&&t.iconOpen]}})({}),NP=qc("input",{shouldForwardProp:e=>Hc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function _P(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function DP(e){return null==e||"string"==typeof e&&!e.trim()}const zP=i.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:l,className:s,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:y,name:b,onBlur:x,onChange:w,onClose:k,onFocus:S,onOpen:E,open:C,readOnly:I,renderValue:P,required:O,SelectDisplayProps:T={},tabIndex:R,type:M,value:A,variant:L="standard",...j}=e,[$,N]=Xf({controlled:A,default:u,name:"Select"}),[_,D]=Xf({controlled:C,default:c,name:"Select"}),z=i.useRef(null),F=i.useRef(null),[B,W]=i.useState(null),{current:H}=i.useRef(null!=C),[V,q]=i.useState(),U=Fu(t,h),K=i.useCallback(e=>{F.current=e,e&&W(e)},[]),G=B?.parentNode;i.useImperativeHandle(U,()=>({focus:()=>{F.current.focus()},node:z.current,value:$}),[$]),i.useEffect(()=>{c&&_&&B&&!H&&(q(a?null:G.clientWidth),F.current.focus())},[B,a]),i.useEffect(()=>{o&&F.current.focus()},[o]),i.useEffect(()=>{if(!g)return;const e=OS(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Y=(e,t)=>{e?E&&E(t):k&&k(t),H||(q(a?null:G.clientWidth),D(e))},X=i.Children.toArray(l),Q=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray($)?$.slice():[];const t=$.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),$!==n&&(N(n),w)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:b}}),w(o,e)}y||Y(!1,t)}},J=null!==B&&_;let Z,ee;delete j["aria-invalid"];const te=[];let ne=!1,re=!1;(Om({value:$})||p)&&(P?Z=P($):ne=!0);const oe=X.map(e=>{if(!i.isValidElement(e))return null;let t;if(y){if(!Array.isArray($))throw new Error(to(2));t=$.some(t=>_P(t,e.props.value)),t&&ne&&te.push(e.props.children)}else t=_P($,e.props.value),t&&ne&&(ee=e.props.children);return t&&(re=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Q(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});ne&&(Z=y?0===te.length?null:te.reduce((e,t,n)=>(e.push(t),n<te.length-1&&e.push(", "),e),[]):ee);let ae,ie=V;!a&&H&&B&&(ie=G.clientWidth),ae=void 0!==R?R:d?null:0;const le=T.id||(b?`mui-component-select-${b}`:void 0),se={...e,variant:L,value:$,open:J,error:f},ce=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e;return mc({select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Wc(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},MP,t)})(se),ue={...v.PaperProps,...v.slotProps?.paper},de=Nu();return(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)(jP,{as:"div",ref:K,tabIndex:ae,role:"combobox","aria-controls":J?de:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[g,le].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":O?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:e=>{I||[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Y(!0,e))},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:$,name:b}}),x(e))},onFocus:S,...T,ownerState:se,className:cc(T.className,ce.select,s),id:le,children:DP(Z)?LP||(LP=(0,Dc.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Z}),(0,Dc.jsx)(NP,{"aria-invalid":f,value:Array.isArray($)?$.join(","):$,name:b,ref:z,"aria-hidden":!0,onChange:e=>{const t=X.find(t=>t.props.value===e.target.value);void 0!==t&&(N(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:ce.nativeInput,autoFocus:o,required:O,...j,ownerState:se}),(0,Dc.jsx)($P,{as:m,className:ce.icon,ownerState:se}),(0,Dc.jsx)(rE,{id:`menu-${b||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:de,...v.MenuListProps},paper:{...ue,style:{minWidth:ie,...null!=ue?ue.style:null}}},children:oe})]})}),FP=zP,BP=Jd((0,Dc.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),WP={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vc(e)&&"variant"!==e,slot:"Root"},HP=qc(XI,WP)(""),VP=qc(pP,WP)(""),qP=qc(nP,WP)(""),UP=i.forwardRef(function(e,t){const n=Gc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:u=BP,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:x,open:w,renderValue:k,SelectDisplayProps:S,variant:E="outlined",...C}=n,I=y?RP:FP,P=Nm({props:n,muiFormControl:_m(),states:["variant","error"]}),O=P.variant||E,T={...n,variant:O,classes:a},R=(e=>{const{classes:t}=e,n=mc({root:["root"]},MP,t);return{...t,...n}})(T),{root:M,...A}=R,L=p||{standard:(0,Dc.jsx)(HP,{ownerState:T}),outlined:(0,Dc.jsx)(VP,{label:m,ownerState:T}),filled:(0,Dc.jsx)(qP,{ownerState:T})}[O],j=Fu(t,ap(L));return(0,Dc.jsx)(i.Fragment,{children:i.cloneElement(L,{inputComponent:I,inputProps:{children:o,error:P.error,IconComponent:u,variant:O,type:void 0,multiple:v,...y?{id:d}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:h,MenuProps:g,onClose:b,onOpen:x,open:w,renderValue:k,SelectDisplayProps:{id:d,...S}},...f,classes:f?Vr(A,f.classes):A,...p?p.props.inputProps:{}},...(v&&y||c)&&"outlined"===O?{notched:!0}:{},ref:j,className:cc(L.props.className,l,R.root),...!p&&{variant:O},...C})})});UP.muiName="Select";const KP=UP;function GP(e){return fc("MuiTextField",e)}Jc("MuiTextField",["root"]);const YP={standard:XI,filled:nP,outlined:pP},XP=qc($m,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QP=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:i,color:l="primary",defaultValue:s,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:m,InputLabelProps:h,inputProps:g,InputProps:v,inputRef:y,label:b,maxRows:x,minRows:w,multiline:k=!1,name:S,onBlur:E,onChange:C,onFocus:I,placeholder:P,required:O=!1,rows:T,select:R=!1,SelectProps:M,slots:A={},slotProps:L={},type:j,value:$,variant:N="outlined",..._}=n,D={...n,autoFocus:o,color:l,disabled:c,error:u,fullWidth:p,multiline:k,required:O,select:R,variant:N},z=(e=>{const{classes:t}=e;return mc({root:["root"]},GP,t)})(D),F=Nu(m),B=f&&F?`${F}-helper-text`:void 0,W=b&&F?`${F}-label`:void 0,H=YP[N],V={slots:A,slotProps:{input:v,inputLabel:h,htmlInput:g,formHelperText:d,select:M,...L}},q={},U=V.slotProps.inputLabel;"outlined"===N&&(U&&void 0!==U.shrink&&(q.notched=U.shrink),q.label=b),R&&(M&&M.native||(q.id=void 0),q["aria-describedby"]=void 0);const[K,G]=Qf("root",{elementType:XP,shouldForwardComponentProp:!0,externalForwardedProps:{...V,..._},ownerState:D,className:cc(z.root,i),ref:t,additionalProps:{disabled:c,error:u,fullWidth:p,required:O,color:l,variant:N}}),[Y,X]=Qf("input",{elementType:H,externalForwardedProps:V,additionalProps:q,ownerState:D}),[Q,J]=Qf("inputLabel",{elementType:gP,externalForwardedProps:V,ownerState:D}),[Z,ee]=Qf("htmlInput",{elementType:"input",externalForwardedProps:V,ownerState:D}),[te,ne]=Qf("formHelperText",{elementType:kP,externalForwardedProps:V,ownerState:D}),[re,oe]=Qf("select",{elementType:KP,externalForwardedProps:V,ownerState:D}),ae=(0,Dc.jsx)(Y,{"aria-describedby":B,autoComplete:r,autoFocus:o,defaultValue:s,fullWidth:p,multiline:k,name:S,rows:T,maxRows:x,minRows:w,type:j,value:$,id:F,inputRef:y,onBlur:E,onChange:C,onFocus:I,placeholder:P,inputProps:ee,slots:{input:A.htmlInput?Z:void 0},...X});return(0,Dc.jsxs)(K,{...G,children:[null!=b&&""!==b&&(0,Dc.jsx)(Q,{htmlFor:F,id:W,...J,children:b}),R?(0,Dc.jsx)(re,{"aria-describedby":B,id:F,labelId:W,value:$,input:ae,...oe,children:a}):ae,f&&(0,Dc.jsx)(te,{id:B,...ne,children:f})]})}),JP=QP;function ZP(e){return fc("MuiToggleButtonGroup",e)}const eO=Jc("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),tO=i.createContext({}),nO=i.createContext(void 0);function rO(e){return fc("MuiToggleButton",e)}const oO=Jc("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),aO=qc("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eO.grouped}`]:t.grouped},{[`& .${eO.grouped}`]:t[`grouped${Wc(n.orientation)}`]},{[`& .${eO.firstButton}`]:t.firstButton},{[`& .${eO.lastButton}`]:t.lastButton},{[`& .${eO.middleButton}`]:t.middleButton},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})(mu(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${eO.grouped}`]:{[`&.${eO.selected} + .${eO.grouped}.${eO.selected}`]:{borderTop:0,marginTop:0}},[`& .${eO.firstButton},& .${eO.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${eO.lastButton},& .${eO.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${eO.lastButton}.${oO.disabled},& .${eO.middleButton}.${oO.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${eO.grouped}`]:{[`&.${eO.selected} + .${eO.grouped}.${eO.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${eO.firstButton},& .${eO.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${eO.lastButton},& .${eO.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${eO.lastButton}.${oO.disabled},& .${eO.middleButton}.${oO.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),iO=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiToggleButtonGroup"}),{children:r,className:o,color:a="standard",disabled:l=!1,exclusive:s=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:p="medium",value:f,...m}=n,h={...n,disabled:l,fullWidth:c,orientation:d,size:p},g=(e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e;return mc({root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${Wc(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},ZP,t)})(h),v=i.useCallback((e,t)=>{if(!u)return;const n=f&&f.indexOf(t);let r;f&&n>=0?(r=f.slice(),r.splice(n,1)):r=f?f.concat(t):[t],u(e,r)},[u,f]),y=i.useCallback((e,t)=>{u&&u(e,f===t?null:t)},[u,f]),b=i.useMemo(()=>({className:g.grouped,onChange:s?y:v,value:f,size:p,fullWidth:c,color:a,disabled:l}),[g.grouped,s,y,v,f,p,c,a,l]),x=function(e){return i.Children.toArray(e).filter(e=>i.isValidElement(e))}(r),w=x.length,k=e=>{const t=0===e,n=e===w-1;return t&&n?"":t?g.firstButton:n?g.lastButton:g.middleButton};return(0,Dc.jsx)(aO,{role:"group",className:cc(g.root,o),ref:t,ownerState:h,...m,children:(0,Dc.jsx)(tO.Provider,{value:b,children:x.map((e,t)=>(0,Dc.jsx)(nO.Provider,{value:k(t),children:e},t))})})}),lO=iO;function sO(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.includes(e):e===t)}const cO=qc(bd,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${Wc(n.size)}`]]}})(mu(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${oO.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${oO.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{[`&.${oO.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),uO=i.forwardRef(function(e,t){const{value:n,...r}=i.useContext(tO),o=i.useContext(nO),a=Gc({props:hc({...r,selected:sO(e.value,n)},e),name:"MuiToggleButton"}),{children:l,className:s,color:c="standard",disabled:u=!1,disableFocusRipple:d=!1,fullWidth:p=!1,onChange:f,onClick:m,selected:h,size:g="medium",value:v,...y}=a,b={...a,color:c,disabled:u,disableFocusRipple:d,fullWidth:p,size:g},x=(e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:a,color:i}=e;return mc({root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${Wc(a)}`,i]},rO,t)})(b),w=o||"";return(0,Dc.jsx)(cO,{className:cc(r.className,x.root,s,w),disabled:u,focusRipple:!d,ref:t,onClick:e=>{m&&(m(e,v),e.defaultPrevented)||f&&f(e,v)},onChange:f,value:v,ownerState:b,"aria-pressed":h,...y,children:l})}),dO=uO,pO=Jd((0,Dc.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),fO=Jd((0,Dc.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");function mO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mO(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const gO=function(e){var t=e.copyText,n=e.size,r=e.view,o=lc(i.useState({}),2),a=o[0],l=o[1],s=function(){var e=xI(kI().mark(function e(t){return kI().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,navigator.clipboard.writeText(t).then(function(){l(hO(hO({},a),{},tp({},t,!0))),setTimeout(function(){l({})},2e3)});case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();return i.createElement(dm,{title:a[t]?"Text copied!":"Copy text",sx:"report"===r?{display:"none","@media print":{display:"none"}}:{}},i.createElement(nu,{px:1},i.createElement(Kd,{size:n,color:"secondary","aria-label":"copy button",onClick:function(e){s(t),e.stopPropagation()}},i.createElement(fO,{fontSize:"inherit"}))))},vO=Jd((0,Dc.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),yO=function(e){var t=e.fileName,n=e.fileType;return i.createElement(Bd,{variant:"contained",component:"label",color:"secondary","aria-label":"file-download",startIcon:i.createElement(vO,null),disableElevation:!0,onClick:function(){var e,r=document.createElement("a"),o=new Blob([null===(e=document.getElementById("".concat(n,"-serial-input")))||void 0===e?void 0:e.value],{type:"text/plain"});r.href=URL.createObjectURL(o),r.download="".concat(t,".").concat(n),document.body.appendChild(r),r.click()},sx:{mb:4}},"Download File")},bO=Jd((0,Dc.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"}),"FileUploadOutlined"),xO=Jd((0,Dc.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zm-9.18-6.95L7.4 14.46 10.94 18l5.66-5.66-1.41-1.41-4.24 4.24z"}),"TaskOutlined"),wO=function(e){var t=e.onUpload,n=qC(function(e){return e.readOnly}),r=lc(i.useState(""),2),o=r[0],a=r[1],l=qc("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1});return i.createElement(nu,{display:"flex",alignItems:"center",sx:{mb:2}},i.createElement(Bd,{variant:"contained",component:"label",color:"secondary","aria-label":"file-upload",disabled:n,startIcon:i.createElement(bO,null),disableElevation:!0,sx:{flexShrink:0}},"Upload File",i.createElement(l,{type:"file",onChange:function(e){return function(e){if(e.target.files&&0!==e.target.files.length){var n=e.target.files[0];a(n.name);var r=new FileReader;r.onload=function(){var e,n="object"===ep(r.result)?JSON.stringify(r.result):null===(e=r.result)||void 0===e?void 0:e.toString();t(n)},r.readAsText(n)}}(e)}})),o&&i.createElement(nu,{display:"flex",alignItems:"center",sx:{mx:2}},i.createElement(xO,{color:"secondary",sx:{mr:1}}),i.createElement(Su,{variant:"subtitle1",sx:{fontFamily:"Monospace"}},o)))};function kO(e){return null==e}var SO={isNothing:kO,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:kO(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,r,o,a;if(t)for(n=0,r=(a=Object.keys(t)).length;n<r;n+=1)e[o=a[n]]=t[o];return e}};function EO(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function CO(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=EO(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}CO.prototype=Object.create(Error.prototype),CO.prototype.constructor=CO,CO.prototype.toString=function(e){return this.name+": "+EO(this,e)};var IO=CO;function PO(e,t,n,r,o){var a="",i="",l=Math.floor(o/2)-1;return r-t>l&&(t=r-l+(a=" ... ").length),n-r>l&&(n=r+l-(i=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"→")+i,pos:r-t+a.length}}function OO(e,t){return SO.repeat(" ",t-e.length)+e}var TO=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],RO=["scalar","sequence","mapping"],MO=function(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===TO.indexOf(t))throw new IO('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}(t.styleAliases||null),-1===RO.indexOf(this.kind))throw new IO('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function AO(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function LO(e){return this.extend(e)}LO.prototype.extend=function(e){var t=[],n=[];if(e instanceof MO)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new IO("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach(function(e){if(!(e instanceof MO))throw new IO("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new IO("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new IO("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof MO))throw new IO("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(LO.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=AO(r,"implicit"),r.compiledExplicit=AO(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var jO=LO,$O=new MO("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),NO=new MO("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),_O=new MO("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),DO=new jO({explicit:[$O,NO,_O]}),zO=new MO("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),FO=new MO("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function BO(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function WO(e){return 48<=e&&e<=55}function HO(e){return 48<=e&&e<=57}var VO=new MO("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n=e.length,r=0,o=!1;if(!n)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===n)return!0;if("b"===(t=e[++r])){for(r++;r<n;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!BO(e.charCodeAt(r)))return!1;o=!0}return o&&"_"!==t}if("o"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!WO(e.charCodeAt(r)))return!1;o=!0}return o&&"_"!==t}}if("_"===t)return!1;for(;r<n;r++)if("_"!==(t=e[r])){if(!HO(e.charCodeAt(r)))return!1;o=!0}return!(!o||"_"===t)},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!SO.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qO=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),UO=/^[-+]?[0-9]+e/,KO=new MO("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!qO.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||SO.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(SO.isNegativeZero(e))return"-0.0";return n=e.toString(10),UO.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),GO=DO.extend({implicit:[zO,FO,VO,KO]}),YO=GO,XO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),QO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),JO=new MO("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==XO.exec(e)||null!==QO.exec(e))},construct:function(e){var t,n,r,o,a,i,l,s,c=0,u=null;if(null===(t=XO.exec(e))&&(t=QO.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,r,o));if(a=+t[4],i=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),s=new Date(Date.UTC(n,r,o,a,i,l,c)),u&&s.setTime(s.getTime()-u),s},instanceOf:Date,represent:function(e){return e.toISOString()}}),ZO=new MO("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),eT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",tT=new MO("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length,a=eT;for(n=0;n<o;n++)if(!((t=a.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,a=eT,i=0,l=[];for(t=0;t<o;t++)t%4==0&&t&&(l.push(i>>16&255),l.push(i>>8&255),l.push(255&i)),i=i<<6|a.indexOf(r.charAt(t));return 0==(n=o%4*6)?(l.push(i>>16&255),l.push(i>>8&255),l.push(255&i)):18===n?(l.push(i>>10&255),l.push(i>>2&255)):12===n&&l.push(i>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",o=0,a=e.length,i=eT;for(t=0;t<a;t++)t%3==0&&t&&(r+=i[o>>18&63],r+=i[o>>12&63],r+=i[o>>6&63],r+=i[63&o]),o=(o<<8)+e[t];return 0==(n=a%3)?(r+=i[o>>18&63],r+=i[o>>12&63],r+=i[o>>6&63],r+=i[63&o]):2===n?(r+=i[o>>10&63],r+=i[o>>4&63],r+=i[o<<2&63],r+=i[64]):1===n&&(r+=i[o>>2&63],r+=i[o<<4&63],r+=i[64],r+=i[64]),r}}),nT=Object.prototype.hasOwnProperty,rT=Object.prototype.toString,oT=new MO("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,a,i=[],l=e;for(t=0,n=l.length;t<n;t+=1){if(r=l[t],a=!1,"[object Object]"!==rT.call(r))return!1;for(o in r)if(nT.call(r,o)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==i.indexOf(o))return!1;i.push(o)}return!0},construct:function(e){return null!==e?e:[]}}),aT=Object.prototype.toString,iT=new MO("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,a,i=e;for(a=new Array(i.length),t=0,n=i.length;t<n;t+=1){if(r=i[t],"[object Object]"!==aT.call(r))return!1;if(1!==(o=Object.keys(r)).length)return!1;a[t]=[o[0],r[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,o,a,i=e;for(a=new Array(i.length),t=0,n=i.length;t<n;t+=1)r=i[t],o=Object.keys(r),a[t]=[o[0],r[o[0]]];return a}}),lT=Object.prototype.hasOwnProperty,sT=new MO("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(lT.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),cT=YO.extend({implicit:[JO,ZO],explicit:[tT,oT,iT,sT]}),uT=Object.prototype.hasOwnProperty,dT=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,pT=/[\x85\u2028\u2029]/,fT=/[,\[\]\{\}]/,mT=/^(?:!|!!|![a-z\-]+!)$/i,hT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function gT(e){return Object.prototype.toString.call(e)}function vT(e){return 10===e||13===e}function yT(e){return 9===e||32===e}function bT(e){return 9===e||32===e||10===e||13===e}function xT(e){return 44===e||91===e||93===e||123===e||125===e}function wT(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function kT(e){return 120===e?2:117===e?4:85===e?8:0}function ST(e){return 48<=e&&e<=57?e-48:-1}function ET(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function CT(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var IT=new Array(256),PT=new Array(256),OT=0;OT<256;OT++)IT[OT]=ET(OT)?1:0,PT[OT]=ET(OT);function TT(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||cT,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function RT(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,o=[0],a=[],i=-1;n=r.exec(e.buffer);)a.push(n.index),o.push(n.index+n[0].length),e.position<=n.index&&i<0&&(i=o.length-2);i<0&&(i=o.length-1);var l,s,c="",u=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore&&!(i-l<0);l++)s=PO(e.buffer,o[i-l],a[i-l],e.position-(o[i]-o[i-l]),d),c=SO.repeat(" ",t.indent)+OO((e.line-l+1).toString(),u)+" | "+s.str+"\n"+c;for(s=PO(e.buffer,o[i],a[i],e.position,d),c+=SO.repeat(" ",t.indent)+OO((e.line+1).toString(),u)+" | "+s.str+"\n",c+=SO.repeat("-",t.indent+u+3+s.pos)+"^\n",l=1;l<=t.linesAfter&&!(i+l>=a.length);l++)s=PO(e.buffer,o[i+l],a[i+l],e.position-(o[i]-o[i+l]),d),c+=SO.repeat(" ",t.indent)+OO((e.line+l+1).toString(),u)+" | "+s.str+"\n";return c.replace(/\n$/,"")}(n),new IO(t,n)}function MT(e,t){throw RT(e,t)}function AT(e,t){e.onWarning&&e.onWarning.call(null,RT(e,t))}var LT={YAML:function(e,t,n){var r,o,a;null!==e.version&&MT(e,"duplication of %YAML directive"),1!==n.length&&MT(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&MT(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),a=parseInt(r[2],10),1!==o&&MT(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&AT(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&MT(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],mT.test(r)||MT(e,"ill-formed tag handle (first argument) of the TAG directive"),uT.call(e.tagMap,r)&&MT(e,'there is a previously declared suffix for "'+r+'" tag handle'),hT.test(o)||MT(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){MT(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function jT(e,t,n,r){var o,a,i,l;if(t<n){if(l=e.input.slice(t,n),r)for(o=0,a=l.length;o<a;o+=1)9===(i=l.charCodeAt(o))||32<=i&&i<=1114111||MT(e,"expected valid JSON character");else dT.test(l)&&MT(e,"the stream contains non-printable characters");e.result+=l}}function $T(e,t,n,r){var o,a,i,l;for(SO.isObject(n)||MT(e,"cannot merge mappings; the provided source object is unacceptable"),i=0,l=(o=Object.keys(n)).length;i<l;i+=1)a=o[i],uT.call(t,a)||(t[a]=n[a],r[a]=!0)}function NT(e,t,n,r,o,a,i,l,s){var c,u;if(Array.isArray(o))for(c=0,u=(o=Array.prototype.slice.call(o)).length;c<u;c+=1)Array.isArray(o[c])&&MT(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===gT(o[c])&&(o[c]="[object Object]");if("object"==typeof o&&"[object Object]"===gT(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)$T(e,t,a[c],n);else $T(e,t,a,n);else e.json||uT.call(n,o)||!uT.call(t,o)||(e.line=i||e.line,e.lineStart=l||e.lineStart,e.position=s||e.position,MT(e,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[o]=a,delete n[o];return t}function _T(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):MT(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function DT(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);0!==o;){for(;yT(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do{o=e.input.charCodeAt(++e.position)}while(10!==o&&13!==o&&0!==o);if(!vT(o))break;for(_T(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&AT(e,"deficient indentation"),r}function zT(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!bT(t)))}function FT(e,t){1===t?e.result+=" ":t>1&&(e.result+=SO.repeat("\n",t-1))}function BT(e,t){var n,r,o=e.tag,a=e.anchor,i=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,MT(e,"tab characters must not be used in indentation")),45===r)&&bT(e.input.charCodeAt(e.position+1));)if(l=!0,e.position++,DT(e,!0,-1)&&e.lineIndent<=t)i.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,VT(e,t,3,!1,!0),i.push(e.result),DT(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)MT(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!l&&(e.tag=o,e.anchor=a,e.kind="sequence",e.result=i,!0)}function WT(e){var t,n,r,o,a=!1,i=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&MT(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(a=!0,o=e.input.charCodeAt(++e.position)):33===o?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,a){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):MT(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!bT(o);)33===o&&(i?MT(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),mT.test(n)||MT(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),fT.test(r)&&MT(e,"tag suffix cannot contain flow indicator characters")}r&&!hT.test(r)&&MT(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){MT(e,"tag name is malformed: "+r)}return a?e.tag=r:uT.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:MT(e,'undeclared tag handle "'+n+'"'),!0}function HT(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&MT(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!bT(n)&&!xT(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&MT(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function VT(e,t,n,r,o){var a,i,l,s,c,u,d,p,f,m=1,h=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=i=l=4===n||3===n,r&&DT(e,!0,-1)&&(h=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;WT(e)||HT(e);)DT(e,!0,-1)?(h=!0,l=a,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):l=!1;if(l&&(l=h||o),1!==m&&4!==n||(p=1===n||2===n?t:t+1,f=e.position-e.lineStart,1===m?l&&(BT(e,f)||function(e,t,n){var r,o,a,i,l,s,c,u=e.tag,d=e.anchor,p={},f=Object.create(null),m=null,h=null,g=null,v=!1,y=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),c=e.input.charCodeAt(e.position);0!==c;){if(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,MT(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,63!==c&&58!==c||!bT(r)){if(i=e.line,l=e.lineStart,s=e.position,!VT(e,n,2,!1,!0))break;if(e.line===a){for(c=e.input.charCodeAt(e.position);yT(c);)c=e.input.charCodeAt(++e.position);if(58===c)bT(c=e.input.charCodeAt(++e.position))||MT(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(NT(e,p,f,m,h,null,i,l,s),m=h=g=null),y=!0,v=!1,o=!1,m=e.tag,h=e.result;else{if(!y)return e.tag=u,e.anchor=d,!0;MT(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=u,e.anchor=d,!0;MT(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(v&&(NT(e,p,f,m,h,null,i,l,s),m=h=g=null),y=!0,v=!0,o=!0):v?(v=!1,o=!0):MT(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;if((e.line===a||e.lineIndent>t)&&(v&&(i=e.line,l=e.lineStart,s=e.position),VT(e,t,4,!0,o)&&(v?h=e.result:g=e.result),v||(NT(e,p,f,m,h,g,i,l,s),m=h=g=null),DT(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==c)MT(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&NT(e,p,f,m,h,null,i,l,s),y&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=p),y}(e,f,p))||function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,m=!0,h=e.tag,g=e.anchor,v=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))i=93,c=!1,a=[];else{if(123!==f)return!1;i=125,c=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),f=e.input.charCodeAt(++e.position);0!==f;){if(DT(e,!0,t),(f=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=h,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=a,!0;m?44===f&&MT(e,"expected the node content, but found ','"):MT(e,"missed comma between flow collection entries"),p=null,l=s=!1,63===f&&bT(e.input.charCodeAt(e.position+1))&&(l=s=!0,e.position++,DT(e,!0,t)),n=e.line,r=e.lineStart,o=e.position,VT(e,t,1,!1,!0),d=e.tag,u=e.result,DT(e,!0,t),f=e.input.charCodeAt(e.position),!s&&e.line!==n||58!==f||(l=!0,f=e.input.charCodeAt(++e.position),DT(e,!0,t),VT(e,t,1,!1,!0),p=e.result),c?NT(e,a,v,d,u,p,n,r,o):l?a.push(NT(e,null,v,d,u,p,n,r,o)):a.push(u),DT(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(m=!0,f=e.input.charCodeAt(++e.position)):m=!1}MT(e,"unexpected end of the stream within a flow collection")}(e,p)?g=!0:(i&&function(e,t){var n,r,o,a,i=1,l=!1,s=!1,c=t,u=0,d=!1;if(124===(a=e.input.charCodeAt(e.position)))r=!1;else{if(62!==a)return!1;r=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===i?i=43===a?3:2:MT(e,"repeat of a chomping mode identifier");else{if(!((o=ST(a))>=0))break;0===o?MT(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?MT(e,"repeat of an indentation width identifier"):(c=t+o-1,s=!0)}if(yT(a)){do{a=e.input.charCodeAt(++e.position)}while(yT(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!vT(a)&&0!==a)}for(;0!==a;){for(_T(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!s||e.lineIndent<c)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>c&&(c=e.lineIndent),vT(a))u++;else{if(e.lineIndent<c){3===i?e.result+=SO.repeat("\n",l?1+u:u):1===i&&l&&(e.result+="\n");break}for(r?yT(a)?(d=!0,e.result+=SO.repeat("\n",l?1+u:u)):d?(d=!1,e.result+=SO.repeat("\n",u+1)):0===u?l&&(e.result+=" "):e.result+=SO.repeat("\n",u):e.result+=SO.repeat("\n",l?1+u:u),l=!0,s=!0,u=0,n=e.position;!vT(a)&&0!==a;)a=e.input.charCodeAt(++e.position);jT(e,n,e.position,!1)}}return!0}(e,p)||function(e,t){var n,r,o;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(jT(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,o=e.position}else vT(n)?(jT(e,r,o,!0),FT(e,DT(e,!1,t)),r=o=e.position):e.position===e.lineStart&&zT(e)?MT(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);MT(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,r,o,a,i,l;if(34!==(l=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(l=e.input.charCodeAt(e.position));){if(34===l)return jT(e,n,e.position,!0),e.position++,!0;if(92===l){if(jT(e,n,e.position,!0),vT(l=e.input.charCodeAt(++e.position)))DT(e,!1,t);else if(l<256&&IT[l])e.result+=PT[l],e.position++;else if((i=kT(l))>0){for(o=i,a=0;o>0;o--)(i=wT(l=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+i:MT(e,"expected hexadecimal character");e.result+=CT(a),e.position++}else MT(e,"unknown escape sequence");n=r=e.position}else vT(l)?(jT(e,n,r,!0),FT(e,DT(e,!1,t)),n=r=e.position):e.position===e.lineStart&&zT(e)?MT(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}MT(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?g=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!bT(r)&&!xT(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&MT(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),uT.call(e.anchorMap,n)||MT(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],DT(e,!0,-1),!0}(e)?(g=!0,null===e.tag&&null===e.anchor||MT(e,"alias node should not have any properties")):function(e,t,n){var r,o,a,i,l,s,c,u,d=e.kind,p=e.result;if(bT(u=e.input.charCodeAt(e.position))||xT(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(bT(r=e.input.charCodeAt(e.position+1))||n&&xT(r)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,i=!1;0!==u;){if(58===u){if(bT(r=e.input.charCodeAt(e.position+1))||n&&xT(r))break}else if(35===u){if(bT(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&zT(e)||n&&xT(u))break;if(vT(u)){if(l=e.line,s=e.lineStart,c=e.lineIndent,DT(e,!1,-1),e.lineIndent>=t){i=!0,u=e.input.charCodeAt(e.position);continue}e.position=a,e.line=l,e.lineStart=s,e.lineIndent=c;break}}i&&(jT(e,o,a,!1),FT(e,e.line-l),o=a=e.position,i=!1),yT(u)||(a=e.position+1),u=e.input.charCodeAt(++e.position)}return jT(e,o,a,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,p,1===n)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(g=l&&BT(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&MT(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,c=e.implicitTypes.length;s<c;s+=1)if((d=e.implicitTypes[s]).resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(uT.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,s=0,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;s<c;s+=1)if(e.tag.slice(0,u[s].tag.length)===u[s].tag){d=u[s];break}d||MT(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&MT(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):MT(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function qT(e){var t,n,r,o,a=e.position,i=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(DT(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(i=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!bT(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&MT(e,"directive name must not be less than one character in length");0!==o;){for(;yT(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!vT(o));break}if(vT(o))break;for(t=e.position;0!==o&&!bT(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&_T(e),uT.call(LT,n)?LT[n](e,n,r):AT(e,'unknown document directive "'+n+'"')}DT(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,DT(e,!0,-1)):i&&MT(e,"directives end mark is expected"),VT(e,e.lineIndent-1,4,!1,!0),DT(e,!0,-1),e.checkLineBreaks&&pT.test(e.input.slice(a,e.position))&&AT(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&zT(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,DT(e,!0,-1)):e.position<e.length-1&&MT(e,"end of the stream or a document separator is expected")}function UT(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new TT(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,MT(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)qT(n);return n.documents}var KT={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=UT(e,n);if("function"!=typeof t)return r;for(var o=0,a=r.length;o<a;o+=1)t(r[o])},load:function(e,t){var n=UT(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new IO("expected a single document in the stream, but found more")}}},GT=Object.prototype.toString,YT=Object.prototype.hasOwnProperty,XT=65279,QT={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},JT=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ZT=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function eR(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else{if(!(e<=4294967295))throw new IO("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+SO.repeat("0",r-t.length)+t}function tR(e){this.schema=e.schema||cT,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=SO.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,o,a,i,l,s;if(null===t)return{};for(n={},o=0,a=(r=Object.keys(t)).length;o<a;o+=1)i=r[o],l=String(t[i]),"!!"===i.slice(0,2)&&(i="tag:yaml.org,2002:"+i.slice(2)),(s=e.compiledTypeMap.fallback[i])&&YT.call(s.styleAliases,l)&&(l=s.styleAliases[l]),n[i]=l;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function nR(e,t){for(var n,r=SO.repeat(" ",t),o=0,a=-1,i="",l=e.length;o<l;)-1===(a=e.indexOf("\n",o))?(n=e.slice(o),o=l):(n=e.slice(o,a+1),o=a+1),n.length&&"\n"!==n&&(i+=r),i+=n;return i}function rR(e,t){return"\n"+SO.repeat(" ",e.indent*t)}function oR(e){return 32===e||9===e}function aR(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==XT||65536<=e&&e<=1114111}function iR(e){return aR(e)&&e!==XT&&13!==e&&10!==e}function lR(e,t,n){var r=iR(e),o=r&&!oR(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!o)||iR(t)&&!oR(t)&&35===e||58===t&&o}function sR(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function cR(e){return/^\n* /.test(e)}function uR(e,t,n,r,o){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==JT.indexOf(t)||ZT.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),i=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),l=r||e.flowLevel>-1&&n>=e.flowLevel;switch(function(e,t,n,r,o,a,i,l){var s,c=0,u=null,d=!1,p=!1,f=-1!==r,m=-1,h=function(e){return aR(e)&&e!==XT&&!oR(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}(sR(e,0))&&function(e){return!oR(e)&&58!==e}(sR(e,e.length-1));if(t||i)for(s=0;s<e.length;c>=65536?s+=2:s++){if(!aR(c=sR(e,s)))return 5;h=h&&lR(c,u,l),u=c}else{for(s=0;s<e.length;c>=65536?s+=2:s++){if(10===(c=sR(e,s)))d=!0,f&&(p=p||s-m-1>r&&" "!==e[m+1],m=s);else if(!aR(c))return 5;h=h&&lR(c,u,l),u=c}p=p||f&&s-m-1>r&&" "!==e[m+1]}return d||p?n>9&&cR(e)?5:i?2===a?5:2:p?4:3:!h||i||o(e)?2===a?5:2:1}(t,l,e.indent,i,function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)},e.quotingType,e.forceQuotes&&!r,o)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+dR(t,e.indent)+pR(nR(t,a));case 4:return">"+dR(t,e.indent)+pR(nR(function(e,t){for(var n,r,o,a=/(\n+)([^\n]*)/g,i=(o=-1!==(o=e.indexOf("\n"))?o:e.length,a.lastIndex=o,fR(e.slice(0,o),t)),l="\n"===e[0]||" "===e[0];r=a.exec(e);){var s=r[1],c=r[2];n=" "===c[0],i+=s+(l||n||""===c?"":"\n")+fR(c,t),l=n}return i}(t,i),a));case 5:return'"'+function(e){for(var t,n="",r=0,o=0;o<e.length;r>=65536?o+=2:o++)r=sR(e,o),!(t=QT[r])&&aR(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=t||eR(r);return n}(t)+'"';default:throw new IO("impossible error: invalid scalar style")}}()}function dR(e,t){var n=cR(e)?String(t):"",r="\n"===e[e.length-1];return n+(!r||"\n"!==e[e.length-2]&&"\n"!==e?r?"":"-":"+")+"\n"}function pR(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function fR(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,a=0,i=0,l=0,s="";n=o.exec(e);)(l=n.index)-a>t&&(r=i>a?i:l,s+="\n"+e.slice(a,r),a=r+1),i=l;return s+="\n",e.length-a>t&&i>a?s+=e.slice(a,i)+"\n"+e.slice(i+1):s+=e.slice(a),s.slice(1)}function mR(e,t,n,r){var o,a,i,l="",s=e.tag;for(o=0,a=n.length;o<a;o+=1)i=n[o],e.replacer&&(i=e.replacer.call(n,String(o),i)),(gR(e,t+1,i,!0,!0,!1,!0)||void 0===i&&gR(e,t+1,null,!0,!0,!1,!0))&&(r&&""===l||(l+=rR(e,t)),e.dump&&10===e.dump.charCodeAt(0)?l+="-":l+="- ",l+=e.dump);e.tag=s,e.dump=l||"[]"}function hR(e,t,n){var r,o,a,i,l,s;for(a=0,i=(o=n?e.explicitTypes:e.implicitTypes).length;a<i;a+=1)if(((l=o[a]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof t&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(n?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(s=e.styleMap[l.tag]||l.defaultStyle,"[object Function]"===GT.call(l.represent))r=l.represent(t,s);else{if(!YT.call(l.represent,s))throw new IO("!<"+l.tag+'> tag resolver accepts not "'+s+'" style');r=l.represent[s](t,s)}e.dump=r}return!0}return!1}function gR(e,t,n,r,o,a,i){e.tag=null,e.dump=n,hR(e,n,!1)||hR(e,n,!0);var l,s=GT.call(e.dump),c=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var u,d,p="[object Object]"===s||"[object Array]"===s;if(p&&(d=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(o=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(p&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===s)r&&0!==Object.keys(e.dump).length?(function(e,t,n,r){var o,a,i,l,s,c,u="",d=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new IO("sortKeys must be a boolean or a function");for(o=0,a=p.length;o<a;o+=1)c="",r&&""===u||(c+=rR(e,t)),l=n[i=p[o]],e.replacer&&(l=e.replacer.call(n,i,l)),gR(e,t+1,i,!0,!0,!0)&&((s=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,s&&(c+=rR(e,t)),gR(e,t+1,l,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,o),d&&(e.dump="&ref_"+u+e.dump)):(function(e,t,n){var r,o,a,i,l,s="",c=e.tag,u=Object.keys(n);for(r=0,o=u.length;r<o;r+=1)l="",""!==s&&(l+=", "),e.condenseFlow&&(l+='"'),i=n[a=u[r]],e.replacer&&(i=e.replacer.call(n,a,i)),gR(e,t,a,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),gR(e,t,i,!1,!1)&&(s+=l+=e.dump));e.tag=c,e.dump="{"+s+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===s)r&&0!==e.dump.length?(e.noArrayIndent&&!i&&t>0?mR(e,t-1,e.dump,o):mR(e,t,e.dump,o),d&&(e.dump="&ref_"+u+e.dump)):(function(e,t,n){var r,o,a,i="",l=e.tag;for(r=0,o=n.length;r<o;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(gR(e,t,a,!1,!1)||void 0===a&&gR(e,t,null,!1,!1))&&(""!==i&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=l,e.dump="["+i+"]"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==s){if("[object Undefined]"===s)return!1;if(e.skipInvalid)return!1;throw new IO("unacceptable kind of an object to dump "+s)}"?"!==e.tag&&uR(e,e.dump,t,a,c)}null!==e.tag&&"?"!==e.tag&&(l=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),l="!"===e.tag[0]?"!"+l:"tag:yaml.org,2002:"===l.slice(0,18)?"!!"+l.slice(18):"!<"+l+">",e.dump=l+" "+e.dump)}return!0}function vR(e,t){var n,r,o=[],a=[];for(yR(e,o,a),n=0,r=a.length;n<r;n+=1)t.duplicates.push(o[a[n]]);t.usedDuplicates=new Array(r)}function yR(e,t,n){var r,o,a;if(null!==e&&"object"==typeof e)if(-1!==(o=t.indexOf(e)))-1===n.indexOf(o)&&n.push(o);else if(t.push(e),Array.isArray(e))for(o=0,a=e.length;o<a;o+=1)yR(e[o],t,n);else for(o=0,a=(r=Object.keys(e)).length;o<a;o+=1)yR(e[r[o]],t,n)}function bR(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}const xR={Type:MO,Schema:jO,FAILSAFE_SCHEMA:DO,JSON_SCHEMA:GO,CORE_SCHEMA:YO,DEFAULT_SCHEMA:cT,load:KT.load,loadAll:KT.loadAll,dump:function(e,t){var n=new tR(t=t||{});n.noRefs||vR(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),gR(n,0,r,!0,!0)?n.dump+"\n":""},YAMLException:IO,types:{binary:tT,float:KO,map:_O,null:zO,pairs:iT,set:sT,timestamp:JO,bool:FO,int:VO,merge:ZO,omap:oT,seq:NO,str:$O},safeLoad:bR("safeLoad","load"),safeLoadAll:bR("safeLoadAll","loadAll"),safeDump:bR("safeDump","dump")};function wR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wR(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var SR={public:["use_discovery","client_id","requested_scopes","pkce_support","pkce_code_challenge_method","auth_request_method","auth_url","token_url"],symmetric:["use_discovery","client_id","client_secret","requested_scopes","pkce_support","pkce_code_challenge_method","auth_request_method","auth_url","token_url"],asymmetric:["use_discovery","client_id","requested_scopes","pkce_support","pkce_code_challenge_method","auth_request_method","encryption_algorithm","jwks","kid","auth_url","token_url"],backend_services:["use_discovery","client_id","requested_scopes","encryption_algorithm","jwks","kid","token_url"]},ER=function(e,t,n,r,o){var a=[{name:"use_discovery",type:"checkbox",title:"Populate fields from discovery",optional:!0,locked:o,default:"true"},{name:"auth_url",title:"Authorization URL",description:"URL of the server's authorization endpoint",optional:!0,locked:o,hidden:"true"===(null==t?void 0:t.get("use_discovery"))},{name:"token_url",title:"Token URL",description:"URL of the authorization server's token endpoint",optional:!0,locked:o,hidden:"true"===(null==t?void 0:t.get("use_discovery"))},{name:"requested_scopes",type:"textarea",title:"Scopes",description:"OAuth 2.0 scopes needed to enable all required functionality",optional:r,locked:o},{name:"client_id",title:"Client ID",description:"Client ID provided during registration of Inferno",optional:r,locked:o},{name:"client_secret",title:"Client Secret",description:"Client secret provided during registration of Inferno",optional:r,locked:o},{name:"pkce_support",type:"radio",title:"Proof Key for Code Exchange (PKCE)",optional:r,locked:o,options:{list_options:[{label:"Enabled",value:"enabled"},{label:"Disabled",value:"disabled"}]}},{name:"pkce_code_challenge_method",type:"radio",title:"PKCE Code Challenge Method",optional:!0,locked:o,options:{list_options:[{label:"S256",value:"S256"},{label:"Plain",value:"plain"}]},hidden:!!t&&"disabled"===t.get("pkce_support")},{name:"auth_request_method",type:"radio",title:"Authorization Request Method",optional:r,locked:o,options:{list_options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}]}},{name:"encryption_algorithm",type:"radio",title:"Encryption Algorithm",optional:r,locked:o,options:{list_options:[{label:"ES384",value:"ES384"},{label:"RS384",value:"RS384"}]}},{name:"kid",title:"Key ID (kid)",description:"Key ID of the JWKS private key used to sign the client assertion. If blank, the first key for the selected encryption algorithm will be used.",optional:!0,locked:o},{name:"jwks",type:"textarea",title:"JWKS",description:"The JWKS (including private keys) which will be used to sign the client assertion. If blank, Inferno's default JWKS will be used.",optional:!0,locked:o}],i=n.map(function(e){return e.name});a.forEach(function(e,t){if(i.includes(e.name)){var r=n.find(function(t){return t.name===e.name});a[t]=kR(kR({},e),r)}});var l=SR[e];return SR&&e?a.filter(function(e){return null==l?void 0:l.includes(e.name)}):(a.forEach(function(e){return e.hidden=e.hidden||!(null!=l&&l.includes(e.name))}),a)},CR={public:["access_token","refresh_token","client_id","token_url","issue_time","expires_in"],symmetric:["access_token","refresh_token","client_id","client_secret","token_url","issue_time","expires_in"],asymmetric:["access_token","refresh_token","client_id","token_url","encryption_algorithm","jwks","kid","issue_time","expires_in"],backend_services:["access_token","client_id","token_url","encryption_algorithm","jwks","kid","issue_time","expires_in"]},IR=function(e,t,n,r,o){var a="backend_services"===e?!t.get("access_token"):!t.get("refresh_token"),i=[{name:"access_token",title:"Access Token",optional:r,locked:o},{name:"refresh_token",title:"Refresh Token (will automatically refresh if available)",optional:!0,locked:o},{name:"client_id",title:"Client ID",description:"Client ID provided during registration of Inferno",optional:!0,locked:o,hidden:a},{name:"client_secret",title:"Client Secret",description:"Client secret provided during registration of Inferno",optional:!0,locked:o,hidden:!t.get("refresh_token")},{name:"token_url",title:"Token URL",description:"URL of the authorization server's token endpoint",optional:!0,locked:o,hidden:a},{name:"encryption_algorithm",type:"radio",title:"Encryption Algorithm",optional:!0,locked:o,hidden:a},{name:"kid",title:"Key ID (kid)",description:"Key ID of the JWKS private key used to sign the client assertion. If blank, the first key for the selected encryption algorithm will be used.",optional:!0,locked:o,options:{list_options:[{label:"ES384",value:"ES384"},{label:"RS384",value:"RS384"}]},hidden:a},{name:"jwks",type:"textarea",title:"JWKS",description:"The JWKS (including private keys) which will be used to sign the client assertion. If blank, Inferno's default JWKS will be used.",optional:!0,locked:o,hidden:a},{name:"issue_time",title:"Access Token Issue Time",description:"The time that the access token was issued in iso8601 format",optional:!0,locked:o,hidden:a},{name:"expires_in",title:"Token Lifetime",description:"The lifetime of the access token in seconds",optional:!0,locked:o,hidden:a}],l=n.map(function(e){return e.name});i.forEach(function(e,t){if(l.includes(e.name)){var r=n.find(function(t){return t.name===e.name});i[t]=kR(kR({},e),r)}});var s=CR[e];return CR&&e?i.filter(function(e){return null==s?void 0:s.includes(e.name)}):(i.forEach(function(e){return e.hidden=e.hidden||!(null!=s&&s.includes(e.name))}),i)};function PR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PR(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TR(e){return fc("MuiListItem",e)}function RR(e){return fc("MuiListItemSecondaryAction",e)}Jc("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]),Jc("MuiListItemSecondaryAction",["root","disableGutters"]);const MR=qc("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),AR=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,a=i.useContext(mm),l={...n,disableGutters:a.disableGutters},s=(e=>{const{disableGutters:t,classes:n}=e;return mc({root:["root",t&&"disableGutters"]},RR,n)})(l);return(0,Dc.jsx)(MR,{className:cc(s.root,r),ownerState:l,ref:t,...o})});AR.muiName="ListItemSecondaryAction";const LR=AR,jR=qc("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(mu(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${gm.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),$R=qc("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),NR=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:a,component:l,components:s={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:m=!1,disablePadding:h=!1,divider:g=!1,secondaryAction:v,slotProps:y={},slots:b={},...x}=n,w=i.useContext(mm),k=i.useMemo(()=>({dense:f||w.dense||!1,alignItems:r,disableGutters:m}),[r,w.dense,f,m]),S=i.useRef(null),E=i.Children.toArray(o),C=E.length&&Rm(E[E.length-1],["ListItemSecondaryAction"]),I={...n,alignItems:r,dense:k.dense,disableGutters:m,disablePadding:h,divider:g,hasSecondaryAction:C},P=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:l}=e;return mc({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",i&&"divider","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},TR,n)})(I),O=Fu(S,t),T=b.root||s.Root||jR,R=y.root||c.root||{},M={className:cc(P.root,R.className,a),...x};let A=l||"li";return C?(A=M.component||l?A:"div","li"===u&&("li"===A?A="div":"li"===M.component&&(M.component="div")),(0,Dc.jsx)(mm.Provider,{value:k,children:(0,Dc.jsxs)($R,{as:u,className:cc(P.container,d),ref:O,ownerState:I,...p,children:[(0,Dc.jsx)(T,{...R,...!FS(T)&&{as:A,ownerState:{...I,...R.ownerState}},...M,children:E}),E.pop()]})})):(0,Dc.jsx)(mm.Provider,{value:k,children:(0,Dc.jsxs)(T,{...R,as:A,ref:O,...!FS(T)&&{ownerState:{...I,...R.ownerState}},...M,children:[E,v&&(0,Dc.jsx)(LR,{children:v})]})})}),_R=NR;function DR(e){return fc("MuiCardContent",e)}Jc("MuiCardContent",["root"]);const zR=qc("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),FR=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiCardContent"}),{className:r,component:o="div",...a}=n,i={...n,component:o},l=(e=>{const{classes:t}=e;return mc({root:["root"]},DR,t)})(i);return(0,Dc.jsx)(zR,{as:o,className:cc(l.root,r),ownerState:i,ref:t,...a})}),BR=FR,WR=e=>{const t=i.useRef({});return i.useEffect(()=>{t.current=e}),t.current};function HR(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const VR=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=i?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=HR(c));const u=c?e.filter(e=>{let r=(a||s)(e);return n&&(r=r.toLowerCase()),t&&(r=HR(r)),"start"===o?r.startsWith(c):r.includes(c)}):e;return"number"==typeof r?u.slice(0,r):u}}(),qR=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),UR=[];function KR(e,t,n){if(t||null==e)return"";const r=n(e);return"string"==typeof r?r:""}function GR(e){return fc("MuiListSubheader",e)}Jc("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const YR=qc("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Wc(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(mu(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),XR=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:a="li",disableGutters:i=!1,disableSticky:l=!1,inset:s=!1,...c}=n,u={...n,color:o,component:a,disableGutters:i,disableSticky:l,inset:s},d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e;return mc({root:["root","default"!==n&&`color${Wc(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]},GR,t)})(u);return(0,Dc.jsx)(YR,{as:a,className:cc(d.root,r),ref:t,ownerState:u,...c})});XR&&(XR.muiSkipListHighlight=!0);const QR=XR,JR=Jd((0,Dc.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function ZR(e){return fc("MuiChip",e)}const eM=Jc("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),tM=qc("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:l,variant:s}=n;return[{[`& .${eM.avatar}`]:t.avatar},{[`& .${eM.avatar}`]:t[`avatar${Wc(l)}`]},{[`& .${eM.avatar}`]:t[`avatarColor${Wc(r)}`]},{[`& .${eM.icon}`]:t.icon},{[`& .${eM.icon}`]:t[`icon${Wc(l)}`]},{[`& .${eM.icon}`]:t[`iconColor${Wc(o)}`]},{[`& .${eM.deleteIcon}`]:t.deleteIcon},{[`& .${eM.deleteIcon}`]:t[`deleteIcon${Wc(l)}`]},{[`& .${eM.deleteIcon}`]:t[`deleteIconColor${Wc(r)}`]},{[`& .${eM.deleteIcon}`]:t[`deleteIcon${Wc(s)}Color${Wc(r)}`]},t.root,t[`size${Wc(l)}`],t[`color${Wc(r)}`],a&&t.clickable,a&&"default"!==r&&t[`clickableColor${Wc(r)})`],i&&t.deletable,i&&"default"!==r&&t[`deletableColor${Wc(r)}`],t[s],t[`${s}${Wc(r)}`]]}})(mu(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${eM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${eM.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${eM.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${eM.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${eM.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${eM.icon}`]:{marginLeft:5,marginRight:-6},[`& .${eM.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:_i(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:_i(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${eM.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${eM.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(hu(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${eM.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:_i(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${eM.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${eM.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${eM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_i(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(hu(["dark"])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${eM.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${eM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_i(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(hu(["dark"])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${eM.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${eM.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${eM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${eM.avatar}`]:{marginLeft:4},[`& .${eM.avatarSmall}`]:{marginLeft:2},[`& .${eM.icon}`]:{marginLeft:4},[`& .${eM.iconSmall}`]:{marginLeft:2},[`& .${eM.deleteIcon}`]:{marginRight:5},[`& .${eM.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:_i(e.palette[t].main,.7)}`,[`&.${eM.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${eM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:_i(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${eM.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:_i(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),nM=qc("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Wc(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function rM(e){return"Backspace"===e.key||"Delete"===e.key}const oM=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:l="default",component:s,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:f,onDelete:m,onKeyDown:h,onKeyUp:g,size:v="medium",variant:y="filled",tabIndex:b,skipFocusWhenDisabled:x=!1,...w}=n,k=i.useRef(null),S=Fu(k,t),E=e=>{e.stopPropagation(),m&&m(e)},C=!(!1===a||!f)||a,I=C||m?bd:s||"div",P={...n,component:I,disabled:u,size:v,color:l,iconColor:i.isValidElement(d)&&d.props.color||l,onDelete:!!m,clickable:C,variant:y},O=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:l,variant:s}=e;return mc({root:["root",s,n&&"disabled",`size${Wc(r)}`,`color${Wc(o)}`,l&&"clickable",l&&`clickableColor${Wc(o)}`,i&&"deletable",i&&`deletableColor${Wc(o)}`,`${s}${Wc(o)}`],label:["label",`label${Wc(r)}`],avatar:["avatar",`avatar${Wc(r)}`,`avatarColor${Wc(o)}`],icon:["icon",`icon${Wc(r)}`,`iconColor${Wc(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Wc(r)}`,`deleteIconColor${Wc(o)}`,`deleteIcon${Wc(s)}Color${Wc(o)}`]},ZR,t)})(P),T=I===bd?{component:s||"div",focusVisibleClassName:O.focusVisible,...m&&{disableRipple:!0}}:{};let R=null;m&&(R=c&&i.isValidElement(c)?i.cloneElement(c,{className:cc(c.props.className,O.deleteIcon),onClick:E}):(0,Dc.jsx)(JR,{className:cc(O.deleteIcon),onClick:E}));let M=null;r&&i.isValidElement(r)&&(M=i.cloneElement(r,{className:cc(O.avatar,r.props.className)}));let A=null;return d&&i.isValidElement(d)&&(A=i.cloneElement(d,{className:cc(O.icon,d.props.className)})),(0,Dc.jsxs)(tM,{as:I,className:cc(O.root,o),disabled:!(!C||!u)||void 0,onClick:f,onKeyDown:e=>{e.currentTarget===e.target&&rM(e)&&e.preventDefault(),h&&h(e)},onKeyUp:e=>{e.currentTarget===e.target&&m&&rM(e)&&m(e),g&&g(e)},ref:S,tabIndex:x&&u?-1:b,ownerState:P,...T,...w,children:[M||A,(0,Dc.jsx)(nM,{className:cc(O.label),ownerState:P,children:p}),R]})}),aM=oM;function iM(e){return fc("MuiAutocomplete",e)}const lM=Jc("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var sM,cM;const uM=qc("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:l}=n;return[{[`& .${lM.tag}`]:t.tag},{[`& .${lM.tag}`]:t[`tagSize${Wc(l)}`]},{[`& .${lM.inputRoot}`]:t.inputRoot},{[`& .${lM.input}`]:t.input},{[`& .${lM.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${lM.focused} .${lM.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${lM.clearIndicator}`]:{visibility:"visible"}},[`& .${lM.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${lM.inputRoot}`]:{[`.${lM.hasPopupIcon}&, .${lM.hasClearIcon}&`]:{paddingRight:30},[`.${lM.hasPopupIcon}.${lM.hasClearIcon}&`]:{paddingRight:56},[`& .${lM.input}`]:{width:0,minWidth:30}},[`& .${UI.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${UI.root}.${NI.sizeSmall}`]:{[`& .${UI.input}`]:{padding:"2px 4px 3px 0"}},[`& .${lP.root}`]:{padding:9,[`.${lM.hasPopupIcon}&, .${lM.hasClearIcon}&`]:{paddingRight:39},[`.${lM.hasPopupIcon}.${lM.hasClearIcon}&`]:{paddingRight:65},[`& .${lM.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${lM.endAdornment}`]:{right:9}},[`& .${lP.root}.${NI.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${lM.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${JI.root}`]:{paddingTop:19,paddingLeft:8,[`.${lM.hasPopupIcon}&, .${lM.hasClearIcon}&`]:{paddingRight:39},[`.${lM.hasPopupIcon}.${lM.hasClearIcon}&`]:{paddingRight:65},[`& .${JI.input}`]:{padding:"7px 4px"},[`& .${lM.endAdornment}`]:{right:9}},[`& .${JI.root}.${NI.sizeSmall}`]:{paddingBottom:1,[`& .${JI.input}`]:{padding:"2.5px 4px"}},[`& .${NI.hiddenLabel}`]:{paddingTop:8},[`& .${JI.root}.${NI.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${lM.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${JI.root}.${NI.hiddenLabel}.${NI.sizeSmall}`]:{[`& .${lM.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${lM.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${lM.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${lM.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${lM.inputRoot}`]:{flexWrap:"wrap"}}}]}),dM=qc("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),pM=qc(Kd,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),fM=qc(Kd,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),mM=qc(Gf,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lM.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(mu(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),hM=qc(Lu,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(mu(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),gM=qc("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(mu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),vM=qc("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(mu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),yM=qc("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(mu(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${lM.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${lM.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${lM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lM.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${lM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),bM=qc(QR,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(mu(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),xM=qc("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${lM.option}`]:{paddingLeft:24}}),wM=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:l=!1,ChipProps:s,className:c,clearIcon:u=sM||(sM=(0,Dc.jsx)(pk,{fontSize:"small"})),clearOnBlur:d=!n.freeSolo,clearOnEscape:p=!1,clearText:f="Clear",closeText:m="Close",componentsProps:h,defaultValue:g=(n.multiple?[]:null),disableClearable:v=!1,disableCloseOnSelect:y=!1,disabled:b=!1,disabledItemsFocusable:x=!1,disableListWrap:w=!1,disablePortal:k=!1,filterOptions:S,filterSelectedOptions:E=!1,forcePopupIcon:C="auto",freeSolo:I=!1,fullWidth:P=!1,getLimitTagsText:O=e=>`+${e}`,getOptionDisabled:T,getOptionKey:R,getOptionLabel:M,isOptionEqualToValue:A,groupBy:L,handleHomeEndKeys:j=!n.freeSolo,id:$,includeInputInList:N=!1,inputValue:_,limitTags:D=-1,ListboxComponent:z,ListboxProps:F,loading:B=!1,loadingText:W="Loading…",multiple:H=!1,noOptionsText:V="No options",onChange:q,onClose:U,onHighlightChange:K,onInputChange:G,onOpen:Y,open:X,openOnFocus:Q=!1,openText:J="Open",options:Z,PaperComponent:ee,PopperComponent:te,popupIcon:ne=cM||(cM=(0,Dc.jsx)(BP,{})),readOnly:re=!1,renderGroup:oe,renderInput:ae,renderOption:ie,renderTags:le,selectOnFocus:se=!n.freeSolo,size:ce="medium",slots:ue={},slotProps:de={},value:pe,...fe}=n,{getRootProps:me,getInputProps:he,getInputLabelProps:ge,getPopupIndicatorProps:ve,getClearProps:ye,getTagProps:be,getListboxProps:xe,getOptionProps:we,value:ke,dirty:Se,expanded:Ee,id:Ce,popupOpen:Ie,focused:Pe,focusedTag:Oe,anchorEl:Te,setAnchorEl:Re,inputValue:Me,groupedOptions:Ae}=function(e){const{unstable_isActiveElementInListbox:t=qR,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?UR:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:h=!1,disableListWrap:g=!1,filterOptions:v=VR,filterSelectedOptions:y=!1,freeSolo:b=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:k=e=>e.label??e,groupBy:S,handleHomeEndKeys:E=!e.freeSolo,id:C,includeInputInList:I=!1,inputValue:P,isOptionEqualToValue:O=(e,t)=>e===t,multiple:T=!1,onChange:R,onClose:M,onHighlightChange:A,onInputChange:L,onOpen:j,open:$,openOnFocus:N=!1,options:_,readOnly:D=!1,selectOnFocus:z=!e.freeSolo,value:F}=e,B=Nu(C);let W=k;W=e=>{const t=k(e);return"string"!=typeof t?String(t):t};const H=i.useRef(!1),V=i.useRef(!0),q=i.useRef(null),U=i.useRef(null),[K,G]=i.useState(null),[Y,X]=i.useState(-1),Q=o?0:-1,J=i.useRef(Q),Z=i.useRef(KR(d??F,T,W)).current,[ee,te]=Yf({controlled:F,default:d,name:u}),[ne,re]=Yf({controlled:P,default:Z,name:u,state:"inputValue"}),[oe,ae]=i.useState(!1),ie=i.useCallback((e,t,n)=>{if(!(T?ee.length<t.length:null!==t)&&!s)return;const r=KR(t,T,W);ne!==r&&(re(r),L&&L(e,r,n))},[W,ne,T,L,re,s,ee]),[le,se]=Yf({controlled:$,default:!1,name:u,state:"open"}),[ce,ue]=i.useState(!0),de=!T&&null!=ee&&ne===W(ee),pe=le&&!D,fe=pe?v(_.filter(e=>!y||!(T?ee:[ee]).some(t=>null!==t&&O(e,t))),{inputValue:de&&ce?"":ne,getOptionLabel:W}):[],me=WR({filteredOptions:fe,value:ee,inputValue:ne});i.useEffect(()=>{const e=ee!==me.value;oe&&!e||b&&!e||ie(null,ee,"reset")},[ee,ie,oe,me.value,b]);const he=le&&fe.length>0&&!D,ge=Wu(e=>{-1===e?q.current.focus():K.querySelector(`[data-tag-index="${e}"]`).focus()});i.useEffect(()=>{T&&Y>ee.length-1&&(X(-1),ge(-1))},[ee,T,Y,ge]);const ve=Wu(({event:e,index:t,reason:r})=>{if(J.current=t,-1===t?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${B}-option-${t}`),A&&["mouse","keyboard","touch"].includes(r)&&A(e,-1===t?null:fe[t],r),!U.current)return;const o=U.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let a=U.current;if("listbox"!==U.current.getAttribute("role")&&(a=U.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=U.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${n}-focused`),"keyboard"===r&&i.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=i,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(S?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(S?1.3:0))}}),ye=Wu(({event:e,diff:t,direction:n="next",reason:o})=>{if(!pe)return;const a=function(e,t){if(!U.current||e<0||e>=fe.length)return-1;let n=e;for(;;){const r=U.current.querySelector(`[data-option-index="${n}"]`),o=!h&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%fe.length:(n-1+fe.length)%fe.length,n===e)return-1}}((()=>{const e=fe.length-1;if("reset"===t)return Q;if("start"===t)return 0;if("end"===t)return e;const n=J.current+t;return n<0?-1===n&&I?-1:g&&-1!==J.current||Math.abs(t)>1?0:e:n>e?n===e+1&&I?-1:g||Math.abs(t)>1?e:0:n})(),n);if(ve({index:a,reason:o,event:e}),r&&"reset"!==t)if(-1===a)q.current.value=ne;else{const e=W(fe[a]);q.current.value=e,0===e.toLowerCase().indexOf(ne.toLowerCase())&&ne.length>0&&q.current.setSelectionRange(ne.length,e.length)}}),be=i.useCallback(()=>{if(!pe)return;const e=(()=>{if(-1!==J.current&&me.filteredOptions&&me.filteredOptions.length!==fe.length&&me.inputValue===ne&&(T?ee.length===me.value.length&&me.value.every((e,t)=>W(ee[t])===W(e)):(e=me.value,t=ee,(e?W(e):"")===(t?W(t):"")))){const e=me.filteredOptions[J.current];if(e)return fe.findIndex(t=>W(t)===W(e))}var e,t;return-1})();if(-1!==e)return void(J.current=e);const t=T?ee[0]:ee;if(0!==fe.length&&null!=t){if(U.current){if(null!=t){const e=fe[J.current];if(T&&e&&-1!==ee.findIndex(t=>O(e,t)))return;const n=fe.findIndex(e=>O(e,t));return void(-1===n?ye({diff:"reset"}):ve({index:n}))}J.current>=fe.length-1?ve({index:fe.length-1}):ve({index:J.current})}}else ye({diff:"reset"})},[fe.length,!T&&ee,y,ye,ve,pe,ne,T]),xe=Wu(e=>{Ff(U,e),e&&be()});i.useEffect(()=>{be()},[be]);const we=e=>{le||(se(!0),ue(!0),j&&j(e))},ke=(e,t)=>{le&&(se(!1),M&&M(e,t))},Se=(e,t,n,r)=>{if(T){if(ee.length===t.length&&ee.every((e,n)=>e===t[n]))return}else if(ee===t)return;R&&R(e,t,n,r),te(t)},Ee=i.useRef(!1),Ce=(e,t,n="selectOption",r="options")=>{let o=n,a=t;if(T){a=Array.isArray(ee)?ee.slice():[];const e=a.findIndex(e=>O(t,e));-1===e?a.push(t):"freeSolo"!==r&&(a.splice(e,1),o="removeOption")}ie(e,a,o),Se(e,a,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||ke(e,o),(!0===l||"touch"===l&&Ee.current||"mouse"===l&&!Ee.current)&&q.current.blur()},Ie=(e,t)=>{if(!T)return;""===ne&&ke(e,"toggleInput");let n=Y;-1===Y?""===ne&&"previous"===t&&(n=ee.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===ee.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ee.length||"previous"===t&&-1===n)return-1;const e=K.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),X(n),ge(n)},Pe=e=>{H.current=!0,re(""),L&&L(e,"","clear"),Se(e,T?[]:null,"clear")},Oe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===Y||["ArrowLeft","ArrowRight"].includes(t.key)||(X(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":pe&&E&&(t.preventDefault(),ye({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":pe&&E&&(t.preventDefault(),ye({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ye({diff:-5,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"PageDown":t.preventDefault(),ye({diff:5,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowDown":t.preventDefault(),ye({diff:1,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowUp":t.preventDefault(),ye({diff:-1,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"ArrowLeft":Ie(t,"previous");break;case"ArrowRight":Ie(t,"next");break;case"Enter":if(-1!==J.current&&pe){const e=fe[J.current],n=!!x&&x(e);if(t.preventDefault(),n)return;Ce(t,e,"selectOption"),r&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else b&&""!==ne&&!1===de&&(T&&t.preventDefault(),Ce(t,ne,"createOption","freeSolo"));break;case"Escape":pe?(t.preventDefault(),t.stopPropagation(),ke(t,"escape")):c&&(""!==ne||T&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Pe(t));break;case"Backspace":if(T&&!D&&""===ne&&ee.length>0){const e=-1===Y?ee.length-1:Y,n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})}break;case"Delete":if(T&&!D&&""===ne&&ee.length>0&&-1!==Y){const e=Y,n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})}}},Te=e=>{ae(!0),N&&!H.current&&we(e)},Re=e=>{t(U)?q.current.focus():(ae(!1),V.current=!0,H.current=!1,a&&-1!==J.current&&pe?Ce(e,fe[J.current],"blur"):a&&b&&""!==ne?Ce(e,ne,"blur","freeSolo"):s&&ie(e,ee,"blur"),ke(e,"blur"))},Me=e=>{const t=e.target.value;ne!==t&&(re(t),ue(!1),L&&L(e,t,"input")),""===t?p||T||Se(e,null,"clear"):we(e)},Ae=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&ve({event:e,index:t,reason:"mouse"})},Le=e=>{ve({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ee.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ce(e,fe[t],"selectOption"),Ee.current=!1},$e=e=>t=>{const n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})},Ne=e=>{le?ke(e,"toggleInput"):we(e)},_e=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==B&&e.preventDefault()},De=e=>{e.currentTarget.contains(e.target)&&(q.current.focus(),z&&V.current&&q.current.selectionEnd-q.current.selectionStart===0&&q.current.select(),V.current=!1)},ze=e=>{m||""!==ne&&le||Ne(e)};let Fe=b&&ne.length>0;Fe=Fe||(T?ee.length>0:null!==ee);let Be=fe;return S&&(new Map,Be=fe.reduce((e,t,n)=>{const r=S(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),m&&oe&&Re(),{getRootProps:(e={})=>({...e,onKeyDown:Oe(e),onMouseDown:_e,onClick:De}),getInputLabelProps:()=>({id:`${B}-label`,htmlFor:B}),getInputProps:()=>({id:B,value:ne,onBlur:Re,onFocus:Te,onChange:Me,onMouseDown:ze,"aria-activedescendant":pe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":he?`${B}-listbox`:void 0,"aria-expanded":he,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!D&&{onDelete:$e(e)}}),getListboxProps:()=>({role:"listbox",id:`${B}-listbox`,"aria-labelledby":`${B}-label`,ref:xe,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(T?ee:[ee]).some(e=>null!=e&&O(t,e)),r=!!x&&x(t);return{key:w?.(t)??W(t),tabIndex:-1,role:"option",id:`${B}-option-${e}`,onMouseMove:Ae,onClick:je,onTouchStart:Le,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:B,inputValue:ne,value:ee,dirty:Fe,expanded:pe&&K,popupOpen:pe,focused:oe||-1!==Y,anchorEl:K,setAnchorEl:G,focusedTag:Y,groupedOptions:Be}}({...n,componentName:"Autocomplete"}),Le=!v&&!b&&Se&&!re,je=(!I||!0===C)&&!1!==C,{onMouseDown:$e}=he(),{ref:Ne,..._e}=xe(),De=M||(e=>e.label??e),ze={...n,disablePortal:k,expanded:Ee,focused:Pe,fullWidth:P,getOptionLabel:De,hasClearIcon:Le,hasPopupIcon:je,inputFocused:-1===Oe,popupOpen:Ie,size:ce},Fe=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:l,inputFocused:s,popupOpen:c,size:u}=e;return mc({root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${Wc(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},iM,t)})(ze),Be={slots:{paper:ee,popper:te,...ue},slotProps:{chip:s,listbox:F,...h,...de}},[We,He]=Qf("listbox",{elementType:yM,externalForwardedProps:Be,ownerState:ze,className:Fe.listbox,additionalProps:_e,ref:Ne}),[Ve,qe]=Qf("paper",{elementType:Lu,externalForwardedProps:Be,ownerState:ze,className:Fe.paper}),[Ue,Ke]=Qf("popper",{elementType:Gf,externalForwardedProps:Be,ownerState:ze,className:Fe.popper,additionalProps:{disablePortal:k,style:{width:Te?Te.clientWidth:null},role:"presentation",anchorEl:Te,open:Ie}});let Ge;if(H&&ke.length>0){const e=e=>({className:Fe.tag,disabled:b,...be(e)});Ge=le?le(ke,e,ze):ke.map((t,n)=>{const{key:r,...o}=e({index:n});return(0,Dc.jsx)(aM,{label:De(t),size:ce,...o,...Be.slotProps.chip},r)})}if(D>-1&&Array.isArray(Ge)){const e=Ge.length-D;!Pe&&e>0&&(Ge=Ge.splice(0,D),Ge.push((0,Dc.jsx)("span",{className:Fe.tag,children:O(e)},Ge.length)))}const Ye=oe||(e=>(0,Dc.jsxs)("li",{children:[(0,Dc.jsx)(bM,{className:Fe.groupLabel,ownerState:ze,component:"div",children:e.group}),(0,Dc.jsx)(xM,{className:Fe.groupUl,ownerState:ze,children:e.children})]},e.key)),Xe=ie||((e,t)=>{const{key:n,...r}=e;return(0,Dc.jsx)("li",{...r,children:De(t)},n)}),Qe=(e,t)=>{const n=we({option:e,index:t});return Xe({...n,className:Fe.option},e,{selected:n["aria-selected"],index:t,inputValue:Me},ze)},Je=Be.slotProps.clearIndicator,Ze=Be.slotProps.popupIndicator;return(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)(uM,{ref:t,className:cc(Fe.root,c),ownerState:ze,...me(fe),children:ae({id:Ce,disabled:b,fullWidth:!0,size:"small"===ce?"small":void 0,InputLabelProps:ge(),InputProps:{ref:Re,className:Fe.inputRoot,startAdornment:Ge,onMouseDown:e=>{e.target===e.currentTarget&&$e(e)},...(Le||je)&&{endAdornment:(0,Dc.jsxs)(dM,{className:Fe.endAdornment,ownerState:ze,children:[Le?(0,Dc.jsx)(pM,{...ye(),"aria-label":f,title:f,ownerState:ze,...Je,className:cc(Fe.clearIndicator,Je?.className),children:u}):null,je?(0,Dc.jsx)(fM,{...ve(),disabled:b,"aria-label":Ie?m:J,title:Ie?m:J,ownerState:ze,...Ze,className:cc(Fe.popupIndicator,Ze?.className),children:ne}):null]})}},inputProps:{className:Fe.input,disabled:b,readOnly:re,...he()}})}),Te?(0,Dc.jsx)(mM,{as:Ue,...Ke,children:(0,Dc.jsxs)(hM,{as:Ve,...qe,children:[B&&0===Ae.length?(0,Dc.jsx)(gM,{className:Fe.loading,ownerState:ze,children:W}):null,0!==Ae.length||I||B?null:(0,Dc.jsx)(vM,{className:Fe.noOptions,ownerState:ze,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}),Ae.length>0?(0,Dc.jsx)(We,{as:z,...He,children:Ae.map((e,t)=>L?Ye({key:e.key,group:e.group,children:e.options.map((t,n)=>Qe(t,e.index+n))}):Qe(e,t))}):null]})}):null]})}),kM=wM,SM=Jd((0,Dc.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock"),EM=Vs()(function(e){return{cancelButton:{position:"absolute",right:8,top:8},inputField:{marginTop:"0 !important","& > label.MuiInputLabel-shrink":{fontWeight:600,color:e.palette.common.grayDarkest},"& > label.Mui-focused":{color:e.palette.secondary.main},"& > label.Mui-error":{color:e.palette.error.main}},inputLabel:{color:e.palette.common.grayDark,fontWeight:600},inputDescription:{fontSize:"0.95rem",color:e.palette.common.gray,"& > p":{margin:"0 0 8px 0 !important",lineHeight:"1.75rem"},"& .Mui-disabled":{color:e.palette.common.grayDark}},lockedIcon:{marginLeft:"5px",verticalAlign:"text-bottom"},textarea:{resize:"vertical",maxHeight:"400px",overflow:"auto !important"},authCard:{width:"100%"},serialInput:{height:"max-content",fontFamily:"monospace"},dialogActions:{display:"flex",justifyContent:"space-between"},toggleButtonGroupContainer:{display:"flex",border:"1px solid ".concat(e.palette.divider),flexWrap:"wrap"},toggleButtonGroup:{flexGrow:1,"& .MuiToggleButtonGroup-grouped":{margin:e.spacing(.5),border:0,"& .Mui-disabled":{border:0},"& :not(:first-of-type), :first-of-type":{borderRadius:e.shape.borderRadius}}},toggleButton:{color:e.palette.common.grayDark,"& :hover, :focus-within":{backgroundColor:e.palette.common.grayLight,fontWeight:"bolder"},"& .Mui-selected":{backgroundColor:"unset",border:"1px solid ".concat(e.palette.secondary.main," !important"),color:e.palette.secondary.main,fontWeight:"bolder"}}}}),CM=Jd((0,Dc.jsx)("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM12 17.3c-.72 0-1.3-.58-1.3-1.3s.58-1.3 1.3-1.3 1.3.58 1.3 1.3-.58 1.3-1.3 1.3m1-4.3h-2V7h2z"}),"Report"),IM=function(){return i.createElement(dm,{title:"Missing value for required input"},i.createElement(CM,{color:"error","aria-hidden":!1,tabIndex:0,sx:{marginRight:"4px",verticalAlign:"bottom"}}))},PM=function(e){var t,n=e.input,r=e.isMissingInput,o=void 0!==r&&r,a=EM().classes,l=n.title||n.name,s=!n.optional&&"radio"!==n.type&&("checkbox"!==n.type||null!==(t=n.options)&&void 0!==t&&null!==(t=t.list_options)&&void 0!==t&&t.length)?" (required)":"",c=n.locked&&i.createElement(SM,{fontSize:"small",className:a.lockedIcon});return i.createElement(i.Fragment,null,o&&i.createElement(IM,null),"".concat(l).concat(s),c)},OM=function(e){var t,n=e.input,r=e.index,o=e.inputsMap,a=e.setInputsMap,l=e.disableClear,s=EM().classes,c=qC(function(e){return e.readOnly});return i.createElement(_R,null,i.createElement($m,{component:"fieldset",id:"input".concat(r,"_control"),tabIndex:0,disabled:n.locked||c,"aria-disabled":n.locked||c,required:!n.optional,fullWidth:!0,className:s.inputField},i.createElement(Hm,{htmlFor:"input".concat(r,"_autocomplete"),className:s.inputLabel},i.createElement(PM,{input:n})),n.description&&i.createElement(lx,{className:s.inputDescription,remarkPlugins:[ek]},n.description),i.createElement(kM,{id:"input".concat(r,"_autocomplete"),options:(null===(t=n.options)||void 0===t?void 0:t.list_options)||[],defaultValue:function(){var e,t=null===(e=n.options)||void 0===e?void 0:e.list_options;if(!t)return null;var r=t[0];if(n.default&&"string"==typeof n.default){var o=t.find(function(e){return e.value===n.default});o&&(r=o)}return r}(),tabIndex:0,disabled:n.locked||c,"aria-disabled":n.locked||c,disableClearable:l,isOptionEqualToValue:function(e,t){return e.value===t.value},renderInput:function(e){return i.createElement(JP,vc({},e,{className:s.inputField,required:!n.optional,color:"secondary",variant:"standard",fullWidth:!0}))},onChange:function(e,t){var r=null==t?void 0:t.value;o.set(n.name,r),a(new Map(o))}})))},TM=function(e){var t,n,r=e.input,o=e.index,a=e.inputsMap,l=e.setInputsMap,s=null===(t=r.options)||void 0===t||null===(t=t.components)||void 0===t?void 0:t.find(function(e){return"auth_type"===e.name}),c=s||{name:"auth_type",default:"public"},u=(null==s||null===(n=s.options)||void 0===n?void 0:n.list_options)||[{label:"Public",value:"public"},{label:"Confidential Symmetric",value:"symmetric"},{label:"Confidential Asymmetric",value:"asymmetric"},{label:"Backend Services",value:"backend_services"}],d={name:"auth_type",type:"select",title:"Auth Type",description:r.description,default:function(){var e=c.default||u[0].value||"public";if(r.value&&"string"==typeof r.value){var t=JSON.parse(r.value);t.auth_type&&(e=t.auth_type)}return e}(),optional:c.optional||r.optional,locked:c.locked||r.locked,options:{list_options:u}};return i.createElement(OM,{input:d,index:o,inputsMap:a,setInputsMap:l,key:"input-".concat(o),disableClear:!0})};function RM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RM(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const AM=function(e){var t,n,r,o,a=e.mode,l=e.input,s=e.index,c=e.inputsMap,u=e.setInputsMap,d=EM().classes,p=qC(function(e){return e.readOnly}),f=lc(i.useState(new Map),2),m=f[0],h=f[1],g=lc(i.useState(!1),2),v=g[0],y=g[1],b=null===(t=l.options)||void 0===t||null===(t=t.components)||void 0===t?void 0:t.find(function(e){return"auth_type"===e.name}),x=O(l.value).auth_type,w=null!=b&&null!==(n=b.options)&&void 0!==n&&n.list_options&&(null==b||null===(r=b.options)||void 0===r||null===(r=r.list_options)||void 0===r?void 0:r.length)>0?null==b||null===(o=b.options)||void 0===o?void 0:o.list_options[0].value:void 0,k=lc(i.useState(x||(null==b?void 0:b.default)||w||"public"),2),S=k[0],E=k[1],C=lc(i.useState(T(a)),2),I=C[0],P=C[1];function O(e){return function(e){if("string"!=typeof e)return!1;var t=e;try{t=JSON.parse(e)}catch(e){return!1}return!!t&&"object"===ep(t)}(e)?JSON.parse(e):{}}function T(e){var t,n;return"access"===e?IR(S,m,(null===(t=l.options)||void 0===t?void 0:t.components)||[],l.optional||!1,l.locked||!1):"auth"===e?ER(S,m,(null===(n=l.options)||void 0===n?void 0:n.components)||[],l.optional||!1,l.locked||!1):[]}(0,i.useEffect)(function(){P(I.map(function(e){var t,n;return"radio"!==e.type||e.default||e.value||null===(t=e.options)||void 0===t||!t.list_options||(e.default=null===(n=e.options)||void 0===n?void 0:n.list_options[0].value),e}));var e=R();E(e.auth_type||S),m.set("auth_type",e.auth_type||S),I.forEach(function(t){m.set(t.name,e[t.name]||"")}),y(!0)},[]),(0,i.useEffect)(function(){var e=O(c.get(l.name)),t=new Map(m);Object.entries(e).forEach(function(e){var n=lc(e,2),r=n[0],o=n[1];t.set(r,o)}),h(t)},[c.get(l.name)]),(0,i.useEffect)(function(){P(T(a)),M(m)},[m,v]);var R=function(){var e=I.reduce(function(e,t){return MM(MM({},e),{},tp({},t.name,t.default))},{}),t=O(l.default),n=O(l.value),r=O(c.get(l.name));return MM(MM(MM(MM({},e),t),n),r)},M=function(e){if(h(e),I.forEach(function(t){var n,r;"radio"===t.type&&!e.get(t.name)&&null!==(n=t.options)&&void 0!==n&&n.list_options&&e.set(t.name,null===(r=t.options)||void 0===r?void 0:r.list_options[0].value)}),v){var t=new Map;m.forEach(function(e,n){e&&t.set(n,e)});var n=JSON.stringify(Object.fromEntries(t));if("access"===a){var r=R(),o=Object.fromEntries(m),i=MM(MM({},r),o);n=JSON.stringify(i)}c.set(l.name,n),u(new Map(c))}};return i.createElement(_R,null,i.createElement(vS,{variant:"outlined",tabIndex:0,className:d.authCard,sx:l.locked||p?{}:{borderColor:Mh.palette.common.gray}},i.createElement(BR,null,i.createElement(gP,{tabIndex:0,required:!l.optional,disabled:l.locked||p,"aria-disabled":l.locked||p,className:d.inputLabel},i.createElement(PM,{input:l})),l.description&&i.createElement(lx,{className:d.inputDescription,remarkPlugins:[ek]},l.description),i.createElement(AS,null,i.createElement(TM,{input:l,index:s,inputsMap:m,setInputsMap:function(e){E(e.get("auth_type")),M(e)},key:"input-".concat(s)})),i.createElement(ZM,{inputs:I,inputsMap:m,setInputsMap:M}))))},LM=Jd((0,Dc.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),jM=Jd((0,Dc.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),$M=Jd((0,Dc.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function NM(e){return fc("MuiCheckbox",e)}const _M=Jc("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),DM=qc(sh,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Wc(n.size)}`],"default"!==n.color&&t[`color${Wc(n.color)}`]]}})(mu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{[`&.${_M.checked}, &.${_M.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${_M.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),zM=(0,Dc.jsx)(jM,{}),FM=(0,Dc.jsx)(LM,{}),BM=(0,Dc.jsx)($M,{}),WM=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiCheckbox"}),{checkedIcon:r=zM,color:o="primary",icon:a=FM,indeterminate:l=!1,indeterminateIcon:s=BM,inputProps:c,size:u="medium",disableRipple:d=!1,className:p,slots:f={},slotProps:m={},...h}=n,g=l?s:a,v=l?s:r,y={...n,disableRipple:d,color:o,indeterminate:l,size:u},b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a=mc({root:["root",n&&"indeterminate",`color${Wc(r)}`,`size${Wc(o)}`]},NM,t);return{...t,...a}})(y),x=m.input??c,[w,k]=Qf("root",{ref:t,elementType:DM,className:cc(b.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:m,...h},ownerState:y,additionalProps:{type:"checkbox",icon:i.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:i.cloneElement(v,{fontSize:v.props.fontSize??u}),disableRipple:d,slots:f,slotProps:{input:Xk("function"==typeof x?x(y):x,{"data-indeterminate":l})}}});return(0,Dc.jsx)(w,{...k,classes:b})}),HM=WM;function VM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VM(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const UM=function(e){var t,n=e.input,r=e.index,o=e.inputsMap,a=e.setInputsMap,l=EM().classes,s=qC(function(e){return e.readOnly}),c=lc(i.useState(!1),2),u=c[0],d=c[1],p=lc(i.useState(function(){var e,t=[];try{t=JSON.parse(o.get(n.name))}catch(e){t=Array.isArray(o.get(n.name))?o.get(n.name):[o.get(n.name)]}var r=t||n.default||[],a=null===(e=n.options)||void 0===e?void 0:e.list_options,i={};return a&&a.length>0&&(i=a.reduce(function(e,t){return e[t.value]=!!Array.isArray(r)&&r.includes(t.value),e},{})),i}),2),f=p[0],m=p[1],h=u&&!n.optional&&"[]"===o.get(n.name);(0,i.useEffect)(function(){o.set(n.name,v(f)),a(new Map(o),!1)},[]);var g=function(e){var t=qM(qM({},f),{},tp({},e.target.name,e.target.checked));o.set(n.name,v(t)),a(new Map(o)),m(t),d(!0)},v=function(e){var t=Object.entries(e).filter(function(e){return!0===lc(e,2)[1]}).map(function(e){return lc(e,1)[0]});return JSON.stringify(t)};return i.createElement(_R,null,i.createElement($m,{component:"fieldset",id:"requirement".concat(r,"_input"),tabIndex:0,disabled:n.locked||s,"aria-disabled":n.locked||s,required:!n.optional,error:h,fullWidth:!0,className:l.inputField},i.createElement(Hm,{className:l.inputLabel},i.createElement(PM,{input:n,isMissingInput:h})),n.description&&i.createElement(lx,{className:l.inputDescription,remarkPlugins:[ek]},n.description),i.createElement(Km,{"aria-label":"".concat(n.name,"-checkboxes-group")},null===(t=n.options)||void 0===t||null===(t=t.list_options)||void 0===t?void 0:t.map(function(e,t){return i.createElement(rh,{control:i.createElement(HM,{size:"small",color:"secondary",name:e.value,tabIndex:0,disabled:n.locked||!!e.locked||s,"aria-disabled":n.locked||s,checked:f[e.value]||!1,onBlur:function(e){e.currentTarget===e.target&&d(!0)},onChange:g}),label:e.label,key:"checkbox-".concat(t)})}))))};function KM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KM(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const YM=function(e){var t=e.input,n=e.index,r=e.inputsMap,o=e.setInputsMap,a=EM().classes,l=qC(function(e){return e.readOnly}),s=lc(i.useState({}),2),c=s[0],u=s[1],d=GM({access_token:"",refresh_token:"",expires_in:"",client_id:"",client_secret:"",token_url:""},JSON.parse(r.get(t.name)||"{}")),p=!!d.refresh_token,f=[{name:"access_token",title:"Access Token",optional:t.optional},{name:"refresh_token",title:"Refresh Token (will automatically refresh if available)",optional:!0},{name:"token_url",title:"Token Endpoint",hidden:!p},{name:"client_id",title:"Client ID",hidden:!p},{name:"client_secret",title:"Client Secret",hidden:!p,optional:!0},{name:"expires_in",title:"Expires in (seconds)",hidden:!p,optional:!0}],m=function(e){return c[e.name]&&!e.optional&&!d[e.name]};return i.createElement(_R,null,i.createElement(vS,{variant:"outlined",className:a.authCard,sx:t.locked||l?{}:{borderColor:Mh.palette.common.gray}},i.createElement(BR,null,i.createElement(gP,{required:!t.optional,tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,className:a.inputLabel},i.createElement(PM,{input:t})),t.description&&i.createElement(Su,{variant:"subtitle1",component:"p",className:a.inputDescription},t.description),i.createElement(AS,null,f.map(function(e){return!e.hidden&&function(e){var s=e.optional?e.title||e.name:"".concat(e.title||e.name," (required)"),p=i.createElement(i.Fragment,null,m(e)&&i.createElement(IM,null),s);return i.createElement(_R,{key:e.name,component:"li",className:a.inputField},i.createElement($m,{component:"fieldset",id:"input".concat(n,"_input"),tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,required:!t.optional,error:m(e),fullWidth:!0,className:a.inputField},i.createElement(Hm,{htmlFor:"input".concat(n,"_").concat(e.name),className:a.inputLabel},p),e.description&&i.createElement(lx,{className:a.inputDescription,remarkPlugins:[ek]},t.description),i.createElement(XI,{tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,required:!e.optional,error:m(e),id:"input".concat(n,"_").concat(e.name),value:d[e.name],className:a.inputField,color:"secondary",fullWidth:!0,onBlur:function(t){t.currentTarget===t.target&&u(GM(GM({},c),{},tp({},e.name,!0)))},onChange:function(n){return function(e,n){d[e.name]=n;var a={};Object.entries(d).forEach(function(e){var t=lc(e,2),n=t[0],r=t[1];r&&(a[n]=r)}),r.set(t.name,JSON.stringify(a)),o(new Map(r))}(e,n.target.value)}})))}(e)})))))},XM=function(e){var t,n,r,o,a=e.input,l=e.index,s=e.inputsMap,c=e.setInputsMap,u=EM().classes,d=qC(function(e){return e.readOnly}),p=null!==(t=a.options)&&void 0!==t&&t.list_options&&(null===(n=a.options)||void 0===n||null===(n=n.list_options)||void 0===n?void 0:n.length)>0?null===(r=a.options)||void 0===r||null===(r=r.list_options[0])||void 0===r?void 0:r.value:"";return(0,i.useEffect)(function(){var e=s.get(a.name)||a.default||p;s.set(a.name,e),c(new Map(s))},[]),i.createElement(_R,null,i.createElement($m,{component:"fieldset",id:"input".concat(l,"_control"),tabIndex:0,disabled:a.locked||d,"aria-disabled":a.locked||d,fullWidth:!0,className:u.inputField},i.createElement(Hm,{className:u.inputLabel},i.createElement(PM,{input:a})),a.description&&i.createElement(lx,{className:u.inputDescription,remarkPlugins:[ek]},a.description),i.createElement(Qm,{row:!0,"aria-label":"".concat(a.name,"-radio-buttons-group"),name:"".concat(a.name,"-radio-buttons-group"),value:s.get(a.name)||a.default||p,onChange:function(e){s.set(a.name,e.target.value),c(new Map(s))}},null===(o=a.options)||void 0===o||null===(o=o.list_options)||void 0===o?void 0:o.map(function(e,t){return i.createElement(rh,{value:e.value,control:i.createElement(Sh,{size:"small",color:"secondary"}),label:e.label,key:"radio-button-".concat(t),tabIndex:0,"aria-disabled":a.locked||d})}))))},QM=function(e){var t=e.input,n=e.index,r=e.inputsMap,o=e.setInputsMap,a=EM().classes,l=qC(function(e){return e.readOnly}),s=lc(i.useState(!1),2),c=s[0],u=s[1],d=lc(i.useState(!1),2),p=d[0],f=d[1],m=c&&!t.optional&&!1===r.get(t.name),h=i.createElement(PM,{input:t,isMissingInput:m});return(0,i.useEffect)(function(){var e=r.get(t.name),n=!1;("true"===e||"false"!==e&&"true"===t.default)&&(n=!0),f(n)},[]),i.createElement(_R,null,i.createElement($m,{component:"fieldset",id:"input".concat(n,"_control"),tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,required:!t.optional,error:m,fullWidth:!0,className:a.inputField},t.description&&i.createElement(lx,{className:a.inputDescription,remarkPlugins:[ek]},t.description),i.createElement(Km,{"aria-label":"".concat(t.name,"-single-checkbox")},i.createElement(rh,{control:i.createElement(HM,{size:"small",color:"secondary",checked:p,onBlur:function(e){e.currentTarget===e.target&&u(!0)},onChange:function(e){var n=e.target.checked;f(n),u(!0),r.set(t.name,n.toString()),o(new Map(r))}}),label:h,key:"checkbox-".concat(t.name)}))))},JM=function(e){var t=e.input,n=e.index,r=e.inputsMap,o=e.setInputsMap,a=EM().classes,l=qC(function(e){return e.readOnly}),s=lc(i.useState(!1),2),c=s[0],u=s[1],d=c&&!t.optional&&!r.get(t.name);return i.createElement(_R,null,i.createElement($m,{component:"fieldset",id:"input".concat(n,"_control"),tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,required:!t.optional,error:d,fullWidth:!0,className:a.inputField},i.createElement(Hm,{htmlFor:"input".concat(n,"_text"),className:a.inputLabel},i.createElement(PM,{input:t,isMissingInput:d})),t.description&&i.createElement(lx,{className:a.inputDescription,remarkPlugins:[ek]},t.description),i.createElement(XI,{tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,required:!t.optional,error:d,id:"input".concat(n,"_text"),className:a.inputField,color:"secondary",fullWidth:!0,multiline:"textarea"===t.type,minRows:"textarea"===t.type?4:1,maxRows:20,value:r.get(t.name)||"",onBlur:function(e){e.currentTarget===e.target&&u(!0)},onChange:function(e){var n=e.target.value;r.set(t.name,n),o(new Map(r))}})))},ZM=function(e){var t=e.inputs,n=e.inputsMap,r=e.setInputsMap;return i.createElement(AS,null,t.map(function(e,t){var o,a;if(!e.hidden)switch(e.type){case"auth_info":var l;return"auth"===(null===(o=e.options)||void 0===o?void 0:o.mode)?i.createElement(AM,{mode:null===(l=e.options)||void 0===l?void 0:l.mode,input:e,index:t,inputsMap:n,setInputsMap:function(e){return r(e)},key:"input-".concat(t)}):i.createElement(AM,{mode:"access",input:e,index:t,inputsMap:n,setInputsMap:function(e){return r(e)},key:"input-".concat(t)});case"oauth_credentials":return i.createElement(YM,{input:e,index:t,inputsMap:n,setInputsMap:function(e){return r(e)},key:"input-".concat(t)});case"checkbox":return null!==(a=e.options)&&void 0!==a&&null!==(a=a.list_options)&&void 0!==a&&a.length?i.createElement(UM,{input:e,index:t,inputsMap:n,setInputsMap:function(e,t){return r(e,t)},key:"input-".concat(t)}):i.createElement(QM,{input:e,index:t,inputsMap:n,setInputsMap:function(e,t){return r(e,t)},key:"input-".concat(t)});case"radio":return i.createElement(XM,{input:e,index:t,inputsMap:n,setInputsMap:function(e){return r(e)},key:"input-".concat(t)});case"select":return i.createElement(OM,{input:e,index:t,inputsMap:n,setInputsMap:function(e,t){return r(e,t)},key:"input-".concat(t)});default:return i.createElement(JM,{input:e,index:t,inputsMap:n,setInputsMap:function(e){return r(e)},key:"input-".concat(t)})}}))},eA=function(e){var t=e.modalVisible,n=e.hideModal,r=e.runnable,o=e.runnableType,a=e.inputs,l=e.sessionData,s=e.createTestRun,c=EM().classes,u=qC(function(e){return e.readOnly}),d=lc(i.useState(!1),2),p=d[0],f=d[1],m=lc(i.useState(new Map),2),h=m[0],g=m[1],v=lc(i.useState("Field"),2),y=v[0],b=v[1],x=lc(i.useState("txt"),2),w=x[0],k=x[1],S=lc(i.useState(""),2),E=S[0],C=S[1],I=lc(i.useState(!1),2),P=I[0],O=I[1],T=lc(i.useState(!1),2),R=T[0],M=T[1],A=(null==r?void 0:r.input_instructions)||"Please fill out required fields in order to run the ".concat(function(e){switch(e){case vI.TestSuite:return"test suite";case vI.TestGroup:return"test group";case vI.Test:return"test"}}(o),".")+("Field"===y?"":" In this view, only changes to the value attribute of an element will be saved. Further, only elements with names that match an input defined for the current suite, group, or test will be saved. The intended use of this view is to provide a template for users to copy/paste in order to avoid filling out individual fields every time.");(0,i.useEffect)(function(){h.clear(),a.forEach(function(e){h.set(e.name,l.get(e.name)||e.default||"")}),g(new Map(h))},[a,l]),(0,i.useEffect)(function(){return O(function(e,t){return e.some(function(e){if("radio"===e.type)return!1;var n=t.get(e.name);if("checkbox"===e.type)try{var r;return r=Array.isArray(n)&&n.every(function(e){return"string"==typeof e})?n:JSON.parse(n),!(e.optional||Array.isArray(r)&&0!==r.length)}catch(e){var o=e instanceof Error?e.message:String(e);return Pr("Checkbox input incorrectly formatted: ".concat(o),{variant:"error"}),!0}var a=!1;if("auth_info"===e.type){var i,l;if(e.optional||!n||null===(i=e.options)||void 0===i||!i.components||(null===(l=e.options)||void 0===l?void 0:l.components.length)<1)return!1;try{var s,c,u=JSON.parse(n),d=u.auth_type||(null===(s=e.options.components.find(function(e){return"auth_type"===e.name}))||void 0===s?void 0:s.default);a=("auth"===(null===(c=e.options)||void 0===c?void 0:c.mode)?ER(d,new Map,[],!1,!1):IR(d,new Map,[],!1,!1)).filter(function(e){return!e.optional}).map(function(e){return e.name}).some(function(e){return!u[e]})}catch(e){var p=e instanceof Error?e.message:String(e);return Pr("Auth info inputs incorrectly formatted: ".concat(p),{variant:"error"}),!0}}var f=!1;if("oauth_credentials"===e.type)try{var m=JSON.parse(n||'{ "access_token": null }'),h=!m.access_token,g=!(!m.refresh_token||m.token_url&&m.client_id);f=!e.optional&&h||g}catch(e){var v=e instanceof Error?e.message:String(e);return Pr("OAuth credentials incorrectly formatted: ".concat(v),{variant:"error"}),!0}return!e.optional&&!n||f||a})}(a,h)),function(){O(!1)}},[h]),(0,i.useEffect)(function(){switch(M(!1),C(function(e,t,n){var r=t.map(function(e){var t,r=null===(t=e.description)||void 0===t?void 0:t.replaceAll("\n"," ").trim();if("oauth_credentials"===e.type)return OR(OR({},e),{},{description:r,value:JSON.parse(n.get(e.name)||'{ "access_token": "" }')});if("auth_info"===e.type)return OR(OR({},e),{},{default:JSON.parse(e.default||"{}"),description:r,value:JSON.parse(n.get(e.name)||"{}")});if("radio"===e.type){var o,a,i,l=null!==(o=e.options)&&void 0!==o&&o.list_options&&(null===(a=e.options)||void 0===a||null===(a=a.list_options)||void 0===a?void 0:a.length)>0?null===(i=e.options)||void 0===i||null===(i=i.list_options[0])||void 0===i?void 0:i.value:"";return OR(OR({},e),{},{description:r,value:n.get(e.name)||e.default||l})}return OR(OR({},e),{},{description:r,value:n.get(e.name)||""})});return"JSON"===e?JSON.stringify(r,null,2):xR.dump(r,{lineWidth:-1})}(y,a,h)),y){case"JSON":k("json");break;case"YAML":k("yml");break;default:k("txt")}},[y,t]);var L=function(e){C(e);var t=function(e,t,n){var r;try{return(r="JSON"===e?JSON.parse(t):xR.load(t)).forEach(function(e){"oauth_credentials"!==e.type&&"auth_info"!==e.type||(e.value=JSON.stringify(e.value))}),n(!1),r}catch(e){return void n(!0)}}(y,e,M);void 0!==t&&void 0!==t.keys&&t.forEach(function(e){e.locked||void 0===e.value||h.set(e.name,e.value||"")}),j(new Map(h),!0)},j=function(e,t){g(e),f(p||!1!==t)},$=function(){var e=[];h.forEach(function(t,n){e.push({name:n,value:t,type:"text"})}),s(o,(null==r?void 0:r.id)||"",e),N()},N=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]||n()};return i.createElement(HE,{open:t,fullWidth:!0,maxWidth:"sm",onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;t&&"Enter"===e.key&&n&&!P&&!R&&$()},onClose:function(){return N(p)}},i.createElement(GE,{component:"div"},i.createElement(nu,{display:"flex",justifyContent:"space-between"},i.createElement(Su,{component:"h1",variant:"h6"},(null==r?void 0:r.title)||"Test",u?" (Read Only)":""),i.createElement(dm,{title:"Cancel".concat(u?"":" - Inputs will be lost")},i.createElement(Kd,{onClick:function(){return N()},"aria-label":"cancel",className:c.cancelButton},i.createElement(pO,null))))),i.createElement(JE,null,i.createElement("main",null,i.createElement(OI,{component:"div",sx:{wordBreak:"break-word"}},i.createElement(lx,{remarkPlugins:[ek]},A)),"Field"===y?i.createElement(ZM,{inputs:a,inputsMap:h,setInputsMap:j}):i.createElement(nu,null,i.createElement(wO,{onUpload:function(e){L(e),C(e)}}),i.createElement(yO,{fileName:(null==r?void 0:r.title)||"Untitled Inferno File",fileType:w}),i.createElement(JP,{id:"".concat(w,"-serial-input"),minRows:4,value:E,error:R,label:R?"ERROR: INVALID ".concat(y):y,disabled:u,slotProps:{input:{classes:{input:c.serialInput},endAdornment:i.createElement(nu,{sx:{alignSelf:"flex-start"}},i.createElement(gO,{copyText:E}))}},color:"secondary",fullWidth:!0,multiline:!0,"data-testid":"serial-input",onChange:function(e){return L(e.target.value)}})))),i.createElement(RC,{className:c.dialogActions},i.createElement(Lu,{elevation:0,className:c.toggleButtonGroupContainer},i.createElement(lO,{exclusive:!0,role:"group",color:"secondary",size:"small",value:y,onChange:function(e,t){null!==t&&b(t)},className:c.toggleButtonGroup},["Field","JSON","YAML"].map(function(e){return i.createElement(dO,{value:e,disabled:R,key:"".concat(e.toLowerCase(),"-button"),"data-testid":"".concat(e.toLowerCase(),"-button"),className:c.toggleButton},e)}))),i.createElement(nu,null,i.createElement(Bd,{color:"secondary","data-testid":"cancel-button",onClick:function(){return N()},sx:{mr:1,fontWeight:"bold"}},"Cancel"),i.createElement(Bd,{color:"secondary",variant:"contained",disableElevation:!0,onClick:$,disabled:P||R||u,sx:{fontWeight:"bold"}},"Submit"))))};function tA(e){return e.substring(2).toLowerCase()}function nA(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,l=i.useRef(!1),s=i.useRef(null),c=i.useRef(!1),u=i.useRef(!1);i.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=zu(ap(t),s),p=Wu(e=>{const t=u.current;u.current=!1;const r=wp(s.current);if(!c.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(l.current)return void(l.current=!1);let a;a=e.composedPath?e.composedPath().includes(s.current):!r.documentElement.contains(e.target)||s.current.contains(e.target),a||!n&&t||o(e)}),f=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},m={ref:d};return!1!==a&&(m[a]=f(a)),i.useEffect(()=>{if(!1!==a){const e=tA(a),t=wp(s.current),n=()=>{l.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}},[p,a]),!1!==r&&(m[r]=f(r)),i.useEffect(()=>{if(!1!==r){const e=tA(r),t=wp(s.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}},[p,r]),i.cloneElement(t,m)}function rA(e){return fc("MuiSnackbarContent",e)}Jc("MuiSnackbarContent",["root","message","action"]);const oA=qc(Lu,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(mu(({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=Hi(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),aA=qc("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),iA=qc("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),lA=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:i="alert",...l}=n,s=n,c=(e=>{const{classes:t}=e;return mc({root:["root"],action:["action"],message:["message"]},rA,t)})(s);return(0,Dc.jsxs)(oA,{role:i,square:!0,elevation:6,className:cc(c.root,o),ownerState:s,ref:t,...l,children:[(0,Dc.jsx)(aA,{className:c.message,ownerState:s,children:a}),r?(0,Dc.jsx)(iA,{className:c.action,ownerState:s,children:r}):null]})}),sA=lA;function cA(e){return fc("MuiSnackbar",e)}Jc("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const uA=qc("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Wc(n.anchorOrigin.vertical)}${Wc(n.anchorOrigin.horizontal)}`]]}})(mu(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),dA=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiSnackbar"}),r=gs(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:s}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:f,disableWindowBlurListener:m=!1,message:h,onBlur:g,onClose:v,onFocus:y,onMouseEnter:b,onMouseLeave:x,open:w,resumeHideDuration:k,slots:S={},slotProps:E={},TransitionComponent:C,transitionDuration:I=o,TransitionProps:{onEnter:P,onExited:O,...T}={},...R}=n,M={...n,anchorOrigin:{vertical:l,horizontal:s},autoHideDuration:c,disableWindowBlurListener:m,TransitionComponent:C,transitionDuration:I},A=(e=>{const{classes:t,anchorOrigin:n}=e;return mc({root:["root",`anchorOrigin${Wc(n.vertical)}${Wc(n.horizontal)}`]},cA,t)})(M),{getRootProps:L,onClickAway:j}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,l=ad();i.useEffect(()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"===e.key&&r?.(e,"escapeKeyDown")}},[o,r]);const s=Wu((e,t)=>{r?.(e,t)}),c=Wu(e=>{r&&null!=e&&l.start(e,()=>{s(null,"timeout")})});i.useEffect(()=>(o&&c(t),l.clear),[o,t,c,l]);const u=l.clear,d=i.useCallback(()=>{null!=t&&c(null!=a?a:.5*t)},[t,a,c]),p=e=>t=>{const n=e.onFocus;n?.(t),u()},f=e=>t=>{const n=e.onMouseEnter;n?.(t),u()},m=e=>t=>{const n=e.onMouseLeave;n?.(t),d()};return i.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(t={})=>{const n={...$f(e),...$f(t)};return{role:"presentation",...t,...n,onBlur:(r=n,e=>{const t=r.onBlur;t?.(e),d()}),onFocus:p(n),onMouseEnter:f(n),onMouseLeave:m(n)};var r},onClickAway:e=>{r?.(e,"clickaway")}}}({...M}),[$,N]=i.useState(!0),_={slots:{transition:C,...S},slotProps:{content:f,clickAwayListener:p,transition:T,...E}},[D,z]=Qf("root",{ref:t,className:[A.root,d],elementType:uA,getSlotProps:L,externalForwardedProps:{..._,...R},ownerState:M}),[F,{ownerState:B,...W}]=Qf("clickAwayListener",{elementType:nA,externalForwardedProps:_,getSlotProps:e=>({onClickAway:(...t)=>{e.onClickAway?.(...t),j(...t)}}),ownerState:M}),[H,V]=Qf("content",{elementType:sA,shouldForwardComponentProp:!0,externalForwardedProps:_,additionalProps:{message:h,action:a},ownerState:M}),[q,U]=Qf("transition",{elementType:xp,externalForwardedProps:_,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),((e,t)=>{N(!1),P&&P(e,t)})(...t)},onExited:(...t)=>{e.onExited?.(...t),(e=>{N(!0),O&&O(e)})(...t)}}),additionalProps:{appear:!0,in:w,timeout:I,direction:"top"===l?"down":"up"},ownerState:M});return!w&&$?null:(0,Dc.jsx)(F,{...W,...S.clickAwayListener&&{ownerState:B},children:(0,Dc.jsx)(D,{...z,children:(0,Dc.jsx)(q,{...U,children:u||(0,Dc.jsx)(H,{...V})})})})}),pA=dA;function fA(e){return fc("MuiLinearProgress",e)}Jc("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const mA=su`
133
+ `:null,Dh=qc("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(mu(({theme:e})=>{const t=(o=e.shape.borderRadius,String(o).match(/[\d.\-+]*\s*(.*)/)[1]||""||"px"),n=(r=e.shape.borderRadius,parseFloat(r));var r,o;return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:_i(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Nh||{animation:`${jh} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(\n 90deg,\n transparent,\n ${(e.vars||e).palette.action.hover},\n transparent\n )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:_h||{"&::after":{animation:`${$h} 2s linear 0.5s infinite`}}}]}})),zh=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:a="span",height:i,style:l,variant:s="text",width:c,...u}=n,d={...n,animation:r,component:a,variant:s,hasChildren:Boolean(u.children)},p=(e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:a,height:i}=e;return mc({root:["root",n,r,o&&"withChildren",o&&!a&&"fitContent",o&&!i&&"heightAuto"]},Lh,t)})(d);return(0,Dc.jsx)(Dh,{as:a,ref:t,className:cc(p.root,o),ownerState:d,...u,style:{width:c,height:i,...l}})}),Fh=zh,Bh=function(){for(var e=Cm().classes,t=rc(function(e){return e.windowIsSmall}),n=i.createElement(Fh,{variant:"rounded",height:10,width:t?200:300,style:{margin:"32px"}}),r=[],o=0;o<3;o++)r.push(i.createElement("div",{key:o},n));return i.createElement(nu,{display:"flex","data-testid":"selectionSkeleton"},i.createElement(Lu,{elevation:0,className:e.optionsList,sx:{width:t?"auto":"400px",maxWidth:"400px"}},i.createElement(nu,{display:"flex",alignItems:"center",justifyContent:"center",mx:1},i.createElement(Fh,{variant:"rounded",height:30,width:150,style:{marginTop:"16px"}})),i.createElement(nu,{px:2,pb:2},r),i.createElement(nu,{px:2},i.createElement(Fh,{variant:"rounded",height:40}))))},Wh=function(e){var t=e.testSuites,n=pt(),r=Ah().classes,o=Fr().enqueueSnackbar,a=lc(i.useState(""),2),l=a[0],s=a[1],c=rc(function(e){return e.windowIsSmall});(0,i.useEffect)(function(){1===(null==t?void 0:t.length)&&(s(t[0].id),u(t[0]))},[]);var u=function(e){e&&e.suite_options&&e.suite_options.length>0?n("".concat(e.id)):e&&null!=e&&e.id||l?Cu((null==e?void 0:e.id)||l,null,null).then(function(e){e&&e.test_suite&&n("/".concat(e.test_suite_id,"/").concat(e.id,"#").concat(e.test_suite_id))}).catch(function(e){o("Error while creating test session: ".concat(e.message),{variant:"error"})}):o("No test suite selected.",{variant:"error"})};return i.createElement(Xc,{maxWidth:!1,role:"main",className:r.main,sx:c?{}:{minHeight:"400px",maxHeight:"100vh",py:10}},i.createElement(Tu,{title:"Inferno Test Session",description:"Test your server's conformance to authentication, authorization, and FHIR content standards."}),i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:c?"center":"flex-end",alignItems:"center",overflow:"initial",minHeight:"300px",pb:c?0:2,px:2},i.createElement(nu,{my:2,alignItems:"center",maxWidth:"800px"},i.createElement(nu,{display:"flex",alignItems:"center",justifyContent:"center"},i.createElement("img",{src:Qs(Ou),alt:"Inferno Logo",style:{height:c?"5em":"8em"}})),i.createElement(Su,{variant:"h4",component:"h1",align:"center",sx:{color:Mh.palette.common.grayDark,fontSize:c?"2rem":"auto",fontWeight:"bolder"}},"FHIR Testing with Inferno")),i.createElement(nu,{mb:2,alignItems:"center",maxWidth:"600px"},i.createElement(Su,{variant:"h5",component:"h2",align:"center",sx:{fontSize:c?"1.2rem":"auto"}},"Test your server's conformance to authentication, authorization, and FHIR content standards."))),i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",overflow:"initial",width:"100%",minHeight:"200px",py:4,sx:{backgroundColor:Mh.palette.common.grayLight}},t?i.createElement(Ph,{title:"Test Suites",options:(t||[]).sort(function(e,t){return e.title.localeCompare(t.title)}),setSelection:function(e){"string"==typeof e&&s(e)},submitAction:function(){return u(null==t?void 0:t.find(function(e){return e.id===l}))},submitText:"Select Suite"}):i.createElement(Bh,null)))};function Hh(){}function Vh(){}const qh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kh={};function Gh(e,t){return((t||Kh).jsx?Uh:qh).test(e)}const Yh=/[ \t\n\f\r]/g;function Xh(e){return""===e.replace(Yh,"")}class Qh{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function Jh(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Qh(n,r,t)}function Zh(e){return e.toLowerCase()}Qh.prototype.normal={},Qh.prototype.property={},Qh.prototype.space=void 0;class eg{constructor(e,t){this.attribute=t,this.property=e}}eg.prototype.attribute="",eg.prototype.booleanish=!1,eg.prototype.boolean=!1,eg.prototype.commaOrSpaceSeparated=!1,eg.prototype.commaSeparated=!1,eg.prototype.defined=!1,eg.prototype.mustUseProperty=!1,eg.prototype.number=!1,eg.prototype.overloadedBoolean=!1,eg.prototype.property="",eg.prototype.spaceSeparated=!1,eg.prototype.space=void 0;let tg=0;const ng=cg(),rg=cg(),og=cg(),ag=cg(),ig=cg(),lg=cg(),sg=cg();function cg(){return 2**++tg}const ug=Object.keys(r);class dg extends eg{constructor(e,t,n,o){let a=-1;if(super(e,t),pg(this,"space",o),"number"==typeof n)for(;++a<ug.length;){const e=ug[a];pg(this,ug[a],(n&r[e])===r[e])}}}function pg(e,t,n){n&&(e[t]=n)}function fg(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new dg(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Zh(r)]=r,n[Zh(a.attribute)]=r}return new Qh(t,n,e.space)}dg.prototype.defined=!0;const mg=fg({properties:{ariaActiveDescendant:null,ariaAtomic:rg,ariaAutoComplete:null,ariaBusy:rg,ariaChecked:rg,ariaColCount:ag,ariaColIndex:ag,ariaColSpan:ag,ariaControls:ig,ariaCurrent:null,ariaDescribedBy:ig,ariaDetails:null,ariaDisabled:rg,ariaDropEffect:ig,ariaErrorMessage:null,ariaExpanded:rg,ariaFlowTo:ig,ariaGrabbed:rg,ariaHasPopup:null,ariaHidden:rg,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ig,ariaLevel:ag,ariaLive:null,ariaModal:rg,ariaMultiLine:rg,ariaMultiSelectable:rg,ariaOrientation:null,ariaOwns:ig,ariaPlaceholder:null,ariaPosInSet:ag,ariaPressed:rg,ariaReadOnly:rg,ariaRelevant:null,ariaRequired:rg,ariaRoleDescription:ig,ariaRowCount:ag,ariaRowIndex:ag,ariaRowSpan:ag,ariaSelected:rg,ariaSetSize:ag,ariaSort:null,ariaValueMax:ag,ariaValueMin:ag,ariaValueNow:ag,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function hg(e,t){return t in e?e[t]:t}function gg(e,t){return hg(e,t.toLowerCase())}const vg=fg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lg,acceptCharset:ig,accessKey:ig,action:null,allow:null,allowFullScreen:ng,allowPaymentRequest:ng,allowUserMedia:ng,alt:null,as:null,async:ng,autoCapitalize:null,autoComplete:ig,autoFocus:ng,autoPlay:ng,blocking:ig,capture:null,charSet:null,checked:ng,cite:null,className:ig,cols:ag,colSpan:null,content:null,contentEditable:rg,controls:ng,controlsList:ig,coords:ag|lg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ng,defer:ng,dir:null,dirName:null,disabled:ng,download:og,draggable:rg,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ng,formTarget:null,headers:ig,height:ag,hidden:og,high:ag,href:null,hrefLang:null,htmlFor:ig,httpEquiv:ig,id:null,imageSizes:null,imageSrcSet:null,inert:ng,inputMode:null,integrity:null,is:null,isMap:ng,itemId:null,itemProp:ig,itemRef:ig,itemScope:ng,itemType:ig,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ng,low:ag,manifest:null,max:null,maxLength:ag,media:null,method:null,min:null,minLength:ag,multiple:ng,muted:ng,name:null,nonce:null,noModule:ng,noValidate:ng,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:ng,optimum:ag,pattern:null,ping:ig,placeholder:null,playsInline:ng,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ng,referrerPolicy:null,rel:ig,required:ng,reversed:ng,rows:ag,rowSpan:ag,sandbox:ig,scope:null,scoped:ng,seamless:ng,selected:ng,shadowRootClonable:ng,shadowRootDelegatesFocus:ng,shadowRootMode:null,shape:null,size:ag,sizes:null,slot:null,span:ag,spellCheck:rg,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ag,step:null,style:null,tabIndex:ag,target:null,title:null,translate:null,type:null,typeMustMatch:ng,useMap:null,value:rg,width:ag,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ig,axis:null,background:null,bgColor:null,border:ag,borderColor:null,bottomMargin:ag,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ng,declare:ng,event:null,face:null,frame:null,frameBorder:null,hSpace:ag,leftMargin:ag,link:null,longDesc:null,lowSrc:null,marginHeight:ag,marginWidth:ag,noResize:ng,noHref:ng,noShade:ng,noWrap:ng,object:null,profile:null,prompt:null,rev:null,rightMargin:ag,rules:null,scheme:null,scrolling:rg,standby:null,summary:null,text:null,topMargin:ag,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ag,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ng,disableRemotePlayback:ng,prefix:null,property:null,results:ag,security:null,unselectable:null},space:"html",transform:gg}),yg=fg({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:sg,accentHeight:ag,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ag,amplitude:ag,arabicForm:null,ascent:ag,attributeName:null,attributeType:null,azimuth:ag,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ag,by:null,calcMode:null,capHeight:ag,className:ig,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:ag,diffuseConstant:ag,direction:null,display:null,dur:null,divisor:ag,dominantBaseline:null,download:ng,dx:null,dy:null,edgeMode:null,editable:null,elevation:ag,enableBackground:null,end:null,event:null,exponent:ag,externalResourcesRequired:null,fill:null,fillOpacity:ag,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:lg,g2:lg,glyphName:lg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ag,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ag,horizOriginX:ag,horizOriginY:ag,id:null,ideographic:ag,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ag,k:ag,k1:ag,k2:ag,k3:ag,k4:ag,kernelMatrix:sg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ag,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:ag,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:ag,overlineThickness:ag,paintOrder:null,panose1:null,path:null,pathLength:ag,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ig,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ag,pointsAtY:ag,pointsAtZ:ag,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:sg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:sg,rev:sg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:sg,requiredFeatures:sg,requiredFonts:sg,requiredFormats:sg,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:ag,specularExponent:ag,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ag,strikethroughThickness:ag,string:null,stroke:null,strokeDashArray:sg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ag,strokeOpacity:ag,strokeWidth:null,style:null,surfaceScale:ag,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:sg,tabIndex:ag,tableValues:null,target:null,targetX:ag,targetY:ag,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:sg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ag,underlineThickness:ag,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ag,values:null,vAlphabetic:ag,vMathematical:ag,vectorEffect:null,vHanging:ag,vIdeographic:ag,version:null,vertAdvY:ag,vertOriginX:ag,vertOriginY:ag,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ag,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hg}),bg=fg({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()}),xg=fg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gg}),wg=fg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),kg=Jh([mg,vg,bg,xg,wg],"html"),Sg=Jh([mg,yg,bg,xg,wg],"svg"),Eg=/[A-Z]/g,Cg=/-[a-z]/g,Ig=/^data[-\w.:]+$/i;function Pg(e){return"-"+e.toLowerCase()}function Og(e){return e.charAt(1).toUpperCase()}const Tg={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"};var Rg=n(229);const Mg=Lg("end"),Ag=Lg("start");function Lg(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 jg(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ng(e.position):"start"in e||"end"in e?Ng(e):"line"in e||"column"in e?$g(e):"":""}function $g(e){return _g(e&&e.line)+":"+_g(e&&e.column)}function Ng(e){return $g(e&&e.start)+"-"+$g(e&&e.end)}function _g(e){return e&&"number"==typeof e?e:1}class Dg extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},a=!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&&(a=!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 i=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=i?i.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=i?i.line:void 0,this.name=jg(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=a&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Dg.prototype.file="",Dg.prototype.name="",Dg.prototype.reason="",Dg.prototype.message="",Dg.prototype.stack="",Dg.prototype.column=void 0,Dg.prototype.line=void 0,Dg.prototype.ancestors=void 0,Dg.prototype.cause=void 0,Dg.prototype.fatal=void 0,Dg.prototype.place=void 0,Dg.prototype.ruleId=void 0,Dg.prototype.source=void 0;const zg={}.hasOwnProperty,Fg=new Map,Bg=/[A-Z]/g,Wg=new Set(["table","tbody","thead","tfoot","tr"]),Hg=new Set(["td","th"]),Vg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qg(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=Sg,e.schema=o),e.ancestors.push(t);const a=Xg(e,t.tagName,!1),i=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&zg.call(t.properties,o)){const a=Yg(e,o,t.properties[o]);if(a){const[o,i]=a;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof i&&Hg.has(t.tagName)?r=i:n[o]=i}}return r&&((n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r),n}(e,t);let l=Gg(e,t);return Wg.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Xh(t.value):Xh(t));var t})),Ug(e,i,a,t),Kg(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,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)}Qg(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=Sg,e.schema=o),e.ancestors.push(t);const a=null===t.name?e.Fragment:Xg(e,t.name,!0),i=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];Hh(t.type);const o=t.expression;Hh(o.type);const a=o.properties[0];Hh(a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Qg(e,t.position);else{const o=r.name;let a;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];Hh(t.type),a=e.evaluater.evaluateExpression(t.expression)}else Qg(e,t.position);else a=null===r.value||r.value;n[o]=a}return n}(e,t),l=Gg(e,t);return Ug(e,i,a,t),Kg(i,l),e.ancestors.pop(),e.schema=r,e.create(t,a,i,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);Qg(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Kg(r,Gg(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 Ug(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Kg(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Gg(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Fg;for(;++r<t.children.length;){const a=t.children[r];let i;if(e.passKeys){const e="element"===a.type?a.tagName:"mdxJsxFlowElement"===a.type||"mdxJsxTextElement"===a.type?a.name:void 0;if(e){const t=o.get(e)||0;i=e+"-"+t,o.set(e,t+1)}}const l=qg(e,a,i);void 0!==l&&n.push(l)}return n}function Yg(e,t,n){const r=function(e,t){const n=Zh(t);let r=t,o=eg;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Ig.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Cg,Og);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Cg.test(e)){let n=e.replace(Eg,Pg);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=dg}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 Rg(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new Dg("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=Vg+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)zg.call(e,n)&&(t[Jg(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Tg[r.property]||r.property:r.attribute,n]}}function Xg(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Gh(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=Gh(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 zg.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Qg(e)}function Qg(e,t){const n=new Dg("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=Vg+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Jg(e){let t=e.replace(Bg,Zg);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Zg(e){return"-"+e.toLowerCase()}const ev={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"]},tv={};function nv(e,t){const n=t||tv;return rv(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function rv(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 ov(e.children,t,n)}return Array.isArray(e)?ov(e,t,n):""}function ov(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=rv(e[o],t,n);return r.join("")}function av(e,t,n,r){const o=e.length;let a,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function iv(e,t){return e.length>0?(av(e,e.length,0,t),e):t}class lv{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&&sv(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),sv(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),sv(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);sv(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);sv(this.left,t.reverse())}}}function sv(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 cv(e){const t={};let n,r,o,a,i,l,s,c=-1;const u=new lv(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,uv(u,c)),c=t[c],s=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(a=u.get(o),"lineEnding"===a[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),a[1].type="lineEnding",r=o);else if("linePrefix"!==a[1].type&&"listItemIndent"!==a[1].type)break;r&&(n[1].end={...u.get(r)[1].start},i=u.slice(r,c),i.unshift(n),u.splice(r,c-r+1,i))}}return av(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!s}function uv(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let i=n._tokenizer;i||(i=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const l=i.events,s=[],c={};let u,d,p=-1,f=n,m=0,h=0;const g=[h];for(;f;){for(;e.get(++o)[1]!==f;);a.push(o),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),f._isInFirstContentOfListItem&&(i._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&&(h=p+1,g.push(h),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.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=a.pop();s.push([n,n+t.length-1]),e.splice(n,2,t)}for(s.reverse(),p=-1;++p<s.length;)c[m+s[p][0]]=m+s[p][1],m+=s[p][1]-s[p][0]-1;return c}const dv={}.hasOwnProperty;function pv(e){const t={};let n=-1;for(;++n<e.length;)fv(t,e[n]);return t}function fv(e,t){let n;for(n in t){const r=(dv.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){dv.call(r,a)||(r[a]=[]);const e=o[a];mv(r[a],Array.isArray(e)?e:e?[e]:[])}}}function mv(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);av(e,0,0,r)}const hv=Pv(/[A-Za-z]/),gv=Pv(/[\dA-Za-z]/),vv=Pv(/[#-'*+\--9=?A-Z^-~]/);function yv(e){return null!==e&&(e<32||127===e)}const bv=Pv(/\d/),xv=Pv(/[\dA-Fa-f]/),wv=Pv(/[!-/:-@[-`{-~]/);function kv(e){return null!==e&&e<-2}function Sv(e){return null!==e&&(e<0||32===e)}function Ev(e){return-2===e||-1===e||32===e}const Cv=Pv(/\p{P}|\p{S}/u),Iv=Pv(/\s/);function Pv(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Ov(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return function(r){return Ev(r)?(e.enter(n),i(r)):t(r)};function i(r){return Ev(r)&&a++<o?(e.consume(r),i):(e.exit(n),t(r))}}const Tv={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ov(e,t,"linePrefix");e.consume(n)},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)):kv(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}},Rv={tokenize:function(e){const t=this,n=[];let r,o,a,i=0;return l;function l(r){if(i<n.length){const o=n[i];return t.containerState=o[1],e.attempt(o[0].continuation,s,c)(r)}return c(r)}function s(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,a=n;for(;a--;)if("exit"===t.events[a][0]&&"chunkFlow"===t.events[a][1].type){o=t.events[a][1].end;break}v(i);let l=n;for(;l<t.events.length;)t.events[l][1].end={...o},l++;return av(t.events,a+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(i===n.length){if(!r)return p(o);if(r.currentConstruct&&r.currentConstruct.concrete)return m(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Mv,u,d)(o)}function u(e){return r&&y(),v(i),p(e)}function d(e){return t.parser.lazy[t.now().line]=i!==n.length,a=t.now().offset,m(e)}function p(n){return t.containerState={},e.attempt(Mv,f,m)(n)}function f(e){return i++,n.push([t.currentConstruct,t.containerState]),p(e)}function m(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),h(n))}function h(n){return null===n?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):kv(n)?(e.consume(n),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(n),h)}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<a&&(!r.events[e][1].end||r.events[e][1].end.offset>a))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(v(i),e=n;e<t.events.length;)t.events[e][1].end={...l},e++;av(t.events,s+1,0,t.events.slice(n)),t.events.length=e}}function v(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 y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Mv={tokenize:function(e,t,n){return Ov(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},Av={partial:!0,tokenize:function(e,t,n){return function(t){return Ev(t)?Ov(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||kv(e)?t(e):n(e)}}},Lv={resolve:function(e){return cv(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):kv(t)?e.check(jv,a,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function a(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},jv={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"),Ov(e,o,"linePrefix")};function o(o){if(null===o||kv(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}},$v={tokenize:function(e){const t=this,n=e.attempt(Av,function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)},e.attempt(this.parser.constructs.flowInitial,r,Ov(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Lv,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)}}},Nv={resolveAll:Fv()},_v=zv("string"),Dv=zv("text");function zv(e){return{resolveAll:Fv("text"===e?Bv:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return s(e)?o(e):i(e)}function i(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 Fv(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 Bv(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 a,i=o.length,l=-1,s=0;for(;i--;){const e=o[i];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)s++,l--;if(l)break;l=-1}else if(-2===e)a=!0,s++;else if(-1!==e){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const o={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,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 Wv={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,a(e)}(t)};function a(a){return a===r?(e.enter("thematicBreakSequence"),i(a)):o>=3&&(null===a||kv(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),Ev(t)?Ov(e,a,"whitespace")(t):a(t))}}},Hv={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Av,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ov(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!Ev(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qv,t,o)(n))});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ov(e,e.attempt(Hv,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 a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=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:bv(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(Wv,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 bv(t)&&++i<10?(e.consume(t),l):(!r.interrupt||i<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(Av,r.interrupt?n:c,e.attempt(Vv,d,u))}function c(e){return r.containerState.initialBlankLine=!0,a++,d(e)}function u(t){return Ev(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Vv={partial:!0,tokenize:function(e,t,n){const r=this;return Ov(e,function(e){const o=r.events[r.events.length-1];return!Ev(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},qv={partial:!0,tokenize:function(e,t,n){const r=this;return Ov(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)}},Uv={continuation:{tokenize:function(e,t,n){const r=this;return function(t){return Ev(t)?Ov(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):o(t)};function o(r){return e.attempt(Uv,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 Ev(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function Kv(e,t,n,r,o,a,i,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),d):null===t||32===t||41===t||yv(t)?n(t):(e.enter(r),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),m(t))};function d(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),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||kv(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 m(o){return u||null!==o&&41!==o&&!Sv(o)?u<c&&40===o?(e.consume(o),u++,m):41===o?(e.consume(o),u--,m):null===o||32===o||40===o||yv(o)?n(o):(e.consume(o),92===o?h:m):(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(r),t(o))}function h(t){return 40===t||41===t||92===t?(e.consume(t),m):m(t)}}function Gv(e,t,n,r,o,a){const i=this;let l,s=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(a),c};function c(d){return s>999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):93===d?(e.exit(a),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):kv(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||kv(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!Ev(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function Yv(e,t,n,r,o,a){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,l):n(t)};function l(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),s(n))}function s(t){return t===i?(e.exit(a),l(i)):null===t?n(t):kv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ov(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===i||null===t||kv(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===i||92===t?(e.consume(t),c):c(t)}}function Xv(e,t){let n;return function r(o){return kv(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Ev(o)?Ov(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}function Qv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jv={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Gv.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return o=Qv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return Sv(t)?Xv(e,l)(t):l(t)}function l(t){return Kv(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Zv,c,c)(t)}function c(t){return Ev(t)?Ov(e,u,"whitespace")(t):u(t)}function u(a){return null===a||kv(a)?(e.exit("definition"),r.parser.defined.push(o),t(a)):n(a)}}},Zv={partial:!0,tokenize:function(e,t,n){return function(t){return Sv(t)?Xv(e,r)(t):n(t)};function r(t){return Yv(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Ev(t)?Ov(e,a,"whitespace")(t):a(t)}function a(e){return null===e||kv(e)?t(e):n(e)}}},ey={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Ov(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?a(e):n(e)}function a(t){return null===t?l(t):kv(t)?e.attempt(ty,a,l)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||kv(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function l(n){return e.exit("codeIndented"),t(n)}}},ty={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):kv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Ov(e,a,"linePrefix",5)(t)}function a(e){const a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):kv(e)?o(e):n(e)}}},ny={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,a=3;return"whitespace"===e[a][1].type&&(a+=2),o-2>a&&"whitespace"===e[o][1].type&&(o-=2),"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4),o>a&&(n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},av(e,a,o-a+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(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||Sv(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||kv(n)?(e.exit("atxHeading"),t(n)):Ev(n)?Ov(e,a,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function l(t){return null===t||35===t||Sv(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),l)}}},ry={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);const i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=i,e.push(["exit",i,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let i,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){i="paragraph"===r.events[l][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!i?n(t):(e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t))};function a(t){return t===o?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),Ev(t)?Ov(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||kv(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},oy=["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"],ay=["pre","script","style","textarea"],iy={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,a,i,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),a=!0,f):63===l?(e.consume(l),o=3,r.interrupt?t:j):hv(l)?(e.consume(l),i=String.fromCharCode(l),m):n(l)}function u(a){return 45===a?(e.consume(a),o=2,d):91===a?(e.consume(a),o=5,l=0,p):hv(a)?(e.consume(a),o=4,r.interrupt?t:j):n(a)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:j):n(o)}function p(o){return o==="CDATA[".charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:I:p):n(o)}function f(t){return hv(t)?(e.consume(t),i=String.fromCharCode(t),m):n(t)}function m(l){if(null===l||47===l||62===l||Sv(l)){const s=47===l,c=i.toLowerCase();return s||a||!ay.includes(c)?oy.includes(i.toLowerCase())?(o=6,s?(e.consume(l),h):r.interrupt?t(l):I(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):a?g(l):v(l)):(o=1,r.interrupt?t(l):I(l))}return 45===l||gv(l)?(e.consume(l),i+=String.fromCharCode(l),m):n(l)}function h(o){return 62===o?(e.consume(o),r.interrupt?t:I):n(o)}function g(t){return Ev(t)?(e.consume(t),g):E(t)}function v(t){return 47===t?(e.consume(t),E):58===t||95===t||hv(t)?(e.consume(t),y):Ev(t)?(e.consume(t),v):E(t)}function y(t){return 45===t||46===t||58===t||95===t||gv(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),x):Ev(t)?(e.consume(t),b):v(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):Ev(t)?(e.consume(t),x):k(t)}function w(t){return t===s?(e.consume(t),s=null,S):null===t||kv(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||Sv(t)?b(t):(e.consume(t),k)}function S(e){return 47===e||62===e||Ev(e)?v(e):n(e)}function E(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||kv(t)?I(t):Ev(t)?(e.consume(t),C):n(t)}function I(t){return 45===t&&2===o?(e.consume(t),R):60===t&&1===o?(e.consume(t),M):62===t&&4===o?(e.consume(t),$):63===t&&3===o?(e.consume(t),j):93===t&&5===o?(e.consume(t),L):!kv(t)||6!==o&&7!==o?null===t||kv(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),I):(e.exit("htmlFlowData"),e.check(ly,N,P)(t))}function P(t){return e.check(sy,O,N)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||kv(t)?P(t):(e.enter("htmlFlowData"),I(t))}function R(t){return 45===t?(e.consume(t),j):I(t)}function M(t){return 47===t?(e.consume(t),i="",A):I(t)}function A(t){if(62===t){const n=i.toLowerCase();return ay.includes(n)?(e.consume(t),$):I(t)}return hv(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),A):I(t)}function L(t){return 93===t?(e.consume(t),j):I(t)}function j(t){return 62===t?(e.consume(t),$):45===t&&2===o?(e.consume(t),j):I(t)}function $(t){return null===t||kv(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),$)}function N(n){return e.exit("htmlFlow"),t(n)}}},ly={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Av,t,n)}}},sy={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return kv(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},cy={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},uy={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),Ev(t)?Ov(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===a?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===a?(o++,e.consume(t),c):o>=l?(e.exit("codeFencedFenceSequence"),Ev(t)?Ov(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||kv(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let a,i=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,a=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===a?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),Ev(t)?Ov(e,c,"whitespace")(t):c(t))}function c(n){return null===n||kv(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(cy,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||kv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Ev(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ov(e,d,"whitespace")(t)):96===t&&t===a?n(t):(e.consume(t),u)}function d(t){return null===t||kv(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||kv(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===a?n(t):(e.consume(t),p)}function f(t){return e.attempt(o,y,m)(t)}function m(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return i>0&&Ev(t)?Ov(e,g,"linePrefix",i+1)(t):g(t)}function g(t){return null===t||kv(t)?e.check(cy,f,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||kv(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}}},dy=document.createElement("i");function py(e){const t="&"+e+";";dy.innerHTML=t;const n=dy.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}const fy={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,a,i=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,a=gv,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=xv,c):(e.enter("characterReferenceValue"),o=7,a=bv,c(t))}function c(l){if(59===l&&i){const o=e.exit("characterReferenceValue");return a!==gv||py(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return a(l)&&i++<o?(e.consume(l),c):n(l)}}},my={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 wv(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},hy={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ov(e,t,"linePrefix")}}};function gy(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const vy={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}}return e.length!==n.length&&av(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,a,i=e.length,l=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){l=2;break}}else"labelEnd"===n.type&&(o=i);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 a=[["enter",s,t],["enter",c,t]],a=iv(a,e.slice(r+1,r+l+3)),a=iv(a,[["enter",u,t]]),a=iv(a,gy(t.parser.constructs.insideSpan.null,e.slice(r+l+4,o-3),t)),a=iv(a,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),a=iv(a,e.slice(o+1)),a=iv(a,[["exit",s,t]]),av(e,r,e.length,a),e},tokenize:function(e,t,n){const r=this;let o,a,i=r.events.length;for(;i--;)if(("labelImage"===r.events[i][1].type||"labelLink"===r.events[i][1].type)&&!r.events[i][1]._balanced){o=r.events[i][1];break}return function(t){return o?o._inactive?u(t):(a=r.parser.defined.includes(Qv(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(yy,c,a?c:u)(t):91===t?e.attempt(by,c,a?s:u)(t):a?c(t):u(t)}function s(t){return e.attempt(xy,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}}},yy={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 Sv(t)?Xv(e,o)(t):o(t)}function o(t){return 41===t?c(t):Kv(e,a,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return Sv(t)?Xv(e,l)(t):c(t)}function i(e){return n(e)}function l(t){return 34===t||39===t||40===t?Yv(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return Sv(t)?Xv(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)}}},by={tokenize:function(e,t,n){const r=this;return function(t){return Gv.call(r,e,o,a,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Qv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}},xy={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)}}},wy={name:"labelStartImage",resolveAll:vy.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"),a):n(t)}function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function ky(e){return null===e||Sv(e)||Iv(e)?1:Cv(e)?2:void 0}const Sy={name:"attention",resolveAll:function(e,t){let n,r,o,a,i,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};Ey(d,-l),Ey(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={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:{...a.start},end:{...i.end}},e[n][1].end={...a.start},e[u][1].start={...i.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=iv(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=iv(s,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),s=iv(s,gy(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=iv(s,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=iv(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,av(e,n-1,u-n+3,s),u=n+s.length-c-2;break}for(u=-1;++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=ky(r);let a;return function(t){return a=t,e.enter("attentionSequence"),i(t)};function i(l){if(l===a)return e.consume(l),i;const s=e.exit("attentionSequence"),c=ky(l),u=!c||2===c&&o||n.includes(l),d=!o||2===o&&c||n.includes(r);return s._open=Boolean(42===a?u:u&&(o||!d)),s._close=Boolean(42===a?d:d&&(c||!u)),t(l)}}};function Ey(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Cy={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 hv(t)?(e.consume(t),a):64===t?n(t):s(t)}function a(e){return 43===e||45===e||46===e||gv(e)?(r=1,i(e)):s(e)}function i(t){return 58===t?(e.consume(t),r=0,l):(43===t||45===t||46===t||gv(t))&&r++<32?(e.consume(t),i):(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||yv(r)?n(r):(e.consume(r),l)}function s(t){return 64===t?(e.consume(t),c):vv(t)?(e.consume(t),s):n(t)}function c(e){return gv(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||gv(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}},Iy={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,a,i;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),y):hv(t)?(e.consume(t),S):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,f):hv(t)?(e.consume(t),v):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):kv(t)?(i=u,A(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?M(e):45===e?d(e):u(e)}function f(t){return t==="CDATA[".charCodeAt(a++)?(e.consume(t),6===a?m:f):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),h):kv(t)?(i=m,A(t)):(e.consume(t),m)}function h(t){return 93===t?(e.consume(t),g):m(t)}function g(t){return 62===t?M(t):93===t?(e.consume(t),g):m(t)}function v(t){return null===t||62===t?M(t):kv(t)?(i=v,A(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):kv(t)?(i=y,A(t)):(e.consume(t),y)}function b(e){return 62===e?M(e):y(e)}function x(t){return hv(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||gv(t)?(e.consume(t),w):k(t)}function k(t){return kv(t)?(i=k,A(t)):Ev(t)?(e.consume(t),k):M(t)}function S(t){return 45===t||gv(t)?(e.consume(t),S):47===t||62===t||Sv(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),M):58===t||95===t||hv(t)?(e.consume(t),C):kv(t)?(i=E,A(t)):Ev(t)?(e.consume(t),E):M(t)}function C(t){return 45===t||46===t||58===t||95===t||gv(t)?(e.consume(t),C):I(t)}function I(t){return 61===t?(e.consume(t),P):kv(t)?(i=I,A(t)):Ev(t)?(e.consume(t),I):E(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):kv(t)?(i=P,A(t)):Ev(t)?(e.consume(t),P):(e.consume(t),T)}function O(t){return t===o?(e.consume(t),o=void 0,R):null===t?n(t):kv(t)?(i=O,A(t)):(e.consume(t),O)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Sv(t)?E(t):(e.consume(t),T)}function R(e){return 47===e||62===e||Sv(e)?E(e):n(e)}function M(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return Ev(t)?Ov(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):j(t)}function j(t){return e.enter("htmlTextData"),i(t)}}},Py={name:"labelStartLink",resolveAll:vy.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)}}},Oy={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return kv(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Ty={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}for(t=o-1,r++;++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,a=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),i(t)};function i(t){return 96===t?(e.consume(t),a++,i):(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)):kv(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||kv(t)?(e.exit("codeTextData"),l(t)):(e.consume(t),s)}function c(n){return 96===n?(e.consume(n),r++,c):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",s(n))}}},Ry={42:Hv,43:Hv,45:Hv,48:Hv,49:Hv,50:Hv,51:Hv,52:Hv,53:Hv,54:Hv,55:Hv,56:Hv,57:Hv,62:Uv},My={91:Jv},Ay={[-2]:ey,[-1]:ey,32:ey},Ly={35:ny,42:Wv,45:[ry,Wv],60:iy,61:ry,95:Wv,96:uy,126:uy},jy={38:fy,92:my},$y={[-5]:hy,[-4]:hy,[-3]:hy,33:wy,38:fy,42:Sy,60:[Cy,Iy],91:Py,92:[Oy,my],93:vy,95:Sy,96:Ty},Ny={null:[Sy,Nv]},_y={null:[42,95]},Dy={null:[]};function zy(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={},a=[];let i=[],l=[],s=!0;const c={attempt:v(function(e,t){y(e,t.from)}),check:v(g),consume:function(e){kv(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e,s=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=m(),u.events.push(["enter",n,u]),l.push(n),n},exit:function(e){const t=l.pop();return t.end=m(),u.events.push(["exit",t,u]),t},interrupt:v(g,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,b()},events:[],now:m,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let i;if("string"==typeof a)i=a;else switch(a){case-5:i="\r";break;case-4:i="\n";break;case-3:i="\r\n";break;case-2:i=t?" ":"\t";break;case-1:if(!t&&o)continue;i=" ";break;default:i=String.fromCharCode(a)}o=-2===a,r.push(i)}return r.join("")}(f(e),t)},sliceStream:f,write:function(e){return i=iv(i,e),function(){let e;for(;r._index<i.length;){const t=i[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)}}(),null!==i[i.length-1]?[]:(y(t,0),u.events=gy(a,u.events,u),u.events)}};let d,p=t.tokenize.call(u,c);return t.resolveAll&&a.push(t),u;function f(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let i;if(n===o)i=[e[n].slice(r,a)];else{if(i=e.slice(n,o),r>-1){const e=i[0];"string"==typeof e?i[0]=e.slice(r):i.shift()}a>0&&i.push(e[o].slice(0,a))}return i}(i,e)}function m(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:a}}function h(e){s=void 0,d=e,p=p(e)}function g(e,t){t.restore()}function v(e,t){return function(n,o,a){let i,d,p,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return function(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 i=e,d=0,0===e.length?a:g(e[d])}function g(e){return function(n){return f=function(){const e=m(),t=u.previous,n=u.currentConstruct,o=u.events.length,a=Array.from(l);return{from:o,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,l=a,b()}}}(),p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name)?y():e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,v,y)(n)}}function v(t){return s=!0,e(p,f),o}function y(e){return s=!0,f.restore(),++d<i.length?g(i[d]):a}}}function y(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&av(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function b(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Fy=/[\0\t\n\r]/g;function By(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)}const Wy=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Hy(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return By(n.slice(t?2:1),t?16:10)}return py(n)||e}const Vy={}.hasOwnProperty;function qy(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:o(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:o(h),blockQuote:o(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:o(m),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(m,a),codeText:o(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:o(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:o(g),hardBreakTrailing:o(g),htmlFlow:o(v,a),htmlFlowData:u,htmlText:o(v,a),htmlTextData:u,image:o(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:o(y),listItem:o(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:o(b),paragraph:o(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(h),strong:o(function(){return{type:"strong",children:[]}}),thematicBreak:o(function(){return{type:"thematicBreak"}})},exit:{atxHeading:l(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:l(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:l(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=By(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=py(t);this.stack[this.stack.length-1].value+=r},characterReference:function(e){this.stack.pop().position.end=Uy(e.end)},codeFenced:l(function(){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}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:l(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Qv(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:l(),hardBreakEscape:l(p),hardBreakTrailing:l(p),htmlFlow:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:l(function(){const e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:l(function(){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}),label:function(){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},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Wy,Hy)}(t),n.identifier=Qv(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Uy(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),d.call(this,e))},link:l(function(){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}),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Qv(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:l(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:l(),thematicBreak:l()}};Ky(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let o={type:"root",children:[]};const l={stack:[o],tokenStack:[],config:t,enter:i,exit:s,buffer:a,resume:c,data:n},u=[];let d=-1;for(;++d<e.length;)"listOrdered"!==e[d][1].type&&"listUnordered"!==e[d][1].type||("enter"===e[d][0]?u.push(d):d=r(e,u.pop(),d));for(d=-1;++d<e.length;){const n=t[e[d][0]];Vy.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},l),e[d][1])}if(l.tokenStack.length>0){const e=l.tokenStack[l.tokenStack.length-1];(e[1]||Yy).call(l,void 0,e[0])}for(o.position={start:Uy(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Uy(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)o=t.transforms[d](o)||o;return o};function r(e,t,n){let r,o,a,i,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--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||s||a||(a=l),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=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 i=l;for(o=void 0;i--;){const t=e[i];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=i}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}a&&(!o||a<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++,a=void 0,i=!0}}}return e[t][1]._spread=c,n}function o(e,t){return function(n){i.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function i(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:Uy(t.start),end:void 0}}function l(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+jg({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Yy).call(this,e,r[0])),n.position.end=Uy(e.end)}function c(){return nv(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Uy(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Uy(e.end)}function p(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function v(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!cv(e););return e}(function(e){const t={constructs:pv([o,...(e||{}).extensions||[]]),content:n(Tv),defined:[],document:n(Rv),flow:n($v),lazy:{},string:n(_v),text:n(Dv)};return t;function n(e){return function(n){return zy(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,a,i){const l=[];let s,c,u,d,p;for(o=n+("string"==typeof o?o.toString():new TextDecoder(a||void 0).decode(o)),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(Fy.lastIndex=u,s=Fy.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 i&&(e&&l.push(-5),n&&l.push(n),l.push(null)),l}}()(e,t,!0))))}function Uy(e){return{line:e.line,column:e.column,offset:e.offset}}function Ky(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ky(e,r):Gy(e,r)}}function Gy(e,t){let n;for(n in t)if(Vy.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 Yy(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+jg({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+jg({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+jg({start:t.start,end:t.end})+") is still open")}function Xy(e){const t=this;t.parser=function(n){return qy(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Qy="object"==typeof self?self:globalThis,Jy=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[a,i]=t[o];switch(a){case 0:case-1:return n(i,o);case 1:{const e=n([],o);for(const t of i)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),o);case 4:{const{source:e,flags:t}=i;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of i)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of i)e.add(r(t));return e}case 7:{const{name:e,message:t}=i;return n(new Qy[e](t),o)}case 8:return n(BigInt(i),o);case"BigInt":return n(Object(BigInt(i)),o);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{const{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(new Qy[a](i),o)};return r})(new Map,e)(0),Zy="",{toString:eb}={},{keys:tb}=Object,nb=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=eb.call(e).slice(8,-1);switch(n){case"Array":return[1,Zy];case"Object":return[2,Zy];case"Date":return[3,Zy];case"RegExp":return[4,Zy];case"Map":return[5,Zy];case"Set":return[6,Zy];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},rb=([e,t])=>0===e&&("function"===t||"symbol"===t),ob=(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},a=r=>{if(n.has(r))return n.get(r);let[i,l]=nb(r);switch(i){case 0:{let t=r;switch(l){case"bigint":i=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([i,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([i,e],r);for(const t of r)e.push(a(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 a(r.toJSON());const n=[],s=o([i,n],r);for(const t of tb(r))!e&&rb(nb(r[t]))||n.push([a(t),a(r[t])]);return s}case 3:return o([i,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([i,{source:e,flags:t}],r)}case 5:{const t=[],n=o([i,t],r);for(const[n,o]of r)(e||!rb(nb(n))&&!rb(nb(o)))&&t.push([a(n),a(o)]);return n}case 6:{const t=[],n=o([i,t],r);for(const n of r)!e&&rb(nb(n))||t.push(a(n));return n}}const{message:s}=r;return o([i,{name:l,message:s}],r)};return a})(!(t||n),!!t,new Map,r)(e),r},ab="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Jy(ob(e,t)):structuredClone(e):(e,t)=>Jy(ob(e,t));function ib(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let i="";if(37===a&&gv(e.charCodeAt(n+1))&&gv(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(i=String.fromCharCode(a));else if(a>55295&&a<57344){const t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(i=String.fromCharCode(a,t),o=1):i="�"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function lb(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 sb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const cb=function(e){if(null==e)return db;if("function"==typeof e)return ub(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=cb(e[n]);return ub(function(...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 ub(function(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 t=e,ub(function(e){return e&&e.type===t});var t;throw new Error("Expected function, string, or object as test")};function ub(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 db(){return!0}const pb=[],fb=!1;function mb(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const a=cb(o),i=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=pb;if((!t||a(o,l,s[s.length-1]||void 0))&&(p=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:null==e?pb:[e]}(n(o,s)),p[0]===fb))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+i,d=s.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===fb)return c;u="number"==typeof c[1]?c[1]:u+i}}return p}}(e,void 0,[])()}function hb(e,t,n,r){let o,a,i;"function"==typeof t&&"function"!=typeof n?(a=void 0,i=t,o=n):(a=t,i=n,o=r),mb(e,a,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},o)}function gb(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),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});const i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function vb(e){const t=e.spread;return null==t?e.children.length>1:t}function yb(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(bb(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(bb(t.slice(o),o>0,!1)),a.join("")}function bb(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 xb={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=ib(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let i,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),i=e.footnoteOrder.length):i=a+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(i)}]};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 gb(e,t);const o={src:ib(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)},image:function(e,t){const n={src:ib(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 gb(e,t);const o={href:ib(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},link:function(e,t){const n={href:ib(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=vb(n[r])}return t}(n):vb(t),a={},i=[];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:[]}),a.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const e=r[l];(o||0!==l||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?i.push(e):i.push(...e.children)}const s=r[r.length-1];s&&(o||"element"!==s.type||"p"!==s.tagName)&&i.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:a,children:i};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 a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)},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)},a=Ag(t.children[1]),i=Mg(t.children[t.children.length-1]);a&&i&&(r.position={start:a,end:i}),o.push(r)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)},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",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length;let l=-1;const s=[];for(;++l<i;){const n=t.children[l],r={},i=a?a[l]:void 0;i&&(r.align=i);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:yb(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:wb,yaml:wb,definition:wb,footnoteDefinition:wb};function wb(){}const kb={}.hasOwnProperty,Sb={};function Eb(e,t){e.position&&(t.position=function(e){const t=Ag(e),n=Mg(e);if(t&&n)return{start:t,end:n}}(e))}function Cb(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&o&&Object.assign(n.properties,ab(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Ib(e,t){const n=t.data||{},r=!("value"in t)||kb.call(n,"hProperties")||kb.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 Pb(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 Ob(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Tb(e,t){const n=function(e,t){const n=t||Sb,r=new Map,o=new Map,a=new Map,i={...xb,...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=Ob(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=Ob(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:Cb,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:i,one:function(e,t){const n=e.type,r=l.handlers[n];if(kb.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=ab(n);return r.children=l.all(e),r}return ab(e)}return(l.options.unknownHandler||Ib)(l,e,t)},options:n,patch:Eb,wrap:Pb};return hb(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||lb,r=e.options.footnoteBackLabel||sb,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",i=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 a=e.all(o),i=String(o.identifier).toUpperCase(),c=ib(i.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(i);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=a[a.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 a.push(...d);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(a,!0)};e.patch(o,m),l.push(m)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...ab(i),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),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:"\n"},o),a}function Rb(e,t){return e&&"run"in e?async function(n,r){const o=Tb(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Tb(n,{file:r,...e||t})}}function Mb(e){if(e)throw e}var Ab=n(849);function Lb(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)}const jb=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');zb(e);let n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let i=-1,l=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(o=a):(l=-1,o=i));return r===o?o=i:o<0&&(o=e.length),e.slice(r,o)},$b=function(e){if(zb(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)},Nb=function(e){zb(e);let t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}return a<0||r<0||0===i||1===i&&a===r-1&&a===o+1?"":e.slice(a,r)},_b=function(...e){let t,n=-1;for(;++n<e.length;)zb(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){zb(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",a=0,i=-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(i===s-1||1===l);else if(i!==s-1&&2===l){if(o.length<2||2!==a||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="",a=0):(o=o.slice(0,r),a=o.length-1-o.lastIndexOf("/")),i=s,l=0;continue}}else if(o.length>0){o="",a=0,i=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,s):o=e.slice(i+1,s),a=s-i-1;i=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},Db="/";function zb(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Fb=function(){return"/"};function Bb(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const Wb=["history","path","basename","stem","extname","dirname"];class Hb{constructor(e){let t;t=e?Bb(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?"":Fb(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Wb.length;){const e=Wb[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Wb.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?jb(this.path):void 0}set basename(e){qb(e,"basename"),Vb(e,"basename"),this.path=_b(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?$b(this.path):void 0}set dirname(e){Ub(this.basename,"dirname"),this.path=_b(e||"",this.basename)}get extname(){return"string"==typeof this.path?Nb(this.path):void 0}set extname(e){if(Vb(e,"extname"),Ub(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=_b(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Bb(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!Bb(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)}(e)),qb(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?jb(this.path,this.extname):void 0}set stem(e){qb(e,"stem"),Vb(e,"stem"),this.path=_b(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 Dg(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){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Vb(e,t){if(e&&e.includes(Db))throw new Error("`"+t+"` cannot be a path: did not expect `"+Db+"`")}function qb(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ub(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Kb=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Gb={}.hasOwnProperty;class Yb extends Kb{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=function(){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(a,...i){const l=e[++n];let s=-1;if(a)r(a);else{for(;++s<t.length;)null!==i[s]&&void 0!==i[s]||(i[s]=t[s]);t=i,l?function(e,t){let n;return function(...t){const a=e.length>t.length;let i;a&&t.push(r);try{i=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(i&&i.then&&"function"==typeof i.then?i.then(o,r):i instanceof Error?r(i):o(i))};function r(e,...r){n||(n=!0,t(e,...r))}function o(e){r(null,e)}}(l,o)(...i):r(null,...i)}}(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}()}copy(){const e=new Yb;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Ab(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Zb("data",this.frozen),this.namespace[e]=t,this):Gb.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Zb("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=nx(e),n=this.parser||this.Parser;return Qb("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Qb("process",this.parser||this.Parser),Jb("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const a=nx(e),i=n.parse(a);function l(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(i,a,function(e,t,r){if(e||!t||!r)return l(e);const o=t,a=n.stringify(o,r);var i;"string"==typeof(i=a)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(i)?r.value=a:r.result=a,l(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Qb("processSync",this.parser||this.Parser),Jb("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,Mb(e),t=r}),tx("processSync","process",n),t}run(e,t,n){ex(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,a){const i=nx(t);r.run(e,i,function(t,r,i){const l=r||e;t?a(t):o?o(l):n(void 0,l,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){Mb(e),n=t,r=!0}),tx("runSync","run",r),n}stringify(e,t){this.freeze();const n=nx(t),r=this.compiler||this.Compiler;return Jb("stringify",r),ex(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Zb("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)?i(e):a(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 a(e)}}function a(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");i(e.plugins),e.settings&&(r.settings=Ab(!0,r.settings,e.settings))}function i(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,...a]=t;const i=n[o][1];Lb(i)&&Lb(r)&&(r=Ab(!0,i,r)),n[o]=[e,r,...a]}}}}const Xb=(new Yb).freeze();function Qb(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Jb(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Zb(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 ex(e){if(!Lb(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function tx(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function nx(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Hb(e)}const rx=[],ox={allowDangerousHtml:!0},ax=/^(https?|ircs?|mailto|xmpp)$/i,ix=[{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:"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 lx(e){const t=function(e){const t=e.rehypePlugins||rx,n=e.remarkPlugins||rx,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ox}:ox;return Xb().use(Xy).use(n).use(Rb,r).use(t)}(e),n=function(e){const t=e.children||"",n=new Hb;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,a=t.disallowedElements,i=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||sx;for(const e of ix)Object.hasOwn(t,e.from)&&Vh((e.from,e.to&&e.to,e.id));return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]}),hb(e,function(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return i?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ev)if(Object.hasOwn(ev,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=ev[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=s(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&r&&"number"==typeof t&&(i=!r(e,t,o)),i&&o&&"number"==typeof t)return l&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}),function(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 function(n,r,o,a){const i=Array.isArray(o.children),l=Ag(n);return t(r,o,a,i,{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 function(e,r,o,a){const i=Array.isArray(o.children)?n:t;return a?i(r,o,a):i(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?Sg:kg,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},a=qg(o,e,void 0);return a&&"string"!=typeof a?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}(e,{Fragment:Dc.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Dc.jsx,jsxs:Dc.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function sx(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||ax.test(e.slice(0,t))?e:""}function cx(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 ux(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 dx(e){return"function"==typeof e?e:function(){return e}}const px="phrasing",fx=["autolink","link","image","label"];function mx(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function hx(e){this.config.enter.autolinkProtocol.call(this,e)}function gx(e){this.config.exit.autolinkProtocol.call(this,e)}function vx(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 yx(e){this.config.exit.autolinkEmail.call(this,e)}function bx(e){this.exit(e)}function xx(e){!function(e,t,n){const r=cb((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([ux(e[0]),dx(e[1])])}return t}(t);let a=-1;for(;++a<o.length;)mb(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){const e=t[i],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[a][0],i=o[a][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 a=i(...d,o);if("string"==typeof a&&(a=a.length>0?{type:"text",value:a}:void 0),!1===a?r.lastIndex=n+1:(l!==n&&u.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),l=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(l<e.value.length&&u.push({type:"text",value:e.value.slice(l)}),n.children.splice(s,1,...u)):u=[e],s+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wx],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,kx]],{ignore:["link","linkReference"]})}function wx(e,t,n,r,o){let a="";if(!Sx(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const i=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=cx(e,"(");let a=cx(e,")");for(;-1!==r&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}(n+r);if(!i[0])return!1;const l={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function kx(e,t,n,r){return!(!Sx(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Sx(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Iv(n)||Cv(n))&&(!t||47!==n)}function Ex(){this.buffer()}function Cx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ix(){this.buffer()}function Px(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ox(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qv(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Tx(e){this.exit(e)}function Rx(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qv(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Mx(e){this.exit(e)}function Ax(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const i=n.enter("footnoteReference"),l=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),l(),i(),a+=o.move("]"),a}function Lx(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const a=r.createTracker(o);let i=a.move("[^");const l=r.enter("footnoteDefinition"),s=r.enter("label");return i+=a.move(r.safe(r.associationId(e),{before:i,after:"]"})),s(),i+=a.move("]:"),e.children&&e.children.length>0&&(a.shift(4),i+=a.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,a.current()),t?$x:jx))),l(),i},footnoteReference:Ax},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function jx(e,t,n){return 0===t?e:$x(e,0,n)}function $x(e,t,n){return(n?"":" ")+e}Ax.peek=function(){return"["};const Nx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function _x(e){this.enter({type:"delete",children:[]},e)}function Dx(e){this.exit(e)}function zx(e,t,n,r){const o=n.createTracker(r),a=n.enter("strikethrough");let i=o.move("~~");return i+=n.containerPhrasing(e,{...o.current(),before:i,after:"~"}),i+=o.move("~~"),a(),i}function Fx(e){return e.length}function Bx(e){return null==e?"":String(e)}function Wx(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 Hx(e,t,n){return">"+(n?"":" ")+e}function Vx(e,t){return qx(e,t.inConstruct,!0)&&!qx(e,t.notInConstruct,!1)}function qx(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 Ux(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&Vx(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function Kx(e,t,n){return(n?"":" ")+e}function Gx(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 Yx(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Xx(e,t,n){const r=ky(e),o=ky(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 Qx(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),a=n.enter("emphasis"),i=n.createTracker(r),l=i.move(o);let s=i.move(n.containerPhrasing(e,{after:o,before:l,...i.current()}));const c=s.charCodeAt(0),u=Xx(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Yx(c)+s.slice(1));const d=s.charCodeAt(s.length-1),p=Xx(r.after.charCodeAt(0),d,o);p.inside&&(s=s.slice(0,-1)+Yx(d));const f=i.move(o);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},l+s+f}function Jx(e){return e.value||""}function Zx(e,t,n,r){const o=Gx(n),a='"'===o?"Quote":"Apostrophe",i=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${a}`),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(")"),i(),c}function ew(e,t,n,r){const o=e.referenceType,a=n.enter("imageReference");let i=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+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return i(),n.stack=u,a(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function tw(e,t,n){let r=e.value||"",o="`",a=-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+" ");++a<n.unsafe.length;){const e=n.unsafe[a],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 nw(e,t){const n=nv(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 rw(e,t,n,r){const o=Gx(n),a='"'===o?"Quote":"Apostrophe",i=n.createTracker(r);let l,s;if(nw(e,n)){const t=n.stack;n.stack=[],l=n.enter("autolink");let r=i.move("<");return r+=i.move(n.containerPhrasing(e,{before:r,after:">",...i.current()})),r+=i.move(">"),l(),n.stack=t,r}l=n.enter("link"),s=n.enter("label");let c=i.move("[");return c+=i.move(n.containerPhrasing(e,{before:c,after:"](",...i.current()})),c+=i.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=i.move("<"),c+=i.move(n.safe(e.url,{before:c,after:">",...i.current()})),c+=i.move(">")):(s=n.enter("destinationRaw"),c+=i.move(n.safe(e.url,{before:c,after:e.title?" ":")",...i.current()}))),s(),e.title&&(s=n.enter(`title${a}`),c+=i.move(" "+o),c+=i.move(n.safe(e.title,{before:c,after:o,...i.current()})),c+=i.move(o),s()),c+=i.move(")"),l(),c}function ow(e,t,n,r){const o=e.referenceType,a=n.enter("linkReference");let i=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+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:s,after:"]",...l.current()});return i(),n.stack=u,a(),"full"!==o&&c&&c===d?"shortcut"===o?s=s.slice(0,-1):s+=l.move("]"):s+=l.move(d+"]"),s}function aw(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 iw(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}zx.peek=function(){return"~"},Qx.peek=function(e,t,n){return n.options.emphasis||"*"},Jx.peek=function(){return"<"},Zx.peek=function(){return"!"},ew.peek=function(){return"!"},tw.peek=function(){return"`"},rw.peek=function(e,t,n){return nw(e,n)?"<":"["},ow.peek=function(){return"["};const lw=cb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function sw(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),a=n.enter("strong"),i=n.createTracker(r),l=i.move(o+o);let s=i.move(n.containerPhrasing(e,{after:o,before:l,...i.current()}));const c=s.charCodeAt(0),u=Xx(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(s=Yx(c)+s.slice(1));const d=s.charCodeAt(s.length-1),p=Xx(r.after.charCodeAt(0),d,o);p.inside&&(s=s.slice(0,-1)+Yx(d));const f=i.move(o+o);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},l+s+f}sw.peek=function(e,t,n){return n.options.strong||"*"};const cw={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const i=n.indentLines(n.containerFlow(e,a.current()),Hx);return o(),i},break:Ux,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),a=e.value||"",i="`"===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(a,Kx);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,a=0,i=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++a>i&&(i=a):a=1,o=r+t.length,r=n.indexOf(t,o);return i}(a,o)+1,3)),c=n.enter("codeFenced");let u=l.move(s);if(e.lang){const t=n.enter(`codeFencedLang${i}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${i}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...l.current()})),t()}return u+=l.move("\n"),a&&(u+=l.move(a+"\n")),u+=l.move(s),c(),u},definition:function(e,t,n,r){const o=Gx(n),a='"'===o?"Quote":"Apostrophe",i=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${a}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),i(),c},emphasis:Qx,hardBreak:Ux,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(function(e,t){let n=!1;return hb(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,fb}),Boolean((!e.depth||e.depth<3)&&nv(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),i=n.containerPhrasing(e,{...a.current(),before:"\n",after:"\n"});return r(),t(),i+"\n"+(1===o?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const i="#".repeat(o),l=n.enter("headingAtx"),s=n.enter("phrasing");a.move(i+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...a.current()});return/^[\t ]/.test(c)&&(c=Yx(c.charCodeAt(0))+c.slice(1)),c=c?i+" "+c:i,n.options.closeAtx&&(c+=" "+i),s(),l(),c},html:Jx,image:Zx,imageReference:ew,inlineCode:tw,link:rw,linkReference:ow,list:function(e,t,n,r){const o=n.enter("list"),a=n.bulletCurrent;let i=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):aw(n);const l=e.ordered?"."===i?")":".":function(e){const t=aw(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)&&i===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==i&&"-"!==i||!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),iw(n)===i&&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&&(i=l),n.bulletCurrent=i;const c=n.containerFlow(e,r);return n.bulletLastUsed=i,n.bulletCurrent=a,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 a=n.bulletCurrent||aw(n);t&&"list"===t.type&&t.ordered&&(a=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);let i=a.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));const l=n.createTracker(r);l.move(a+" ".repeat(i-a.length)),l.shift(i);const s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),function(e,t,n){return t?(n?"":" ".repeat(i))+e:(n?a:a+" ".repeat(i-a.length))+e});return s(),c},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),a=n.enter("phrasing"),i=n.containerPhrasing(e,r);return a(),o(),i},root:function(e,t,n,r){return(e.children.some(function(e){return lw(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:sw,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(iw(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 uw(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 dw(e){this.exit(e),this.data.inTable=void 0}function pw(e){this.enter({type:"tableRow",children:[]},e)}function fw(e){this.exit(e)}function mw(e){this.enter({type:"tableCell",children:[]},e)}function hw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gw));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function gw(e,t){return"|"===t?t:e}function vw(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=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=cw.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return l(function(e,t,n){const r=e.children;let o=-1;const a=[],i=t.enter("table");for(;++o<r.length;)a[o]=s(r[o],t,n);return i(),a}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){const o=l([s(e,n,r)]);return o.slice(0,o.indexOf("\n"))}}};function i(e,t,n,r){const o=n.enter("tableCell"),i=n.enter("phrasing"),l=n.containerPhrasing(e,{...r,before:a,after:a});return i(),o(),l}function l(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||Fx,a=[],i=[],l=[],s=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let a=-1;for(e[u].length>c&&(c=e[u].length);++a<e[u].length;){const i=Bx(e[u][a]);if(!1!==n.alignDelimiters){const e=o(i);r[a]=e,(void 0===s[a]||e>s[a])&&(s[a]=e)}t.push(i)}i[u]=t,l[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)a[d]=Wx(r[d]);else{const e=Wx(r);for(;++d<c;)a[d]=e}d=-1;const p=[],f=[];for(;++d<c;){const e=a[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,s[d]-t.length-r.length);const i=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>s[d]&&(s[d]=o),f[d]=o),p[d]=i}i.splice(1,0,p),l.splice(1,0,f),u=-1;const m=[];for(;++u<i.length;){const e=i[u],t=l[u];d=-1;const r=[];for(;++d<c;){const o=e[d]||"";let i="",l="";if(!1!==n.alignDelimiters){const e=s[d]-(t[d]||0),n=a[d];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):(i=" ".repeat(e/2),l=i):l=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(o),!1!==n.alignDelimiters&&r.push(l),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===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 a=[],l=t.enter("tableRow");for(;++o<r.length;)a[o]=i(r[o],0,t,n);return l(),a}}function yw(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function bw(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,a=-1;for(;++a<r.length;){const e=r[a];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 xw(e,t,n,r){const o=e.children[0],a="boolean"==typeof e.checked&&o&&"paragraph"===o.type,i="["+(e.checked?"x":" ")+"] ",l=n.createTracker(r);a&&l.move(i);let s=cw.listItem(e,t,n,{...r,...l.current()});return a&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),s}const ww={tokenize:function(e,t,n){let r=0;return function t(a){return(87===a||119===a)&&r<3?(r++,e.consume(a),t):46===a&&3===r?(e.consume(a),o):n(a)};function o(e){return null===e?n(e):t(e)}},partial:!0},kw={tokenize:function(e,t,n){let r,o,a;return i;function i(t){return 46===t||95===t?e.check(Ew,s,l)(t):null===t||Sv(t)||Iv(t)||45!==t&&Cv(t)?s(t):(a=!0,e.consume(t),i)}function l(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),i}function s(e){return o||r||!a?n(e):t(e)}},partial:!0},Sw={tokenize:function(e,t){let n=0,r=0;return o;function o(i){return 40===i?(n++,e.consume(i),o):41===i&&r<n?a(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(Ew,t,a)(i):null===i||Sv(i)||Iv(i)?t(i):(e.consume(i),o)}function a(t){return 41===t&&r++,e.consume(t),o}},partial:!0},Ew={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),a):93===i?(e.consume(i),o):60===i||null===i||Sv(i)||Iv(i)?t(i):n(i)}function o(e){return null===e||40===e||91===e||Sv(e)||Iv(e)?t(e):r(e)}function a(e){return hv(e)?i(e):n(e)}function i(t){return 59===t?(e.consume(t),r):hv(t)?(e.consume(t),i):n(t)}},partial:!0},Cw={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return gv(e)?n(e):t(e)}},partial:!0},Iw={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!Mw.call(r,r.previous)||$w(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ww,e.attempt(kw,e.attempt(Sw,o),n),n)(t))};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Mw},Pw={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",a=!1;return function(t){return 72!==t&&104!==t||!Aw.call(r,r.previous)||$w(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),i)};function i(t){if(hv(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),i;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),a?s:(a=!0,l)):n(t)}function s(t){return null===t||yv(t)||Sv(t)||Iv(t)||Cv(t)?n(t):e.attempt(kw,e.attempt(Sw,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Aw},Ow={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,a;return function(t){return jw(t)&&Lw.call(r,r.previous)&&!$w(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(t)):n(t)};function i(t){return jw(t)?(e.consume(t),i):64===t?(e.consume(t),l):n(t)}function l(t){return 46===t?e.check(Cw,c,s)(t):45===t||95===t||gv(t)?(a=!0,e.consume(t),l):c(t)}function s(t){return e.consume(t),o=!0,l}function c(i){return a&&o&&hv(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:Lw},Tw={};let Rw=48;for(;Rw<123;)Tw[Rw]=Ow,Rw++,58===Rw?Rw=65:91===Rw&&(Rw=97);function Mw(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Sv(e)}function Aw(e){return!hv(e)}function Lw(e){return!(47===e||jw(e))}function jw(e){return 43===e||45===e||46===e||95===e||gv(e)}function $w(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}Tw[43]=Ow,Tw[45]=Ow,Tw[46]=Ow,Tw[95]=Ow,Tw[72]=[Ow,Pw],Tw[104]=[Ow,Pw],Tw[87]=[Ow,Iw],Tw[119]=[Ow,Iw];const Nw={tokenize:function(e,t,n){const r=this;return Ov(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 _w(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!i||!i._balanced)return n(o);const l=Qv(r.sliceSerialize({start:i.end,end:r.now()}));return 94===l.codePointAt(0)&&a.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function Dw(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...s),e}function zw(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i=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(i>999||93===l&&!a||null===l||91===l||Sv(l))return n(l);if(93===l){e.exit("chunkString");const a=e.exit("gfmFootnoteCallString");return o.includes(Qv(r.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return Sv(l)||(a=!0),i++,e.consume(l),92===l?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),i++,s):s(t)}}function Fw(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,i,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&&!i||null===t||91===t||Sv(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return a=Qv(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Sv(t)||(i=!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(a)||o.push(a),Ov(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function Bw(e,t,n){return e.check(Av,t,e.attempt(Nw,t,n))}function Ww(e){e.exit("gfmFootnoteDefinition")}function Hw(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,a=this.events;let i=0;return function(t){return 126===o&&"characterEscape"!==a[a.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),l(t))};function l(a){const s=ky(o);if(126===a)return i>1?r(a):(e.consume(a),i++,l);if(i<2&&!t)return r(a);const c=e.exit("strikethroughSequenceTemporary"),u=ky(a);return c._open=!u||2===u&&Boolean(s),c._close=!s||2===s&&Boolean(u),n(a)}},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)},a={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",a,t]],l=t.parser.constructs.insideSpan.null;l&&av(i,i.length,0,gy(l,e.slice(r+1,n),t)),av(i,i.length,0,[["exit",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),av(e,r-1,n-r+3,i),n=r+i.length-2;break}}for(n=-1;++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 Vw{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0!==n||0!==r.length){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 qw(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 Uw(e,t,n){const r=this;let o,a=0,i=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,a="tableHead"===o||"tableRow"===o?x:l;return a===x&&r.parser.lazy[r.now().line]?n(e):a(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(o=!0,i+=1),s(e)}(t)}function s(t){return null===t?n(t):kv(t)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Ev(t)?Ov(e,s,"whitespace")(t):(i+=1,o&&(o=!1,a+=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||Sv(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,Ev(t)?Ov(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?m(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):b(t)}function f(t){return Ev(t)?Ov(e,m,"whitespace")(t):m(t)}function m(t){return 58===t?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(i+=1,h(t)):null===t||kv(t)?y(t):b(t)}function h(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"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return Ev(t)?Ov(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||kv(n))&&o&&a===i?(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||kv(n)?(e.exit("tableRow"),t(n)):Ev(n)?Ov(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||Sv(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?S:k)}function S(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function Kw(e,t){let n,r,o,a=-1,i=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new Vw;for(;++a<e.length;){const f=e[a],m=f[1];"enter"===f[0]?"tableHead"===m.type?(u=!1,0!==d&&(Yw(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",n,t]])):"tableRow"===m.type||"tableDelimiterRow"===m.type?(i=!0,o=void 0,s=[0,0,0,0],c=[0,a+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(a,0,[["enter",r,t]])),l="tableDelimiterRow"===m.type?2:r?3:1):!l||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type?"tableCellDivider"===m.type&&(i?i=!1:(0!==s[1]&&(c[0]=c[1],o=Gw(p,t,s,l,void 0,o)),s=c,c=[s[1],a,0,0])):(i=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],o=Gw(p,t,s,l,void 0,o),s=[0,0,0,0]),c[2]=a)):"tableHead"===m.type?(u=!0,d=a):"tableRow"===m.type||"tableDelimiterRow"===m.type?(d=a,0!==s[1]?(c[0]=c[1],o=Gw(p,t,s,l,a,o)):0!==c[1]&&(o=Gw(p,t,c,l,a,o)),l=0):!l||"data"!==m.type&&"tableDelimiterMarker"!==m.type&&"tableDelimiterFiller"!==m.type||(c[3]=a)}for(0!==d&&Yw(p,t,d,n,r),p.consume(t.events),a=-1;++a<t.events.length;){const e=t.events[a];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=qw(t.events,a))}return e}function Gw(e,t,n,r,o,a){const i=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(a.end=Object.assign({},Xw(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=Xw(t.events,n[1]);if(a={type:i,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),0!==n[2]){const o=Xw(t.events,n[2]),a=Xw(t.events,n[3]),i={type:"tableContent",start:Object.assign({},o),end:Object.assign({},a)};if(e.add(n[2],0,[["enter",i,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",i,t]])}return void 0!==o&&(a.end=Object.assign({},Xw(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function Yw(e,t,n,r,o){const a=[],i=Xw(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function Xw(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Qw={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o):n(t)};function o(t){return Sv(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return kv(r)?t(r):Ev(r)?e.check({tokenize:Jw},t,n)(r):n(r)}}};function Jw(e,t,n){return Ov(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Zw={};function ek(e){const t=e||Zw,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return pv([{text:Tw},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Fw,continuation:{tokenize:Bw},exit:Ww}},text:{91:{name:"gfmFootnoteCall",tokenize:zw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_w,resolveTo:Dw}}},Hw(e),{flow:{null:{name:"table",tokenize:Uw,resolveAll:Kw}}},{text:{91:Qw}}])}(t)),o.push([{transforms:[xx],enter:{literalAutolink:mx,literalAutolinkEmail:hx,literalAutolinkHttp:hx,literalAutolinkWww:hx},exit:{literalAutolink:bx,literalAutolinkEmail:yx,literalAutolinkHttp:gx,literalAutolinkWww:vx}},{enter:{gfmFootnoteCallString:Ex,gfmFootnoteCall:Cx,gfmFootnoteDefinitionLabelString:Ix,gfmFootnoteDefinition:Px},exit:{gfmFootnoteCallString:Ox,gfmFootnoteCall:Tx,gfmFootnoteDefinitionLabelString:Rx,gfmFootnoteDefinition:Mx}},{canContainEols:["delete"],enter:{strikethrough:_x},exit:{strikethrough:Dx}},{enter:{table:uw,tableData:mw,tableHeader:mw,tableRow:pw},exit:{codeText:hw,table:dw,tableData:fw,tableHeader:fw,tableRow:fw}},{exit:{taskListCheckValueChecked:yw,taskListCheckValueUnchecked:yw,paragraph:bw}}]),a.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:px,notInConstruct:fx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:px,notInConstruct:fx},{character:":",before:"[ps]",after:"\\/",inConstruct:px,notInConstruct:fx}]},Lx(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Nx}],handlers:{delete:zx}},vw(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xw}}]}}(t))}const tk=Vs()(function(){return{main:{display:"flex",flexWrap:"wrap",alignItems:"initial",justifyContent:"space-evenly",height:"100%",minHeight:"600px",padding:"0 !important"}}}),nk=function(e){var t,n=e.testSuite,r=pt(),o=tk().classes,a=Fr().enqueueSnackbar,l=rc(function(e){return e.windowIsSmall}),s=rc(function(e){return e.smallWindowThreshold}),c=ft().test_suite_id,u=null==n||null===(t=n.suite_options)||void 0===t?void 0:t.map(function(e){return{id:e.id,value:e&&e.list_options?e.list_options[0].value:""}}),d=lc(i.useState(u||[]),2),p=d[0],f=d[1],m=lc(i.useState(""),2),h=m[0],g=m[1],v=lc(i.useState(!1),2),y=v[0],b=v[1],x=(0,i.useRef)(null);(0,i.useEffect)(function(){null!=n&&n.suite_summary||null!=n&&n.suite_options&&0!==(null==n?void 0:n.suite_options.length)?(b(!0),w()):k(null)},[]),(0,i.useEffect)(function(){w()},[l,x.current]);var w=function(){l?g("100%"):x.current&&g("".concat(s-(x.current.clientWidth||0),"px"))},k=function(){c&&Cu(c,null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:null).then(function(e){if(e&&e.test_suite){var t="/".concat(e.test_suite_id,"/").concat(e.id,"#").concat(e.test_suite_id);r(t);var n=Ys?"/".concat(Ys):window.location.origin;window.location.href="".concat(n).concat(t)}}).catch(function(e){a("Error while creating test session: ".concat(e.message),{variant:"error"})})};return y?i.createElement(Xc,{maxWidth:!1,role:"main",className:o.main,sx:l?{}:{flexDirection:"column",minHeight:"400px",maxHeight:"100vh",py:10}},i.createElement(Tu,{title:(null==n?void 0:n.title.toUpperCase())||"Suite Options",description:(null==n?void 0:n.short_description)||"Select options for the ".concat(null==n?void 0:n.title," Test Suite")}),i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:l?"100%":"50%",maxHeight:l?"unset":"100%",minHeight:l?"unset":"100%",overflow:"auto",px:l?0:8},i.createElement(nu,{display:"flex",alignItems:"center",maxWidth:h,maxHeight:l?"none":"100%",pt:3,sx:l?{mx:2}:{m:4}},i.createElement(Su,{variant:"h3",component:"h1",align:"center",sx:{color:Mh.palette.common.grayDark,fontSize:l?"2rem":"auto",fontWeight:"bolder",letterSpacing:2}},null==n?void 0:n.title.toUpperCase())),i.createElement(nu,{display:"flex",maxWidth:h,justifyContent:"center",overflow:"auto",px:2,mb:3},i.createElement(Su,{variant:"h6",component:"h2",sx:{wordBreak:"break-word"}},i.createElement(lx,{remarkPlugins:[ek]},(null==n?void 0:n.suite_summary)||(null==n?void 0:n.description)||"")))),i.createElement(nu,{display:"flex",height:l?"unset":"100%",width:l?"100%":"unset",maxWidth:l?"100%":"50%",justifyContent:"center",alignItems:"center",sx:{backgroundColor:Mh.palette.common.grayLight}},i.createElement(nu,{display:"flex",ref:x,justifyContent:"center",maxHeight:"100%",m:3},null!=n&&n.suite_options?i.createElement(Ph,{title:"Options",options:(null==n?void 0:n.suite_options)||[],setSelection:function(e){var t;t=e,Array.isArray(t)&&f(e)},showBackButton:!0,backTooltipText:"Back to Suites",submitAction:function(){return k(p)},submitText:"Start Testing"}):i.createElement(Bh,null)))):i.createElement(nu,{ref:x,width:"432px"})},rk={entering:{opacity:1},entered:{opacity:1}},ok=i.forwardRef(function(e,t){const n=gs(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:l,easing:s,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:v=r,TransitionComponent:y=fp,...b}=e,x=i.useRef(null),w=Fu(x,ap(l),t),k=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=k(p),E=k((e,t)=>{mp(e);const r=hp({style:g,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),C=k(d),I=k(h),P=k(e=>{const t=hp({style:g,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),O=k(m);return(0,Dc.jsx)(y,{appear:a,in:c,nodeRef:x,onEnter:E,onEntered:C,onEntering:S,onExit:P,onExited:O,onExiting:I,addEndListener:e=>{o&&o(x.current,e)},timeout:v,...b,children:(e,{ownerState:t,...n})=>i.cloneElement(l,{style:{opacity:0,visibility:"exited"!==e||c?void 0:"hidden",...rk[e],...g,...l.props.style},ref:w,...n})})}),ak=ok;function ik(e){return fc("MuiAlert",e)}const lk=Jc("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),sk=Jd((0,Dc.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),ck=Jd((0,Dc.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),uk=Jd((0,Dc.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),dk=Jd((0,Dc.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),pk=Jd((0,Dc.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),fk=qc(Lu,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Wc(n.color||n.severity)}`]]}})(mu(({theme:e})=>{const t="light"===e.palette.mode?zi:Bi,n="light"===e.palette.mode?Bi:zi;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(hu(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${lk.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(hu(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${lk.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(hu(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),mk=qc("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hk=qc("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),gk=qc("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),vk={success:(0,Dc.jsx)(sk,{fontSize:"inherit"}),warning:(0,Dc.jsx)(ck,{fontSize:"inherit"}),error:(0,Dc.jsx)(uk,{fontSize:"inherit"}),info:(0,Dc.jsx)(dk,{fontSize:"inherit"})},yk=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAlert"}),{action:r,children:o,className:a,closeText:i="Close",color:l,components:s={},componentsProps:c={},icon:u,iconMapping:d=vk,onClose:p,role:f="alert",severity:m="success",slotProps:h={},slots:g={},variant:v="standard",...y}=n,b={...n,color:l,severity:m,variant:v,colorSeverity:l||m},x=(e=>{const{variant:t,color:n,severity:r,classes:o}=e;return mc({root:["root",`color${Wc(n||r)}`,`${t}${Wc(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]},ik,o)})(b),w={slots:{closeButton:s.CloseButton,closeIcon:s.CloseIcon,...g},slotProps:{...c,...h}},[k,S]=Qf("root",{ref:t,shouldForwardComponentProp:!0,className:cc(x.root,a),elementType:fk,externalForwardedProps:{...w,...y},ownerState:b,additionalProps:{role:f,elevation:0}}),[E,C]=Qf("icon",{className:x.icon,elementType:mk,externalForwardedProps:w,ownerState:b}),[I,P]=Qf("message",{className:x.message,elementType:hk,externalForwardedProps:w,ownerState:b}),[O,T]=Qf("action",{className:x.action,elementType:gk,externalForwardedProps:w,ownerState:b}),[R,M]=Qf("closeButton",{elementType:Kd,externalForwardedProps:w,ownerState:b}),[A,L]=Qf("closeIcon",{elementType:pk,externalForwardedProps:w,ownerState:b});return(0,Dc.jsxs)(k,{...S,children:[!1!==u?(0,Dc.jsx)(E,{...C,children:u||d[m]||vk[m]}):null,(0,Dc.jsx)(I,{...P,children:o}),null!=r?(0,Dc.jsx)(O,{...T,children:r}):null,null==r&&p?(0,Dc.jsx)(O,{...T,children:(0,Dc.jsx)(R,{size:"small","aria-label":i,title:i,color:"inherit",onClick:p,...M,children:(0,Dc.jsx)(A,{fontSize:"small",...L})})}):null]})}),bk=yk;var xk=function(){var e,t=null===(e=document.getElementsByClassName("banner")[0])||void 0===e?void 0:e.clientHeight;return null==t?0:t};const wk=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},contentContainer:{overflowX:"hidden",overflow:"auto","@media print":{margin:0,position:"absolute",left:0,right:0,top:"51px"}},drawer:{display:"flex",flexGrow:1,overflow:"hidden","@media print":{display:"none"}},testSuiteMain:{display:"flex",flexGrow:1,overflow:"hidden",maxHeight:"calc(100vh - ".concat(xk(),"px)"),"@media print":{maxHeight:"unset"}},drawerPaper:{flexShrink:0,width:"300px",position:"static"},swipeableDrawerHeight:{marginTop:"".concat(xk(),"px"),height:"calc(100% - ".concat(xk(),"px)")},hidePrint:{"@media print":{display:"none"}}}}),kk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sk(e){const t=[],n=[];return Array.from(e.querySelectorAll(kk)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Ek(){return!0}const Ck=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Sk,isEnabled:l=Ek,open:s}=e,c=i.useRef(!1),u=i.useRef(null),d=i.useRef(null),p=i.useRef(null),f=i.useRef(null),m=i.useRef(!1),h=i.useRef(null),g=zu(ap(t),h),v=i.useRef(null);i.useEffect(()=>{s&&h.current&&(m.current=!n)},[n,s]),i.useEffect(()=>{if(!s||!h.current)return;const e=wp(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[s]),i.useEffect(()=>{if(!s||!h.current)return;const e=wp(h.current),t=t=>{v.current=t,!r&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=a(h.current)),n.length>0){const e=Boolean(v.current?.shiftKey&&"Tab"===v.current?.key),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,l,s,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Dc.jsx)("div",{tabIndex:s?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})};function Ik(e){return fc("MuiBackdrop",e)}Jc("MuiBackdrop",["root","invisible"]);const Pk=qc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ok=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:a="div",invisible:i=!1,open:l,components:s={},componentsProps:c={},slotProps:u={},slots:d={},TransitionComponent:p,transitionDuration:f,...m}=n,h={...n,component:a,invisible:i},g=(e=>{const{classes:t,invisible:n}=e;return mc({root:["root",n&&"invisible"]},Ik,t)})(h),v={slots:{transition:p,root:s.Root,...d},slotProps:{...c,...u}},[y,b]=Qf("root",{elementType:Pk,externalForwardedProps:v,className:cc(g.root,o),ownerState:h}),[x,w]=Qf("transition",{elementType:ak,externalForwardedProps:v,ownerState:h});return(0,Dc.jsx)(x,{in:l,timeout:f,...m,...w,children:(0,Dc.jsx)(y,{"aria-hidden":!0,...b,classes:g,ref:t,children:r})})}),Tk=Ok;function Rk(e){return wp(e).defaultView||window}function Mk(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ak(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Lk(e){return parseInt(Rk(e).getComputedStyle(e).paddingRight,10)||0}function jk(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,e=>{const t=!a.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Ak(e,o)})}function $k(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}const Nk=()=>{},_k=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ak(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);jk(t,e.mount,e.modalRef,r,!0);const o=$k(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=$k(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=function(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=wp(e);return t.body===e?Rk(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Mk(Rk(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Lk(r)+e}px`;const t=wp(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Lk(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=wp(r).body;else{const t=r.parentElement,n=Rk(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=$k(this.containers,t=>t.modals.includes(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Ak(e.modalRef,t),jk(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Ak(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Dk(e){return fc("MuiModal",e)}Jc("MuiModal",["root","hidden","backdrop"]);const zk=qc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(mu(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),Fk=qc(Tk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Bk=i.forwardRef(function(e,t){const n=Gc({name:"MuiModal",props:e}),{BackdropComponent:r=Fk,BackdropProps:o,classes:a,className:l,closeAfterTransition:s=!1,children:c,container:u,component:d,components:p={},componentsProps:f={},disableAutoFocus:m=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:g=!1,disablePortal:v=!1,disableRestoreFocus:y=!1,disableScrollLock:b=!1,hideBackdrop:x=!1,keepMounted:w=!1,onBackdropClick:k,onClose:S,onTransitionEnter:E,onTransitionExited:C,open:I,slotProps:P={},slots:O={},theme:T,...R}=n,M={...n,closeAfterTransition:s,disableAutoFocus:m,disableEnforceFocus:h,disableEscapeKeyDown:g,disablePortal:v,disableRestoreFocus:y,disableScrollLock:b,hideBackdrop:x,keepMounted:w},{getRootProps:A,getBackdropProps:L,getTransitionProps:j,portalRef:$,isTopModal:N,exited:_,hasTransition:D}=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=i.useRef({}),f=i.useRef(null),m=i.useRef(null),h=zu(m,d),[g,v]=i.useState(!u),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),w=()=>{_k.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},k=Wu(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||wp(f.current).body;_k.add(x(),e),m.current&&w()}),S=()=>_k.isTopModal(x()),E=Wu(e=>{f.current=e,e&&(u&&S()?w():m.current&&Ak(m.current,b))}),C=i.useCallback(()=>{_k.remove(x(),b)},[b]);i.useEffect(()=>()=>{C()},[C]),i.useEffect(()=>{u?k():y&&o||C()},[u,C,y,o,k]);const I=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&S()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},P=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=$f(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:I(r),ref:h}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:P(t),open:u}},getTransitionProps:()=>({onEnter:hh(()=>{v(!1),a&&a()},s?.props.onEnter??Nk),onExited:hh(()=>{v(!0),l&&l(),o&&C()},s?.props.onExited??Nk)}),rootRef:h,portalRef:E,isTopModal:S,exited:g,hasTransition:y}}({...M,rootRef:t}),z={...M,exited:_},F=(e=>{const{open:t,exited:n,classes:r}=e;return mc({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Dk,r)})(z),B={};if(void 0===c.props.tabIndex&&(B.tabIndex="-1"),D){const{onEnter:e,onExited:t}=j();B.onEnter=e,B.onExited=t}const W={slots:{root:p.Root,backdrop:p.Backdrop,...O},slotProps:{...f,...P}},[H,V]=Qf("root",{ref:t,elementType:zk,externalForwardedProps:{...W,...R,component:d},getSlotProps:A,ownerState:z,className:cc(l,F?.root,!z.open&&z.exited&&F?.hidden)}),[q,U]=Qf("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:W,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>L({...e,onClick:t=>{k&&k(t),e?.onClick&&e.onClick(t)}}),className:cc(o?.className,F?.backdrop),ownerState:z});return w||I||D&&!_?(0,Dc.jsx)(Bf,{ref:$,container:u,disablePortal:v,children:(0,Dc.jsxs)(H,{...V,children:[!x&&r?(0,Dc.jsx)(q,{...U}):null,(0,Dc.jsx)(Ck,{disableEnforceFocus:h,disableAutoFocus:m,disableRestoreFocus:y,isEnabled:N,open:I,children:i.cloneElement(c,B)})]})}):null}),Wk=Bk;function Hk(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}const Vk=Hk,qk=Rk;function Uk(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=qk(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const e=a.getComputedStyle(t);i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let l=0,s=0;if(i&&"none"!==i&&"string"==typeof i){const e=i.split("(")[1].split(")")[0].split(",");l=parseInt(e[4],10),s=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+l-r.left}px)`:`translateX(${a.innerWidth+l-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:"up"===e?o?`translateY(${o.bottom+s-r.top}px)`:`translateY(${a.innerHeight+s-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-s}px)`:`translateY(-${r.top+r.height-s}px)`}(e,t,"function"==typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Kk=i.forwardRef(function(e,t){const n=gs(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:s,container:c,direction:u="down",easing:d=r,in:p,onEnter:f,onEntered:m,onEntering:h,onExit:g,onExited:v,onExiting:y,style:b,timeout:x=o,TransitionComponent:w=fp,...k}=e,S=i.useRef(null),E=Fu(ap(s),S,t),C=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},I=C((e,t)=>{Uk(u,e,c),mp(e),f&&f(e,t)}),P=C((e,t)=>{const r=hp({timeout:x,style:b,easing:d},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",{...r}),e.style.transition=n.transitions.create("transform",{...r}),e.style.webkitTransform="none",e.style.transform="none",h&&h(e,t)}),O=C(m),T=C(y),R=C(e=>{const t=hp({timeout:x,style:b,easing:d},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),Uk(u,e,c),g&&g(e)}),M=C(e=>{e.style.webkitTransition="",e.style.transition="",v&&v(e)}),A=i.useCallback(()=>{S.current&&Uk(u,S.current,c)},[u,c]);return i.useEffect(()=>{if(p||"down"===u||"right"===u)return;const e=Vk(()=>{S.current&&Uk(u,S.current,c)}),t=qk(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[u,p,c]),i.useEffect(()=>{p||A()},[p,A]),(0,Dc.jsx)(w,{nodeRef:S,onEnter:I,onEntered:O,onEntering:P,onExit:R,onExited:M,onExiting:T,addEndListener:e=>{a&&a(S.current,e)},appear:l,in:p,timeout:x,...k,children:(e,{ownerState:t,...n})=>i.cloneElement(s,{ref:E,style:{visibility:"exited"!==e||p?void 0:"hidden",...b,...s.props.style},...n})})}),Gk=Kk;function Yk(e){return fc("MuiDrawer",e)}function Xk(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return n=>{const r="function"==typeof t?t(n):t,o="function"==typeof e?e({...n,...r}):e,a=cc(n?.className,r?.className,o?.className);return{...r,...o,...!!a&&{className:a},...r?.style&&o?.style&&{style:{...r.style,...o.style}},...r?.sx&&o?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};const n=t,r=cc(n?.className,e?.className);return{...t,...e,...!!r&&{className:r},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}Jc("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Qk=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},Jk=qc(Wk,{name:"MuiDrawer",slot:"Root",overridesResolver:Qk})(mu(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Zk=qc("div",{shouldForwardProp:Vc,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Qk})({flex:"0 0 auto"}),eS=qc(Lu,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Wc(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${Wc(n.anchor)}`]]}})(mu(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:e})=>"left"===e.anchor&&"temporary"!==e.variant,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"top"===e.anchor&&"temporary"!==e.variant,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"right"===e.anchor&&"temporary"!==e.variant,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"bottom"===e.anchor&&"temporary"!==e.variant,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),tS={left:"right",right:"left",top:"down",bottom:"up"};function nS(e){return["left","right"].includes(e)}function rS({direction:e},t){return"rtl"===e&&nS(t)?tS[t]:t}const oS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDrawer"}),r=gs(),o=rp(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:s,children:c,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:f,...m}={},onClose:h,open:g=!1,PaperProps:v={},SlideProps:y,TransitionComponent:b,transitionDuration:x=a,variant:w="temporary",slots:k={},slotProps:S={},...E}=n,C=i.useRef(!1);i.useEffect(()=>{C.current=!0},[]);const I=rS({direction:o?"rtl":"ltr"},l),P=l,O={...n,anchor:P,elevation:d,open:g,variant:w,...E},T=(e=>{const{classes:t,anchor:n,variant:r}=e;return mc({root:["root",`anchor${Wc(n)}`],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Wc(n)}`,"temporary"!==r&&`paperAnchorDocked${Wc(n)}`]},Yk,t)})(O),R={slots:{transition:b,...k},slotProps:{paper:v,transition:y,...S,backdrop:Xk(S.backdrop||{...s,...f},{transitionDuration:x})}},[M,A]=Qf("root",{ref:t,elementType:Jk,className:cc(T.root,T.modal,u),shouldForwardComponentProp:!0,ownerState:O,externalForwardedProps:{...R,...E,...m},additionalProps:{open:g,onClose:h,hideBackdrop:p,slots:{backdrop:R.slots.backdrop},slotProps:{backdrop:R.slotProps.backdrop}}}),[L,j]=Qf("paper",{elementType:eS,shouldForwardComponentProp:!0,className:cc(T.paper,v.className),ownerState:O,externalForwardedProps:R,additionalProps:{elevation:"temporary"===w?d:0,square:!0}}),[$,N]=Qf("docked",{elementType:Zk,ref:t,className:cc(T.root,T.docked,u),ownerState:O,externalForwardedProps:R,additionalProps:E}),[_,D]=Qf("transition",{elementType:Gk,ownerState:O,externalForwardedProps:R,additionalProps:{in:g,direction:tS[I],timeout:x,appear:C.current}}),z=(0,Dc.jsx)(L,{...j,children:c});if("permanent"===w)return(0,Dc.jsx)($,{...N,children:z});const F=(0,Dc.jsx)(_,{...D,children:z});return"persistent"===w?(0,Dc.jsx)($,{...N,children:F}):(0,Dc.jsx)(M,{...A,children:F})}),aS=oS;function iS(e){return fc("MuiDivider",e)}const lS=Jc("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sS=qc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(mu(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:_i(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),cS=qc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(mu(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),uS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,orientation:i="horizontal",component:l=(o||"vertical"===i?"div":"hr"),flexItem:s=!1,light:c=!1,role:u=("hr"!==l?"separator":void 0),textAlign:d="center",variant:p="fullWidth",...f}=n,m={...n,absolute:r,component:l,flexItem:s,light:c,orientation:i,role:u,textAlign:d,variant:p},h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return mc({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},iS,r)})(m);return(0,Dc.jsx)(sS,{as:l,className:cc(h.root,a),role:u,ref:t,ownerState:m,"aria-orientation":"separator"!==u||"hr"===l&&"vertical"!==i?void 0:i,...f,children:o?(0,Dc.jsx)(cS,{className:h.wrapper,ownerState:m,children:o}):null})});uS&&(uS.muiSkipListHighlight=!0);const dS=uS,pS=Vs()(function(e){return{labelRoot:{display:"flex",flex:"1 1 auto",alignItems:"center",padding:e.spacing(.5,0)},labelText:{display:"inline"},optionalLabel:{display:"inline",fontStyle:"italic",alignSelf:"center",color:e.palette.common.gray,paddingLeft:"8px"},shortId:{display:"inline",fontWeight:"bold",alignSelf:"center",color:e.palette.common.grayDark},testSuiteTreePanel:{display:"flex",flexDirection:"column",width:"300px",flexGrow:1,overflow:"hidden"},testSuiteTree:{height:"100%",display:"flex",flexDirection:"column",overflowY:"auto"},treeRoot:{"& $labelText":{textTransform:"uppercase",fontWeight:"bold"},padding:"8px 20px !important"},treeItemTopBorder:{borderTop:"1px solid ".concat(e.palette.divider)},treeItemBottomBorder:{borderBottom:"1px solid ".concat(e.palette.divider)}}}),fS=function(){for(var e=wk().classes,t=pS().classes,n=rc(function(e){return e.windowIsSmall}),r=i.createElement(nu,{display:"flex",flexDirection:"row",alignItems:"center",mx:2,my:2},i.createElement(Fh,{variant:"circular",height:"14px",width:"16px"}),i.createElement(Fh,{height:10,width:200,sx:{ml:1}})),o=i.createElement(nu,{ml:3},r),a=[],l=0;l<3;l++)a.push(i.createElement("div",{key:l},r,o,o));return n?i.createElement(i.Fragment,null):i.createElement(aS,{variant:"permanent",anchor:"left",classes:{paper:e.drawerPaper},"data-testid":"drawerSkeleton"},i.createElement(Fh,{variant:"rounded",height:32,sx:{m:2}}),i.createElement(dS,null),i.createElement(nu,{className:t.testSuiteTreePanel,py:1},a))};function mS(e){return fc("MuiCard",e)}Jc("MuiCard",["root"]);const hS=qc(Lu,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),gS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiCard"}),{className:r,raised:o=!1,...a}=n,i={...n,raised:o},l=(e=>{const{classes:t}=e;return mc({root:["root"]},mS,t)})(i);return(0,Dc.jsx)(hS,{className:cc(l.root,r),elevation:o?8:void 0,ref:t,ownerState:i,...a})}),vS=gS,yS=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},currentItem:{fontWeight:600},shortId:{display:"inline",fontWeight:"bold",alignSelf:"center",color:e.palette.common.grayDark},testGroupCardHeader:{display:"flex",overflow:"auto",alignItems:"center",minHeight:"36.5px",padding:"8px 16px",backgroundColor:e.palette.common.blueLightest,"@media print":{padding:"0 8px"}},testGroupCardHeaderText:{flexGrow:1,padding:"0 8px"},testGroupCardHeaderButton:{minWidth:"fit-content","@media print":{display:"none"}},reportSummaryItems:{padding:"16px;",display:"flex",justifyContent:"space-around",textAlign:"center"},reportSummaryURL:{textAlign:"right",padding:"0 8px;",fontSize:"12px",wordBreak:"break-word"},alert:{marginBottom:"8px",alignItems:"center",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact","& .MuiAlert-message":{width:"100%"}},alertMessage:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1",overflow:"hidden",alignItems:"center",justifyContent:"space-between"},alertCursor:{"& :hover":{cursor:"pointer"}}}}),bS=function(){for(var e=yS().classes,t=rc(function(e){return e.windowIsSmall}),n=i.createElement(i.Fragment,null,i.createElement(dS,null),i.createElement(nu,{sx:{display:"flex",alignItems:"center",minHeight:"36.5px",px:2,py:1}},i.createElement(Fh,{variant:"circular",height:24,width:24}),i.createElement("span",{className:e.testGroupCardHeaderText},i.createElement(Fh,{height:20,width:240})))),r=[],o=0;o<3;o++)r.push(i.createElement("div",{key:o},n));return i.createElement(vS,{variant:"outlined",sx:{mb:3},"data-testid":"testSessionSkeleton"},i.createElement(nu,{className:e.testGroupCardHeader},i.createElement(Fh,{variant:"circular",height:24,width:24}),i.createElement("span",{className:e.testGroupCardHeaderText},i.createElement(Fh,{height:20,width:t?120:240})),i.createElement("span",{className:e.testGroupCardHeaderButton},i.createElement(Fh,{variant:"rounded",height:30,width:140}))),i.createElement(dS,null),i.createElement(nu,{m:2.5},i.createElement(Fh,{height:10,sx:{my:2}}),i.createElement(Fh,{height:10,width:"90%",sx:{my:2}}),i.createElement(Fh,{height:10,width:"95%",sx:{my:2}}),i.createElement(Fh,{height:10,sx:{my:2}}),i.createElement(Fh,{height:10,width:"90%",sx:{my:2}}),i.createElement(Fh,{height:10,width:"95%",sx:{my:2}}),i.createElement(Fh,{height:10,width:"50%",sx:{my:2}})),r)},xS=function(){var e=wk().classes,t=rc(function(e){return e.windowIsSmall});return i.createElement(nu,{className:e.testSuiteMain,"data-testid":"appSkeleton"},i.createElement(fS,null),i.createElement("main",{style:{overflow:"auto",width:"100%",backgroundColor:Bi(Mh.palette.common.grayLight,.5)}},i.createElement(nu,{className:e.contentContainer,p:t?1:4},i.createElement(bS,null))))};function wS(e){return fc("MuiLink",e)}const kS=Jc("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),SS=({theme:e,ownerState:t})=>{const n=t.color,r=ro(e,`palette.${n}.main`,!1)||ro(e,`palette.${n}`,!1)||t.color,o=ro(e,`palette.${n}.mainChannel`)||ro(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:_i(r,.4)},ES={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},CS=qc(Su,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Wc(n.underline)}`],"button"===n.component&&t.button]}})(mu(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:_i(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:_i(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:_i(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kS.focusVisible}`]:{outline:"auto"}}}]}))),IS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiLink"}),r=gs(),{className:o,color:a="primary",component:l="a",onBlur:s,onFocus:c,TypographyClasses:u,underline:d="always",variant:p="inherit",sx:f,...m}=n,[h,g]=i.useState(!1),v={...n,color:a,component:l,focusVisible:h,underline:d,variant:p},y=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return mc({root:["root",`underline${Wc(o)}`,"button"===n&&"button",r&&"focusVisible"]},wS,t)})(v);return(0,Dc.jsx)(CS,{color:a,className:cc(y.root,o),classes:u,component:l,onBlur:e=>{Du(e.target)||g(!1),s&&s(e)},onFocus:e=>{Du(e.target)&&g(!0),c&&c(e)},ref:t,ownerState:v,variant:p,...m,sx:[...void 0===ES[a]?[{color:a}]:[],...Array.isArray(f)?f:[f]],style:{...m.style,..."always"===d&&"inherit"!==a&&!ES[a]&&{"--Link-underlineColor":SS({theme:r,ownerState:v})}}})}),PS=IS,OS=wp;function TS(e){return fc("MuiList",e)}Jc("MuiList",["root","padding","dense","subheader"]);const RS=qc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),MS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:c,...u}=n,d=i.useMemo(()=>({dense:l}),[l]),p={...n,component:a,dense:l,disablePadding:s},f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return mc({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},TS,t)})(p);return(0,Dc.jsx)(mm.Provider,{value:d,children:(0,Dc.jsxs)(RS,{as:a,className:cc(f.root,o),ref:t,ownerState:p,...u,children:[c,r]})})}),AS=MS,LS=Mk;function jS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $S(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function NS(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function _S(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&NS(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const DS=i.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=e,f=i.useRef(null),m=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});fm(()=>{r&&f.current.focus()},[r]),i.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${LS(qk(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const h=Fu(f,t);let g=-1;i.Children.forEach(a,(e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))});const v=i.Children.map(a,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),i.cloneElement(e,t)}return e});return(0,Dc.jsx)(AS,{role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(u&&u(e));const r=OS(t).activeElement;if("ArrowDown"===n)e.preventDefault(),_S(t,r,c,s,jS);else if("ArrowUp"===n)e.preventDefault(),_S(t,r,c,s,$S);else if("Home"===n)e.preventDefault(),_S(t,null,c,s,jS);else if("End"===n)e.preventDefault(),_S(t,null,c,s,$S);else if(1===n.length){const o=m.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const l=r&&!o.repeating&&NS(r,o);o.previousKeyMatched&&(l||_S(t,r,!1,s,jS,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1,...p,children:v})}),zS=DS,FS=function(e){return"string"==typeof e};function BS(e){return fc("MuiPopover",e)}function WS(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function HS(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function VS(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function qS(e){return"function"==typeof e?e():e}Jc("MuiPopover",["root","paper"]);const US=qc(Wk,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KS=qc(Lu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),GS=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:s="anchorEl",children:c,className:u,container:d,elevation:p=8,marginThreshold:f=16,open:m,PaperProps:h={},slots:g={},slotProps:v={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:x="auto",TransitionProps:w={},disableScrollLock:k=!1,...S}=n,E=i.useRef(),C={...n,anchorOrigin:a,anchorReference:s,elevation:p,marginThreshold:f,transformOrigin:y,TransitionComponent:b,transitionDuration:x,TransitionProps:w},I=(e=>{const{classes:t}=e;return mc({root:["root"],paper:["paper"]},BS,t)})(C),P=i.useCallback(()=>{if("anchorPosition"===s)return l;const e=qS(o),t=(e&&1===e.nodeType?e:OS(E.current).body).getBoundingClientRect();return{top:t.top+WS(t,a.vertical),left:t.left+HS(t,a.horizontal)}},[o,a.horizontal,a.vertical,l,s]),O=i.useCallback(e=>({vertical:WS(e,y.vertical),horizontal:HS(e,y.horizontal)}),[y.horizontal,y.vertical]),T=i.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if("none"===s)return{top:null,left:null,transformOrigin:VS(n)};const r=P();let a=r.top-n.vertical,i=r.left-n.horizontal;const l=a+t.height,c=i+t.width,u=qk(qS(o)),d=u.innerHeight-f,p=u.innerWidth-f;if(null!==f&&a<f){const e=a-f;a-=e,n.vertical+=e}else if(null!==f&&l>d){const e=l-d;a-=e,n.vertical+=e}if(null!==f&&i<f){const e=i-f;i-=e,n.horizontal+=e}else if(c>p){const e=c-p;i-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(i)}px`,transformOrigin:VS(n)}},[o,s,P,O,f]),[R,M]=i.useState(m),A=i.useCallback(()=>{const e=E.current;if(!e)return;const t=T(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)},[T]);i.useEffect(()=>(k&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[o,k,A]),i.useEffect(()=>{m&&A()}),i.useImperativeHandle(r,()=>m?{updatePosition:()=>{A()}}:null,[m,A]),i.useEffect(()=>{if(!m)return;const e=Vk(()=>{A()}),t=qk(qS(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,m,A]);let L=x;const j={slots:{transition:b,...g},slotProps:{transition:w,paper:h,...v}},[$,N]=Qf("transition",{elementType:xp,externalForwardedProps:j,ownerState:C,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),M(!1)}}),additionalProps:{appear:!0,in:m}});"auto"!==x||$.muiSupportAuto||(L=void 0);const _=d||(o?OS(qS(o)).body:void 0),[D,{slots:z,slotProps:F,...B}]=Qf("root",{ref:t,elementType:US,externalForwardedProps:{...j,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:Xk("function"==typeof v.backdrop?v.backdrop(C):v.backdrop,{invisible:!0})},container:_,open:m},ownerState:C,className:cc(I.root,u)}),[W,H]=Qf("paper",{ref:E,className:I.paper,elementType:KS,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:R?void 0:{opacity:0}},ownerState:C});return(0,Dc.jsx)(D,{...B,...!FS(D)&&{slots:z,slotProps:F,disableScrollLock:k},children:(0,Dc.jsx)($,{...N,timeout:L,children:(0,Dc.jsx)(W,{...H,children:c})})})}),YS=GS;function XS(e){return fc("MuiMenu",e)}Jc("MuiMenu",["root","paper","list"]);const QS={vertical:"top",horizontal:"right"},JS={vertical:"top",horizontal:"left"},ZS=qc(YS,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eE=qc(KS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tE=qc(zS,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiMenu"}),{autoFocus:r=!0,children:o,className:a,disableAutoFocusItem:l=!1,MenuListProps:s={},onClose:c,open:u,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:m,...h}={},variant:g="selectedMenu",slots:v={},slotProps:y={},...b}=n,x=rp(),w={...n,autoFocus:r,disableAutoFocusItem:l,MenuListProps:s,onEntering:m,PaperProps:d,transitionDuration:f,TransitionProps:h,variant:g},k=(e=>{const{classes:t}=e;return mc({root:["root"],paper:["paper"],list:["list"]},XS,t)})(w),S=r&&!l&&u,E=i.useRef(null);let C=-1;i.Children.map(o,(e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===C)&&(C=t))});const I={slots:v,slotProps:{list:s,transition:h,paper:d,...y}},P=zf({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[k.root,a]}),[O,T]=Qf("paper",{className:k.paper,elementType:eE,externalForwardedProps:I,shouldForwardComponentProp:!0,ownerState:w}),[R,M]=Qf("list",{className:cc(k.list,s.className),elementType:tE,shouldForwardComponentProp:!0,externalForwardedProps:I,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))})(t),e.onKeyDown?.(t)}}),ownerState:w}),A="function"==typeof I.slotProps.transition?I.slotProps.transition(w):I.slotProps.transition;return(0,Dc.jsx)(ZS,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?QS:JS,slots:{root:v.root,paper:O,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:P,paper:T,backdrop:"function"==typeof y.backdrop?y.backdrop(w):y.backdrop,transition:{...A,onEntering:(...e)=>{((e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,{direction:x?"rtl":"ltr"}),m&&m(e,t)})(...e),A?.onEntering?.(...e)}}},open:u,ref:t,transitionDuration:f,ownerState:w,...b,classes:p,children:(0,Dc.jsx)(R,{actions:E,autoFocus:r&&(-1===C||l),autoFocusItem:S,variant:g,...M,children:o})})}),rE=nE;function oE(e){return fc("MuiListItemIcon",e)}const aE=Jc("MuiListItemIcon",["root","alignItemsFlexStart"]);function iE(e){return fc("MuiMenuItem",e)}const lE=Jc("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sE=qc(bd,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(mu(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lE.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${lE.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${lE.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lE.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${lS.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${lS.inset}`]:{marginLeft:52},[`& .${wm.root}`]:{marginTop:0,marginBottom:0},[`& .${wm.inset}`]:{paddingLeft:36},[`& .${aE.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${aE.root} svg`]:{fontSize:"1.25rem"}}}]}))),cE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p,...f}=n,m=i.useContext(mm),h=i.useMemo(()=>({dense:a||m.dense||!1,disableGutters:s}),[m.dense,a,s]),g=i.useRef(null);fm(()=>{r&&g.current&&g.current.focus()},[r]);const v={...n,dense:h.dense,divider:l,disableGutters:s},y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,l=mc({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},iE,i);return{...i,...l}})(n),b=Fu(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),(0,Dc.jsx)(mm.Provider,{value:h,children:(0,Dc.jsx)(sE,{ref:b,role:u,tabIndex:x,component:o,focusVisibleClassName:cc(y.focusVisible,c),className:cc(y.root,p),...f,ownerState:v,classes:y})})}),uE=cE,dE=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),pE=Vs()(function(e){return{footer:{display:"flex",width:"100%",overflow:"auto",borderTop:"1px ".concat(e.palette.divider," solid"),bottom:0,"@media print":{display:"none"}},logo:{objectFit:"contain",height:"2.5em",padding:"0 8px 0 0"},mobileLogo:{objectFit:"contain",height:"1.7em",padding:"4px 8px 0 0"},logoText:{fontStyle:"italic",textTransform:"uppercase",width:"max-content"},link:{fontWeight:"bolder",width:"max-content"}}}),fE=function(e){var t=e.version,n=e.linkList,r=pE().classes,o=rc(function(e){return e.footerHeight}),a=rc(function(e){return e.windowIsSmall}),l=lc(i.useState(null),2),s=l[0],c=l[1],u=lc(i.useState(!1),2),d=u[0],p=u[1],f=function(){var e=window.location.host,t="".concat(e,"/").concat(Ys),n=window.location.protocol;return i.createElement(nu,{display:"flex"},i.createElement(PS,{href:"".concat("https://inferno-framework.github.io/inferno-core/api-docs/","?scheme=").concat(n,"&host=").concat(t),target:"_blank",rel:"noreferrer",color:"secondary.dark",className:r.link,sx:{fontSize:a?"0.7rem":"0.9rem"}},"API"))},m=function(e){return i.createElement(PS,{href:e.url,target:"_blank",rel:"noreferrer",color:"secondary.dark",className:r.link,style:a?{fontSize:"0.8rem"}:{fontSize:"1.1rem",margin:"0 16px"}},e.label)};return i.createElement("footer",{className:r.footer,style:{minHeight:"".concat(o,"px"),maxHeight:"".concat(o,"px")}},i.createElement(nu,{display:"flex",flexDirection:"row",justifyContent:"space-between",overflow:"auto",width:"100%"},i.createElement(nu,{display:"flex",alignItems:"center",px:2},i.createElement(PS,{href:"https://inferno-framework.github.io/",target:"_blank",rel:"noreferrer","aria-label":"Inferno"},i.createElement("img",{src:Qs(Ou),alt:"Inferno logo - documentation",className:a?r.mobileLogo:r.logo})),t?i.createElement(nu,{display:"flex",flexDirection:"column"},!a&&i.createElement(Su,{className:r.logoText,sx:{fontSize:"0.7rem"}},"Built with"),i.createElement(nu,{display:"flex",flexDirection:"row",alignItems:"center"},i.createElement(nu,null,i.createElement(Su,{className:r.logoText,sx:{fontSize:a?"0.7rem":"0.9rem"}},"v.".concat(t))),i.createElement(dS,{flexItem:!0,orientation:"vertical",sx:{margin:"4px 8px"}}),f())):f()),a?function(){if(n&&0!==n.length)return i.createElement(nu,{display:"flex",alignItems:"center","data-testid":"footer-links"},i.createElement(Kd,{"aria-label":"links",size:"small",color:"secondary",onClick:function(e){c(s?null:e.currentTarget),p(!d)}},i.createElement(dE,{fontSize:"inherit"})),n&&d&&i.createElement(rE,{anchorEl:s,open:d,MenuListProps:{dense:!0},onClose:function(){p(!1),c(null)}},n.map(function(e){return i.createElement(uE,{key:e.url},m(e))})))}():function(){if(n&&0!==n.length)return i.createElement(nu,{display:"flex",alignItems:"center",p:2,"data-testid":"footer-links"},n&&n.map(function(e,t){return i.createElement(i.Fragment,{key:e.url},m(e),t!==n.length-1&&i.createElement(dS,{orientation:"vertical",flexItem:!0}))}))}()))},mE=function(){var e=pE().classes,t=rc(function(e){return e.footerHeight}),n=rc(function(e){return e.windowIsSmall});return i.createElement("footer",{className:e.footer,style:{minHeight:"".concat(t,"px"),maxHeight:"".concat(t,"px"),backgroundColor:"white"},"data-testid":"footerSkeleton"},i.createElement(nu,{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},i.createElement(nu,{display:"flex",alignItems:"center",px:2},n?i.createElement(Fh,{variant:"rectangular",height:22,width:80,sx:{mr:1}}):i.createElement(Fh,{variant:"rectangular",height:40,width:100,style:{marginRight:"16px"}}),i.createElement(nu,{display:"flex",flexDirection:"column"},!n&&i.createElement(Fh,{height:10,width:60}),i.createElement(Fh,{height:20,width:100}))),i.createElement(nu,{display:"flex",alignItems:"center",pr:n?1:3,py:2},n?i.createElement(Fh,{variant:"circular",height:20,width:20}):i.createElement(Fh,{variant:"rounded",height:24,width:200}))))};function hE(e){return fc("MuiAppBar",e)}Jc("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const gE=(e,t)=>e?`${e?.replace(")","")}, ${t})`:t,vE=qc(Lu,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Wc(n.position)}`],t[`color${Wc(n.color)}`]]}})(mu(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(hu(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:e=>!0===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>!1===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?gE(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?gE(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),yE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAppBar"}),{className:r,color:o="primary",enableColorOnDark:a=!1,position:i="fixed",...l}=n,s={...n,color:o,position:i,enableColorOnDark:a},c=(e=>{const{color:t,position:n,classes:r}=e;return mc({root:["root",`color${Wc(t)}`,`position${Wc(n)}`]},hE,r)})(s);return(0,Dc.jsx)(vE,{square:!0,component:"header",ownerState:s,elevation:4,className:cc(c.root,r,"fixed"===i&&"mui-fixed"),ref:t,...l})}),bE=yE;function xE(e){return fc("MuiToolbar",e)}Jc("MuiToolbar",["root","gutters","regular","dense"]);const wE=qc("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(mu(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),kE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:a=!1,variant:i="regular",...l}=n,s={...n,component:o,disableGutters:a,variant:i},c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return mc({root:["root",!n&&"gutters",r]},xE,t)})(s);return(0,Dc.jsx)(wE,{as:o,className:cc(c.root,r),ref:t,ownerState:s,...l})}),SE=kE,EE=Jd((0,Dc.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function CE(e){return fc("MuiAvatar",e)}Jc("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const IE=qc("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(mu(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),PE=qc("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),OE=qc(EE,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),TE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAvatar"}),{alt:r,children:o,className:a,component:l="div",slots:s={},slotProps:c={},imgProps:u,sizes:d,src:p,srcSet:f,variant:m="circular",...h}=n;let g=null;const v={...n,component:l,variant:m},y=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=i.useState(!1);return i.useEffect(()=>{if(!n&&!r)return;a(!1);let o=!0;const i=new Image;return i.onload=()=>{o&&a("loaded")},i.onerror=()=>{o&&a("error")},i.crossOrigin=e,i.referrerPolicy=t,i.src=n,r&&(i.srcset=r),()=>{o=!1}},[e,t,n,r]),o}({...u,..."function"==typeof c.img?c.img(v):c.img,src:p,srcSet:f}),b=p||f,x=b&&"error"!==y;v.colorDefault=!x,delete v.ownerState;const w=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return mc({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},CE,t)})(v),[k,S]=Qf("img",{className:w.img,elementType:PE,externalForwardedProps:{slots:s,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:r,src:p,srcSet:f,sizes:d},ownerState:v});return g=x?(0,Dc.jsx)(k,{...S}):o||0===o?o:b&&r?r[0]:(0,Dc.jsx)(OE,{ownerState:v,className:w.fallback}),(0,Dc.jsx)(IE,{as:l,className:cc(w.root,a),ref:t,...h,ownerState:v,children:g})}),RE=TE,ME=Jd((0,Dc.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),AE=Jd((0,Dc.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3zm-3-7V3.5L18.5 9z"}),"NoteAdd"),LE=Vs()(function(e){return{appbar:{zIndex:"".concat(e.zIndex.drawer+1," !important"),position:"sticky","@media print":{display:"none"}},toolbar:{display:"flex",height:"100%",maxWidth:"100vw",overflow:"hidden",justifyContent:"space-between",alignItems:"center"},logo:{objectFit:"contain",height:"2.75em",paddingRight:"8px"},title:{padding:"0 8px",whiteSpace:"nowrap"},version:{fontStyle:"italic"},homeLink:{color:e.palette.common.grayDark,fontWeight:600,textDecoration:"none"},textButton:{fontWeight:"bolder",cursor:"pointer"}}}),jE="public/a5cd39450ab0336db73c5e57228b649d.png";function $E(e){return fc("MuiDialog",e)}const NE=Jc("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),_E=i.createContext({}),DE=qc(Tk,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),zE=qc(Wk,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),FE=qc("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Wc(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),BE=qc(Lu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Wc(n.scroll)}`],t[`paperWidth${Wc(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(mu(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${NE.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${NE.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${NE.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),WE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDialog"}),r=gs(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":s=!0,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:m=!1,fullWidth:h=!1,maxWidth:g="sm",onBackdropClick:v,onClick:y,onClose:b,open:x,PaperComponent:w=Lu,PaperProps:k={},scroll:S="paper",slots:E={},slotProps:C={},TransitionComponent:I=ak,transitionDuration:P=o,TransitionProps:O,...T}=n,R={...n,disableEscapeKeyDown:f,fullScreen:m,fullWidth:h,maxWidth:g,scroll:S},M=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e;return mc({root:["root"],container:["container",`scroll${Wc(n)}`],paper:["paper",`paperScroll${Wc(n)}`,`paperWidth${Wc(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]},$E,t)})(R),A=i.useRef(),L=Nu(l),j=i.useMemo(()=>({titleId:L}),[L]),$={slots:{transition:I,...E},slotProps:{transition:O,paper:k,backdrop:u,...C}},[N,_]=Qf("root",{elementType:zE,shouldForwardComponentProp:!0,externalForwardedProps:$,ownerState:R,className:cc(M.root,p),ref:t}),[D,z]=Qf("backdrop",{elementType:DE,shouldForwardComponentProp:!0,externalForwardedProps:$,ownerState:R}),[F,B]=Qf("paper",{elementType:BE,shouldForwardComponentProp:!0,externalForwardedProps:$,ownerState:R,className:cc(M.paper,k.className)}),[W,H]=Qf("container",{elementType:FE,externalForwardedProps:$,ownerState:R,className:cc(M.container)}),[V,q]=Qf("transition",{elementType:ak,externalForwardedProps:$,ownerState:R,additionalProps:{appear:!0,in:x,timeout:P,role:"presentation"}});return(0,Dc.jsx)(N,{closeAfterTransition:!0,slots:{backdrop:D},slotProps:{backdrop:{transitionDuration:P,as:c,...z}},disableEscapeKeyDown:f,onClose:b,open:x,onClick:e=>{y&&y(e),A.current&&(A.current=null,v&&v(e),b&&b(e,"backdropClick"))},..._,...T,children:(0,Dc.jsx)(V,{...q,children:(0,Dc.jsx)(W,{onMouseDown:e=>{A.current=e.target===e.currentTarget},...H,children:(0,Dc.jsx)(F,{as:w,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":L,"aria-modal":s,...B,children:(0,Dc.jsx)(_E.Provider,{value:j,children:d})})})})})}),HE=WE;function VE(e){return fc("MuiDialogTitle",e)}const qE=Jc("MuiDialogTitle",["root"]),UE=qc(Su,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),KE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDialogTitle"}),{className:r,id:o,...a}=n,l=n,s=(e=>{const{classes:t}=e;return mc({root:["root"]},VE,t)})(l),{titleId:c=o}=i.useContext(_E);return(0,Dc.jsx)(UE,{component:"h2",className:cc(s.root,r),ownerState:l,ref:t,variant:"h6",id:o??c,...a})}),GE=KE;function YE(e){return fc("MuiDialogContent",e)}Jc("MuiDialogContent",["root","dividers"]);const XE=qc("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(mu(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${qE.root} + &`]:{paddingTop:0}}}]}))),QE=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1,...a}=n,i={...n,dividers:o},l=(e=>{const{classes:t,dividers:n}=e;return mc({root:["root",n&&"dividers"]},YE,t)})(i);return(0,Dc.jsx)(XE,{className:cc(l.root,r),ownerState:i,ref:t,...a})}),JE=QE;function ZE(e){return fc("MuiTableContainer",e)}Jc("MuiTableContainer",["root"]);const eC=qc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),tC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTableContainer"}),{className:r,component:o="div",...a}=n,i={...n,component:o},l=(e=>{const{classes:t}=e;return mc({root:["root"]},ZE,t)})(i);return(0,Dc.jsx)(eC,{ref:t,as:o,className:cc(l.root,r),ownerState:i,...a})}),nC=tC,rC=i.createContext();function oC(e){return fc("MuiTable",e)}Jc("MuiTable",["root","stickyHeader"]);const aC=qc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(mu(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),iC="table",lC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTable"}),{className:r,component:o=iC,padding:a="normal",size:l="medium",stickyHeader:s=!1,...c}=n,u={...n,component:o,padding:a,size:l,stickyHeader:s},d=(e=>{const{classes:t,stickyHeader:n}=e;return mc({root:["root",n&&"stickyHeader"]},oC,t)})(u),p=i.useMemo(()=>({padding:a,size:l,stickyHeader:s}),[a,l,s]);return(0,Dc.jsx)(rC.Provider,{value:p,children:(0,Dc.jsx)(aC,{as:o,role:o===iC?null:"table",ref:t,className:cc(d.root,r),ownerState:u,...c})})}),sC=lC,cC=i.createContext();function uC(e){return fc("MuiTableBody",e)}Jc("MuiTableBody",["root"]);const dC=qc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),pC={variant:"body"},fC="tbody",mC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTableBody"}),{className:r,component:o=fC,...a}=n,i={...n,component:o},l=(e=>{const{classes:t}=e;return mc({root:["root"]},uC,t)})(i);return(0,Dc.jsx)(cC.Provider,{value:pC,children:(0,Dc.jsx)(dC,{className:cc(l.root,r),as:o,ref:t,role:o===fC?null:"rowgroup",ownerState:i,...a})})}),hC=mC;function gC(e){return fc("MuiTableRow",e)}const vC=Jc("MuiTableRow",["root","selected","hover","head","footer"]),yC=qc("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(mu(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${vC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${vC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),bC="tr",xC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTableRow"}),{className:r,component:o=bC,hover:a=!1,selected:l=!1,...s}=n,c=i.useContext(cC),u={...n,component:o,hover:a,selected:l,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant},d=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return mc({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},gC,t)})(u);return(0,Dc.jsx)(yC,{as:o,ref:t,className:cc(d.root,r),role:o===bC?null:"row",ownerState:u,...s})}),wC=xC;function kC(e){return fc("MuiTableCell",e)}const SC=Jc("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),EC=qc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Wc(n.size)}`],"normal"!==n.padding&&t[`padding${Wc(n.padding)}`],"inherit"!==n.align&&t[`align${Wc(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(mu(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Bi(_i(e.palette.divider,1),.88):zi(_i(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${SC.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),CC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:a,padding:l,scope:s,size:c,sortDirection:u,variant:d,...p}=n,f=i.useContext(rC),m=i.useContext(cC),h=m&&"head"===m.variant;let g;g=a||(h?"th":"td");let v=s;"td"===g?v=void 0:!v&&h&&(v="col");const y=d||m&&m.variant,b={...n,align:r,component:g,padding:l||(f&&f.padding?f.padding:"normal"),size:c||(f&&f.size?f.size:"medium"),sortDirection:u,stickyHeader:"head"===y&&f&&f.stickyHeader,variant:y},x=(e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e;return mc({root:["root",n,i&&"stickyHeader","inherit"!==r&&`align${Wc(r)}`,"normal"!==o&&`padding${Wc(o)}`,`size${Wc(a)}`]},kC,t)})(b);let w=null;return u&&(w="asc"===u?"ascending":"descending"),(0,Dc.jsx)(EC,{as:g,ref:t,className:cc(x.root,o),"aria-sort":w,scope:v,ownerState:b,...p})}),IC=CC;function PC(e){return fc("MuiDialogActions",e)}Jc("MuiDialogActions",["root","spacing"]);const OC=qc("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),TC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1,...a}=n,i={...n,disableSpacing:o},l=(e=>{const{classes:t,disableSpacing:n}=e;return mc({root:["root",!n&&"spacing"]},PC,t)})(i);return(0,Dc.jsx)(OC,{className:cc(l.root,r),ownerState:i,ref:t,...a})}),RC=TC,MC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M7 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"Pending"),AC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),LC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel"),jC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block"),$C=Jd((0,Dc.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"}),"Circle"),NC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),_C=Jd([(0,Dc.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,Dc.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),DC=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked");function zC(e,t){let n;try{n=e()}catch(e){return}const r={getItem:e=>{var r;const o=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),a=null!=(r=n.getItem(e))?r:null;return a instanceof Promise?a.then(o):o(a)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)};return r}const FC=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>FC(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>FC(t)(e)}}};function BC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BC(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var HC,VC,qC=nc()((HC=function(e,t){return{readOnly:!1,currentRunnables:{},runnableId:"",testRunId:void 0,setReadOnly:function(t){return e({readOnly:t})},setCurrentRunnables:function(t){return e({currentRunnables:WC({},t)})},setRunnableId:function(t){return e({runnableId:t})},setTestRunId:function(t){return e({testRunId:t})}}},VC={name:"test-session"},(e,t,n)=>{let r={storage:zC(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...VC},o=!1;const a=new Set,i=new Set;let l=r.storage;if(!l)return HC((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),e(...t)},t,n);const s=()=>{const e=r.partialize({...t()});return l.setItem(r.name,{state:e,version:r.version})},c=n.setState;n.setState=(e,t)=>{c(e,t),s()};const u=HC((...t)=>{e(...t),s()},t,n);let d;n.getInitialState=()=>u;const p=()=>{var n,c;if(!l)return;o=!1,a.forEach(e=>{var n;return e(null!=(n=t())?n:u)});const p=(null==(c=r.onRehydrateStorage)?void 0:c.call(r,null!=(n=t())?n:u))||void 0;return FC(l.getItem.bind(l))(r.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===r.version)return[!1,e.state];if(r.migrate){const t=r.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(n=>{var o;const[a,i]=n;if(d=r.merge(i,null!=(o=t())?o:u),e(d,!0),a)return s()}).then(()=>{null==p||p(d,void 0),d=t(),o=!0,i.forEach(e=>e(d))}).catch(e=>{null==p||p(void 0,e)})};return n.persist={setOptions:e=>{r={...r,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:e=>(a.add(e),()=>{a.delete(e)}),onFinishHydration:e=>(i.add(e),()=>{i.delete(e)})},r.skipHydration||p(),d||u}));const UC=function(e){var t=e.result,n=e.isRunning,r=qC(function(e){return e.testRunId});if(n&&(null==t?void 0:t.test_run_id)!==r)return i.createElement(dm,{title:"pending"},i.createElement(MC,{tabIndex:0,"aria-hidden":"false",style:{color:Ui[500]}}));switch(null==t?void 0:t.result){case"pass":return i.createElement(dm,{title:"passed"},i.createElement(AC,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?Sl:Il},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"fail":return i.createElement(dm,{title:"failed"},i.createElement(LC,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?el:ol},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"cancel":return i.createElement(dm,{title:"cancel"},i.createElement(LC,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?el:ol},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"skip":return i.createElement(dm,{title:"skipped"},i.createElement(jC,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?il:dl},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"omit":return i.createElement(dm,{title:"omitted"},i.createElement($C,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?Ui[300]:Ui[600]},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"error":return i.createElement(dm,{title:"error"},i.createElement(NC,{tabIndex:0,"aria-hidden":"false",style:{color:t.optional?Gi:Ji},"data-testid":"".concat(t.id,"-").concat(t.result)}));case"wait":return i.createElement(dm,{title:"wait"},i.createElement(_C,{tabIndex:0,"aria-hidden":"false","data-testid":"".concat(t.id,"-").concat(t.result)}));default:return i.createElement(dm,{title:"no result"},i.createElement(DC,{tabIndex:0,"aria-hidden":"false",style:{color:Ui[500]}}))}},KC=function(e){var t=e.hideModal,n=e.modalVisible;return i.createElement(HE,{open:n,fullWidth:!0,maxWidth:"md",onClose:t,"data-testid":"HelpModal",onKeyDown:function(e){return e.stopPropagation()}},i.createElement(GE,null,"Help"),i.createElement(dS,null),i.createElement(JE,null,i.createElement(nu,{pb:3},i.createElement(Su,{component:"h3",fontWeight:"bold",sx:{mb:2}},"Test Icon Legend"),i.createElement(nC,{component:Lu,elevation:0},i.createElement(sC,{size:"small","aria-label":"icon legend"},i.createElement(hC,null,[{icon:"pass",label:"Pass",description:"A test passed"},{icon:"pass",label:"Pass - optional test",description:"An optional test passed",optional:!0},{icon:"fail",label:"Fail",description:"A test failed"},{icon:"fail",label:"Fail - optional test",description:"An optional test failed - this will not affect overall count of passed tests",optional:!0},{icon:"cancel",label:"Cancel",description:"Test was cancelled"},{icon:"error",label:"Error",description:"An error occurred while running test"},{icon:"skip",label:"Skip",description:"A test was skipped"},{icon:"omit",label:"Omit",description:"A test was omitted and does not affect passed or failed scores"},{icon:"wait",label:"Wait",description:"A test is waiting for user interaction"},{icon:"pending",label:"Pending",description:"A test is being run",pending:!0},{icon:"no result",label:"No Result",description:"A test has not been run"}].map(function(e){return i.createElement(wC,{key:e.label,sx:{borderTop:"1px solid ".concat(Mh.palette.common.grayLight)}},i.createElement(IC,{sx:{display:"flex",alignItems:"center",fontWeight:"bold",borderBottom:0}},i.createElement(UC,{result:{id:e.icon,result:e.icon,test_run_id:"",test_session_id:"",updated_at:"",outputs:[],optional:e.optional},isRunning:e.pending}),i.createElement(nu,{px:1},e.label)),i.createElement(IC,{sx:{borderBottom:0}},e.description))})))))),i.createElement(RC,null,i.createElement(Bd,{color:"secondary",variant:"contained","data-testid":"cancel-button",onClick:t,sx:{fontWeight:"bold"}},"Close")))},GC=qc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(mu(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),YC=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,a=i.useContext(mm),l={...n,alignItems:a.alignItems},s=(e=>{const{alignItems:t,classes:n}=e;return mc({root:["root","flex-start"===t&&"alignItemsFlexStart"]},oE,n)})(l);return(0,Dc.jsx)(GC,{className:cc(s.root,r),ownerState:l,ref:t,...o})}),XC=YC,QC=Jd((0,Dc.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share"),JC=Jd((0,Dc.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),ZC=Jd((0,Dc.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eI(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const nI=function(){var e=Fr().enqueueSnackbar,t=ct(),n=rc(function(e){return e.windowIsSmall}),r=lc(i.useState(null),2),o=r[0],a=r[1],l=lc(i.useState({}),2),s=l[0],c=l[1],u=Boolean(o),d=function(n){f();var r=function(e){for(var n=t.hash;n.endsWith("/");)n=n.slice(0,-1);if(e&&!n.includes("/view")&&(n+="/view"),!e&&n.includes("/view")){var r=n.indexOf("/view");n=n.substring(0,r)}return"".concat(window.location.origin).concat((window.location.pathname+"/").replace(/\/\/$/,"")).concat(n)}(n);navigator.clipboard.writeText(r).then(function(){c(tI(tI({},s),{},tp({},r,!0))),e("Successfully copied ".concat(n?"read-only ":"","session link"),{variant:"success"}),setTimeout(function(){c({})},2e3)}).catch(function(t){e("Failed to copy session link: ".concat(t),{variant:"error"})})},p=function(e){a(e.currentTarget)},f=function(){a(null)};return i.createElement(nu,{display:"flex",minWidth:"fit-content",pl:1,sx:n?{mr:-2}:{}},n?i.createElement(Kd,{id:"share-button",color:"secondary","aria-label":"Share Session","aria-controls":u?"share-menu":void 0,"aria-haspopup":"true","aria-expanded":u?"true":void 0,onClick:p},i.createElement(RE,{sx:{width:32,height:32,bgcolor:Mh.palette.secondary.main}},i.createElement(QC,{fontSize:"small"}))):i.createElement(Bd,{id:"share-button",disableElevation:!0,color:"secondary",size:"small",variant:"text",startIcon:i.createElement(QC,null),"aria-controls":u?"share-menu":void 0,"aria-haspopup":"true","aria-expanded":u?"true":void 0,onClick:p},"Share Session"),i.createElement(rE,{id:"share-menu",anchorEl:o,open:u,onClose:f,MenuListProps:{dense:!0,"aria-labelledby":"share-button"}},i.createElement(uE,{onClick:function(){return d()}},i.createElement(XC,null,i.createElement(JC,{fontSize:"small"})),i.createElement(Em,null,"Copy Session Link")),i.createElement(uE,{onClick:function(){return d(!0)}},i.createElement(XC,null,i.createElement(ZC,{fontSize:"small"})),i.createElement(Em,null,"Copy Read-Only Session Link"))))},rI=function(){var e=LE().classes,t=rc(function(e){return e.headerHeight}),n=rc(function(e){return e.windowIsSmall});return i.createElement(bE,{color:"default",className:e.appbar,style:{minHeight:"".concat(t,"px"),maxHeight:"".concat(t,"px")},"data-testid":"headerSkeleton"},i.createElement(SE,{className:e.toolbar},i.createElement(Fh,{variant:"circular",height:44,width:44}),i.createElement(nu,{display:"flex",flexDirection:"column",flexGrow:"1",alignSelf:"center",py:.5,pl:2},i.createElement(Fh,{height:35,width:"70%"}),i.createElement(Fh,{height:15,width:"60%"})),i.createElement(nu,{display:"flex",sx:n?{}:{pr:2}},n?i.createElement(Fh,{variant:"circular",height:32,width:32,sx:{mr:1}}):i.createElement(Fh,{variant:"rounded",height:30,width:140})),i.createElement(nu,{display:"flex",sx:n?{mr:"-16px"}:{}},n?i.createElement(Fh,{variant:"circular",height:32,width:32,sx:{mr:1}}):i.createElement(Fh,{variant:"rounded",height:30,width:140}))))},oI=function(e){var t=e.suiteId,n=e.suiteTitle,r=e.suiteVersion,o=e.suiteOptions,a=e.drawerOpen,l=e.toggleDrawer,s=LE().classes,c=rc(function(e){return e.headerHeight}),u=rc(function(e){return e.windowIsSmall}),d=qC(function(e){return e.readOnly}),p=lc(i.useState(!1),2),f=p[0],m=p[1],h=function(){window.location.href="/".concat(Ys)},g=o&&o.length>0?"".concat(o.map(function(e){return e.label}).join(", ")):"";return n?i.createElement(bE,{color:"default",className:s.appbar,style:{minHeight:"".concat(c,"px"),maxHeight:"".concat(c,"px")}},i.createElement(SE,{className:s.toolbar},u?i.createElement(Kd,{size:"large",edge:"start",color:"secondary","aria-label":"menu",onClick:function(){return l(!a)}},i.createElement(ME,{fontSize:"inherit"})):i.createElement(nn,{to:"/",reloadDocument:!0,"aria-label":"Inferno Home"},i.createElement(dm,{title:"Return to Suite Selection"},i.createElement("img",{src:Qs(jE),alt:"Inferno logo",className:s.logo}))),i.createElement(nu,{display:"flex",flexDirection:"column",flexGrow:"1",alignSelf:"center",overflow:"auto",py:.5,tabIndex:0},i.createElement(nu,{display:"flex",flexDirection:"row",alignItems:"baseline"},i.createElement(Su,{variant:"h5",component:"h1",className:s.title},i.createElement(nn,{to:"/".concat(t||""),reloadDocument:!0,"aria-label":"Inferno Home",className:s.homeLink},n,d?" (Read Only)":"")),r&&i.createElement(Su,{variant:"overline",className:s.version},"v.".concat(r),d?" (Read-Only Mode)":"")),g&&i.createElement(Su,{variant:"subtitle2",component:"h2",className:s.title},g)),i.createElement(nI,null),i.createElement(nu,{display:"flex",minWidth:"fit-content",pl:1,style:u?{marginRight:"-8px"}:{}},u?i.createElement(Kd,{color:"secondary","aria-label":"New Session",onClick:h},i.createElement(RE,{sx:{width:32,height:32,bgcolor:Mh.palette.secondary.main}},i.createElement(AE,{fontSize:"small"}))):i.createElement(Bd,{disableElevation:!0,color:"secondary",size:"small",variant:"contained",startIcon:i.createElement(AE,null),onClick:h},"New Session")),i.createElement(nu,{display:"flex",minWidth:"fit-content",pl:1},i.createElement(PS,{color:"secondary",className:s.textButton,style:u?{fontSize:"0.8rem"}:{margin:"0 8px"},onClick:function(){return m(!0)}},"Help")),i.createElement(KC,{modalVisible:f,hideModal:function(){return m(!1)}}))):i.createElement(rI,null)},aI=function(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,a]=i.useState(!1);return Bu(()=>{n||a(!0)},[n]),i.useEffect(()=>{n&&a(!0)},[n]),o?t:r},iI=qc("div",{name:"MuiSwipeArea",shouldForwardProp:Vc})(mu(({theme:e})=>({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1,variants:[{props:{anchor:"left"},style:{right:"auto"}},{props:{anchor:"right"},style:{left:"auto",right:0}},{props:{anchor:"top"},style:{bottom:"auto",right:0}},{props:{anchor:"bottom"},style:{top:"auto",bottom:0,right:0}}]}))),lI=i.forwardRef(function(e,t){const{anchor:n,classes:r={},className:o,width:a,style:i,...l}=e,s=e;return(0,Dc.jsx)(iI,{className:cc("PrivateSwipeArea-root",r.root,r[`anchor${Wc(n)}`],o),ref:t,style:{[nS(n)?"width":"height"]:a,...i},ownerState:s,...l})}),sI=lI;let cI=null;function uI(e,t,n){return"right"===e?n.body.offsetWidth-t[0].pageX:t[0].pageX}function dI(e,t,n){return"bottom"===e?n.innerHeight-t[0].clientY:t[0].clientY}function pI(e,t){return e?t.clientWidth:t.clientHeight}function fI(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}const mI="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),hI=i.forwardRef(function(e,t){const n=Gc({name:"MuiSwipeableDrawer",props:e}),r=gs(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:a="left",disableBackdropTransition:l=!1,disableDiscovery:s=!1,disableSwipeToOpen:c=mI,hideBackdrop:u,hysteresis:d=.52,allowSwipeInChildren:p=!1,minFlingVelocity:f=450,ModalProps:{BackdropProps:m,...h}={},onClose:g,onOpen:v,open:y=!1,PaperProps:b={},SwipeAreaProps:x,swipeAreaWidth:w=20,transitionDuration:k=o,variant:S="temporary",slots:E={},slotProps:C={},...I}=n,[P,O]=i.useState(!1),T=i.useRef({isSwiping:null}),R=i.useRef(),M=i.useRef(),A=i.useRef(),L=Fu(b.ref,A),j=i.useRef(!1),$=i.useRef();fm(()=>{$.current=null},[y]);const N=i.useCallback((e,t={})=>{const{mode:n=null,changeTransition:o=!0}=t,i=rS(r,a),s=["right","bottom"].includes(i)?1:-1,c=nS(a),d=c?`translate(${s*e}px, 0)`:`translate(0, ${s*e}px)`,p=A.current.style;p.webkitTransform=d,p.transform=d;let f="";if(n&&(f=r.transitions.create("all",hp({easing:void 0,style:void 0,timeout:k},{mode:n}))),o&&(p.webkitTransition=f,p.transition=f),!l&&!u){const t=M.current.style;t.opacity=1-e/pI(c,A.current),o&&(t.webkitTransition=f,t.transition=f)}},[a,l,u,r,k]),_=Hu(e=>{if(!j.current)return;if(cI=null,j.current=!1,cn.flushSync(()=>{O(!1)}),!T.current.isSwiping)return void(T.current.isSwiping=null);T.current.isSwiping=null;const t=rS(r,a),n=nS(a);let o;o=n?uI(t,e.changedTouches,OS(e.currentTarget)):dI(t,e.changedTouches,qk(e.currentTarget));const i=n?T.current.startX:T.current.startY,l=pI(n,A.current),s=fI(o,i,y,l),c=s/l;Math.abs(T.current.velocity)>f&&($.current=1e3*Math.abs((l-s)/T.current.velocity)),y?T.current.velocity>f||c>d?g():N(0,{mode:"exit"}):T.current.velocity<-f||1-c>d?v():N(pI(n,A.current),{mode:"enter"})}),D=(e=!1)=>{if(!P){!e&&s&&p||cn.flushSync(()=>{O(!0)});const t=nS(a);!y&&A.current&&N(pI(t,A.current)+(s?15:-20),{changeTransition:!1}),T.current.velocity=0,T.current.lastTime=null,T.current.lastTranslate=null,T.current.paperHit=!1,j.current=!0}},z=Hu(e=>{if(!A.current||!j.current)return;if(null!==cI&&cI!==T.current)return;D(!0);const t=rS(r,a),n=nS(a),o=uI(t,e.touches,OS(e.currentTarget)),i=dI(t,e.touches,qk(e.currentTarget));if(y&&A.current.contains(e.target)&&null===cI){const t=function({domTreeShapes:e,start:t,current:n,anchor:r}){const o={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},i={x:"clientWidth",y:"clientHeight"};return e.some(e=>{let l=n>=t;"top"!==r&&"left"!==r||(l=!l);const s="left"===r||"right"===r?"x":"y",c=Math.round(e[o[s]]),u=c>0,d=c+e[i[s]]<e[a[s]];return!!(l&&d||!l&&u)})}({domTreeShapes:function(e,t){const n=[];for(;e&&e!==t.parentElement;){const r=qk(t).getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,A.current),start:n?T.current.startX:T.current.startY,current:n?o:i,anchor:a});if(t)return void(cI=!0);cI=T.current}if(null==T.current.isSwiping){const t=Math.abs(o-T.current.startX),r=Math.abs(i-T.current.startY),a=n?t>r&&t>3:r>t&&r>3;if(a&&e.cancelable&&e.preventDefault(),!0===a||(n?r>3:t>3)){if(T.current.isSwiping=a,!a)return void _(e);T.current.startX=o,T.current.startY=i,s||y||(n?T.current.startX-=20:T.current.startY-=20)}}if(!T.current.isSwiping)return;const l=pI(n,A.current);let c=n?T.current.startX:T.current.startY;y&&!T.current.paperHit&&(c=Math.min(c,l));const u=fI(n?o:i,c,y,l);if(y)if(T.current.paperHit)0===u&&(T.current.startX=o,T.current.startY=i);else{if(!(n?o<l:i<l))return;T.current.paperHit=!0,T.current.startX=o,T.current.startY=i}null===T.current.lastTranslate&&(T.current.lastTranslate=u,T.current.lastTime=performance.now()+1);const d=(u-T.current.lastTranslate)/(performance.now()-T.current.lastTime)*1e3;T.current.velocity=.4*T.current.velocity+.6*d,T.current.lastTranslate=u,T.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),N(u)}),F=Hu(e=>{if(e.defaultPrevented)return;if(e.defaultMuiPrevented)return;if(y&&(u||!M.current.contains(e.target))&&!A.current.contains(e.target))return;const t=rS(r,a),n=nS(a),o=uI(t,e.touches,OS(e.currentTarget)),i=dI(t,e.touches,qk(e.currentTarget));if(!y){if(c||!(e.target===R.current||A.current?.contains(e.target)&&("function"==typeof p?p(e,R.current,A.current):p)))return;if(n){if(o>w)return}else if(i>w)return}e.defaultMuiPrevented=!0,cI=null,T.current.startX=o,T.current.startY=i,D()});i.useEffect(()=>{if("temporary"===S){const e=OS(A.current);return e.addEventListener("touchstart",F),e.addEventListener("touchmove",z,{passive:!y}),e.addEventListener("touchend",_),()=>{e.removeEventListener("touchstart",F),e.removeEventListener("touchmove",z,{passive:!y}),e.removeEventListener("touchend",_)}}},[S,y,F,z,_]),i.useEffect(()=>()=>{cI===T.current&&(cI=null)},[]),i.useEffect(()=>{y||O(!1)},[y]);const[B,W]=Qf("swipeArea",{ref:R,elementType:sI,ownerState:n,externalForwardedProps:{slots:E,slotProps:{swipeArea:x,...C}},additionalProps:{width:w,anchor:a}});return(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)(aS,{open:!("temporary"!==S||!P)||y,variant:S,ModalProps:{BackdropProps:{...m,ref:M},..."temporary"===S&&{keepMounted:!0},...h},hideBackdrop:u,anchor:a,transitionDuration:$.current||k,onClose:g,ref:t,slots:E,slotProps:{...C,backdrop:Xk(C.backdrop??m,{ref:M}),paper:Xk(C.paper??b,{style:{pointerEvents:"temporary"!==S||y||p?"":"none"},ref:L})},...I}),!c&&"temporary"===S&&(0,Dc.jsx)(aI,{children:(0,Dc.jsx)(B,{...W})})]})}),gI=hI;var vI=function(e){return e[e.TestSuite=0]="TestSuite",e[e.TestGroup=1]="TestGroup",e[e.Test=2]="Test",e}({}),yI=function(e){return"test_groups"in e&&"tests"in e};function bI(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function xI(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){bI(a,r,o,i,l,"next",e)}function l(e){bI(a,r,o,i,l,"throw",e)}i(void 0)})}}var wI=n(756),kI=n.n(wI);function SI(){return(SI=xI(kI().mark(function e(t,n){var r,o,a;return kI().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=Xs("/test_suites/".concat(t,"/requirements?session_id=").concat(n)),e.prev=1,e.next=2,fetch(r);case 2:return o=e.sent,e.next=3,o.json();case 3:return a=e.sent,e.abrupt("return",a||[]);case 4:return e.prev=4,e.catch(1),e.abrupt("return",[]);case 5:case"end":return e.stop()}},e,null,[[1,4]])}))).apply(this,arguments)}function EI(){return(EI=xI(kI().mark(function e(t){var n,r,o;return kI().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Xs("/requirements/".concat(t)),e.prev=1,e.next=2,fetch(n);case 2:return r=e.sent,e.next=3,r.json();case 3:return o=e.sent,e.abrupt("return",o||null);case 4:return e.prev=4,e.catch(1),e.abrupt("return",null);case 5:case"end":return e.stop()}},e,null,[[1,4]])}))).apply(this,arguments)}function CI(e){return fc("MuiDialogContentText",e)}Jc("MuiDialogContentText",["root"]);const II=qc(Su,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),PI=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiDialogContentText"}),{children:r,className:o,...a}=n,i=(e=>{const{classes:t}=e,n=mc({root:["root"]},CI,t);return{...t,...n}})(a);return(0,Dc.jsx)(II,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:a,className:cc(i.root,o),...n,classes:i})}),OI=PI,TI=function(e){var t=e.modalVisible,n=e.message,r=e.cancelTestRun;return i.createElement(HE,{open:t,fullWidth:!0,maxWidth:"sm"},i.createElement(GE,null,"User Action Required"),i.createElement(JE,null,i.createElement(OI,{component:"div"},i.createElement(lx,{remarkPlugins:[ek]},n||""))),i.createElement(RC,null,i.createElement(Bd,{color:"secondary",variant:"contained",disableElevation:!0,onClick:r,"data-testid":"cancel-button",sx:{fontWeight:"bold"}},"Cancel")))};function RI(e){return parseInt(e,10)||0}const MI={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function AI(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const LI=i.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:l,...s}=e,{current:c}=i.useRef(null!=l),u=i.useRef(null),d=zu(t,u),p=i.useRef(null),f=i.useRef(null),m=i.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const a=Rk(t).getComputedStyle(t);if("0px"===a.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const i=a.boxSizing,l=RI(a.paddingBottom)+RI(a.paddingTop),s=RI(a.borderBottomWidth)+RI(a.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;return o&&(p=Math.max(Number(o)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+("border-box"===i?l+s:0),overflowing:Math.abs(p-c)<=1}},[r,o,e.placeholder]),h=Wu(()=>{const e=u.current,t=m();if(!e||!t||AI(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=i.useCallback(()=>{const e=u.current,t=m();if(!e||!t||AI(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[m]),v=i.useRef(-1);return Bu(()=>{const e=Hk(g),t=u?.current;if(!t)return;const n=Rk(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[m,g,h]),Bu(()=>{g()}),(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)("textarea",{value:l,onChange:e=>{c||g(),n&&n(e)},ref:d,rows:o,style:a,...s}),(0,Dc.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...MI,...a,paddingTop:0,paddingBottom:0}})]})}),jI=LI;function $I(e){return fc("MuiInputBase",e)}const NI=Jc("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _I;const DI=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Wc(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},zI=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},FI=qc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:DI})(mu(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${NI.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),BI=qc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zI})(mu(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${NI.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${NI.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),WI=function(e){return function(t){return(0,Dc.jsx)(pu,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),HI=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:l,color:s,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:m,error:h,fullWidth:g=!1,id:v,inputComponent:y="input",inputProps:b={},inputRef:x,margin:w,maxRows:k,minRows:S,multiline:E=!1,name:C,onBlur:I,onChange:P,onClick:O,onFocus:T,onKeyDown:R,onKeyUp:M,placeholder:A,readOnly:L,renderSuffix:j,rows:$,size:N,slotProps:_={},slots:D={},startAdornment:z,type:F="text",value:B,...W}=n,H=null!=b.value?b.value:B,{current:V}=i.useRef(null!=H),q=i.useRef(),U=i.useCallback(e=>{},[]),K=Fu(q,x,b.ref,U),[G,Y]=i.useState(!1),X=_m(),Q=Nm({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=X?X.focused:G,i.useEffect(()=>{!X&&p&&G&&(Y(!1),I&&I())},[X,p,G,I]);const J=X&&X.onFilled,Z=X&&X.onEmpty,ee=i.useCallback(e=>{Om(e)?J&&J():Z&&Z()},[J,Z]);fm(()=>{V&&ee({value:H})},[H,ee,V]),i.useEffect(()=>{ee(q.current)},[]);let te=y,ne=b;E&&"input"===te&&(ne=$?{type:void 0,minRows:$,maxRows:$,...ne}:{type:void 0,maxRows:k,minRows:S,...ne},te=jI),i.useEffect(()=>{X&&X.setAdornedStart(Boolean(z))},[X,z]);const re={...n,color:Q.color||"primary",disabled:Q.disabled,endAdornment:m,error:Q.error,focused:Q.focused,formControl:X,fullWidth:g,hiddenLabel:Q.hiddenLabel,multiline:E,size:Q.size,startAdornment:z,type:F},oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:m}=e;return mc({root:["root",`color${Wc(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Wc(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},$I,t)})(re),ae=D.root||c.Root||FI,ie=_.root||u.root||{},le=D.input||c.Input||BI;return ne={...ne,..._.input??u.input},(0,Dc.jsxs)(i.Fragment,{children:[!f&&"function"==typeof WI&&(_I||(_I=(0,Dc.jsx)(WI,{}))),(0,Dc.jsxs)(ae,{...ie,ref:t,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),O&&O(e)},...W,...!FS(ae)&&{ownerState:{...re,...ie.ownerState}},className:cc(oe.root,ie.className,l,L&&"MuiInputBase-readOnly"),children:[z,(0,Dc.jsx)(Mm.Provider,{value:null,children:(0,Dc.jsx)(le,{"aria-invalid":Q.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:d,disabled:Q.disabled,id:v,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:C,placeholder:A,readOnly:L,required:Q.required,rows:$,value:H,onKeyDown:R,onKeyUp:M,type:F,...ne,...!FS(le)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:K,className:cc(oe.input,ne.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{I&&I(e),b.onBlur&&b.onBlur(e),X&&X.onBlur?X.onBlur(e):Y(!1)},onChange:(e,...t)=>{if(!V){const t=e.target||q.current;if(null==t)throw new Error(to(1));ee({value:t.value})}b.onChange&&b.onChange(e,...t),P&&P(e,...t)},onFocus:e=>{T&&T(e),b.onFocus&&b.onFocus(e),X&&X.onFocus?X.onFocus(e):Y(!0)}})}),m,j?j({...Q,startAdornment:z}):null]})]})}),VI=HI;function qI(e){return fc("MuiInput",e)}const UI={...NI,...Jc("MuiInput",["root","underline","input"])},KI=qc(FI,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...DI(e,t),!n.disableUnderline&&t.underline]}})(mu(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:e})=>e.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${UI.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${UI.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${UI.disabled}, .${UI.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${UI.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),GI=qc(BI,{name:"MuiInput",slot:"Input",overridesResolver:zI})({}),YI=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,inputComponent:l="input",multiline:s=!1,slotProps:c,slots:u={},type:d="text",...p}=n,f=(e=>{const{classes:t,disableUnderline:n}=e,r=mc({root:["root",!n&&"underline"],input:["input"]},qI,t);return{...t,...r}})(n),m={root:{ownerState:{disableUnderline:r}}},h=c??a?Vr(c??a,m):m,g=u.root??o.Root??KI,v=u.input??o.Input??GI;return(0,Dc.jsx)(VI,{slots:{root:g,input:v},slotProps:h,fullWidth:i,inputComponent:l,multiline:s,ref:t,type:d,...p,classes:f})});YI.muiName="Input";const XI=YI;function QI(e){return fc("MuiFilledInput",e)}const JI={...NI,...Jc("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ZI=qc(FI,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...DI(e,t),!n.disableUnderline&&t.underline]}})(mu(({theme:e})=>{const t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${JI.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${JI.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${JI.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${JI.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${JI.disabled}, .${JI.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${JI.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}}]}})),eP=qc(BI,{name:"MuiFilledInput",slot:"Input",overridesResolver:zI})(mu(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&"small"===e.size,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),tP=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,hiddenLabel:l,inputComponent:s="input",multiline:c=!1,slotProps:u,slots:d={},type:p="text",...f}=n,m={...n,disableUnderline:r,fullWidth:i,inputComponent:s,multiline:c,type:p},h=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=e,s=mc({root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd","small"===a&&`size${Wc(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},QI,t);return{...t,...s}})(n),g={root:{ownerState:m},input:{ownerState:m}},v=u??a?Vr(g,u??a):g,y=d.root??o.Root??ZI,b=d.input??o.Input??eP;return(0,Dc.jsx)(VI,{slots:{root:y,input:b},slotProps:v,fullWidth:i,inputComponent:s,multiline:c,ref:t,type:p,...f,classes:h})});tP.muiName="Input";const nP=tP;var rP;const oP=qc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Vc})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),aP=qc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Vc})(mu(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function iP(e){return fc("MuiOutlinedInput",e)}const lP={...NI,...Jc("MuiOutlinedInput",["root","notchedOutline","input"])},sP=qc(FI,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:DI})(mu(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${lP.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lP.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${lP.focused} .${lP.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{[`&.${lP.focused} .${lP.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lP.error} .${lP.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${lP.disabled} .${lP.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),cP=qc(function(e){const{children:t,classes:n,className:r,label:o,notched:a,...i}=e,l=null!=o&&""!==o,s={...e,notched:a,withLabel:l};return(0,Dc.jsx)(oP,{"aria-hidden":!0,className:r,ownerState:s,...i,children:(0,Dc.jsx)(aP,{ownerState:s,children:l?(0,Dc.jsx)("span",{children:o}):rP||(rP=(0,Dc.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(mu(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),uP=qc(BI,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zI})(mu(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),dP=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:a="input",label:l,multiline:s=!1,notched:c,slots:u={},slotProps:d={},type:p="text",...f}=n,m=(e=>{const{classes:t}=e,n=mc({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},iP,t);return{...t,...n}})(n),h=_m(),g=Nm({props:n,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...n,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:h,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:s,size:g.size,type:p},y=u.root??r.Root??sP,b=u.input??r.Input??uP,[x,w]=Qf("notchedOutline",{elementType:cP,className:m.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:null!=l&&""!==l&&g.required?(0,Dc.jsxs)(i.Fragment,{children:[l," ","*"]}):l}});return(0,Dc.jsx)(VI,{slots:{root:y,input:b},slotProps:d,renderSuffix:e=>(0,Dc.jsx)(x,{...w,notched:void 0!==c?c:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:a,multiline:s,ref:t,type:p,...f,classes:{...m,notchedOutline:null}})});dP.muiName="Input";const pP=dP;function fP(e){return fc("MuiInputLabel",e)}Jc("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const mP=qc(Hm,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${zm.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(mu(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:t})=>"filled"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:t,size:n})=>"filled"===e&&t.shrink&&"small"===n,style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:t})=>"outlined"===e&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),hP=i.forwardRef(function(e,t){const n=Gc({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:o,shrink:a,variant:i,className:l,...s}=n,c=_m();let u=a;void 0===u&&c&&(u=c.filled||c.focused||c.adornedStart);const d=Nm({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),p={...n,disableAnimation:r,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},f=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:l}=e,s=mc({root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&"normal"!==r&&`size${Wc(r)}`,i],asterisk:[l&&"asterisk"]},fP,t);return{...t,...s}})(p);return(0,Dc.jsx)(mP,{"data-shrink":u,ref:t,className:cc(f.root,l),...s,ownerState:p,classes:f})}),gP=hP;function vP(e){return fc("MuiFormHelperText",e)}const yP=Jc("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var bP;const xP=qc("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Wc(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(mu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yP.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yP.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),wP=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:a="p",disabled:i,error:l,filled:s,focused:c,margin:u,required:d,variant:p,...f}=n,m=Nm({props:n,muiFormControl:_m(),states:["variant","size","disabled","error","filled","focused","required"]}),h={...n,component:a,contained:"filled"===m.variant||"outlined"===m.variant,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete h.ownerState;const g=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:l,required:s}=e;return mc({root:["root",o&&"disabled",a&&"error",r&&`size${Wc(r)}`,n&&"contained",l&&"focused",i&&"filled",s&&"required"]},vP,t)})(h);return(0,Dc.jsx)(xP,{as:a,className:cc(g.root,o),ref:t,...f,ownerState:h,children:" "===r?bP||(bP=(0,Dc.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})}),kP=wP;function SP(e){return fc("MuiNativeSelect",e)}const EP=Jc("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),CP=qc("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${EP.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>"filled"!==e.variant&&"outlined"!==e.variant,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),IP=qc(CP,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${EP.multiple}`]:t.multiple}]}})({}),PP=qc("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${EP.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),OP=qc(PP,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Wc(n.variant)}`],n.open&&t.iconOpen]}})({}),TP=i.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:l,variant:s="standard",...c}=e,u={...e,disabled:r,variant:s,error:o},d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e;return mc({select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Wc(n)}`,a&&"iconOpen",r&&"disabled"]},SP,t)})(u);return(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)(IP,{ownerState:u,className:cc(d.select,n),disabled:r,ref:l||t,...c}),e.multiple?null:(0,Dc.jsx)(OP,{as:a,ownerState:u,className:d.icon})]})}),RP=TP;function MP(e){return fc("MuiSelect",e)}const AP=Jc("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var LP;const jP=qc(CP,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${AP.select}`]:t.select},{[`&.${AP.select}`]:t[n.variant]},{[`&.${AP.error}`]:t.error},{[`&.${AP.multiple}`]:t.multiple}]}})({[`&.${AP.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$P=qc(PP,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Wc(n.variant)}`],n.open&&t.iconOpen]}})({}),NP=qc("input",{shouldForwardProp:e=>Hc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function _P(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function DP(e){return null==e||"string"==typeof e&&!e.trim()}const zP=i.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":r,autoFocus:o,autoWidth:a,children:l,className:s,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:y,name:b,onBlur:x,onChange:w,onClose:k,onFocus:S,onOpen:E,open:C,readOnly:I,renderValue:P,required:O,SelectDisplayProps:T={},tabIndex:R,type:M,value:A,variant:L="standard",...j}=e,[$,N]=Xf({controlled:A,default:u,name:"Select"}),[_,D]=Xf({controlled:C,default:c,name:"Select"}),z=i.useRef(null),F=i.useRef(null),[B,W]=i.useState(null),{current:H}=i.useRef(null!=C),[V,q]=i.useState(),U=Fu(t,h),K=i.useCallback(e=>{F.current=e,e&&W(e)},[]),G=B?.parentNode;i.useImperativeHandle(U,()=>({focus:()=>{F.current.focus()},node:z.current,value:$}),[$]),i.useEffect(()=>{c&&_&&B&&!H&&(q(a?null:G.clientWidth),F.current.focus())},[B,a]),i.useEffect(()=>{o&&F.current.focus()},[o]),i.useEffect(()=>{if(!g)return;const e=OS(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Y=(e,t)=>{e?E&&E(t):k&&k(t),H||(q(a?null:G.clientWidth),D(e))},X=i.Children.toArray(l),Q=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray($)?$.slice():[];const t=$.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),$!==n&&(N(n),w)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:b}}),w(o,e)}y||Y(!1,t)}},J=null!==B&&_;let Z,ee;delete j["aria-invalid"];const te=[];let ne=!1,re=!1;(Om({value:$})||p)&&(P?Z=P($):ne=!0);const oe=X.map(e=>{if(!i.isValidElement(e))return null;let t;if(y){if(!Array.isArray($))throw new Error(to(2));t=$.some(t=>_P(t,e.props.value)),t&&ne&&te.push(e.props.children)}else t=_P($,e.props.value),t&&ne&&(ee=e.props.children);return t&&(re=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Q(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});ne&&(Z=y?0===te.length?null:te.reduce((e,t,n)=>(e.push(t),n<te.length-1&&e.push(", "),e),[]):ee);let ae,ie=V;!a&&H&&B&&(ie=G.clientWidth),ae=void 0!==R?R:d?null:0;const le=T.id||(b?`mui-component-select-${b}`:void 0),se={...e,variant:L,value:$,open:J,error:f},ce=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e;return mc({select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${Wc(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},MP,t)})(se),ue={...v.PaperProps,...v.slotProps?.paper},de=Nu();return(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)(jP,{as:"div",ref:K,tabIndex:ae,role:"combobox","aria-controls":J?de:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[g,le].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":O?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:e=>{I||[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Y(!0,e))},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:$,name:b}}),x(e))},onFocus:S,...T,ownerState:se,className:cc(T.className,ce.select,s),id:le,children:DP(Z)?LP||(LP=(0,Dc.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Z}),(0,Dc.jsx)(NP,{"aria-invalid":f,value:Array.isArray($)?$.join(","):$,name:b,ref:z,"aria-hidden":!0,onChange:e=>{const t=X.find(t=>t.props.value===e.target.value);void 0!==t&&(N(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:ce.nativeInput,autoFocus:o,required:O,...j,ownerState:se}),(0,Dc.jsx)($P,{as:m,className:ce.icon,ownerState:se}),(0,Dc.jsx)(rE,{id:`menu-${b||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:de,...v.MenuListProps},paper:{...ue,style:{minWidth:ie,...null!=ue?ue.style:null}}},children:oe})]})}),FP=zP,BP=Jd((0,Dc.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),WP={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vc(e)&&"variant"!==e,slot:"Root"},HP=qc(XI,WP)(""),VP=qc(pP,WP)(""),qP=qc(nP,WP)(""),UP=i.forwardRef(function(e,t){const n=Gc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:l,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:u=BP,id:d,input:p,inputProps:f,label:m,labelId:h,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:x,open:w,renderValue:k,SelectDisplayProps:S,variant:E="outlined",...C}=n,I=y?RP:FP,P=Nm({props:n,muiFormControl:_m(),states:["variant","error"]}),O=P.variant||E,T={...n,variant:O,classes:a},R=(e=>{const{classes:t}=e,n=mc({root:["root"]},MP,t);return{...t,...n}})(T),{root:M,...A}=R,L=p||{standard:(0,Dc.jsx)(HP,{ownerState:T}),outlined:(0,Dc.jsx)(VP,{label:m,ownerState:T}),filled:(0,Dc.jsx)(qP,{ownerState:T})}[O],j=Fu(t,ap(L));return(0,Dc.jsx)(i.Fragment,{children:i.cloneElement(L,{inputComponent:I,inputProps:{children:o,error:P.error,IconComponent:u,variant:O,type:void 0,multiple:v,...y?{id:d}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:h,MenuProps:g,onClose:b,onOpen:x,open:w,renderValue:k,SelectDisplayProps:{id:d,...S}},...f,classes:f?Vr(A,f.classes):A,...p?p.props.inputProps:{}},...(v&&y||c)&&"outlined"===O?{notched:!0}:{},ref:j,className:cc(L.props.className,l,R.root),...!p&&{variant:O},...C})})});UP.muiName="Select";const KP=UP;function GP(e){return fc("MuiTextField",e)}Jc("MuiTextField",["root"]);const YP={standard:XI,filled:nP,outlined:pP},XP=qc($m,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QP=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:a,className:i,color:l="primary",defaultValue:s,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:m,InputLabelProps:h,inputProps:g,InputProps:v,inputRef:y,label:b,maxRows:x,minRows:w,multiline:k=!1,name:S,onBlur:E,onChange:C,onFocus:I,placeholder:P,required:O=!1,rows:T,select:R=!1,SelectProps:M,slots:A={},slotProps:L={},type:j,value:$,variant:N="outlined",..._}=n,D={...n,autoFocus:o,color:l,disabled:c,error:u,fullWidth:p,multiline:k,required:O,select:R,variant:N},z=(e=>{const{classes:t}=e;return mc({root:["root"]},GP,t)})(D),F=Nu(m),B=f&&F?`${F}-helper-text`:void 0,W=b&&F?`${F}-label`:void 0,H=YP[N],V={slots:A,slotProps:{input:v,inputLabel:h,htmlInput:g,formHelperText:d,select:M,...L}},q={},U=V.slotProps.inputLabel;"outlined"===N&&(U&&void 0!==U.shrink&&(q.notched=U.shrink),q.label=b),R&&(M&&M.native||(q.id=void 0),q["aria-describedby"]=void 0);const[K,G]=Qf("root",{elementType:XP,shouldForwardComponentProp:!0,externalForwardedProps:{...V,..._},ownerState:D,className:cc(z.root,i),ref:t,additionalProps:{disabled:c,error:u,fullWidth:p,required:O,color:l,variant:N}}),[Y,X]=Qf("input",{elementType:H,externalForwardedProps:V,additionalProps:q,ownerState:D}),[Q,J]=Qf("inputLabel",{elementType:gP,externalForwardedProps:V,ownerState:D}),[Z,ee]=Qf("htmlInput",{elementType:"input",externalForwardedProps:V,ownerState:D}),[te,ne]=Qf("formHelperText",{elementType:kP,externalForwardedProps:V,ownerState:D}),[re,oe]=Qf("select",{elementType:KP,externalForwardedProps:V,ownerState:D}),ae=(0,Dc.jsx)(Y,{"aria-describedby":B,autoComplete:r,autoFocus:o,defaultValue:s,fullWidth:p,multiline:k,name:S,rows:T,maxRows:x,minRows:w,type:j,value:$,id:F,inputRef:y,onBlur:E,onChange:C,onFocus:I,placeholder:P,inputProps:ee,slots:{input:A.htmlInput?Z:void 0},...X});return(0,Dc.jsxs)(K,{...G,children:[null!=b&&""!==b&&(0,Dc.jsx)(Q,{htmlFor:F,id:W,...J,children:b}),R?(0,Dc.jsx)(re,{"aria-describedby":B,id:F,labelId:W,value:$,input:ae,...oe,children:a}):ae,f&&(0,Dc.jsx)(te,{id:B,...ne,children:f})]})}),JP=QP;function ZP(e){return fc("MuiToggleButtonGroup",e)}const eO=Jc("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),tO=i.createContext({}),nO=i.createContext(void 0);function rO(e){return fc("MuiToggleButton",e)}const oO=Jc("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),aO=qc("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eO.grouped}`]:t.grouped},{[`& .${eO.grouped}`]:t[`grouped${Wc(n.orientation)}`]},{[`& .${eO.firstButton}`]:t.firstButton},{[`& .${eO.lastButton}`]:t.lastButton},{[`& .${eO.middleButton}`]:t.middleButton},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})(mu(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${eO.grouped}`]:{[`&.${eO.selected} + .${eO.grouped}.${eO.selected}`]:{borderTop:0,marginTop:0}},[`& .${eO.firstButton},& .${eO.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${eO.lastButton},& .${eO.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${eO.lastButton}.${oO.disabled},& .${eO.middleButton}.${oO.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${eO.grouped}`]:{[`&.${eO.selected} + .${eO.grouped}.${eO.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${eO.firstButton},& .${eO.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${eO.lastButton},& .${eO.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${eO.lastButton}.${oO.disabled},& .${eO.middleButton}.${oO.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),iO=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiToggleButtonGroup"}),{children:r,className:o,color:a="standard",disabled:l=!1,exclusive:s=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:p="medium",value:f,...m}=n,h={...n,disabled:l,fullWidth:c,orientation:d,size:p},g=(e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e;return mc({root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${Wc(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},ZP,t)})(h),v=i.useCallback((e,t)=>{if(!u)return;const n=f&&f.indexOf(t);let r;f&&n>=0?(r=f.slice(),r.splice(n,1)):r=f?f.concat(t):[t],u(e,r)},[u,f]),y=i.useCallback((e,t)=>{u&&u(e,f===t?null:t)},[u,f]),b=i.useMemo(()=>({className:g.grouped,onChange:s?y:v,value:f,size:p,fullWidth:c,color:a,disabled:l}),[g.grouped,s,y,v,f,p,c,a,l]),x=function(e){return i.Children.toArray(e).filter(e=>i.isValidElement(e))}(r),w=x.length,k=e=>{const t=0===e,n=e===w-1;return t&&n?"":t?g.firstButton:n?g.lastButton:g.middleButton};return(0,Dc.jsx)(aO,{role:"group",className:cc(g.root,o),ref:t,ownerState:h,...m,children:(0,Dc.jsx)(tO.Provider,{value:b,children:x.map((e,t)=>(0,Dc.jsx)(nO.Provider,{value:k(t),children:e},t))})})}),lO=iO;function sO(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.includes(e):e===t)}const cO=qc(bd,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${Wc(n.size)}`]]}})(mu(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${oO.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${oO.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{[`&.${oO.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),uO=i.forwardRef(function(e,t){const{value:n,...r}=i.useContext(tO),o=i.useContext(nO),a=Gc({props:hc({...r,selected:sO(e.value,n)},e),name:"MuiToggleButton"}),{children:l,className:s,color:c="standard",disabled:u=!1,disableFocusRipple:d=!1,fullWidth:p=!1,onChange:f,onClick:m,selected:h,size:g="medium",value:v,...y}=a,b={...a,color:c,disabled:u,disableFocusRipple:d,fullWidth:p,size:g},x=(e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:a,color:i}=e;return mc({root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${Wc(a)}`,i]},rO,t)})(b),w=o||"";return(0,Dc.jsx)(cO,{className:cc(r.className,x.root,s,w),disabled:u,focusRipple:!d,ref:t,onClick:e=>{m&&(m(e,v),e.defaultPrevented)||f&&f(e,v)},onChange:f,value:v,ownerState:b,"aria-pressed":h,...y,children:l})}),dO=uO,pO=Jd((0,Dc.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),fO=Jd((0,Dc.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");function mO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mO(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const gO=function(e){var t=e.copyText,n=e.size,r=e.view,o=lc(i.useState({}),2),a=o[0],l=o[1],s=function(){var e=xI(kI().mark(function e(t){return kI().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,navigator.clipboard.writeText(t).then(function(){l(hO(hO({},a),{},tp({},t,!0))),setTimeout(function(){l({})},2e3)});case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();return i.createElement(dm,{title:a[t]?"Text copied!":"Copy text",sx:"report"===r?{display:"none","@media print":{display:"none"}}:{}},i.createElement(nu,{px:1},i.createElement(Kd,{size:n,color:"secondary","aria-label":"copy button",onClick:function(e){s(t),e.stopPropagation()}},i.createElement(fO,{fontSize:"inherit"}))))},vO=Jd((0,Dc.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),yO=function(e){var t=e.fileName,n=e.fileType;return i.createElement(Bd,{variant:"contained",component:"label",color:"secondary","aria-label":"file-download",startIcon:i.createElement(vO,null),disableElevation:!0,onClick:function(){var e,r=document.createElement("a"),o=new Blob([null===(e=document.getElementById("".concat(n,"-serial-input")))||void 0===e?void 0:e.value],{type:"text/plain"});r.href=URL.createObjectURL(o),r.download="".concat(t,".").concat(n),document.body.appendChild(r),r.click()},sx:{mb:4}},"Download File")},bO=Jd((0,Dc.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"}),"FileUploadOutlined"),xO=Jd((0,Dc.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zm-9.18-6.95L7.4 14.46 10.94 18l5.66-5.66-1.41-1.41-4.24 4.24z"}),"TaskOutlined"),wO=function(e){var t=e.onUpload,n=qC(function(e){return e.readOnly}),r=lc(i.useState(""),2),o=r[0],a=r[1],l=qc("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1});return i.createElement(nu,{display:"flex",alignItems:"center",sx:{mb:2}},i.createElement(Bd,{variant:"contained",component:"label",color:"secondary","aria-label":"file-upload",disabled:n,startIcon:i.createElement(bO,null),disableElevation:!0,sx:{flexShrink:0}},"Upload File",i.createElement(l,{type:"file",onChange:function(e){return function(e){if(e.target.files&&0!==e.target.files.length){var n=e.target.files[0];a(n.name);var r=new FileReader;r.onload=function(){var e,n="object"===ep(r.result)?JSON.stringify(r.result):null===(e=r.result)||void 0===e?void 0:e.toString();t(n)},r.readAsText(n)}}(e)}})),o&&i.createElement(nu,{display:"flex",alignItems:"center",sx:{mx:2}},i.createElement(xO,{color:"secondary",sx:{mr:1}}),i.createElement(Su,{variant:"subtitle1",sx:{fontFamily:"Monospace"}},o)))};function kO(e){return function(e){if(Array.isArray(e))return ac(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ic(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SO(e){return null==e}var EO={isNothing:SO,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:SO(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,r,o,a;if(t)for(n=0,r=(a=Object.keys(t)).length;n<r;n+=1)e[o=a[n]]=t[o];return e}};function CO(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function IO(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=CO(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}IO.prototype=Object.create(Error.prototype),IO.prototype.constructor=IO,IO.prototype.toString=function(e){return this.name+": "+CO(this,e)};var PO=IO;function OO(e,t,n,r,o){var a="",i="",l=Math.floor(o/2)-1;return r-t>l&&(t=r-l+(a=" ... ").length),n-r>l&&(n=r+l-(i=" ...").length),{str:a+e.slice(t,n).replace(/\t/g,"→")+i,pos:r-t+a.length}}function TO(e,t){return EO.repeat(" ",t-e.length)+e}var RO=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],MO=["scalar","sequence","mapping"],AO=function(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===RO.indexOf(t))throw new PO('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}(t.styleAliases||null),-1===MO.indexOf(this.kind))throw new PO('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function LO(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function jO(e){return this.extend(e)}jO.prototype.extend=function(e){var t=[],n=[];if(e instanceof AO)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new PO("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach(function(e){if(!(e instanceof AO))throw new PO("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new PO("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new PO("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof AO))throw new PO("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(jO.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=LO(r,"implicit"),r.compiledExplicit=LO(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var $O=jO,NO=new AO("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),_O=new AO("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),DO=new AO("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),zO=new $O({explicit:[NO,_O,DO]}),FO=new AO("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),BO=new AO("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function WO(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function HO(e){return 48<=e&&e<=55}function VO(e){return 48<=e&&e<=57}var qO=new AO("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n=e.length,r=0,o=!1;if(!n)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===n)return!0;if("b"===(t=e[++r])){for(r++;r<n;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!WO(e.charCodeAt(r)))return!1;o=!0}return o&&"_"!==t}if("o"===t){for(r++;r<n;r++)if("_"!==(t=e[r])){if(!HO(e.charCodeAt(r)))return!1;o=!0}return o&&"_"!==t}}if("_"===t)return!1;for(;r<n;r++)if("_"!==(t=e[r])){if(!VO(e.charCodeAt(r)))return!1;o=!0}return!(!o||"_"===t)},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!EO.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),UO=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),KO=/^[-+]?[0-9]+e/,GO=new AO("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!UO.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||EO.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(EO.isNegativeZero(e))return"-0.0";return n=e.toString(10),KO.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),YO=zO.extend({implicit:[FO,BO,qO,GO]}),XO=YO,QO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),JO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),ZO=new AO("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==QO.exec(e)||null!==JO.exec(e))},construct:function(e){var t,n,r,o,a,i,l,s,c=0,u=null;if(null===(t=QO.exec(e))&&(t=JO.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,r,o));if(a=+t[4],i=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),s=new Date(Date.UTC(n,r,o,a,i,l,c)),u&&s.setTime(s.getTime()-u),s},instanceOf:Date,represent:function(e){return e.toISOString()}}),eT=new AO("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),tT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",nT=new AO("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length,a=tT;for(n=0;n<o;n++)if(!((t=a.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,a=tT,i=0,l=[];for(t=0;t<o;t++)t%4==0&&t&&(l.push(i>>16&255),l.push(i>>8&255),l.push(255&i)),i=i<<6|a.indexOf(r.charAt(t));return 0==(n=o%4*6)?(l.push(i>>16&255),l.push(i>>8&255),l.push(255&i)):18===n?(l.push(i>>10&255),l.push(i>>2&255)):12===n&&l.push(i>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",o=0,a=e.length,i=tT;for(t=0;t<a;t++)t%3==0&&t&&(r+=i[o>>18&63],r+=i[o>>12&63],r+=i[o>>6&63],r+=i[63&o]),o=(o<<8)+e[t];return 0==(n=a%3)?(r+=i[o>>18&63],r+=i[o>>12&63],r+=i[o>>6&63],r+=i[63&o]):2===n?(r+=i[o>>10&63],r+=i[o>>4&63],r+=i[o<<2&63],r+=i[64]):1===n&&(r+=i[o>>2&63],r+=i[o<<4&63],r+=i[64],r+=i[64]),r}}),rT=Object.prototype.hasOwnProperty,oT=Object.prototype.toString,aT=new AO("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,a,i=[],l=e;for(t=0,n=l.length;t<n;t+=1){if(r=l[t],a=!1,"[object Object]"!==oT.call(r))return!1;for(o in r)if(rT.call(r,o)){if(a)return!1;a=!0}if(!a)return!1;if(-1!==i.indexOf(o))return!1;i.push(o)}return!0},construct:function(e){return null!==e?e:[]}}),iT=Object.prototype.toString,lT=new AO("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,a,i=e;for(a=new Array(i.length),t=0,n=i.length;t<n;t+=1){if(r=i[t],"[object Object]"!==iT.call(r))return!1;if(1!==(o=Object.keys(r)).length)return!1;a[t]=[o[0],r[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,o,a,i=e;for(a=new Array(i.length),t=0,n=i.length;t<n;t+=1)r=i[t],o=Object.keys(r),a[t]=[o[0],r[o[0]]];return a}}),sT=Object.prototype.hasOwnProperty,cT=new AO("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(sT.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),uT=XO.extend({implicit:[ZO,eT],explicit:[nT,aT,lT,cT]}),dT=Object.prototype.hasOwnProperty,pT=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,fT=/[\x85\u2028\u2029]/,mT=/[,\[\]\{\}]/,hT=/^(?:!|!!|![a-z\-]+!)$/i,gT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function vT(e){return Object.prototype.toString.call(e)}function yT(e){return 10===e||13===e}function bT(e){return 9===e||32===e}function xT(e){return 9===e||32===e||10===e||13===e}function wT(e){return 44===e||91===e||93===e||123===e||125===e}function kT(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function ST(e){return 120===e?2:117===e?4:85===e?8:0}function ET(e){return 48<=e&&e<=57?e-48:-1}function CT(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function IT(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var PT=new Array(256),OT=new Array(256),TT=0;TT<256;TT++)PT[TT]=CT(TT)?1:0,OT[TT]=CT(TT);function RT(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||uT,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function MT(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,o=[0],a=[],i=-1;n=r.exec(e.buffer);)a.push(n.index),o.push(n.index+n[0].length),e.position<=n.index&&i<0&&(i=o.length-2);i<0&&(i=o.length-1);var l,s,c="",u=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore&&!(i-l<0);l++)s=OO(e.buffer,o[i-l],a[i-l],e.position-(o[i]-o[i-l]),d),c=EO.repeat(" ",t.indent)+TO((e.line-l+1).toString(),u)+" | "+s.str+"\n"+c;for(s=OO(e.buffer,o[i],a[i],e.position,d),c+=EO.repeat(" ",t.indent)+TO((e.line+1).toString(),u)+" | "+s.str+"\n",c+=EO.repeat("-",t.indent+u+3+s.pos)+"^\n",l=1;l<=t.linesAfter&&!(i+l>=a.length);l++)s=OO(e.buffer,o[i+l],a[i+l],e.position-(o[i]-o[i+l]),d),c+=EO.repeat(" ",t.indent)+TO((e.line+l+1).toString(),u)+" | "+s.str+"\n";return c.replace(/\n$/,"")}(n),new PO(t,n)}function AT(e,t){throw MT(e,t)}function LT(e,t){e.onWarning&&e.onWarning.call(null,MT(e,t))}var jT={YAML:function(e,t,n){var r,o,a;null!==e.version&&AT(e,"duplication of %YAML directive"),1!==n.length&&AT(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&AT(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),a=parseInt(r[2],10),1!==o&&AT(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,1!==a&&2!==a&&LT(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&AT(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],hT.test(r)||AT(e,"ill-formed tag handle (first argument) of the TAG directive"),dT.call(e.tagMap,r)&&AT(e,'there is a previously declared suffix for "'+r+'" tag handle'),gT.test(o)||AT(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){AT(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function $T(e,t,n,r){var o,a,i,l;if(t<n){if(l=e.input.slice(t,n),r)for(o=0,a=l.length;o<a;o+=1)9===(i=l.charCodeAt(o))||32<=i&&i<=1114111||AT(e,"expected valid JSON character");else pT.test(l)&&AT(e,"the stream contains non-printable characters");e.result+=l}}function NT(e,t,n,r){var o,a,i,l;for(EO.isObject(n)||AT(e,"cannot merge mappings; the provided source object is unacceptable"),i=0,l=(o=Object.keys(n)).length;i<l;i+=1)a=o[i],dT.call(t,a)||(t[a]=n[a],r[a]=!0)}function _T(e,t,n,r,o,a,i,l,s){var c,u;if(Array.isArray(o))for(c=0,u=(o=Array.prototype.slice.call(o)).length;c<u;c+=1)Array.isArray(o[c])&&AT(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===vT(o[c])&&(o[c]="[object Object]");if("object"==typeof o&&"[object Object]"===vT(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)NT(e,t,a[c],n);else NT(e,t,a,n);else e.json||dT.call(n,o)||!dT.call(t,o)||(e.line=i||e.line,e.lineStart=l||e.lineStart,e.position=s||e.position,AT(e,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[o]=a,delete n[o];return t}function DT(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):AT(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function zT(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);0!==o;){for(;bT(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do{o=e.input.charCodeAt(++e.position)}while(10!==o&&13!==o&&0!==o);if(!yT(o))break;for(DT(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&LT(e,"deficient indentation"),r}function FT(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!xT(t)))}function BT(e,t){1===t?e.result+=" ":t>1&&(e.result+=EO.repeat("\n",t-1))}function WT(e,t){var n,r,o=e.tag,a=e.anchor,i=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,AT(e,"tab characters must not be used in indentation")),45===r)&&xT(e.input.charCodeAt(e.position+1));)if(l=!0,e.position++,zT(e,!0,-1)&&e.lineIndent<=t)i.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,qT(e,t,3,!1,!0),i.push(e.result),zT(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)AT(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!l&&(e.tag=o,e.anchor=a,e.kind="sequence",e.result=i,!0)}function HT(e){var t,n,r,o,a=!1,i=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&AT(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(a=!0,o=e.input.charCodeAt(++e.position)):33===o?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,a){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):AT(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!xT(o);)33===o&&(i?AT(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),hT.test(n)||AT(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),mT.test(r)&&AT(e,"tag suffix cannot contain flow indicator characters")}r&&!gT.test(r)&&AT(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){AT(e,"tag name is malformed: "+r)}return a?e.tag=r:dT.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:AT(e,'undeclared tag handle "'+n+'"'),!0}function VT(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&AT(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!xT(n)&&!wT(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&AT(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function qT(e,t,n,r,o){var a,i,l,s,c,u,d,p,f,m=1,h=!1,g=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=i=l=4===n||3===n,r&&zT(e,!0,-1)&&(h=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;HT(e)||VT(e);)zT(e,!0,-1)?(h=!0,l=a,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):l=!1;if(l&&(l=h||o),1!==m&&4!==n||(p=1===n||2===n?t:t+1,f=e.position-e.lineStart,1===m?l&&(WT(e,f)||function(e,t,n){var r,o,a,i,l,s,c,u=e.tag,d=e.anchor,p={},f=Object.create(null),m=null,h=null,g=null,v=!1,y=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),c=e.input.charCodeAt(e.position);0!==c;){if(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,AT(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),a=e.line,63!==c&&58!==c||!xT(r)){if(i=e.line,l=e.lineStart,s=e.position,!qT(e,n,2,!1,!0))break;if(e.line===a){for(c=e.input.charCodeAt(e.position);bT(c);)c=e.input.charCodeAt(++e.position);if(58===c)xT(c=e.input.charCodeAt(++e.position))||AT(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(_T(e,p,f,m,h,null,i,l,s),m=h=g=null),y=!0,v=!1,o=!1,m=e.tag,h=e.result;else{if(!y)return e.tag=u,e.anchor=d,!0;AT(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=u,e.anchor=d,!0;AT(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(v&&(_T(e,p,f,m,h,null,i,l,s),m=h=g=null),y=!0,v=!0,o=!0):v?(v=!1,o=!0):AT(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;if((e.line===a||e.lineIndent>t)&&(v&&(i=e.line,l=e.lineStart,s=e.position),qT(e,t,4,!0,o)&&(v?h=e.result:g=e.result),v||(_T(e,p,f,m,h,g,i,l,s),m=h=g=null),zT(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==c)AT(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&_T(e,p,f,m,h,null,i,l,s),y&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=p),y}(e,f,p))||function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,m=!0,h=e.tag,g=e.anchor,v=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))i=93,c=!1,a=[];else{if(123!==f)return!1;i=125,c=!0,a={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),f=e.input.charCodeAt(++e.position);0!==f;){if(zT(e,!0,t),(f=e.input.charCodeAt(e.position))===i)return e.position++,e.tag=h,e.anchor=g,e.kind=c?"mapping":"sequence",e.result=a,!0;m?44===f&&AT(e,"expected the node content, but found ','"):AT(e,"missed comma between flow collection entries"),p=null,l=s=!1,63===f&&xT(e.input.charCodeAt(e.position+1))&&(l=s=!0,e.position++,zT(e,!0,t)),n=e.line,r=e.lineStart,o=e.position,qT(e,t,1,!1,!0),d=e.tag,u=e.result,zT(e,!0,t),f=e.input.charCodeAt(e.position),!s&&e.line!==n||58!==f||(l=!0,f=e.input.charCodeAt(++e.position),zT(e,!0,t),qT(e,t,1,!1,!0),p=e.result),c?_T(e,a,v,d,u,p,n,r,o):l?a.push(_T(e,null,v,d,u,p,n,r,o)):a.push(u),zT(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(m=!0,f=e.input.charCodeAt(++e.position)):m=!1}AT(e,"unexpected end of the stream within a flow collection")}(e,p)?g=!0:(i&&function(e,t){var n,r,o,a,i=1,l=!1,s=!1,c=t,u=0,d=!1;if(124===(a=e.input.charCodeAt(e.position)))r=!1;else{if(62!==a)return!1;r=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===i?i=43===a?3:2:AT(e,"repeat of a chomping mode identifier");else{if(!((o=ET(a))>=0))break;0===o?AT(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?AT(e,"repeat of an indentation width identifier"):(c=t+o-1,s=!0)}if(bT(a)){do{a=e.input.charCodeAt(++e.position)}while(bT(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!yT(a)&&0!==a)}for(;0!==a;){for(DT(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!s||e.lineIndent<c)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>c&&(c=e.lineIndent),yT(a))u++;else{if(e.lineIndent<c){3===i?e.result+=EO.repeat("\n",l?1+u:u):1===i&&l&&(e.result+="\n");break}for(r?bT(a)?(d=!0,e.result+=EO.repeat("\n",l?1+u:u)):d?(d=!1,e.result+=EO.repeat("\n",u+1)):0===u?l&&(e.result+=" "):e.result+=EO.repeat("\n",u):e.result+=EO.repeat("\n",l?1+u:u),l=!0,s=!0,u=0,n=e.position;!yT(a)&&0!==a;)a=e.input.charCodeAt(++e.position);$T(e,n,e.position,!1)}}return!0}(e,p)||function(e,t){var n,r,o;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if($T(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,o=e.position}else yT(n)?($T(e,r,o,!0),BT(e,zT(e,!1,t)),r=o=e.position):e.position===e.lineStart&&FT(e)?AT(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);AT(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,r,o,a,i,l;if(34!==(l=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(l=e.input.charCodeAt(e.position));){if(34===l)return $T(e,n,e.position,!0),e.position++,!0;if(92===l){if($T(e,n,e.position,!0),yT(l=e.input.charCodeAt(++e.position)))zT(e,!1,t);else if(l<256&&PT[l])e.result+=OT[l],e.position++;else if((i=ST(l))>0){for(o=i,a=0;o>0;o--)(i=kT(l=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+i:AT(e,"expected hexadecimal character");e.result+=IT(a),e.position++}else AT(e,"unknown escape sequence");n=r=e.position}else yT(l)?($T(e,n,r,!0),BT(e,zT(e,!1,t)),n=r=e.position):e.position===e.lineStart&&FT(e)?AT(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}AT(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?g=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!xT(r)&&!wT(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&AT(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),dT.call(e.anchorMap,n)||AT(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],zT(e,!0,-1),!0}(e)?(g=!0,null===e.tag&&null===e.anchor||AT(e,"alias node should not have any properties")):function(e,t,n){var r,o,a,i,l,s,c,u,d=e.kind,p=e.result;if(xT(u=e.input.charCodeAt(e.position))||wT(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(xT(r=e.input.charCodeAt(e.position+1))||n&&wT(r)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,i=!1;0!==u;){if(58===u){if(xT(r=e.input.charCodeAt(e.position+1))||n&&wT(r))break}else if(35===u){if(xT(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&FT(e)||n&&wT(u))break;if(yT(u)){if(l=e.line,s=e.lineStart,c=e.lineIndent,zT(e,!1,-1),e.lineIndent>=t){i=!0,u=e.input.charCodeAt(e.position);continue}e.position=a,e.line=l,e.lineStart=s,e.lineIndent=c;break}}i&&($T(e,o,a,!1),BT(e,e.line-l),o=a=e.position,i=!1),bT(u)||(a=e.position+1),u=e.input.charCodeAt(++e.position)}return $T(e,o,a,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,p,1===n)&&(g=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(g=l&&WT(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&AT(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,c=e.implicitTypes.length;s<c;s+=1)if((d=e.implicitTypes[s]).resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(dT.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,s=0,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;s<c;s+=1)if(e.tag.slice(0,u[s].tag.length)===u[s].tag){d=u[s];break}d||AT(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&AT(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):AT(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function UT(e){var t,n,r,o,a=e.position,i=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(zT(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(i=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!xT(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&AT(e,"directive name must not be less than one character in length");0!==o;){for(;bT(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!yT(o));break}if(yT(o))break;for(t=e.position;0!==o&&!xT(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&DT(e),dT.call(jT,n)?jT[n](e,n,r):LT(e,'unknown document directive "'+n+'"')}zT(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,zT(e,!0,-1)):i&&AT(e,"directives end mark is expected"),qT(e,e.lineIndent-1,4,!1,!0),zT(e,!0,-1),e.checkLineBreaks&&fT.test(e.input.slice(a,e.position))&&LT(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&FT(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,zT(e,!0,-1)):e.position<e.length-1&&AT(e,"end of the stream or a document separator is expected")}function KT(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new RT(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,AT(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)UT(n);return n.documents}var GT={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=KT(e,n);if("function"!=typeof t)return r;for(var o=0,a=r.length;o<a;o+=1)t(r[o])},load:function(e,t){var n=KT(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new PO("expected a single document in the stream, but found more")}}},YT=Object.prototype.toString,XT=Object.prototype.hasOwnProperty,QT=65279,JT={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},ZT=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],eR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function tR(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else{if(!(e<=4294967295))throw new PO("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+EO.repeat("0",r-t.length)+t}function nR(e){this.schema=e.schema||uT,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=EO.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,o,a,i,l,s;if(null===t)return{};for(n={},o=0,a=(r=Object.keys(t)).length;o<a;o+=1)i=r[o],l=String(t[i]),"!!"===i.slice(0,2)&&(i="tag:yaml.org,2002:"+i.slice(2)),(s=e.compiledTypeMap.fallback[i])&&XT.call(s.styleAliases,l)&&(l=s.styleAliases[l]),n[i]=l;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function rR(e,t){for(var n,r=EO.repeat(" ",t),o=0,a=-1,i="",l=e.length;o<l;)-1===(a=e.indexOf("\n",o))?(n=e.slice(o),o=l):(n=e.slice(o,a+1),o=a+1),n.length&&"\n"!==n&&(i+=r),i+=n;return i}function oR(e,t){return"\n"+EO.repeat(" ",e.indent*t)}function aR(e){return 32===e||9===e}function iR(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==QT||65536<=e&&e<=1114111}function lR(e){return iR(e)&&e!==QT&&13!==e&&10!==e}function sR(e,t,n){var r=lR(e),o=r&&!aR(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!o)||lR(t)&&!aR(t)&&35===e||58===t&&o}function cR(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function uR(e){return/^\n* /.test(e)}function dR(e,t,n,r,o){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ZT.indexOf(t)||eR.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),i=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),l=r||e.flowLevel>-1&&n>=e.flowLevel;switch(function(e,t,n,r,o,a,i,l){var s,c=0,u=null,d=!1,p=!1,f=-1!==r,m=-1,h=function(e){return iR(e)&&e!==QT&&!aR(e)&&45!==e&&63!==e&&58!==e&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e&&35!==e&&38!==e&&42!==e&&33!==e&&124!==e&&61!==e&&62!==e&&39!==e&&34!==e&&37!==e&&64!==e&&96!==e}(cR(e,0))&&function(e){return!aR(e)&&58!==e}(cR(e,e.length-1));if(t||i)for(s=0;s<e.length;c>=65536?s+=2:s++){if(!iR(c=cR(e,s)))return 5;h=h&&sR(c,u,l),u=c}else{for(s=0;s<e.length;c>=65536?s+=2:s++){if(10===(c=cR(e,s)))d=!0,f&&(p=p||s-m-1>r&&" "!==e[m+1],m=s);else if(!iR(c))return 5;h=h&&sR(c,u,l),u=c}p=p||f&&s-m-1>r&&" "!==e[m+1]}return d||p?n>9&&uR(e)?5:i?2===a?5:2:p?4:3:!h||i||o(e)?2===a?5:2:1}(t,l,e.indent,i,function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)},e.quotingType,e.forceQuotes&&!r,o)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+pR(t,e.indent)+fR(rR(t,a));case 4:return">"+pR(t,e.indent)+fR(rR(function(e,t){for(var n,r,o,a=/(\n+)([^\n]*)/g,i=(o=-1!==(o=e.indexOf("\n"))?o:e.length,a.lastIndex=o,mR(e.slice(0,o),t)),l="\n"===e[0]||" "===e[0];r=a.exec(e);){var s=r[1],c=r[2];n=" "===c[0],i+=s+(l||n||""===c?"":"\n")+mR(c,t),l=n}return i}(t,i),a));case 5:return'"'+function(e){for(var t,n="",r=0,o=0;o<e.length;r>=65536?o+=2:o++)r=cR(e,o),!(t=JT[r])&&iR(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=t||tR(r);return n}(t)+'"';default:throw new PO("impossible error: invalid scalar style")}}()}function pR(e,t){var n=uR(e)?String(t):"",r="\n"===e[e.length-1];return n+(!r||"\n"!==e[e.length-2]&&"\n"!==e?r?"":"-":"+")+"\n"}function fR(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function mR(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,a=0,i=0,l=0,s="";n=o.exec(e);)(l=n.index)-a>t&&(r=i>a?i:l,s+="\n"+e.slice(a,r),a=r+1),i=l;return s+="\n",e.length-a>t&&i>a?s+=e.slice(a,i)+"\n"+e.slice(i+1):s+=e.slice(a),s.slice(1)}function hR(e,t,n,r){var o,a,i,l="",s=e.tag;for(o=0,a=n.length;o<a;o+=1)i=n[o],e.replacer&&(i=e.replacer.call(n,String(o),i)),(vR(e,t+1,i,!0,!0,!1,!0)||void 0===i&&vR(e,t+1,null,!0,!0,!1,!0))&&(r&&""===l||(l+=oR(e,t)),e.dump&&10===e.dump.charCodeAt(0)?l+="-":l+="- ",l+=e.dump);e.tag=s,e.dump=l||"[]"}function gR(e,t,n){var r,o,a,i,l,s;for(a=0,i=(o=n?e.explicitTypes:e.implicitTypes).length;a<i;a+=1)if(((l=o[a]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof t&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(n?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(s=e.styleMap[l.tag]||l.defaultStyle,"[object Function]"===YT.call(l.represent))r=l.represent(t,s);else{if(!XT.call(l.represent,s))throw new PO("!<"+l.tag+'> tag resolver accepts not "'+s+'" style');r=l.represent[s](t,s)}e.dump=r}return!0}return!1}function vR(e,t,n,r,o,a,i){e.tag=null,e.dump=n,gR(e,n,!1)||gR(e,n,!0);var l,s=YT.call(e.dump),c=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var u,d,p="[object Object]"===s||"[object Array]"===s;if(p&&(d=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(o=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(p&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===s)r&&0!==Object.keys(e.dump).length?(function(e,t,n,r){var o,a,i,l,s,c,u="",d=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new PO("sortKeys must be a boolean or a function");for(o=0,a=p.length;o<a;o+=1)c="",r&&""===u||(c+=oR(e,t)),l=n[i=p[o]],e.replacer&&(l=e.replacer.call(n,i,l)),vR(e,t+1,i,!0,!0,!0)&&((s=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,s&&(c+=oR(e,t)),vR(e,t+1,l,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,o),d&&(e.dump="&ref_"+u+e.dump)):(function(e,t,n){var r,o,a,i,l,s="",c=e.tag,u=Object.keys(n);for(r=0,o=u.length;r<o;r+=1)l="",""!==s&&(l+=", "),e.condenseFlow&&(l+='"'),i=n[a=u[r]],e.replacer&&(i=e.replacer.call(n,a,i)),vR(e,t,a,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),vR(e,t,i,!1,!1)&&(s+=l+=e.dump));e.tag=c,e.dump="{"+s+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===s)r&&0!==e.dump.length?(e.noArrayIndent&&!i&&t>0?hR(e,t-1,e.dump,o):hR(e,t,e.dump,o),d&&(e.dump="&ref_"+u+e.dump)):(function(e,t,n){var r,o,a,i="",l=e.tag;for(r=0,o=n.length;r<o;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(vR(e,t,a,!1,!1)||void 0===a&&vR(e,t,null,!1,!1))&&(""!==i&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=l,e.dump="["+i+"]"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==s){if("[object Undefined]"===s)return!1;if(e.skipInvalid)return!1;throw new PO("unacceptable kind of an object to dump "+s)}"?"!==e.tag&&dR(e,e.dump,t,a,c)}null!==e.tag&&"?"!==e.tag&&(l=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),l="!"===e.tag[0]?"!"+l:"tag:yaml.org,2002:"===l.slice(0,18)?"!!"+l.slice(18):"!<"+l+">",e.dump=l+" "+e.dump)}return!0}function yR(e,t){var n,r,o=[],a=[];for(bR(e,o,a),n=0,r=a.length;n<r;n+=1)t.duplicates.push(o[a[n]]);t.usedDuplicates=new Array(r)}function bR(e,t,n){var r,o,a;if(null!==e&&"object"==typeof e)if(-1!==(o=t.indexOf(e)))-1===n.indexOf(o)&&n.push(o);else if(t.push(e),Array.isArray(e))for(o=0,a=e.length;o<a;o+=1)bR(e[o],t,n);else for(o=0,a=(r=Object.keys(e)).length;o<a;o+=1)bR(e[r[o]],t,n)}function xR(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}const wR={Type:AO,Schema:$O,FAILSAFE_SCHEMA:zO,JSON_SCHEMA:YO,CORE_SCHEMA:XO,DEFAULT_SCHEMA:uT,load:GT.load,loadAll:GT.loadAll,dump:function(e,t){var n=new nR(t=t||{});n.noRefs||yR(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),vR(n,0,r,!0,!0)?n.dump+"\n":""},YAMLException:PO,types:{binary:nT,float:GO,map:DO,null:FO,pairs:lT,set:cT,timestamp:ZO,bool:BO,int:qO,merge:eT,omap:aT,seq:_O,str:NO},safeLoad:xR("safeLoad","load"),safeLoadAll:xR("safeLoadAll","loadAll"),safeDump:xR("safeDump","dump")};function kR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function SR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kR(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ER={public:["use_discovery","client_id","requested_scopes","pkce_support","pkce_code_challenge_method","auth_request_method","auth_url","token_url"],symmetric:["use_discovery","client_id","client_secret","requested_scopes","pkce_support","pkce_code_challenge_method","auth_request_method","auth_url","token_url"],asymmetric:["use_discovery","client_id","requested_scopes","pkce_support","pkce_code_challenge_method","auth_request_method","encryption_algorithm","jwks","kid","auth_url","token_url"],backend_services:["use_discovery","client_id","requested_scopes","encryption_algorithm","jwks","kid","token_url"]},CR=function(e,t,n,r,o){var a=[{name:"use_discovery",type:"checkbox",title:"Populate fields from discovery",optional:!0,locked:o,default:"true"},{name:"auth_url",title:"Authorization URL",description:"URL of the server's authorization endpoint",optional:!0,locked:o,hidden:"true"===(null==t?void 0:t.get("use_discovery"))},{name:"token_url",title:"Token URL",description:"URL of the authorization server's token endpoint",optional:!0,locked:o,hidden:"true"===(null==t?void 0:t.get("use_discovery"))},{name:"requested_scopes",type:"textarea",title:"Scopes",description:"OAuth 2.0 scopes needed to enable all required functionality",optional:r,locked:o},{name:"client_id",title:"Client ID",description:"Client ID provided during registration of Inferno",optional:r,locked:o},{name:"client_secret",title:"Client Secret",description:"Client secret provided during registration of Inferno",optional:r,locked:o},{name:"pkce_support",type:"radio",title:"Proof Key for Code Exchange (PKCE)",optional:r,locked:o,options:{list_options:[{label:"Enabled",value:"enabled"},{label:"Disabled",value:"disabled"}]}},{name:"pkce_code_challenge_method",type:"radio",title:"PKCE Code Challenge Method",optional:!0,locked:o,options:{list_options:[{label:"S256",value:"S256"},{label:"Plain",value:"plain"}]},hidden:!!t&&"disabled"===t.get("pkce_support")},{name:"auth_request_method",type:"radio",title:"Authorization Request Method",optional:r,locked:o,options:{list_options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}]}},{name:"encryption_algorithm",type:"radio",title:"Encryption Algorithm",optional:r,locked:o,options:{list_options:[{label:"ES384",value:"ES384"},{label:"RS384",value:"RS384"}]}},{name:"kid",title:"Key ID (kid)",description:"Key ID of the JWKS private key used to sign the client assertion. If blank, the first key for the selected encryption algorithm will be used.",optional:!0,locked:o},{name:"jwks",type:"textarea",title:"JWKS",description:"The JWKS (including private keys) which will be used to sign the client assertion. If blank, Inferno's default JWKS will be used.",optional:!0,locked:o}],i=n.map(function(e){return e.name});a.forEach(function(e,t){if(i.includes(e.name)){var r=n.find(function(t){return t.name===e.name});a[t]=SR(SR({},e),r)}});var l=ER[e];return ER&&e?a.filter(function(e){return null==l?void 0:l.includes(e.name)}):(a.forEach(function(e){return e.hidden=e.hidden||!(null!=l&&l.includes(e.name))}),a)},IR={public:["access_token","refresh_token","client_id","token_url","issue_time","expires_in"],symmetric:["access_token","refresh_token","client_id","client_secret","token_url","issue_time","expires_in"],asymmetric:["access_token","refresh_token","client_id","token_url","encryption_algorithm","jwks","kid","issue_time","expires_in"],backend_services:["access_token","client_id","token_url","encryption_algorithm","jwks","kid","issue_time","expires_in"]},PR=function(e,t,n,r,o){var a="backend_services"===e?!t.get("access_token"):!t.get("refresh_token"),i=[{name:"access_token",title:"Access Token",optional:r,locked:o},{name:"refresh_token",title:"Refresh Token (will automatically refresh if available)",optional:!0,locked:o},{name:"client_id",title:"Client ID",description:"Client ID provided during registration of Inferno",optional:!0,locked:o,hidden:a},{name:"client_secret",title:"Client Secret",description:"Client secret provided during registration of Inferno",optional:!0,locked:o,hidden:!t.get("refresh_token")},{name:"token_url",title:"Token URL",description:"URL of the authorization server's token endpoint",optional:!0,locked:o,hidden:a},{name:"encryption_algorithm",type:"radio",title:"Encryption Algorithm",optional:!0,locked:o,hidden:a},{name:"kid",title:"Key ID (kid)",description:"Key ID of the JWKS private key used to sign the client assertion. If blank, the first key for the selected encryption algorithm will be used.",optional:!0,locked:o,options:{list_options:[{label:"ES384",value:"ES384"},{label:"RS384",value:"RS384"}]},hidden:a},{name:"jwks",type:"textarea",title:"JWKS",description:"The JWKS (including private keys) which will be used to sign the client assertion. If blank, Inferno's default JWKS will be used.",optional:!0,locked:o,hidden:a},{name:"issue_time",title:"Access Token Issue Time",description:"The time that the access token was issued in iso8601 format",optional:!0,locked:o,hidden:a},{name:"expires_in",title:"Token Lifetime",description:"The lifetime of the access token in seconds",optional:!0,locked:o,hidden:a}],l=n.map(function(e){return e.name});i.forEach(function(e,t){if(l.includes(e.name)){var r=n.find(function(t){return t.name===e.name});i[t]=SR(SR({},e),r)}});var s=IR[e];return IR&&e?i.filter(function(e){return null==s?void 0:s.includes(e.name)}):(i.forEach(function(e){return e.hidden=e.hidden||!(null!=s&&s.includes(e.name))}),i)};function OR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OR(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var RR=function(e){if(null===e)return"";switch(ep(e)){case"string":return e;case"number":case"boolean":case"bigint":case"symbol":return String(e);case"object":return Array.isArray(e)?JSON.stringify(kO(e).sort()):JSON.stringify(e);default:return""}};function MR(e){return fc("MuiListItem",e)}function AR(e){return fc("MuiListItemSecondaryAction",e)}Jc("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]),Jc("MuiListItemSecondaryAction",["root","disableGutters"]);const LR=qc("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),jR=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,a=i.useContext(mm),l={...n,disableGutters:a.disableGutters},s=(e=>{const{disableGutters:t,classes:n}=e;return mc({root:["root",t&&"disableGutters"]},AR,n)})(l);return(0,Dc.jsx)(LR,{className:cc(s.root,r),ownerState:l,ref:t,...o})});jR.muiName="ListItemSecondaryAction";const $R=jR,NR=qc("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(mu(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${gm.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),_R=qc("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),DR=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:a,component:l,components:s={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:m=!1,disablePadding:h=!1,divider:g=!1,secondaryAction:v,slotProps:y={},slots:b={},...x}=n,w=i.useContext(mm),k=i.useMemo(()=>({dense:f||w.dense||!1,alignItems:r,disableGutters:m}),[r,w.dense,f,m]),S=i.useRef(null),E=i.Children.toArray(o),C=E.length&&Rm(E[E.length-1],["ListItemSecondaryAction"]),I={...n,alignItems:r,dense:k.dense,disableGutters:m,disablePadding:h,divider:g,hasSecondaryAction:C},P=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:l}=e;return mc({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",i&&"divider","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},MR,n)})(I),O=Fu(S,t),T=b.root||s.Root||NR,R=y.root||c.root||{},M={className:cc(P.root,R.className,a),...x};let A=l||"li";return C?(A=M.component||l?A:"div","li"===u&&("li"===A?A="div":"li"===M.component&&(M.component="div")),(0,Dc.jsx)(mm.Provider,{value:k,children:(0,Dc.jsxs)(_R,{as:u,className:cc(P.container,d),ref:O,ownerState:I,...p,children:[(0,Dc.jsx)(T,{...R,...!FS(T)&&{as:A,ownerState:{...I,...R.ownerState}},...M,children:E}),E.pop()]})})):(0,Dc.jsx)(mm.Provider,{value:k,children:(0,Dc.jsxs)(T,{...R,as:A,ref:O,...!FS(T)&&{ownerState:{...I,...R.ownerState}},...M,children:[E,v&&(0,Dc.jsx)($R,{children:v})]})})}),zR=DR;function FR(e){return fc("MuiCardContent",e)}Jc("MuiCardContent",["root"]);const BR=qc("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),WR=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiCardContent"}),{className:r,component:o="div",...a}=n,i={...n,component:o},l=(e=>{const{classes:t}=e;return mc({root:["root"]},FR,t)})(i);return(0,Dc.jsx)(BR,{as:o,className:cc(l.root,r),ownerState:i,ref:t,...a})}),HR=WR,VR=e=>{const t=i.useRef({});return i.useEffect(()=>{t.current=e}),t.current};function qR(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}const UR=function(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let c=i?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=qR(c));const u=c?e.filter(e=>{let r=(a||s)(e);return n&&(r=r.toLowerCase()),t&&(r=qR(r)),"start"===o?r.startsWith(c):r.includes(c)}):e;return"number"==typeof r?u.slice(0,r):u}}(),KR=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),GR=[];function YR(e,t,n){if(t||null==e)return"";const r=n(e);return"string"==typeof r?r:""}function XR(e){return fc("MuiListSubheader",e)}Jc("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const QR=qc("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Wc(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(mu(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),JR=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:a="li",disableGutters:i=!1,disableSticky:l=!1,inset:s=!1,...c}=n,u={...n,color:o,component:a,disableGutters:i,disableSticky:l,inset:s},d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e;return mc({root:["root","default"!==n&&`color${Wc(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]},XR,t)})(u);return(0,Dc.jsx)(QR,{as:a,className:cc(d.root,r),ref:t,ownerState:u,...c})});JR&&(JR.muiSkipListHighlight=!0);const ZR=JR,eM=Jd((0,Dc.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function tM(e){return fc("MuiChip",e)}const nM=Jc("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),rM=qc("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:l,variant:s}=n;return[{[`& .${nM.avatar}`]:t.avatar},{[`& .${nM.avatar}`]:t[`avatar${Wc(l)}`]},{[`& .${nM.avatar}`]:t[`avatarColor${Wc(r)}`]},{[`& .${nM.icon}`]:t.icon},{[`& .${nM.icon}`]:t[`icon${Wc(l)}`]},{[`& .${nM.icon}`]:t[`iconColor${Wc(o)}`]},{[`& .${nM.deleteIcon}`]:t.deleteIcon},{[`& .${nM.deleteIcon}`]:t[`deleteIcon${Wc(l)}`]},{[`& .${nM.deleteIcon}`]:t[`deleteIconColor${Wc(r)}`]},{[`& .${nM.deleteIcon}`]:t[`deleteIcon${Wc(s)}Color${Wc(r)}`]},t.root,t[`size${Wc(l)}`],t[`color${Wc(r)}`],a&&t.clickable,a&&"default"!==r&&t[`clickableColor${Wc(r)})`],i&&t.deletable,i&&"default"!==r&&t[`deletableColor${Wc(r)}`],t[s],t[`${s}${Wc(r)}`]]}})(mu(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${nM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nM.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${nM.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nM.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nM.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nM.icon}`]:{marginLeft:5,marginRight:-6},[`& .${nM.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:_i(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:_i(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${nM.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${nM.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(hu(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${nM.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:_i(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${nM.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${nM.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${nM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_i(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(hu(["dark"])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${nM.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${nM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_i(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(hu(["dark"])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${nM.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${nM.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nM.avatar}`]:{marginLeft:4},[`& .${nM.avatarSmall}`]:{marginLeft:2},[`& .${nM.icon}`]:{marginLeft:4},[`& .${nM.iconSmall}`]:{marginLeft:2},[`& .${nM.deleteIcon}`]:{marginRight:5},[`& .${nM.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:_i(e.palette[t].main,.7)}`,[`&.${nM.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${nM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:_i(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${nM.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:_i(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),oM=qc("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Wc(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function aM(e){return"Backspace"===e.key||"Delete"===e.key}const iM=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:l="default",component:s,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:f,onDelete:m,onKeyDown:h,onKeyUp:g,size:v="medium",variant:y="filled",tabIndex:b,skipFocusWhenDisabled:x=!1,...w}=n,k=i.useRef(null),S=Fu(k,t),E=e=>{e.stopPropagation(),m&&m(e)},C=!(!1===a||!f)||a,I=C||m?bd:s||"div",P={...n,component:I,disabled:u,size:v,color:l,iconColor:i.isValidElement(d)&&d.props.color||l,onDelete:!!m,clickable:C,variant:y},O=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:l,variant:s}=e;return mc({root:["root",s,n&&"disabled",`size${Wc(r)}`,`color${Wc(o)}`,l&&"clickable",l&&`clickableColor${Wc(o)}`,i&&"deletable",i&&`deletableColor${Wc(o)}`,`${s}${Wc(o)}`],label:["label",`label${Wc(r)}`],avatar:["avatar",`avatar${Wc(r)}`,`avatarColor${Wc(o)}`],icon:["icon",`icon${Wc(r)}`,`iconColor${Wc(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Wc(r)}`,`deleteIconColor${Wc(o)}`,`deleteIcon${Wc(s)}Color${Wc(o)}`]},tM,t)})(P),T=I===bd?{component:s||"div",focusVisibleClassName:O.focusVisible,...m&&{disableRipple:!0}}:{};let R=null;m&&(R=c&&i.isValidElement(c)?i.cloneElement(c,{className:cc(c.props.className,O.deleteIcon),onClick:E}):(0,Dc.jsx)(eM,{className:cc(O.deleteIcon),onClick:E}));let M=null;r&&i.isValidElement(r)&&(M=i.cloneElement(r,{className:cc(O.avatar,r.props.className)}));let A=null;return d&&i.isValidElement(d)&&(A=i.cloneElement(d,{className:cc(O.icon,d.props.className)})),(0,Dc.jsxs)(rM,{as:I,className:cc(O.root,o),disabled:!(!C||!u)||void 0,onClick:f,onKeyDown:e=>{e.currentTarget===e.target&&aM(e)&&e.preventDefault(),h&&h(e)},onKeyUp:e=>{e.currentTarget===e.target&&m&&aM(e)&&m(e),g&&g(e)},ref:S,tabIndex:x&&u?-1:b,ownerState:P,...T,...w,children:[M||A,(0,Dc.jsx)(oM,{className:cc(O.label),ownerState:P,children:p}),R]})}),lM=iM;function sM(e){return fc("MuiAutocomplete",e)}const cM=Jc("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var uM,dM;const pM=qc("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:l}=n;return[{[`& .${cM.tag}`]:t.tag},{[`& .${cM.tag}`]:t[`tagSize${Wc(l)}`]},{[`& .${cM.inputRoot}`]:t.inputRoot},{[`& .${cM.input}`]:t.input},{[`& .${cM.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${cM.focused} .${cM.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${cM.clearIndicator}`]:{visibility:"visible"}},[`& .${cM.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${cM.inputRoot}`]:{[`.${cM.hasPopupIcon}&, .${cM.hasClearIcon}&`]:{paddingRight:30},[`.${cM.hasPopupIcon}.${cM.hasClearIcon}&`]:{paddingRight:56},[`& .${cM.input}`]:{width:0,minWidth:30}},[`& .${UI.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${UI.root}.${NI.sizeSmall}`]:{[`& .${UI.input}`]:{padding:"2px 4px 3px 0"}},[`& .${lP.root}`]:{padding:9,[`.${cM.hasPopupIcon}&, .${cM.hasClearIcon}&`]:{paddingRight:39},[`.${cM.hasPopupIcon}.${cM.hasClearIcon}&`]:{paddingRight:65},[`& .${cM.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${cM.endAdornment}`]:{right:9}},[`& .${lP.root}.${NI.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${cM.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${JI.root}`]:{paddingTop:19,paddingLeft:8,[`.${cM.hasPopupIcon}&, .${cM.hasClearIcon}&`]:{paddingRight:39},[`.${cM.hasPopupIcon}.${cM.hasClearIcon}&`]:{paddingRight:65},[`& .${JI.input}`]:{padding:"7px 4px"},[`& .${cM.endAdornment}`]:{right:9}},[`& .${JI.root}.${NI.sizeSmall}`]:{paddingBottom:1,[`& .${JI.input}`]:{padding:"2.5px 4px"}},[`& .${NI.hiddenLabel}`]:{paddingTop:8},[`& .${JI.root}.${NI.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${cM.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${JI.root}.${NI.hiddenLabel}.${NI.sizeSmall}`]:{[`& .${cM.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${cM.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${cM.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${cM.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${cM.inputRoot}`]:{flexWrap:"wrap"}}}]}),fM=qc("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),mM=qc(Kd,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),hM=qc(Kd,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),gM=qc(Gf,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cM.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(mu(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),vM=qc(Lu,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(mu(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),yM=qc("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(mu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),bM=qc("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(mu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),xM=qc("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(mu(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${cM.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${cM.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${cM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cM.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${cM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),wM=qc(ZR,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(mu(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),kM=qc("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${cM.option}`]:{paddingLeft:24}}),SM=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:l=!1,ChipProps:s,className:c,clearIcon:u=uM||(uM=(0,Dc.jsx)(pk,{fontSize:"small"})),clearOnBlur:d=!n.freeSolo,clearOnEscape:p=!1,clearText:f="Clear",closeText:m="Close",componentsProps:h,defaultValue:g=(n.multiple?[]:null),disableClearable:v=!1,disableCloseOnSelect:y=!1,disabled:b=!1,disabledItemsFocusable:x=!1,disableListWrap:w=!1,disablePortal:k=!1,filterOptions:S,filterSelectedOptions:E=!1,forcePopupIcon:C="auto",freeSolo:I=!1,fullWidth:P=!1,getLimitTagsText:O=e=>`+${e}`,getOptionDisabled:T,getOptionKey:R,getOptionLabel:M,isOptionEqualToValue:A,groupBy:L,handleHomeEndKeys:j=!n.freeSolo,id:$,includeInputInList:N=!1,inputValue:_,limitTags:D=-1,ListboxComponent:z,ListboxProps:F,loading:B=!1,loadingText:W="Loading…",multiple:H=!1,noOptionsText:V="No options",onChange:q,onClose:U,onHighlightChange:K,onInputChange:G,onOpen:Y,open:X,openOnFocus:Q=!1,openText:J="Open",options:Z,PaperComponent:ee,PopperComponent:te,popupIcon:ne=dM||(dM=(0,Dc.jsx)(BP,{})),readOnly:re=!1,renderGroup:oe,renderInput:ae,renderOption:ie,renderTags:le,selectOnFocus:se=!n.freeSolo,size:ce="medium",slots:ue={},slotProps:de={},value:pe,...fe}=n,{getRootProps:me,getInputProps:he,getInputLabelProps:ge,getPopupIndicatorProps:ve,getClearProps:ye,getTagProps:be,getListboxProps:xe,getOptionProps:we,value:ke,dirty:Se,expanded:Ee,id:Ce,popupOpen:Ie,focused:Pe,focusedTag:Oe,anchorEl:Te,setAnchorEl:Re,inputValue:Me,groupedOptions:Ae}=function(e){const{unstable_isActiveElementInListbox:t=KR,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:l=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?GR:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:h=!1,disableListWrap:g=!1,filterOptions:v=UR,filterSelectedOptions:y=!1,freeSolo:b=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:k=e=>e.label??e,groupBy:S,handleHomeEndKeys:E=!e.freeSolo,id:C,includeInputInList:I=!1,inputValue:P,isOptionEqualToValue:O=(e,t)=>e===t,multiple:T=!1,onChange:R,onClose:M,onHighlightChange:A,onInputChange:L,onOpen:j,open:$,openOnFocus:N=!1,options:_,readOnly:D=!1,selectOnFocus:z=!e.freeSolo,value:F}=e,B=Nu(C);let W=k;W=e=>{const t=k(e);return"string"!=typeof t?String(t):t};const H=i.useRef(!1),V=i.useRef(!0),q=i.useRef(null),U=i.useRef(null),[K,G]=i.useState(null),[Y,X]=i.useState(-1),Q=o?0:-1,J=i.useRef(Q),Z=i.useRef(YR(d??F,T,W)).current,[ee,te]=Yf({controlled:F,default:d,name:u}),[ne,re]=Yf({controlled:P,default:Z,name:u,state:"inputValue"}),[oe,ae]=i.useState(!1),ie=i.useCallback((e,t,n)=>{if(!(T?ee.length<t.length:null!==t)&&!s)return;const r=YR(t,T,W);ne!==r&&(re(r),L&&L(e,r,n))},[W,ne,T,L,re,s,ee]),[le,se]=Yf({controlled:$,default:!1,name:u,state:"open"}),[ce,ue]=i.useState(!0),de=!T&&null!=ee&&ne===W(ee),pe=le&&!D,fe=pe?v(_.filter(e=>!y||!(T?ee:[ee]).some(t=>null!==t&&O(e,t))),{inputValue:de&&ce?"":ne,getOptionLabel:W}):[],me=VR({filteredOptions:fe,value:ee,inputValue:ne});i.useEffect(()=>{const e=ee!==me.value;oe&&!e||b&&!e||ie(null,ee,"reset")},[ee,ie,oe,me.value,b]);const he=le&&fe.length>0&&!D,ge=Wu(e=>{-1===e?q.current.focus():K.querySelector(`[data-tag-index="${e}"]`).focus()});i.useEffect(()=>{T&&Y>ee.length-1&&(X(-1),ge(-1))},[ee,T,Y,ge]);const ve=Wu(({event:e,index:t,reason:r})=>{if(J.current=t,-1===t?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${B}-option-${t}`),A&&["mouse","keyboard","touch"].includes(r)&&A(e,-1===t?null:fe[t],r),!U.current)return;const o=U.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(`${n}-focused`),o.classList.remove(`${n}-focusVisible`));let a=U.current;if("listbox"!==U.current.getAttribute("role")&&(a=U.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=U.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${n}-focused`),"keyboard"===r&&i.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=i,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(S?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(S?1.3:0))}}),ye=Wu(({event:e,diff:t,direction:n="next",reason:o})=>{if(!pe)return;const a=function(e,t){if(!U.current||e<0||e>=fe.length)return-1;let n=e;for(;;){const r=U.current.querySelector(`[data-option-index="${n}"]`),o=!h&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%fe.length:(n-1+fe.length)%fe.length,n===e)return-1}}((()=>{const e=fe.length-1;if("reset"===t)return Q;if("start"===t)return 0;if("end"===t)return e;const n=J.current+t;return n<0?-1===n&&I?-1:g&&-1!==J.current||Math.abs(t)>1?0:e:n>e?n===e+1&&I?-1:g||Math.abs(t)>1?e:0:n})(),n);if(ve({index:a,reason:o,event:e}),r&&"reset"!==t)if(-1===a)q.current.value=ne;else{const e=W(fe[a]);q.current.value=e,0===e.toLowerCase().indexOf(ne.toLowerCase())&&ne.length>0&&q.current.setSelectionRange(ne.length,e.length)}}),be=i.useCallback(()=>{if(!pe)return;const e=(()=>{if(-1!==J.current&&me.filteredOptions&&me.filteredOptions.length!==fe.length&&me.inputValue===ne&&(T?ee.length===me.value.length&&me.value.every((e,t)=>W(ee[t])===W(e)):(e=me.value,t=ee,(e?W(e):"")===(t?W(t):"")))){const e=me.filteredOptions[J.current];if(e)return fe.findIndex(t=>W(t)===W(e))}var e,t;return-1})();if(-1!==e)return void(J.current=e);const t=T?ee[0]:ee;if(0!==fe.length&&null!=t){if(U.current){if(null!=t){const e=fe[J.current];if(T&&e&&-1!==ee.findIndex(t=>O(e,t)))return;const n=fe.findIndex(e=>O(e,t));return void(-1===n?ye({diff:"reset"}):ve({index:n}))}J.current>=fe.length-1?ve({index:fe.length-1}):ve({index:J.current})}}else ye({diff:"reset"})},[fe.length,!T&&ee,y,ye,ve,pe,ne,T]),xe=Wu(e=>{Ff(U,e),e&&be()});i.useEffect(()=>{be()},[be]);const we=e=>{le||(se(!0),ue(!0),j&&j(e))},ke=(e,t)=>{le&&(se(!1),M&&M(e,t))},Se=(e,t,n,r)=>{if(T){if(ee.length===t.length&&ee.every((e,n)=>e===t[n]))return}else if(ee===t)return;R&&R(e,t,n,r),te(t)},Ee=i.useRef(!1),Ce=(e,t,n="selectOption",r="options")=>{let o=n,a=t;if(T){a=Array.isArray(ee)?ee.slice():[];const e=a.findIndex(e=>O(t,e));-1===e?a.push(t):"freeSolo"!==r&&(a.splice(e,1),o="removeOption")}ie(e,a,o),Se(e,a,o,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||ke(e,o),(!0===l||"touch"===l&&Ee.current||"mouse"===l&&!Ee.current)&&q.current.blur()},Ie=(e,t)=>{if(!T)return;""===ne&&ke(e,"toggleInput");let n=Y;-1===Y?""===ne&&"previous"===t&&(n=ee.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===ee.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ee.length||"previous"===t&&-1===n)return-1;const e=K.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),X(n),ge(n)},Pe=e=>{H.current=!0,re(""),L&&L(e,"","clear"),Se(e,T?[]:null,"clear")},Oe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===Y||["ArrowLeft","ArrowRight"].includes(t.key)||(X(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":pe&&E&&(t.preventDefault(),ye({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":pe&&E&&(t.preventDefault(),ye({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ye({diff:-5,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"PageDown":t.preventDefault(),ye({diff:5,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowDown":t.preventDefault(),ye({diff:1,direction:"next",reason:"keyboard",event:t}),we(t);break;case"ArrowUp":t.preventDefault(),ye({diff:-1,direction:"previous",reason:"keyboard",event:t}),we(t);break;case"ArrowLeft":Ie(t,"previous");break;case"ArrowRight":Ie(t,"next");break;case"Enter":if(-1!==J.current&&pe){const e=fe[J.current],n=!!x&&x(e);if(t.preventDefault(),n)return;Ce(t,e,"selectOption"),r&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else b&&""!==ne&&!1===de&&(T&&t.preventDefault(),Ce(t,ne,"createOption","freeSolo"));break;case"Escape":pe?(t.preventDefault(),t.stopPropagation(),ke(t,"escape")):c&&(""!==ne||T&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Pe(t));break;case"Backspace":if(T&&!D&&""===ne&&ee.length>0){const e=-1===Y?ee.length-1:Y,n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})}break;case"Delete":if(T&&!D&&""===ne&&ee.length>0&&-1!==Y){const e=Y,n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})}}},Te=e=>{ae(!0),N&&!H.current&&we(e)},Re=e=>{t(U)?q.current.focus():(ae(!1),V.current=!0,H.current=!1,a&&-1!==J.current&&pe?Ce(e,fe[J.current],"blur"):a&&b&&""!==ne?Ce(e,ne,"blur","freeSolo"):s&&ie(e,ee,"blur"),ke(e,"blur"))},Me=e=>{const t=e.target.value;ne!==t&&(re(t),ue(!1),L&&L(e,t,"input")),""===t?p||T||Se(e,null,"clear"):we(e)},Ae=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&ve({event:e,index:t,reason:"mouse"})},Le=e=>{ve({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ee.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ce(e,fe[t],"selectOption"),Ee.current=!1},$e=e=>t=>{const n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})},Ne=e=>{le?ke(e,"toggleInput"):we(e)},_e=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==B&&e.preventDefault()},De=e=>{e.currentTarget.contains(e.target)&&(q.current.focus(),z&&V.current&&q.current.selectionEnd-q.current.selectionStart===0&&q.current.select(),V.current=!1)},ze=e=>{m||""!==ne&&le||Ne(e)};let Fe=b&&ne.length>0;Fe=Fe||(T?ee.length>0:null!==ee);let Be=fe;return S&&(new Map,Be=fe.reduce((e,t,n)=>{const r=S(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),m&&oe&&Re(),{getRootProps:(e={})=>({...e,onKeyDown:Oe(e),onMouseDown:_e,onClick:De}),getInputLabelProps:()=>({id:`${B}-label`,htmlFor:B}),getInputProps:()=>({id:B,value:ne,onBlur:Re,onFocus:Te,onChange:Me,onMouseDown:ze,"aria-activedescendant":pe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":he?`${B}-listbox`:void 0,"aria-expanded":he,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!D&&{onDelete:$e(e)}}),getListboxProps:()=>({role:"listbox",id:`${B}-listbox`,"aria-labelledby":`${B}-label`,ref:xe,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(T?ee:[ee]).some(e=>null!=e&&O(t,e)),r=!!x&&x(t);return{key:w?.(t)??W(t),tabIndex:-1,role:"option",id:`${B}-option-${e}`,onMouseMove:Ae,onClick:je,onTouchStart:Le,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:B,inputValue:ne,value:ee,dirty:Fe,expanded:pe&&K,popupOpen:pe,focused:oe||-1!==Y,anchorEl:K,setAnchorEl:G,focusedTag:Y,groupedOptions:Be}}({...n,componentName:"Autocomplete"}),Le=!v&&!b&&Se&&!re,je=(!I||!0===C)&&!1!==C,{onMouseDown:$e}=he(),{ref:Ne,..._e}=xe(),De=M||(e=>e.label??e),ze={...n,disablePortal:k,expanded:Ee,focused:Pe,fullWidth:P,getOptionLabel:De,hasClearIcon:Le,hasPopupIcon:je,inputFocused:-1===Oe,popupOpen:Ie,size:ce},Fe=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:l,inputFocused:s,popupOpen:c,size:u}=e;return mc({root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${Wc(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},sM,t)})(ze),Be={slots:{paper:ee,popper:te,...ue},slotProps:{chip:s,listbox:F,...h,...de}},[We,He]=Qf("listbox",{elementType:xM,externalForwardedProps:Be,ownerState:ze,className:Fe.listbox,additionalProps:_e,ref:Ne}),[Ve,qe]=Qf("paper",{elementType:Lu,externalForwardedProps:Be,ownerState:ze,className:Fe.paper}),[Ue,Ke]=Qf("popper",{elementType:Gf,externalForwardedProps:Be,ownerState:ze,className:Fe.popper,additionalProps:{disablePortal:k,style:{width:Te?Te.clientWidth:null},role:"presentation",anchorEl:Te,open:Ie}});let Ge;if(H&&ke.length>0){const e=e=>({className:Fe.tag,disabled:b,...be(e)});Ge=le?le(ke,e,ze):ke.map((t,n)=>{const{key:r,...o}=e({index:n});return(0,Dc.jsx)(lM,{label:De(t),size:ce,...o,...Be.slotProps.chip},r)})}if(D>-1&&Array.isArray(Ge)){const e=Ge.length-D;!Pe&&e>0&&(Ge=Ge.splice(0,D),Ge.push((0,Dc.jsx)("span",{className:Fe.tag,children:O(e)},Ge.length)))}const Ye=oe||(e=>(0,Dc.jsxs)("li",{children:[(0,Dc.jsx)(wM,{className:Fe.groupLabel,ownerState:ze,component:"div",children:e.group}),(0,Dc.jsx)(kM,{className:Fe.groupUl,ownerState:ze,children:e.children})]},e.key)),Xe=ie||((e,t)=>{const{key:n,...r}=e;return(0,Dc.jsx)("li",{...r,children:De(t)},n)}),Qe=(e,t)=>{const n=we({option:e,index:t});return Xe({...n,className:Fe.option},e,{selected:n["aria-selected"],index:t,inputValue:Me},ze)},Je=Be.slotProps.clearIndicator,Ze=Be.slotProps.popupIndicator;return(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)(pM,{ref:t,className:cc(Fe.root,c),ownerState:ze,...me(fe),children:ae({id:Ce,disabled:b,fullWidth:!0,size:"small"===ce?"small":void 0,InputLabelProps:ge(),InputProps:{ref:Re,className:Fe.inputRoot,startAdornment:Ge,onMouseDown:e=>{e.target===e.currentTarget&&$e(e)},...(Le||je)&&{endAdornment:(0,Dc.jsxs)(fM,{className:Fe.endAdornment,ownerState:ze,children:[Le?(0,Dc.jsx)(mM,{...ye(),"aria-label":f,title:f,ownerState:ze,...Je,className:cc(Fe.clearIndicator,Je?.className),children:u}):null,je?(0,Dc.jsx)(hM,{...ve(),disabled:b,"aria-label":Ie?m:J,title:Ie?m:J,ownerState:ze,...Ze,className:cc(Fe.popupIndicator,Ze?.className),children:ne}):null]})}},inputProps:{className:Fe.input,disabled:b,readOnly:re,...he()}})}),Te?(0,Dc.jsx)(gM,{as:Ue,...Ke,children:(0,Dc.jsxs)(vM,{as:Ve,...qe,children:[B&&0===Ae.length?(0,Dc.jsx)(yM,{className:Fe.loading,ownerState:ze,children:W}):null,0!==Ae.length||I||B?null:(0,Dc.jsx)(bM,{className:Fe.noOptions,ownerState:ze,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}),Ae.length>0?(0,Dc.jsx)(We,{as:z,...He,children:Ae.map((e,t)=>L?Ye({key:e.key,group:e.group,children:e.options.map((t,n)=>Qe(t,e.index+n))}):Qe(e,t))}):null]})}):null]})}),EM=SM,CM=Jd((0,Dc.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock"),IM=Vs()(function(e){return{cancelButton:{position:"absolute",right:8,top:8},inputField:{marginTop:"0 !important","& > label.MuiInputLabel-shrink":{fontWeight:600,color:e.palette.common.grayDarkest},"& > label.Mui-focused":{color:e.palette.secondary.main},"& > label.Mui-error":{color:e.palette.error.main}},inputLabel:{color:e.palette.common.grayDark,fontWeight:600},inputDescription:{fontSize:"0.95rem",color:e.palette.common.gray,"& > p":{margin:"0 0 8px 0 !important",lineHeight:"1.75rem"},"& .Mui-disabled":{color:e.palette.common.grayDark}},lockedIcon:{marginLeft:"5px",verticalAlign:"text-bottom"},textarea:{resize:"vertical",maxHeight:"400px",overflow:"auto !important"},authCard:{width:"100%"},serialInput:{height:"max-content",fontFamily:"monospace"},dialogActions:{display:"flex",justifyContent:"space-between"},toggleButtonGroupContainer:{display:"flex",border:"1px solid ".concat(e.palette.divider),flexWrap:"wrap"},toggleButtonGroup:{flexGrow:1,"& .MuiToggleButtonGroup-grouped":{margin:e.spacing(.5),border:0,"& .Mui-disabled":{border:0},"& :not(:first-of-type), :first-of-type":{borderRadius:e.shape.borderRadius}}},toggleButton:{color:e.palette.common.grayDark,"& :hover, :focus-within":{backgroundColor:e.palette.common.grayLight,fontWeight:"bolder"},"& .Mui-selected":{backgroundColor:"unset",border:"1px solid ".concat(e.palette.secondary.main," !important"),color:e.palette.secondary.main,fontWeight:"bolder"}}}}),PM=Jd((0,Dc.jsx)("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM12 17.3c-.72 0-1.3-.58-1.3-1.3s.58-1.3 1.3-1.3 1.3.58 1.3 1.3-.58 1.3-1.3 1.3m1-4.3h-2V7h2z"}),"Report"),OM=function(){return i.createElement(dm,{title:"Missing value for required input"},i.createElement(PM,{color:"error","aria-hidden":!1,tabIndex:0,sx:{marginRight:"4px",verticalAlign:"bottom"}}))},TM=function(e){var t,n=e.input,r=e.isMissingInput,o=void 0!==r&&r,a=IM().classes,l=n.title||n.name,s=!n.optional&&"radio"!==n.type&&("checkbox"!==n.type||null!==(t=n.options)&&void 0!==t&&null!==(t=t.list_options)&&void 0!==t&&t.length)?" (required)":"",c=n.locked&&i.createElement(CM,{fontSize:"small",className:a.lockedIcon});return i.createElement(i.Fragment,null,o&&i.createElement(OM,null),"".concat(l).concat(s),c)},RM=function(e){var t,n=e.input,r=e.index,o=e.inputsMap,a=e.setInputsMap,l=e.disableClear,s=IM().classes,c=qC(function(e){return e.readOnly});return i.createElement(zR,null,i.createElement($m,{component:"fieldset",id:"input".concat(r,"_control"),tabIndex:0,disabled:n.locked||c,"aria-disabled":n.locked||c,required:!n.optional,fullWidth:!0,className:s.inputField},i.createElement(Hm,{htmlFor:"input".concat(r,"_autocomplete"),className:s.inputLabel},i.createElement(TM,{input:n})),n.description&&i.createElement(lx,{className:s.inputDescription,remarkPlugins:[ek]},n.description),i.createElement(EM,{id:"input".concat(r,"_autocomplete"),options:(null===(t=n.options)||void 0===t?void 0:t.list_options)||[],defaultValue:function(){var e,t=null===(e=n.options)||void 0===e?void 0:e.list_options;if(!t)return null;var r=t[0];if(n.default&&"string"==typeof n.default){var o=t.find(function(e){return e.value===n.default});o&&(r=o)}return r}(),tabIndex:0,disabled:n.locked||c,"aria-disabled":n.locked||c,disableClearable:l,isOptionEqualToValue:function(e,t){return e.value===t.value},renderInput:function(e){return i.createElement(JP,vc({},e,{className:s.inputField,required:!n.optional,color:"secondary",variant:"standard",fullWidth:!0}))},onChange:function(e,t){var r=null==t?void 0:t.value;o.set(n.name,r),a(new Map(o))}})))},MM=function(e){var t,n,r=e.input,o=e.index,a=e.inputsMap,l=e.setInputsMap,s=null===(t=r.options)||void 0===t||null===(t=t.components)||void 0===t?void 0:t.find(function(e){return"auth_type"===e.name}),c=s||{name:"auth_type",default:"public"},u=(null==s||null===(n=s.options)||void 0===n?void 0:n.list_options)||[{label:"Public",value:"public"},{label:"Confidential Symmetric",value:"symmetric"},{label:"Confidential Asymmetric",value:"asymmetric"},{label:"Backend Services",value:"backend_services"}],d={name:"auth_type",type:"select",title:"Auth Type",description:r.description,default:function(){var e=c.default||u[0].value||"public";if(r.value&&"string"==typeof r.value){var t=JSON.parse(r.value);t.auth_type&&(e=t.auth_type)}return e}(),optional:c.optional||r.optional,locked:c.locked||r.locked,options:{list_options:u}};return i.createElement(RM,{input:d,index:o,inputsMap:a,setInputsMap:l,key:"input-".concat(o),disableClear:!0})};function AM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function LM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AM(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const jM=function(e){var t,n,r,o,a=e.mode,l=e.input,s=e.index,c=e.inputsMap,u=e.setInputsMap,d=IM().classes,p=qC(function(e){return e.readOnly}),f=lc(i.useState(new Map),2),m=f[0],h=f[1],g=lc(i.useState(!1),2),v=g[0],y=g[1],b=null===(t=l.options)||void 0===t||null===(t=t.components)||void 0===t?void 0:t.find(function(e){return"auth_type"===e.name}),x=O(l.value).auth_type,w=null!=b&&null!==(n=b.options)&&void 0!==n&&n.list_options&&(null==b||null===(r=b.options)||void 0===r||null===(r=r.list_options)||void 0===r?void 0:r.length)>0?null==b||null===(o=b.options)||void 0===o?void 0:o.list_options[0].value:void 0,k=lc(i.useState(x||(null==b?void 0:b.default)||w||"public"),2),S=k[0],E=k[1],C=lc(i.useState(T(a)),2),I=C[0],P=C[1];function O(e){return function(e){if("string"!=typeof e)return!1;var t=e;try{t=JSON.parse(e)}catch(e){return!1}return!!t&&"object"===ep(t)}(e)?JSON.parse(e):{}}function T(e){var t,n;return"access"===e?PR(S,m,(null===(t=l.options)||void 0===t?void 0:t.components)||[],l.optional||!1,l.locked||!1):"auth"===e?CR(S,m,(null===(n=l.options)||void 0===n?void 0:n.components)||[],l.optional||!1,l.locked||!1):[]}(0,i.useEffect)(function(){P(I.map(function(e){var t,n;return"radio"!==e.type||e.default||e.value||null===(t=e.options)||void 0===t||!t.list_options||(e.default=null===(n=e.options)||void 0===n?void 0:n.list_options[0].value),e}));var e=R();E(e.auth_type||S),m.set("auth_type",e.auth_type||S),I.forEach(function(t){m.set(t.name,e[t.name]||"")}),y(!0)},[]),(0,i.useEffect)(function(){var e=O(c.get(l.name)),t=new Map(m);Object.entries(e).forEach(function(e){var n=lc(e,2),r=n[0],o=n[1];t.set(r,o)}),h(t)},[c.get(l.name)]),(0,i.useEffect)(function(){P(T(a)),M(m)},[m,v]);var R=function(){var e=I.reduce(function(e,t){return LM(LM({},e),{},tp({},t.name,t.default))},{}),t=O(l.default),n=O(l.value),r=O(c.get(l.name));return LM(LM(LM(LM({},e),t),n),r)},M=function(e){if(h(e),I.forEach(function(t){var n,r;"radio"===t.type&&!e.get(t.name)&&null!==(n=t.options)&&void 0!==n&&n.list_options&&e.set(t.name,null===(r=t.options)||void 0===r?void 0:r.list_options[0].value)}),v){var t=new Map;m.forEach(function(e,n){e&&t.set(n,e)});var n=JSON.stringify(Object.fromEntries(t));if("access"===a){var r=R(),o=Object.fromEntries(m),i=LM(LM({},r),o);n=JSON.stringify(i)}c.set(l.name,n),u(new Map(c))}};return i.createElement(zR,null,i.createElement(vS,{variant:"outlined",tabIndex:0,className:d.authCard,sx:l.locked||p?{}:{borderColor:Mh.palette.common.gray}},i.createElement(HR,null,i.createElement(gP,{tabIndex:0,required:!l.optional,disabled:l.locked||p,"aria-disabled":l.locked||p,className:d.inputLabel},i.createElement(TM,{input:l})),l.description&&i.createElement(lx,{className:d.inputDescription,remarkPlugins:[ek]},l.description),i.createElement(AS,null,i.createElement(MM,{input:l,index:s,inputsMap:m,setInputsMap:function(e){E(e.get("auth_type")),M(e)},key:"input-".concat(s)})),i.createElement(tA,{inputs:I,inputsMap:m,setInputsMap:M}))))},$M=Jd((0,Dc.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),NM=Jd((0,Dc.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),_M=Jd((0,Dc.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function DM(e){return fc("MuiCheckbox",e)}const zM=Jc("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),FM=qc(sh,{shouldForwardProp:e=>Vc(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Wc(n.size)}`],"default"!==n.color&&t[`color${Wc(n.color)}`]]}})(mu(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{[`&.${zM.checked}, &.${zM.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${zM.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),BM=(0,Dc.jsx)(NM,{}),WM=(0,Dc.jsx)($M,{}),HM=(0,Dc.jsx)(_M,{}),VM=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiCheckbox"}),{checkedIcon:r=BM,color:o="primary",icon:a=WM,indeterminate:l=!1,indeterminateIcon:s=HM,inputProps:c,size:u="medium",disableRipple:d=!1,className:p,slots:f={},slotProps:m={},...h}=n,g=l?s:a,v=l?s:r,y={...n,disableRipple:d,color:o,indeterminate:l,size:u},b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a=mc({root:["root",n&&"indeterminate",`color${Wc(r)}`,`size${Wc(o)}`]},DM,t);return{...t,...a}})(y),x=m.input??c,[w,k]=Qf("root",{ref:t,elementType:FM,className:cc(b.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:m,...h},ownerState:y,additionalProps:{type:"checkbox",icon:i.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:i.cloneElement(v,{fontSize:v.props.fontSize??u}),disableRipple:d,slots:f,slotProps:{input:Xk("function"==typeof x?x(y):x,{"data-indeterminate":l})}}});return(0,Dc.jsx)(w,{...k,classes:b})}),qM=VM;function UM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function KM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UM(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const GM=function(e){var t,n=e.input,r=e.index,o=e.inputsMap,a=e.setInputsMap,l=IM().classes,s=qC(function(e){return e.readOnly}),c=lc(i.useState(!1),2),u=c[0],d=c[1],p=lc(i.useState(function(){var e,t=[];try{t=JSON.parse(o.get(n.name))}catch(e){t=Array.isArray(o.get(n.name))?o.get(n.name):[o.get(n.name)]}var r=t||n.default||[],a=null===(e=n.options)||void 0===e?void 0:e.list_options,i={};return a&&a.length>0&&(i=a.reduce(function(e,t){return e[t.value]=!!Array.isArray(r)&&r.includes(t.value),e},{})),i}),2),f=p[0],m=p[1],h=u&&!n.optional&&"[]"===o.get(n.name);(0,i.useEffect)(function(){o.set(n.name,v(f)),a(new Map(o),!1)},[]);var g=function(e){var t=KM(KM({},f),{},tp({},e.target.name,e.target.checked));o.set(n.name,v(t)),a(new Map(o)),m(t),d(!0)},v=function(e){var t=Object.entries(e).filter(function(e){return!0===lc(e,2)[1]}).map(function(e){return lc(e,1)[0]});return JSON.stringify(t)};return i.createElement(zR,null,i.createElement($m,{component:"fieldset",id:"requirement".concat(r,"_input"),tabIndex:0,disabled:n.locked||s,"aria-disabled":n.locked||s,required:!n.optional,error:h,fullWidth:!0,className:l.inputField},i.createElement(Hm,{className:l.inputLabel},i.createElement(TM,{input:n,isMissingInput:h})),n.description&&i.createElement(lx,{className:l.inputDescription,remarkPlugins:[ek]},n.description),i.createElement(Km,{"aria-label":"".concat(n.name,"-checkboxes-group")},null===(t=n.options)||void 0===t||null===(t=t.list_options)||void 0===t?void 0:t.map(function(e,t){return i.createElement(rh,{control:i.createElement(qM,{size:"small",color:"secondary",name:e.value,tabIndex:0,disabled:n.locked||!!e.locked||s,"aria-disabled":n.locked||s,checked:f[e.value]||!1,onBlur:function(e){e.currentTarget===e.target&&d(!0)},onChange:g}),label:e.label,key:"checkbox-".concat(t)})}))))};function YM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YM(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const QM=function(e){var t=e.input,n=e.index,r=e.inputsMap,o=e.setInputsMap,a=IM().classes,l=qC(function(e){return e.readOnly}),s=lc(i.useState({}),2),c=s[0],u=s[1],d=XM({access_token:"",refresh_token:"",expires_in:"",client_id:"",client_secret:"",token_url:""},JSON.parse(r.get(t.name)||"{}")),p=!!d.refresh_token,f=[{name:"access_token",title:"Access Token",optional:t.optional},{name:"refresh_token",title:"Refresh Token (will automatically refresh if available)",optional:!0},{name:"token_url",title:"Token Endpoint",hidden:!p},{name:"client_id",title:"Client ID",hidden:!p},{name:"client_secret",title:"Client Secret",hidden:!p,optional:!0},{name:"expires_in",title:"Expires in (seconds)",hidden:!p,optional:!0}],m=function(e){return c[e.name]&&!e.optional&&!d[e.name]};return i.createElement(zR,null,i.createElement(vS,{variant:"outlined",className:a.authCard,sx:t.locked||l?{}:{borderColor:Mh.palette.common.gray}},i.createElement(HR,null,i.createElement(gP,{required:!t.optional,tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,className:a.inputLabel},i.createElement(TM,{input:t})),t.description&&i.createElement(Su,{variant:"subtitle1",component:"p",className:a.inputDescription},t.description),i.createElement(AS,null,f.map(function(e){return!e.hidden&&function(e){var s=e.optional?e.title||e.name:"".concat(e.title||e.name," (required)"),p=i.createElement(i.Fragment,null,m(e)&&i.createElement(OM,null),s);return i.createElement(zR,{key:e.name,component:"li",className:a.inputField},i.createElement($m,{component:"fieldset",id:"input".concat(n,"_input"),tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,required:!t.optional,error:m(e),fullWidth:!0,className:a.inputField},i.createElement(Hm,{htmlFor:"input".concat(n,"_").concat(e.name),className:a.inputLabel},p),e.description&&i.createElement(lx,{className:a.inputDescription,remarkPlugins:[ek]},t.description),i.createElement(XI,{tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,required:!e.optional,error:m(e),id:"input".concat(n,"_").concat(e.name),value:d[e.name],className:a.inputField,color:"secondary",fullWidth:!0,onBlur:function(t){t.currentTarget===t.target&&u(XM(XM({},c),{},tp({},e.name,!0)))},onChange:function(n){return function(e,n){d[e.name]=n;var a={};Object.entries(d).forEach(function(e){var t=lc(e,2),n=t[0],r=t[1];r&&(a[n]=r)}),r.set(t.name,JSON.stringify(a)),o(new Map(r))}(e,n.target.value)}})))}(e)})))))},JM=function(e){var t,n,r,o,a=e.input,l=e.index,s=e.inputsMap,c=e.setInputsMap,u=IM().classes,d=qC(function(e){return e.readOnly}),p=null!==(t=a.options)&&void 0!==t&&t.list_options&&(null===(n=a.options)||void 0===n||null===(n=n.list_options)||void 0===n?void 0:n.length)>0?null===(r=a.options)||void 0===r||null===(r=r.list_options[0])||void 0===r?void 0:r.value:"";return(0,i.useEffect)(function(){var e=s.get(a.name)||a.default||p;s.set(a.name,e),c(new Map(s))},[]),i.createElement(zR,null,i.createElement($m,{component:"fieldset",id:"input".concat(l,"_control"),tabIndex:0,disabled:a.locked||d,"aria-disabled":a.locked||d,fullWidth:!0,className:u.inputField},i.createElement(Hm,{className:u.inputLabel},i.createElement(TM,{input:a})),a.description&&i.createElement(lx,{className:u.inputDescription,remarkPlugins:[ek]},a.description),i.createElement(Qm,{row:!0,"aria-label":"".concat(a.name,"-radio-buttons-group"),name:"".concat(a.name,"-radio-buttons-group"),value:s.get(a.name)||a.default||p,onChange:function(e){s.set(a.name,e.target.value),c(new Map(s))}},null===(o=a.options)||void 0===o||null===(o=o.list_options)||void 0===o?void 0:o.map(function(e,t){return i.createElement(rh,{value:e.value,control:i.createElement(Sh,{size:"small",color:"secondary"}),label:e.label,key:"radio-button-".concat(t),tabIndex:0,"aria-disabled":a.locked||d})}))))},ZM=function(e){var t=e.input,n=e.index,r=e.inputsMap,o=e.setInputsMap,a=IM().classes,l=qC(function(e){return e.readOnly}),s=lc(i.useState(!1),2),c=s[0],u=s[1],d=lc(i.useState(!1),2),p=d[0],f=d[1],m=c&&!t.optional&&!1===r.get(t.name),h=i.createElement(TM,{input:t,isMissingInput:m});return(0,i.useEffect)(function(){var e=r.get(t.name),n=!1;("true"===e||"false"!==e&&"true"===t.default)&&(n=!0),f(n)},[]),i.createElement(zR,null,i.createElement($m,{component:"fieldset",id:"input".concat(n,"_control"),tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,required:!t.optional,error:m,fullWidth:!0,className:a.inputField},t.description&&i.createElement(lx,{className:a.inputDescription,remarkPlugins:[ek]},t.description),i.createElement(Km,{"aria-label":"".concat(t.name,"-single-checkbox")},i.createElement(rh,{control:i.createElement(qM,{size:"small",color:"secondary",checked:p,onBlur:function(e){e.currentTarget===e.target&&u(!0)},onChange:function(e){var n=e.target.checked;f(n),u(!0),r.set(t.name,n.toString()),o(new Map(r))}}),label:h,key:"checkbox-".concat(t.name)}))))},eA=function(e){var t=e.input,n=e.index,r=e.inputsMap,o=e.setInputsMap,a=IM().classes,l=qC(function(e){return e.readOnly}),s=lc(i.useState(!1),2),c=s[0],u=s[1],d=c&&!t.optional&&!r.get(t.name);return i.createElement(zR,null,i.createElement($m,{component:"fieldset",id:"input".concat(n,"_control"),tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,required:!t.optional,error:d,fullWidth:!0,className:a.inputField},i.createElement(Hm,{htmlFor:"input".concat(n,"_text"),className:a.inputLabel},i.createElement(TM,{input:t,isMissingInput:d})),t.description&&i.createElement(lx,{className:a.inputDescription,remarkPlugins:[ek]},t.description),i.createElement(XI,{tabIndex:0,disabled:t.locked||l,"aria-disabled":t.locked||l,required:!t.optional,error:d,id:"input".concat(n,"_text"),className:a.inputField,color:"secondary",fullWidth:!0,multiline:"textarea"===t.type,minRows:"textarea"===t.type?4:1,maxRows:20,value:r.get(t.name)||"",onBlur:function(e){e.currentTarget===e.target&&u(!0)},onChange:function(e){var n=e.target.value;r.set(t.name,n),o(new Map(r))}})))},tA=function(e){var t=e.inputs,n=e.inputsMap,r=e.setInputsMap;return i.createElement(AS,null,t.map(function(e,t){var o,a;if(function(e,t){return!e.hidden&&function(e,t){var n=e.enable_when;if(null==n||!n.input_name)return!0;var r=t.get(n.input_name);return void 0!==r&&RR(r)===RR(n.value)}(e,t)}(e,n))switch(e.type){case"auth_info":var l;return"auth"===(null===(o=e.options)||void 0===o?void 0:o.mode)?i.createElement(jM,{mode:null===(l=e.options)||void 0===l?void 0:l.mode,input:e,index:t,inputsMap:n,setInputsMap:function(e){return r(e)},key:"input-".concat(t)}):i.createElement(jM,{mode:"access",input:e,index:t,inputsMap:n,setInputsMap:function(e){return r(e)},key:"input-".concat(t)});case"oauth_credentials":return i.createElement(QM,{input:e,index:t,inputsMap:n,setInputsMap:function(e){return r(e)},key:"input-".concat(t)});case"checkbox":return null!==(a=e.options)&&void 0!==a&&null!==(a=a.list_options)&&void 0!==a&&a.length?i.createElement(GM,{input:e,index:t,inputsMap:n,setInputsMap:function(e,t){return r(e,t)},key:"input-".concat(t)}):i.createElement(ZM,{input:e,index:t,inputsMap:n,setInputsMap:function(e,t){return r(e,t)},key:"input-".concat(t)});case"radio":return i.createElement(JM,{input:e,index:t,inputsMap:n,setInputsMap:function(e){return r(e)},key:"input-".concat(t)});case"select":return i.createElement(RM,{input:e,index:t,inputsMap:n,setInputsMap:function(e,t){return r(e,t)},key:"input-".concat(t)});default:return i.createElement(eA,{input:e,index:t,inputsMap:n,setInputsMap:function(e){return r(e)},key:"input-".concat(t)})}}))},nA=function(e){var t=e.modalVisible,n=e.hideModal,r=e.runnable,o=e.runnableType,a=e.inputs,l=e.sessionData,s=e.createTestRun,c=IM().classes,u=qC(function(e){return e.readOnly}),d=lc(i.useState(!1),2),p=d[0],f=d[1],m=lc(i.useState(new Map),2),h=m[0],g=m[1],v=lc(i.useState("Field"),2),y=v[0],b=v[1],x=lc(i.useState("txt"),2),w=x[0],k=x[1],S=lc(i.useState(""),2),E=S[0],C=S[1],I=lc(i.useState(!1),2),P=I[0],O=I[1],T=lc(i.useState(!1),2),R=T[0],M=T[1],A=(null==r?void 0:r.input_instructions)||"Please fill out required fields in order to run the ".concat(function(e){switch(e){case vI.TestSuite:return"test suite";case vI.TestGroup:return"test group";case vI.Test:return"test"}}(o),".")+("Field"===y?"":" In this view, only changes to the value attribute of an element will be saved. Further, only elements with names that match an input defined for the current suite, group, or test will be saved. The intended use of this view is to provide a template for users to copy/paste in order to avoid filling out individual fields every time.");(0,i.useEffect)(function(){h.clear(),a.forEach(function(e){h.set(e.name,l.get(e.name)||e.default||"")}),g(new Map(h))},[a,l]),(0,i.useEffect)(function(){return O(function(e,t){return e.some(function(e){if("radio"===e.type)return!1;var n=t.get(e.name);if("checkbox"===e.type)try{var r;return r=Array.isArray(n)&&n.every(function(e){return"string"==typeof e})?n:JSON.parse(n),!(e.optional||Array.isArray(r)&&0!==r.length)}catch(e){var o=e instanceof Error?e.message:String(e);return Pr("Checkbox input incorrectly formatted: ".concat(o),{variant:"error"}),!0}var a=!1;if("auth_info"===e.type){var i,l;if(e.optional||!n||null===(i=e.options)||void 0===i||!i.components||(null===(l=e.options)||void 0===l?void 0:l.components.length)<1)return!1;try{var s,c,u=JSON.parse(n),d=u.auth_type||(null===(s=e.options.components.find(function(e){return"auth_type"===e.name}))||void 0===s?void 0:s.default);a=("auth"===(null===(c=e.options)||void 0===c?void 0:c.mode)?CR(d,new Map,[],!1,!1):PR(d,new Map,[],!1,!1)).filter(function(e){return!e.optional}).map(function(e){return e.name}).some(function(e){return!u[e]})}catch(e){var p=e instanceof Error?e.message:String(e);return Pr("Auth info inputs incorrectly formatted: ".concat(p),{variant:"error"}),!0}}var f=!1;if("oauth_credentials"===e.type)try{var m=JSON.parse(n||'{ "access_token": null }'),h=!m.access_token,g=!(!m.refresh_token||m.token_url&&m.client_id);f=!e.optional&&h||g}catch(e){var v=e instanceof Error?e.message:String(e);return Pr("OAuth credentials incorrectly formatted: ".concat(v),{variant:"error"}),!0}return!e.optional&&!n||f||a})}(a,h)),function(){O(!1)}},[h]),(0,i.useEffect)(function(){switch(M(!1),C(function(e,t,n){var r=t.map(function(e){var t,r=null===(t=e.description)||void 0===t?void 0:t.replaceAll("\n"," ").trim();if("oauth_credentials"===e.type)return TR(TR({},e),{},{description:r,value:JSON.parse(n.get(e.name)||'{ "access_token": "" }')});if("auth_info"===e.type)return TR(TR({},e),{},{default:JSON.parse(e.default||"{}"),description:r,value:JSON.parse(n.get(e.name)||"{}")});if("radio"===e.type){var o,a,i,l=null!==(o=e.options)&&void 0!==o&&o.list_options&&(null===(a=e.options)||void 0===a||null===(a=a.list_options)||void 0===a?void 0:a.length)>0?null===(i=e.options)||void 0===i||null===(i=i.list_options[0])||void 0===i?void 0:i.value:"";return TR(TR({},e),{},{description:r,value:n.get(e.name)||e.default||l})}return TR(TR({},e),{},{description:r,value:n.get(e.name)||""})});return"JSON"===e?JSON.stringify(r,null,2):wR.dump(r,{lineWidth:-1})}(y,a,h)),y){case"JSON":k("json");break;case"YAML":k("yml");break;default:k("txt")}},[y,t]);var L=function(e){C(e);var t=function(e,t,n){var r;try{return(r="JSON"===e?JSON.parse(t):wR.load(t)).forEach(function(e){"oauth_credentials"!==e.type&&"auth_info"!==e.type||(e.value=JSON.stringify(e.value))}),n(!1),r}catch(e){return void n(!0)}}(y,e,M);void 0!==t&&void 0!==t.keys&&t.forEach(function(e){e.locked||void 0===e.value||h.set(e.name,e.value||"")}),j(new Map(h),!0)},j=function(e,t){g(e),f(p||!1!==t)},$=function(){var e=[];h.forEach(function(t,n){e.push({name:n,value:t,type:"text"})}),s(o,(null==r?void 0:r.id)||"",e),N()},N=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]||n()};return i.createElement(HE,{open:t,fullWidth:!0,maxWidth:"sm",onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;t&&"Enter"===e.key&&n&&!P&&!R&&$()},onClose:function(){return N(p)}},i.createElement(GE,{component:"div"},i.createElement(nu,{display:"flex",justifyContent:"space-between"},i.createElement(Su,{component:"h1",variant:"h6"},(null==r?void 0:r.title)||"Test",u?" (Read Only)":""),i.createElement(dm,{title:"Cancel".concat(u?"":" - Inputs will be lost")},i.createElement(Kd,{onClick:function(){return N()},"aria-label":"cancel",className:c.cancelButton},i.createElement(pO,null))))),i.createElement(JE,null,i.createElement("main",null,i.createElement(OI,{component:"div",sx:{wordBreak:"break-word"}},i.createElement(lx,{remarkPlugins:[ek]},A)),"Field"===y?i.createElement(tA,{inputs:a,inputsMap:h,setInputsMap:j}):i.createElement(nu,null,i.createElement(wO,{onUpload:function(e){L(e),C(e)}}),i.createElement(yO,{fileName:(null==r?void 0:r.title)||"Untitled Inferno File",fileType:w}),i.createElement(JP,{id:"".concat(w,"-serial-input"),minRows:4,value:E,error:R,label:R?"ERROR: INVALID ".concat(y):y,disabled:u,slotProps:{input:{classes:{input:c.serialInput},endAdornment:i.createElement(nu,{sx:{alignSelf:"flex-start"}},i.createElement(gO,{copyText:E}))}},color:"secondary",fullWidth:!0,multiline:!0,"data-testid":"serial-input",onChange:function(e){return L(e.target.value)}})))),i.createElement(RC,{className:c.dialogActions},i.createElement(Lu,{elevation:0,className:c.toggleButtonGroupContainer},i.createElement(lO,{exclusive:!0,role:"group",color:"secondary",size:"small",value:y,onChange:function(e,t){null!==t&&b(t)},className:c.toggleButtonGroup},["Field","JSON","YAML"].map(function(e){return i.createElement(dO,{value:e,disabled:R,key:"".concat(e.toLowerCase(),"-button"),"data-testid":"".concat(e.toLowerCase(),"-button"),className:c.toggleButton},e)}))),i.createElement(nu,null,i.createElement(Bd,{color:"secondary","data-testid":"cancel-button",onClick:function(){return N()},sx:{mr:1,fontWeight:"bold"}},"Cancel"),i.createElement(Bd,{color:"secondary",variant:"contained",disableElevation:!0,onClick:$,disabled:P||R||u,sx:{fontWeight:"bold"}},"Submit"))))};function rA(e){return e.substring(2).toLowerCase()}function oA(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,l=i.useRef(!1),s=i.useRef(null),c=i.useRef(!1),u=i.useRef(!1);i.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=zu(ap(t),s),p=Wu(e=>{const t=u.current;u.current=!1;const r=wp(s.current);if(!c.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(l.current)return void(l.current=!1);let a;a=e.composedPath?e.composedPath().includes(s.current):!r.documentElement.contains(e.target)||s.current.contains(e.target),a||!n&&t||o(e)}),f=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},m={ref:d};return!1!==a&&(m[a]=f(a)),i.useEffect(()=>{if(!1!==a){const e=rA(a),t=wp(s.current),n=()=>{l.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}},[p,a]),!1!==r&&(m[r]=f(r)),i.useEffect(()=>{if(!1!==r){const e=rA(r),t=wp(s.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}},[p,r]),i.cloneElement(t,m)}function aA(e){return fc("MuiSnackbarContent",e)}Jc("MuiSnackbarContent",["root","message","action"]);const iA=qc(Lu,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(mu(({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=Hi(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),lA=qc("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),sA=qc("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),cA=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiSnackbarContent"}),{action:r,className:o,message:a,role:i="alert",...l}=n,s=n,c=(e=>{const{classes:t}=e;return mc({root:["root"],action:["action"],message:["message"]},aA,t)})(s);return(0,Dc.jsxs)(iA,{role:i,square:!0,elevation:6,className:cc(c.root,o),ownerState:s,ref:t,...l,children:[(0,Dc.jsx)(lA,{className:c.message,ownerState:s,children:a}),r?(0,Dc.jsx)(sA,{className:c.action,ownerState:s,children:r}):null]})}),uA=cA;function dA(e){return fc("MuiSnackbar",e)}Jc("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const pA=qc("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Wc(n.anchorOrigin.vertical)}${Wc(n.anchorOrigin.horizontal)}`]]}})(mu(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),fA=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiSnackbar"}),r=gs(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:s}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:f,disableWindowBlurListener:m=!1,message:h,onBlur:g,onClose:v,onFocus:y,onMouseEnter:b,onMouseLeave:x,open:w,resumeHideDuration:k,slots:S={},slotProps:E={},TransitionComponent:C,transitionDuration:I=o,TransitionProps:{onEnter:P,onExited:O,...T}={},...R}=n,M={...n,anchorOrigin:{vertical:l,horizontal:s},autoHideDuration:c,disableWindowBlurListener:m,TransitionComponent:C,transitionDuration:I},A=(e=>{const{classes:t,anchorOrigin:n}=e;return mc({root:["root",`anchorOrigin${Wc(n.vertical)}${Wc(n.horizontal)}`]},dA,t)})(M),{getRootProps:L,onClickAway:j}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,l=ad();i.useEffect(()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"===e.key&&r?.(e,"escapeKeyDown")}},[o,r]);const s=Wu((e,t)=>{r?.(e,t)}),c=Wu(e=>{r&&null!=e&&l.start(e,()=>{s(null,"timeout")})});i.useEffect(()=>(o&&c(t),l.clear),[o,t,c,l]);const u=l.clear,d=i.useCallback(()=>{null!=t&&c(null!=a?a:.5*t)},[t,a,c]),p=e=>t=>{const n=e.onFocus;n?.(t),u()},f=e=>t=>{const n=e.onMouseEnter;n?.(t),u()},m=e=>t=>{const n=e.onMouseLeave;n?.(t),d()};return i.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,o,d,u]),{getRootProps:(t={})=>{const n={...$f(e),...$f(t)};return{role:"presentation",...t,...n,onBlur:(r=n,e=>{const t=r.onBlur;t?.(e),d()}),onFocus:p(n),onMouseEnter:f(n),onMouseLeave:m(n)};var r},onClickAway:e=>{r?.(e,"clickaway")}}}({...M}),[$,N]=i.useState(!0),_={slots:{transition:C,...S},slotProps:{content:f,clickAwayListener:p,transition:T,...E}},[D,z]=Qf("root",{ref:t,className:[A.root,d],elementType:pA,getSlotProps:L,externalForwardedProps:{..._,...R},ownerState:M}),[F,{ownerState:B,...W}]=Qf("clickAwayListener",{elementType:oA,externalForwardedProps:_,getSlotProps:e=>({onClickAway:(...t)=>{e.onClickAway?.(...t),j(...t)}}),ownerState:M}),[H,V]=Qf("content",{elementType:uA,shouldForwardComponentProp:!0,externalForwardedProps:_,additionalProps:{message:h,action:a},ownerState:M}),[q,U]=Qf("transition",{elementType:xp,externalForwardedProps:_,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),((e,t)=>{N(!1),P&&P(e,t)})(...t)},onExited:(...t)=>{e.onExited?.(...t),(e=>{N(!0),O&&O(e)})(...t)}}),additionalProps:{appear:!0,in:w,timeout:I,direction:"top"===l?"down":"up"},ownerState:M});return!w&&$?null:(0,Dc.jsx)(F,{...W,...S.clickAwayListener&&{ownerState:B},children:(0,Dc.jsx)(D,{...z,children:(0,Dc.jsx)(q,{...U,children:u||(0,Dc.jsx)(H,{...V})})})})}),mA=fA;function hA(e){return fc("MuiLinearProgress",e)}Jc("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const gA=su`
134
134
  0% {
135
135
  left: -35%;
136
136
  right: 100%;
@@ -145,9 +145,9 @@
145
145
  left: 100%;
146
146
  right: -90%;
147
147
  }
148
- `,hA="string"!=typeof mA?lu`
149
- animation: ${mA} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
150
- `:null,gA=su`
148
+ `,vA="string"!=typeof gA?lu`
149
+ animation: ${gA} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
150
+ `:null,yA=su`
151
151
  0% {
152
152
  left: -200%;
153
153
  right: 100%;
@@ -162,9 +162,9 @@
162
162
  left: 107%;
163
163
  right: -8%;
164
164
  }
165
- `,vA="string"!=typeof gA?lu`
166
- animation: ${gA} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
167
- `:null,yA=su`
165
+ `,bA="string"!=typeof yA?lu`
166
+ animation: ${yA} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
167
+ `:null,xA=su`
168
168
  0% {
169
169
  opacity: 1;
170
170
  background-position: 0 -23px;
@@ -179,6 +179,6 @@
179
179
  opacity: 1;
180
180
  background-position: -200px -23px;
181
181
  }
182
- `,bA="string"!=typeof yA?lu`
183
- animation: ${yA} 3s infinite linear;
184
- `:null,xA=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?Bi(e.palette[t].main,.62):zi(e.palette[t].main,.5),wA=qc("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Wc(n.color)}`],t[n.variant]]}})(mu(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{backgroundColor:xA(e,t)}})),{props:({ownerState:e})=>"inherit"===e.color&&"buffer"!==e.variant,style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),kA=qc("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Wc(n.color)}`]]}})(mu(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(hu()).map(([t])=>{const n=xA(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),bA||{animation:`${yA} 3s infinite linear`}),SA=qc("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${Wc(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})(mu(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:"transform .4s linear"}},{props:{variant:"buffer"},style:{zIndex:1,transition:"transform .4s linear"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:hA||{animation:`${mA} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),EA=qc("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${Wc(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})(mu(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"!==e.color,style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"===e.color,style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:xA(e,t),transition:"transform .4s linear"}})),{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:vA||{animation:`${gA} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),CA=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:a,valueBuffer:i,variant:l="indeterminate",...s}=n,c={...n,color:o,variant:l},u=(e=>{const{classes:t,variant:n,color:r}=e;return mc({root:["root",`color${Wc(r)}`,n],dashed:["dashed",`dashedColor${Wc(r)}`],bar1:["bar","bar1",`barColor${Wc(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","bar2","buffer"!==n&&`barColor${Wc(r)}`,"buffer"===n&&`color${Wc(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]},fA,t)})(c),d=rp(),p={},f={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==a){p["aria-valuenow"]=Math.round(a),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=a-100;d&&(e=-e),f.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==i){let e=(i||0)-100;d&&(e=-e),f.bar2.transform=`translateX(${e}%)`}return(0,Dc.jsxs)(wA,{className:cc(u.root,r),ownerState:c,role:"progressbar",...p,ref:t,...s,children:["buffer"===l?(0,Dc.jsx)(kA,{className:u.dashed,ownerState:c}):null,(0,Dc.jsx)(SA,{className:u.bar1,ownerState:c,style:f.bar1}),"determinate"===l?null:(0,Dc.jsx)(EA,{className:u.bar2,ownerState:c,style:f.bar2})]})}),IA=CA,PA=Jd((0,Dc.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),OA=Jd((0,Dc.jsx)("path",{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2m0 16H7V3h14z"}),"FilterNone"),TA=Vs()(function(e){return{cancelButton:{color:e.palette.common.blueLight,"&:disabled":{color:e.palette.common.gray}},linearProgress:{height:8,backgroundColor:e.palette.common.grayDark,borderRadius:2}}}),RA=function(e){var t=e.showProgressBar,n=e.setShowProgressBar,r=e.cancelled,o=e.cancelTestRun,a=e.duration,l=e.testRun,s=e.resultsMap,c=TA().classes,u=rc(function(e){return e.footerHeight}),d=qC(function(e){return e.readOnly}),p="cancelling"!==(null==l?void 0:l.status)&&"done"!==(null==l?void 0:l.status),f=function(e){switch(e){case"running":return i.createElement(dm,{title:"Running"},i.createElement(Td,{size:24}));case"cancelling":return i.createElement(dm,{title:"Cancelling"},i.createElement(Td,{size:24}));case"waiting":return i.createElement(dm,{title:"Waiting"},i.createElement(_C,{color:"primary"}));case"queued":return i.createElement(dm,{title:"Queued"},i.createElement(OA,{color:"primary"}));case"done":return i.createElement(dm,{title:"Done"},i.createElement(PA,{color:"primary"}));default:return null}}(null==l?void 0:l.status),m=(null==l?void 0:l.test_count)||0,h=function(e,t){var n=0;return e.forEach(function(e){e.test_id&&e.test_run_id===(null==t?void 0:t.id)&&n++}),n}(s,l);return i.createElement(pA,{open:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:a,onClose:function(){(h===m||"done"===(null==l?void 0:l.status)||r)&&n(!1)},slotProps:{clickAwayListener:function(){return{mouseEvent:!1}}},style:{marginBottom:"".concat(u,"px"),zIndex:Mh.zIndex.snackbar},"data-testid":"progress-bar"},i.createElement(nu,{display:"flex",alignItems:"center",bgcolor:"text.secondary",p:"0.5em",borderRadius:"0.5em",role:"aside"},i.createElement(nu,{margin:"2px 0 0 4px"},f),i.createElement(nu,{minWidth:200,mx:1,color:"background.paper"},"cancelling"===(null==l?void 0:l.status)?i.createElement(Su,{variant:"body1"},"Cancelling Test Run..."):i.createElement(IA,{variant:"determinate",value:"done"===(null==l?void 0:l.status)?100:100*h/m||0,className:c.linearProgress})),i.createElement(nu,{color:"background.paper"},i.createElement(Su,{variant:"body1"},"done"===(null==l?void 0:l.status)?m:h,"/",m)),i.createElement(dm,{title:"Cancel Test Run"},i.createElement(Kd,{"aria-label":"cancel",disabled:!p||d,color:"primary",onClick:o,className:c.cancelButton},i.createElement(LC,null)))))};function MA({props:e,name:t}){return gc({props:e,name:t,defaultTheme:ms,themeId:hs})}function AA(e){return MA}function LA(e){return fc("MuiSimpleTreeView",e)}Jc("MuiSimpleTreeView",["root"]);class jA{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,n={}){let r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const r=Array.from(n.highPriority.keys()),o=Array.from(n.regular.keys());for(let e=r.length-1;e>=0;e-=1){const o=r[e];n.highPriority.has(o)&&o.apply(this,t)}for(let e=0;e<o.length;e+=1){const r=o[e];n.regular.has(r)&&r.apply(this,t)}}once(e,t){const n=this;this.on(e,function r(...o){n.removeListener(e,r),t.apply(n,o)})}}const $A=()=>{const[e]=i.useState(()=>new jA),t=i.useCallback((...t)=>{const[n,r,o={}]=t;o.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(o)&&o.isPropagationStopped()||e.emit(n,r,o)},[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:i.useCallback((t,n)=>(e.on(t,n),()=>{e.removeListener(t,n)}),[e])}}};$A.params={};const NA=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};NA.params={};let _A=0;const DA=({id:e,treeId:t="",itemId:n})=>null!=e?e:`${t}-${n}`,zA=({params:e,state:t,setState:n})=>{i.useEffect(()=>{n(t=>t.id.treeId===e.id&&void 0!==t.id.treeId?t:vc({},t,{id:vc({},t.id,{treeId:e.id??(_A+=1,`mui-tree-view-${_A}`)})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};zA.params={id:!0},zA.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const FA=[$A,NA,zA],BA=["slots","slotProps","apiRef","experimentalFeatures"],WA=i.createContext(null);function HA(e){const{value:t,children:n}=e;return(0,Dc.jsx)(WA.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const VA=(e,t,n)=>{e.$$publishEvent(t,n)},qA="__TREE_VIEW_ROOT_PARENT_ID__",UA=e=>{const t={};return e.forEach((e,n)=>{t[e]=n}),t},KA=i.createContext(()=>-1),GA=["children"],YA=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const o={},a={},i={[qA]:[]},l=(e,s,c)=>{const u=r?r(e):e.id;if(null==u)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(e)].join("\n"));if(null!=o[u])throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${u}"`].join("\n"));const d=n?n(e):e.label;if(null==d)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(e)].join("\n"));o[u]={id:u,label:d,parentId:c,idAttribute:void 0,expandable:!!e.children?.length,disabled:!!t&&t(e),depth:s},a[u]=e;const p=c??qA;i[p]||(i[p]=[]),i[p].push(u),e.children?.forEach(e=>l(e,s+1,u))};e.forEach(e=>l(e,0,null));const s={};return Object.keys(i).forEach(e=>{s[e]=UA(i[e])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:i,itemChildrenIndexes:s}},XA=({instance:e,params:t,state:n,setState:r,experimentalFeatures:o})=>{const a=i.useCallback(e=>n.items.itemMetaMap[e],[n.items.itemMetaMap]),l=i.useCallback(e=>n.items.itemMap[e],[n.items.itemMap]),s=i.useCallback(()=>{const e=t=>{const r=Ku(n.items.itemMap[t],GA),o=n.items.itemOrderedChildrenIds[t];return o&&(r.children=o.map(e)),r};return n.items.itemOrderedChildrenIds[qA].map(e)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),c=i.useCallback(t=>{if(null==t)return!1;let n=e.getItemMeta(t);if(!n)return!1;if(n.disabled)return!0;for(;null!=n.parentId;)if(n=e.getItemMeta(n.parentId),n.disabled)return!0;return!1},[e]),u=i.useCallback(t=>{const r=e.getItemMeta(t).parentId??qA;return n.items.itemChildrenIndexes[r][t]},[e,n.items.itemChildrenIndexes]),d=i.useCallback(e=>n.items.itemOrderedChildrenIds[e??qA]??[],[n.items.itemOrderedChildrenIds]),p=t=>{const r=e.getItemMeta(t);return null==r?null:document.getElementById(DA({treeId:n.id.treeId,itemId:t,id:r.idAttribute}))},f=i.useRef(!1),m=i.useCallback(()=>{f.current=!0},[]),h=i.useCallback(()=>f.current,[]);return i.useEffect(()=>{e.areItemUpdatesPrevented()||r(n=>{const r=YA({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(n.items.itemMetaMap).forEach(t=>{r.itemMetaMap[t.id]||VA(e,"removeItem",{id:t.id})}),vc({},n,{items:r})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":"number"==typeof t.itemChildrenIndentation?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:l,getItemDOMElement:p,getItemTree:s,getItemOrderedChildrenIds:d},instance:{getItemMeta:a,getItem:l,getItemTree:s,getItemsToRender:()=>{const e=t=>{const r=n.items.itemMetaMap[t];return{label:r.label,itemId:r.id,id:r.idAttribute,children:n.items.itemOrderedChildrenIds[t]?.map(e)}};return n.items.itemOrderedChildrenIds[qA].map(e)},getItemIndex:u,getItemDOMElement:p,getItemOrderedChildrenIds:d,isItemDisabled:c,isItemNavigable:n=>!!t.disabledItemsFocusable||!e.isItemDisabled(n),preventItemUpdates:m,areItemUpdatesPrevented:h},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};XA.getInitialState=e=>({items:YA({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})}),XA.getDefaultizedParams=({params:e})=>vc({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"}),XA.wrapRoot=({children:e,instance:t})=>(0,Dc.jsx)(KA.Provider,{value:e=>t.getItemMeta(e)?.depth??0,children:e}),XA.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const QA=({instance:e,params:t,models:n})=>{const r=i.useMemo(()=>{const e=new Map;return n.expandedItems.value.forEach(t=>{e.set(t,!0)}),e},[n.expandedItems.value]),o=(e,r)=>{t.onExpandedItemsChange?.(e,r),n.expandedItems.setControlledValue(r)},a=i.useCallback(e=>r.has(e),[r]),l=i.useCallback(t=>!!e.getItemMeta(t)?.expandable,[e]),s=Wu((t,n)=>{const r=e.isItemExpanded(n);e.setItemExpansion(t,n,!r)}),c=Wu((r,a,i)=>{if(e.isItemExpanded(a)===i)return;let l;l=i?[a].concat(n.expandedItems.value):n.expandedItems.value.filter(e=>e!==a),t.onItemExpansionToggle&&t.onItemExpansionToggle(r,a,i),o(r,l)});return{publicAPI:{setItemExpansion:c},instance:{isItemExpanded:a,isItemExpandable:l,setItemExpansion:c,toggleItemExpansion:s,expandAllSiblings:(r,a)=>{const i=e.getItemMeta(a),l=e.getItemOrderedChildrenIds(i.parentId).filter(t=>e.isItemExpandable(t)&&!e.isItemExpanded(t)),s=n.expandedItems.value.concat(l);l.length>0&&(t.onItemExpansionToggle&&l.forEach(e=>{t.onItemExpansionToggle(r,e,!0)}),o(r,s))}},contextValue:{expansion:{expansionTrigger:i.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable])}}}};QA.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const JA=[];QA.getDefaultizedParams=({params:e})=>vc({},e,{defaultExpandedItems:e.defaultExpandedItems??JA}),QA.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const ZA=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(-1!==n)return t[n]},eL=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),o=e.getItemIndex(t);if(0===o)return n.parentId;let a=o-1;for(;!e.isItemNavigable(r[a])&&a>=0;)a-=1;if(-1===a)return null==n.parentId?null:eL(e,n.parentId);let i=r[a],l=ZA(e,e.getItemOrderedChildrenIds(i));for(;e.isItemExpanded(i)&&null!=l;)i=l,l=e.getItemOrderedChildrenIds(i).find(e.isItemNavigable);return i},tL=(e,t)=>{if(e.isItemExpanded(t)){const n=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(null!=n)return n}let n=e.getItemMeta(t);for(;null!=n;){const t=e.getItemOrderedChildrenIds(n.parentId),r=e.getItemIndex(n.id);if(r<t.length-1){let n=r+1;for(;!e.isItemNavigable(t[n])&&n<t.length-1;)n+=1;if(e.isItemNavigable(t[n]))return t[n]}n=e.getItemMeta(n.parentId)}return null},nL=e=>{let t=null;for(;null==t||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=ZA(e,n);if(null==r)return t;t=r}return t},rL=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),oL=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),o=e.getItemMeta(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const a=[r.id],i=[o.id];let l=r.parentId,s=o.parentId,c=-1!==i.indexOf(l),u=-1!==a.indexOf(s),d=!0,p=!0;for(;!u&&!c;)d&&(a.push(l),c=-1!==i.indexOf(l),d=null!==l,!c&&d&&(l=e.getItemMeta(l).parentId)),p&&!c&&(i.push(s),u=-1!==a.indexOf(s),p=null!==s,!u&&p&&(s=e.getItemMeta(s).parentId));const f=c?l:s,m=e.getItemOrderedChildrenIds(f),h=a[a.indexOf(f)-1],g=i[i.indexOf(f)-1];return m.indexOf(h)<m.indexOf(g)?[t,n]:[n,t]},aL=(e,t)=>t!==e.closest('*[role="treeitem"]'),iL=e=>Array.isArray(e)?e:null!=e?[e]:[],lL=e=>{const t={};return e.forEach(e=>{t[e]=!0}),t},sL=({instance:e,params:t,models:n})=>{const r=i.useRef(null),o=i.useRef({}),a=i.useMemo(()=>{const e=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(t=>{e.set(t,!0)}):null!=n.selectedItems.value&&e.set(n.selectedItems.value,!0),e},[n.selectedItems.value]),l=(r,o)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const a=o.filter(t=>!e.isItemSelected(t)),i=n.selectedItems.value.filter(e=>!o.includes(e));a.forEach(e=>{t.onItemSelectionToggle(r,e,!0)}),i.forEach(e=>{t.onItemSelectionToggle(r,e,!1)})}else o!==n.selectedItems.value&&(null!=n.selectedItems.value&&t.onItemSelectionToggle(r,n.selectedItems.value,!1),null!=o&&t.onItemSelectionToggle(r,o,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(r,o),n.selectedItems.setControlledValue(o)},s=({event:a,itemId:i,keepExistingSelection:s=!1,shouldBeSelected:c})=>{if(t.disableSelection)return;let u;if(s){const t=iL(n.selectedItems.value),r=e.isItemSelected(i);u=!r||!1!==c&&null!=c?r||!0!==c&&null!=c?t:[i].concat(t):t.filter(e=>e!==i)}else u=!1===c||null==c&&e.isItemSelected(i)?t.multiSelect?[]:null:t.multiSelect?[i]:i;l(a,u),r.current=i,o.current={}},c=(r,[a,i])=>{if(t.disableSelection||!t.multiSelect)return;let s=iL(n.selectedItems.value).slice();Object.keys(o.current).length>0&&(s=s.filter(e=>!o.current[e]));const c=lL(s),u=((e,t,n)=>{const r=t=>{if(e.isItemExpandable(t)&&e.isItemExpanded(t))return e.getItemOrderedChildrenIds(t)[0];let n=e.getItemMeta(t);for(;null!=n;){const t=e.getItemOrderedChildrenIds(n.parentId),r=e.getItemIndex(n.id);if(r<t.length-1)return t[r+1];n=e.getItemMeta(n.parentId)}throw new Error("Invalid range")},[o,a]=oL(e,t,n),i=[o];let l=o;for(;l!==a;)l=r(l),e.isItemDisabled(l)||i.push(l);return i})(e,a,i),d=u.filter(e=>!c[e]);s=s.concat(d),l(r,s),o.current=lL(u)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:s},instance:{isItemSelected:e=>a.has(e),selectItem:s,selectAllNavigableItems:n=>{if(t.disableSelection||!t.multiSelect)return;const r=(e=>{let t=rL(e);const n=[];for(;null!=t;)n.push(t),t=tL(e,t);return n})(e);l(n,r),o.current=lL(r)},expandSelectionRange:(t,n)=>{if(null!=r.current){const[o,a]=oL(e,n,r.current);c(t,[o,a])}},selectRangeFromStartToItem:(t,n)=>{c(t,[rL(e),n])},selectRangeFromItemToEnd:(t,n)=>{c(t,[n,nL(e)])},selectItemFromArrowNavigation:(e,r,a)=>{if(t.disableSelection||!t.multiSelect)return;let i=iL(n.selectedItems.value).slice();0===Object.keys(o.current).length?(i.push(a),o.current={[r]:!0,[a]:!0}):(o.current[r]||(o.current={}),o.current[a]?(i=i.filter(e=>e!==r),delete o.current[r]):(i.push(a),o.current[a]=!0)),l(e,i)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};sL.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const cL=[];sL.getDefaultizedParams=({params:e})=>vc({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?cL:null)}),sL.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};class uL{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const r=setTimeout(()=>{"function"==typeof t&&t(),this.timeouts.delete(n.cleanupToken)},this.cleanupTimeout);this.timeouts.set(n.cleanupToken,r)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach((e,t)=>{this.unregister({cleanupToken:t})}),this.timeouts=void 0)}}class dL{constructor(){this.registry=new FinalizationRegistry(e=>{"function"==typeof e&&e()})}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}class pL{}const fL=function(e){let t=0;return function(n,r,o){null===e.registry&&(e.registry="undefined"!=typeof FinalizationRegistry?new dL:new uL);const[a]=i.useState(new pL),l=i.useRef(null),s=i.useRef(void 0);s.current=o;const c=i.useRef(null);if(!l.current&&s.current){const o=(e,t)=>{t.defaultMuiPrevented||s.current?.(e,t)};l.current=n.$$subscribeEvent(r,o),t+=1,c.current={cleanupToken:t},e.registry.register(a,()=>{l.current?.(),l.current=null,c.current=null},c.current)}else!s.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));i.useEffect(()=>{if(!l.current&&s.current){const e=(e,t)=>{t.defaultMuiPrevented||s.current?.(e,t)};l.current=n.$$subscribeEvent(r,e)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{l.current?.(),l.current=null}},[n,r])}}({registry:null}),mL=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?mL(t.shadowRoot):t:null},hL=({instance:e,params:t,state:n,setState:r,models:o,rootRef:a})=>{const l=((e,t)=>{let n=iL(t).find(t=>{if(!e.isItemNavigable(t))return!1;const n=e.getItemMeta(t);return n&&(null==n.parentId||e.isItemExpanded(n.parentId))});return null==n&&(n=rL(e)),n})(e,o.selectedItems.value),s=Wu(e=>{const t="function"==typeof e?e(n.focusedItemId):e;n.focusedItemId!==t&&r(e=>vc({},e,{focusedItemId:t}))}),c=i.useCallback(()=>!!a.current&&a.current.contains(mL(wp(a.current))),[a]),u=i.useCallback(e=>n.focusedItemId===e&&c(),[n.focusedItemId,c]),d=(n,r)=>{const o=e.getItemDOMElement(r);o&&o.focus(),s(r),t.onItemFocus&&t.onItemFocus(n,r)},p=Wu((t,n)=>{(t=>{const n=e.getItemMeta(t);return n&&(null==n.parentId||e.isItemExpanded(n.parentId))})(n)&&d(t,n)}),f=Wu(()=>{if(null!=n.focusedItemId){if(e.getItemMeta(n.focusedItemId)){const t=e.getItemDOMElement(n.focusedItemId);t&&t.blur()}s(null)}});fL(e,"removeItem",({id:e})=>{n.focusedItemId===e&&d(null,l)});const m=e=>t=>{e.onFocus?.(t),t.defaultMuiPrevented||t.target===t.currentTarget&&d(t,l)};return{getRootProps:e=>({onFocus:m(e)}),publicAPI:{focusItem:p},instance:{isItemFocused:u,canItemBeTabbed:e=>e===l,focusItem:p,removeFocusedItem:f}}};hL.getInitialState=()=>({focusedItemId:null}),hL.params={onItemFocus:!0};const gL=i.createContext(),vL=(e,t)=>e.getAvailablePlugins().has(t),yL=()=>{const e=i.useContext(WA);if(null==e)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join("\n"));return e},bL=({instance:e,state:t,setState:n,params:r})=>{const o=i.useRef(t.editedItemId),a=Boolean(r.isItemEditable),l=(e,t)=>{if(!t)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",e].join("\n"));n(n=>{const r=n.items.itemMetaMap[e];return r.label!==t?vc({},n,{items:vc({},n.items,{itemMetaMap:vc({},n.items.itemMetaMap,{[e]:vc({},r,{label:t})})})}):n}),r.onItemLabelChange&&r.onItemLabelChange(e,t)};return{instance:{setEditedItemId:e=>{n(t=>vc({},t,{editedItemId:e})),o.current=e},isItemBeingEdited:e=>e===t.editedItemId,updateItemLabel:l,isItemEditable:t=>{if(null==t||!a)return!1;const n=e.getItem(t);return!!n&&("function"==typeof r.isItemEditable?r.isItemEditable(n):Boolean(r.isItemEditable))},isTreeViewEditable:a,isItemBeingEditedRef:e=>o.current===e},publicAPI:{updateItemLabel:l}}};bL.itemPlugin=({props:e})=>{const{instance:t}=yL(),{label:n,itemId:r}=e,[o,a]=i.useState(n),l=t.isItemBeingEdited(r);return i.useEffect(()=>{l||a(n)},[l,n]),{propsEnhancers:{labelInput:({externalEventHandlers:e,interactions:n})=>t.isItemEditable(r)?{value:o??"","data-element":"labelInput",onChange:t=>{e.onChange?.(t),a(t.target.value)},onKeyDown:t=>{if(e.onKeyDown?.(t),t.defaultMuiPrevented)return;const r=t.target;"Enter"===t.key&&r.value?n.handleSaveItemLabel(t,r.value):"Escape"===t.key&&n.handleCancelItemLabelEditing(t)},onBlur:t=>{e.onBlur?.(t),t.defaultMuiPrevented||t.target.value&&n.handleSaveItemLabel(t,t.target.value)},autoFocus:!0,type:"text"}:{}}}},bL.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return vc({},e,{isItemEditable:!!n&&(e.isItemEditable??!1)})},bL.getInitialState=()=>({editedItemId:null}),bL.params={onItemLabelChange:!0,isItemEditable:!0};const xL=({instance:e,params:t,state:n})=>{const r=i.useContext(gL)??!1,o=i.useRef({}),a=Wu(e=>{o.current=e(o.current)});i.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const t={};Object.values(n.items.itemMetaMap).forEach(e=>{t[e.id]=e.label.substring(0,1).toLowerCase()}),o.current=t},[n.items.itemMetaMap,t.getItemId,e]);const l=n=>!t.disableSelection&&!e.isItemDisabled(n),s=t=>!e.isItemDisabled(t)&&e.isItemExpandable(t);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(n,a)=>{if(n.defaultMuiPrevented)return;if(n.altKey||aL(n.target,n.currentTarget))return;const i=n.ctrlKey||n.metaKey,c=n.key;switch(!0){case" "===c&&l(a):n.preventDefault(),t.multiSelect&&n.shiftKey?e.expandSelectionRange(n,a):e.selectItem({event:n,itemId:a,keepExistingSelection:t.multiSelect,shouldBeSelected:!t.multiSelect||void 0});break;case"Enter"===c:vL(e,bL)&&e.isItemEditable(a)&&!e.isItemBeingEdited(a)?e.setEditedItemId(a):s(a)?(e.toggleItemExpansion(n,a),n.preventDefault()):l(a)&&(t.multiSelect?(n.preventDefault(),e.selectItem({event:n,itemId:a,keepExistingSelection:!0})):e.isItemSelected(a)||(e.selectItem({event:n,itemId:a}),n.preventDefault()));break;case"ArrowDown"===c:{const r=tL(e,a);r&&(n.preventDefault(),e.focusItem(n,r),t.multiSelect&&n.shiftKey&&l(r)&&e.selectItemFromArrowNavigation(n,a,r));break}case"ArrowUp"===c:{const r=eL(e,a);r&&(n.preventDefault(),e.focusItem(n,r),t.multiSelect&&n.shiftKey&&l(r)&&e.selectItemFromArrowNavigation(n,a,r));break}case"ArrowRight"===c&&!r||"ArrowLeft"===c&&r:if(i)return;if(e.isItemExpanded(a)){const t=tL(e,a);t&&(e.focusItem(n,t),n.preventDefault())}else s(a)&&(e.toggleItemExpansion(n,a),n.preventDefault());break;case"ArrowLeft"===c&&!r||"ArrowRight"===c&&r:if(i)return;if(s(a)&&e.isItemExpanded(a))e.toggleItemExpansion(n,a),n.preventDefault();else{const t=e.getItemMeta(a).parentId;t&&(e.focusItem(n,t),n.preventDefault())}break;case"Home"===c:l(a)&&t.multiSelect&&i&&n.shiftKey?e.selectRangeFromStartToItem(n,a):e.focusItem(n,rL(e)),n.preventDefault();break;case"End"===c:l(a)&&t.multiSelect&&i&&n.shiftKey?e.selectRangeFromItemToEnd(n,a):e.focusItem(n,nL(e)),n.preventDefault();break;case"*"===c:e.expandAllSiblings(n,a),n.preventDefault();break;case"A"===String.fromCharCode(n.keyCode)&&i&&t.multiSelect&&!t.disableSelection:e.selectAllNavigableItems(n),n.preventDefault();break;case!i&&!n.shiftKey&&function(e){return!!e&&1===e.length&&!!e.match(/\S/)}(c):{const t=((t,n)=>{const r=n.toLowerCase(),a=t=>{const n=tL(e,t);return null===n?rL(e):n};let i=null,l=a(t);const s={};for(;null==i&&!s[l];)o.current[l]===r?i=l:(s[l]=!0,l=a(l));return i})(a,c);null!=t&&(e.focusItem(n,t),n.preventDefault());break}}}}}};xL.params={};const wL=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});wL.params={};const kL=i.createContext(null);function SL(e){const{children:t,itemId:n=null}=e,{instance:r,treeId:o,rootRef:a}=yL(),l=i.useRef(new Map);i.useEffect(()=>{if(!a.current)return;let e=null;if(null==n)e=a.current.id;else{const t=r.getItemMeta(n);void 0!==t&&(e=DA({itemId:n,treeId:o,id:t.idAttribute}))}if(null==e)return;const t=r.getItemOrderedChildrenIds(n??null)??[],i=e.replace(/["\\]/g,"\\$&"),s=a.current.querySelectorAll(`${null==n?"":`*[id="${i}"] `}[role="treeitem"]:not(*[id="${i}"] [role="treeitem"] [role="treeitem"])`),c=Array.from(s).map(e=>l.current.get(e.id)),u=c.length!==t.length||c.some((e,n)=>e!==t[n]);u&&r.setJSXItemsOrderedChildrenIds(n??null,c)});const s=i.useMemo(()=>({registerChild:(e,t)=>l.current.set(e,t),unregisterChild:e=>l.current.delete(e),parentId:n}),[n]);return(0,Dc.jsx)(kL.Provider,{value:s,children:t})}const EL=({instance:e,setState:t})=>(e.preventItemUpdates(),{instance:{insertJSXItem:Wu(n=>(t(e=>{if(null!=e.items.itemMetaMap[n.id])throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${n.id}"`].join("\n"));return vc({},e,{items:vc({},e.items,{itemMetaMap:vc({},e.items.itemMetaMap,{[n.id]:n}),itemMap:vc({},e.items.itemMap,{[n.id]:{id:n.id,label:n.label}})})})}),()=>{t(e=>{const t=vc({},e.items.itemMetaMap),r=vc({},e.items.itemMap);return delete t[n.id],delete r[n.id],vc({},e,{items:vc({},e.items,{itemMetaMap:t,itemMap:r})})}),VA(e,"removeItem",{id:n.id})})),setJSXItemsOrderedChildrenIds:(e,n)=>{const r=e??qA;t(e=>vc({},e,{items:vc({},e.items,{itemOrderedChildrenIds:vc({},e.items.itemOrderedChildrenIds,{[r]:n}),itemChildrenIndexes:vc({},e.items.itemChildrenIndexes,{[r]:UA(n)})})}))},mapFirstCharFromJSX:Wu((t,n)=>(e.updateFirstCharMap(e=>(e[t]=n,e)),()=>{e.updateFirstCharMap(e=>{const n=vc({},e);return delete n[t],n})}))}}),CL=e=>Array.isArray(e)?e.length>0&&e.some(CL):Boolean(e);EL.itemPlugin=({props:e,rootRef:t,contentRef:n})=>{const{instance:r,treeId:o}=yL(),{children:a,disabled:l=!1,label:s,itemId:c,id:u}=e,d=i.useContext(kL);if(null==d)throw new Error(["MUI X: Could not find the Tree View Children Item context.","It looks like you rendered your component outside of a SimpleTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join("\n"));const{registerChild:p,unregisterChild:f,parentId:m}=d,h=CL(a),g=i.useRef(null),v=zu(g,n);return Bu(()=>{const e=DA({itemId:c,treeId:o,id:u});return p(e,c),()=>{f(e)}},[p,f,c,u,o]),i.useEffect(()=>r.insertJSXItem({id:c,idAttribute:u,parentId:m,expandable:h,disabled:l}),[r,m,c,h,l,u]),i.useEffect(()=>{if(s)return r.mapFirstCharFromJSX(c,(g.current?.textContent??"").substring(0,1).toLowerCase())},[r,c,s]),{contentRef:v,rootRef:t}},EL.wrapItem=({children:e,itemId:t})=>{const n=i.useContext(KA);return(0,Dc.jsx)(SL,{itemId:t,children:(0,Dc.jsx)(KA.Provider,{value:n+1,children:e})})},EL.wrapRoot=({children:e})=>(0,Dc.jsx)(SL,{children:(0,Dc.jsx)(KA.Provider,{value:0,children:e})}),EL.params={};const IL=[XA,QA,sL,hL,xL,wL,EL],PL=AA(),OL=qc("ul",{name:"MuiSimpleTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),TL=[],RL=i.forwardRef(function(e,t){const n=PL({props:e,name:"MuiSimpleTreeView"}),r=n,{getRootProps:o,contextValue:a}=(({plugins:e,rootRef:t,props:n})=>{const r=[...FA,...e],{pluginParams:o,forwardedProps:a,apiRef:l,experimentalFeatures:s,slots:c,slotProps:u}=(e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:o},plugins:a}=e,i=Ku(e.props,BA);const l={};a.forEach(e=>{Object.assign(l,e.params)});const s={},c={};Object.keys(i).forEach(e=>{const t=i[e];l[e]?s[e]=t:c[e]=t});const u=o??{},d=a.reduce((e,t)=>t.getDefaultizedParams?t.getDefaultizedParams({params:e,experimentalFeatures:u}):e,s);return{apiRef:r,forwardedProps:c,pluginParams:d,slots:t??{},slotProps:n??{},experimentalFeatures:u}})({plugins:r,props:n}),d=((e,t)=>{const n=i.useRef({}),[r,o]=i.useState(()=>{const r={};return e.forEach(e=>{e.models&&Object.entries(e.models).forEach(([e,o])=>{n.current[e]={isControlled:void 0!==t[e],getDefaultValue:o.getDefaultValue},r[e]=o.getDefaultValue(t)})}),r});return Object.fromEntries(Object.entries(n.current).map(([e,n])=>{const a=t[e]??r[e];return[e,{value:a,setControlledValue:t=>{n.isControlled||o(n=>vc({},n,{[e]:t}))}}]}))})(r,o),p=i.useRef({}).current,f=function(e){const t=i.useRef({});return e?(null==e.current&&(e.current={}),e.current):t.current}(l),m=i.useRef(null),h=zu(m,t),g=(({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:t=>{let n=null,r=null;const o=[],a={};e.forEach(e=>{if(!e.itemPlugin)return;const i=e.itemPlugin({props:t,rootRef:n,contentRef:r});i?.rootRef&&(n=i.rootRef),i?.contentRef&&(r=i.contentRef),i?.propsEnhancers&&(o.push(i.propsEnhancers),Object.keys(i.propsEnhancers).forEach(e=>{a[e]=!0}))});const i=Object.fromEntries(Object.keys(a).map(e=>{return[e,(t=e,e=>{const n={};return o.forEach(r=>{const o=r[t];null!=o&&Object.assign(n,o(e))}),n})];var t}));return{contentRef:r,rootRef:n,propsEnhancers:i}},wrapItem:({itemId:n,children:r})=>{let o=r;for(let r=e.length-1;r>=0;r-=1){const a=e[r];a.wrapItem&&(o=a.wrapItem({itemId:n,children:o,instance:t}))}return o},wrapRoot:({children:n})=>{let r=n;for(let n=e.length-1;n>=0;n-=1){const o=e[n];o.wrapRoot&&(r=o.wrapRoot({children:r,instance:t}))}return r},instance:t,rootRef:r,publicAPI:n}))({plugins:r,instance:p,publicAPI:f,rootRef:m}),[v,y]=i.useState(()=>{const e={};return r.forEach(t=>{t.getInitialState&&Object.assign(e,t.getInitialState(o))}),e}),b=[];return r.forEach(e=>{const t=e({instance:p,params:o,slots:c,slotProps:u,experimentalFeatures:s,state:v,setState:y,rootRef:m,models:d,plugins:r});t.getRootProps&&b.push(t.getRootProps),t.publicAPI&&Object.assign(f,t.publicAPI),t.instance&&Object.assign(p,t.instance),t.contextValue&&Object.assign(g,t.contextValue)}),{getRootProps:(e={})=>{const t=vc({role:"tree"},a,e,{ref:h});return b.forEach(n=>{Object.assign(t,n(e))}),t},rootRef:h,contextValue:g,instance:p}})({plugins:IL,rootRef:t,props:vc({},n,{items:TL})}),{slots:l,slotProps:s}=n,c=(e=>{const{classes:t}=e;return mc({root:["root"]},LA,t)})(n),u=l?.root??OL,d=zf({elementType:u,externalSlotProps:s?.root,className:c.root,getSlotProps:o,ownerState:r});return(0,Dc.jsx)(HA,{value:a,children:(0,Dc.jsx)(u,vc({},d))})}),ML=Jd((0,Dc.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),AL=Jd((0,Dc.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),LL=Jd((0,Dc.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),jL=Jd((0,Dc.jsx)("path",{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"}),"Flag"),$L=Jd((0,Dc.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications"),NL=Jd((0,Dc.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),_L=Jd([(0,Dc.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),(0,Dc.jsx)("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber"),DL=Jd([(0,Dc.jsx)("path",{d:"M23 11.99 20.56 9.2l.34-3.69-3.61-.82L15.4 1.5 12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 11.99l2.44 2.79-.34 3.7 3.61.82 1.89 3.2 3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-3.95 1.48-.56.65.08.85.18 1.95-1.9.43-.84.19-.44.74-.99 1.68-1.78-.77-.8-.34-.79.34-1.78.77-.99-1.67-.44-.74-.84-.19-1.9-.43.18-1.96.08-.85-.56-.65L3.67 12l1.29-1.48.56-.65-.09-.86-.18-1.94 1.9-.43.84-.19.44-.74.99-1.68 1.78.77.8.34.79-.34 1.78-.77.99 1.68.44.74.84.19 1.9.43-.18 1.95-.08.85.56.65 1.29 1.47z"},"0"),(0,Dc.jsx)("path",{d:"m10.09 13.75-2.32-2.33-1.48 1.49 3.8 3.81 7.34-7.36-1.48-1.49z"},"1")],"VerifiedOutlined");function zL(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:i}}=yL(),l=t.isItemExpandable(e),s=t.isItemExpanded(e),c=t.isItemFocused(e),u=t.isItemSelected(e),d=t.isItemDisabled(e),p=!!t?.isItemBeingEdited&&t?.isItemBeingEdited(e),f=!!t.isItemEditable&&t.isItemEditable(e),m=()=>{vL(t,bL)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:d,expanded:s,selected:u,focused:c,editable:f,editing:p,disableSelection:a,checkboxSelection:o,handleExpansion:n=>{if(!d){c||t.focusItem(n,e);const o=r&&(n.shiftKey||n.ctrlKey||n.metaKey);!l||o&&t.isItemExpanded(e)||t.toggleItemExpansion(n,e)}},handleSelection:n=>{d||(c||p||t.focusItem(n,e),r&&(n.shiftKey||n.ctrlKey||n.metaKey)?n.shiftKey?t.expandSelectionRange(n,e):t.selectItem({event:n,itemId:e,keepExistingSelection:!0}):t.selectItem({event:n,itemId:e,shouldBeSelected:!0}))},handleCheckboxSelection:n=>{if(a||d)return;const o=n.nativeEvent.shiftKey;r&&o?t.expandSelectionRange(n,e):t.selectItem({event:n,itemId:e,keepExistingSelection:r,shouldBeSelected:n.target.checked})},handleContentClick:n,preventSelection:e=>{(e.shiftKey||e.ctrlKey||e.metaKey||d)&&e.preventDefault()},expansionTrigger:i,toggleItemEditing:m,handleSaveItemLabel:(n,r)=>{vL(t,bL)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,r),m(),t.focusItem(n,e))},handleCancelItemLabelEditing:n=>{vL(t,bL)&&t.isItemBeingEditedRef(e)&&(m(),t.focusItem(n,e))}}}function FL(e){return fc("MuiCollapse",e)}Jc("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const BL=qc("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(mu(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]}))),WL=qc("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),HL=qc("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),VL=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:l="0px",component:s,easing:c,in:u,onEnter:d,onEntered:p,onEntering:f,onExit:m,onExited:h,onExiting:g,orientation:v="vertical",style:y,timeout:b=Ul.standard,TransitionComponent:x=fp,...w}=n,k={...n,orientation:v,collapsedSize:l},S=(e=>{const{orientation:t,classes:n}=e;return mc({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},FL,n)})(k),E=gs(),C=ad(),I=i.useRef(null),P=i.useRef(),O="number"==typeof l?`${l}px`:l,T="horizontal"===v,R=T?"width":"height",M=i.useRef(null),A=Fu(t,M),L=e=>t=>{if(e){const n=M.current;void 0===t?e(n):e(n,t)}},j=()=>I.current?I.current[T?"clientWidth":"clientHeight"]:0,$=L((e,t)=>{I.current&&T&&(I.current.style.position="absolute"),e.style[R]=O,d&&d(e,t)}),N=L((e,t)=>{const n=j();I.current&&T&&(I.current.style.position="");const{duration:r,easing:o}=hp({style:y,timeout:b,easing:c},{mode:"enter"});if("auto"===b){const t=E.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,P.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[R]=`${n}px`,e.style.transitionTimingFunction=o,f&&f(e,t)}),_=L((e,t)=>{e.style[R]="auto",p&&p(e,t)}),D=L(e=>{e.style[R]=`${j()}px`,m&&m(e)}),z=L(h),F=L(e=>{const t=j(),{duration:n,easing:r}=hp({style:y,timeout:b,easing:c},{mode:"exit"});if("auto"===b){const n=E.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,P.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[R]=O,e.style.transitionTimingFunction=r,g&&g(e)});return(0,Dc.jsx)(x,{in:u,onEnter:$,onEntered:_,onEntering:N,onExit:D,onExited:z,onExiting:F,addEndListener:e=>{"auto"===b&&C.start(P.current||0,e),r&&r(M.current,e)},nodeRef:M,timeout:"auto"===b?null:b,...w,children:(e,{ownerState:t,...n})=>(0,Dc.jsx)(BL,{as:s,className:cc(S.root,a,{entered:S.entered,exited:!u&&"0px"===O&&S.hidden}[e]),style:{[T?"minWidth":"minHeight"]:O,...y},ref:A,ownerState:{...k,state:e},...n,children:(0,Dc.jsx)(WL,{ownerState:{...k,state:e},className:S.wrapper,ref:I,children:(0,Dc.jsx)(HL,{ownerState:{...k,state:e},className:S.wrapperInner,children:o})})})})});VL&&(VL.muiSupportAuto=!0);const qL=VL;function UL(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 KL(e){if(i.isValidElement(e)||(0,Br.Hy)(e)||!UL(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=KL(e[n])}),t}function GL(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return UL(e)&&UL(t)&&Object.keys(t).forEach(o=>{i.isValidElement(t[o])||(0,Br.Hy)(t[o])?r[o]=t[o]:UL(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&UL(e[o])?r[o]=GL(e[o],t[o],n):n.clone?r[o]=UL(t[o])?KL(t[o]):t[o]:r[o]=t[o]}),r}function YL(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const XL={borderRadius:4},QL={xs:0,sm:600,md:900,lg:1200,xl:1536},JL={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${QL[e]}px)`},ZL={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:QL[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ej(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||JL;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=r.breakpoints||JL;return Object.keys(t).reduce((o,a)=>{if(i=e.keys,"@"===(l=a)||l.startsWith("@")&&(i.some(e=>l.startsWith(`@${e}`))||l.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}(r.containerQueries?r:ZL,a);e&&(o[e]=n(t[a],a))}else if(Object.keys(e.values||QL).includes(a))o[e.up(a)]=n(t[a],a);else{const e=a;o[e]=t[e]}var i,l;return o},{})}return n(t)}function tj(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function nj(e){if("string"!=typeof e)throw new Error(function(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}(7));return e.charAt(0).toUpperCase()+e.slice(1)}function rj(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function oj(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:rj(e,n)||r,t&&(o=t(o,r,e)),o}const aj=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=rj(e.theme,r)||{};return ej(e,a,e=>{let r=oj(i,o,e);return e===r&&"string"==typeof e&&(r=oj(i,o,`${t}${"default"===e?"":nj(e)}`,e)),!1===n?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a},ij=function(e,t){return t?GL(e,t,{clone:!1}):e},lj={m:"margin",p:"padding"},sj={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cj={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uj=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!cj[e])return[e];e=cj[e]}const[t,n]=e.split(""),r=lj[t],o=sj[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]})(t)),e[t])}(),dj=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pj=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],fj=[...dj,...pj];function mj(e,t,n,r){const o=rj(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function hj(e){return mj(e,"spacing",8)}function gj(e,t){return"string"==typeof t||null==t?t:e(t)}function vj(e,t){const n=hj(e.theme);return Object.keys(e).map(r=>function(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=gj(t,n),e),{})}(uj(n),r);return ej(e,e[n],o)}(e,t,r,n)).reduce(ij,{})}function yj(e){return vj(e,dj)}function bj(e){return vj(e,pj)}function xj(e){return vj(e,fj)}yj.propTypes={},yj.filterProps=dj,bj.propTypes={},bj.filterProps=pj,xj.propTypes={},xj.filterProps=fj;const wj=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?ij(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function kj(e){return"number"!=typeof e?e:`${e}px solid`}function Sj(e,t){return aj({prop:e,themeKey:"borders",transform:t})}const Ej=Sj("border",kj),Cj=Sj("borderTop",kj),Ij=Sj("borderRight",kj),Pj=Sj("borderBottom",kj),Oj=Sj("borderLeft",kj),Tj=Sj("borderColor"),Rj=Sj("borderTopColor"),Mj=Sj("borderRightColor"),Aj=Sj("borderBottomColor"),Lj=Sj("borderLeftColor"),jj=Sj("outline",kj),$j=Sj("outlineColor"),Nj=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=mj(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:gj(t,e)});return ej(e,e.borderRadius,n)}return null};Nj.propTypes={},Nj.filterProps=["borderRadius"],wj(Ej,Cj,Ij,Pj,Oj,Tj,Rj,Mj,Aj,Lj,Nj,jj,$j);const _j=e=>{if(void 0!==e.gap&&null!==e.gap){const t=mj(e.theme,"spacing",8),n=e=>({gap:gj(t,e)});return ej(e,e.gap,n)}return null};_j.propTypes={},_j.filterProps=["gap"];const Dj=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=mj(e.theme,"spacing",8),n=e=>({columnGap:gj(t,e)});return ej(e,e.columnGap,n)}return null};Dj.propTypes={},Dj.filterProps=["columnGap"];const zj=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=mj(e.theme,"spacing",8),n=e=>({rowGap:gj(t,e)});return ej(e,e.rowGap,n)}return null};function Fj(e,t){return"grey"===t?t:e}function Bj(e){return e<=1&&0!==e?100*e+"%":e}zj.propTypes={},zj.filterProps=["rowGap"],wj(_j,Dj,zj,aj({prop:"gridColumn"}),aj({prop:"gridRow"}),aj({prop:"gridAutoFlow"}),aj({prop:"gridAutoColumns"}),aj({prop:"gridAutoRows"}),aj({prop:"gridTemplateColumns"}),aj({prop:"gridTemplateRows"}),aj({prop:"gridTemplateAreas"}),aj({prop:"gridArea"})),wj(aj({prop:"color",themeKey:"palette",transform:Fj}),aj({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fj}),aj({prop:"backgroundColor",themeKey:"palette",transform:Fj}));const Wj=aj({prop:"width",transform:Bj}),Hj=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||QL[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Bj(t)}};return ej(e,e.maxWidth,t)}return null};Hj.filterProps=["maxWidth"];const Vj=aj({prop:"minWidth",transform:Bj}),qj=aj({prop:"height",transform:Bj}),Uj=aj({prop:"maxHeight",transform:Bj}),Kj=aj({prop:"minHeight",transform:Bj}),Gj=(aj({prop:"size",cssProperty:"width",transform:Bj}),aj({prop:"size",cssProperty:"height",transform:Bj}),wj(Wj,Hj,Vj,qj,Uj,Kj,aj({prop:"boxSizing"})),{border:{themeKey:"borders",transform:kj},borderTop:{themeKey:"borders",transform:kj},borderRight:{themeKey:"borders",transform:kj},borderBottom:{themeKey:"borders",transform:kj},borderLeft:{themeKey:"borders",transform:kj},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:kj},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nj},color:{themeKey:"palette",transform:Fj},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fj},backgroundColor:{themeKey:"palette",transform:Fj},p:{style:bj},pt:{style:bj},pr:{style:bj},pb:{style:bj},pl:{style:bj},px:{style:bj},py:{style:bj},padding:{style:bj},paddingTop:{style:bj},paddingRight:{style:bj},paddingBottom:{style:bj},paddingLeft:{style:bj},paddingX:{style:bj},paddingY:{style:bj},paddingInline:{style:bj},paddingInlineStart:{style:bj},paddingInlineEnd:{style:bj},paddingBlock:{style:bj},paddingBlockStart:{style:bj},paddingBlockEnd:{style:bj},m:{style:yj},mt:{style:yj},mr:{style:yj},mb:{style:yj},ml:{style:yj},mx:{style:yj},my:{style:yj},margin:{style:yj},marginTop:{style:yj},marginRight:{style:yj},marginBottom:{style:yj},marginLeft:{style:yj},marginX:{style:yj},marginY:{style:yj},marginInline:{style:yj},marginInlineStart:{style:yj},marginInlineEnd:{style:yj},marginBlock:{style:yj},marginBlockStart:{style:yj},marginBlockEnd:{style:yj},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:_j},rowGap:{style:zj},columnGap:{style:Dj},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bj},maxWidth:{style:Hj},minWidth:{transform:Bj},height:{transform:Bj},maxHeight:{transform:Bj},minHeight:{transform:Bj},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}),Yj=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=rj(n,l)||{};return c?c(o):ej(o,t,t=>{let n=oj(u,s,t);return t===n&&"string"==typeof t&&(n=oj(u,s,`${e}${"default"===t?"":nj(t)}`,t)),!1===i?n:{[i]:n}})}return function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Gj;function l(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const l=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),s=Object.keys(l);let c=l;return Object.keys(r).forEach(n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])c=ij(c,e(n,a,o,i));else{const e=ej({theme:o},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?c=ij(c,e):c[n]=t({sx:a,theme:o,nested:!0})}else c=ij(c,e(n,a,o,i))}),!a&&o.modularCssLayers?{"@layer sx":YL(o,tj(s,c))}:YL(o,tj(s,c))}return Array.isArray(r)?r.map(l):l(r)}}();Yj.filterProps=["sx"];const Xj=Yj;function Qj(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Jj(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}!function(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return{keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}(n),s=function(e=8,t=hj({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=GL({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:s,shape:{...XL,...a}},i);c=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(c),c.applyStyles=Qj,c=t.reduce((e,t)=>GL(e,t),c),c.unstable_sxConfig={...Gj,...i?.unstable_sxConfig},c.unstable_sx=function(e){return Xj({sx:e,theme:this})}}();const Zj=qc("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Jj(e)&&"action"!==e})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:_i(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function e$(e){return null==e.action?null:(0,Dc.jsx)(Zj,vc({},e))}const t$=qc("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>vc({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),n$=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],r$=i.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:o,expansionIcon:a,icon:l,label:s,itemId:c,onClick:u,onMouseDown:d,dragAndDropOverlayProps:p,labelInputProps:f}=e,m=Ku(e,n$),{disabled:h,expanded:g,selected:v,focused:y,editing:b,editable:x,disableSelection:w,checkboxSelection:k,handleExpansion:S,handleSelection:E,handleCheckboxSelection:C,handleContentClick:I,preventSelection:P,expansionTrigger:O,toggleItemEditing:T}=zL(c),R=l||a||o,M=i.useRef(null);return(0,Dc.jsxs)("div",vc({},m,{className:cc(n.root,r,g&&n.expanded,v&&n.selected,y&&n.focused,h&&n.disabled,b&&n.editing,x&&n.editable),onClick:e=>{I?.(e,c),M.current?.contains(e.target)||("content"===O&&S(e),k||E(e),u&&u(e))},onMouseDown:e=>{P(e),d&&d(e)},ref:t,children:[(0,Dc.jsx)("div",{className:n.iconContainer,children:R}),k&&(0,Dc.jsx)(HM,{className:n.checkbox,checked:v,onChange:C,disabled:h||w,ref:M,tabIndex:-1}),b?(0,Dc.jsx)(t$,vc({},f,{className:n.labelInput})):(0,Dc.jsx)("div",vc({className:n.label},x&&{onDoubleClick:e=>{e.defaultMuiPrevented||T()}},{children:s})),p&&(0,Dc.jsx)(e$,vc({},p))]}))});function o$(e){return fc("MuiTreeItem",e)}const a$=Jc("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),i$=Jd((0,Dc.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),l$=Jd((0,Dc.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");var s$=n(556),c$=n.n(s$);function u$(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:o}=yL();return r({children:t,itemId:n,instance:o})}u$.propTypes={children:c$().node,itemId:c$().string.isRequired};const d$=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],p$=["ownerState"],f$=["ownerState"],m$=["ownerState"],h$=AA(),g$=qc("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),v$=qc(r$,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${a$.iconContainer}`]:t.iconContainer},t.label&&{[`& .${a$.label}`]:t.label}],shouldForwardProp:e=>Jj(e)&&"indentationAtItemLevel"!==e})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${a$.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${a$.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${a$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${a$.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${a$.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${a$.label}`]:vc({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${a$.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),y$=qc(qL,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>Jj(e)&&"indentationAtItemLevel"!==e})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),b$=i.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:l},expansion:{expansionTrigger:s},treeId:c,instance:u}=yL(),d=i.useContext(KA),p=h$({props:e,name:"MuiTreeItem"}),{children:f,className:m,slots:h,slotProps:g,ContentComponent:v=r$,ContentProps:y,itemId:b,id:x,label:w,onClick:k,onMouseDown:S,onBlur:E,onKeyDown:C}=p,I=Ku(p,d$),{expanded:P,focused:O,selected:T,disabled:R,editing:M,handleExpansion:A,handleCancelItemLabelEditing:L,handleSaveItemLabel:j}=zL(b),{contentRef:$,rootRef:N,propsEnhancers:_}=r(p),D=i.useRef(null),z=i.useRef(null),F=zu(t,N,D),B=zu(y?.ref,$,z),W={expandIcon:h?.expandIcon??n.slots.expandIcon??i$,collapseIcon:h?.collapseIcon??n.slots.collapseIcon??l$,endIcon:h?.endIcon??n.slots.endIcon,icon:h?.icon,groupTransition:h?.groupTransition},H=e=>Array.isArray(e)?e.length>0&&e.some(H):Boolean(e),V=H(f),q=vc({},p,{expanded:P,focused:O,selected:T,disabled:R,indentationAtItemLevel:a}),U=(e=>{const{classes:t}=e;return mc({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},o$,t)})(q),K=W.groupTransition??void 0,G=zf({elementType:K,ownerState:{},externalSlotProps:g?.groupTransition,additionalProps:vc({unmountOnExit:!0,in:P,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:U.groupTransition}),Y=P?W.collapseIcon:W.expandIcon,X=Ku(zf({elementType:Y,ownerState:{},externalSlotProps:e=>P?vc({},Df(n.slotProps.collapseIcon,e),Df(g?.collapseIcon,e)):vc({},Df(n.slotProps.expandIcon,e),Df(g?.expandIcon,e)),additionalProps:{onClick:e=>{"iconContainer"===s&&A(e)}}}),p$),Q=V&&Y?(0,Dc.jsx)(Y,vc({},X)):null,J=V?void 0:W.endIcon,Z=Ku(zf({elementType:J,ownerState:{},externalSlotProps:e=>V?{}:vc({},Df(n.slotProps.endIcon,e),Df(g?.endIcon,e))}),f$),ee=J?(0,Dc.jsx)(J,vc({},Z)):null,te=W.icon,ne=Ku(zf({elementType:te,ownerState:{},externalSlotProps:g?.icon}),m$),re=te?(0,Dc.jsx)(te,vc({},ne)):null;let oe;oe=!!T||!(!l&&!R)&&void 0;const ae=DA({itemId:b,treeId:c,id:x}),ie=u.canItemBeTabbed(b)?0:-1,le={rootRefObject:D,contentRefObject:z,interactions:{handleSaveItemLabel:j,handleCancelItemLabelEditing:L}},se=_.root?.(vc({},le,{externalEventHandlers:$f(I)}))??{},ce=_.content?.(vc({},le,{externalEventHandlers:$f(y)}))??{},ue=_.dragAndDropOverlay?.(vc({},le,{externalEventHandlers:{}}))??{},de=_.labelInput?.(vc({},le,{externalEventHandlers:{}}))??{};return(0,Dc.jsx)(u$,{itemId:b,children:(0,Dc.jsxs)(g$,vc({className:cc(U.root,m),role:"treeitem","aria-expanded":V?P:void 0,"aria-selected":oe,"aria-disabled":R||void 0,id:ae,tabIndex:ie},I,{ownerState:q,onFocus:function(e){!O&&(!R||o)&&e.currentTarget===e.target&&u.focusItem(e,b)},onBlur:function(e){E?.(e),M||e.relatedTarget&&aL(e.relatedTarget,D.current)&&(e.target&&"labelInput"===e.target?.dataset?.element&&aL(e.target,D.current)||"labelInput"===e.relatedTarget?.dataset?.element)||u.removeFocusedItem()},onKeyDown:e=>{C?.(e),"labelInput"!==e.target?.dataset?.element&&u.handleItemKeyDown(e,b)},ref:F,style:a?vc({},I.style,{"--TreeView-itemDepth":"function"==typeof d?d(b):d}):I.style},se,{children:[(0,Dc.jsx)(v$,vc({as:v,classes:{root:U.content,expanded:U.expanded,selected:U.selected,focused:U.focused,disabled:U.disabled,editable:U.editable,editing:U.editing,iconContainer:U.iconContainer,label:U.label,labelInput:U.labelInput,checkbox:U.checkbox},label:w,itemId:b,onClick:k,onMouseDown:S,icon:re,expansionIcon:Q,displayIcon:ee,ownerState:q},y,ce,null==ue.action?{}:{dragAndDropOverlayProps:ue},null==de.value?{}:{labelInputProps:de},{ref:B})),f&&(0,Dc.jsx)(y$,vc({as:K},G,{children:f}))]}))})});var x$=i.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.label,a=e.itemId,l=e.icon,s=e.expansionIcon,c=e.displayIcon,u=e.testId,d=zL(a),p=d.disabled,f=d.expanded,m=d.selected,h=d.focused,g=d.handleExpansion,v=d.handleSelection,y=d.preventSelection,b=pt(),x=qC(function(e){return e.readOnly})?"/view":"",w=l||s||c,k=function(e){var t=e.target.getAttribute("data-testid");y(e),"ChevronRightIcon"!==t&&"ExpandMoreIcon"!==t&&E(e)},S=function(e){g(e)},E=function(e){v(e),u&&b("#".concat(u).concat(x))};return i.createElement("div",{className:cc(r,n.root,tp(tp(tp(tp({},n.expanded,f),n.selected,m),n.focused,h),n.disabled,p)),onMouseDown:k,onKeyDown:function(e){"Enter"===e.key&&k(e)},ref:t},i.createElement("div",{onClick:S,onKeyDown:function(e){"Enter"===e.key&&S(e)},className:n.iconContainer},w),i.createElement(Su,{component:"div",className:n.label,tabIndex:0},o))});const w$=qc(function(e){return i.createElement(b$,vc({ContentComponent:x$},e))})(function(){return tp(tp({},"& .".concat(a$.selected),{backgroundColor:"".concat(Mh.palette.common.orangeLight," !important")}),"& .".concat(a$.content),{width:"auto",padding:"0 20px"})});function k$(e){return function(e){if(Array.isArray(e))return ac(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ic(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S$(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const C$=function(e){var t=e.presets,n=e.testSessionId,r=e.getSessionData,o=Fr().enqueueSnackbar,a=qC(function(e){return e.readOnly}),l={id:"NULL_PRESET",title:"None"},s=t.reduce(function(e,t){return E$(E$({},e),{},tp({},t.title,t.id))},{}),c=lc(i.useState([l].concat(k$(t.sort(function(e,t){return e.title>t.title?1:e.title<t.title?-1:0})))),2),u=c[0],d=c[1],p=lc(i.useState(l.title),2),f=p[0],m=p[1],h=lc(i.useState(l.title),2),g=h[0],v=h[1],y=lc(i.useState(!1),2),b=y[0],x=y[1],w=function(e){var t,a,i;(t=n,a=e,i=Xs("/test_sessions/".concat(t,"/session_data/apply_preset?preset_id=").concat(a)),fetch(i,{method:"PUT"}).then(function(e){return e.status,null})).then(function(){r(n)}).catch(function(e){o("Could not set preset: ".concat(e.message),{variant:"error"})})},k=function(){var e=u.findIndex(function(e){return e.id===l.id});e>=0&&(u.splice(e,1),d(u))};return i.createElement(i.Fragment,null,i.createElement(JP,{id:"preset-select",label:"Preset",disabled:a,size:"small",fullWidth:!0,select:!0,slotProps:{inputLabel:{sx:{"&.Mui-focused":{color:Mh.palette.primary.dark}}}},value:g,onChange:function(e){e.target.value&&(v(e.target.value),w(s[e.target.value])),e.target.value&&e.target.value!==l.title&&(k(),o("".concat(e.target.value," has been set as preset."),{variant:"success"}))}},u.map(function(e){return i.createElement(uE,{key:e.id,value:e.title},e.title)})),i.createElement(HE,{open:b,fullWidth:!0,maxWidth:"xs"},i.createElement(GE,null,"Are you sure?"),i.createElement(JE,null,"Selecting a new preset will clear all existing test results. If you wish to proceed, click the Apply Preset button."),i.createElement(RC,null,i.createElement(Bd,{"data-testid":"preset-cancel-button",sx:{color:Mh.palette.primary.dark,fontWeight:"bold"},onClick:function(){v(f),x(!1)}},"Cancel"),i.createElement(Bd,{"data-testid":"preset-apply-button",sx:{color:Mh.palette.primary.dark,fontWeight:"bold"},onClick:function(){w(s[g]),m(g),x(!1),k()}},"Apply Preset"))))},I$=function(e){var t=e.runnable,n=e.title,r=pS().classes;return i.createElement(nu,{className:r.labelRoot,"data-testid":"tiLabel-".concat(null==t?void 0:t.id)},i.createElement(nu,{width:"100%"},t&&"short_id"in t&&i.createElement(Su,{className:r.shortId,variant:"body2"},t.short_id," "),i.createElement(Su,{className:r.labelText,variant:"body2"},n||(null==t?void 0:t.short_title)||(null==t?void 0:t.title)),(null==t?void 0:t.optional)&&i.createElement(Su,{className:r.optionalLabel,variant:"body2"},"Optional")))};var P$=function(e){var t=e.testGroup;return i.createElement(w$,{itemId:t.id,label:i.createElement(I$,{runnable:t}),slots:t.run_as_group||0===t.test_groups.length?{icon:function(){return i.createElement(UC,{result:t.result,isRunning:t.is_running})}}:{},ContentProps:{testId:t.short_id}},t.test_groups.length>0&&!t.run_as_group&&t.test_groups.map(function(e,n){return i.createElement(P$,{testGroup:e,key:"ti-".concat(t.short_id,"-").concat(n)})}))};const O$=P$;function T$(e,t){e.forEach(function(e){e.test_groups.length>0&&!e.run_as_group&&(t.push(e.id),T$(e.test_groups,t))})}const R$=function(e){var t=e.testSuite,n=e.selectedRunnable,r=e.view,o=e.presets,a=e.requirementsExist,l=void 0!==a&&a,s=e.testSessionId,c=e.getSessionData,u=pS().classes,d=rc(function(e){return e.windowIsSmall}),p=n;"report"===r?p="".concat(p,"/report"):"requirements"===r?p="".concat(p,"/requirements"):"config"===r&&(p="".concat(p,"/config"));var f=[t.id];t.test_groups&&T$(t.test_groups,f);var m,h,g=lc(i.useState(f),2),v=g[0],y=g[1];if(t.test_groups){var b=t.test_groups.map(function(e){return i.createElement(O$,{key:e.id,"data-testid":"".concat(e.id,"-treeitem"),testGroup:e})});return i.createElement(nu,{className:u.testSuiteTreePanel},o&&o.length>0&&s&&c&&i.createElement(nu,{m:2},i.createElement(C$,{presets:o,testSessionId:s,getSessionData:c})),i.createElement(dS,null),i.createElement(RL,{"aria-label":"navigation-panel",slots:{collapseIcon:function(){return i.createElement(ML,{"aria-hidden":!1,tabIndex:0})},expandIcon:function(){return i.createElement(LL,{"aria-hidden":!1,tabIndex:0})}},onExpandedItemsChange:function(e,t){y(t)},expandedItems:v,selectedItems:p,className:u.testSuiteTree},i.createElement(w$,{classes:{content:u.treeRoot},itemId:t.id,label:i.createElement(I$,{runnable:t}),slots:{icon:AL},className:u.treeItemBottomBorder,ContentProps:{testId:t.id}}),b,i.createElement(w$,{itemId:"".concat(t.id,"/report"),label:i.createElement(I$,{title:"Report"}),slots:{icon:jL},className:"".concat(u.treeItemTopBorder," \n ").concat(!l&&u.treeItemBottomBorder),ContentProps:{testId:"".concat(t.id,"/report")}}),l&&i.createElement(w$,{itemId:"".concat(t.id,"/requirements"),label:i.createElement(I$,{title:"Specification Requirements"}),slots:{icon:DL},className:"".concat(u.treeItemTopBorder," ").concat(u.treeItemBottomBorder),ContentProps:{testId:"".concat(t.id,"/requirements")}}),i.createElement(nu,{display:"flex",alignItems:"flex-end",flexGrow:1,mt:d?0:8},i.createElement(nu,{width:"100%"},(h=null,(m=t.configuration_messages)&&(null==m?void 0:m.filter(function(e){return"error"===e.type}).length)>0?h=i.createElement(NL,{sx:{color:Mh.palette.error.main}}):m&&(null==m?void 0:m.filter(function(e){return"warning"===e.type}).length)>0&&(h=i.createElement(_L,{sx:{color:Mh.palette.warning.main}})),i.createElement(w$,{itemId:"".concat(t.id,"/config"),label:i.createElement(Su,{component:"div",alignItems:"center",sx:{display:"flex"}},i.createElement(I$,{title:"Configuration Messages"}),h),slots:{icon:$L},className:u.treeItemTopBorder,ContentProps:{testId:"".concat(t.id,"/config")}}))))))}return i.createElement(nu,null,t.title)},M$=i.createContext({});function A$(e){return fc("MuiAccordion",e)}const L$=Jc("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),j$=qc(Lu,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${L$.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(mu(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${L$.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${L$.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),mu(({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${L$.expanded}`]:{margin:"16px 0"}}}]}))),$$=qc("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),N$=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAccordion"}),{children:r,className:o,defaultExpanded:a=!1,disabled:l=!1,disableGutters:s=!1,expanded:c,onChange:u,square:d=!1,slots:p={},slotProps:f={},TransitionComponent:m,TransitionProps:h,...g}=n,[v,y]=Xf({controlled:c,default:a,name:"Accordion",state:"expanded"}),b=i.useCallback(e=>{y(!v),u&&u(e,!v)},[v,u,y]),[x,...w]=i.Children.toArray(r),k=i.useMemo(()=>({expanded:v,disabled:l,disableGutters:s,toggle:b}),[v,l,s,b]),S={...n,square:d,disabled:l,disableGutters:s,expanded:v},E=(e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return mc({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],heading:["heading"],region:["region"]},A$,t)})(S),C={slots:{transition:m,...p},slotProps:{transition:h,...f}},[I,P]=Qf("root",{elementType:j$,externalForwardedProps:{...C,...g},className:cc(E.root,o),shouldForwardComponentProp:!0,ownerState:S,ref:t,additionalProps:{square:d}}),[O,T]=Qf("heading",{elementType:$$,externalForwardedProps:C,className:E.heading,ownerState:S}),[R,M]=Qf("transition",{elementType:qL,externalForwardedProps:C,ownerState:S});return(0,Dc.jsxs)(I,{...P,children:[(0,Dc.jsx)(O,{...T,children:(0,Dc.jsx)(M$.Provider,{value:k,children:x})}),(0,Dc.jsx)(R,{in:v,timeout:"auto",...M,children:(0,Dc.jsx)("div",{"aria-labelledby":x.props.id,id:x.props["aria-controls"],role:"region",className:E.region,children:w})})]})}),_$=N$;function D$(e){return fc("MuiAccordionSummary",e)}const z$=Jc("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),F$=qc(bd,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(mu(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${z$.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${z$.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${z$.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${z$.expanded}`]:{minHeight:64}}}]}})),B$=qc("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(mu(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${z$.expanded}`]:{margin:"20px 0"}}}]}))),W$=qc("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(mu(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${z$.expanded}`]:{transform:"rotate(180deg)"}}))),H$=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAccordionSummary"}),{children:r,className:o,expandIcon:a,focusVisibleClassName:l,onClick:s,slots:c,slotProps:u,...d}=n,{disabled:p=!1,disableGutters:f,expanded:m,toggle:h}=i.useContext(M$),g={...n,expanded:m,disabled:p,disableGutters:f},v=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return mc({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},D$,t)})(g),y={slots:c,slotProps:u},[b,x]=Qf("root",{ref:t,shouldForwardComponentProp:!0,className:cc(v.root,o),elementType:F$,externalForwardedProps:{...y,...d},ownerState:g,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:p,"aria-expanded":m,focusVisibleClassName:cc(v.focusVisible,l)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{h&&h(e),s&&s(e)})(t)}})}),[w,k]=Qf("content",{className:v.content,elementType:B$,externalForwardedProps:y,ownerState:g}),[S,E]=Qf("expandIconWrapper",{className:v.expandIconWrapper,elementType:W$,externalForwardedProps:y,ownerState:g});return(0,Dc.jsxs)(b,{...x,children:[(0,Dc.jsx)(w,{...k,children:r}),a&&(0,Dc.jsx)(S,{...E,children:a})]})}),V$=H$;function q$(e){return fc("MuiAccordionDetails",e)}Jc("MuiAccordionDetails",["root"]);const U$=qc("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(mu(({theme:e})=>({padding:e.spacing(1,2,2)}))),K$=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAccordionDetails"}),{className:r,...o}=n,a=n,i=(e=>{const{classes:t}=e;return mc({root:["root"]},q$,t)})(a);return(0,Dc.jsx)(U$,{className:cc(i.root,r),ref:t,ownerState:a,...o})}),G$=K$,Y$=Jd((0,Dc.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),X$=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},table:{width:"auto",tableLayout:"auto"},testIcon:{display:"inline-flex"},labelText:{display:"inline"},optionalLabel:{display:"inline",fontStyle:"italic",fontSize:"0.9rem",lineHeight:"1.5rem",alignSelf:"center",color:e.palette.common.gray,paddingRight:"4px"},shortId:{display:"inline",fontWeight:"bold",color:e.palette.common.grayDark,alignSelf:"center"},testText:{padding:"0 8px",wordBreak:"break-word",minWidth:"100px"},tabs:{backgroundColor:e.palette.common.white,minHeight:"auto",padding:0},bolderText:{fontWeight:"bolder"},messageMessage:{width:"82%",padding:"0 16px 0 0 !important"},inputOutputsValue:{width:"90%",padding:"0 16px !important"},noPrintSpacing:{"@media print":{marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,minHeight:"unset"}},wordWrap:{overflowWrap:"anywhere"},accordion:{"&:before":{display:"none"},"&:not(last-child)":{borderBottom:"1px solid ".concat(e.palette.divider)},"@media print":{borderBottom:"none !important"}},accordionSummary:{userSelect:"auto","@media print":{minHeight:"unset"},"& .MuiAccordionSummary-content":{margin:0,overflow:"auto"}},accordionDetailContainer:{backgroundColor:zi(e.palette.common.grayLight,.1),padding:"16px","@media print":{padding:"0 16px"}},resultMessageMarkdown:{"& > *":{margin:0}},requestUrlContainer:{width:"100%"},badgeIcon:{margin:"0 8px",padding:"0.25em 0.25em","&:hover":{background:e.palette.common.grayLight,borderRadius:"50%"}},error:{color:e.palette.error.dark},warning:{color:e.palette.primary.dark},info:{color:e.palette.info.dark},request:{color:e.palette.info.main},badgeBase:{"& .MuiBadge-badge":{backgroundColor:e.palette.common.white,fontWeight:"bold",top:"0.65rem",right:"14px"}},errorBadge:{"& .MuiBadge-badge":{color:e.palette.error.dark,border:"1px solid ".concat(e.palette.error.dark)}},warningBadge:{"& .MuiBadge-badge":{color:e.palette.primary.dark,border:"1px solid ".concat(e.palette.primary.dark)}},infoBadge:{"& .MuiBadge-badge":{color:e.palette.info.dark,border:"1px solid ".concat(e.palette.info.dark)}},requestBadge:{"& .MuiBadge-badge":{color:e.palette.info.dark,border:"1px solid ".concat(e.palette.info.dark)}},simulationVerificationChip:{backgroundColor:e.palette.common.orangeLight,color:e.palette.common.orangeDark,fontWeight:"bold",marginLeft:"8px",height:"24px","& .MuiChip-icon":{color:e.palette.common.orangeDark}}}});function Q$(e){return fc("MuiTableHead",e)}Jc("MuiTableHead",["root"]);const J$=qc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Z$={variant:"head"},eN="thead",tN=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTableHead"}),{className:r,component:o=eN,...a}=n,i={...n,component:o},l=(e=>{const{classes:t}=e;return mc({root:["root"]},Q$,t)})(i);return(0,Dc.jsx)(cC.Provider,{value:Z$,children:(0,Dc.jsx)(J$,{as:o,className:cc(l.root,r),ref:t,role:o===eN?null:"rowgroup",ownerState:i,...a})})}),nN=tN,rN=function(e){var t=e.values,n=e.noValuesMessage,r=e.headerName,o=X$().classes,a=[r,"Value"],l=i.createElement(wC,{key:"inputOutputs-header"},a.map(function(e){return i.createElement(IC,{key:e,className:"Value"===e?o.inputOutputsValue:o.noPrintSpacing||""},i.createElement(Su,{variant:"overline",className:o.bolderText},e))})),s=t.map(function(e,t){return i.createElement(wC,{key:"inputOutputsRow-".concat(t)},i.createElement(IC,{className:o.noPrintSpacing},i.createElement(Su,{variant:"subtitle2",component:"p",className:o.bolderText},e.name)),i.createElement(IC,{className:o.inputOutputsValue},i.createElement(Su,{variant:"subtitle2",component:"p"},(null==e?void 0:e.value)||"")))});return(t.length>0?i.createElement(sC,{size:"small"},i.createElement(nN,null,l),i.createElement(hC,null,s)):n&&i.createElement(nu,{p:2},i.createElement(Su,{variant:"subtitle2",component:"p"},n)))||i.createElement(i.Fragment,null)},oN=Jd((0,Dc.jsx)("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),aN=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},labelText:{display:"inline"},shortId:{display:"inline",fontWeight:"bold",alignSelf:"center",color:e.palette.common.grayDark},currentItem:{fontWeight:600},accordion:{"&:before":{display:"none"},"&:not(last-child)":{borderBottom:"1px solid ".concat(e.palette.divider)},"@media print":{borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"none !important"}},accordionSummary:{userSelect:"auto","@media print":{minHeight:"unset"},"& .MuiAccordionSummary-content":{margin:0}},accordionDetailContainer:{backgroundColor:e.palette.common.grayLight,"@media print":{padding:"0 0 0 16px"}},accordionDetail:{backgroundColor:e.palette.common.white,padding:0,margin:"8px 0 0 0",borderRadius:"4px","@media print":{margin:0}},description:{padding:"8px 16px 24px 16px",overflow:"auto"},descriptionHeader:{fontWeight:"bolder !important",color:e.palette.common.orangeDark},descriptionContainer:{backgroundColor:e.palette.common.grayLight},descriptionDetailContainer:{backgroundColor:zi(e.palette.common.grayLight,.1),"@media print":{padding:"0 0 0 16px"}},error:{color:e.palette.error.dark},warning:{color:e.palette.primary.dark},info:{color:e.palette.info.dark},request:{color:e.palette.info.main},errorBadge:{"& .MuiBadge-badge":{color:e.palette.error.dark,border:"1px solid ".concat(e.palette.error.dark)}},warningBadge:{"& .MuiBadge-badge":{color:e.palette.primary.dark,border:"1px solid ".concat(e.palette.primary.dark)}},infoBadge:{"& .MuiBadge-badge":{color:e.palette.info.dark,border:"1px solid ".concat(e.palette.info.dark)}},requestBadge:{"& .MuiBadge-badge":{color:e.palette.secondary.dark,border:"1px solid ".concat(e.palette.info.dark)}}}}),iN=function(){var e=X$().classes;return i.createElement(dm,{title:"This test verifies the behavior of Inferno's simulation"},i.createElement(aM,{icon:i.createElement("img",{src:Qs(String(jE)),alt:"Inferno",style:{width:18,height:18}}),label:"Simulation Verification",size:"small",className:e.simulationVerificationChip}))},lN=function(e){var t,n=e.testGroup,r=aN().classes,o=qC(function(e){return e.readOnly});return i.createElement(i.Fragment,null,i.createElement(nu,{display:"flex",alignItems:"center",px:2,py:1},i.createElement(nu,{display:"inline-flex"},n.run_as_group?i.createElement(UC,{result:n.result,isRunning:n.is_running}):i.createElement(oN,{sx:{color:Mh.palette.common.gray}})),i.createElement(AS,{sx:{padding:"0 8px"}},i.createElement(_R,{sx:{padding:0}},i.createElement(Em,{primary:i.createElement(i.Fragment,null,n.short_id&&i.createElement(Su,{className:r.shortId},"".concat(n.short_id," ")),i.createElement(PS,{color:"secondary.dark",fontWeight:"bold",href:"".concat(location.pathname,"#").concat(n.id).concat(o?"/view":""),"data-testid":"navigable-group-item"},n.title),n.is_simulation_verification&&i.createElement(iN,null)),secondary:null===(t=n.result)||void 0===t?void 0:t.result_message})))),i.createElement(dS,null))};var sN=function(e,t){t.set(e.id,e),e.test_groups.forEach(function(e){sN(e,t)}),e.tests.forEach(function(e){t.set(e.id,e)})},cN=function(e,t){var n;null===(n=e.verifies_requirements)||void 0===n||n.forEach(function(n){t.get(n)?t.set(n,[].concat(k$(t.get(n)),[e.short_id])):t.set(n,[e.short_id])}),e.tests.forEach(function(e){var n;null===(n=e.verifies_requirements)||void 0===n||n.forEach(function(n){t.get(n)?t.set(n,[].concat(k$(t.get(n)),[e.short_id])):t.set(n,[e.short_id])})}),e.test_groups.forEach(function(e){cN(e,t)})},uN=function(e,t){var n;return n=void 0===t?new Map:t,e.forEach(function(e){e.test_suite_id?n.set(e.test_suite_id,e):e.test_group_id?n.set(e.test_group_id,e):e.test_id&&n.set(e.test_id,e)}),new Map(n)},dN=function(e,t){var n,r,o,a;e&&(e.is_running=t,yI(e)&&(null===(n=e.tests)||void 0===n||n.forEach(function(e){return e.is_running=t}),null===(r=e.test_groups)||void 0===r||r.forEach(function(e){return dN(e,t)})),"test_groups"in(a=e)&&!("tests"in a)&&(null===(o=e.test_groups)||void 0===o||o.forEach(function(e){return dN(e,t)})))},pN=function(e,t){return!!t&&!!e.description&&e.description.length>0},fN=function(e){return!!e.verifies_requirements&&e.verifies_requirements.length>0},mN=function(e,t){var n=t.split("?")[0].split("#")[0].split("/").reverse()[0];return Object.keys(e).includes(n)};const hN=(e,t,n)=>{const r=e.keys[0];var o,a;Array.isArray(t)?t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)}):t&&"object"==typeof t?(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,a=Object.keys(t),o.filter(e=>a.includes(e)))).forEach(o=>{if(e.keys.includes(o)){const a=t[o];void 0!==a&&n((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n},a)}}):"number"!=typeof t&&"string"!=typeof t||n((e,t)=>{Object.assign(e,t)},t)};function gN(e){return`--Grid-${e}Spacing`}function vN(e){return`--Grid-parent-${e}Spacing`}const yN="--Grid-columns",bN="--Grid-parent-columns",xN=({theme:e,ownerState:t})=>{const n={};return hN(e.breakpoints,t.size,(e,t)=>{let r={};"grow"===t&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${bN}) - (var(${bN}) - ${t}) * (var(${vN("column")}) / var(${bN})))`}),e(n,r)}),n},wN=({theme:e,ownerState:t})=>{const n={};return hN(e.breakpoints,t.offset,(e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${bN}) + var(${vN("column")}) * ${t} / var(${bN}))`}),e(n,r)}),n},kN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[yN]:12};return hN(e.breakpoints,t.columns,(e,t)=>{const r=t??12;e(n,{[yN]:r,"> *":{[bN]:r}})}),n},SN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return hN(e.breakpoints,t.rowSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[gN("row")]:o,"> *":{[vN("row")]:o}})}),n},EN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return hN(e.breakpoints,t.columnSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[gN("column")]:o,"> *":{[vN("column")]:o}})}),n},CN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return hN(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},IN=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${gN("row")}) var(${gN("column")})`}}),PN=e=>{const t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},ON=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},TN=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`],RN=ea(),MN=_c("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function AN(e){return gc({props:e,name:"MuiGrid",defaultTheme:RN})}const LN=function(e={}){const{createStyledComponent:t=MN,useThemeProps:n=AN,useTheme:r=Ri,componentName:o="MuiGrid"}=e;function a(e,t,n=()=>!0){const r={};return null===e||(Array.isArray(e)?e.forEach((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(r[t.keys[o]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const o=e[t];null!=o&&n(o)&&(r[t]=o)}):r[t.keys[0]]=e),r}const l=t(kN,EN,SN,xN,CN,IN,wN),s=i.forwardRef(function(e,t){const s=r(),c=Qc(n(e));!function(e,t){const n=[];void 0!==e.item&&(delete e.item,n.push("item")),void 0!==e.zeroMinWidth&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(t=>{void 0!==e[t]&&(n.push(t),delete e[t])})}(c,s.breakpoints);const{className:u,children:d,columns:p=12,container:f=!1,component:m="div",direction:h="row",wrap:g="wrap",size:v={},offset:y={},spacing:b=0,rowSpacing:x=b,columnSpacing:w=b,unstable_level:k=0,...S}=c,E=a(v,s.breakpoints,e=>!1!==e),C=a(y,s.breakpoints),I=e.columns??(k?void 0:p),P=e.spacing??(k?void 0:b),O=e.rowSpacing??e.spacing??(k?void 0:x),T=e.columnSpacing??e.spacing??(k?void 0:w),R={...c,level:k,columns:I,container:f,direction:h,wrap:g,spacing:P,rowSpacing:O,columnSpacing:T,size:E,offset:C},M=((e,t)=>{const{container:n,direction:r,spacing:a,wrap:i,size:l}=e;return mc({root:["root",n&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...TN(r),...PN(l),...n?ON(a,t.breakpoints.keys[0]):[]]},e=>fc(o,e),{})})(R,s);return(0,Dc.jsx)(l,{ref:t,as:m,ownerState:R,className:cc(M.root,u),...S,children:i.Children.map(d,e=>i.isValidElement(e)&&Tm(e,["Grid"])&&f&&e.props.container?i.cloneElement(e,{unstable_level:e.props?.unstable_level??k+1}):e)})});return s.muiName="Grid",s}({createStyledComponent:qc("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>Gc({props:e,name:"MuiGrid2"}),useTheme:gs}),jN=LN,$N=ea(),NN=_c("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function _N(e){return gc({props:e,name:"MuiStack",defaultTheme:$N})}function DN(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${o}`})),e),[])}const zN=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[e]),FN=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Qr({theme:t},eo({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){const r=go(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),a=eo({values:e.direction,base:o}),i=eo({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}),n=Vr(n,Qr({theme:t},i,(t,n)=>e.useFlexGap?{gap:vo(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${zN(n?a[n]:e.direction)}`]:vo(r,t)}}))}return n=function(e,...t){const n=Jr(e),r=[n,...t].reduce((e,t)=>Vr(e,t),{});return Zr(Object.keys(n),r)}(t.breakpoints,n),n},BN=function(e={}){const{createStyledComponent:t=NN,useThemeProps:n=_N,componentName:r="MuiStack"}=e,o=t(FN),a=i.forwardRef(function(e,t){const a=Qc(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1,...f}=a,m={direction:l,spacing:s,useFlexGap:p},h=mc({root:["root"]},e=>fc(r,e),{});return(0,Dc.jsx)(o,{as:i,ownerState:m,ref:t,className:cc(h.root,d),...f,children:c?DN(u,c):u})});return a}({createStyledComponent:qc("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Gc({props:e,name:"MuiStack"})}),WN=BN,HN="#e0f2f1",VN=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},header:{padding:"8px 16px",fontWeight:600,fontSize:"16px",borderBottom:"1px solid ".concat(e.palette.divider),backgroundColor:e.palette.common.blueLightest,borderTopLeftRadius:"4px",borderTopRightRadius:"4px",display:"flex",minHeight:"36.5px",alignItems:"center"},headerText:{flexGrow:1},currentItem:{fontWeight:600},markdown:{p:{margin:0}},textButton:{fontWeight:"bolder",cursor:"pointer"}}}),qN=function(e){var t=e.requirements,n=e.view,r=void 0===n?"page":n,o=e.requirementToTests,a=VN().classes,l=qC(function(e){return e.readOnly})?"/view":"",s=t.reduce(function(e,t){var n,r=t.specification||t.id.split("@")[0],o=null!==(n=t.url)&&void 0!==n?n:"";return e[r]?e[r][o]?e[r][o].push(t):e[r][o]=[t]:e[r]=tp({},o,[t]),e},{});return Object.entries(s).map(function(e,t){var n=lc(e,2),c=n[0],u=n[1];return Object.entries(u).map(function(e){var n=lc(e,2),u=n[0],d=n[1];return i.createElement(nu,{key:"".concat(c,"-").concat(u)},i.createElement(nu,null,i.createElement(Su,{variant:"h5",component:"p",fontWeight:"bold",sx:{mt:1}},c),u?i.createElement(PS,{href:u,color:"secondary"},u):i.createElement(Su,{color:Mh.palette.common.gray},"(no link available)")),d.map(function(e){return i.createElement(jN,{container:!0,spacing:2,mt:2,key:e.id},i.createElement(jN,null,i.createElement(Su,{fontWeight:"bold"},e.id.split("@").slice(-1))),i.createElement(jN,null,(t=e.conformance,n={shall:fl,"shall not":el,should:HN,may:Ki,deprecated:Ui[300]},i.createElement(aM,{size:"small",label:t.toUpperCase(),sx:{backgroundColor:n[t.toLowerCase()]||Ui[100],borderRadius:1,fontWeight:"bolder"}}))),i.createElement(jN,{size:"grow"},i.createElement(WN,null,i.createElement(nu,{px:1,mb:1,sx:{borderLeft:"4px solid ".concat(Ui[100])}},i.createElement(lx,{remarkPlugins:[ek],className:a.markdown},e.requirement)),"page"===r&&function(e){var t=o&&o.size>0,n=null==o?void 0:o.get(e.id);if(t)return i.createElement(nu,{display:"flex",px:1.5},e.not_tested_reason||!n||0===n.length?i.createElement(Su,{display:"inherit",variant:"body2",sx:{color:Mh.palette.common.orangeDark}},"Not tested"):i.createElement(Su,{ml:0,variant:"body2",fontWeight:"bold"},null==n?void 0:n.map(function(e,t){return i.createElement("span",{key:e},i.createElement(PS,{variant:"body2",href:"#".concat(e).concat(l),color:"secondary"},e),t!==n.length-1?", ":""," ")})))}(e))));var t,n}),t!==Object.keys(s).length-1&&i.createElement(dS,{sx:{mt:2}}))})})},UN=function(e){var t=e.requirements,n=e.hideModal,r=e.modalVisible;return i.createElement(HE,{open:r,fullWidth:!0,maxWidth:"md",onClose:n,"data-testid":"requestDetailModal",onKeyDown:function(e){return e.stopPropagation()}},i.createElement(GE,null,"Specification Requirements"),i.createElement(dS,null),i.createElement(JE,null,i.createElement(Su,{fontWeight:"bold"},"These scenarios test the following requirements:"),t.length>0?i.createElement(qN,{requirements:t,view:"dialog"}):i.createElement(Su,{fontStyle:"italic"},"No requirements found.")),i.createElement(RC,null,i.createElement(Bd,{color:"secondary",variant:"contained","data-testid":"cancel-button",onClick:n,sx:{fontWeight:"bold"}},"Close")))},KN=function(e){var t=e.runnable,n=VN().classes,r=lc(i.useState([]),2),o=r[0],a=r[1],l=lc(i.useState(!1),2),s=l[0],c=l[1];return i.createElement(i.Fragment,null,i.createElement(nu,{display:"flex",justifyContent:"end",minWidth:"fit-content",p:2},i.createElement(PS,{color:"secondary",className:n.textButton,onClick:function(){var e=t.verifies_requirements;e&&Promise.all(e.map(function(e){return function(e){return EI.apply(this,arguments)}(e)})).then(function(e){a(e.filter(function(e){return!!e})),c(!0)}).catch(function(e){Pr("Error fetching specification requirements: ".concat(e.message),{variant:"error"})})}},"View Specification Requirements")),o&&fN(t)&&i.createElement(UN,{requirements:o,modalVisible:s,hideModal:function(){return c(!1)}}))},GN=function(e){var t=e.testGroup,n=aN().classes,r=lc(i.useState(!1),2),o=r[0],a=r[1];return i.createElement(nu,{py:1,className:n.descriptionContainer},i.createElement(_$,{disableGutters:!0,elevation:0,key:"".concat(t.id,"-description"),className:n.accordion,slotProps:{transition:{unmountOnExit:!0}},onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(!1)}},i.createElement(V$,{id:o?"":"".concat(t.id,"-description-summary"),"aria-controls":"".concat(t.id,"-description-detail"),expandIcon:i.createElement(ML,{sx:{padding:"0 5px"}}),sx:{userSelect:"auto"}},i.createElement(AS,{sx:{p:0}},i.createElement(_R,{sx:{p:0}},i.createElement(Em,{primary:i.createElement(Su,{className:n.descriptionHeader},"About ",t.short_title||t.title)})))),i.createElement(dS,null),i.createElement(G$,{title:o?"":"".concat(t.id,"-description-detail"),className:n.descriptionDetailContainer},i.createElement(nu,{className:"".concat(n.accordionDetail," ").concat(n.description)},i.createElement(lx,{remarkPlugins:[ek]},t.description),fN(t)&&i.createElement(KN,{runnable:t})))))};function YN(e){return fc("MuiBadge",e)}const XN=Jc("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),QN=qc("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),JN=qc("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Wc(n.anchorOrigin.vertical)}${Wc(n.anchorOrigin.horizontal)}${Wc(n.overlap)}`],"default"!==n.color&&t[`color${Wc(n.color)}`],n.invisible&&t.invisible]}})(mu(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(hu(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${XN.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${XN.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${XN.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${XN.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${XN.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${XN.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${XN.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${XN.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function ZN(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const e_=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:o,classes:a,component:i,components:l={},componentsProps:s={},children:c,overlap:u="rectangular",color:d="default",invisible:p=!1,max:f=99,badgeContent:m,slots:h,slotProps:g,showZero:v=!1,variant:y="standard",...b}=n,{badgeContent:x,invisible:w,max:k,displayValue:S}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=WR({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:f,invisible:p,badgeContent:m,showZero:v}),E=WR({anchorOrigin:ZN(r),color:d,overlap:u,variant:y,badgeContent:m}),C=w||null==x&&"dot"!==y,{color:I=d,overlap:P=u,anchorOrigin:O,variant:T=y}=C?E:n,R=ZN(O),M="dot"!==T?S:void 0,A={...n,badgeContent:x,invisible:C,max:k,displayValue:M,showZero:v,anchorOrigin:R,color:I,overlap:P,variant:T},L=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return mc({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Wc(n.vertical)}${Wc(n.horizontal)}`,`anchorOrigin${Wc(n.vertical)}${Wc(n.horizontal)}${Wc(o)}`,`overlap${Wc(o)}`,"default"!==t&&`color${Wc(t)}`]},YN,i)})(A),j={slots:{root:h?.root??l.Root,badge:h?.badge??l.Badge},slotProps:{root:g?.root??s.root,badge:g?.badge??s.badge}},[$,N]=Qf("root",{elementType:QN,externalForwardedProps:{...j,...b},ownerState:A,className:cc(L.root,o),ref:t,additionalProps:{as:i}}),[_,D]=Qf("badge",{elementType:JN,externalForwardedProps:j,ownerState:A,className:L.badge});return(0,Dc.jsxs)($,{...N,children:[c,(0,Dc.jsx)(_,{...D,children:M})]})}),t_=e_,n_=function(e){var t=e.Icon,n=e.counts,r=e.color,o=e.badgeStyle,a=e.description,l=e.view,s=e.panelIndex,c=e.setPanelIndex,u=e.setOpen,d=X$().classes,p=function(){"report"!==l&&(c&&void 0!==s&&c(s),u&&u(!0))};return i.createElement(t_,{badgeContent:n,max:9,overlap:"circular",className:cc([r,o,d.badgeBase]),onClick:function(e){e.stopPropagation(),p()},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&p()}},i.createElement(dm,{describeChild:!0,title:a},i.createElement(t,{"aria-label":"View ".concat(a),"aria-hidden":!1,tabIndex:0,className:cc([d.badgeIcon,r]),onClick:function(e){e.stopPropagation(),p()},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&p()}})))},r_=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),o_=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),a_=Jd((0,Dc.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),i_=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.5 16.5v-9l7 4.5z"}),"PlayCircle"),l_=function(e){var t=e.runTests,n=e.runnable,r=e.runnableType,o=e.buttonText,a=qC(function(e){return e.currentRunnables}),l=qC(function(e){return e.readOnly}),s=!1!==n.user_runnable,c=mN(a,ct().pathname),u=i.createElement(Bd,{variant:"contained",disabled:c,color:"secondary",size:"small",disableElevation:!0,onClick:function(){t(r,n.id)},startIcon:l?i.createElement(ZC,null):i.createElement(a_,null),"data-testid":"runButton-".concat(n.id)},o),d=i.createElement(dm,{describeChild:!0,title:"Run ".concat(n.title)},i.createElement(i_,{"aria-label":"Run ".concat(n.title).concat(c?" Disabled - Test Run in Progress":""),"aria-hidden":!1,tabIndex:0,color:c?"disabled":"secondary","data-testid":"runButton-".concat(n.id),onClick:function(){c||t(r,n.id)},onKeyDown:function(e){e.stopPropagation(),"Enter"!==e.key||c||t(r,n.id)},sx:{margin:"0 8px",padding:"0.25em 0.25em",":hover":c?{}:{background:Mh.palette.common.grayLight,borderRadius:"50%"}}})),p=i.createElement(dm,{describeChild:!0,title:"View ".concat(n.title," Inputs")},i.createElement(ZC,{"aria-label":"View ".concat(n.title).concat(c?" Disabled - Test Run in Progress":""),"aria-hidden":!1,tabIndex:0,color:c?"disabled":"secondary","data-testid":"runButton-".concat(n.id),onClick:function(){c||t(r,n.id)},onKeyDown:function(e){e.stopPropagation(),"Enter"!==e.key||c||t(r,n.id)},sx:{margin:"0 8px",padding:"0.25em 0.25em",":hover":c?{}:{background:Mh.palette.common.grayLight,borderRadius:"50%"}}}));return s?o?u:l?p:d:i.createElement(i.Fragment,null)},s_=function(e){var t,n=e.type,r=X$().classes,o=r[n];return"error"===n?t=i.createElement(NC,{className:o}):"warning"===n?t=i.createElement(Y$,{className:o}):"info"===n&&(t=i.createElement(o_,{className:o})),i.createElement(nu,{display:"flex",alignItems:"center"},t,i.createElement(Su,{variant:"subtitle2",component:"p",p:1,className:cc([r.bolderText,o])},n))};var c_=function(e,t){return e.filter(function(e){return e.type===t}).length};const u_=function(e){var t=e.messages,n=X$().classes,r=i.createElement(wC,{key:"msg-header"},["Type","Message"].map(function(e){return i.createElement(IC,{key:e,className:"Message"===e?n.messageMessage:""},i.createElement(Su,{variant:"overline",className:n.bolderText},e))})),o=function(e){var t=["error","warning","info"],n=e.sort(function(e,n){return t.indexOf(e.type)-t.indexOf(n.type)});return n}(t).map(function(e,t){return i.createElement(wC,{key:"msgRow-".concat(t)},i.createElement(IC,null,i.createElement(s_,{type:e.type})),i.createElement(IC,{className:n.messageMessage},i.createElement(lx,{remarkPlugins:[ek]},e.message)))});return t.length>0?i.createElement(sC,{size:"small"},i.createElement(nN,null,r),i.createElement(hC,null,o)):i.createElement(nu,{p:2},i.createElement(Su,{variant:"subtitle2",component:"p"},"No Messages"))},d_=Jd((0,Dc.jsx)("path",{d:"M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2M11 16l4-4-4-4v3H1v2h10z"}),"Input"),p_=Jd((0,Dc.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");function f_(e){return fc("MuiCardHeader",e)}const m_=Jc("MuiCardHeader",["root","avatar","action","content","title","subheader"]),h_=qc("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${m_.title}`]:t.title},{[`& .${m_.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),g_=qc("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),v_=qc("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),y_=qc("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${vu.root}:where(& .${m_.title})`]:{display:"block"},[`.${vu.root}:where(& .${m_.subheader})`]:{display:"block"}}),b_=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiCardHeader"}),{action:r,avatar:o,component:a="div",disableTypography:i=!1,subheader:l,subheaderTypographyProps:s,title:c,titleTypographyProps:u,slots:d={},slotProps:p={},...f}=n,m={...n,component:a,disableTypography:i},h=(e=>{const{classes:t}=e;return mc({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},f_,t)})(m),g={slots:d,slotProps:{title:u,subheader:s,...p}};let v=c;const[y,b]=Qf("title",{className:h.title,elementType:Su,externalForwardedProps:g,ownerState:m,additionalProps:{variant:o?"body2":"h5",component:"span"}});null==v||v.type===Su||i||(v=(0,Dc.jsx)(y,{...b,children:v}));let x=l;const[w,k]=Qf("subheader",{className:h.subheader,elementType:Su,externalForwardedProps:g,ownerState:m,additionalProps:{variant:o?"body2":"body1",color:"textSecondary",component:"span"}});null==x||x.type===Su||i||(x=(0,Dc.jsx)(w,{...k,children:x}));const[S,E]=Qf("root",{ref:t,className:h.root,elementType:h_,externalForwardedProps:{...g,...f,component:a},ownerState:m}),[C,I]=Qf("avatar",{className:h.avatar,elementType:g_,externalForwardedProps:g,ownerState:m}),[P,O]=Qf("content",{className:h.content,elementType:y_,externalForwardedProps:g,ownerState:m}),[T,R]=Qf("action",{className:h.action,elementType:v_,externalForwardedProps:g,ownerState:m});return(0,Dc.jsxs)(S,{...E,children:[o&&(0,Dc.jsx)(C,{...I,children:o}),(0,Dc.jsxs)(P,{...O,children:[v,x]}),r&&(0,Dc.jsx)(T,{...R,children:r})]})}),x_=b_;var w_=function(e){var t=(0,i.useRef)(e),n=(0,i.useRef)(),r=(0,i.useRef)(!1),o=(0,i.useRef)(!1),a=lc((0,i.useState)(0),2)[1];r.current&&(o.current=!0),(0,i.useEffect)(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])};const k_=Jd((0,Dc.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),S_=function(e){var t=e.collapsed,n=void 0!==t&&t,r=e.setCollapsed,o=e.size;return i.createElement(dm,{title:n?"Expand panel":"Collapse panel"},i.createElement(Kd,{size:o,color:"secondary","aria-label":n?"expand button":"collapse button",onClick:function(){return r(!n)}},n?i.createElement(ML,{fontSize:"inherit"}):i.createElement(k_,{fontSize:"inherit"})))};const E_=Vs()(function(e){return{modalTitle:{fontWeight:600,fontSize:"1.5rem"},modalTitleURL:{overflow:"hidden",maxHeight:"1.6em",wordBreak:"break-all",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1"},headerName:{fontWeight:600},codeBlock:{overflow:"auto",fontSize:"small",marginTop:"16px"},codeBlockHeader:{cursor:"pointer",":hover":{backgroundColor:Mh.palette.common.blueLightest}},code:{textWrap:"wrap"},inputIcon:{float:"right",verticalAlign:"middle",marginTop:"4px"}}}),C_=function(e){var t=e.body,n=e.headers,r=e.title,o=E_().classes,a=lc(i.useState(!0),2),l=a[0],s=a[1],c=lc(i.useState(""),2),u=c[0],d=c[1];w_(function(){t&&t.length>0&&d(function(e,t){if(!t)return e;var n=t.find(function(e){return"content-type"===e.name}),r=!1;if(n){var o=n.value;(o.includes("application/fhir+json")||o.includes("application/json"))&&(r=!0)}return r?function(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch(e){return Pr("Input is not a JSON file: ".concat(e),{variant:"error"}),""}}(e):e}(t,n))});var p=(null==t?void 0:t.split("\n").length)||0,f="".concat(r||"Code"," (").concat(p," line").concat(1===p?"":"s",")");return t&&t.length>0?i.createElement(vS,{variant:"outlined",className:o.codeBlock,"data-testid":"code-block"},i.createElement(x_,{title:f,titleTypographyProps:{sx:{fontSize:20}},action:i.createElement(nu,{display:"flex"},i.createElement(gO,{copyText:u}),i.createElement(S_,{setCollapsed:s,collapsed:l})),onClick:function(){return s(!l)},className:o.codeBlockHeader,sx:{backgroundColor:l?"unset":Mh.palette.common.blueLightest}}),i.createElement(qL,{in:!l},i.createElement(dS,null),i.createElement(BR,{sx:{pt:0}},i.createElement("pre",{"data-testid":"pre"},i.createElement("code",{"data-testid":"code",className:o.code},u))))):null},I_=function(e){var t=e.headers,n=E_().classes;return i.createElement(nC,{component:Lu,variant:"outlined"},i.createElement(sC,{size:"small"},i.createElement(hC,null,t.map(function(e){return i.createElement(wC,{key:e.name},i.createElement(IC,{className:n.headerName,component:"th",scope:"row"},e.name,":"),i.createElement(IC,{align:"left"},e.value))}))))},P_=function(e){var t=e.request,n=e.hideModal,r=e.modalVisible,o=e.usedRequest,a=E_().classes,l=null!=t&&t.timestamp?new Date(null==t?void 0:t.timestamp):null,s=i.createElement(dm,{title:"This request was performed in another test and the result is used by this test"},i.createElement(d_,{className:a.inputIcon})),c=i.createElement(nu,{display:"flex",className:a.modalTitle},i.createElement(dm,{title:"".concat((null==t?void 0:t.verb.toUpperCase())||""," ").concat((null==t?void 0:t.url)||""," → ").concat((null==t?void 0:t.status)||""),placement:"bottom-start"},i.createElement(nu,{display:"flex"},i.createElement(nu,{display:"flex",pr:1},null==t?void 0:t.verb.toUpperCase()),i.createElement(nu,{pr:1,className:a.modalTitleURL},null==t?void 0:t.url),(null==t?void 0:t.url)&&i.createElement(gO,{copyText:t.url}),i.createElement(nu,{display:"flex",flexShrink:0},"→ ",null==t?void 0:t.status))),i.createElement(nu,{display:"flex",flexGrow:1,pr:1}),o&&i.createElement(nu,{display:"flex",flexShrink:1,flexDirection:"row-reverse",px:2},s));return t?i.createElement(HE,{open:r,fullWidth:!0,maxWidth:"md",onClose:n,"data-testid":"requestDetailModal",onKeyDown:function(e){return e.stopPropagation()}},i.createElement(GE,null,c),i.createElement(dS,null),i.createElement(JE,null,i.createElement(nu,{pb:3},i.createElement(Su,{variant:"h5",component:"h3",pb:l?0:2},"Request"),l&&i.createElement(Su,{variant:"overline"},l.toLocaleString()),i.createElement(I_,{headers:t.request_headers||[]}),t.request_body&&i.createElement(C_,{body:t.request_body,headers:t.request_headers,title:"Request Body"})),i.createElement(nu,{pb:3},i.createElement(Su,{variant:"h5",component:"h3",pb:2},"Response"),i.createElement(I_,{headers:t.response_headers||[]}),t.response_body&&i.createElement(C_,{body:t.response_body,headers:t.response_headers,title:"Response Body"}))),i.createElement(RC,null,i.createElement(Bd,{color:"secondary",variant:"contained","data-testid":"cancel-button",onClick:n,sx:{fontWeight:"bold"}},"Close"))):null},O_=function(e){var t=e.requests,n=e.resultId,r=e.updateRequest,o=e.view,a=X$().classes,l=Fr().enqueueSnackbar,s=lc(i.useState(!1),2),c=s[0],u=s[1],d=lc(i.useState(),2),p=d[0],f=d[1],m=i.createElement(wC,{key:"req-header"},["Type","URL","Status"].map(function(e){return i.createElement(IC,{key:e},i.createElement(Su,{variant:"overline",className:a.bolderText},e))}),i.createElement(IC,{key:"Direction",role:"none","aria-hidden":"true","aria-label":"header-request-direction"}),"run"===o&&i.createElement(IC,{key:"Details",role:"none","aria-hidden":"true","aria-label":"header-request-details"})),h=k$(t).sort(function(e,t){return e.index-t.index}).map(function(e,t){return i.createElement(wC,{key:"reqRow-".concat(t)},i.createElement(IC,null,i.createElement(nu,{display:"flex"},function(e){if(e.result_id!==n)return i.createElement(dm,{title:"This request was performed in another test and the result is used by this test"},i.createElement(d_,{color:"secondary",fontSize:"small",tabIndex:0,"aria-hidden":"false",sx:{pr:1}}))}(e),i.createElement(Su,{variant:"subtitle2",component:"p"},e.verb))),i.createElement(IC,{className:a.requestUrlContainer},i.createElement(nu,{display:"flex",alignItems:"center"},i.createElement(dm,{title:e.url,placement:"bottom-start"},i.createElement(Su,{variant:"subtitle2",component:"p",sx:"run"===o?{overflow:"hidden",maxHeight:"1.5em",wordBreak:"break-all",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1"}:{}},e.url)),i.createElement(gO,{copyText:e.url,size:"small",view:o}))),i.createElement(IC,null,i.createElement(Su,{variant:"subtitle2",component:"p",className:a.bolderText},e.status)),i.createElement(IC,null,"incoming"===e.direction&&i.createElement(dm,{title:"Direction: incoming"},i.createElement(p_,null))),"run"===o&&i.createElement(IC,null,function(e){return i.createElement(Bd,{onClick:function(){return function(e){var t,o;void 0===e.request_headers?(t=e.id,o=Xs("/requests/".concat(t)),fetch(o).then(function(e){return e.json()}).then(function(e){return e})).then(function(t){t?(r(e.id,n,t),f(t),u(!0)):l("Failed to update request",{variant:"error"})}).catch(function(e){l("Error getting request details: ".concat(e.message),{variant:"error"})}):(f(e),u(!0))}(e)},color:"secondary",variant:"contained",size:"small",disableElevation:!0},"Details")}(e)))});return i.createElement(i.Fragment,null,t.length>0?i.createElement(nC,{"data-testid":"requests-list"},i.createElement(sC,{size:"small",className:a.table},i.createElement(nN,null,m),i.createElement(hC,null,h))):i.createElement(nu,{p:2,"data-testid":"requests-list"},i.createElement(Su,{variant:"subtitle2",component:"p"},"No Requests")),i.createElement(P_,{request:p,modalVisible:c,hideModal:function(){return u(!1)},usedRequest:(null==p?void 0:p.result_id)!==n,"data-testid":"requests-detail-modal"}))};function T_(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const R_={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},M_=Jd((0,Dc.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),A_=Jd((0,Dc.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function L_(e){return fc("MuiTabScrollButton",e)}const j_=Jc("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),$_=qc(bd,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${j_.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),N_=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTabScrollButton"}),{className:r,slots:o={},slotProps:a={},direction:i,orientation:l,disabled:s,...c}=n,u=rp(),d={isRtl:u,...n},p=(e=>{const{classes:t,orientation:n,disabled:r}=e;return mc({root:["root",n,r&&"disabled"]},L_,t)})(d),f=o.StartScrollButtonIcon??M_,m=o.EndScrollButtonIcon??A_,h=zf({elementType:f,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=zf({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,Dc.jsx)($_,{component:"div",className:cc(p.root,r),ref:t,role:null,ownerState:d,tabIndex:null,...c,style:{...c.style,..."vertical"===l&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:"left"===i?(0,Dc.jsx)(f,{...h}):(0,Dc.jsx)(m,{...g})})}),__=N_;function D_(e){return fc("MuiTabs",e)}const z_=Jc("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),F_=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,B_=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,W_=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},H_=qc("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${z_.scrollButtons}`]:t.scrollButtons},{[`& .${z_.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(mu(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${z_.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),V_=qc("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),q_=qc("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),U_=qc("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(mu(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),K_=qc(function(e){const{onChange:t,...n}=e,r=i.useRef(),o=i.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return fm(()=>{const e=Vk(()=>{const e=r.current;a(),e!==r.current&&t(r.current)}),n=qk(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),i.useEffect(()=>{a(),t(r.current)},[t]),(0,Dc.jsx)("div",{style:R_,...n,ref:o})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),G_={},Y_=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTabs"}),r=gs(),o=rp(),{"aria-label":a,"aria-labelledby":l,action:s,centered:c=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:f=!1,indicatorColor:m="primary",onChange:h,orientation:g="horizontal",ScrollButtonComponent:v,scrollButtons:y="auto",selectionFollowsFocus:b,slots:x={},slotProps:w={},TabIndicatorProps:k={},TabScrollButtonProps:S={},textColor:E="primary",value:C,variant:I="standard",visibleScrollbar:P=!1,...O}=n,T="scrollable"===I,R="vertical"===g,M=R?"scrollTop":"scrollLeft",A=R?"top":"left",L=R?"bottom":"right",j=R?"clientHeight":"clientWidth",$=R?"height":"width",N={...n,component:p,allowScrollButtonsMobile:f,indicatorColor:m,orientation:g,vertical:R,scrollButtons:y,textColor:E,variant:I,visibleScrollbar:P,fixed:!T,hideScrollbar:T&&!P,scrollableX:T&&!R,scrollableY:T&&R,centered:c&&!T,scrollButtonsHideMobile:!f},_=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:s}=e;return mc({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},D_,s)})(N),D=zf({elementType:x.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:N}),z=zf({elementType:x.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:N}),[F,B]=i.useState(!1),[W,H]=i.useState(G_),[V,q]=i.useState(!1),[U,K]=i.useState(!1),[G,Y]=i.useState(!1),[X,Q]=i.useState({overflow:"hidden",scrollbarWidth:0}),J=new Map,Z=i.useRef(null),ee=i.useRef(null),te={slots:x,slotProps:{indicator:k,scrollButton:S,...w}},ne=()=>{const e=Z.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==C){const e=ee.current.children;if(e.length>0){const t=e[J.get(C)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},re=Hu(()=>{const{tabsMeta:e,tabMeta:t}=ne();let n,r=0;R?(n="top",t&&e&&(r=t.top-e.top+e.scrollTop)):(n=o?"right":"left",t&&e&&(r=(o?-1:1)*(t[n]-e[n]+e.scrollLeft)));const a={[n]:r,[$]:t?t[$]:0};if("number"!=typeof W[n]||"number"!=typeof W[$])H(a);else{const e=Math.abs(W[n]-a[n]),t=Math.abs(W[$]-a[$]);(e>=1||t>=1)&&H(a)}}),oe=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:a=T_,duration:i=300}=r;let l=null;const s=t[e];let c=!1;const u=r=>{if(c)return void o(new Error("Animation cancelled"));null===l&&(l=r);const d=Math.min(1,(r-l)/i);t[e]=a(d)*(n-s)+s,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(u)};s===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(M,Z.current,e,{duration:r.transitions.duration.standard}):Z.current[M]=e},ae=e=>{let t=Z.current[M];t+=R?e:e*(o?-1:1),oe(t)},ie=()=>{const e=Z.current[j];let t=0;const n=Array.from(ee.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[j]>e){0===r&&(t=e);break}t+=o[j]}return t},le=()=>{ae(-1*ie())},se=()=>{ae(ie())},[ce,{onChange:ue,...de}]=Qf("scrollbar",{className:cc(_.scrollableX,_.hideScrollbar),elementType:K_,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:N}),pe=i.useCallback(e=>{ue?.(e),Q({overflow:null,scrollbarWidth:e})},[ue]),[fe,me]=Qf("scrollButtons",{className:cc(_.scrollButtons,S.className),elementType:__,externalForwardedProps:te,ownerState:N,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:D,endScrollButtonIcon:z}}}),he=Hu(e=>{const{tabsMeta:t,tabMeta:n}=ne();if(n&&t)if(n[A]<t[A]){const r=t[M]+(n[A]-t[A]);oe(r,{animation:e})}else if(n[L]>t[L]){const r=t[M]+(n[L]-t[L]);oe(r,{animation:e})}}),ge=Hu(()=>{T&&!1!==y&&Y(!G)});i.useEffect(()=>{const e=Vk(()=>{Z.current&&re()});let t;const n=qk(Z.current);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(r=new MutationObserver(n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),ge()}),r.observe(ee.current,{childList:!0})),()=>{e.clear(),n.removeEventListener("resize",e),r?.disconnect(),t?.disconnect()}},[re,ge]),i.useEffect(()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&T&&!1!==y){const n=e[0],r=e[t-1],o={root:Z.current,threshold:.99},a=new IntersectionObserver(e=>{q(!e[0].isIntersecting)},o);a.observe(n);const i=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},o);return i.observe(r),()=>{a.disconnect(),i.disconnect()}}},[T,y,G,u?.length]),i.useEffect(()=>{B(!0)},[]),i.useEffect(()=>{re()}),i.useEffect(()=>{he(G_!==W)},[he,W]),i.useImperativeHandle(s,()=>({updateIndicator:re,updateScrollButtons:ge}),[re,ge]);const[ve,ye]=Qf("indicator",{className:cc(_.indicator,k.className),elementType:U_,externalForwardedProps:te,ownerState:N,additionalProps:{style:W}}),be=(0,Dc.jsx)(ve,{...ye});let xe=0;const we=i.Children.map(u,e=>{if(!i.isValidElement(e))return null;const t=void 0===e.props.value?xe:e.props.value;J.set(t,xe);const n=t===C;return xe+=1,i.cloneElement(e,{fullWidth:"fullWidth"===I,indicator:n&&!F&&be,selected:n,selectionFollowsFocus:b,onChange:h,textColor:E,value:t,...1!==xe||!1!==C||e.props.tabIndex?{}:{tabIndex:0}})}),ke=(()=>{const e={};e.scrollbarSizeListener=T?(0,Dc.jsx)(ce,{...de,onChange:pe}):null;const t=T&&("auto"===y&&(V||U)||!0===y);return e.scrollButtonStart=t?(0,Dc.jsx)(fe,{direction:o?"right":"left",onClick:le,disabled:!V,...me}):null,e.scrollButtonEnd=t?(0,Dc.jsx)(fe,{direction:o?"left":"right",onClick:se,disabled:!U,...me}):null,e})(),[Se,Ee]=Qf("root",{ref:t,className:cc(_.root,d),elementType:H_,externalForwardedProps:{...te,...O,component:p},ownerState:N}),[Ce,Ie]=Qf("scroller",{ref:Z,className:_.scroller,elementType:V_,externalForwardedProps:te,ownerState:N,additionalProps:{style:{overflow:X.overflow,[R?"margin"+(o?"Left":"Right"):"marginBottom"]:P?void 0:-X.scrollbarWidth}}}),[Pe,Oe]=Qf("list",{ref:ee,className:cc(_.list,_.flexContainer),elementType:q_,externalForwardedProps:te,ownerState:N,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=ee.current,n=OS(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===g?"ArrowLeft":"ArrowUp",a="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&o&&(r="ArrowRight",a="ArrowLeft"),e.key){case r:e.preventDefault(),W_(t,n,B_);break;case a:e.preventDefault(),W_(t,n,F_);break;case"Home":e.preventDefault(),W_(t,null,F_);break;case"End":e.preventDefault(),W_(t,null,B_)}})(t),e.onKeyDown?.(t)}})});return(0,Dc.jsxs)(Se,{...Ee,children:[ke.scrollButtonStart,ke.scrollbarSizeListener,(0,Dc.jsxs)(Ce,{...Ie,children:[(0,Dc.jsx)(Pe,{"aria-label":a,"aria-labelledby":l,"aria-orientation":"vertical"===g?"vertical":null,role:"tablist",...Oe,children:we}),F&&be]}),ke.scrollButtonEnd]})}),X_=Y_;function Q_(e){return fc("MuiTab",e)}const J_=Jc("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Z_=qc(bd,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Wc(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${J_.iconWrapper}`]:t.iconWrapper},{[`& .${J_.icon}`]:t.icon}]}})(mu(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${J_.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${J_.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${J_.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${J_.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${J_.selected}`]:{opacity:1},[`&.${J_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${J_.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${J_.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${J_.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${J_.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),eD=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:l,icon:s,iconPosition:c="top",indicator:u,label:d,onChange:p,onClick:f,onFocus:m,selected:h,selectionFollowsFocus:g,textColor:v="inherit",value:y,wrapped:b=!1,...x}=n,w={...n,disabled:o,disableFocusRipple:a,selected:h,icon:!!s,iconPosition:c,label:!!d,fullWidth:l,textColor:v,wrapped:b},k=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:l,disabled:s}=e;return mc({root:["root",a&&i&&"labelIcon",`textColor${Wc(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",s&&"disabled"],icon:["iconWrapper","icon"]},Q_,t)})(w),S=s&&d&&i.isValidElement(s)?i.cloneElement(s,{className:cc(k.icon,s.props.className)}):s;return(0,Dc.jsxs)(Z_,{focusRipple:!a,className:cc(k.root,r),ref:t,role:"tab","aria-selected":h,disabled:o,onClick:e=>{!h&&p&&p(e,y),f&&f(e)},onFocus:e=>{g&&!h&&p&&p(e,y),m&&m(e)},ownerState:w,tabIndex:h?0:-1,...x,children:["top"===c||"start"===c?(0,Dc.jsxs)(i.Fragment,{children:[S,d]}):(0,Dc.jsxs)(i.Fragment,{children:[d,S]}),u]})}),tD=eD;var nD=qc(function(e){return i.createElement(tD,vc({disableRipple:!0},e))})(function(e){var t=e.theme;return{pointerEvents:"auto",fontWeight:"bold","&:hover, :focus-within":{color:t.palette.common.grayDarkest},"&.Mui-selected":{color:t.palette.common.orangeDark,"&:hover, :focus-within":{color:t.palette.primary.dark}}}});const rD=nD,oD=function(e){var t=e.children,n=e.id,r=e.index,o=e.currentTabIndex;return i.createElement("div",{role:"tabpanel",hidden:o!==r,id:"".concat(n,"-tabpanel-").concat(r),"aria-labelledby":"".concat(n,"-tab-").concat(r),style:{overflow:"auto",backgroundColor:Mh.palette.common.white}},o===r&&i.createElement("div",null,t))},aD=function(e){var t,n,r,o,a,l=e.test,s=e.currentTabIndex,c=e.setTabIndex,u=e.updateRequest,d=e.tabs,p=X$().classes;(0,i.useEffect)(function(){c(s)},[s]);var f=i.createElement(nu,{mx:2},i.createElement(Su,{variant:"subtitle2",component:"div"},(0,i.useMemo)(function(){return i.createElement(lx,{remarkPlugins:[ek]},l.description||"")},[l.description])));return i.createElement(vS,{"data-testid":"test-run-detail"},i.createElement(X_,{value:s,variant:"scrollable",className:p.tabs,onChange:function(e,t){c(t)}},d.map(function(e,t){return function(e,t){var n=(!e.value||0===e.value.length)&&"About"!==e.label;return i.createElement(rD,vc({key:"".concat(e.label,"-").concat(t),label:n?i.createElement(dm,{title:"No ".concat(e.label.toLowerCase()," available")},i.createElement(Su,{variant:"button"},e.label)):e.label},function(e){return{id:"".concat(l.id,"-tab-").concat(e),"aria-controls":"".concat(l.id,"-tabpanel-").concat(e)}}(t),{disabled:n}))}(e,t)})),i.createElement(dS,null),i.createElement(oD,{id:l.id,currentTabIndex:s,index:0},i.createElement(u_,{messages:(null===(t=l.result)||void 0===t?void 0:t.messages)||[]})),i.createElement(oD,{id:l.id,currentTabIndex:s,index:1},u&&i.createElement(O_,{requests:(null===(n=l.result)||void 0===n?void 0:n.requests)||[],resultId:(null===(r=l.result)||void 0===r?void 0:r.id)||"",updateRequest:u,view:"run"})),i.createElement(oD,{id:l.id,currentTabIndex:s,index:2},i.createElement(rN,{values:(null===(o=l.result)||void 0===o?void 0:o.inputs)||[],noValuesMessage:"No Inputs",headerName:"Input"})),i.createElement(oD,{id:l.id,currentTabIndex:s,index:3},i.createElement(rN,{values:(null===(a=l.result)||void 0===a?void 0:a.outputs)||[],noValuesMessage:"No Outputs",headerName:"Output"})),i.createElement(oD,{id:l.id,currentTabIndex:s,index:4},pN(l,f)?f:i.createElement(nu,{p:2},i.createElement(Su,{variant:"subtitle1",component:"p"},"No Description")),fN(l)&&i.createElement(KN,{runnable:l})))},iD=function(e){var t,n,r,o,a,l,s,c,u,d,p,f,m,h=e.test,g=e.runTests,v=e.updateRequest,y=e.showReportDetails,b=void 0!==y&&y,x=e.view,w=X$().classes,k=ct().hash.replace("#","").split("/")[0],S=!(null===(t=h.result)||void 0===t||!t.messages)&&(null===(n=h.result)||void 0===n?void 0:n.messages.length)>0,E=!(null===(r=h.result)||void 0===r||!r.requests)&&(null===(o=h.result)||void 0===o?void 0:o.requests.length)>0,C=lc(i.useState(!1),2),I=C[0],P=C[1],O=lc(i.useState(!1),2),T=O[0],R=O[1],M=lc(i.useState(0),2),A=M[0],L=M[1],j=[{label:"Messages",value:null===(a=h.result)||void 0===a?void 0:a.messages},{label:"Requests",value:null===(l=h.result)||void 0===l?void 0:l.requests},{label:"Inputs",value:null===(s=h.result)||void 0===s?void 0:s.inputs},{label:"Outputs",value:null===(c=h.result)||void 0===c?void 0:c.outputs},{label:"About",value:h.description}];(0,i.useEffect)(function(){R("report"===x&&b&&(S||E)||k===h.short_id),L(V())},[b]);var $,N,_=i.createElement(nu,{display:"inline-flex"},i.createElement(UC,{result:h.result,isRunning:h.is_running})),D=i.createElement(i.Fragment,null,h.short_id&&i.createElement(Su,{className:w.shortId},"".concat(h.short_id," ")),h.optional&&i.createElement(Su,{className:w.optionalLabel},"Optional "),i.createElement(Su,{className:w.labelText},h.title),h.is_simulation_verification&&i.createElement(iN,null)),z=i.createElement(Em,{primary:D,secondary:(null===(u=h.result)||void 0===u?void 0:u.result_message)&&i.createElement(lx,{remarkPlugins:[ek],className:w.resultMessageMarkdown},h.result.result_message),slotProps:{secondary:{component:"div"}},className:w.testText}),F=void 0!==h.result&&null!==($=h.result)&&void 0!==$&&$.messages?(N=h.result.messages,{errors:c_(N,"error"),warnings:c_(N,"warning"),infos:c_(N,"info")}):{errors:0,warnings:0,infos:0},B=(null===(d=h.result)||void 0===d?void 0:d.requests)&&h.result.requests.length>0&&i.createElement(n_,{Icon:r_,counts:h.result.requests.length,color:w.request,badgeStyle:w.requestBadge,description:"".concat(h.result.requests.length," request(s)"),view:x,panelIndex:1,setOpen:R,setPanelIndex:L}),W="run"===x&&g&&i.createElement(nu,{onClick:function(e){return e.stopPropagation()},display:"flex",justifyContent:"center"},i.createElement(l_,{runnable:h,runnableType:vI.Test,runTests:g})),H=i.createElement(i.Fragment,null,S&&i.createElement(vS,{sx:E?{mb:2}:{}},i.createElement(u_,{messages:(null===(p=h.result)||void 0===p?void 0:p.messages)||[]})),v&&E&&i.createElement(vS,null,i.createElement(O_,{requests:(null===(f=h.result)||void 0===f?void 0:f.requests)||[],resultId:(null===(m=h.result)||void 0===m?void 0:m.id)||"",updateRequest:v,view:"report"}))),V=function(){var e=j.findIndex(function(e){var t;return"About"!==e.label&&e.value&&(null===(t=e.value)||void 0===t?void 0:t.length)>0});return-1===e?j.findIndex(function(e){return"About"===e.label}):e},q=function(){"report"!==x&&(R(!T),L(V()))};return i.createElement(_$,{disableGutters:!0,elevation:0,className:w.accordion,expanded:T,slotProps:{transition:{unmountOnExit:!0}},onClick:q,onKeyDown:function(e){"Enter"===e.key&&L(V())," "===e.key&&q()},onMouseEnter:function(){return P(!0)},onMouseLeave:function(){return P(!1)}},i.createElement(V$,{id:I?"":"".concat(h.id,"-summary"),"data-testid":"".concat(h.id,"-summary"),"aria-controls":"".concat(h.id,"-detail"),role:"report"===x?"region":"button",expandIcon:"run"===x&&i.createElement(dm,{title:"Expand test"},i.createElement(ML,{tabIndex:0,"aria-hidden":"false"})),className:w.accordionSummary,onKeyDown:function(e){"Enter"===e.key&&q()},sx:"report"===x?{cursor:"default !important"}:{}},i.createElement(nu,{display:"flex",alignItems:"center",width:"100%"},_,z,function(e){return"run"!==x?null:e.errors>0?i.createElement(n_,{Icon:NC,counts:e.errors,color:w.error,badgeStyle:w.errorBadge,description:"".concat(e.errors," message(s)"),view:x,panelIndex:0,setOpen:R,setPanelIndex:L}):e.warnings>0?i.createElement(n_,{Icon:Y$,counts:e.warnings,color:w.warning,badgeStyle:w.warningBadge,description:"".concat(e.warnings," message(s)"),view:x,panelIndex:0,setOpen:R,setPanelIndex:L}):e.infos>0?i.createElement(n_,{Icon:o_,counts:e.infos,color:w.info,badgeStyle:w.infoBadge,description:"".concat(e.infos," message(s)"),view:x,panelIndex:0,setOpen:R,setPanelIndex:L}):void 0}(F),B,W)),i.createElement(dS,null),i.createElement(G$,{title:I?"":"".concat(h.id,"-detail"),"data-testid":"".concat(h.id,"-detail"),className:w.accordionDetailContainer,onClick:function(e){return e.stopPropagation()}},"run"===x&&i.createElement(aD,{test:h,tabs:j,currentTabIndex:A,setTabIndex:L,updateRequest:v}),"report"===x&&b&&H))};var lD=function(e){var t,n,r,o,a,l,s=e.testGroup,c=e.runTests,u=e.updateRequest,d=e.showReportDetails,p=e.view,f=aN().classes,m=lc(i.useState(0),2),h=m[0],g=m[1],v=lc(i.useState(0),2),y=v[0],b=v[1],x=lc(i.useState(!1),2),w=x[0],k=x[1],S=lc(i.useState(!1),2),E=S[0],C=S[1],I=lc(i.useState("cancel"===(null===(t=s.result)||void 0===t?void 0:t.result)||"fail"===(null===(n=s.result)||void 0===n?void 0:n.result)||"error"===(null===(r=s.result)||void 0===r?void 0:r.result)||"skip"===(null===(o=s.result)||void 0===o?void 0:o.result)||"report"===p),2),P=I[0],O=I[1];(0,i.useEffect)(function(){var e,t,n,r;E||O("cancel"===(null===(e=s.result)||void 0===e?void 0:e.result)||"fail"===(null===(t=s.result)||void 0===t?void 0:t.result)||"error"===(null===(n=s.result)||void 0===n?void 0:n.result)||"skip"===(null===(r=s.result)||void 0===r?void 0:r.result)||"report"===p),g(T(s,"warning")),b(T(s,"error"))},[s.result]);var T=function(e,t){var n=e.test_groups.map(function(e){return T(e,t)}).reduce(function(e,t){return e+t},0);return e.tests.map(function(e){var n;return(null===(n=e.result)||void 0===n||null===(n=n.messages)||void 0===n?void 0:n.filter(function(e){return e.type===t}).length)||0}).reduce(function(e,t){return e+t},0)+n},R=i.createElement(_$,{disableGutters:!0,elevation:0,className:f.accordion,expanded:P,onChange:function(){"report"!==p&&(O(!P),C(!P))},slotProps:{transition:{unmountOnExit:!0}},onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)}},i.createElement(V$,{id:w?"":"".concat(s.id,"-summary"),"data-testid":"".concat(s.id,"-summary"),"aria-controls":"".concat(s.id,"-detail"),className:f.accordionSummary,expandIcon:"run"===p&&i.createElement(ML,{tabIndex:0,"aria-hidden":"false"}),sx:"report"===p?{cursor:"default !important"}:{}},i.createElement(nu,{display:"flex",alignItems:"center",width:"100%"},i.createElement(nu,{display:"inline-flex"},i.createElement(UC,{result:s.result,isRunning:s.is_running})),i.createElement(AS,{sx:{px:1,width:"100%"}},i.createElement(_R,{sx:{padding:0}},i.createElement(Em,{primary:i.createElement(i.Fragment,null,s.short_id&&i.createElement(Su,{className:f.shortId},"".concat(s.short_id," ")),i.createElement(Su,{className:f.labelText},s.title,s.is_simulation_verification&&i.createElement(iN,null))),secondary:null===(a=s.result)||void 0===a?void 0:a.result_message}))),i.createElement(nu,{display:"flex",justifyContent:"flex-end",width:"100%"},h>0&&i.createElement(n_,{Icon:Y$,counts:h,color:f.warning,badgeStyle:f.warningBadge,description:"".concat(h," message(s)"),view:p,setOpen:O}),y>0&&i.createElement(n_,{Icon:NC,counts:y,color:f.error,badgeStyle:f.errorBadge,description:"".concat(y," message(s)"),view:p,setOpen:O})),"run"===p&&c&&i.createElement(l_,{runnable:s,runnableType:vI.TestGroup,runTests:c}))),i.createElement(dS,null),"report"===p&&s.run_as_group&&s.user_runnable&&s.result&&i.createElement(rN,{headerName:"Input",values:(null===(l=s.result)||void 0===l?void 0:l.inputs)||[]}),i.createElement(G$,{title:w?"":"".concat(s.id,"-detail"),"data-testid":"".concat(s.id,"-detail"),className:f.accordionDetailContainer},"run"===p&&(s.description||s.verifies_requirements&&s.verifies_requirements.length>0)&&i.createElement(GN,{testGroup:s}),i.createElement(nu,{className:f.accordionDetail},"test_groups"in s&&s.test_groups.map(function(e){return i.createElement(lD,{key:"li-".concat(e.id),testGroup:e,runTests:c,updateRequest:u,showReportDetails:d,view:p})}),"tests"in s&&s.tests.map(function(e){return i.createElement(iD,{key:"li-".concat(e.id),test:e,runTests:c,updateRequest:u,showReportDetails:d,view:p})}))));return s.expanded||"report"===p?R:i.createElement(lN,{testGroup:s})};const sD=lD,cD=function(e){var t=e.children,n=e.runnable,r=e.runTests,o=e.view,a=yS().classes,l=qC(function(e){return e.readOnly}),s="".concat(l?"View":"Run").concat(n.run_as_group?"":" All").concat(l?" Inputs":" Tests"),c=(0,i.useMemo)(function(){return n.description?i.createElement(lx,{remarkPlugins:[ek]},n.description):void 0},[n.description]),u="tests"in n?vI.TestGroup:vI.TestSuite;return i.createElement(vS,{variant:"outlined"},i.createElement(nu,{className:a.testGroupCardHeader},n.result&&i.createElement(UC,{result:n.result,isRunning:n.is_running}),i.createElement("span",{className:a.testGroupCardHeaderText},i.createElement(Su,{className:a.currentItem,component:"div"},"short_id"in n&&i.createElement(Su,{className:a.shortId},"".concat(n.short_id," ")),n.title,yI(n)&&n.is_simulation_verification&&i.createElement(iN,null))),i.createElement("span",{className:a.testGroupCardHeaderButton},"run"===o&&r&&i.createElement(l_,{buttonText:s,runnable:n,runnableType:u,runTests:r}))),i.createElement(dS,null),"run"===o&&function(){var e=pN(n,c),t=fN(n);if(e||t)return i.createElement(i.Fragment,null,e&&i.createElement(nu,{mx:2.5,overflow:"auto"},c),t&&i.createElement(KN,{runnable:n}),i.createElement(dS,null))}(),"report"===o&&function(){var e;if(n.user_runnable&&n.result&&n.run_as_group)return i.createElement(rN,{headerName:"Input",values:(null===(e=n.result)||void 0===e?void 0:e.inputs)||[]})}(),i.createElement(nu,null,t))},uD=function(e){var t=e.messages,n=e.testSuiteId,r=pt(),o=yS().classes,a=qC(function(e){return e.readOnly}),l=t.filter(function(e){return"error"===e.type}),s=t.filter(function(e){return"warning"===e.type}),c=t.filter(function(e){return"info"===e.type}),u=function(e,t){return i.createElement(nu,{className:o.alertCursor},i.createElement(bk,{tabIndex:0,severity:e,variant:"filled",onClick:function(){r("#".concat(n||"","/config").concat(a?"/view":""))},onKeyDown:function(e){"Enter"===e.key&&r("#".concat(n||"","/config").concat(a?"/view":""))},className:o.alert},i.createElement(nu,{display:"flex"},i.createElement(nu,{className:o.alertMessage},t))))};return i.createElement(i.Fragment,null,l.length>0&&u("error",l.length>1?"There are ".concat(l.length," configuration errors that must be resolved."):"There is 1 configuration error that must be resolved."),s.length>0&&u("warning",s.length>1?"There are ".concat(s.length," configuration warnings."):"There is 1 configuration warning."),c.length>0&&u("info",c.length>1?"There are ".concat(c.length," configuration errors."):"There is 1 configuration message."))},dD=function(e){var t=e.runnable,n=e.runTests,r=e.updateRequest,o=e.testSuiteId,a=e.configMessages,l=[];null!=t&&t.test_groups&&t.test_groups.length>0?l=t.test_groups.map(function(e){return i.createElement(sD,{key:"li-".concat(e.id),testGroup:e,runTests:n,updateRequest:r,view:"run"})}):"tests"in t&&(l=t.tests.map(function(e){return i.createElement(iD,{key:"li-".concat(e.id),test:e,runTests:n,updateRequest:r,view:"run"})}));var s=a&&i.createElement(uD,{messages:(null==a?void 0:a.filter(function(e){return"error"===e.type}))||[],testSuiteId:o});return i.createElement(i.Fragment,null,s,i.createElement(cD,{runTests:n,runnable:t,view:"run"},l))};function pD(e){return fc("MuiSwitch",e)}const fD=Jc("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),mD=qc("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Wc(n.edge)}`],t[`size${Wc(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${fD.thumb}`]:{width:16,height:16},[`& .${fD.switchBase}`]:{padding:4,[`&.${fD.checked}`]:{transform:"translateX(16px)"}}}}]}),hD=qc(sh,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${fD.input}`]:t.input},"default"!==n.color&&t[`color${Wc(n.color)}`]]}})(mu(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${fD.checked}`]:{transform:"translateX(20px)"},[`&.${fD.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${fD.checked} + .${fD.track}`]:{opacity:.5},[`&.${fD.disabled} + .${fD.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${fD.input}`]:{left:"-100%",width:"300%"}})),mu(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(hu(["light"])).map(([t])=>({props:{color:t},style:{[`&.${fD.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fD.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?Bi(e.palette[t].main,.62):zi(e.palette[t].main,.55)}`}},[`&.${fD.checked} + .${fD.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),gD=qc("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(mu(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),vD=qc("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(mu(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),yD=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:a=!1,size:i="medium",sx:l,slots:s={},slotProps:c={},...u}=n,d={...n,color:o,edge:a,size:i},p=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,l=mc({root:["root",n&&`edge${Wc(n)}`,`size${Wc(r)}`],switchBase:["switchBase",`color${Wc(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},pD,t);return{...t,...l}})(d),f={slots:s,slotProps:c},[m,h]=Qf("root",{className:cc(p.root,r),elementType:mD,externalForwardedProps:f,ownerState:d,additionalProps:{sx:l}}),[g,v]=Qf("thumb",{className:p.thumb,elementType:vD,externalForwardedProps:f,ownerState:d}),y=(0,Dc.jsx)(g,{...v}),[b,x]=Qf("track",{className:p.track,elementType:gD,externalForwardedProps:f,ownerState:d});return(0,Dc.jsxs)(m,{...h,children:[(0,Dc.jsx)(hD,{type:"checkbox",icon:y,checkedIcon:y,ref:t,ownerState:d,...u,classes:{...p,root:p.switchBase},slots:{...s.switchBase&&{root:s.switchBase},...s.input&&{input:s.input}},slotProps:{...c.switchBase&&{root:"function"==typeof c.switchBase?c.switchBase(d):c.switchBase},...c.input&&{input:"function"==typeof c.input?c.input(d):c.input}}}),(0,Dc.jsx)(b,{...x})]})}),bD=yD,xD=Jd((0,Dc.jsx)("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3m-3 11H8v-5h8zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m-1-9H6v4h12z"}),"Print"),wD=function(e){var t,n,r,o,a,l,s=e.testSuite,c=e.suiteOptions,u=e.updateRequest,d=yS().classes,p=rc(function(e){return e.windowIsSmall}),f=lc(i.useState(!1),2),m=f[0],h=f[1],g=null===(t=window)||void 0===t||null===(t=t.location)||void 0===t||null===(t=t.href)||void 0===t||null===(t=t.split("#"))||void 0===t?void 0:t[0],v=c&&c.length>0?" - ".concat(c.map(function(e){return e.label}).join(", ")):"",y=i.createElement(vS,{variant:"outlined",sx:{mb:3}},i.createElement(nu,{className:d.testGroupCardHeader},i.createElement("span",{className:d.testGroupCardHeaderText},i.createElement(Su,{key:"1",color:"text.primary",className:d.currentItem},s.title," Report ",v)),i.createElement("span",{className:d.testGroupCardHeaderButton},i.createElement(Km,null,i.createElement(rh,{control:i.createElement(bD,{checked:m,onChange:function(){return h(!m)},inputProps:{"aria-label":"controlled"},color:"secondary"}),label:"Show details"}))),i.createElement("span",{className:d.testGroupCardHeaderButton},p?i.createElement(Kd,{color:"secondary","aria-label":"Print Report",onClick:function(){return window.print()}},i.createElement(RE,{sx:{width:32,height:32,bgcolor:Mh.palette.secondary.main}},i.createElement(xD,{fontSize:"small"}))):i.createElement(Bd,{variant:"contained",color:"secondary",size:"small",disableElevation:!0,startIcon:i.createElement(xD,null),onClick:function(){return window.print()}},"Print"))),i.createElement(dS,null),i.createElement(nu,{p:1},i.createElement(nu,{className:d.reportSummaryItems},i.createElement(nu,{px:2},i.createElement(Su,{variant:"h5",component:"h1",textTransform:"uppercase",fontWeight:"bold"},(null===(n=s.result)||void 0===n?void 0:n.result)||"pending"),i.createElement(Su,{variant:"button"},"Final Result")),s.version&&i.createElement(nu,{px:2},i.createElement(Su,{variant:"h5",component:"h1",fontWeight:"bold"},s.version),i.createElement(Su,{variant:"button"},"Version")),i.createElement(nu,{px:2},i.createElement(Su,{variant:"h5",component:"h1",fontWeight:"bold"},(l=null===(a=s.test_groups)||void 0===a?void 0:a.reduce(function(e,t){var n;if(null!==(n=t.result)&&void 0!==n&&n.updated_at){var r,o=new Date(null===(r=t.result)||void 0===r?void 0:r.updated_at);o>e&&(e=o)}return e},new Date(0)),s.test_groups&&(null==l?void 0:l.getTime())!==new Date(0).getTime()?Intl.DateTimeFormat("en",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(l):"N/A")),i.createElement(Su,{variant:"button"},"Report Date"))),g&&i.createElement(Su,{className:d.reportSummaryURL},g)));return i.createElement(i.Fragment,null,i.createElement(uD,{messages:(null===(r=s.configuration_messages)||void 0===r?void 0:r.filter(function(e){return"error"===e.type}))||[],testSuiteId:s.id}),y,null===(o=s.test_groups)||void 0===o?void 0:o.map(function(e){return i.createElement(cD,{key:"g-".concat(e.id),runnable:e,view:"report"},function(e){return e.test_groups.length>0?e.test_groups.map(function(e){return i.createElement(sD,{key:"li-".concat(e.id),testGroup:e,updateRequest:u,showReportDetails:m,view:"report"})}):e.tests.length>0?e.tests.map(function(e){return i.createElement(iD,{key:"li-".concat(e.id),test:e,showReportDetails:m,view:"report"})}):void 0}(e))}))};function kD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function SD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kD(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const ED=function(e){var t,n,r=e.requirements,o=e.requirementToTests,a=e.testSuiteTitle,l=VN().classes,s=lc(i.useState({}),2),c=s[0],u=s[1],d=lc(i.useState(r),2),p=d[0],f=d[1];r.forEach(function(e,t){r[t]=SD(SD({},e),{},{specification:e.id.split("@")[0]})});var m=Array.from(new Set(["Any"].concat(k$(r.map(function(e){return e.specification||e.id.split("@")[0]})))));(0,i.useEffect)(function(){u({}),f(r)},[r]);var h=function(e,t){var n=SD(SD({},c),{},tp({},t,e||null));u(n),function(e){var t=r;Object.entries(e).forEach(function(e){var n=lc(e,2),r=n[0],o=n[1];o&&"Any"!==o&&(t=t.filter(function(e){return e[r]===o}))}),f(t)}(n)};return i.createElement(vS,{variant:"outlined"},i.createElement(nu,{className:l.header},i.createElement("span",{className:l.headerText},i.createElement(Su,{color:"text.primary",className:l.currentItem,component:"div"},a," Specification Requirements"))),i.createElement(nu,{m:2,display:"flex",justifyContent:"space-between",overflow:"auto"},i.createElement(nu,{display:"flex"},i.createElement(kM,{value:null!==(t=c.specification)&&void 0!==t?t:null,size:"small",options:m,renderInput:function(e){return i.createElement(JP,vc({},e,{label:"Specification",variant:"standard",color:"secondary"}))},onChange:function(e,t){return h(t,"specification")},sx:{width:250}}),i.createElement(kM,{value:null!==(n=c.conformance)&&void 0!==n?n:null,size:"small",options:["Any","MAY","SHALL","SHALL NOT","SHOULD"],renderInput:function(e){return i.createElement(JP,vc({},e,{label:"Conformance",variant:"standard",color:"secondary"}))},onChange:function(e,t){return h(t,"conformance")},sx:{width:150,ml:4}})),i.createElement(Bd,{color:"secondary",variant:"outlined",onClick:function(){u({}),f(r)},sx:{ml:4,flexShrink:0}},"Reset Filters")),i.createElement(dS,null),i.createElement(nu,{m:2,overflow:"auto"},p.length>0?i.createElement(qN,{requirements:p,view:"page",requirementToTests:o}):i.createElement(Su,{fontStyle:"italic"},"No requirements found.")))},CD=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},header:{padding:"8px 16px",fontWeight:600,fontSize:"16px",borderBottom:"1px solid ".concat(e.palette.divider),backgroundColor:e.palette.common.blueLightest,borderTopLeftRadius:"4px",borderTopRightRadius:"4px",display:"flex",minHeight:"36.5px",alignItems:"center"},headerText:{flexGrow:1},currentItem:{fontWeight:600}}}),ID=function(e){var t=e.testSuite,n=CD().classes,r=lc(i.useState(0),2),o=r[0],a=r[1],l=t.configuration_messages||[],s=l.filter(function(e){return"error"===e.type}),c=l.filter(function(e){return"warning"===e.type}),u=l.filter(function(e){return"info"===e.type}),d=function(e){return i.createElement(nu,{margin:2},e.length>0?e.map(function(e,t){return i.createElement(vS,{key:t,variant:"outlined",sx:{px:2,my:2,overflow:"auto"}},i.createElement(lx,{remarkPlugins:[ek]},e.message))}):i.createElement(Su,{variant:"body2"},"No Messages"))},p=function(e,t){return i.createElement(nu,{alignItems:"center",px:1},t>0&&i.createElement(aM,{label:t,size:"small",sx:{mx:1}}),e)},f=function(e,t){return{id:"".concat(e,"-tab-").concat(t),"aria-controls":"".concat(e,"-tabpanel-").concat(t)}};return i.createElement(vS,{variant:"outlined"},i.createElement(nu,{className:n.header},i.createElement("span",{className:n.headerText},i.createElement(Su,{color:"text.primary",className:n.currentItem,component:"div"},"Configuration Messages"))),i.createElement(X_,{"aria-label":"config-messages-tabs",value:o,onChange:function(e,t){a(t)},variant:"fullWidth"},i.createElement(rD,vc({label:p("Errors",s.length)},f("errors",0))),i.createElement(rD,vc({label:p("Warnings",c.length)},f("warnings",1))),i.createElement(rD,vc({label:p("Info",u.length)},f("info",2)))),i.createElement(dS,null),i.createElement(oD,{id:"errors",currentTabIndex:o,index:0},d(s)),i.createElement(oD,{id:"warnings",currentTabIndex:o,index:1},d(c)),i.createElement(oD,{id:"info",currentTabIndex:o,index:2},d(u)))};function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const TD=function(e){var t,n,r=e.testSession,o=e.previousResults,a=e.initialTestRun,l=e.sessionData,s=e.suiteOptions,c=e.drawerOpen,u=e.setSessionData,d=e.getSessionData,p=e.toggleDrawer,f=wk().classes,m=Fr().enqueueSnackbar,h=rc(function(e){return e.headerHeight}),g=rc(function(e){return e.windowIsSmall}),v=qC(function(e){return e.currentRunnables}),y=qC(function(e){return e.setCurrentRunnables}),b=qC(function(e){return e.setTestRunId}),x=qC(function(e){return e.readOnly}),w=lc(i.useState(!1),2),k=w[0],S=w[1],E=lc(i.useState(),2),C=E[0],I=E[1],P=lc(i.useState(vI.TestSuite),2),O=P[0],T=P[1],R=lc(i.useState(uN(o)),2),M=R[0],A=R[1],L=lc(i.useState(null),2),j=L[0],$=L[1],N=lc(i.useState(!1),2),_=N[0],D=N[1],z=lc(i.useState(!1),2),F=z[0],B=z[1],W=lc(i.useState(!0),2),H=W[0],V=W[1],q=lc(i.useState([]),2),U=q[0],K=q[1],G=(n=(0,i.useRef)(),(0,i.useEffect)(function(){return function(){n.current&&(clearTimeout(n.current),n.current=void 0)}},[]),n),Y=i.useMemo(function(){return function(e){var t,n=new Map;return n.set(e.id,e),null==e||null===(t=e.test_groups)||void 0===t||t.forEach(function(e){sN(e,n)}),n}(r.test_suite)},[r.test_suite]),X=i.useMemo(function(){return function(e){var t,n,r=new Map;return null===(t=e.verifies_requirements)||void 0===t||t.forEach(function(t){r.get(t)?r.set(t,[].concat(k$(r.get(t)),[e.id])):r.set(t,[e.id])}),null==e||null===(n=e.test_groups)||void 0===n||n.forEach(function(e){cN(e,r)}),r}(r.test_suite)},[r.test_suite]),Q=ct().hash.replace("#","").split("/"),J=Q[0],Z=Q[1];Y.get(J)||Array.from(Y).forEach(function(e){var t=lc(e,2),n=t[0],r=t[1];yI(r)&&r.short_id===J?J=n:"test_groups"in r||r.short_id!==J||(J=n.substring(0,n.lastIndexOf("-")))});var ee=Y.get(J)?J:r.test_suite.id,te=lc(i.useState(Y.get(ee)||null),2),ne=te[0],re=te[1];M.forEach(function(e,t){var n=Y.get(t);n&&(n.result=e)}),(0,i.useEffect)(function(){if(!j&&a&&($(a),ue(a)&&(B(!0),oe(a))),ue(j)){var e=v[r.id],t=Y.get(e);t&&dN(t,!0)}}),(0,i.useEffect)(function(){if(j&&!ue(j)){var e=v[r.id],t=Y.get(e);t&&dN(t,!1);var n=Y.get(ee);n&&dN(n,!1);var o=v;delete o[r.id],y(o)}},[j]),(0,i.useEffect)(function(){var e;null===(e=r.test_suite.inputs)||void 0===e||e.forEach(function(e){var t=e.default||"";l.set(e.name,l.get(e.name)||t)}),u(new Map(l)),ie(r)},[r]),(0,i.useEffect)(function(){var e=null;"waiting"===(null==j?void 0:j.status)&&M.forEach(function(t){t.test_id&&"wait"===t.result&&(e=t.test_id)}),I(e)},[M]),w_(function(){return function(){V(!1)}});var oe=function(e){var t,n,o,a,i;(n=e.id,o=null===(i=e.results,t=i?i.reduce(function(e,t){return Date.parse(t.updated_at)>Date.parse(e.updated_at)?t:e},i[0]):null)||void 0===t?void 0:t.updated_at,a=Xs("/test_runs/".concat(n,"?include_results=true")),o&&(a+="&after=".concat(o)),fetch(a).then(function(e){return e.json()}).then(function(e){return e})).then(function(e){if($(e),null!=e&&e.results){e.results.forEach(function(e){e.outputs.forEach(function(e){e.value&&l.set(e.name,e.value)})}),u(new Map(l));var t=uN(e.results,M);"done"===(null==e?void 0:e.status)&&Array.from(t.values()).some(function(e){return"wait"===e.result})?Iu(r.id).then(function(e){e?(t=uN(e,M),A(t)):m("Failed to load results",{variant:"error"})}).catch(function(e){m("Error while getting test results: ".concat(e.message),{variant:"error"})}):A(t)}e&&ue(e)&&H&&(G.current=setTimeout(function(){return oe(e)},500))}).catch(function(e){m("Error while getting test run: ".concat(e.message),{variant:"error"})})},ae=function(e,t,n){var r=Array.from(M.values()).find(function(e){return e.id===t});if(r&&r.requests){var o=r.requests.findIndex(function(t){return t.id===e});r.requests[o]=n,A(new Map(M))}},ie=function(e){(function(e,t){return SI.apply(this,arguments)})(e.test_suite_id,e.id).then(function(e){K(e)}).catch(function(e){m("Error fetching specification requirements: ".concat(e.message),{variant:"error"})})},le=function(e,t){var n,r=Y.get(t);null==r||null===(n=r.inputs)||void 0===n||n.forEach(function(e){e.value=l.get(e.name)}),null!=r&&r.inputs.every(function(e){return e.hidden})?se(e,t,null==r?void 0:r.inputs):null!=r&&r.inputs&&r.inputs.length>0?function(e,t){T(t),re(e),S(!0)}(r,e):x?m("".concat(null==r?void 0:r.title," has no inputs"),{variant:"info"}):se(e,t,[])},se=function(e,t,n){n.forEach(function(e){l.set(e.name,e.value)}),u(new Map(l)),function(e,t,n,r){var o=Xs("/test_runs"),a={test_session_id:e,inputs:r};switch(t){case vI.TestSuite:a.test_suite_id=n;break;case vI.TestGroup:a.test_group_id=n;break;case vI.Test:a.test_id=n}return fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then(function(e){return e.json()}).then(function(e){return e})}(r.id,e,t,n).then(function(e){if(e){var n=Y.get(t);n&&dN(n,!0),y(OD(OD({},v),{},tp({},r.id,t))),S(!1),$(e),b(e.id),D(!1),B(!0),oe(e)}}).catch(function(e){m("Error while running test(s): ".concat(e.message),{variant:"error"})})},ce=function(){var e,t;j&&(e=j.id,t=Xs("/test_runs/".concat(e)),fetch(t,{method:"DELETE"})).then(function(){return D(!0)}).catch(function(e){return m("Error while cancelling test run: ".concat(e.message),{variant:"error"})})},ue=function(e){return!(null==e||!e.status)&&["running","queued","waiting","cancelling"].includes(null==e?void 0:e.status)},de=function(){return i.createElement("nav",{className:f.drawer},i.createElement(R$,{testSuite:r.test_suite,selectedRunnable:ee,view:Z||"run",presets:r.test_suite.presets,requirementsExist:U.length>0,getSessionData:d,testSessionId:r.id}))};return i.createElement(nu,{className:f.testSuiteMain},function(){var e=mN(v,ct().pathname)?null:2e3;return i.createElement(RA,{showProgressBar:F,setShowProgressBar:B,cancelled:_,cancelTestRun:ce,duration:e,testRun:j,resultsMap:M})}(),g?i.createElement(gI,{anchor:"left",open:c,onClose:function(){return p(!1)},onOpen:function(){return p(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0,BackdropProps:{classes:{root:f.swipeableDrawerHeight}}},PaperProps:{elevation:0},classes:{paper:f.swipeableDrawerHeight}},i.createElement(SE,{sx:{minHeight:"".concat(h,"px !important")}}),de()):i.createElement(aS,{variant:"permanent",anchor:"left",className:f.hidePrint,classes:{paper:f.drawerPaper}},de()),i.createElement("main",{style:{overflow:"auto",width:"100%",backgroundColor:Bi(Mh.palette.common.grayLight,.5)}},i.createElement(nu,{className:f.contentContainer,p:g?0:4},function(e){var t=Y.get(ee);if(!t)return null;switch(e){case"report":return i.createElement(wD,{testSuite:t,suiteOptions:s,updateRequest:ae});case"requirements":return i.createElement(ED,{requirements:U,requirementToTests:X,testSuiteTitle:t.title});case"config":return i.createElement(ID,{testSuite:t});default:return i.createElement(dD,{runnable:t,runTests:le,updateRequest:ae,testSuiteId:r.test_suite.id,configMessages:r.test_suite.configuration_messages})}}(Z||"run"),k&&i.createElement(eA,{modalVisible:k,hideModal:function(){return S(!1)},runnable:ne,runnableType:O,inputs:(null==ne?void 0:ne.inputs)||[],sessionData:l,createTestRun:se}),i.createElement(TI,{cancelTestRun:ce,message:C?null===(t=M.get(C))||void 0===t?void 0:t.result_message:"",modalVisible:!!C}))))};function RD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RD(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const AD=function(){var e=pt(),t=Fr().enqueueSnackbar,n=rc(function(e){return e.testSuites}),r=qC(function(e){return e.readOnly}),o=qC(function(e){return e.setReadOnly}),a=lc(i.useState(null),2),l=a[0],s=a[1],c=lc(i.useState(),2),u=c[0],d=c[1],p=lc(i.useState(),2),f=p[0],m=p[1],h=lc(i.useState(new Map),2),g=h[0],v=h[1],y=lc(i.useState(!1),2),b=y[0],x=y[1],w=lc(i.useState(!1),2),k=w[0],S=w[1],E=lc(i.useState(!1),2),C=E[0],I=E[1],P=lc(i.useState(!1),2),O=P[0],T=P[1],R=lc(i.useState(!1),2),M=R[0],A=R[1],L=lc(i.useState(""),2),j=L[0],$=L[1],N=lc(i.useState(!1),2),_=N[0],D=N[1],z=ct().hash,F=z.replace("#","").split("/"),B=r?"/view":"";function W(e){(function(e){var t=Xs("/test_sessions/".concat(e,"/session_data"));return fetch(t).then(function(e){return e.json()}).then(function(e){return e})})(e).then(function(e){e?(null==e||e.forEach(function(e){e.value&&g.set(e.name,e.value)}),v(new Map(g))):t("Failed to load session data",{variant:"error"})}).catch(function(e){t("Error getting session data: ".concat(e.message),{variant:"error"})}).finally(function(){return T(!0)})}(0,i.useEffect)(function(){var e;(e=Xs("/version"),fetch(e).then(function(e){return e.json()}).then(function(e){return"version"in e?e.version:""}).catch(function(){return""})).then(function(e){$(e)}).catch(function(){$("")}),o(F.includes("view"))},[]),(0,i.useEffect)(function(){!z&&u&&e("#".concat(null==u?void 0:u.test_suite_id).concat(B))},[u]);var H=function(e){D(e)};if(u&&f&&g){var V,q,U=null==n||null===(V=n.find(function(e){return e.id===u.test_suite_id}))||void 0===V||null===(V=V.suite_options)||void 0===V?void 0:V.reduce(function(e,t){return MD(MD({},e),{},tp({},t.id,t.list_options||[]))},{}),K=U?null===(q=u.suite_options)||void 0===q?void 0:q.map(function(e){return U[e.id].filter(function(t){return t.value===e.value})}).flat().filter(function(e){return e}):[];return i.createElement(ak,{in:!0},i.createElement(nu,{display:"flex",flexDirection:"column",flexGrow:"1",height:"100%"},function(e){var t=(null==e?void 0:e.test_suite.short_title)||(null==e?void 0:e.test_suite.title),n=t?"".concat(t," "):"",r="".concat(n,"Test Session");document.title=r;var o=e.test_suite.short_description||e.test_suite.description||"";return i.createElement(Tu,{title:r,description:o})}(u),i.createElement(oI,{suiteId:u.test_suite.id,suiteTitle:u.test_suite.title,suiteVersion:u.test_suite.version,suiteOptions:K,drawerOpen:_,toggleDrawer:H}),i.createElement(TD,{testSession:u,previousResults:f,initialTestRun:l,sessionData:g,suiteOptions:K,drawerOpen:_,setSessionData:v,getSessionData:W,toggleDrawer:H}),i.createElement(fE,{version:j,linkList:u.test_suite.links})))}if(k&&C&&O&&b)return i.createElement(nu,{display:"flex",flexDirection:"column",flexGrow:"1",height:"100%"},i.createElement(bk,{severity:"error"},"Failed to load test session data. Please make sure you entered the correct session id."),i.createElement(rI,null),i.createElement(xS,null),i.createElement(mE,null));var G=ft().test_session_id;return G&&!M&&(A(!0),function(e){(function(e){var t=Xs("/test_sessions/"+e+"/last_test_run");return fetch(t).then(function(e){return e.json()}).then(function(e){return e})})(e).then(function(e){s(e||null)}).catch(function(){}).finally(function(){return x(!0)})}(G),function(e){Eu(e).then(function(e){e?d(e):t("Failed to load test session",{variant:"error"})}).catch(function(e){t("Error while getting test session: ".concat(e.message),{variant:"error"})}).finally(function(){return S(!0)})}(G),function(e){Iu(e).then(function(e){e?m(e):t("Failed to load test session results",{variant:"error"})}).catch(function(e){t("Error while getting test results: ".concat(e.message),{variant:"error"})}).finally(function(){return I(!0)})}(G),W(G)),i.createElement(nu,{display:"flex",flexDirection:"column",flexGrow:"1",height:"100%"},i.createElement(rI,null),i.createElement(xS,null),i.createElement(mE,null))},LD=function(){var e=Ah().classes,t=rc(function(e){return e.windowIsSmall});return i.createElement(Xc,{maxWidth:!1,className:e.main,"data-testid":"landingPageSkeleton"},i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:t?"center":"flex-end",alignItems:"center",px:2},i.createElement(nu,{display:"flex",flexDirection:"column",my:2,alignItems:"center",justifyContent:"center"},i.createElement(Fh,{variant:"rounded",height:70,width:250,style:{margin:"32px"}}),i.createElement(Fh,{variant:"rounded",height:40,width:t?200:400,style:{margin:"8px"}})),i.createElement(nu,{mb:2,alignItems:"center"},i.createElement(Fh,{variant:"rounded",height:20,width:t?250:500,style:{margin:"8px"}}),i.createElement(Fh,{variant:"rounded",height:20,width:t?250:500,style:{margin:"8px"}}))),i.createElement(nu,{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",py:4,sx:{backgroundColor:Mh.palette.common.grayLight}},i.createElement(Bh,null)))},jD=function(){for(var e=tk().classes,t=rc(function(e){return e.windowIsSmall}),n=i.createElement(Fh,{variant:"rounded",height:10,width:t?300:400,style:{margin:"8px"}}),r=[],o=0;o<10;o++)r.push(i.createElement("div",{key:o},n));return i.createElement(Xc,{className:e.main,sx:{flexDirection:t?"":"column"},"data-testid":"suiteOptionsPageSkeleton"},i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",px:t?0:8,my:3},i.createElement(nu,{display:"flex",alignItems:"center",m:4},i.createElement(Fh,{variant:"rounded",height:40,width:t?200:350})),i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:"center",px:2,mb:3},r)),i.createElement(nu,{display:"flex",height:t?"none":"100%",width:t?"100%":"none",justifyContent:"center",alignItems:"center",sx:{backgroundColor:Mh.palette.common.grayLight}},i.createElement(nu,{display:"flex",justifyContent:"center",m:3},i.createElement(Bh,null))))};var $D=function(e){return t=[{path:"/",loader:function(){return e&&e.length>0?i.createElement(Wh,{testSuites:e}):i.createElement(LD,null)},element:i.createElement(oc,{title:"Inferno Test Suites"}),hydrateFallbackElement:i.createElement(LD,null)},{path:":test_suite_id",element:i.createElement(oc,{title:"Options"}),loader:function(t){var n=t.params;if(!e||0===e.length)return i.createElement(jD,null);var r=n.test_suite_id||"",o=e.find(function(e){return e.id===r});return o?i.createElement(nk,{testSuite:o}):i.createElement(jD,null)},hydrateFallbackElement:i.createElement(jD,null)},{path:":test_suite_id/:test_session_id",element:i.createElement(AD,null)}],n={basename:"/".concat(Ys||"")},ue({basename:n?.basename,unstable_getContext:n?.unstable_getContext,future:n?.future,history:p({window:n?.window}),hydrationData:n?.hydrationData||Zt(),routes:t,mapRouteProperties:Pt,hydrationRouteProperties:Ot,dataStrategy:n?.dataStrategy,patchRoutesOnNavigation:n?.patchRoutesOnNavigation,window:n?.window}).initialize();var t,n};const ND=function(e){var t=e.id,n=Fr().closeSnackbar;return i.createElement(Kd,{"aria-label":"Close notification",color:"inherit",onClick:function(){return n(t)}},i.createElement(pO,{fontSize:"small"}))};var _D=Vs()(function(e,t){return{container:{marginBottom:t.height,zIndex:"".concat(e.zIndex.snackbar," !important")}}});const DD=function(){var e=rc(function(e){return e.footerHeight}),t=rc(function(e){return e.setFooterHeight}),n=rc(function(e){return e.testSuites}),r=rc(function(e){return e.setTestSuites}),o=rc(function(e){return e.smallWindowThreshold}),a=rc(function(e){return e.setWindowIsSmall}),l=_D({height:"".concat(e,"px")}).classes;(0,i.useEffect)(function(){window.addEventListener("resize",s)}),(0,i.useEffect)(function(){var e;s(),(e=Xs("/test_suites"),fetch(e).then(function(e){return e.json()}).then(function(e){return e||[]}).catch(function(){return[]})).then(function(e){r(e)}).catch(function(){r([])})},[]);var s=function(){window.innerWidth<o?(a(!0),t(36)):(a(!1),t(56))};return i.createElement(zr,{dense:!0,maxSnack:3,anchorOrigin:{vertical:"bottom",horizontal:"right"},action:function(e){return i.createElement(ND,{id:e})},classes:{containerAnchorOriginBottomRight:l.container}},i.createElement(Rt,{router:$D(n)}))},zD=new Map,FD={insert:void 0};let BD;if("object"==typeof document&&(BD=document.querySelector('[name="emotion-insertion-point"]'),!BD)){BD=document.createElement("meta"),BD.setAttribute("name","emotion-insertion-point"),BD.setAttribute("content","");const e=document.querySelector("head");e&&e.prepend(BD)}function WD(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=i.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&zD.has(e))return zD.get(e);const r=function(e,t){if(e||t){class n extends ta{insert(e,t){return FD.insert?FD.insert(e,t):(this.key&&this.key.endsWith("global")&&(this.before=BD),super.insert(e,t))}}const r=((e,t)=>{const n=ti(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n})({key:"css",insertionPoint:e?BD:void 0},n);if(t){const e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}(t,n);return zD.set(e,r),r},[t,n]);return o?(0,Dc.jsx)(wi,{value:o,children:r}):r}const HD=i.createContext(null);function VD(){return i.useContext(HD)}const qD="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",UD=function(e){const{children:t,theme:n}=e,r=VD(),o=i.useMemo(()=>{const e=null===r?{...n}:function(e,t){return"function"==typeof t?t(e):{...e,...t}}(r,n);return null!=e&&(e[qD]=null!==r),e},[n,r]);return(0,Dc.jsx)(HD.Provider,{value:o,children:t})},KD={};function GD(e,t,n,r=!1){return i.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?{...t,[e]:a}:a;return r?()=>i:i}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}const YD=function(e){const{children:t,theme:n,themeId:r}=e,o=Oi(KD),a=VD()||KD,i=GD(r,o,n),l=GD(r,a,n,!0),s="rtl"===(r?i[r]:i).direction,c=function(e){const t=Oi(),n=Nu()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Bu(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){if(t&&t.hasAttribute?.("data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const r=document.createElement("style");r.setAttribute("data-mui-layer-order",n),r.textContent=o,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[o,n]),o?(0,Dc.jsx)(du,{styles:o}):null}(i);return(0,Dc.jsx)(UD,{theme:l,children:(0,Dc.jsx)(Si.Provider,{value:i,children:(0,Dc.jsx)(op,{value:s,children:(0,Dc.jsxs)(Kc,{value:r?i[r].components:i.components,children:[c,t]})})})})};function XD({theme:e,...t}){const n=hs in e?e[hs]:void 0;return(0,Dc.jsx)(YD,{...t,themeId:n?hs:void 0,theme:n||e})}const QD="mode",JD="color-scheme",ZD="data-color-scheme";function ez(){}const tz=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(n){if("undefined"==typeof window)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return ez;const r=t=>{const r=t.newValue;t.key===e&&n(r)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function nz(){}function rz(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function oz(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}const az="mui-color-scheme",iz="light",lz="dark",sz="mui-mode",{CssVarsProvider:cz,useColorScheme:uz,getInitColorSchemeScript:dz}=function(e){const{themeId:t,theme:n={},modeStorageKey:r=QD,colorSchemeStorageKey:o=JD,disableTransitionOnChange:a=!1,defaultColorScheme:l,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=i.createContext(void 0),d={},p={},f="string"==typeof l?l:l.light,m="string"==typeof l?l:l.dark;return{CssVarsProvider:function(e){const{children:c,theme:f,modeStorageKey:m=r,colorSchemeStorageKey:h=o,disableTransitionOnChange:g=a,storageManager:v,storageWindow:y=("undefined"==typeof window?void 0:window),documentNode:b=("undefined"==typeof document?void 0:document),colorSchemeNode:x=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:w=!1,disableStyleSheetGeneration:k=!1,defaultMode:S="system",noSsr:E}=e,C=i.useRef(!1),I=VD(),P=i.useContext(u),O=!!P&&!w,T=i.useMemo(()=>f||("function"==typeof n?n():n),[f]),R=T[t],M=R||T,{colorSchemes:A=d,components:L=p,cssVarPrefix:j}=M,$=Object.keys(A).filter(e=>!!A[e]).join(","),N=i.useMemo(()=>$.split(","),[$]),_="string"==typeof l?l:l.light,D="string"==typeof l?l:l.dark,z=A[_]&&A[D]?S:A[M.defaultColorScheme]?.palette?.mode||M.palette?.mode,{mode:F,setMode:B,systemMode:W,lightColorScheme:H,darkColorScheme:V,colorScheme:q,setColorScheme:U}=function(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=QD,colorSchemeStorageKey:l=JD,storageWindow:s=("undefined"==typeof window?void 0:window),storageManager:c=tz,noSsr:u=!1}=e,d=o.join(","),p=o.length>1,f=i.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),m=i.useMemo(()=>c?.({key:`${l}-light`,storageWindow:s}),[c,l,s]),h=i.useMemo(()=>c?.({key:`${l}-dark`,storageWindow:s}),[c,l,s]),[g,v]=i.useState(()=>{const e=f?.get(t)||t,o=m?.get(n)||n,a=h?.get(r)||r;return{mode:e,systemMode:rz(e),lightColorScheme:o,darkColorScheme:a}}),[y,b]=i.useState(u||!p);i.useEffect(()=>{b(!0)},[]);const x=function(e){return oz(e,t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0)}(g),w=i.useCallback(e=>{v(n=>{if(e===n.mode)return n;const r=e??t;return f?.set(r),{...n,mode:r,systemMode:rz(r)}})},[f,t]),k=i.useCallback(e=>{e?"string"==typeof e?e&&!d.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):v(t=>{const n={...t};return oz(t,t=>{"light"===t&&(m?.set(e),n.lightColorScheme=e),"dark"===t&&(h?.set(e),n.darkColorScheme=e)}),n}):v(t=>{const o={...t},a=null===e.light?n:e.light,i=null===e.dark?r:e.dark;return a&&(d.includes(a)?(o.lightColorScheme=a,m?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),i&&(d.includes(i)?(o.darkColorScheme=i,h?.set(i)):console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`)),o}):v(e=>(m?.set(n),h?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[d,m,h,n,r]),S=i.useCallback(e=>{"system"===g.mode&&v(t=>{const n=e?.matches?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}})},[g.mode]),E=i.useRef(S);return E.current=S,i.useEffect(()=>{if("function"!=typeof window.matchMedia||!p)return;const e=(...e)=>E.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[p]),i.useEffect(()=>{if(p){const e=f?.subscribe(e=>{e&&!["light","dark","system"].includes(e)||w(e||t)})||nz,n=m?.subscribe(e=>{e&&!d.match(e)||k({light:e})})||nz,r=h?.subscribe(e=>{e&&!d.match(e)||k({dark:e})})||nz;return()=>{e(),n(),r()}}},[k,w,d,t,s,p,f,m,h]),{...g,mode:y?g.mode:void 0,systemMode:y?g.systemMode:void 0,colorScheme:y?x:void 0,setMode:w,setColorScheme:k}}({supportedColorSchemes:N,defaultLightColorScheme:_,defaultDarkColorScheme:D,modeStorageKey:m,colorSchemeStorageKey:h,defaultMode:z,storageManager:v,storageWindow:y,noSsr:E});let K=F,G=q;O&&(K=P.mode,G=P.colorScheme);const Y=i.useMemo(()=>{const e=G||M.defaultColorScheme,t=M.generateThemeVars?.()||M.vars,n={...M,components:L,colorSchemes:A,cssVarPrefix:j,vars:t};if("function"==typeof n.generateSpacing&&(n.spacing=n.generateSpacing()),e){const t=A[e];t&&"object"==typeof t&&Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?n[e]={...n[e],...t[e]}:n[e]=t[e]})}return s?s(n):n},[M,G,L,A,j]),X=M.colorSchemeSelector;Bu(()=>{if(G&&x&&X&&"media"!==X){const e=X;let t=X;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))x.classList.remove(...N.map(e=>t.substring(1).replace("%s",e))),x.classList.add(t.substring(1).replace("%s",G));else{const e=t.replace("%s",G).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||N.forEach(e=>{x.removeAttribute(t.replace(G,e))}),x.setAttribute(t,n?n.replace(/"|'/g,""):"")}else x.setAttribute(t,G)}}},[G,X,x,N]),i.useEffect(()=>{let e;if(g&&C.current&&b){const t=b.createElement("style");t.appendChild(b.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),b.head.appendChild(t),window.getComputedStyle(b.body),e=setTimeout(()=>{b.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[G,g,b]),i.useEffect(()=>(C.current=!0,()=>{C.current=!1}),[]);const Q=i.useMemo(()=>({allColorSchemes:N,colorScheme:G,darkColorScheme:V,lightColorScheme:H,mode:K,setColorScheme:U,setMode:B,systemMode:W}),[N,G,V,H,K,U,B,W,Y.colorSchemeSelector]);let J=!0;(k||!1===M.cssVariables||O&&I?.cssVarPrefix===j)&&(J=!1);const Z=(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)(YD,{themeId:R?t:void 0,theme:Y,children:c}),J&&(0,Dc.jsx)(cu,{styles:Y.generateStyleSheets?.()||[]})]});return O?Z:(0,Dc.jsx)(u.Provider,{value:Q,children:Z})},useColorScheme:()=>i.useContext(u)||c,getInitColorSchemeScript:e=>function(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=QD,colorSchemeStorageKey:a=JD,attribute:i=ZD,colorSchemeNode:l="document.documentElement",nonce:s}=e||{};let c="",u=i;if("class"===i&&(u=".%s"),"data"===i&&(u="[data-%s]"),u.startsWith(".")){const e=u.substring(1);c+=`${l}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${l}.classList.add('${e}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[e,t]=d[1].split("=");t||(c+=`${l}.removeAttribute('${e}'.replace('%s', light));\n ${l}.removeAttribute('${e}'.replace('%s', dark));`),c+=`\n ${l}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else c+=`${l}.setAttribute('${u}', colorScheme);`;return(0,Dc.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?s:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${o}') || '${t}';\n const dark = localStorage.getItem('${a}-dark') || '${r}';\n const light = localStorage.getItem('${a}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${c}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:o,defaultLightColorScheme:f,defaultDarkColorScheme:m,modeStorageKey:r,...e})}}({themeId:hs,theme:()=>fs({cssVariables:!0}),colorSchemeStorageKey:az,modeStorageKey:sz,defaultColorScheme:{light:iz,dark:lz},resolveTheme:e=>{const t={...e,typography:Wl(e.palette,e.typography)};return t.unstable_sx=function(e){return Jo({sx:e,theme:this})},t}}),pz=cz;function fz({theme:e,...t}){const n=i.useMemo(()=>{if("function"==typeof e)return e;const t=hs in e?e[hs]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return n?(0,Dc.jsx)(XD,{theme:n,...t}):(0,Dc.jsx)(pz,{theme:e,...t})}const mz=function(e){var t=e.children;return i.createElement(WD,{injectFirst:!0},i.createElement(fz,{theme:Mh},t))};var hz;s.createRoot(document.getElementById("root")).render(i.createElement(i.StrictMode,null,i.createElement(WD,{injectFirst:!0},i.createElement(mz,null,i.createElement(DD,null))))),hz&&hz instanceof Function&&n.e(237).then(n.bind(n,237)).then(function(e){var t=e.onCLS,n=e.onINP,r=e.onFCP,o=e.onLCP,a=e.onTTFB;t(hz),n(hz),r(hz),o(hz),a(hz)})},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(551)},981:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(601),o=n.n(r),a=n(314),i=n.n(a)()(o());i.push([e.id,"@media print {\n * {\n box-shadow: none !important;\n }\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n\nbody,\nhtml {\n height: 100%;\n}\n\nbody {\n background-color: #ffffff;\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n overscroll-behavior-y: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\nblockquote {\n /* Left bar should match theme grayLight */\n border-left: 0.25em solid #F0F2F1;\n /* Text should match theme grayDark */\n color: #616161;\n margin: 0;\n padding-left: 8px;\n}\n\n/* Keyboard-only focus indicator */\nbutton:focus-visible {\n border: 1px solid #707070;\n}\n\n/* Darken button backgrounds on hover on text styled buttons */\nbutton:hover {\n &.MuiButton-text {\n background-color: #cbd5df60;\n }\n}",""]);const l=i},982:(e,t,n)=>{"use strict";e.exports=n(463)},993:(e,t,n)=>{var r=n(546);function o(){var t,n,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.toStringTag||"@@toStringTag";function s(e,o,a,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return r(s,"_invoke",function(e,r,o){var a,i,l,s=0,u=o||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return a=e,i=0,l=t,p.n=n,c}};function f(e,r){for(i=e,l=r,n=0;!d&&s&&!o&&n<u.length;n++){var o,a=u[n],f=p.p,m=a[2];e>3?(o=m===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=f&&((o=e<2&&f<a[1])?(i=0,p.v=r,p.n=a[1]):f<m&&(o=e<3||a[0]>r||r>m)&&(a[4]=e,a[5]=r,p.n=m,i=0))}if(o||e>1)return c;throw d=!0,r}return function(o,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),i=u,l=m;(n=i<2?t:l)||!d;){a||(i?i<3?(i>1&&(p.n=-1),f(i,l)):p.n=l:p.v=l);try{if(s=2,a){if(i||(o="next"),n=a[o]){if(!(n=n.call(a,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,i<2&&(i=0)}else 1===i&&(n=a.return)&&n.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((n=(d=p.n<0)?l:e.call(r,p))!==c)break}catch(e){a=t,i=1,l=e}finally{s=1}}return{value:n,done:d}}}(e,a,i),!0),s}var c={};function u(){}function d(){}function p(){}n=Object.getPrototypeOf;var f=[][i]?n(n([][i]())):(r(n={},i,function(){return this}),n),m=p.prototype=u.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,r(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e}return d.prototype=p,r(m,"constructor",p),r(p,"constructor",d),d.displayName="GeneratorFunction",r(p,l,"GeneratorFunction"),r(m),r(m,l,"Generator"),r(m,i,function(){return this}),r(m,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:s,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}},a={};function i(e){var t=a[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var n=a[e]={id:e,exports:{}};try{var r={id:e,module:n,factory:o[e],require:i};i.i.forEach(function(e){e(r)}),n=r.module,r.factory.call(n.exports,n,n.exports,r.require)}catch(e){throw n.error=e,e}return n.exports}i.m=o,i.c=a,i.i=[],i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,n)=>(i.f[n](e,t),t),[])),i.u=e=>792===e?"bundle.js":e+".bundle.js",i.hu=e=>e+"."+i.h()+".hot-update.js",i.hmrF=()=>"main."+i.h()+".hot-update.json",i.h=()=>"9cc0d95054d0434ef254",i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="inferno-web-app:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var l,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.setAttribute("data-webpack",r+o),l.src=e),n[e]=[t];var p=(t,r)=>{l.onerror=l.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach(e=>e(r)),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e,t,n,r={},o=i.c,a=[],l=[],s="idle",c=0,u=[];function d(e){s=e;for(var t=[],n=0;n<l.length;n++)t[n]=l[n].call(null,e);return Promise.all(t).then(function(){})}function p(){0===--c&&d("ready").then(function(){if(0===c){var e=u;u=[];for(var t=0;t<e.length;t++)e[t]()}})}function f(e){if("idle"!==s)throw new Error("check() is only allowed in idle status");return d("check").then(i.hmrM).then(function(n){return n?d("prepare").then(function(){var r=[];return t=[],Promise.all(Object.keys(i.hmrC).reduce(function(e,o){return i.hmrC[o](n.c,n.r,n.m,e,t,r),e},[])).then(function(){return t=function(){return e?h(e):d("ready").then(function(){return r})},0===c?t():new Promise(function(e){u.push(function(){e(t())})});var t})}):d(g()?"ready":"idle").then(function(){return null})})}function m(e){return"ready"!==s?Promise.resolve().then(function(){throw new Error("apply() is only allowed in ready status (state: "+s+")")}):h(e)}function h(e){e=e||{},g();var r=t.map(function(t){return t(e)});t=void 0;var o=r.map(function(e){return e.error}).filter(Boolean);if(o.length>0)return d("abort").then(function(){throw o[0]});var a=d("dispose");r.forEach(function(e){e.dispose&&e.dispose()});var i,l=d("apply"),s=function(e){i||(i=e)},c=[];return r.forEach(function(e){if(e.apply){var t=e.apply(s);if(t)for(var n=0;n<t.length;n++)c.push(t[n])}}),Promise.all([a,l]).then(function(){return i?d("fail").then(function(){throw i}):n?h(e).then(function(e){return c.forEach(function(t){e.indexOf(t)<0&&e.push(t)}),e}):d("idle").then(function(){return c})})}function g(){if(n)return t||(t=[]),Object.keys(i.hmrI).forEach(function(e){n.forEach(function(n){i.hmrI[e](n,t)})}),n=void 0,!0}i.hmrD=r,i.i.push(function(u){var h,g,v,y,b=u.module,x=function(t,n){var r=o[n];if(!r)return t;var i=function(i){if(r.hot.active){if(o[i]){var l=o[i].parents;-1===l.indexOf(n)&&l.push(n)}else a=[n],e=i;-1===r.children.indexOf(i)&&r.children.push(i)}else console.warn("[HMR] unexpected require("+i+") from disposed module "+n),a=[];return t(i)},l=function(e){return{configurable:!0,enumerable:!0,get:function(){return t[e]},set:function(n){t[e]=n}}};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&"e"!==u&&Object.defineProperty(i,u,l(u));return i.e=function(e,n){return function(e){switch(s){case"ready":d("prepare");case"prepare":return c++,e.then(p,p),e;default:return e}}(t.e(e,n))},i}(u.require,u.id);b.hot=(h=u.id,g=b,y={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:v=e!==h,_requireSelf:function(){a=g.parents.slice(),e=v?void 0:h,i(h)},active:!0,accept:function(e,t,n){if(void 0===e)y._selfAccepted=!0;else if("function"==typeof e)y._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var r=0;r<e.length;r++)y._acceptedDependencies[e[r]]=t||function(){},y._acceptedErrorHandlers[e[r]]=n;else y._acceptedDependencies[e]=t||function(){},y._acceptedErrorHandlers[e]=n},decline:function(e){if(void 0===e)y._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)y._declinedDependencies[e[t]]=!0;else y._declinedDependencies[e]=!0},dispose:function(e){y._disposeHandlers.push(e)},addDisposeHandler:function(e){y._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=y._disposeHandlers.indexOf(e);t>=0&&y._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,s){case"idle":t=[],Object.keys(i.hmrI).forEach(function(e){i.hmrI[e](h,t)}),d("ready");break;case"ready":Object.keys(i.hmrI).forEach(function(e){i.hmrI[e](h,t)});break;case"prepare":case"check":case"dispose":case"apply":(n=n||[]).push(h)}},check:f,apply:m,status:function(e){if(!e)return s;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var t=l.indexOf(e);t>=0&&l.splice(t,1)},data:r[h]},e=void 0,y),b.parents=a,b.children=[],a=[],u.require=x}),i.hmrC={},i.hmrI={}})(),i.p="/public/",(()=>{var e,t=i.hmrS_jsonp=i.hmrS_jsonp||{792:0};i.f.j=(e,n)=>{var r=i.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,o)=>r=t[e]=[n,o]);n.push(r[2]=o);var a=i.p+i.u(e),l=new Error;i.l(a,n=>{if(i.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",l.name="ChunkLoadError",l.type=o,l.request=a,r[1](l)}},"chunk-"+e,e)}};var n,r,o,a,l={};function s(t,n){return e=n,new Promise((e,n)=>{l[t]=e;var r=i.p+i.hu(t),o=new Error;i.l(r,e=>{if(l[t]){l[t]=void 0;var r=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;o.message="Loading hot update chunk "+t+" failed.\n("+r+": "+a+")",o.name="ChunkLoadError",o.type=r,o.request=a,n(o)}})})}function c(e){function l(e){for(var t=[e],n={},r=t.map(function(e){return{chain:[e],id:e}});r.length>0;){var o=r.pop(),a=o.id,l=o.chain,c=i.c[a];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:l,moduleId:a};if(c.hot._main)return{type:"unaccepted",chain:l,moduleId:a};for(var u=0;u<c.parents.length;u++){var d=c.parents[u],p=i.c[d];if(p){if(p.hot._declinedDependencies[a])return{type:"declined",chain:l.concat([d]),moduleId:a,parentId:d};-1===t.indexOf(d)&&(p.hot._acceptedDependencies[a]?(n[d]||(n[d]=[]),s(n[d],[a])):(delete n[d],t.push(d),r.push({chain:l.concat([d]),id:d})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];-1===e.indexOf(r)&&e.push(r)}}i.f&&delete i.f.jsonpHmr,n=void 0;var c={},u=[],d={},p=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var f in r)if(i.o(r,f)){var m=r[f],h=m?l(f):{type:"disposed",moduleId:f},g=!1,v=!1,y=!1,b="";switch(h.chain&&(b="\nUpdate propagation: "+h.chain.join(" -> ")),h.type){case"self-declined":e.onDeclined&&e.onDeclined(h),e.ignoreDeclined||(g=new Error("Aborted because of self decline: "+h.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(h),e.ignoreDeclined||(g=new Error("Aborted because of declined dependency: "+h.moduleId+" in "+h.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(h),e.ignoreUnaccepted||(g=new Error("Aborted because "+f+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(h),v=!0;break;case"disposed":e.onDisposed&&e.onDisposed(h),y=!0;break;default:throw new Error("Unexception type "+h.type)}if(g)return{error:g};if(v)for(f in d[f]=m,s(u,h.outdatedModules),h.outdatedDependencies)i.o(h.outdatedDependencies,f)&&(c[f]||(c[f]=[]),s(c[f],h.outdatedDependencies[f]));y&&(s(u,[h.moduleId]),d[f]=p)}r=void 0;for(var x,w=[],k=0;k<u.length;k++){var S=u[k],E=i.c[S];E&&(E.hot._selfAccepted||E.hot._main)&&d[S]!==p&&!E.hot._selfInvalidated&&w.push({module:S,require:E.hot._requireSelf,errorHandler:E.hot._selfAccepted})}return{dispose:function(){var e;o.forEach(function(e){delete t[e]}),o=void 0;for(var n,r=u.slice();r.length>0;){var a=r.pop(),l=i.c[a];if(l){var s={},d=l.hot._disposeHandlers;for(k=0;k<d.length;k++)d[k].call(null,s);for(i.hmrD[a]=s,l.hot.active=!1,delete i.c[a],delete c[a],k=0;k<l.children.length;k++){var p=i.c[l.children[k]];p&&(e=p.parents.indexOf(a))>=0&&p.parents.splice(e,1)}}}for(var f in c)if(i.o(c,f)&&(l=i.c[f]))for(x=c[f],k=0;k<x.length;k++)n=x[k],(e=l.children.indexOf(n))>=0&&l.children.splice(e,1)},apply:function(t){for(var n in d)i.o(d,n)&&(i.m[n]=d[n]);for(var r=0;r<a.length;r++)a[r](i);for(var o in c)if(i.o(c,o)){var l=i.c[o];if(l){x=c[o];for(var s=[],p=[],f=[],m=0;m<x.length;m++){var h=x[m],g=l.hot._acceptedDependencies[h],v=l.hot._acceptedErrorHandlers[h];if(g){if(-1!==s.indexOf(g))continue;s.push(g),p.push(v),f.push(h)}}for(var y=0;y<s.length;y++)try{s[y].call(null,x)}catch(n){if("function"==typeof p[y])try{p[y](n,{moduleId:o,dependencyId:f[y]})}catch(r){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:o,dependencyId:f[y],error:r,originalError:n}),e.ignoreErrored||(t(r),t(n))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:o,dependencyId:f[y],error:n}),e.ignoreErrored||t(n)}}}for(var b=0;b<w.length;b++){var k=w[b],S=k.module;try{k.require(S)}catch(n){if("function"==typeof k.errorHandler)try{k.errorHandler(n,{moduleId:S,module:i.c[S]})}catch(r){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:S,error:r,originalError:n}),e.ignoreErrored||(t(r),t(n))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:S,error:n}),e.ignoreErrored||t(n)}}return u}}}self.webpackHotUpdateinferno_web_app=(t,n,o)=>{for(var s in n)i.o(n,s)&&(r[s]=n[s],e&&e.push(s));o&&a.push(o),l[t]&&(l[t](),l[t]=void 0)},i.hmrI.jsonp=function(e,t){r||(r={},a=[],o=[],t.push(c)),i.o(r,e)||(r[e]=i.m[e])},i.hmrC.jsonp=function(e,l,u,d,p,f){p.push(c),n={},o=l,r=u.reduce(function(e,t){return e[t]=!1,e},{}),a=[],e.forEach(function(e){i.o(t,e)&&void 0!==t[e]?(d.push(s(e,f)),n[e]=!0):n[e]=!1}),i.f&&(i.f.jsonpHmr=function(e,t){n&&i.o(n,e)&&!n[e]&&(t.push(s(e)),n[e]=!0)})},i.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(i.p+i.hmrF()).then(e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}})};var u=(e,n)=>{var r,o,[a,l,s]=n,c=0;if(a.some(e=>0!==t[e])){for(r in l)i.o(l,r)&&(i.m[r]=l[r]);s&&s(i)}for(e&&e(n);c<a.length;c++)o=a[c],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0},d=self.webpackChunkinferno_web_app=self.webpackChunkinferno_web_app||[];d.forEach(u.bind(null,0)),d.push=u.bind(null,d.push.bind(d))})(),i.nc=void 0,i(956)})();
182
+ `,wA="string"!=typeof xA?lu`
183
+ animation: ${xA} 3s infinite linear;
184
+ `:null,kA=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?Bi(e.palette[t].main,.62):zi(e.palette[t].main,.5),SA=qc("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Wc(n.color)}`],t[n.variant]]}})(mu(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{backgroundColor:kA(e,t)}})),{props:({ownerState:e})=>"inherit"===e.color&&"buffer"!==e.variant,style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),EA=qc("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Wc(n.color)}`]]}})(mu(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(hu()).map(([t])=>{const n=kA(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),wA||{animation:`${xA} 3s infinite linear`}),CA=qc("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${Wc(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})(mu(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:"transform .4s linear"}},{props:{variant:"buffer"},style:{zIndex:1,transition:"transform .4s linear"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:vA||{animation:`${gA} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),IA=qc("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${Wc(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})(mu(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"!==e.color,style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>"buffer"!==e.variant&&"inherit"===e.color,style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(hu()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:kA(e,t),transition:"transform .4s linear"}})),{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:{width:"auto"}},{props:({ownerState:e})=>"indeterminate"===e.variant||"query"===e.variant,style:bA||{animation:`${yA} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),PA=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:a,valueBuffer:i,variant:l="indeterminate",...s}=n,c={...n,color:o,variant:l},u=(e=>{const{classes:t,variant:n,color:r}=e;return mc({root:["root",`color${Wc(r)}`,n],dashed:["dashed",`dashedColor${Wc(r)}`],bar1:["bar","bar1",`barColor${Wc(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","bar2","buffer"!==n&&`barColor${Wc(r)}`,"buffer"===n&&`color${Wc(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]},hA,t)})(c),d=rp(),p={},f={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==a){p["aria-valuenow"]=Math.round(a),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=a-100;d&&(e=-e),f.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==i){let e=(i||0)-100;d&&(e=-e),f.bar2.transform=`translateX(${e}%)`}return(0,Dc.jsxs)(SA,{className:cc(u.root,r),ownerState:c,role:"progressbar",...p,ref:t,...s,children:["buffer"===l?(0,Dc.jsx)(EA,{className:u.dashed,ownerState:c}):null,(0,Dc.jsx)(CA,{className:u.bar1,ownerState:c,style:f.bar1}),"determinate"===l?null:(0,Dc.jsx)(IA,{className:u.bar2,ownerState:c,style:f.bar2})]})}),OA=PA,TA=Jd((0,Dc.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),RA=Jd((0,Dc.jsx)("path",{d:"M3 5H1v16c0 1.1.9 2 2 2h16v-2H3zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2m0 16H7V3h14z"}),"FilterNone"),MA=Vs()(function(e){return{cancelButton:{color:e.palette.common.blueLight,"&:disabled":{color:e.palette.common.gray}},linearProgress:{height:8,backgroundColor:e.palette.common.grayDark,borderRadius:2}}}),AA=function(e){var t=e.showProgressBar,n=e.setShowProgressBar,r=e.cancelled,o=e.cancelTestRun,a=e.duration,l=e.testRun,s=e.resultsMap,c=MA().classes,u=rc(function(e){return e.footerHeight}),d=qC(function(e){return e.readOnly}),p="cancelling"!==(null==l?void 0:l.status)&&"done"!==(null==l?void 0:l.status),f=function(e){switch(e){case"running":return i.createElement(dm,{title:"Running"},i.createElement(Td,{size:24}));case"cancelling":return i.createElement(dm,{title:"Cancelling"},i.createElement(Td,{size:24}));case"waiting":return i.createElement(dm,{title:"Waiting"},i.createElement(_C,{color:"primary"}));case"queued":return i.createElement(dm,{title:"Queued"},i.createElement(RA,{color:"primary"}));case"done":return i.createElement(dm,{title:"Done"},i.createElement(TA,{color:"primary"}));default:return null}}(null==l?void 0:l.status),m=(null==l?void 0:l.test_count)||0,h=function(e,t){var n=0;return e.forEach(function(e){e.test_id&&e.test_run_id===(null==t?void 0:t.id)&&n++}),n}(s,l);return i.createElement(mA,{open:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:a,onClose:function(){(h===m||"done"===(null==l?void 0:l.status)||r)&&n(!1)},slotProps:{clickAwayListener:function(){return{mouseEvent:!1}}},style:{marginBottom:"".concat(u,"px"),zIndex:Mh.zIndex.snackbar},"data-testid":"progress-bar"},i.createElement(nu,{display:"flex",alignItems:"center",bgcolor:"text.secondary",p:"0.5em",borderRadius:"0.5em",role:"aside"},i.createElement(nu,{margin:"2px 0 0 4px"},f),i.createElement(nu,{minWidth:200,mx:1,color:"background.paper"},"cancelling"===(null==l?void 0:l.status)?i.createElement(Su,{variant:"body1"},"Cancelling Test Run..."):i.createElement(OA,{variant:"determinate",value:"done"===(null==l?void 0:l.status)?100:100*h/m||0,className:c.linearProgress})),i.createElement(nu,{color:"background.paper"},i.createElement(Su,{variant:"body1"},"done"===(null==l?void 0:l.status)?m:h,"/",m)),i.createElement(dm,{title:"Cancel Test Run"},i.createElement(Kd,{"aria-label":"cancel",disabled:!p||d,color:"primary",onClick:o,className:c.cancelButton},i.createElement(LC,null)))))};function LA({props:e,name:t}){return gc({props:e,name:t,defaultTheme:ms,themeId:hs})}function jA(e){return LA}function $A(e){return fc("MuiSimpleTreeView",e)}Jc("MuiSimpleTreeView",["root"]);class NA{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,n={}){let r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const n=this.events[e];if(!n)return;const r=Array.from(n.highPriority.keys()),o=Array.from(n.regular.keys());for(let e=r.length-1;e>=0;e-=1){const o=r[e];n.highPriority.has(o)&&o.apply(this,t)}for(let e=0;e<o.length;e+=1){const r=o[e];n.regular.has(r)&&r.apply(this,t)}}once(e,t){const n=this;this.on(e,function r(...o){n.removeListener(e,r),t.apply(n,o)})}}const _A=()=>{const[e]=i.useState(()=>new NA),t=i.useCallback((...t)=>{const[n,r,o={}]=t;o.defaultMuiPrevented=!1,(e=>void 0!==e.isPropagationStopped)(o)&&o.isPropagationStopped()||e.emit(n,r,o)},[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:i.useCallback((t,n)=>(e.on(t,n),()=>{e.removeListener(t,n)}),[e])}}};_A.params={};const DA=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};DA.params={};let zA=0;const FA=({id:e,treeId:t="",itemId:n})=>null!=e?e:`${t}-${n}`,BA=({params:e,state:t,setState:n})=>{i.useEffect(()=>{n(t=>t.id.treeId===e.id&&void 0!==t.id.treeId?t:vc({},t,{id:vc({},t.id,{treeId:e.id??(zA+=1,`mui-tree-view-${zA}`)})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};BA.params={id:!0},BA.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const WA=[_A,DA,BA],HA=["slots","slotProps","apiRef","experimentalFeatures"],VA=i.createContext(null);function qA(e){const{value:t,children:n}=e;return(0,Dc.jsx)(VA.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const UA=(e,t,n)=>{e.$$publishEvent(t,n)},KA="__TREE_VIEW_ROOT_PARENT_ID__",GA=e=>{const t={};return e.forEach((e,n)=>{t[e]=n}),t},YA=i.createContext(()=>-1),XA=["children"],QA=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const o={},a={},i={[KA]:[]},l=(e,s,c)=>{const u=r?r(e):e.id;if(null==u)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(e)].join("\n"));if(null!=o[u])throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${u}"`].join("\n"));const d=n?n(e):e.label;if(null==d)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(e)].join("\n"));o[u]={id:u,label:d,parentId:c,idAttribute:void 0,expandable:!!e.children?.length,disabled:!!t&&t(e),depth:s},a[u]=e;const p=c??KA;i[p]||(i[p]=[]),i[p].push(u),e.children?.forEach(e=>l(e,s+1,u))};e.forEach(e=>l(e,0,null));const s={};return Object.keys(i).forEach(e=>{s[e]=GA(i[e])}),{itemMetaMap:o,itemMap:a,itemOrderedChildrenIds:i,itemChildrenIndexes:s}},JA=({instance:e,params:t,state:n,setState:r,experimentalFeatures:o})=>{const a=i.useCallback(e=>n.items.itemMetaMap[e],[n.items.itemMetaMap]),l=i.useCallback(e=>n.items.itemMap[e],[n.items.itemMap]),s=i.useCallback(()=>{const e=t=>{const r=Ku(n.items.itemMap[t],XA),o=n.items.itemOrderedChildrenIds[t];return o&&(r.children=o.map(e)),r};return n.items.itemOrderedChildrenIds[KA].map(e)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),c=i.useCallback(t=>{if(null==t)return!1;let n=e.getItemMeta(t);if(!n)return!1;if(n.disabled)return!0;for(;null!=n.parentId;)if(n=e.getItemMeta(n.parentId),n.disabled)return!0;return!1},[e]),u=i.useCallback(t=>{const r=e.getItemMeta(t).parentId??KA;return n.items.itemChildrenIndexes[r][t]},[e,n.items.itemChildrenIndexes]),d=i.useCallback(e=>n.items.itemOrderedChildrenIds[e??KA]??[],[n.items.itemOrderedChildrenIds]),p=t=>{const r=e.getItemMeta(t);return null==r?null:document.getElementById(FA({treeId:n.id.treeId,itemId:t,id:r.idAttribute}))},f=i.useRef(!1),m=i.useCallback(()=>{f.current=!0},[]),h=i.useCallback(()=>f.current,[]);return i.useEffect(()=>{e.areItemUpdatesPrevented()||r(n=>{const r=QA({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(n.items.itemMetaMap).forEach(t=>{r.itemMetaMap[t.id]||UA(e,"removeItem",{id:t.id})}),vc({},n,{items:r})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":"number"==typeof t.itemChildrenIndentation?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:l,getItemDOMElement:p,getItemTree:s,getItemOrderedChildrenIds:d},instance:{getItemMeta:a,getItem:l,getItemTree:s,getItemsToRender:()=>{const e=t=>{const r=n.items.itemMetaMap[t];return{label:r.label,itemId:r.id,id:r.idAttribute,children:n.items.itemOrderedChildrenIds[t]?.map(e)}};return n.items.itemOrderedChildrenIds[KA].map(e)},getItemIndex:u,getItemDOMElement:p,getItemOrderedChildrenIds:d,isItemDisabled:c,isItemNavigable:n=>!!t.disabledItemsFocusable||!e.isItemDisabled(n),preventItemUpdates:m,areItemUpdatesPrevented:h},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:o.indentationAtItemLevel??!1}}}};JA.getInitialState=e=>({items:QA({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})}),JA.getDefaultizedParams=({params:e})=>vc({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"}),JA.wrapRoot=({children:e,instance:t})=>(0,Dc.jsx)(YA.Provider,{value:e=>t.getItemMeta(e)?.depth??0,children:e}),JA.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const ZA=({instance:e,params:t,models:n})=>{const r=i.useMemo(()=>{const e=new Map;return n.expandedItems.value.forEach(t=>{e.set(t,!0)}),e},[n.expandedItems.value]),o=(e,r)=>{t.onExpandedItemsChange?.(e,r),n.expandedItems.setControlledValue(r)},a=i.useCallback(e=>r.has(e),[r]),l=i.useCallback(t=>!!e.getItemMeta(t)?.expandable,[e]),s=Wu((t,n)=>{const r=e.isItemExpanded(n);e.setItemExpansion(t,n,!r)}),c=Wu((r,a,i)=>{if(e.isItemExpanded(a)===i)return;let l;l=i?[a].concat(n.expandedItems.value):n.expandedItems.value.filter(e=>e!==a),t.onItemExpansionToggle&&t.onItemExpansionToggle(r,a,i),o(r,l)});return{publicAPI:{setItemExpansion:c},instance:{isItemExpanded:a,isItemExpandable:l,setItemExpansion:c,toggleItemExpansion:s,expandAllSiblings:(r,a)=>{const i=e.getItemMeta(a),l=e.getItemOrderedChildrenIds(i.parentId).filter(t=>e.isItemExpandable(t)&&!e.isItemExpanded(t)),s=n.expandedItems.value.concat(l);l.length>0&&(t.onItemExpansionToggle&&l.forEach(e=>{t.onItemExpansionToggle(r,e,!0)}),o(r,s))}},contextValue:{expansion:{expansionTrigger:i.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable])}}}};ZA.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const eL=[];ZA.getDefaultizedParams=({params:e})=>vc({},e,{defaultExpandedItems:e.defaultExpandedItems??eL}),ZA.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const tL=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(-1!==n)return t[n]},nL=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),o=e.getItemIndex(t);if(0===o)return n.parentId;let a=o-1;for(;!e.isItemNavigable(r[a])&&a>=0;)a-=1;if(-1===a)return null==n.parentId?null:nL(e,n.parentId);let i=r[a],l=tL(e,e.getItemOrderedChildrenIds(i));for(;e.isItemExpanded(i)&&null!=l;)i=l,l=e.getItemOrderedChildrenIds(i).find(e.isItemNavigable);return i},rL=(e,t)=>{if(e.isItemExpanded(t)){const n=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(null!=n)return n}let n=e.getItemMeta(t);for(;null!=n;){const t=e.getItemOrderedChildrenIds(n.parentId),r=e.getItemIndex(n.id);if(r<t.length-1){let n=r+1;for(;!e.isItemNavigable(t[n])&&n<t.length-1;)n+=1;if(e.isItemNavigable(t[n]))return t[n]}n=e.getItemMeta(n.parentId)}return null},oL=e=>{let t=null;for(;null==t||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=tL(e,n);if(null==r)return t;t=r}return t},aL=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),iL=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),o=e.getItemMeta(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const a=[r.id],i=[o.id];let l=r.parentId,s=o.parentId,c=-1!==i.indexOf(l),u=-1!==a.indexOf(s),d=!0,p=!0;for(;!u&&!c;)d&&(a.push(l),c=-1!==i.indexOf(l),d=null!==l,!c&&d&&(l=e.getItemMeta(l).parentId)),p&&!c&&(i.push(s),u=-1!==a.indexOf(s),p=null!==s,!u&&p&&(s=e.getItemMeta(s).parentId));const f=c?l:s,m=e.getItemOrderedChildrenIds(f),h=a[a.indexOf(f)-1],g=i[i.indexOf(f)-1];return m.indexOf(h)<m.indexOf(g)?[t,n]:[n,t]},lL=(e,t)=>t!==e.closest('*[role="treeitem"]'),sL=e=>Array.isArray(e)?e:null!=e?[e]:[],cL=e=>{const t={};return e.forEach(e=>{t[e]=!0}),t},uL=({instance:e,params:t,models:n})=>{const r=i.useRef(null),o=i.useRef({}),a=i.useMemo(()=>{const e=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(t=>{e.set(t,!0)}):null!=n.selectedItems.value&&e.set(n.selectedItems.value,!0),e},[n.selectedItems.value]),l=(r,o)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const a=o.filter(t=>!e.isItemSelected(t)),i=n.selectedItems.value.filter(e=>!o.includes(e));a.forEach(e=>{t.onItemSelectionToggle(r,e,!0)}),i.forEach(e=>{t.onItemSelectionToggle(r,e,!1)})}else o!==n.selectedItems.value&&(null!=n.selectedItems.value&&t.onItemSelectionToggle(r,n.selectedItems.value,!1),null!=o&&t.onItemSelectionToggle(r,o,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(r,o),n.selectedItems.setControlledValue(o)},s=({event:a,itemId:i,keepExistingSelection:s=!1,shouldBeSelected:c})=>{if(t.disableSelection)return;let u;if(s){const t=sL(n.selectedItems.value),r=e.isItemSelected(i);u=!r||!1!==c&&null!=c?r||!0!==c&&null!=c?t:[i].concat(t):t.filter(e=>e!==i)}else u=!1===c||null==c&&e.isItemSelected(i)?t.multiSelect?[]:null:t.multiSelect?[i]:i;l(a,u),r.current=i,o.current={}},c=(r,[a,i])=>{if(t.disableSelection||!t.multiSelect)return;let s=sL(n.selectedItems.value).slice();Object.keys(o.current).length>0&&(s=s.filter(e=>!o.current[e]));const c=cL(s),u=((e,t,n)=>{const r=t=>{if(e.isItemExpandable(t)&&e.isItemExpanded(t))return e.getItemOrderedChildrenIds(t)[0];let n=e.getItemMeta(t);for(;null!=n;){const t=e.getItemOrderedChildrenIds(n.parentId),r=e.getItemIndex(n.id);if(r<t.length-1)return t[r+1];n=e.getItemMeta(n.parentId)}throw new Error("Invalid range")},[o,a]=iL(e,t,n),i=[o];let l=o;for(;l!==a;)l=r(l),e.isItemDisabled(l)||i.push(l);return i})(e,a,i),d=u.filter(e=>!c[e]);s=s.concat(d),l(r,s),o.current=cL(u)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:s},instance:{isItemSelected:e=>a.has(e),selectItem:s,selectAllNavigableItems:n=>{if(t.disableSelection||!t.multiSelect)return;const r=(e=>{let t=aL(e);const n=[];for(;null!=t;)n.push(t),t=rL(e,t);return n})(e);l(n,r),o.current=cL(r)},expandSelectionRange:(t,n)=>{if(null!=r.current){const[o,a]=iL(e,n,r.current);c(t,[o,a])}},selectRangeFromStartToItem:(t,n)=>{c(t,[aL(e),n])},selectRangeFromItemToEnd:(t,n)=>{c(t,[n,oL(e)])},selectItemFromArrowNavigation:(e,r,a)=>{if(t.disableSelection||!t.multiSelect)return;let i=sL(n.selectedItems.value).slice();0===Object.keys(o.current).length?(i.push(a),o.current={[r]:!0,[a]:!0}):(o.current[r]||(o.current={}),o.current[a]?(i=i.filter(e=>e!==r),delete o.current[r]):(i.push(a),o.current[a]=!0)),l(e,i)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};uL.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const dL=[];uL.getDefaultizedParams=({params:e})=>vc({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?dL:null)}),uL.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};class pL{constructor(e=1e3){this.timeouts=new Map,this.cleanupTimeout=1e3,this.cleanupTimeout=e}register(e,t,n){this.timeouts||(this.timeouts=new Map);const r=setTimeout(()=>{"function"==typeof t&&t(),this.timeouts.delete(n.cleanupToken)},this.cleanupTimeout);this.timeouts.set(n.cleanupToken,r)}unregister(e){const t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&(this.timeouts.forEach((e,t)=>{this.unregister({cleanupToken:t})}),this.timeouts=void 0)}}class fL{constructor(){this.registry=new FinalizationRegistry(e=>{"function"==typeof e&&e()})}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}}class mL{}const hL=function(e){let t=0;return function(n,r,o){null===e.registry&&(e.registry="undefined"!=typeof FinalizationRegistry?new fL:new pL);const[a]=i.useState(new mL),l=i.useRef(null),s=i.useRef(void 0);s.current=o;const c=i.useRef(null);if(!l.current&&s.current){const o=(e,t)=>{t.defaultMuiPrevented||s.current?.(e,t)};l.current=n.$$subscribeEvent(r,o),t+=1,c.current={cleanupToken:t},e.registry.register(a,()=>{l.current?.(),l.current=null,c.current=null},c.current)}else!s.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));i.useEffect(()=>{if(!l.current&&s.current){const e=(e,t)=>{t.defaultMuiPrevented||s.current?.(e,t)};l.current=n.$$subscribeEvent(r,e)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{l.current?.(),l.current=null}},[n,r])}}({registry:null}),gL=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?gL(t.shadowRoot):t:null},vL=({instance:e,params:t,state:n,setState:r,models:o,rootRef:a})=>{const l=((e,t)=>{let n=sL(t).find(t=>{if(!e.isItemNavigable(t))return!1;const n=e.getItemMeta(t);return n&&(null==n.parentId||e.isItemExpanded(n.parentId))});return null==n&&(n=aL(e)),n})(e,o.selectedItems.value),s=Wu(e=>{const t="function"==typeof e?e(n.focusedItemId):e;n.focusedItemId!==t&&r(e=>vc({},e,{focusedItemId:t}))}),c=i.useCallback(()=>!!a.current&&a.current.contains(gL(wp(a.current))),[a]),u=i.useCallback(e=>n.focusedItemId===e&&c(),[n.focusedItemId,c]),d=(n,r)=>{const o=e.getItemDOMElement(r);o&&o.focus(),s(r),t.onItemFocus&&t.onItemFocus(n,r)},p=Wu((t,n)=>{(t=>{const n=e.getItemMeta(t);return n&&(null==n.parentId||e.isItemExpanded(n.parentId))})(n)&&d(t,n)}),f=Wu(()=>{if(null!=n.focusedItemId){if(e.getItemMeta(n.focusedItemId)){const t=e.getItemDOMElement(n.focusedItemId);t&&t.blur()}s(null)}});hL(e,"removeItem",({id:e})=>{n.focusedItemId===e&&d(null,l)});const m=e=>t=>{e.onFocus?.(t),t.defaultMuiPrevented||t.target===t.currentTarget&&d(t,l)};return{getRootProps:e=>({onFocus:m(e)}),publicAPI:{focusItem:p},instance:{isItemFocused:u,canItemBeTabbed:e=>e===l,focusItem:p,removeFocusedItem:f}}};vL.getInitialState=()=>({focusedItemId:null}),vL.params={onItemFocus:!0};const yL=i.createContext(),bL=(e,t)=>e.getAvailablePlugins().has(t),xL=()=>{const e=i.useContext(VA);if(null==e)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join("\n"));return e},wL=({instance:e,state:t,setState:n,params:r})=>{const o=i.useRef(t.editedItemId),a=Boolean(r.isItemEditable),l=(e,t)=>{if(!t)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",e].join("\n"));n(n=>{const r=n.items.itemMetaMap[e];return r.label!==t?vc({},n,{items:vc({},n.items,{itemMetaMap:vc({},n.items.itemMetaMap,{[e]:vc({},r,{label:t})})})}):n}),r.onItemLabelChange&&r.onItemLabelChange(e,t)};return{instance:{setEditedItemId:e=>{n(t=>vc({},t,{editedItemId:e})),o.current=e},isItemBeingEdited:e=>e===t.editedItemId,updateItemLabel:l,isItemEditable:t=>{if(null==t||!a)return!1;const n=e.getItem(t);return!!n&&("function"==typeof r.isItemEditable?r.isItemEditable(n):Boolean(r.isItemEditable))},isTreeViewEditable:a,isItemBeingEditedRef:e=>o.current===e},publicAPI:{updateItemLabel:l}}};wL.itemPlugin=({props:e})=>{const{instance:t}=xL(),{label:n,itemId:r}=e,[o,a]=i.useState(n),l=t.isItemBeingEdited(r);return i.useEffect(()=>{l||a(n)},[l,n]),{propsEnhancers:{labelInput:({externalEventHandlers:e,interactions:n})=>t.isItemEditable(r)?{value:o??"","data-element":"labelInput",onChange:t=>{e.onChange?.(t),a(t.target.value)},onKeyDown:t=>{if(e.onKeyDown?.(t),t.defaultMuiPrevented)return;const r=t.target;"Enter"===t.key&&r.value?n.handleSaveItemLabel(t,r.value):"Escape"===t.key&&n.handleCancelItemLabelEditing(t)},onBlur:t=>{e.onBlur?.(t),t.defaultMuiPrevented||t.target.value&&n.handleSaveItemLabel(t,t.target.value)},autoFocus:!0,type:"text"}:{}}}},wL.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return vc({},e,{isItemEditable:!!n&&(e.isItemEditable??!1)})},wL.getInitialState=()=>({editedItemId:null}),wL.params={onItemLabelChange:!0,isItemEditable:!0};const kL=({instance:e,params:t,state:n})=>{const r=i.useContext(yL)??!1,o=i.useRef({}),a=Wu(e=>{o.current=e(o.current)});i.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const t={};Object.values(n.items.itemMetaMap).forEach(e=>{t[e.id]=e.label.substring(0,1).toLowerCase()}),o.current=t},[n.items.itemMetaMap,t.getItemId,e]);const l=n=>!t.disableSelection&&!e.isItemDisabled(n),s=t=>!e.isItemDisabled(t)&&e.isItemExpandable(t);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(n,a)=>{if(n.defaultMuiPrevented)return;if(n.altKey||lL(n.target,n.currentTarget))return;const i=n.ctrlKey||n.metaKey,c=n.key;switch(!0){case" "===c&&l(a):n.preventDefault(),t.multiSelect&&n.shiftKey?e.expandSelectionRange(n,a):e.selectItem({event:n,itemId:a,keepExistingSelection:t.multiSelect,shouldBeSelected:!t.multiSelect||void 0});break;case"Enter"===c:bL(e,wL)&&e.isItemEditable(a)&&!e.isItemBeingEdited(a)?e.setEditedItemId(a):s(a)?(e.toggleItemExpansion(n,a),n.preventDefault()):l(a)&&(t.multiSelect?(n.preventDefault(),e.selectItem({event:n,itemId:a,keepExistingSelection:!0})):e.isItemSelected(a)||(e.selectItem({event:n,itemId:a}),n.preventDefault()));break;case"ArrowDown"===c:{const r=rL(e,a);r&&(n.preventDefault(),e.focusItem(n,r),t.multiSelect&&n.shiftKey&&l(r)&&e.selectItemFromArrowNavigation(n,a,r));break}case"ArrowUp"===c:{const r=nL(e,a);r&&(n.preventDefault(),e.focusItem(n,r),t.multiSelect&&n.shiftKey&&l(r)&&e.selectItemFromArrowNavigation(n,a,r));break}case"ArrowRight"===c&&!r||"ArrowLeft"===c&&r:if(i)return;if(e.isItemExpanded(a)){const t=rL(e,a);t&&(e.focusItem(n,t),n.preventDefault())}else s(a)&&(e.toggleItemExpansion(n,a),n.preventDefault());break;case"ArrowLeft"===c&&!r||"ArrowRight"===c&&r:if(i)return;if(s(a)&&e.isItemExpanded(a))e.toggleItemExpansion(n,a),n.preventDefault();else{const t=e.getItemMeta(a).parentId;t&&(e.focusItem(n,t),n.preventDefault())}break;case"Home"===c:l(a)&&t.multiSelect&&i&&n.shiftKey?e.selectRangeFromStartToItem(n,a):e.focusItem(n,aL(e)),n.preventDefault();break;case"End"===c:l(a)&&t.multiSelect&&i&&n.shiftKey?e.selectRangeFromItemToEnd(n,a):e.focusItem(n,oL(e)),n.preventDefault();break;case"*"===c:e.expandAllSiblings(n,a),n.preventDefault();break;case"A"===String.fromCharCode(n.keyCode)&&i&&t.multiSelect&&!t.disableSelection:e.selectAllNavigableItems(n),n.preventDefault();break;case!i&&!n.shiftKey&&function(e){return!!e&&1===e.length&&!!e.match(/\S/)}(c):{const t=((t,n)=>{const r=n.toLowerCase(),a=t=>{const n=rL(e,t);return null===n?aL(e):n};let i=null,l=a(t);const s={};for(;null==i&&!s[l];)o.current[l]===r?i=l:(s[l]=!0,l=a(l));return i})(a,c);null!=t&&(e.focusItem(n,t),n.preventDefault());break}}}}}};kL.params={};const SL=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});SL.params={};const EL=i.createContext(null);function CL(e){const{children:t,itemId:n=null}=e,{instance:r,treeId:o,rootRef:a}=xL(),l=i.useRef(new Map);i.useEffect(()=>{if(!a.current)return;let e=null;if(null==n)e=a.current.id;else{const t=r.getItemMeta(n);void 0!==t&&(e=FA({itemId:n,treeId:o,id:t.idAttribute}))}if(null==e)return;const t=r.getItemOrderedChildrenIds(n??null)??[],i=e.replace(/["\\]/g,"\\$&"),s=a.current.querySelectorAll(`${null==n?"":`*[id="${i}"] `}[role="treeitem"]:not(*[id="${i}"] [role="treeitem"] [role="treeitem"])`),c=Array.from(s).map(e=>l.current.get(e.id)),u=c.length!==t.length||c.some((e,n)=>e!==t[n]);u&&r.setJSXItemsOrderedChildrenIds(n??null,c)});const s=i.useMemo(()=>({registerChild:(e,t)=>l.current.set(e,t),unregisterChild:e=>l.current.delete(e),parentId:n}),[n]);return(0,Dc.jsx)(EL.Provider,{value:s,children:t})}const IL=({instance:e,setState:t})=>(e.preventItemUpdates(),{instance:{insertJSXItem:Wu(n=>(t(e=>{if(null!=e.items.itemMetaMap[n.id])throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${n.id}"`].join("\n"));return vc({},e,{items:vc({},e.items,{itemMetaMap:vc({},e.items.itemMetaMap,{[n.id]:n}),itemMap:vc({},e.items.itemMap,{[n.id]:{id:n.id,label:n.label}})})})}),()=>{t(e=>{const t=vc({},e.items.itemMetaMap),r=vc({},e.items.itemMap);return delete t[n.id],delete r[n.id],vc({},e,{items:vc({},e.items,{itemMetaMap:t,itemMap:r})})}),UA(e,"removeItem",{id:n.id})})),setJSXItemsOrderedChildrenIds:(e,n)=>{const r=e??KA;t(e=>vc({},e,{items:vc({},e.items,{itemOrderedChildrenIds:vc({},e.items.itemOrderedChildrenIds,{[r]:n}),itemChildrenIndexes:vc({},e.items.itemChildrenIndexes,{[r]:GA(n)})})}))},mapFirstCharFromJSX:Wu((t,n)=>(e.updateFirstCharMap(e=>(e[t]=n,e)),()=>{e.updateFirstCharMap(e=>{const n=vc({},e);return delete n[t],n})}))}}),PL=e=>Array.isArray(e)?e.length>0&&e.some(PL):Boolean(e);IL.itemPlugin=({props:e,rootRef:t,contentRef:n})=>{const{instance:r,treeId:o}=xL(),{children:a,disabled:l=!1,label:s,itemId:c,id:u}=e,d=i.useContext(EL);if(null==d)throw new Error(["MUI X: Could not find the Tree View Children Item context.","It looks like you rendered your component outside of a SimpleTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join("\n"));const{registerChild:p,unregisterChild:f,parentId:m}=d,h=PL(a),g=i.useRef(null),v=zu(g,n);return Bu(()=>{const e=FA({itemId:c,treeId:o,id:u});return p(e,c),()=>{f(e)}},[p,f,c,u,o]),i.useEffect(()=>r.insertJSXItem({id:c,idAttribute:u,parentId:m,expandable:h,disabled:l}),[r,m,c,h,l,u]),i.useEffect(()=>{if(s)return r.mapFirstCharFromJSX(c,(g.current?.textContent??"").substring(0,1).toLowerCase())},[r,c,s]),{contentRef:v,rootRef:t}},IL.wrapItem=({children:e,itemId:t})=>{const n=i.useContext(YA);return(0,Dc.jsx)(CL,{itemId:t,children:(0,Dc.jsx)(YA.Provider,{value:n+1,children:e})})},IL.wrapRoot=({children:e})=>(0,Dc.jsx)(CL,{children:(0,Dc.jsx)(YA.Provider,{value:0,children:e})}),IL.params={};const OL=[JA,ZA,uL,vL,kL,SL,IL],TL=jA(),RL=qc("ul",{name:"MuiSimpleTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),ML=[],AL=i.forwardRef(function(e,t){const n=TL({props:e,name:"MuiSimpleTreeView"}),r=n,{getRootProps:o,contextValue:a}=(({plugins:e,rootRef:t,props:n})=>{const r=[...WA,...e],{pluginParams:o,forwardedProps:a,apiRef:l,experimentalFeatures:s,slots:c,slotProps:u}=(e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:o},plugins:a}=e,i=Ku(e.props,HA);const l={};a.forEach(e=>{Object.assign(l,e.params)});const s={},c={};Object.keys(i).forEach(e=>{const t=i[e];l[e]?s[e]=t:c[e]=t});const u=o??{},d=a.reduce((e,t)=>t.getDefaultizedParams?t.getDefaultizedParams({params:e,experimentalFeatures:u}):e,s);return{apiRef:r,forwardedProps:c,pluginParams:d,slots:t??{},slotProps:n??{},experimentalFeatures:u}})({plugins:r,props:n}),d=((e,t)=>{const n=i.useRef({}),[r,o]=i.useState(()=>{const r={};return e.forEach(e=>{e.models&&Object.entries(e.models).forEach(([e,o])=>{n.current[e]={isControlled:void 0!==t[e],getDefaultValue:o.getDefaultValue},r[e]=o.getDefaultValue(t)})}),r});return Object.fromEntries(Object.entries(n.current).map(([e,n])=>{const a=t[e]??r[e];return[e,{value:a,setControlledValue:t=>{n.isControlled||o(n=>vc({},n,{[e]:t}))}}]}))})(r,o),p=i.useRef({}).current,f=function(e){const t=i.useRef({});return e?(null==e.current&&(e.current={}),e.current):t.current}(l),m=i.useRef(null),h=zu(m,t),g=(({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:t=>{let n=null,r=null;const o=[],a={};e.forEach(e=>{if(!e.itemPlugin)return;const i=e.itemPlugin({props:t,rootRef:n,contentRef:r});i?.rootRef&&(n=i.rootRef),i?.contentRef&&(r=i.contentRef),i?.propsEnhancers&&(o.push(i.propsEnhancers),Object.keys(i.propsEnhancers).forEach(e=>{a[e]=!0}))});const i=Object.fromEntries(Object.keys(a).map(e=>{return[e,(t=e,e=>{const n={};return o.forEach(r=>{const o=r[t];null!=o&&Object.assign(n,o(e))}),n})];var t}));return{contentRef:r,rootRef:n,propsEnhancers:i}},wrapItem:({itemId:n,children:r})=>{let o=r;for(let r=e.length-1;r>=0;r-=1){const a=e[r];a.wrapItem&&(o=a.wrapItem({itemId:n,children:o,instance:t}))}return o},wrapRoot:({children:n})=>{let r=n;for(let n=e.length-1;n>=0;n-=1){const o=e[n];o.wrapRoot&&(r=o.wrapRoot({children:r,instance:t}))}return r},instance:t,rootRef:r,publicAPI:n}))({plugins:r,instance:p,publicAPI:f,rootRef:m}),[v,y]=i.useState(()=>{const e={};return r.forEach(t=>{t.getInitialState&&Object.assign(e,t.getInitialState(o))}),e}),b=[];return r.forEach(e=>{const t=e({instance:p,params:o,slots:c,slotProps:u,experimentalFeatures:s,state:v,setState:y,rootRef:m,models:d,plugins:r});t.getRootProps&&b.push(t.getRootProps),t.publicAPI&&Object.assign(f,t.publicAPI),t.instance&&Object.assign(p,t.instance),t.contextValue&&Object.assign(g,t.contextValue)}),{getRootProps:(e={})=>{const t=vc({role:"tree"},a,e,{ref:h});return b.forEach(n=>{Object.assign(t,n(e))}),t},rootRef:h,contextValue:g,instance:p}})({plugins:OL,rootRef:t,props:vc({},n,{items:ML})}),{slots:l,slotProps:s}=n,c=(e=>{const{classes:t}=e;return mc({root:["root"]},$A,t)})(n),u=l?.root??RL,d=zf({elementType:u,externalSlotProps:s?.root,className:c.root,getSlotProps:o,ownerState:r});return(0,Dc.jsx)(qA,{value:a,children:(0,Dc.jsx)(u,vc({},d))})}),LL=Jd((0,Dc.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),jL=Jd((0,Dc.jsx)("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"}),"ListAlt"),$L=Jd((0,Dc.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),NL=Jd((0,Dc.jsx)("path",{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"}),"Flag"),_L=Jd((0,Dc.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications"),DL=Jd((0,Dc.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),zL=Jd([(0,Dc.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),(0,Dc.jsx)("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber"),FL=Jd([(0,Dc.jsx)("path",{d:"M23 11.99 20.56 9.2l.34-3.69-3.61-.82L15.4 1.5 12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 11.99l2.44 2.79-.34 3.7 3.61.82 1.89 3.2 3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-3.95 1.48-.56.65.08.85.18 1.95-1.9.43-.84.19-.44.74-.99 1.68-1.78-.77-.8-.34-.79.34-1.78.77-.99-1.67-.44-.74-.84-.19-1.9-.43.18-1.96.08-.85-.56-.65L3.67 12l1.29-1.48.56-.65-.09-.86-.18-1.94 1.9-.43.84-.19.44-.74.99-1.68 1.78.77.8.34.79-.34 1.78-.77.99 1.68.44.74.84.19 1.9.43-.18 1.95-.08.85.56.65 1.29 1.47z"},"0"),(0,Dc.jsx)("path",{d:"m10.09 13.75-2.32-2.33-1.48 1.49 3.8 3.81 7.34-7.36-1.48-1.49z"},"1")],"VerifiedOutlined");function BL(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:o,disableSelection:a},expansion:{expansionTrigger:i}}=xL(),l=t.isItemExpandable(e),s=t.isItemExpanded(e),c=t.isItemFocused(e),u=t.isItemSelected(e),d=t.isItemDisabled(e),p=!!t?.isItemBeingEdited&&t?.isItemBeingEdited(e),f=!!t.isItemEditable&&t.isItemEditable(e),m=()=>{bL(t,wL)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:d,expanded:s,selected:u,focused:c,editable:f,editing:p,disableSelection:a,checkboxSelection:o,handleExpansion:n=>{if(!d){c||t.focusItem(n,e);const o=r&&(n.shiftKey||n.ctrlKey||n.metaKey);!l||o&&t.isItemExpanded(e)||t.toggleItemExpansion(n,e)}},handleSelection:n=>{d||(c||p||t.focusItem(n,e),r&&(n.shiftKey||n.ctrlKey||n.metaKey)?n.shiftKey?t.expandSelectionRange(n,e):t.selectItem({event:n,itemId:e,keepExistingSelection:!0}):t.selectItem({event:n,itemId:e,shouldBeSelected:!0}))},handleCheckboxSelection:n=>{if(a||d)return;const o=n.nativeEvent.shiftKey;r&&o?t.expandSelectionRange(n,e):t.selectItem({event:n,itemId:e,keepExistingSelection:r,shouldBeSelected:n.target.checked})},handleContentClick:n,preventSelection:e=>{(e.shiftKey||e.ctrlKey||e.metaKey||d)&&e.preventDefault()},expansionTrigger:i,toggleItemEditing:m,handleSaveItemLabel:(n,r)=>{bL(t,wL)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,r),m(),t.focusItem(n,e))},handleCancelItemLabelEditing:n=>{bL(t,wL)&&t.isItemBeingEditedRef(e)&&(m(),t.focusItem(n,e))}}}function WL(e){return fc("MuiCollapse",e)}Jc("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const HL=qc("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(mu(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>"exited"===e.state&&!e.in&&"0px"===e.collapsedSize,style:{visibility:"hidden"}}]}))),VL=qc("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),qL=qc("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),UL=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:l="0px",component:s,easing:c,in:u,onEnter:d,onEntered:p,onEntering:f,onExit:m,onExited:h,onExiting:g,orientation:v="vertical",style:y,timeout:b=Ul.standard,TransitionComponent:x=fp,...w}=n,k={...n,orientation:v,collapsedSize:l},S=(e=>{const{orientation:t,classes:n}=e;return mc({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},WL,n)})(k),E=gs(),C=ad(),I=i.useRef(null),P=i.useRef(),O="number"==typeof l?`${l}px`:l,T="horizontal"===v,R=T?"width":"height",M=i.useRef(null),A=Fu(t,M),L=e=>t=>{if(e){const n=M.current;void 0===t?e(n):e(n,t)}},j=()=>I.current?I.current[T?"clientWidth":"clientHeight"]:0,$=L((e,t)=>{I.current&&T&&(I.current.style.position="absolute"),e.style[R]=O,d&&d(e,t)}),N=L((e,t)=>{const n=j();I.current&&T&&(I.current.style.position="");const{duration:r,easing:o}=hp({style:y,timeout:b,easing:c},{mode:"enter"});if("auto"===b){const t=E.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,P.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[R]=`${n}px`,e.style.transitionTimingFunction=o,f&&f(e,t)}),_=L((e,t)=>{e.style[R]="auto",p&&p(e,t)}),D=L(e=>{e.style[R]=`${j()}px`,m&&m(e)}),z=L(h),F=L(e=>{const t=j(),{duration:n,easing:r}=hp({style:y,timeout:b,easing:c},{mode:"exit"});if("auto"===b){const n=E.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,P.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[R]=O,e.style.transitionTimingFunction=r,g&&g(e)});return(0,Dc.jsx)(x,{in:u,onEnter:$,onEntered:_,onEntering:N,onExit:D,onExited:z,onExiting:F,addEndListener:e=>{"auto"===b&&C.start(P.current||0,e),r&&r(M.current,e)},nodeRef:M,timeout:"auto"===b?null:b,...w,children:(e,{ownerState:t,...n})=>(0,Dc.jsx)(HL,{as:s,className:cc(S.root,a,{entered:S.entered,exited:!u&&"0px"===O&&S.hidden}[e]),style:{[T?"minWidth":"minHeight"]:O,...y},ref:A,ownerState:{...k,state:e},...n,children:(0,Dc.jsx)(VL,{ownerState:{...k,state:e},className:S.wrapper,ref:I,children:(0,Dc.jsx)(qL,{ownerState:{...k,state:e},className:S.wrapperInner,children:o})})})})});UL&&(UL.muiSupportAuto=!0);const KL=UL;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(e){if(i.isValidElement(e)||(0,Br.Hy)(e)||!GL(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=YL(e[n])}),t}function XL(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return GL(e)&&GL(t)&&Object.keys(t).forEach(o=>{i.isValidElement(t[o])||(0,Br.Hy)(t[o])?r[o]=t[o]:GL(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&GL(e[o])?r[o]=XL(e[o],t[o],n):n.clone?r[o]=GL(t[o])?YL(t[o]):t[o]:r[o]=t[o]}),r}function QL(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e},{...t}):t}const JL={borderRadius:4},ZL={xs:0,sm:600,md:900,lg:1200,xl:1536},ej={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ZL[e]}px)`},tj={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:ZL[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function nj(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||ej;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=r.breakpoints||ej;return Object.keys(t).reduce((o,a)=>{if(i=e.keys,"@"===(l=a)||l.startsWith("@")&&(i.some(e=>l.startsWith(`@${e}`))||l.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}(r.containerQueries?r:tj,a);e&&(o[e]=n(t[a],a))}else if(Object.keys(e.values||ZL).includes(a))o[e.up(a)]=n(t[a],a);else{const e=a;o[e]=t[e]}var i,l;return o},{})}return n(t)}function rj(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function oj(e){if("string"!=typeof e)throw new Error(function(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}(7));return e.charAt(0).toUpperCase()+e.slice(1)}function aj(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function ij(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:aj(e,n)||r,t&&(o=t(o,r,e)),o}const lj=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=aj(e.theme,r)||{};return nj(e,a,e=>{let r=ij(i,o,e);return e===r&&"string"==typeof e&&(r=ij(i,o,`${t}${"default"===e?"":oj(e)}`,e)),!1===n?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a},sj=function(e,t){return t?XL(e,t,{clone:!1}):e},cj={m:"margin",p:"padding"},uj={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dj={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pj=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!dj[e])return[e];e=dj[e]}const[t,n]=e.split(""),r=cj[t],o=uj[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]})(t)),e[t])}(),fj=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mj=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],hj=[...fj,...mj];function gj(e,t,n,r){const o=aj(e,t,!0)??n;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=o[t];return e>=0?n:"number"==typeof n?-n:"string"==typeof n&&n.startsWith("var(")?`calc(-1 * ${n})`:`-${n}`}:"function"==typeof o?o:()=>{}}function vj(e){return gj(e,"spacing",8)}function yj(e,t){return"string"==typeof t||null==t?t:e(t)}function bj(e,t){const n=vj(e.theme);return Object.keys(e).map(r=>function(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=yj(t,n),e),{})}(pj(n),r);return nj(e,e[n],o)}(e,t,r,n)).reduce(sj,{})}function xj(e){return bj(e,fj)}function wj(e){return bj(e,mj)}function kj(e){return bj(e,hj)}xj.propTypes={},xj.filterProps=fj,wj.propTypes={},wj.filterProps=mj,kj.propTypes={},kj.filterProps=hj;const Sj=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?sj(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n};function Ej(e){return"number"!=typeof e?e:`${e}px solid`}function Cj(e,t){return lj({prop:e,themeKey:"borders",transform:t})}const Ij=Cj("border",Ej),Pj=Cj("borderTop",Ej),Oj=Cj("borderRight",Ej),Tj=Cj("borderBottom",Ej),Rj=Cj("borderLeft",Ej),Mj=Cj("borderColor"),Aj=Cj("borderTopColor"),Lj=Cj("borderRightColor"),jj=Cj("borderBottomColor"),$j=Cj("borderLeftColor"),Nj=Cj("outline",Ej),_j=Cj("outlineColor"),Dj=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=gj(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:yj(t,e)});return nj(e,e.borderRadius,n)}return null};Dj.propTypes={},Dj.filterProps=["borderRadius"],Sj(Ij,Pj,Oj,Tj,Rj,Mj,Aj,Lj,jj,$j,Dj,Nj,_j);const zj=e=>{if(void 0!==e.gap&&null!==e.gap){const t=gj(e.theme,"spacing",8),n=e=>({gap:yj(t,e)});return nj(e,e.gap,n)}return null};zj.propTypes={},zj.filterProps=["gap"];const Fj=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=gj(e.theme,"spacing",8),n=e=>({columnGap:yj(t,e)});return nj(e,e.columnGap,n)}return null};Fj.propTypes={},Fj.filterProps=["columnGap"];const Bj=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=gj(e.theme,"spacing",8),n=e=>({rowGap:yj(t,e)});return nj(e,e.rowGap,n)}return null};function Wj(e,t){return"grey"===t?t:e}function Hj(e){return e<=1&&0!==e?100*e+"%":e}Bj.propTypes={},Bj.filterProps=["rowGap"],Sj(zj,Fj,Bj,lj({prop:"gridColumn"}),lj({prop:"gridRow"}),lj({prop:"gridAutoFlow"}),lj({prop:"gridAutoColumns"}),lj({prop:"gridAutoRows"}),lj({prop:"gridTemplateColumns"}),lj({prop:"gridTemplateRows"}),lj({prop:"gridTemplateAreas"}),lj({prop:"gridArea"})),Sj(lj({prop:"color",themeKey:"palette",transform:Wj}),lj({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wj}),lj({prop:"backgroundColor",themeKey:"palette",transform:Wj}));const Vj=lj({prop:"width",transform:Hj}),qj=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||ZL[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Hj(t)}};return nj(e,e.maxWidth,t)}return null};qj.filterProps=["maxWidth"];const Uj=lj({prop:"minWidth",transform:Hj}),Kj=lj({prop:"height",transform:Hj}),Gj=lj({prop:"maxHeight",transform:Hj}),Yj=lj({prop:"minHeight",transform:Hj}),Xj=(lj({prop:"size",cssProperty:"width",transform:Hj}),lj({prop:"size",cssProperty:"height",transform:Hj}),Sj(Vj,qj,Uj,Kj,Gj,Yj,lj({prop:"boxSizing"})),{border:{themeKey:"borders",transform:Ej},borderTop:{themeKey:"borders",transform:Ej},borderRight:{themeKey:"borders",transform:Ej},borderBottom:{themeKey:"borders",transform:Ej},borderLeft:{themeKey:"borders",transform:Ej},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ej},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Dj},color:{themeKey:"palette",transform:Wj},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wj},backgroundColor:{themeKey:"palette",transform:Wj},p:{style:wj},pt:{style:wj},pr:{style:wj},pb:{style:wj},pl:{style:wj},px:{style:wj},py:{style:wj},padding:{style:wj},paddingTop:{style:wj},paddingRight:{style:wj},paddingBottom:{style:wj},paddingLeft:{style:wj},paddingX:{style:wj},paddingY:{style:wj},paddingInline:{style:wj},paddingInlineStart:{style:wj},paddingInlineEnd:{style:wj},paddingBlock:{style:wj},paddingBlockStart:{style:wj},paddingBlockEnd:{style:wj},m:{style:xj},mt:{style:xj},mr:{style:xj},mb:{style:xj},ml:{style:xj},mx:{style:xj},my:{style:xj},margin:{style:xj},marginTop:{style:xj},marginRight:{style:xj},marginBottom:{style:xj},marginLeft:{style:xj},marginX:{style:xj},marginY:{style:xj},marginInline:{style:xj},marginInlineStart:{style:xj},marginInlineEnd:{style:xj},marginBlock:{style:xj},marginBlockStart:{style:xj},marginBlockEnd:{style:xj},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:zj},rowGap:{style:Bj},columnGap:{style:Fj},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hj},maxWidth:{style:qj},minWidth:{transform:Hj},height:{transform:Hj},maxHeight:{transform:Hj},minHeight:{transform:Hj},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}),Qj=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=aj(n,l)||{};return c?c(o):nj(o,t,t=>{let n=ij(u,s,t);return t===n&&"string"==typeof t&&(n=ij(u,s,`${e}${"default"===t?"":oj(t)}`,t)),!1===i?n:{[i]:n}})}return function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Xj;function l(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const l=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(o.breakpoints),s=Object.keys(l);let c=l;return Object.keys(r).forEach(n=>{const a=function(e,t){return"function"==typeof e?e(t):e}(r[n],o);if(null!=a)if("object"==typeof a)if(i[n])c=sj(c,e(n,a,o,i));else{const e=nj({theme:o},a,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,a)?c=sj(c,e):c[n]=t({sx:a,theme:o,nested:!0})}else c=sj(c,e(n,a,o,i))}),!a&&o.modularCssLayers?{"@layer sx":QL(o,rj(s,c))}:QL(o,rj(s,c))}return Array.isArray(r)?r.map(l):l(r)}}();Qj.filterProps=["sx"];const Jj=Qj;function Zj(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function e$(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}!function(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return{keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}(n),s=function(e=8,t=vj({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=XL({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:s,shape:{...JL,...a}},i);c=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{const o=t(e.breakpoints.not(...n),r);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(c),c.applyStyles=Zj,c=t.reduce((e,t)=>XL(e,t),c),c.unstable_sxConfig={...Xj,...i?.unstable_sxConfig},c.unstable_sx=function(e){return Jj({sx:e,theme:this})}}();const t$=qc("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>e$(e)&&"action"!==e})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:_i(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function n$(e){return null==e.action?null:(0,Dc.jsx)(t$,vc({},e))}const r$=qc("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>vc({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),o$=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],a$=i.forwardRef(function(e,t){const{classes:n,className:r,displayIcon:o,expansionIcon:a,icon:l,label:s,itemId:c,onClick:u,onMouseDown:d,dragAndDropOverlayProps:p,labelInputProps:f}=e,m=Ku(e,o$),{disabled:h,expanded:g,selected:v,focused:y,editing:b,editable:x,disableSelection:w,checkboxSelection:k,handleExpansion:S,handleSelection:E,handleCheckboxSelection:C,handleContentClick:I,preventSelection:P,expansionTrigger:O,toggleItemEditing:T}=BL(c),R=l||a||o,M=i.useRef(null);return(0,Dc.jsxs)("div",vc({},m,{className:cc(n.root,r,g&&n.expanded,v&&n.selected,y&&n.focused,h&&n.disabled,b&&n.editing,x&&n.editable),onClick:e=>{I?.(e,c),M.current?.contains(e.target)||("content"===O&&S(e),k||E(e),u&&u(e))},onMouseDown:e=>{P(e),d&&d(e)},ref:t,children:[(0,Dc.jsx)("div",{className:n.iconContainer,children:R}),k&&(0,Dc.jsx)(qM,{className:n.checkbox,checked:v,onChange:C,disabled:h||w,ref:M,tabIndex:-1}),b?(0,Dc.jsx)(r$,vc({},f,{className:n.labelInput})):(0,Dc.jsx)("div",vc({className:n.label},x&&{onDoubleClick:e=>{e.defaultMuiPrevented||T()}},{children:s})),p&&(0,Dc.jsx)(n$,vc({},p))]}))});function i$(e){return fc("MuiTreeItem",e)}const l$=Jc("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),s$=Jd((0,Dc.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),c$=Jd((0,Dc.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");var u$=n(556),d$=n.n(u$);function p$(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:o}=xL();return r({children:t,itemId:n,instance:o})}p$.propTypes={children:d$().node,itemId:d$().string.isRequired};const f$=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],m$=["ownerState"],h$=["ownerState"],g$=["ownerState"],v$=jA(),y$=qc("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),b$=qc(a$,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${l$.iconContainer}`]:t.iconContainer},t.label&&{[`& .${l$.label}`]:t.label}],shouldForwardProp:e=>e$(e)&&"indentationAtItemLevel"!==e})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${l$.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${l$.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${l$.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_i(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${l$.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_i(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${l$.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${l$.label}`]:vc({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${l$.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),x$=qc(KL,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>e$(e)&&"indentationAtItemLevel"!==e})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),w$=i.forwardRef(function(e,t){const{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:o,indentationAtItemLevel:a},selection:{disableSelection:l},expansion:{expansionTrigger:s},treeId:c,instance:u}=xL(),d=i.useContext(YA),p=v$({props:e,name:"MuiTreeItem"}),{children:f,className:m,slots:h,slotProps:g,ContentComponent:v=a$,ContentProps:y,itemId:b,id:x,label:w,onClick:k,onMouseDown:S,onBlur:E,onKeyDown:C}=p,I=Ku(p,f$),{expanded:P,focused:O,selected:T,disabled:R,editing:M,handleExpansion:A,handleCancelItemLabelEditing:L,handleSaveItemLabel:j}=BL(b),{contentRef:$,rootRef:N,propsEnhancers:_}=r(p),D=i.useRef(null),z=i.useRef(null),F=zu(t,N,D),B=zu(y?.ref,$,z),W={expandIcon:h?.expandIcon??n.slots.expandIcon??s$,collapseIcon:h?.collapseIcon??n.slots.collapseIcon??c$,endIcon:h?.endIcon??n.slots.endIcon,icon:h?.icon,groupTransition:h?.groupTransition},H=e=>Array.isArray(e)?e.length>0&&e.some(H):Boolean(e),V=H(f),q=vc({},p,{expanded:P,focused:O,selected:T,disabled:R,indentationAtItemLevel:a}),U=(e=>{const{classes:t}=e;return mc({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},i$,t)})(q),K=W.groupTransition??void 0,G=zf({elementType:K,ownerState:{},externalSlotProps:g?.groupTransition,additionalProps:vc({unmountOnExit:!0,in:P,component:"ul",role:"group"},a?{indentationAtItemLevel:!0}:{}),className:U.groupTransition}),Y=P?W.collapseIcon:W.expandIcon,X=Ku(zf({elementType:Y,ownerState:{},externalSlotProps:e=>P?vc({},Df(n.slotProps.collapseIcon,e),Df(g?.collapseIcon,e)):vc({},Df(n.slotProps.expandIcon,e),Df(g?.expandIcon,e)),additionalProps:{onClick:e=>{"iconContainer"===s&&A(e)}}}),m$),Q=V&&Y?(0,Dc.jsx)(Y,vc({},X)):null,J=V?void 0:W.endIcon,Z=Ku(zf({elementType:J,ownerState:{},externalSlotProps:e=>V?{}:vc({},Df(n.slotProps.endIcon,e),Df(g?.endIcon,e))}),h$),ee=J?(0,Dc.jsx)(J,vc({},Z)):null,te=W.icon,ne=Ku(zf({elementType:te,ownerState:{},externalSlotProps:g?.icon}),g$),re=te?(0,Dc.jsx)(te,vc({},ne)):null;let oe;oe=!!T||!(!l&&!R)&&void 0;const ae=FA({itemId:b,treeId:c,id:x}),ie=u.canItemBeTabbed(b)?0:-1,le={rootRefObject:D,contentRefObject:z,interactions:{handleSaveItemLabel:j,handleCancelItemLabelEditing:L}},se=_.root?.(vc({},le,{externalEventHandlers:$f(I)}))??{},ce=_.content?.(vc({},le,{externalEventHandlers:$f(y)}))??{},ue=_.dragAndDropOverlay?.(vc({},le,{externalEventHandlers:{}}))??{},de=_.labelInput?.(vc({},le,{externalEventHandlers:{}}))??{};return(0,Dc.jsx)(p$,{itemId:b,children:(0,Dc.jsxs)(y$,vc({className:cc(U.root,m),role:"treeitem","aria-expanded":V?P:void 0,"aria-selected":oe,"aria-disabled":R||void 0,id:ae,tabIndex:ie},I,{ownerState:q,onFocus:function(e){!O&&(!R||o)&&e.currentTarget===e.target&&u.focusItem(e,b)},onBlur:function(e){E?.(e),M||e.relatedTarget&&lL(e.relatedTarget,D.current)&&(e.target&&"labelInput"===e.target?.dataset?.element&&lL(e.target,D.current)||"labelInput"===e.relatedTarget?.dataset?.element)||u.removeFocusedItem()},onKeyDown:e=>{C?.(e),"labelInput"!==e.target?.dataset?.element&&u.handleItemKeyDown(e,b)},ref:F,style:a?vc({},I.style,{"--TreeView-itemDepth":"function"==typeof d?d(b):d}):I.style},se,{children:[(0,Dc.jsx)(b$,vc({as:v,classes:{root:U.content,expanded:U.expanded,selected:U.selected,focused:U.focused,disabled:U.disabled,editable:U.editable,editing:U.editing,iconContainer:U.iconContainer,label:U.label,labelInput:U.labelInput,checkbox:U.checkbox},label:w,itemId:b,onClick:k,onMouseDown:S,icon:re,expansionIcon:Q,displayIcon:ee,ownerState:q},y,ce,null==ue.action?{}:{dragAndDropOverlayProps:ue},null==de.value?{}:{labelInputProps:de},{ref:B})),f&&(0,Dc.jsx)(x$,vc({as:K},G,{children:f}))]}))})});var k$=i.forwardRef(function(e,t){var n=e.classes,r=e.className,o=e.label,a=e.itemId,l=e.icon,s=e.expansionIcon,c=e.displayIcon,u=e.testId,d=BL(a),p=d.disabled,f=d.expanded,m=d.selected,h=d.focused,g=d.handleExpansion,v=d.handleSelection,y=d.preventSelection,b=pt(),x=qC(function(e){return e.readOnly})?"/view":"",w=l||s||c,k=function(e){var t=e.target.getAttribute("data-testid");y(e),"ChevronRightIcon"!==t&&"ExpandMoreIcon"!==t&&E(e)},S=function(e){g(e)},E=function(e){v(e),u&&b("#".concat(u).concat(x))};return i.createElement("div",{className:cc(r,n.root,tp(tp(tp(tp({},n.expanded,f),n.selected,m),n.focused,h),n.disabled,p)),onMouseDown:k,onKeyDown:function(e){"Enter"===e.key&&k(e)},ref:t},i.createElement("div",{onClick:S,onKeyDown:function(e){"Enter"===e.key&&S(e)},className:n.iconContainer},w),i.createElement(Su,{component:"div",className:n.label,tabIndex:0},o))});const S$=qc(function(e){return i.createElement(w$,vc({ContentComponent:k$},e))})(function(){return tp(tp({},"& .".concat(l$.selected),{backgroundColor:"".concat(Mh.palette.common.orangeLight," !important")}),"& .".concat(l$.content),{width:"auto",padding:"0 20px"})});function E$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E$(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const I$=function(e){var t=e.presets,n=e.testSessionId,r=e.getSessionData,o=Fr().enqueueSnackbar,a=qC(function(e){return e.readOnly}),l={id:"NULL_PRESET",title:"None"},s=t.reduce(function(e,t){return C$(C$({},e),{},tp({},t.title,t.id))},{}),c=lc(i.useState([l].concat(kO(t.sort(function(e,t){return e.title>t.title?1:e.title<t.title?-1:0})))),2),u=c[0],d=c[1],p=lc(i.useState(l.title),2),f=p[0],m=p[1],h=lc(i.useState(l.title),2),g=h[0],v=h[1],y=lc(i.useState(!1),2),b=y[0],x=y[1],w=function(e){var t,a,i;(t=n,a=e,i=Xs("/test_sessions/".concat(t,"/session_data/apply_preset?preset_id=").concat(a)),fetch(i,{method:"PUT"}).then(function(e){return e.status,null})).then(function(){r(n)}).catch(function(e){o("Could not set preset: ".concat(e.message),{variant:"error"})})},k=function(){var e=u.findIndex(function(e){return e.id===l.id});e>=0&&(u.splice(e,1),d(u))};return i.createElement(i.Fragment,null,i.createElement(JP,{id:"preset-select",label:"Preset",disabled:a,size:"small",fullWidth:!0,select:!0,slotProps:{inputLabel:{sx:{"&.Mui-focused":{color:Mh.palette.primary.dark}}}},value:g,onChange:function(e){e.target.value&&(v(e.target.value),w(s[e.target.value])),e.target.value&&e.target.value!==l.title&&(k(),o("".concat(e.target.value," has been set as preset."),{variant:"success"}))}},u.map(function(e){return i.createElement(uE,{key:e.id,value:e.title},e.title)})),i.createElement(HE,{open:b,fullWidth:!0,maxWidth:"xs"},i.createElement(GE,null,"Are you sure?"),i.createElement(JE,null,"Selecting a new preset will clear all existing test results. If you wish to proceed, click the Apply Preset button."),i.createElement(RC,null,i.createElement(Bd,{"data-testid":"preset-cancel-button",sx:{color:Mh.palette.primary.dark,fontWeight:"bold"},onClick:function(){v(f),x(!1)}},"Cancel"),i.createElement(Bd,{"data-testid":"preset-apply-button",sx:{color:Mh.palette.primary.dark,fontWeight:"bold"},onClick:function(){w(s[g]),m(g),x(!1),k()}},"Apply Preset"))))},P$=function(e){var t=e.runnable,n=e.title,r=pS().classes;return i.createElement(nu,{className:r.labelRoot,"data-testid":"tiLabel-".concat(null==t?void 0:t.id)},i.createElement(nu,{width:"100%"},t&&"short_id"in t&&i.createElement(Su,{className:r.shortId,variant:"body2"},t.short_id," "),i.createElement(Su,{className:r.labelText,variant:"body2"},n||(null==t?void 0:t.short_title)||(null==t?void 0:t.title)),(null==t?void 0:t.optional)&&i.createElement(Su,{className:r.optionalLabel,variant:"body2"},"Optional")))};var O$=function(e){var t=e.testGroup;return i.createElement(S$,{itemId:t.id,label:i.createElement(P$,{runnable:t}),slots:t.run_as_group||0===t.test_groups.length?{icon:function(){return i.createElement(UC,{result:t.result,isRunning:t.is_running})}}:{},ContentProps:{testId:t.short_id}},t.test_groups.length>0&&!t.run_as_group&&t.test_groups.map(function(e,n){return i.createElement(O$,{testGroup:e,key:"ti-".concat(t.short_id,"-").concat(n)})}))};const T$=O$;function R$(e,t){e.forEach(function(e){e.test_groups.length>0&&!e.run_as_group&&(t.push(e.id),R$(e.test_groups,t))})}const M$=function(e){var t=e.testSuite,n=e.selectedRunnable,r=e.view,o=e.presets,a=e.requirementsExist,l=void 0!==a&&a,s=e.testSessionId,c=e.getSessionData,u=pS().classes,d=rc(function(e){return e.windowIsSmall}),p=n;"report"===r?p="".concat(p,"/report"):"requirements"===r?p="".concat(p,"/requirements"):"config"===r&&(p="".concat(p,"/config"));var f=[t.id];t.test_groups&&R$(t.test_groups,f);var m,h,g=lc(i.useState(f),2),v=g[0],y=g[1];if(t.test_groups){var b=t.test_groups.map(function(e){return i.createElement(T$,{key:e.id,"data-testid":"".concat(e.id,"-treeitem"),testGroup:e})});return i.createElement(nu,{className:u.testSuiteTreePanel},o&&o.length>0&&s&&c&&i.createElement(nu,{m:2},i.createElement(I$,{presets:o,testSessionId:s,getSessionData:c})),i.createElement(dS,null),i.createElement(AL,{"aria-label":"navigation-panel",slots:{collapseIcon:function(){return i.createElement(LL,{"aria-hidden":!1,tabIndex:0})},expandIcon:function(){return i.createElement($L,{"aria-hidden":!1,tabIndex:0})}},onExpandedItemsChange:function(e,t){y(t)},expandedItems:v,selectedItems:p,className:u.testSuiteTree},i.createElement(S$,{classes:{content:u.treeRoot},itemId:t.id,label:i.createElement(P$,{runnable:t}),slots:{icon:jL},className:u.treeItemBottomBorder,ContentProps:{testId:t.id}}),b,i.createElement(S$,{itemId:"".concat(t.id,"/report"),label:i.createElement(P$,{title:"Report"}),slots:{icon:NL},className:"".concat(u.treeItemTopBorder," \n ").concat(!l&&u.treeItemBottomBorder),ContentProps:{testId:"".concat(t.id,"/report")}}),l&&i.createElement(S$,{itemId:"".concat(t.id,"/requirements"),label:i.createElement(P$,{title:"Specification Requirements"}),slots:{icon:FL},className:"".concat(u.treeItemTopBorder," ").concat(u.treeItemBottomBorder),ContentProps:{testId:"".concat(t.id,"/requirements")}}),i.createElement(nu,{display:"flex",alignItems:"flex-end",flexGrow:1,mt:d?0:8},i.createElement(nu,{width:"100%"},(h=null,(m=t.configuration_messages)&&(null==m?void 0:m.filter(function(e){return"error"===e.type}).length)>0?h=i.createElement(DL,{sx:{color:Mh.palette.error.main}}):m&&(null==m?void 0:m.filter(function(e){return"warning"===e.type}).length)>0&&(h=i.createElement(zL,{sx:{color:Mh.palette.warning.main}})),i.createElement(S$,{itemId:"".concat(t.id,"/config"),label:i.createElement(Su,{component:"div",alignItems:"center",sx:{display:"flex"}},i.createElement(P$,{title:"Configuration Messages"}),h),slots:{icon:_L},className:u.treeItemTopBorder,ContentProps:{testId:"".concat(t.id,"/config")}}))))))}return i.createElement(nu,null,t.title)},A$=i.createContext({});function L$(e){return fc("MuiAccordion",e)}const j$=Jc("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),$$=qc(Lu,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${j$.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(mu(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${j$.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${j$.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),mu(({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${j$.expanded}`]:{margin:"16px 0"}}}]}))),N$=qc("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),_$=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAccordion"}),{children:r,className:o,defaultExpanded:a=!1,disabled:l=!1,disableGutters:s=!1,expanded:c,onChange:u,square:d=!1,slots:p={},slotProps:f={},TransitionComponent:m,TransitionProps:h,...g}=n,[v,y]=Xf({controlled:c,default:a,name:"Accordion",state:"expanded"}),b=i.useCallback(e=>{y(!v),u&&u(e,!v)},[v,u,y]),[x,...w]=i.Children.toArray(r),k=i.useMemo(()=>({expanded:v,disabled:l,disableGutters:s,toggle:b}),[v,l,s,b]),S={...n,square:d,disabled:l,disableGutters:s,expanded:v},E=(e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return mc({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],heading:["heading"],region:["region"]},L$,t)})(S),C={slots:{transition:m,...p},slotProps:{transition:h,...f}},[I,P]=Qf("root",{elementType:$$,externalForwardedProps:{...C,...g},className:cc(E.root,o),shouldForwardComponentProp:!0,ownerState:S,ref:t,additionalProps:{square:d}}),[O,T]=Qf("heading",{elementType:N$,externalForwardedProps:C,className:E.heading,ownerState:S}),[R,M]=Qf("transition",{elementType:KL,externalForwardedProps:C,ownerState:S});return(0,Dc.jsxs)(I,{...P,children:[(0,Dc.jsx)(O,{...T,children:(0,Dc.jsx)(A$.Provider,{value:k,children:x})}),(0,Dc.jsx)(R,{in:v,timeout:"auto",...M,children:(0,Dc.jsx)("div",{"aria-labelledby":x.props.id,id:x.props["aria-controls"],role:"region",className:E.region,children:w})})]})}),D$=_$;function z$(e){return fc("MuiAccordionSummary",e)}const F$=Jc("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),B$=qc(bd,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(mu(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${F$.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${F$.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${F$.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${F$.expanded}`]:{minHeight:64}}}]}})),W$=qc("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(mu(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${F$.expanded}`]:{margin:"20px 0"}}}]}))),H$=qc("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(mu(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${F$.expanded}`]:{transform:"rotate(180deg)"}}))),V$=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAccordionSummary"}),{children:r,className:o,expandIcon:a,focusVisibleClassName:l,onClick:s,slots:c,slotProps:u,...d}=n,{disabled:p=!1,disableGutters:f,expanded:m,toggle:h}=i.useContext(A$),g={...n,expanded:m,disabled:p,disableGutters:f},v=(e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return mc({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},z$,t)})(g),y={slots:c,slotProps:u},[b,x]=Qf("root",{ref:t,shouldForwardComponentProp:!0,className:cc(v.root,o),elementType:B$,externalForwardedProps:{...y,...d},ownerState:g,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:p,"aria-expanded":m,focusVisibleClassName:cc(v.focusVisible,l)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),(e=>{h&&h(e),s&&s(e)})(t)}})}),[w,k]=Qf("content",{className:v.content,elementType:W$,externalForwardedProps:y,ownerState:g}),[S,E]=Qf("expandIconWrapper",{className:v.expandIconWrapper,elementType:H$,externalForwardedProps:y,ownerState:g});return(0,Dc.jsxs)(b,{...x,children:[(0,Dc.jsx)(w,{...k,children:r}),a&&(0,Dc.jsx)(S,{...E,children:a})]})}),q$=V$;function U$(e){return fc("MuiAccordionDetails",e)}Jc("MuiAccordionDetails",["root"]);const K$=qc("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(mu(({theme:e})=>({padding:e.spacing(1,2,2)}))),G$=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiAccordionDetails"}),{className:r,...o}=n,a=n,i=(e=>{const{classes:t}=e;return mc({root:["root"]},U$,t)})(a);return(0,Dc.jsx)(K$,{className:cc(i.root,r),ref:t,ownerState:a,...o})}),Y$=G$,X$=Jd((0,Dc.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),Q$=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},table:{width:"auto",tableLayout:"auto"},testIcon:{display:"inline-flex"},labelText:{display:"inline"},optionalLabel:{display:"inline",fontStyle:"italic",fontSize:"0.9rem",lineHeight:"1.5rem",alignSelf:"center",color:e.palette.common.gray,paddingRight:"4px"},shortId:{display:"inline",fontWeight:"bold",color:e.palette.common.grayDark,alignSelf:"center"},testText:{padding:"0 8px",wordBreak:"break-word",minWidth:"100px"},tabs:{backgroundColor:e.palette.common.white,minHeight:"auto",padding:0},bolderText:{fontWeight:"bolder"},messageMessage:{width:"82%",padding:"0 16px 0 0 !important"},inputOutputsValue:{width:"90%",padding:"0 16px !important"},noPrintSpacing:{"@media print":{marginTop:0,marginBottom:0,paddingTop:0,paddingBottom:0,minHeight:"unset"}},wordWrap:{overflowWrap:"anywhere"},accordion:{"&:before":{display:"none"},"&:not(last-child)":{borderBottom:"1px solid ".concat(e.palette.divider)},"@media print":{borderBottom:"none !important"}},accordionSummary:{userSelect:"auto","@media print":{minHeight:"unset"},"& .MuiAccordionSummary-content":{margin:0,overflow:"auto"}},accordionDetailContainer:{backgroundColor:zi(e.palette.common.grayLight,.1),padding:"16px","@media print":{padding:"0 16px"}},resultMessageMarkdown:{"& > *":{margin:0}},requestUrlContainer:{width:"100%"},badgeIcon:{margin:"0 8px",padding:"0.25em 0.25em","&:hover":{background:e.palette.common.grayLight,borderRadius:"50%"}},error:{color:e.palette.error.dark},warning:{color:e.palette.primary.dark},info:{color:e.palette.info.dark},request:{color:e.palette.info.main},badgeBase:{"& .MuiBadge-badge":{backgroundColor:e.palette.common.white,fontWeight:"bold",top:"0.65rem",right:"14px"}},errorBadge:{"& .MuiBadge-badge":{color:e.palette.error.dark,border:"1px solid ".concat(e.palette.error.dark)}},warningBadge:{"& .MuiBadge-badge":{color:e.palette.primary.dark,border:"1px solid ".concat(e.palette.primary.dark)}},infoBadge:{"& .MuiBadge-badge":{color:e.palette.info.dark,border:"1px solid ".concat(e.palette.info.dark)}},requestBadge:{"& .MuiBadge-badge":{color:e.palette.info.dark,border:"1px solid ".concat(e.palette.info.dark)}},simulationVerificationChip:{backgroundColor:e.palette.common.orangeLight,color:e.palette.common.orangeDark,fontWeight:"bold",marginLeft:"8px",height:"24px","& .MuiChip-icon":{color:e.palette.common.orangeDark}}}});function J$(e){return fc("MuiTableHead",e)}Jc("MuiTableHead",["root"]);const Z$=qc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),eN={variant:"head"},tN="thead",nN=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTableHead"}),{className:r,component:o=tN,...a}=n,i={...n,component:o},l=(e=>{const{classes:t}=e;return mc({root:["root"]},J$,t)})(i);return(0,Dc.jsx)(cC.Provider,{value:eN,children:(0,Dc.jsx)(Z$,{as:o,className:cc(l.root,r),ref:t,role:o===tN?null:"rowgroup",ownerState:i,...a})})}),rN=nN,oN=function(e){var t=e.values,n=e.noValuesMessage,r=e.headerName,o=Q$().classes,a=[r,"Value"],l=i.createElement(wC,{key:"inputOutputs-header"},a.map(function(e){return i.createElement(IC,{key:e,className:"Value"===e?o.inputOutputsValue:o.noPrintSpacing||""},i.createElement(Su,{variant:"overline",className:o.bolderText},e))})),s=t.map(function(e,t){return i.createElement(wC,{key:"inputOutputsRow-".concat(t)},i.createElement(IC,{className:o.noPrintSpacing},i.createElement(Su,{variant:"subtitle2",component:"p",className:o.bolderText},e.name)),i.createElement(IC,{className:o.inputOutputsValue},i.createElement(Su,{variant:"subtitle2",component:"p"},(null==e?void 0:e.value)||"")))});return(t.length>0?i.createElement(sC,{size:"small"},i.createElement(rN,null,l),i.createElement(hC,null,s)):n&&i.createElement(nu,{p:2},i.createElement(Su,{variant:"subtitle2",component:"p"},n)))||i.createElement(i.Fragment,null)},aN=Jd((0,Dc.jsx)("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),iN=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},labelText:{display:"inline"},shortId:{display:"inline",fontWeight:"bold",alignSelf:"center",color:e.palette.common.grayDark},currentItem:{fontWeight:600},accordion:{"&:before":{display:"none"},"&:not(last-child)":{borderBottom:"1px solid ".concat(e.palette.divider)},"@media print":{borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"none !important"}},accordionSummary:{userSelect:"auto","@media print":{minHeight:"unset"},"& .MuiAccordionSummary-content":{margin:0}},accordionDetailContainer:{backgroundColor:e.palette.common.grayLight,"@media print":{padding:"0 0 0 16px"}},accordionDetail:{backgroundColor:e.palette.common.white,padding:0,margin:"8px 0 0 0",borderRadius:"4px","@media print":{margin:0}},description:{padding:"8px 16px 24px 16px",overflow:"auto"},descriptionHeader:{fontWeight:"bolder !important",color:e.palette.common.orangeDark},descriptionContainer:{backgroundColor:e.palette.common.grayLight},descriptionDetailContainer:{backgroundColor:zi(e.palette.common.grayLight,.1),"@media print":{padding:"0 0 0 16px"}},error:{color:e.palette.error.dark},warning:{color:e.palette.primary.dark},info:{color:e.palette.info.dark},request:{color:e.palette.info.main},errorBadge:{"& .MuiBadge-badge":{color:e.palette.error.dark,border:"1px solid ".concat(e.palette.error.dark)}},warningBadge:{"& .MuiBadge-badge":{color:e.palette.primary.dark,border:"1px solid ".concat(e.palette.primary.dark)}},infoBadge:{"& .MuiBadge-badge":{color:e.palette.info.dark,border:"1px solid ".concat(e.palette.info.dark)}},requestBadge:{"& .MuiBadge-badge":{color:e.palette.secondary.dark,border:"1px solid ".concat(e.palette.info.dark)}}}}),lN=function(){var e=Q$().classes;return i.createElement(dm,{title:"This test verifies the behavior of Inferno's simulation"},i.createElement(lM,{icon:i.createElement("img",{src:Qs(String(jE)),alt:"Inferno",style:{width:18,height:18}}),label:"Simulation Verification",size:"small",className:e.simulationVerificationChip}))},sN=function(e){var t,n=e.testGroup,r=iN().classes,o=qC(function(e){return e.readOnly});return i.createElement(i.Fragment,null,i.createElement(nu,{display:"flex",alignItems:"center",px:2,py:1},i.createElement(nu,{display:"inline-flex"},n.run_as_group?i.createElement(UC,{result:n.result,isRunning:n.is_running}):i.createElement(aN,{sx:{color:Mh.palette.common.gray}})),i.createElement(AS,{sx:{padding:"0 8px"}},i.createElement(zR,{sx:{padding:0}},i.createElement(Em,{primary:i.createElement(i.Fragment,null,n.short_id&&i.createElement(Su,{className:r.shortId},"".concat(n.short_id," ")),i.createElement(PS,{color:"secondary.dark",fontWeight:"bold",href:"".concat(location.pathname,"#").concat(n.id).concat(o?"/view":""),"data-testid":"navigable-group-item"},n.title),n.is_simulation_verification&&i.createElement(lN,null)),secondary:null===(t=n.result)||void 0===t?void 0:t.result_message})))),i.createElement(dS,null))};var cN=function(e,t){t.set(e.id,e),e.test_groups.forEach(function(e){cN(e,t)}),e.tests.forEach(function(e){t.set(e.id,e)})},uN=function(e,t){var n;null===(n=e.verifies_requirements)||void 0===n||n.forEach(function(n){t.get(n)?t.set(n,[].concat(kO(t.get(n)),[e.short_id])):t.set(n,[e.short_id])}),e.tests.forEach(function(e){var n;null===(n=e.verifies_requirements)||void 0===n||n.forEach(function(n){t.get(n)?t.set(n,[].concat(kO(t.get(n)),[e.short_id])):t.set(n,[e.short_id])})}),e.test_groups.forEach(function(e){uN(e,t)})},dN=function(e,t){var n;return n=void 0===t?new Map:t,e.forEach(function(e){e.test_suite_id?n.set(e.test_suite_id,e):e.test_group_id?n.set(e.test_group_id,e):e.test_id&&n.set(e.test_id,e)}),new Map(n)},pN=function(e,t){var n,r,o,a;e&&(e.is_running=t,yI(e)&&(null===(n=e.tests)||void 0===n||n.forEach(function(e){return e.is_running=t}),null===(r=e.test_groups)||void 0===r||r.forEach(function(e){return pN(e,t)})),"test_groups"in(a=e)&&!("tests"in a)&&(null===(o=e.test_groups)||void 0===o||o.forEach(function(e){return pN(e,t)})))},fN=function(e,t){return!!t&&!!e.description&&e.description.length>0},mN=function(e){return!!e.verifies_requirements&&e.verifies_requirements.length>0},hN=function(e,t){var n=t.split("?")[0].split("#")[0].split("/").reverse()[0];return Object.keys(e).includes(n)};const gN=(e,t,n)=>{const r=e.keys[0];var o,a;Array.isArray(t)?t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)}):t&&"object"==typeof t?(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,a=Object.keys(t),o.filter(e=>a.includes(e)))).forEach(o=>{if(e.keys.includes(o)){const a=t[o];void 0!==a&&n((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n},a)}}):"number"!=typeof t&&"string"!=typeof t||n((e,t)=>{Object.assign(e,t)},t)};function vN(e){return`--Grid-${e}Spacing`}function yN(e){return`--Grid-parent-${e}Spacing`}const bN="--Grid-columns",xN="--Grid-parent-columns",wN=({theme:e,ownerState:t})=>{const n={};return gN(e.breakpoints,t.size,(e,t)=>{let r={};"grow"===t&&(r={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(r={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${xN}) - (var(${xN}) - ${t}) * (var(${yN("column")}) / var(${xN})))`}),e(n,r)}),n},kN=({theme:e,ownerState:t})=>{const n={};return gN(e.breakpoints,t.offset,(e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${xN}) + var(${yN("column")}) * ${t} / var(${xN}))`}),e(n,r)}),n},SN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[bN]:12};return gN(e.breakpoints,t.columns,(e,t)=>{const r=t??12;e(n,{[bN]:r,"> *":{[xN]:r}})}),n},EN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return gN(e.breakpoints,t.rowSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[vN("row")]:o,"> *":{[yN("row")]:o}})}),n},CN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return gN(e.breakpoints,t.columnSpacing,(t,r)=>{const o="string"==typeof r?r:e.spacing?.(r);t(n,{[vN("column")]:o,"> *":{[yN("column")]:o}})}),n},IN=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return gN(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},PN=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${vN("row")}) var(${vN("column")})`}}),ON=e=>{const t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},TN=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},RN=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`],MN=ea(),AN=_c("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function LN(e){return gc({props:e,name:"MuiGrid",defaultTheme:MN})}const jN=function(e={}){const{createStyledComponent:t=AN,useThemeProps:n=LN,useTheme:r=Ri,componentName:o="MuiGrid"}=e;function a(e,t,n=()=>!0){const r={};return null===e||(Array.isArray(e)?e.forEach((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(r[t.keys[o]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const o=e[t];null!=o&&n(o)&&(r[t]=o)}):r[t.keys[0]]=e),r}const l=t(SN,CN,EN,wN,IN,PN,kN),s=i.forwardRef(function(e,t){const s=r(),c=Qc(n(e));!function(e,t){const n=[];void 0!==e.item&&(delete e.item,n.push("item")),void 0!==e.zeroMinWidth&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(t=>{void 0!==e[t]&&(n.push(t),delete e[t])})}(c,s.breakpoints);const{className:u,children:d,columns:p=12,container:f=!1,component:m="div",direction:h="row",wrap:g="wrap",size:v={},offset:y={},spacing:b=0,rowSpacing:x=b,columnSpacing:w=b,unstable_level:k=0,...S}=c,E=a(v,s.breakpoints,e=>!1!==e),C=a(y,s.breakpoints),I=e.columns??(k?void 0:p),P=e.spacing??(k?void 0:b),O=e.rowSpacing??e.spacing??(k?void 0:x),T=e.columnSpacing??e.spacing??(k?void 0:w),R={...c,level:k,columns:I,container:f,direction:h,wrap:g,spacing:P,rowSpacing:O,columnSpacing:T,size:E,offset:C},M=((e,t)=>{const{container:n,direction:r,spacing:a,wrap:i,size:l}=e;return mc({root:["root",n&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...RN(r),...ON(l),...n?TN(a,t.breakpoints.keys[0]):[]]},e=>fc(o,e),{})})(R,s);return(0,Dc.jsx)(l,{ref:t,as:m,ownerState:R,className:cc(M.root,u),...S,children:i.Children.map(d,e=>i.isValidElement(e)&&Tm(e,["Grid"])&&f&&e.props.container?i.cloneElement(e,{unstable_level:e.props?.unstable_level??k+1}):e)})});return s.muiName="Grid",s}({createStyledComponent:qc("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid2",useThemeProps:e=>Gc({props:e,name:"MuiGrid2"}),useTheme:gs}),$N=jN,NN=ea(),_N=_c("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function DN(e){return gc({props:e,name:"MuiStack",defaultTheme:NN})}function zN(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${o}`})),e),[])}const FN=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[e]),BN=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Qr({theme:t},eo({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){const r=go(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),a=eo({values:e.direction,base:o}),i=eo({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}),n=Vr(n,Qr({theme:t},i,(t,n)=>e.useFlexGap?{gap:vo(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${FN(n?a[n]:e.direction)}`]:vo(r,t)}}))}return n=function(e,...t){const n=Jr(e),r=[n,...t].reduce((e,t)=>Vr(e,t),{});return Zr(Object.keys(n),r)}(t.breakpoints,n),n},WN=function(e={}){const{createStyledComponent:t=_N,useThemeProps:n=DN,componentName:r="MuiStack"}=e,o=t(BN),a=i.forwardRef(function(e,t){const a=Qc(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1,...f}=a,m={direction:l,spacing:s,useFlexGap:p},h=mc({root:["root"]},e=>fc(r,e),{});return(0,Dc.jsx)(o,{as:i,ownerState:m,ref:t,className:cc(h.root,d),...f,children:c?zN(u,c):u})});return a}({createStyledComponent:qc("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Gc({props:e,name:"MuiStack"})}),HN=WN,VN="#e0f2f1",qN=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},header:{padding:"8px 16px",fontWeight:600,fontSize:"16px",borderBottom:"1px solid ".concat(e.palette.divider),backgroundColor:e.palette.common.blueLightest,borderTopLeftRadius:"4px",borderTopRightRadius:"4px",display:"flex",minHeight:"36.5px",alignItems:"center"},headerText:{flexGrow:1},currentItem:{fontWeight:600},markdown:{p:{margin:0}},textButton:{fontWeight:"bolder",cursor:"pointer"}}}),UN=function(e){var t=e.requirements,n=e.view,r=void 0===n?"page":n,o=e.requirementToTests,a=qN().classes,l=qC(function(e){return e.readOnly})?"/view":"",s=t.reduce(function(e,t){var n,r=t.specification||t.id.split("@")[0],o=null!==(n=t.url)&&void 0!==n?n:"";return e[r]?e[r][o]?e[r][o].push(t):e[r][o]=[t]:e[r]=tp({},o,[t]),e},{});return Object.entries(s).map(function(e,t){var n=lc(e,2),c=n[0],u=n[1];return Object.entries(u).map(function(e){var n=lc(e,2),u=n[0],d=n[1];return i.createElement(nu,{key:"".concat(c,"-").concat(u)},i.createElement(nu,null,i.createElement(Su,{variant:"h5",component:"p",fontWeight:"bold",sx:{mt:1}},c),u?i.createElement(PS,{href:u,color:"secondary"},u):i.createElement(Su,{color:Mh.palette.common.gray},"(no link available)")),d.map(function(e){return i.createElement($N,{container:!0,spacing:2,mt:2,key:e.id},i.createElement($N,null,i.createElement(Su,{fontWeight:"bold"},e.id.split("@").slice(-1))),i.createElement($N,null,(t=e.conformance,n={shall:fl,"shall not":el,should:VN,may:Ki,deprecated:Ui[300]},i.createElement(lM,{size:"small",label:t.toUpperCase(),sx:{backgroundColor:n[t.toLowerCase()]||Ui[100],borderRadius:1,fontWeight:"bolder"}}))),i.createElement($N,{size:"grow"},i.createElement(HN,null,i.createElement(nu,{px:1,mb:1,sx:{borderLeft:"4px solid ".concat(Ui[100])}},i.createElement(lx,{remarkPlugins:[ek],className:a.markdown},e.requirement)),"page"===r&&function(e){var t=o&&o.size>0,n=null==o?void 0:o.get(e.id);if(t)return i.createElement(nu,{display:"flex",px:1.5},e.not_tested_reason||!n||0===n.length?i.createElement(Su,{display:"inherit",variant:"body2",sx:{color:Mh.palette.common.orangeDark}},"Not tested"):i.createElement(Su,{ml:0,variant:"body2",fontWeight:"bold"},null==n?void 0:n.map(function(e,t){return i.createElement("span",{key:e},i.createElement(PS,{variant:"body2",href:"#".concat(e).concat(l),color:"secondary"},e),t!==n.length-1?", ":""," ")})))}(e))));var t,n}),t!==Object.keys(s).length-1&&i.createElement(dS,{sx:{mt:2}}))})})},KN=function(e){var t=e.requirements,n=e.hideModal,r=e.modalVisible;return i.createElement(HE,{open:r,fullWidth:!0,maxWidth:"md",onClose:n,"data-testid":"requestDetailModal",onKeyDown:function(e){return e.stopPropagation()}},i.createElement(GE,null,"Specification Requirements"),i.createElement(dS,null),i.createElement(JE,null,i.createElement(Su,{fontWeight:"bold"},"These scenarios test the following requirements:"),t.length>0?i.createElement(UN,{requirements:t,view:"dialog"}):i.createElement(Su,{fontStyle:"italic"},"No requirements found.")),i.createElement(RC,null,i.createElement(Bd,{color:"secondary",variant:"contained","data-testid":"cancel-button",onClick:n,sx:{fontWeight:"bold"}},"Close")))},GN=function(e){var t=e.runnable,n=qN().classes,r=lc(i.useState([]),2),o=r[0],a=r[1],l=lc(i.useState(!1),2),s=l[0],c=l[1];return i.createElement(i.Fragment,null,i.createElement(nu,{display:"flex",justifyContent:"end",minWidth:"fit-content",p:2},i.createElement(PS,{color:"secondary",className:n.textButton,onClick:function(){var e=t.verifies_requirements;e&&Promise.all(e.map(function(e){return function(e){return EI.apply(this,arguments)}(e)})).then(function(e){a(e.filter(function(e){return!!e})),c(!0)}).catch(function(e){Pr("Error fetching specification requirements: ".concat(e.message),{variant:"error"})})}},"View Specification Requirements")),o&&mN(t)&&i.createElement(KN,{requirements:o,modalVisible:s,hideModal:function(){return c(!1)}}))},YN=function(e){var t=e.testGroup,n=iN().classes,r=lc(i.useState(!1),2),o=r[0],a=r[1];return i.createElement(nu,{py:1,className:n.descriptionContainer},i.createElement(D$,{disableGutters:!0,elevation:0,key:"".concat(t.id,"-description"),className:n.accordion,slotProps:{transition:{unmountOnExit:!0}},onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(!1)}},i.createElement(q$,{id:o?"":"".concat(t.id,"-description-summary"),"aria-controls":"".concat(t.id,"-description-detail"),expandIcon:i.createElement(LL,{sx:{padding:"0 5px"}}),sx:{userSelect:"auto"}},i.createElement(AS,{sx:{p:0}},i.createElement(zR,{sx:{p:0}},i.createElement(Em,{primary:i.createElement(Su,{className:n.descriptionHeader},"About ",t.short_title||t.title)})))),i.createElement(dS,null),i.createElement(Y$,{title:o?"":"".concat(t.id,"-description-detail"),className:n.descriptionDetailContainer},i.createElement(nu,{className:"".concat(n.accordionDetail," ").concat(n.description)},i.createElement(lx,{remarkPlugins:[ek]},t.description),mN(t)&&i.createElement(GN,{runnable:t})))))};function XN(e){return fc("MuiBadge",e)}const QN=Jc("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),JN=qc("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ZN=qc("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Wc(n.anchorOrigin.vertical)}${Wc(n.anchorOrigin.horizontal)}${Wc(n.overlap)}`],"default"!==n.color&&t[`color${Wc(n.color)}`],n.invisible&&t.invisible]}})(mu(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(hu(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${QN.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${QN.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${QN.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${QN.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${QN.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${QN.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${QN.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${QN.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function e_(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const t_=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:o,classes:a,component:i,components:l={},componentsProps:s={},children:c,overlap:u="rectangular",color:d="default",invisible:p=!1,max:f=99,badgeContent:m,slots:h,slotProps:g,showZero:v=!1,variant:y="standard",...b}=n,{badgeContent:x,invisible:w,max:k,displayValue:S}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=VR({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:f,invisible:p,badgeContent:m,showZero:v}),E=VR({anchorOrigin:e_(r),color:d,overlap:u,variant:y,badgeContent:m}),C=w||null==x&&"dot"!==y,{color:I=d,overlap:P=u,anchorOrigin:O,variant:T=y}=C?E:n,R=e_(O),M="dot"!==T?S:void 0,A={...n,badgeContent:x,invisible:C,max:k,displayValue:M,showZero:v,anchorOrigin:R,color:I,overlap:P,variant:T},L=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return mc({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Wc(n.vertical)}${Wc(n.horizontal)}`,`anchorOrigin${Wc(n.vertical)}${Wc(n.horizontal)}${Wc(o)}`,`overlap${Wc(o)}`,"default"!==t&&`color${Wc(t)}`]},XN,i)})(A),j={slots:{root:h?.root??l.Root,badge:h?.badge??l.Badge},slotProps:{root:g?.root??s.root,badge:g?.badge??s.badge}},[$,N]=Qf("root",{elementType:JN,externalForwardedProps:{...j,...b},ownerState:A,className:cc(L.root,o),ref:t,additionalProps:{as:i}}),[_,D]=Qf("badge",{elementType:ZN,externalForwardedProps:j,ownerState:A,className:L.badge});return(0,Dc.jsxs)($,{...N,children:[c,(0,Dc.jsx)(_,{...D,children:M})]})}),n_=t_,r_=function(e){var t=e.Icon,n=e.counts,r=e.color,o=e.badgeStyle,a=e.description,l=e.view,s=e.panelIndex,c=e.setPanelIndex,u=e.setOpen,d=Q$().classes,p=function(){"report"!==l&&(c&&void 0!==s&&c(s),u&&u(!0))};return i.createElement(n_,{badgeContent:n,max:9,overlap:"circular",className:cc([r,o,d.badgeBase]),onClick:function(e){e.stopPropagation(),p()},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&p()}},i.createElement(dm,{describeChild:!0,title:a},i.createElement(t,{"aria-label":"View ".concat(a),"aria-hidden":!1,tabIndex:0,className:cc([d.badgeIcon,r]),onClick:function(e){e.stopPropagation(),p()},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&p()}})))},o_=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),a_=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),i_=Jd((0,Dc.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),l_=Jd((0,Dc.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.5 16.5v-9l7 4.5z"}),"PlayCircle"),s_=function(e){var t=e.runTests,n=e.runnable,r=e.runnableType,o=e.buttonText,a=qC(function(e){return e.currentRunnables}),l=qC(function(e){return e.readOnly}),s=!1!==n.user_runnable,c=hN(a,ct().pathname),u=i.createElement(Bd,{variant:"contained",disabled:c,color:"secondary",size:"small",disableElevation:!0,onClick:function(){t(r,n.id)},startIcon:l?i.createElement(ZC,null):i.createElement(i_,null),"data-testid":"runButton-".concat(n.id)},o),d=i.createElement(dm,{describeChild:!0,title:"Run ".concat(n.title)},i.createElement(l_,{"aria-label":"Run ".concat(n.title).concat(c?" Disabled - Test Run in Progress":""),"aria-hidden":!1,tabIndex:0,color:c?"disabled":"secondary","data-testid":"runButton-".concat(n.id),onClick:function(){c||t(r,n.id)},onKeyDown:function(e){e.stopPropagation(),"Enter"!==e.key||c||t(r,n.id)},sx:{margin:"0 8px",padding:"0.25em 0.25em",":hover":c?{}:{background:Mh.palette.common.grayLight,borderRadius:"50%"}}})),p=i.createElement(dm,{describeChild:!0,title:"View ".concat(n.title," Inputs")},i.createElement(ZC,{"aria-label":"View ".concat(n.title).concat(c?" Disabled - Test Run in Progress":""),"aria-hidden":!1,tabIndex:0,color:c?"disabled":"secondary","data-testid":"runButton-".concat(n.id),onClick:function(){c||t(r,n.id)},onKeyDown:function(e){e.stopPropagation(),"Enter"!==e.key||c||t(r,n.id)},sx:{margin:"0 8px",padding:"0.25em 0.25em",":hover":c?{}:{background:Mh.palette.common.grayLight,borderRadius:"50%"}}}));return s?o?u:l?p:d:i.createElement(i.Fragment,null)},c_=function(e){var t,n=e.type,r=Q$().classes,o=r[n];return"error"===n?t=i.createElement(NC,{className:o}):"warning"===n?t=i.createElement(X$,{className:o}):"info"===n&&(t=i.createElement(a_,{className:o})),i.createElement(nu,{display:"flex",alignItems:"center"},t,i.createElement(Su,{variant:"subtitle2",component:"p",p:1,className:cc([r.bolderText,o])},n))};var u_=function(e,t){return e.filter(function(e){return e.type===t}).length};const d_=function(e){var t=e.messages,n=Q$().classes,r=i.createElement(wC,{key:"msg-header"},["Type","Message"].map(function(e){return i.createElement(IC,{key:e,className:"Message"===e?n.messageMessage:""},i.createElement(Su,{variant:"overline",className:n.bolderText},e))})),o=function(e){var t=["error","warning","info"],n=e.sort(function(e,n){return t.indexOf(e.type)-t.indexOf(n.type)});return n}(t).map(function(e,t){return i.createElement(wC,{key:"msgRow-".concat(t)},i.createElement(IC,null,i.createElement(c_,{type:e.type})),i.createElement(IC,{className:n.messageMessage},i.createElement(lx,{remarkPlugins:[ek]},e.message)))});return t.length>0?i.createElement(sC,{size:"small"},i.createElement(rN,null,r),i.createElement(hC,null,o)):i.createElement(nu,{p:2},i.createElement(Su,{variant:"subtitle2",component:"p"},"No Messages"))},p_=Jd((0,Dc.jsx)("path",{d:"M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2M11 16l4-4-4-4v3H1v2h10z"}),"Input"),f_=Jd((0,Dc.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");function m_(e){return fc("MuiCardHeader",e)}const h_=Jc("MuiCardHeader",["root","avatar","action","content","title","subheader"]),g_=qc("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${h_.title}`]:t.title},{[`& .${h_.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),v_=qc("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),y_=qc("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),b_=qc("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto",[`.${vu.root}:where(& .${h_.title})`]:{display:"block"},[`.${vu.root}:where(& .${h_.subheader})`]:{display:"block"}}),x_=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiCardHeader"}),{action:r,avatar:o,component:a="div",disableTypography:i=!1,subheader:l,subheaderTypographyProps:s,title:c,titleTypographyProps:u,slots:d={},slotProps:p={},...f}=n,m={...n,component:a,disableTypography:i},h=(e=>{const{classes:t}=e;return mc({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},m_,t)})(m),g={slots:d,slotProps:{title:u,subheader:s,...p}};let v=c;const[y,b]=Qf("title",{className:h.title,elementType:Su,externalForwardedProps:g,ownerState:m,additionalProps:{variant:o?"body2":"h5",component:"span"}});null==v||v.type===Su||i||(v=(0,Dc.jsx)(y,{...b,children:v}));let x=l;const[w,k]=Qf("subheader",{className:h.subheader,elementType:Su,externalForwardedProps:g,ownerState:m,additionalProps:{variant:o?"body2":"body1",color:"textSecondary",component:"span"}});null==x||x.type===Su||i||(x=(0,Dc.jsx)(w,{...k,children:x}));const[S,E]=Qf("root",{ref:t,className:h.root,elementType:g_,externalForwardedProps:{...g,...f,component:a},ownerState:m}),[C,I]=Qf("avatar",{className:h.avatar,elementType:v_,externalForwardedProps:g,ownerState:m}),[P,O]=Qf("content",{className:h.content,elementType:b_,externalForwardedProps:g,ownerState:m}),[T,R]=Qf("action",{className:h.action,elementType:y_,externalForwardedProps:g,ownerState:m});return(0,Dc.jsxs)(S,{...E,children:[o&&(0,Dc.jsx)(C,{...I,children:o}),(0,Dc.jsxs)(P,{...O,children:[v,x]}),r&&(0,Dc.jsx)(T,{...R,children:r})]})}),w_=x_;var k_=function(e){var t=(0,i.useRef)(e),n=(0,i.useRef)(),r=(0,i.useRef)(!1),o=(0,i.useRef)(!1),a=lc((0,i.useState)(0),2)[1];r.current&&(o.current=!0),(0,i.useEffect)(function(){return r.current||(n.current=t.current(),r.current=!0),a(function(e){return e+1}),function(){o.current&&n.current&&n.current()}},[])};const S_=Jd((0,Dc.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),E_=function(e){var t=e.collapsed,n=void 0!==t&&t,r=e.setCollapsed,o=e.size;return i.createElement(dm,{title:n?"Expand panel":"Collapse panel"},i.createElement(Kd,{size:o,color:"secondary","aria-label":n?"expand button":"collapse button",onClick:function(){return r(!n)}},n?i.createElement(LL,{fontSize:"inherit"}):i.createElement(S_,{fontSize:"inherit"})))};const C_=Vs()(function(e){return{modalTitle:{fontWeight:600,fontSize:"1.5rem"},modalTitleURL:{overflow:"hidden",maxHeight:"1.6em",wordBreak:"break-all",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1"},headerName:{fontWeight:600},codeBlock:{overflow:"auto",fontSize:"small",marginTop:"16px"},codeBlockHeader:{cursor:"pointer",":hover":{backgroundColor:Mh.palette.common.blueLightest}},code:{textWrap:"wrap"},inputIcon:{float:"right",verticalAlign:"middle",marginTop:"4px"}}}),I_=function(e){var t=e.body,n=e.headers,r=e.title,o=C_().classes,a=lc(i.useState(!0),2),l=a[0],s=a[1],c=lc(i.useState(""),2),u=c[0],d=c[1];k_(function(){t&&t.length>0&&d(function(e,t){if(!t)return e;var n=t.find(function(e){return"content-type"===e.name}),r=!1;if(n){var o=n.value;(o.includes("application/fhir+json")||o.includes("application/json"))&&(r=!0)}return r?function(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch(e){return Pr("Input is not a JSON file: ".concat(e),{variant:"error"}),""}}(e):e}(t,n))});var p=(null==t?void 0:t.split("\n").length)||0,f="".concat(r||"Code"," (").concat(p," line").concat(1===p?"":"s",")");return t&&t.length>0?i.createElement(vS,{variant:"outlined",className:o.codeBlock,"data-testid":"code-block"},i.createElement(w_,{title:f,titleTypographyProps:{sx:{fontSize:20}},action:i.createElement(nu,{display:"flex"},i.createElement(gO,{copyText:u}),i.createElement(E_,{setCollapsed:s,collapsed:l})),onClick:function(){return s(!l)},className:o.codeBlockHeader,sx:{backgroundColor:l?"unset":Mh.palette.common.blueLightest}}),i.createElement(KL,{in:!l},i.createElement(dS,null),i.createElement(HR,{sx:{pt:0}},i.createElement("pre",{"data-testid":"pre"},i.createElement("code",{"data-testid":"code",className:o.code},u))))):null},P_=function(e){var t=e.headers,n=C_().classes;return i.createElement(nC,{component:Lu,variant:"outlined"},i.createElement(sC,{size:"small"},i.createElement(hC,null,t.map(function(e){return i.createElement(wC,{key:e.name},i.createElement(IC,{className:n.headerName,component:"th",scope:"row"},e.name,":"),i.createElement(IC,{align:"left"},e.value))}))))},O_=function(e){var t=e.request,n=e.hideModal,r=e.modalVisible,o=e.usedRequest,a=C_().classes,l=null!=t&&t.timestamp?new Date(null==t?void 0:t.timestamp):null,s=i.createElement(dm,{title:"This request was performed in another test and the result is used by this test"},i.createElement(p_,{className:a.inputIcon})),c=i.createElement(nu,{display:"flex",className:a.modalTitle},i.createElement(dm,{title:"".concat((null==t?void 0:t.verb.toUpperCase())||""," ").concat((null==t?void 0:t.url)||""," → ").concat((null==t?void 0:t.status)||""),placement:"bottom-start"},i.createElement(nu,{display:"flex"},i.createElement(nu,{display:"flex",pr:1},null==t?void 0:t.verb.toUpperCase()),i.createElement(nu,{pr:1,className:a.modalTitleURL},null==t?void 0:t.url),(null==t?void 0:t.url)&&i.createElement(gO,{copyText:t.url}),i.createElement(nu,{display:"flex",flexShrink:0},"→ ",null==t?void 0:t.status))),i.createElement(nu,{display:"flex",flexGrow:1,pr:1}),o&&i.createElement(nu,{display:"flex",flexShrink:1,flexDirection:"row-reverse",px:2},s));return t?i.createElement(HE,{open:r,fullWidth:!0,maxWidth:"md",onClose:n,"data-testid":"requestDetailModal",onKeyDown:function(e){return e.stopPropagation()}},i.createElement(GE,null,c),i.createElement(dS,null),i.createElement(JE,null,i.createElement(nu,{pb:3},i.createElement(Su,{variant:"h5",component:"h3",pb:l?0:2},"Request"),l&&i.createElement(Su,{variant:"overline"},l.toLocaleString()),i.createElement(P_,{headers:t.request_headers||[]}),t.request_body&&i.createElement(I_,{body:t.request_body,headers:t.request_headers,title:"Request Body"})),i.createElement(nu,{pb:3},i.createElement(Su,{variant:"h5",component:"h3",pb:2},"Response"),i.createElement(P_,{headers:t.response_headers||[]}),t.response_body&&i.createElement(I_,{body:t.response_body,headers:t.response_headers,title:"Response Body"}))),i.createElement(RC,null,i.createElement(Bd,{color:"secondary",variant:"contained","data-testid":"cancel-button",onClick:n,sx:{fontWeight:"bold"}},"Close"))):null},T_=function(e){var t=e.requests,n=e.resultId,r=e.updateRequest,o=e.view,a=Q$().classes,l=Fr().enqueueSnackbar,s=lc(i.useState(!1),2),c=s[0],u=s[1],d=lc(i.useState(),2),p=d[0],f=d[1],m=i.createElement(wC,{key:"req-header"},["Type","URL","Status"].map(function(e){return i.createElement(IC,{key:e},i.createElement(Su,{variant:"overline",className:a.bolderText},e))}),i.createElement(IC,{key:"Direction",role:"none","aria-hidden":"true","aria-label":"header-request-direction"}),"run"===o&&i.createElement(IC,{key:"Details",role:"none","aria-hidden":"true","aria-label":"header-request-details"})),h=kO(t).sort(function(e,t){return e.index-t.index}).map(function(e,t){return i.createElement(wC,{key:"reqRow-".concat(t)},i.createElement(IC,null,i.createElement(nu,{display:"flex"},function(e){if(e.result_id!==n)return i.createElement(dm,{title:"This request was performed in another test and the result is used by this test"},i.createElement(p_,{color:"secondary",fontSize:"small",tabIndex:0,"aria-hidden":"false",sx:{pr:1}}))}(e),i.createElement(Su,{variant:"subtitle2",component:"p"},e.verb))),i.createElement(IC,{className:a.requestUrlContainer},i.createElement(nu,{display:"flex",alignItems:"center"},i.createElement(dm,{title:e.url,placement:"bottom-start"},i.createElement(Su,{variant:"subtitle2",component:"p",sx:"run"===o?{overflow:"hidden",maxHeight:"1.5em",wordBreak:"break-all",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"1"}:{}},e.url)),i.createElement(gO,{copyText:e.url,size:"small",view:o}))),i.createElement(IC,null,i.createElement(Su,{variant:"subtitle2",component:"p",className:a.bolderText},e.status)),i.createElement(IC,null,"incoming"===e.direction&&i.createElement(dm,{title:"Direction: incoming"},i.createElement(f_,null))),"run"===o&&i.createElement(IC,null,function(e){return i.createElement(Bd,{onClick:function(){return function(e){var t,o;void 0===e.request_headers?(t=e.id,o=Xs("/requests/".concat(t)),fetch(o).then(function(e){return e.json()}).then(function(e){return e})).then(function(t){t?(r(e.id,n,t),f(t),u(!0)):l("Failed to update request",{variant:"error"})}).catch(function(e){l("Error getting request details: ".concat(e.message),{variant:"error"})}):(f(e),u(!0))}(e)},color:"secondary",variant:"contained",size:"small",disableElevation:!0},"Details")}(e)))});return i.createElement(i.Fragment,null,t.length>0?i.createElement(nC,{"data-testid":"requests-list"},i.createElement(sC,{size:"small",className:a.table},i.createElement(rN,null,m),i.createElement(hC,null,h))):i.createElement(nu,{p:2,"data-testid":"requests-list"},i.createElement(Su,{variant:"subtitle2",component:"p"},"No Requests")),i.createElement(O_,{request:p,modalVisible:c,hideModal:function(){return u(!1)},usedRequest:(null==p?void 0:p.result_id)!==n,"data-testid":"requests-detail-modal"}))};function R_(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const M_={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"},A_=Jd((0,Dc.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),L_=Jd((0,Dc.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function j_(e){return fc("MuiTabScrollButton",e)}const $_=Jc("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),N_=qc(bd,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${$_.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),__=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTabScrollButton"}),{className:r,slots:o={},slotProps:a={},direction:i,orientation:l,disabled:s,...c}=n,u=rp(),d={isRtl:u,...n},p=(e=>{const{classes:t,orientation:n,disabled:r}=e;return mc({root:["root",n,r&&"disabled"]},j_,t)})(d),f=o.StartScrollButtonIcon??A_,m=o.EndScrollButtonIcon??L_,h=zf({elementType:f,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=zf({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,Dc.jsx)(N_,{component:"div",className:cc(p.root,r),ref:t,role:null,ownerState:d,tabIndex:null,...c,style:{...c.style,..."vertical"===l&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:"left"===i?(0,Dc.jsx)(f,{...h}):(0,Dc.jsx)(m,{...g})})}),D_=__;function z_(e){return fc("MuiTabs",e)}const F_=Jc("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),B_=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,W_=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,H_=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},V_=qc("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${F_.scrollButtons}`]:t.scrollButtons},{[`& .${F_.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(mu(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${F_.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),q_=qc("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),U_=qc("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),K_=qc("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(mu(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),G_=qc(function(e){const{onChange:t,...n}=e,r=i.useRef(),o=i.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return fm(()=>{const e=Vk(()=>{const e=r.current;a(),e!==r.current&&t(r.current)}),n=qk(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),i.useEffect(()=>{a(),t(r.current)},[t]),(0,Dc.jsx)("div",{style:M_,...n,ref:o})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Y_={},X_=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTabs"}),r=gs(),o=rp(),{"aria-label":a,"aria-labelledby":l,action:s,centered:c=!1,children:u,className:d,component:p="div",allowScrollButtonsMobile:f=!1,indicatorColor:m="primary",onChange:h,orientation:g="horizontal",ScrollButtonComponent:v,scrollButtons:y="auto",selectionFollowsFocus:b,slots:x={},slotProps:w={},TabIndicatorProps:k={},TabScrollButtonProps:S={},textColor:E="primary",value:C,variant:I="standard",visibleScrollbar:P=!1,...O}=n,T="scrollable"===I,R="vertical"===g,M=R?"scrollTop":"scrollLeft",A=R?"top":"left",L=R?"bottom":"right",j=R?"clientHeight":"clientWidth",$=R?"height":"width",N={...n,component:p,allowScrollButtonsMobile:f,indicatorColor:m,orientation:g,vertical:R,scrollButtons:y,textColor:E,variant:I,visibleScrollbar:P,fixed:!T,hideScrollbar:T&&!P,scrollableX:T&&!R,scrollableY:T&&R,centered:c&&!T,scrollButtonsHideMobile:!f},_=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:s}=e;return mc({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},z_,s)})(N),D=zf({elementType:x.StartScrollButtonIcon,externalSlotProps:w.startScrollButtonIcon,ownerState:N}),z=zf({elementType:x.EndScrollButtonIcon,externalSlotProps:w.endScrollButtonIcon,ownerState:N}),[F,B]=i.useState(!1),[W,H]=i.useState(Y_),[V,q]=i.useState(!1),[U,K]=i.useState(!1),[G,Y]=i.useState(!1),[X,Q]=i.useState({overflow:"hidden",scrollbarWidth:0}),J=new Map,Z=i.useRef(null),ee=i.useRef(null),te={slots:x,slotProps:{indicator:k,scrollButton:S,...w}},ne=()=>{const e=Z.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==C){const e=ee.current.children;if(e.length>0){const t=e[J.get(C)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},re=Hu(()=>{const{tabsMeta:e,tabMeta:t}=ne();let n,r=0;R?(n="top",t&&e&&(r=t.top-e.top+e.scrollTop)):(n=o?"right":"left",t&&e&&(r=(o?-1:1)*(t[n]-e[n]+e.scrollLeft)));const a={[n]:r,[$]:t?t[$]:0};if("number"!=typeof W[n]||"number"!=typeof W[$])H(a);else{const e=Math.abs(W[n]-a[n]),t=Math.abs(W[$]-a[$]);(e>=1||t>=1)&&H(a)}}),oe=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:a=R_,duration:i=300}=r;let l=null;const s=t[e];let c=!1;const u=r=>{if(c)return void o(new Error("Animation cancelled"));null===l&&(l=r);const d=Math.min(1,(r-l)/i);t[e]=a(d)*(n-s)+s,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(u)};s===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(M,Z.current,e,{duration:r.transitions.duration.standard}):Z.current[M]=e},ae=e=>{let t=Z.current[M];t+=R?e:e*(o?-1:1),oe(t)},ie=()=>{const e=Z.current[j];let t=0;const n=Array.from(ee.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[j]>e){0===r&&(t=e);break}t+=o[j]}return t},le=()=>{ae(-1*ie())},se=()=>{ae(ie())},[ce,{onChange:ue,...de}]=Qf("scrollbar",{className:cc(_.scrollableX,_.hideScrollbar),elementType:G_,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:N}),pe=i.useCallback(e=>{ue?.(e),Q({overflow:null,scrollbarWidth:e})},[ue]),[fe,me]=Qf("scrollButtons",{className:cc(_.scrollButtons,S.className),elementType:D_,externalForwardedProps:te,ownerState:N,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:D,endScrollButtonIcon:z}}}),he=Hu(e=>{const{tabsMeta:t,tabMeta:n}=ne();if(n&&t)if(n[A]<t[A]){const r=t[M]+(n[A]-t[A]);oe(r,{animation:e})}else if(n[L]>t[L]){const r=t[M]+(n[L]-t[L]);oe(r,{animation:e})}}),ge=Hu(()=>{T&&!1!==y&&Y(!G)});i.useEffect(()=>{const e=Vk(()=>{Z.current&&re()});let t;const n=qk(Z.current);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ee.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(r=new MutationObserver(n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),ge()}),r.observe(ee.current,{childList:!0})),()=>{e.clear(),n.removeEventListener("resize",e),r?.disconnect(),t?.disconnect()}},[re,ge]),i.useEffect(()=>{const e=Array.from(ee.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&T&&!1!==y){const n=e[0],r=e[t-1],o={root:Z.current,threshold:.99},a=new IntersectionObserver(e=>{q(!e[0].isIntersecting)},o);a.observe(n);const i=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},o);return i.observe(r),()=>{a.disconnect(),i.disconnect()}}},[T,y,G,u?.length]),i.useEffect(()=>{B(!0)},[]),i.useEffect(()=>{re()}),i.useEffect(()=>{he(Y_!==W)},[he,W]),i.useImperativeHandle(s,()=>({updateIndicator:re,updateScrollButtons:ge}),[re,ge]);const[ve,ye]=Qf("indicator",{className:cc(_.indicator,k.className),elementType:K_,externalForwardedProps:te,ownerState:N,additionalProps:{style:W}}),be=(0,Dc.jsx)(ve,{...ye});let xe=0;const we=i.Children.map(u,e=>{if(!i.isValidElement(e))return null;const t=void 0===e.props.value?xe:e.props.value;J.set(t,xe);const n=t===C;return xe+=1,i.cloneElement(e,{fullWidth:"fullWidth"===I,indicator:n&&!F&&be,selected:n,selectionFollowsFocus:b,onChange:h,textColor:E,value:t,...1!==xe||!1!==C||e.props.tabIndex?{}:{tabIndex:0}})}),ke=(()=>{const e={};e.scrollbarSizeListener=T?(0,Dc.jsx)(ce,{...de,onChange:pe}):null;const t=T&&("auto"===y&&(V||U)||!0===y);return e.scrollButtonStart=t?(0,Dc.jsx)(fe,{direction:o?"right":"left",onClick:le,disabled:!V,...me}):null,e.scrollButtonEnd=t?(0,Dc.jsx)(fe,{direction:o?"left":"right",onClick:se,disabled:!U,...me}):null,e})(),[Se,Ee]=Qf("root",{ref:t,className:cc(_.root,d),elementType:V_,externalForwardedProps:{...te,...O,component:p},ownerState:N}),[Ce,Ie]=Qf("scroller",{ref:Z,className:_.scroller,elementType:q_,externalForwardedProps:te,ownerState:N,additionalProps:{style:{overflow:X.overflow,[R?"margin"+(o?"Left":"Right"):"marginBottom"]:P?void 0:-X.scrollbarWidth}}}),[Pe,Oe]=Qf("list",{ref:ee,className:cc(_.list,_.flexContainer),elementType:U_,externalForwardedProps:te,ownerState:N,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=ee.current,n=OS(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===g?"ArrowLeft":"ArrowUp",a="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&o&&(r="ArrowRight",a="ArrowLeft"),e.key){case r:e.preventDefault(),H_(t,n,W_);break;case a:e.preventDefault(),H_(t,n,B_);break;case"Home":e.preventDefault(),H_(t,null,B_);break;case"End":e.preventDefault(),H_(t,null,W_)}})(t),e.onKeyDown?.(t)}})});return(0,Dc.jsxs)(Se,{...Ee,children:[ke.scrollButtonStart,ke.scrollbarSizeListener,(0,Dc.jsxs)(Ce,{...Ie,children:[(0,Dc.jsx)(Pe,{"aria-label":a,"aria-labelledby":l,"aria-orientation":"vertical"===g?"vertical":null,role:"tablist",...Oe,children:we}),F&&be]}),ke.scrollButtonEnd]})}),Q_=X_;function J_(e){return fc("MuiTab",e)}const Z_=Jc("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),eD=qc(bd,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Wc(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Z_.iconWrapper}`]:t.iconWrapper},{[`& .${Z_.icon}`]:t.icon}]}})(mu(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${Z_.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${Z_.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${Z_.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${Z_.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Z_.selected}`]:{opacity:1},[`&.${Z_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Z_.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Z_.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Z_.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Z_.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),tD=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:l,icon:s,iconPosition:c="top",indicator:u,label:d,onChange:p,onClick:f,onFocus:m,selected:h,selectionFollowsFocus:g,textColor:v="inherit",value:y,wrapped:b=!1,...x}=n,w={...n,disabled:o,disableFocusRipple:a,selected:h,icon:!!s,iconPosition:c,label:!!d,fullWidth:l,textColor:v,wrapped:b},k=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:l,disabled:s}=e;return mc({root:["root",a&&i&&"labelIcon",`textColor${Wc(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",s&&"disabled"],icon:["iconWrapper","icon"]},J_,t)})(w),S=s&&d&&i.isValidElement(s)?i.cloneElement(s,{className:cc(k.icon,s.props.className)}):s;return(0,Dc.jsxs)(eD,{focusRipple:!a,className:cc(k.root,r),ref:t,role:"tab","aria-selected":h,disabled:o,onClick:e=>{!h&&p&&p(e,y),f&&f(e)},onFocus:e=>{g&&!h&&p&&p(e,y),m&&m(e)},ownerState:w,tabIndex:h?0:-1,...x,children:["top"===c||"start"===c?(0,Dc.jsxs)(i.Fragment,{children:[S,d]}):(0,Dc.jsxs)(i.Fragment,{children:[d,S]}),u]})}),nD=tD;var rD=qc(function(e){return i.createElement(nD,vc({disableRipple:!0},e))})(function(e){var t=e.theme;return{pointerEvents:"auto",fontWeight:"bold","&:hover, :focus-within":{color:t.palette.common.grayDarkest},"&.Mui-selected":{color:t.palette.common.orangeDark,"&:hover, :focus-within":{color:t.palette.primary.dark}}}});const oD=rD,aD=function(e){var t=e.children,n=e.id,r=e.index,o=e.currentTabIndex;return i.createElement("div",{role:"tabpanel",hidden:o!==r,id:"".concat(n,"-tabpanel-").concat(r),"aria-labelledby":"".concat(n,"-tab-").concat(r),style:{overflow:"auto",backgroundColor:Mh.palette.common.white}},o===r&&i.createElement("div",null,t))},iD=function(e){var t,n,r,o,a,l=e.test,s=e.currentTabIndex,c=e.setTabIndex,u=e.updateRequest,d=e.tabs,p=Q$().classes;(0,i.useEffect)(function(){c(s)},[s]);var f=i.createElement(nu,{mx:2},i.createElement(Su,{variant:"subtitle2",component:"div"},(0,i.useMemo)(function(){return i.createElement(lx,{remarkPlugins:[ek]},l.description||"")},[l.description])));return i.createElement(vS,{"data-testid":"test-run-detail"},i.createElement(Q_,{value:s,variant:"scrollable",className:p.tabs,onChange:function(e,t){c(t)}},d.map(function(e,t){return function(e,t){var n=(!e.value||0===e.value.length)&&"About"!==e.label;return i.createElement(oD,vc({key:"".concat(e.label,"-").concat(t),label:n?i.createElement(dm,{title:"No ".concat(e.label.toLowerCase()," available")},i.createElement(Su,{variant:"button"},e.label)):e.label},function(e){return{id:"".concat(l.id,"-tab-").concat(e),"aria-controls":"".concat(l.id,"-tabpanel-").concat(e)}}(t),{disabled:n}))}(e,t)})),i.createElement(dS,null),i.createElement(aD,{id:l.id,currentTabIndex:s,index:0},i.createElement(d_,{messages:(null===(t=l.result)||void 0===t?void 0:t.messages)||[]})),i.createElement(aD,{id:l.id,currentTabIndex:s,index:1},u&&i.createElement(T_,{requests:(null===(n=l.result)||void 0===n?void 0:n.requests)||[],resultId:(null===(r=l.result)||void 0===r?void 0:r.id)||"",updateRequest:u,view:"run"})),i.createElement(aD,{id:l.id,currentTabIndex:s,index:2},i.createElement(oN,{values:(null===(o=l.result)||void 0===o?void 0:o.inputs)||[],noValuesMessage:"No Inputs",headerName:"Input"})),i.createElement(aD,{id:l.id,currentTabIndex:s,index:3},i.createElement(oN,{values:(null===(a=l.result)||void 0===a?void 0:a.outputs)||[],noValuesMessage:"No Outputs",headerName:"Output"})),i.createElement(aD,{id:l.id,currentTabIndex:s,index:4},fN(l,f)?f:i.createElement(nu,{p:2},i.createElement(Su,{variant:"subtitle1",component:"p"},"No Description")),mN(l)&&i.createElement(GN,{runnable:l})))},lD=function(e){var t,n,r,o,a,l,s,c,u,d,p,f,m,h=e.test,g=e.runTests,v=e.updateRequest,y=e.showReportDetails,b=void 0!==y&&y,x=e.view,w=Q$().classes,k=ct().hash.replace("#","").split("/")[0],S=!(null===(t=h.result)||void 0===t||!t.messages)&&(null===(n=h.result)||void 0===n?void 0:n.messages.length)>0,E=!(null===(r=h.result)||void 0===r||!r.requests)&&(null===(o=h.result)||void 0===o?void 0:o.requests.length)>0,C=lc(i.useState(!1),2),I=C[0],P=C[1],O=lc(i.useState(!1),2),T=O[0],R=O[1],M=lc(i.useState(0),2),A=M[0],L=M[1],j=[{label:"Messages",value:null===(a=h.result)||void 0===a?void 0:a.messages},{label:"Requests",value:null===(l=h.result)||void 0===l?void 0:l.requests},{label:"Inputs",value:null===(s=h.result)||void 0===s?void 0:s.inputs},{label:"Outputs",value:null===(c=h.result)||void 0===c?void 0:c.outputs},{label:"About",value:h.description}];(0,i.useEffect)(function(){R("report"===x&&b&&(S||E)||k===h.short_id),L(V())},[b]);var $,N,_=i.createElement(nu,{display:"inline-flex"},i.createElement(UC,{result:h.result,isRunning:h.is_running})),D=i.createElement(i.Fragment,null,h.short_id&&i.createElement(Su,{className:w.shortId},"".concat(h.short_id," ")),h.optional&&i.createElement(Su,{className:w.optionalLabel},"Optional "),i.createElement(Su,{className:w.labelText},h.title),h.is_simulation_verification&&i.createElement(lN,null)),z=i.createElement(Em,{primary:D,secondary:(null===(u=h.result)||void 0===u?void 0:u.result_message)&&i.createElement(lx,{remarkPlugins:[ek],className:w.resultMessageMarkdown},h.result.result_message),slotProps:{secondary:{component:"div"}},className:w.testText}),F=void 0!==h.result&&null!==($=h.result)&&void 0!==$&&$.messages?(N=h.result.messages,{errors:u_(N,"error"),warnings:u_(N,"warning"),infos:u_(N,"info")}):{errors:0,warnings:0,infos:0},B=(null===(d=h.result)||void 0===d?void 0:d.requests)&&h.result.requests.length>0&&i.createElement(r_,{Icon:o_,counts:h.result.requests.length,color:w.request,badgeStyle:w.requestBadge,description:"".concat(h.result.requests.length," request(s)"),view:x,panelIndex:1,setOpen:R,setPanelIndex:L}),W="run"===x&&g&&i.createElement(nu,{onClick:function(e){return e.stopPropagation()},display:"flex",justifyContent:"center"},i.createElement(s_,{runnable:h,runnableType:vI.Test,runTests:g})),H=i.createElement(i.Fragment,null,S&&i.createElement(vS,{sx:E?{mb:2}:{}},i.createElement(d_,{messages:(null===(p=h.result)||void 0===p?void 0:p.messages)||[]})),v&&E&&i.createElement(vS,null,i.createElement(T_,{requests:(null===(f=h.result)||void 0===f?void 0:f.requests)||[],resultId:(null===(m=h.result)||void 0===m?void 0:m.id)||"",updateRequest:v,view:"report"}))),V=function(){var e=j.findIndex(function(e){var t;return"About"!==e.label&&e.value&&(null===(t=e.value)||void 0===t?void 0:t.length)>0});return-1===e?j.findIndex(function(e){return"About"===e.label}):e},q=function(){"report"!==x&&(R(!T),L(V()))};return i.createElement(D$,{disableGutters:!0,elevation:0,className:w.accordion,expanded:T,slotProps:{transition:{unmountOnExit:!0}},onClick:q,onKeyDown:function(e){"Enter"===e.key&&L(V())," "===e.key&&q()},onMouseEnter:function(){return P(!0)},onMouseLeave:function(){return P(!1)}},i.createElement(q$,{id:I?"":"".concat(h.id,"-summary"),"data-testid":"".concat(h.id,"-summary"),"aria-controls":"".concat(h.id,"-detail"),role:"report"===x?"region":"button",expandIcon:"run"===x&&i.createElement(dm,{title:"Expand test"},i.createElement(LL,{tabIndex:0,"aria-hidden":"false"})),className:w.accordionSummary,onKeyDown:function(e){"Enter"===e.key&&q()},sx:"report"===x?{cursor:"default !important"}:{}},i.createElement(nu,{display:"flex",alignItems:"center",width:"100%"},_,z,function(e){return"run"!==x?null:e.errors>0?i.createElement(r_,{Icon:NC,counts:e.errors,color:w.error,badgeStyle:w.errorBadge,description:"".concat(e.errors," message(s)"),view:x,panelIndex:0,setOpen:R,setPanelIndex:L}):e.warnings>0?i.createElement(r_,{Icon:X$,counts:e.warnings,color:w.warning,badgeStyle:w.warningBadge,description:"".concat(e.warnings," message(s)"),view:x,panelIndex:0,setOpen:R,setPanelIndex:L}):e.infos>0?i.createElement(r_,{Icon:a_,counts:e.infos,color:w.info,badgeStyle:w.infoBadge,description:"".concat(e.infos," message(s)"),view:x,panelIndex:0,setOpen:R,setPanelIndex:L}):void 0}(F),B,W)),i.createElement(dS,null),i.createElement(Y$,{title:I?"":"".concat(h.id,"-detail"),"data-testid":"".concat(h.id,"-detail"),className:w.accordionDetailContainer,onClick:function(e){return e.stopPropagation()}},"run"===x&&i.createElement(iD,{test:h,tabs:j,currentTabIndex:A,setTabIndex:L,updateRequest:v}),"report"===x&&b&&H))};var sD=function(e){var t,n,r,o,a,l,s=e.testGroup,c=e.runTests,u=e.updateRequest,d=e.showReportDetails,p=e.view,f=iN().classes,m=lc(i.useState(0),2),h=m[0],g=m[1],v=lc(i.useState(0),2),y=v[0],b=v[1],x=lc(i.useState(!1),2),w=x[0],k=x[1],S=lc(i.useState(!1),2),E=S[0],C=S[1],I=lc(i.useState("cancel"===(null===(t=s.result)||void 0===t?void 0:t.result)||"fail"===(null===(n=s.result)||void 0===n?void 0:n.result)||"error"===(null===(r=s.result)||void 0===r?void 0:r.result)||"skip"===(null===(o=s.result)||void 0===o?void 0:o.result)||"report"===p),2),P=I[0],O=I[1];(0,i.useEffect)(function(){var e,t,n,r;E||O("cancel"===(null===(e=s.result)||void 0===e?void 0:e.result)||"fail"===(null===(t=s.result)||void 0===t?void 0:t.result)||"error"===(null===(n=s.result)||void 0===n?void 0:n.result)||"skip"===(null===(r=s.result)||void 0===r?void 0:r.result)||"report"===p),g(T(s,"warning")),b(T(s,"error"))},[s.result]);var T=function(e,t){var n=e.test_groups.map(function(e){return T(e,t)}).reduce(function(e,t){return e+t},0);return e.tests.map(function(e){var n;return(null===(n=e.result)||void 0===n||null===(n=n.messages)||void 0===n?void 0:n.filter(function(e){return e.type===t}).length)||0}).reduce(function(e,t){return e+t},0)+n},R=i.createElement(D$,{disableGutters:!0,elevation:0,className:f.accordion,expanded:P,onChange:function(){"report"!==p&&(O(!P),C(!P))},slotProps:{transition:{unmountOnExit:!0}},onMouseEnter:function(){return k(!0)},onMouseLeave:function(){return k(!1)}},i.createElement(q$,{id:w?"":"".concat(s.id,"-summary"),"data-testid":"".concat(s.id,"-summary"),"aria-controls":"".concat(s.id,"-detail"),className:f.accordionSummary,expandIcon:"run"===p&&i.createElement(LL,{tabIndex:0,"aria-hidden":"false"}),sx:"report"===p?{cursor:"default !important"}:{}},i.createElement(nu,{display:"flex",alignItems:"center",width:"100%"},i.createElement(nu,{display:"inline-flex"},i.createElement(UC,{result:s.result,isRunning:s.is_running})),i.createElement(AS,{sx:{px:1,width:"100%"}},i.createElement(zR,{sx:{padding:0}},i.createElement(Em,{primary:i.createElement(i.Fragment,null,s.short_id&&i.createElement(Su,{className:f.shortId},"".concat(s.short_id," ")),i.createElement(Su,{className:f.labelText},s.title,s.is_simulation_verification&&i.createElement(lN,null))),secondary:null===(a=s.result)||void 0===a?void 0:a.result_message}))),i.createElement(nu,{display:"flex",justifyContent:"flex-end",width:"100%"},h>0&&i.createElement(r_,{Icon:X$,counts:h,color:f.warning,badgeStyle:f.warningBadge,description:"".concat(h," message(s)"),view:p,setOpen:O}),y>0&&i.createElement(r_,{Icon:NC,counts:y,color:f.error,badgeStyle:f.errorBadge,description:"".concat(y," message(s)"),view:p,setOpen:O})),"run"===p&&c&&i.createElement(s_,{runnable:s,runnableType:vI.TestGroup,runTests:c}))),i.createElement(dS,null),"report"===p&&s.run_as_group&&s.user_runnable&&s.result&&i.createElement(oN,{headerName:"Input",values:(null===(l=s.result)||void 0===l?void 0:l.inputs)||[]}),i.createElement(Y$,{title:w?"":"".concat(s.id,"-detail"),"data-testid":"".concat(s.id,"-detail"),className:f.accordionDetailContainer},"run"===p&&(s.description||s.verifies_requirements&&s.verifies_requirements.length>0)&&i.createElement(YN,{testGroup:s}),i.createElement(nu,{className:f.accordionDetail},"test_groups"in s&&s.test_groups.map(function(e){return i.createElement(sD,{key:"li-".concat(e.id),testGroup:e,runTests:c,updateRequest:u,showReportDetails:d,view:p})}),"tests"in s&&s.tests.map(function(e){return i.createElement(lD,{key:"li-".concat(e.id),test:e,runTests:c,updateRequest:u,showReportDetails:d,view:p})}))));return s.expanded||"report"===p?R:i.createElement(sN,{testGroup:s})};const cD=sD,uD=function(e){var t=e.children,n=e.runnable,r=e.runTests,o=e.view,a=yS().classes,l=qC(function(e){return e.readOnly}),s="".concat(l?"View":"Run").concat(n.run_as_group?"":" All").concat(l?" Inputs":" Tests"),c=(0,i.useMemo)(function(){return n.description?i.createElement(lx,{remarkPlugins:[ek]},n.description):void 0},[n.description]),u="tests"in n?vI.TestGroup:vI.TestSuite;return i.createElement(vS,{variant:"outlined"},i.createElement(nu,{className:a.testGroupCardHeader},n.result&&i.createElement(UC,{result:n.result,isRunning:n.is_running}),i.createElement("span",{className:a.testGroupCardHeaderText},i.createElement(Su,{className:a.currentItem,component:"div"},"short_id"in n&&i.createElement(Su,{className:a.shortId},"".concat(n.short_id," ")),n.title,yI(n)&&n.is_simulation_verification&&i.createElement(lN,null))),i.createElement("span",{className:a.testGroupCardHeaderButton},"run"===o&&r&&i.createElement(s_,{buttonText:s,runnable:n,runnableType:u,runTests:r}))),i.createElement(dS,null),"run"===o&&function(){var e=fN(n,c),t=mN(n);if(e||t)return i.createElement(i.Fragment,null,e&&i.createElement(nu,{mx:2.5,overflow:"auto"},c),t&&i.createElement(GN,{runnable:n}),i.createElement(dS,null))}(),"report"===o&&function(){var e;if(n.user_runnable&&n.result&&n.run_as_group)return i.createElement(oN,{headerName:"Input",values:(null===(e=n.result)||void 0===e?void 0:e.inputs)||[]})}(),i.createElement(nu,null,t))},dD=function(e){var t=e.messages,n=e.testSuiteId,r=pt(),o=yS().classes,a=qC(function(e){return e.readOnly}),l=t.filter(function(e){return"error"===e.type}),s=t.filter(function(e){return"warning"===e.type}),c=t.filter(function(e){return"info"===e.type}),u=function(e,t){return i.createElement(nu,{className:o.alertCursor},i.createElement(bk,{tabIndex:0,severity:e,variant:"filled",onClick:function(){r("#".concat(n||"","/config").concat(a?"/view":""))},onKeyDown:function(e){"Enter"===e.key&&r("#".concat(n||"","/config").concat(a?"/view":""))},className:o.alert},i.createElement(nu,{display:"flex"},i.createElement(nu,{className:o.alertMessage},t))))};return i.createElement(i.Fragment,null,l.length>0&&u("error",l.length>1?"There are ".concat(l.length," configuration errors that must be resolved."):"There is 1 configuration error that must be resolved."),s.length>0&&u("warning",s.length>1?"There are ".concat(s.length," configuration warnings."):"There is 1 configuration warning."),c.length>0&&u("info",c.length>1?"There are ".concat(c.length," configuration errors."):"There is 1 configuration message."))},pD=function(e){var t=e.runnable,n=e.runTests,r=e.updateRequest,o=e.testSuiteId,a=e.configMessages,l=[];null!=t&&t.test_groups&&t.test_groups.length>0?l=t.test_groups.map(function(e){return i.createElement(cD,{key:"li-".concat(e.id),testGroup:e,runTests:n,updateRequest:r,view:"run"})}):"tests"in t&&(l=t.tests.map(function(e){return i.createElement(lD,{key:"li-".concat(e.id),test:e,runTests:n,updateRequest:r,view:"run"})}));var s=a&&i.createElement(dD,{messages:(null==a?void 0:a.filter(function(e){return"error"===e.type}))||[],testSuiteId:o});return i.createElement(i.Fragment,null,s,i.createElement(uD,{runTests:n,runnable:t,view:"run"},l))};function fD(e){return fc("MuiSwitch",e)}const mD=Jc("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),hD=qc("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Wc(n.edge)}`],t[`size${Wc(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${mD.thumb}`]:{width:16,height:16},[`& .${mD.switchBase}`]:{padding:4,[`&.${mD.checked}`]:{transform:"translateX(16px)"}}}}]}),gD=qc(sh,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${mD.input}`]:t.input},"default"!==n.color&&t[`color${Wc(n.color)}`]]}})(mu(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${mD.checked}`]:{transform:"translateX(20px)"},[`&.${mD.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${mD.checked} + .${mD.track}`]:{opacity:.5},[`&.${mD.disabled} + .${mD.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${mD.input}`]:{left:"-100%",width:"300%"}})),mu(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(hu(["light"])).map(([t])=>({props:{color:t},style:{[`&.${mD.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_i(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mD.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?Bi(e.palette[t].main,.62):zi(e.palette[t].main,.55)}`}},[`&.${mD.checked} + .${mD.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),vD=qc("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(mu(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),yD=qc("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(mu(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),bD=i.forwardRef(function(e,t){const n=Gc({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:a=!1,size:i="medium",sx:l,slots:s={},slotProps:c={},...u}=n,d={...n,color:o,edge:a,size:i},p=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,l=mc({root:["root",n&&`edge${Wc(n)}`,`size${Wc(r)}`],switchBase:["switchBase",`color${Wc(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},fD,t);return{...t,...l}})(d),f={slots:s,slotProps:c},[m,h]=Qf("root",{className:cc(p.root,r),elementType:hD,externalForwardedProps:f,ownerState:d,additionalProps:{sx:l}}),[g,v]=Qf("thumb",{className:p.thumb,elementType:yD,externalForwardedProps:f,ownerState:d}),y=(0,Dc.jsx)(g,{...v}),[b,x]=Qf("track",{className:p.track,elementType:vD,externalForwardedProps:f,ownerState:d});return(0,Dc.jsxs)(m,{...h,children:[(0,Dc.jsx)(gD,{type:"checkbox",icon:y,checkedIcon:y,ref:t,ownerState:d,...u,classes:{...p,root:p.switchBase},slots:{...s.switchBase&&{root:s.switchBase},...s.input&&{input:s.input}},slotProps:{...c.switchBase&&{root:"function"==typeof c.switchBase?c.switchBase(d):c.switchBase},...c.input&&{input:"function"==typeof c.input?c.input(d):c.input}}}),(0,Dc.jsx)(b,{...x})]})}),xD=bD,wD=Jd((0,Dc.jsx)("path",{d:"M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3m-3 11H8v-5h8zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m-1-9H6v4h12z"}),"Print"),kD=function(e){var t,n,r,o,a,l,s=e.testSuite,c=e.suiteOptions,u=e.updateRequest,d=yS().classes,p=rc(function(e){return e.windowIsSmall}),f=lc(i.useState(!1),2),m=f[0],h=f[1],g=null===(t=window)||void 0===t||null===(t=t.location)||void 0===t||null===(t=t.href)||void 0===t||null===(t=t.split("#"))||void 0===t?void 0:t[0],v=c&&c.length>0?" - ".concat(c.map(function(e){return e.label}).join(", ")):"",y=i.createElement(vS,{variant:"outlined",sx:{mb:3}},i.createElement(nu,{className:d.testGroupCardHeader},i.createElement("span",{className:d.testGroupCardHeaderText},i.createElement(Su,{key:"1",color:"text.primary",className:d.currentItem},s.title," Report ",v)),i.createElement("span",{className:d.testGroupCardHeaderButton},i.createElement(Km,null,i.createElement(rh,{control:i.createElement(xD,{checked:m,onChange:function(){return h(!m)},inputProps:{"aria-label":"controlled"},color:"secondary"}),label:"Show details"}))),i.createElement("span",{className:d.testGroupCardHeaderButton},p?i.createElement(Kd,{color:"secondary","aria-label":"Print Report",onClick:function(){return window.print()}},i.createElement(RE,{sx:{width:32,height:32,bgcolor:Mh.palette.secondary.main}},i.createElement(wD,{fontSize:"small"}))):i.createElement(Bd,{variant:"contained",color:"secondary",size:"small",disableElevation:!0,startIcon:i.createElement(wD,null),onClick:function(){return window.print()}},"Print"))),i.createElement(dS,null),i.createElement(nu,{p:1},i.createElement(nu,{className:d.reportSummaryItems},i.createElement(nu,{px:2},i.createElement(Su,{variant:"h5",component:"h1",textTransform:"uppercase",fontWeight:"bold"},(null===(n=s.result)||void 0===n?void 0:n.result)||"pending"),i.createElement(Su,{variant:"button"},"Final Result")),s.version&&i.createElement(nu,{px:2},i.createElement(Su,{variant:"h5",component:"h1",fontWeight:"bold"},s.version),i.createElement(Su,{variant:"button"},"Version")),i.createElement(nu,{px:2},i.createElement(Su,{variant:"h5",component:"h1",fontWeight:"bold"},(l=null===(a=s.test_groups)||void 0===a?void 0:a.reduce(function(e,t){var n;if(null!==(n=t.result)&&void 0!==n&&n.updated_at){var r,o=new Date(null===(r=t.result)||void 0===r?void 0:r.updated_at);o>e&&(e=o)}return e},new Date(0)),s.test_groups&&(null==l?void 0:l.getTime())!==new Date(0).getTime()?Intl.DateTimeFormat("en",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(l):"N/A")),i.createElement(Su,{variant:"button"},"Report Date"))),g&&i.createElement(Su,{className:d.reportSummaryURL},g)));return i.createElement(i.Fragment,null,i.createElement(dD,{messages:(null===(r=s.configuration_messages)||void 0===r?void 0:r.filter(function(e){return"error"===e.type}))||[],testSuiteId:s.id}),y,null===(o=s.test_groups)||void 0===o?void 0:o.map(function(e){return i.createElement(uD,{key:"g-".concat(e.id),runnable:e,view:"report"},function(e){return e.test_groups.length>0?e.test_groups.map(function(e){return i.createElement(cD,{key:"li-".concat(e.id),testGroup:e,updateRequest:u,showReportDetails:m,view:"report"})}):e.tests.length>0?e.tests.map(function(e){return i.createElement(lD,{key:"li-".concat(e.id),test:e,showReportDetails:m,view:"report"})}):void 0}(e))}))};function SD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ED(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SD(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const CD=function(e){var t,n,r=e.requirements,o=e.requirementToTests,a=e.testSuiteTitle,l=qN().classes,s=lc(i.useState({}),2),c=s[0],u=s[1],d=lc(i.useState(r),2),p=d[0],f=d[1];r.forEach(function(e,t){r[t]=ED(ED({},e),{},{specification:e.id.split("@")[0]})});var m=Array.from(new Set(["Any"].concat(kO(r.map(function(e){return e.specification||e.id.split("@")[0]})))));(0,i.useEffect)(function(){u({}),f(r)},[r]);var h=function(e,t){var n=ED(ED({},c),{},tp({},t,e||null));u(n),function(e){var t=r;Object.entries(e).forEach(function(e){var n=lc(e,2),r=n[0],o=n[1];o&&"Any"!==o&&(t=t.filter(function(e){return e[r]===o}))}),f(t)}(n)};return i.createElement(vS,{variant:"outlined"},i.createElement(nu,{className:l.header},i.createElement("span",{className:l.headerText},i.createElement(Su,{color:"text.primary",className:l.currentItem,component:"div"},a," Specification Requirements"))),i.createElement(nu,{m:2,display:"flex",justifyContent:"space-between",overflow:"auto"},i.createElement(nu,{display:"flex"},i.createElement(EM,{value:null!==(t=c.specification)&&void 0!==t?t:null,size:"small",options:m,renderInput:function(e){return i.createElement(JP,vc({},e,{label:"Specification",variant:"standard",color:"secondary"}))},onChange:function(e,t){return h(t,"specification")},sx:{width:250}}),i.createElement(EM,{value:null!==(n=c.conformance)&&void 0!==n?n:null,size:"small",options:["Any","MAY","SHALL","SHALL NOT","SHOULD"],renderInput:function(e){return i.createElement(JP,vc({},e,{label:"Conformance",variant:"standard",color:"secondary"}))},onChange:function(e,t){return h(t,"conformance")},sx:{width:150,ml:4}})),i.createElement(Bd,{color:"secondary",variant:"outlined",onClick:function(){u({}),f(r)},sx:{ml:4,flexShrink:0}},"Reset Filters")),i.createElement(dS,null),i.createElement(nu,{m:2,overflow:"auto"},p.length>0?i.createElement(UN,{requirements:p,view:"page",requirementToTests:o}):i.createElement(Su,{fontStyle:"italic"},"No requirements found.")))},ID=Vs()(function(e){return{root:{backgroundColor:e.palette.background.paper},header:{padding:"8px 16px",fontWeight:600,fontSize:"16px",borderBottom:"1px solid ".concat(e.palette.divider),backgroundColor:e.palette.common.blueLightest,borderTopLeftRadius:"4px",borderTopRightRadius:"4px",display:"flex",minHeight:"36.5px",alignItems:"center"},headerText:{flexGrow:1},currentItem:{fontWeight:600}}}),PD=function(e){var t=e.testSuite,n=ID().classes,r=lc(i.useState(0),2),o=r[0],a=r[1],l=t.configuration_messages||[],s=l.filter(function(e){return"error"===e.type}),c=l.filter(function(e){return"warning"===e.type}),u=l.filter(function(e){return"info"===e.type}),d=function(e){return i.createElement(nu,{margin:2},e.length>0?e.map(function(e,t){return i.createElement(vS,{key:t,variant:"outlined",sx:{px:2,my:2,overflow:"auto"}},i.createElement(lx,{remarkPlugins:[ek]},e.message))}):i.createElement(Su,{variant:"body2"},"No Messages"))},p=function(e,t){return i.createElement(nu,{alignItems:"center",px:1},t>0&&i.createElement(lM,{label:t,size:"small",sx:{mx:1}}),e)},f=function(e,t){return{id:"".concat(e,"-tab-").concat(t),"aria-controls":"".concat(e,"-tabpanel-").concat(t)}};return i.createElement(vS,{variant:"outlined"},i.createElement(nu,{className:n.header},i.createElement("span",{className:n.headerText},i.createElement(Su,{color:"text.primary",className:n.currentItem,component:"div"},"Configuration Messages"))),i.createElement(Q_,{"aria-label":"config-messages-tabs",value:o,onChange:function(e,t){a(t)},variant:"fullWidth"},i.createElement(oD,vc({label:p("Errors",s.length)},f("errors",0))),i.createElement(oD,vc({label:p("Warnings",c.length)},f("warnings",1))),i.createElement(oD,vc({label:p("Info",u.length)},f("info",2)))),i.createElement(dS,null),i.createElement(aD,{id:"errors",currentTabIndex:o,index:0},d(s)),i.createElement(aD,{id:"warnings",currentTabIndex:o,index:1},d(c)),i.createElement(aD,{id:"info",currentTabIndex:o,index:2},d(u)))};function OD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OD(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const RD=function(e){var t,n,r=e.testSession,o=e.previousResults,a=e.initialTestRun,l=e.sessionData,s=e.suiteOptions,c=e.drawerOpen,u=e.setSessionData,d=e.getSessionData,p=e.toggleDrawer,f=wk().classes,m=Fr().enqueueSnackbar,h=rc(function(e){return e.headerHeight}),g=rc(function(e){return e.windowIsSmall}),v=qC(function(e){return e.currentRunnables}),y=qC(function(e){return e.setCurrentRunnables}),b=qC(function(e){return e.setTestRunId}),x=qC(function(e){return e.readOnly}),w=lc(i.useState(!1),2),k=w[0],S=w[1],E=lc(i.useState(),2),C=E[0],I=E[1],P=lc(i.useState(vI.TestSuite),2),O=P[0],T=P[1],R=lc(i.useState(dN(o)),2),M=R[0],A=R[1],L=lc(i.useState(null),2),j=L[0],$=L[1],N=lc(i.useState(!1),2),_=N[0],D=N[1],z=lc(i.useState(!1),2),F=z[0],B=z[1],W=lc(i.useState(!0),2),H=W[0],V=W[1],q=lc(i.useState([]),2),U=q[0],K=q[1],G=(n=(0,i.useRef)(),(0,i.useEffect)(function(){return function(){n.current&&(clearTimeout(n.current),n.current=void 0)}},[]),n),Y=i.useMemo(function(){return function(e){var t,n=new Map;return n.set(e.id,e),null==e||null===(t=e.test_groups)||void 0===t||t.forEach(function(e){cN(e,n)}),n}(r.test_suite)},[r.test_suite]),X=i.useMemo(function(){return function(e){var t,n,r=new Map;return null===(t=e.verifies_requirements)||void 0===t||t.forEach(function(t){r.get(t)?r.set(t,[].concat(kO(r.get(t)),[e.id])):r.set(t,[e.id])}),null==e||null===(n=e.test_groups)||void 0===n||n.forEach(function(e){uN(e,r)}),r}(r.test_suite)},[r.test_suite]),Q=ct().hash.replace("#","").split("/"),J=Q[0],Z=Q[1];Y.get(J)||Array.from(Y).forEach(function(e){var t=lc(e,2),n=t[0],r=t[1];yI(r)&&r.short_id===J?J=n:"test_groups"in r||r.short_id!==J||(J=n.substring(0,n.lastIndexOf("-")))});var ee=Y.get(J)?J:r.test_suite.id,te=lc(i.useState(Y.get(ee)||null),2),ne=te[0],re=te[1];M.forEach(function(e,t){var n=Y.get(t);n&&(n.result=e)}),(0,i.useEffect)(function(){if(!j&&a&&($(a),ue(a)&&(B(!0),oe(a))),ue(j)){var e=v[r.id],t=Y.get(e);t&&pN(t,!0)}}),(0,i.useEffect)(function(){if(j&&!ue(j)){var e=v[r.id],t=Y.get(e);t&&pN(t,!1);var n=Y.get(ee);n&&pN(n,!1);var o=v;delete o[r.id],y(o)}},[j]),(0,i.useEffect)(function(){var e;null===(e=r.test_suite.inputs)||void 0===e||e.forEach(function(e){var t=e.default||"";l.set(e.name,l.get(e.name)||t)}),u(new Map(l)),ie(r)},[r]),(0,i.useEffect)(function(){var e=null;"waiting"===(null==j?void 0:j.status)&&M.forEach(function(t){t.test_id&&"wait"===t.result&&(e=t.test_id)}),I(e)},[M]),k_(function(){return function(){V(!1)}});var oe=function(e){var t,n,o,a,i;(n=e.id,o=null===(i=e.results,t=i?i.reduce(function(e,t){return Date.parse(t.updated_at)>Date.parse(e.updated_at)?t:e},i[0]):null)||void 0===t?void 0:t.updated_at,a=Xs("/test_runs/".concat(n,"?include_results=true")),o&&(a+="&after=".concat(o)),fetch(a).then(function(e){return e.json()}).then(function(e){return e})).then(function(e){if($(e),null!=e&&e.results){e.results.forEach(function(e){e.outputs.forEach(function(e){e.value&&l.set(e.name,e.value)})}),u(new Map(l));var t=dN(e.results,M);"done"===(null==e?void 0:e.status)&&Array.from(t.values()).some(function(e){return"wait"===e.result})?Iu(r.id).then(function(e){e?(t=dN(e,M),A(t)):m("Failed to load results",{variant:"error"})}).catch(function(e){m("Error while getting test results: ".concat(e.message),{variant:"error"})}):A(t)}e&&ue(e)&&H&&(G.current=setTimeout(function(){return oe(e)},500))}).catch(function(e){m("Error while getting test run: ".concat(e.message),{variant:"error"})})},ae=function(e,t,n){var r=Array.from(M.values()).find(function(e){return e.id===t});if(r&&r.requests){var o=r.requests.findIndex(function(t){return t.id===e});r.requests[o]=n,A(new Map(M))}},ie=function(e){(function(e,t){return SI.apply(this,arguments)})(e.test_suite_id,e.id).then(function(e){K(e)}).catch(function(e){m("Error fetching specification requirements: ".concat(e.message),{variant:"error"})})},le=function(e,t){var n,r=Y.get(t);null==r||null===(n=r.inputs)||void 0===n||n.forEach(function(e){e.value=l.get(e.name)}),null!=r&&r.inputs.every(function(e){return e.hidden})?se(e,t,null==r?void 0:r.inputs):null!=r&&r.inputs&&r.inputs.length>0?function(e,t){T(t),re(e),S(!0)}(r,e):x?m("".concat(null==r?void 0:r.title," has no inputs"),{variant:"info"}):se(e,t,[])},se=function(e,t,n){n.forEach(function(e){l.set(e.name,e.value)}),u(new Map(l)),function(e,t,n,r){var o=Xs("/test_runs"),a={test_session_id:e,inputs:r};switch(t){case vI.TestSuite:a.test_suite_id=n;break;case vI.TestGroup:a.test_group_id=n;break;case vI.Test:a.test_id=n}return fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then(function(e){return e.json()}).then(function(e){return e})}(r.id,e,t,n).then(function(e){if(e){var n=Y.get(t);n&&pN(n,!0),y(TD(TD({},v),{},tp({},r.id,t))),S(!1),$(e),b(e.id),D(!1),B(!0),oe(e)}}).catch(function(e){m("Error while running test(s): ".concat(e.message),{variant:"error"})})},ce=function(){var e,t;j&&(e=j.id,t=Xs("/test_runs/".concat(e)),fetch(t,{method:"DELETE"})).then(function(){return D(!0)}).catch(function(e){return m("Error while cancelling test run: ".concat(e.message),{variant:"error"})})},ue=function(e){return!(null==e||!e.status)&&["running","queued","waiting","cancelling"].includes(null==e?void 0:e.status)},de=function(){return i.createElement("nav",{className:f.drawer},i.createElement(M$,{testSuite:r.test_suite,selectedRunnable:ee,view:Z||"run",presets:r.test_suite.presets,requirementsExist:U.length>0,getSessionData:d,testSessionId:r.id}))};return i.createElement(nu,{className:f.testSuiteMain},function(){var e=hN(v,ct().pathname)?null:2e3;return i.createElement(AA,{showProgressBar:F,setShowProgressBar:B,cancelled:_,cancelTestRun:ce,duration:e,testRun:j,resultsMap:M})}(),g?i.createElement(gI,{anchor:"left",open:c,onClose:function(){return p(!1)},onOpen:function(){return p(!0)},swipeAreaWidth:56,disableSwipeToOpen:!1,ModalProps:{keepMounted:!0,BackdropProps:{classes:{root:f.swipeableDrawerHeight}}},PaperProps:{elevation:0},classes:{paper:f.swipeableDrawerHeight}},i.createElement(SE,{sx:{minHeight:"".concat(h,"px !important")}}),de()):i.createElement(aS,{variant:"permanent",anchor:"left",className:f.hidePrint,classes:{paper:f.drawerPaper}},de()),i.createElement("main",{style:{overflow:"auto",width:"100%",backgroundColor:Bi(Mh.palette.common.grayLight,.5)}},i.createElement(nu,{className:f.contentContainer,p:g?0:4},function(e){var t=Y.get(ee);if(!t)return null;switch(e){case"report":return i.createElement(kD,{testSuite:t,suiteOptions:s,updateRequest:ae});case"requirements":return i.createElement(CD,{requirements:U,requirementToTests:X,testSuiteTitle:t.title});case"config":return i.createElement(PD,{testSuite:t});default:return i.createElement(pD,{runnable:t,runTests:le,updateRequest:ae,testSuiteId:r.test_suite.id,configMessages:r.test_suite.configuration_messages})}}(Z||"run"),k&&i.createElement(nA,{modalVisible:k,hideModal:function(){return S(!1)},runnable:ne,runnableType:O,inputs:(null==ne?void 0:ne.inputs)||[],sessionData:l,createTestRun:se}),i.createElement(TI,{cancelTestRun:ce,message:C?null===(t=M.get(C))||void 0===t?void 0:t.result_message:"",modalVisible:!!C}))))};function MD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MD(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const LD=function(){var e=pt(),t=Fr().enqueueSnackbar,n=rc(function(e){return e.testSuites}),r=qC(function(e){return e.readOnly}),o=qC(function(e){return e.setReadOnly}),a=lc(i.useState(null),2),l=a[0],s=a[1],c=lc(i.useState(),2),u=c[0],d=c[1],p=lc(i.useState(),2),f=p[0],m=p[1],h=lc(i.useState(new Map),2),g=h[0],v=h[1],y=lc(i.useState(!1),2),b=y[0],x=y[1],w=lc(i.useState(!1),2),k=w[0],S=w[1],E=lc(i.useState(!1),2),C=E[0],I=E[1],P=lc(i.useState(!1),2),O=P[0],T=P[1],R=lc(i.useState(!1),2),M=R[0],A=R[1],L=lc(i.useState(""),2),j=L[0],$=L[1],N=lc(i.useState(!1),2),_=N[0],D=N[1],z=ct().hash,F=z.replace("#","").split("/"),B=r?"/view":"";function W(e){(function(e){var t=Xs("/test_sessions/".concat(e,"/session_data"));return fetch(t).then(function(e){return e.json()}).then(function(e){return e})})(e).then(function(e){e?(null==e||e.forEach(function(e){e.value&&g.set(e.name,e.value)}),v(new Map(g))):t("Failed to load session data",{variant:"error"})}).catch(function(e){t("Error getting session data: ".concat(e.message),{variant:"error"})}).finally(function(){return T(!0)})}(0,i.useEffect)(function(){var e;(e=Xs("/version"),fetch(e).then(function(e){return e.json()}).then(function(e){return"version"in e?e.version:""}).catch(function(){return""})).then(function(e){$(e)}).catch(function(){$("")}),o(F.includes("view"))},[]),(0,i.useEffect)(function(){!z&&u&&e("#".concat(null==u?void 0:u.test_suite_id).concat(B))},[u]);var H=function(e){D(e)};if(u&&f&&g){var V,q,U=null==n||null===(V=n.find(function(e){return e.id===u.test_suite_id}))||void 0===V||null===(V=V.suite_options)||void 0===V?void 0:V.reduce(function(e,t){return AD(AD({},e),{},tp({},t.id,t.list_options||[]))},{}),K=U?null===(q=u.suite_options)||void 0===q?void 0:q.map(function(e){return U[e.id].filter(function(t){return t.value===e.value})}).flat().filter(function(e){return e}):[];return i.createElement(ak,{in:!0},i.createElement(nu,{display:"flex",flexDirection:"column",flexGrow:"1",height:"100%"},function(e){var t=(null==e?void 0:e.test_suite.short_title)||(null==e?void 0:e.test_suite.title),n=t?"".concat(t," "):"",r="".concat(n,"Test Session");document.title=r;var o=e.test_suite.short_description||e.test_suite.description||"";return i.createElement(Tu,{title:r,description:o})}(u),i.createElement(oI,{suiteId:u.test_suite.id,suiteTitle:u.test_suite.title,suiteVersion:u.test_suite.version,suiteOptions:K,drawerOpen:_,toggleDrawer:H}),i.createElement(RD,{testSession:u,previousResults:f,initialTestRun:l,sessionData:g,suiteOptions:K,drawerOpen:_,setSessionData:v,getSessionData:W,toggleDrawer:H}),i.createElement(fE,{version:j,linkList:u.test_suite.links})))}if(k&&C&&O&&b)return i.createElement(nu,{display:"flex",flexDirection:"column",flexGrow:"1",height:"100%"},i.createElement(bk,{severity:"error"},"Failed to load test session data. Please make sure you entered the correct session id."),i.createElement(rI,null),i.createElement(xS,null),i.createElement(mE,null));var G=ft().test_session_id;return G&&!M&&(A(!0),function(e){(function(e){var t=Xs("/test_sessions/"+e+"/last_test_run");return fetch(t).then(function(e){return e.json()}).then(function(e){return e})})(e).then(function(e){s(e||null)}).catch(function(){}).finally(function(){return x(!0)})}(G),function(e){Eu(e).then(function(e){e?d(e):t("Failed to load test session",{variant:"error"})}).catch(function(e){t("Error while getting test session: ".concat(e.message),{variant:"error"})}).finally(function(){return S(!0)})}(G),function(e){Iu(e).then(function(e){e?m(e):t("Failed to load test session results",{variant:"error"})}).catch(function(e){t("Error while getting test results: ".concat(e.message),{variant:"error"})}).finally(function(){return I(!0)})}(G),W(G)),i.createElement(nu,{display:"flex",flexDirection:"column",flexGrow:"1",height:"100%"},i.createElement(rI,null),i.createElement(xS,null),i.createElement(mE,null))},jD=function(){var e=Ah().classes,t=rc(function(e){return e.windowIsSmall});return i.createElement(Xc,{maxWidth:!1,className:e.main,"data-testid":"landingPageSkeleton"},i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:t?"center":"flex-end",alignItems:"center",px:2},i.createElement(nu,{display:"flex",flexDirection:"column",my:2,alignItems:"center",justifyContent:"center"},i.createElement(Fh,{variant:"rounded",height:70,width:250,style:{margin:"32px"}}),i.createElement(Fh,{variant:"rounded",height:40,width:t?200:400,style:{margin:"8px"}})),i.createElement(nu,{mb:2,alignItems:"center"},i.createElement(Fh,{variant:"rounded",height:20,width:t?250:500,style:{margin:"8px"}}),i.createElement(Fh,{variant:"rounded",height:20,width:t?250:500,style:{margin:"8px"}}))),i.createElement(nu,{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",py:4,sx:{backgroundColor:Mh.palette.common.grayLight}},i.createElement(Bh,null)))},$D=function(){for(var e=tk().classes,t=rc(function(e){return e.windowIsSmall}),n=i.createElement(Fh,{variant:"rounded",height:10,width:t?300:400,style:{margin:"8px"}}),r=[],o=0;o<10;o++)r.push(i.createElement("div",{key:o},n));return i.createElement(Xc,{className:e.main,sx:{flexDirection:t?"":"column"},"data-testid":"suiteOptionsPageSkeleton"},i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",px:t?0:8,my:3},i.createElement(nu,{display:"flex",alignItems:"center",m:4},i.createElement(Fh,{variant:"rounded",height:40,width:t?200:350})),i.createElement(nu,{display:"flex",flexDirection:"column",justifyContent:"center",px:2,mb:3},r)),i.createElement(nu,{display:"flex",height:t?"none":"100%",width:t?"100%":"none",justifyContent:"center",alignItems:"center",sx:{backgroundColor:Mh.palette.common.grayLight}},i.createElement(nu,{display:"flex",justifyContent:"center",m:3},i.createElement(Bh,null))))};var ND=function(e){return t=[{path:"/",loader:function(){return e&&e.length>0?i.createElement(Wh,{testSuites:e}):i.createElement(jD,null)},element:i.createElement(oc,{title:"Inferno Test Suites"}),hydrateFallbackElement:i.createElement(jD,null)},{path:":test_suite_id",element:i.createElement(oc,{title:"Options"}),loader:function(t){var n=t.params;if(!e||0===e.length)return i.createElement($D,null);var r=n.test_suite_id||"",o=e.find(function(e){return e.id===r});return o?i.createElement(nk,{testSuite:o}):i.createElement($D,null)},hydrateFallbackElement:i.createElement($D,null)},{path:":test_suite_id/:test_session_id",element:i.createElement(LD,null)}],n={basename:"/".concat(Ys||"")},ue({basename:n?.basename,unstable_getContext:n?.unstable_getContext,future:n?.future,history:p({window:n?.window}),hydrationData:n?.hydrationData||Zt(),routes:t,mapRouteProperties:Pt,hydrationRouteProperties:Ot,dataStrategy:n?.dataStrategy,patchRoutesOnNavigation:n?.patchRoutesOnNavigation,window:n?.window}).initialize();var t,n};const _D=function(e){var t=e.id,n=Fr().closeSnackbar;return i.createElement(Kd,{"aria-label":"Close notification",color:"inherit",onClick:function(){return n(t)}},i.createElement(pO,{fontSize:"small"}))};var DD=Vs()(function(e,t){return{container:{marginBottom:t.height,zIndex:"".concat(e.zIndex.snackbar," !important")}}});const zD=function(){var e=rc(function(e){return e.footerHeight}),t=rc(function(e){return e.setFooterHeight}),n=rc(function(e){return e.testSuites}),r=rc(function(e){return e.setTestSuites}),o=rc(function(e){return e.smallWindowThreshold}),a=rc(function(e){return e.setWindowIsSmall}),l=DD({height:"".concat(e,"px")}).classes;(0,i.useEffect)(function(){window.addEventListener("resize",s)}),(0,i.useEffect)(function(){var e;s(),(e=Xs("/test_suites"),fetch(e).then(function(e){return e.json()}).then(function(e){return e||[]}).catch(function(){return[]})).then(function(e){r(e)}).catch(function(){r([])})},[]);var s=function(){window.innerWidth<o?(a(!0),t(36)):(a(!1),t(56))};return i.createElement(zr,{dense:!0,maxSnack:3,anchorOrigin:{vertical:"bottom",horizontal:"right"},action:function(e){return i.createElement(_D,{id:e})},classes:{containerAnchorOriginBottomRight:l.container}},i.createElement(Rt,{router:ND(n)}))},FD=new Map,BD={insert:void 0};let WD;if("object"==typeof document&&(WD=document.querySelector('[name="emotion-insertion-point"]'),!WD)){WD=document.createElement("meta"),WD.setAttribute("name","emotion-insertion-point"),WD.setAttribute("content","");const e=document.querySelector("head");e&&e.prepend(WD)}function HD(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=i.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&FD.has(e))return FD.get(e);const r=function(e,t){if(e||t){class n extends ta{insert(e,t){return BD.insert?BD.insert(e,t):(this.key&&this.key.endsWith("global")&&(this.before=WD),super.insert(e,t))}}const r=((e,t)=>{const n=ti(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n})({key:"css",insertionPoint:e?WD:void 0},n);if(t){const e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}(t,n);return FD.set(e,r),r},[t,n]);return o?(0,Dc.jsx)(wi,{value:o,children:r}):r}const VD=i.createContext(null);function qD(){return i.useContext(VD)}const UD="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",KD=function(e){const{children:t,theme:n}=e,r=qD(),o=i.useMemo(()=>{const e=null===r?{...n}:function(e,t){return"function"==typeof t?t(e):{...e,...t}}(r,n);return null!=e&&(e[UD]=null!==r),e},[n,r]);return(0,Dc.jsx)(VD.Provider,{value:o,children:t})},GD={};function YD(e,t,n,r=!1){return i.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?{...t,[e]:a}:a;return r?()=>i:i}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}const XD=function(e){const{children:t,theme:n,themeId:r}=e,o=Oi(GD),a=qD()||GD,i=YD(r,o,n),l=YD(r,a,n,!0),s="rtl"===(r?i[r]:i).direction,c=function(e){const t=Oi(),n=Nu()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Bu(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){if(t&&t.hasAttribute?.("data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const r=document.createElement("style");r.setAttribute("data-mui-layer-order",n),r.textContent=o,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[o,n]),o?(0,Dc.jsx)(du,{styles:o}):null}(i);return(0,Dc.jsx)(KD,{theme:l,children:(0,Dc.jsx)(Si.Provider,{value:i,children:(0,Dc.jsx)(op,{value:s,children:(0,Dc.jsxs)(Kc,{value:r?i[r].components:i.components,children:[c,t]})})})})};function QD({theme:e,...t}){const n=hs in e?e[hs]:void 0;return(0,Dc.jsx)(XD,{...t,themeId:n?hs:void 0,theme:n||e})}const JD="mode",ZD="color-scheme",ez="data-color-scheme";function tz(){}const nz=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(n){if("undefined"==typeof window)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return tz;const r=t=>{const r=t.newValue;t.key===e&&n(r)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function rz(){}function oz(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function az(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}const iz="mui-color-scheme",lz="light",sz="dark",cz="mui-mode",{CssVarsProvider:uz,useColorScheme:dz,getInitColorSchemeScript:pz}=function(e){const{themeId:t,theme:n={},modeStorageKey:r=JD,colorSchemeStorageKey:o=ZD,disableTransitionOnChange:a=!1,defaultColorScheme:l,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=i.createContext(void 0),d={},p={},f="string"==typeof l?l:l.light,m="string"==typeof l?l:l.dark;return{CssVarsProvider:function(e){const{children:c,theme:f,modeStorageKey:m=r,colorSchemeStorageKey:h=o,disableTransitionOnChange:g=a,storageManager:v,storageWindow:y=("undefined"==typeof window?void 0:window),documentNode:b=("undefined"==typeof document?void 0:document),colorSchemeNode:x=("undefined"==typeof document?void 0:document.documentElement),disableNestedContext:w=!1,disableStyleSheetGeneration:k=!1,defaultMode:S="system",noSsr:E}=e,C=i.useRef(!1),I=qD(),P=i.useContext(u),O=!!P&&!w,T=i.useMemo(()=>f||("function"==typeof n?n():n),[f]),R=T[t],M=R||T,{colorSchemes:A=d,components:L=p,cssVarPrefix:j}=M,$=Object.keys(A).filter(e=>!!A[e]).join(","),N=i.useMemo(()=>$.split(","),[$]),_="string"==typeof l?l:l.light,D="string"==typeof l?l:l.dark,z=A[_]&&A[D]?S:A[M.defaultColorScheme]?.palette?.mode||M.palette?.mode,{mode:F,setMode:B,systemMode:W,lightColorScheme:H,darkColorScheme:V,colorScheme:q,setColorScheme:U}=function(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=JD,colorSchemeStorageKey:l=ZD,storageWindow:s=("undefined"==typeof window?void 0:window),storageManager:c=nz,noSsr:u=!1}=e,d=o.join(","),p=o.length>1,f=i.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),m=i.useMemo(()=>c?.({key:`${l}-light`,storageWindow:s}),[c,l,s]),h=i.useMemo(()=>c?.({key:`${l}-dark`,storageWindow:s}),[c,l,s]),[g,v]=i.useState(()=>{const e=f?.get(t)||t,o=m?.get(n)||n,a=h?.get(r)||r;return{mode:e,systemMode:oz(e),lightColorScheme:o,darkColorScheme:a}}),[y,b]=i.useState(u||!p);i.useEffect(()=>{b(!0)},[]);const x=function(e){return az(e,t=>"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0)}(g),w=i.useCallback(e=>{v(n=>{if(e===n.mode)return n;const r=e??t;return f?.set(r),{...n,mode:r,systemMode:oz(r)}})},[f,t]),k=i.useCallback(e=>{e?"string"==typeof e?e&&!d.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):v(t=>{const n={...t};return az(t,t=>{"light"===t&&(m?.set(e),n.lightColorScheme=e),"dark"===t&&(h?.set(e),n.darkColorScheme=e)}),n}):v(t=>{const o={...t},a=null===e.light?n:e.light,i=null===e.dark?r:e.dark;return a&&(d.includes(a)?(o.lightColorScheme=a,m?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),i&&(d.includes(i)?(o.darkColorScheme=i,h?.set(i)):console.error(`\`${i}\` does not exist in \`theme.colorSchemes\`.`)),o}):v(e=>(m?.set(n),h?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[d,m,h,n,r]),S=i.useCallback(e=>{"system"===g.mode&&v(t=>{const n=e?.matches?"dark":"light";return t.systemMode===n?t:{...t,systemMode:n}})},[g.mode]),E=i.useRef(S);return E.current=S,i.useEffect(()=>{if("function"!=typeof window.matchMedia||!p)return;const e=(...e)=>E.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[p]),i.useEffect(()=>{if(p){const e=f?.subscribe(e=>{e&&!["light","dark","system"].includes(e)||w(e||t)})||rz,n=m?.subscribe(e=>{e&&!d.match(e)||k({light:e})})||rz,r=h?.subscribe(e=>{e&&!d.match(e)||k({dark:e})})||rz;return()=>{e(),n(),r()}}},[k,w,d,t,s,p,f,m,h]),{...g,mode:y?g.mode:void 0,systemMode:y?g.systemMode:void 0,colorScheme:y?x:void 0,setMode:w,setColorScheme:k}}({supportedColorSchemes:N,defaultLightColorScheme:_,defaultDarkColorScheme:D,modeStorageKey:m,colorSchemeStorageKey:h,defaultMode:z,storageManager:v,storageWindow:y,noSsr:E});let K=F,G=q;O&&(K=P.mode,G=P.colorScheme);const Y=i.useMemo(()=>{const e=G||M.defaultColorScheme,t=M.generateThemeVars?.()||M.vars,n={...M,components:L,colorSchemes:A,cssVarPrefix:j,vars:t};if("function"==typeof n.generateSpacing&&(n.spacing=n.generateSpacing()),e){const t=A[e];t&&"object"==typeof t&&Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?n[e]={...n[e],...t[e]}:n[e]=t[e]})}return s?s(n):n},[M,G,L,A,j]),X=M.colorSchemeSelector;Bu(()=>{if(G&&x&&X&&"media"!==X){const e=X;let t=X;if("class"===e&&(t=".%s"),"data"===e&&(t="[data-%s]"),e?.startsWith("data-")&&!e.includes("%s")&&(t=`[${e}="%s"]`),t.startsWith("."))x.classList.remove(...N.map(e=>t.substring(1).replace("%s",e))),x.classList.add(t.substring(1).replace("%s",G));else{const e=t.replace("%s",G).match(/\[([^\]]+)\]/);if(e){const[t,n]=e[1].split("=");n||N.forEach(e=>{x.removeAttribute(t.replace(G,e))}),x.setAttribute(t,n?n.replace(/"|'/g,""):"")}else x.setAttribute(t,G)}}},[G,X,x,N]),i.useEffect(()=>{let e;if(g&&C.current&&b){const t=b.createElement("style");t.appendChild(b.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),b.head.appendChild(t),window.getComputedStyle(b.body),e=setTimeout(()=>{b.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[G,g,b]),i.useEffect(()=>(C.current=!0,()=>{C.current=!1}),[]);const Q=i.useMemo(()=>({allColorSchemes:N,colorScheme:G,darkColorScheme:V,lightColorScheme:H,mode:K,setColorScheme:U,setMode:B,systemMode:W}),[N,G,V,H,K,U,B,W,Y.colorSchemeSelector]);let J=!0;(k||!1===M.cssVariables||O&&I?.cssVarPrefix===j)&&(J=!1);const Z=(0,Dc.jsxs)(i.Fragment,{children:[(0,Dc.jsx)(XD,{themeId:R?t:void 0,theme:Y,children:c}),J&&(0,Dc.jsx)(cu,{styles:Y.generateStyleSheets?.()||[]})]});return O?Z:(0,Dc.jsx)(u.Provider,{value:Q,children:Z})},useColorScheme:()=>i.useContext(u)||c,getInitColorSchemeScript:e=>function(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=JD,colorSchemeStorageKey:a=ZD,attribute:i=ez,colorSchemeNode:l="document.documentElement",nonce:s}=e||{};let c="",u=i;if("class"===i&&(u=".%s"),"data"===i&&(u="[data-%s]"),u.startsWith(".")){const e=u.substring(1);c+=`${l}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));\n ${l}.classList.add('${e}'.replace('%s', colorScheme));`}const d=u.match(/\[([^\]]+)\]/);if(d){const[e,t]=d[1].split("=");t||(c+=`${l}.removeAttribute('${e}'.replace('%s', light));\n ${l}.removeAttribute('${e}'.replace('%s', dark));`),c+=`\n ${l}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else c+=`${l}.setAttribute('${u}', colorScheme);`;return(0,Dc.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?s:"",dangerouslySetInnerHTML:{__html:`(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('${o}') || '${t}';\n const dark = localStorage.getItem('${a}-dark') || '${r}';\n const light = localStorage.getItem('${a}-light') || '${n}';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ${c}\n }\n} catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:o,defaultLightColorScheme:f,defaultDarkColorScheme:m,modeStorageKey:r,...e})}}({themeId:hs,theme:()=>fs({cssVariables:!0}),colorSchemeStorageKey:iz,modeStorageKey:cz,defaultColorScheme:{light:lz,dark:sz},resolveTheme:e=>{const t={...e,typography:Wl(e.palette,e.typography)};return t.unstable_sx=function(e){return Jo({sx:e,theme:this})},t}}),fz=uz;function mz({theme:e,...t}){const n=i.useMemo(()=>{if("function"==typeof e)return e;const t=hs in e?e[hs]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return n?(0,Dc.jsx)(QD,{theme:n,...t}):(0,Dc.jsx)(fz,{theme:e,...t})}const hz=function(e){var t=e.children;return i.createElement(HD,{injectFirst:!0},i.createElement(mz,{theme:Mh},t))};var gz;s.createRoot(document.getElementById("root")).render(i.createElement(i.StrictMode,null,i.createElement(HD,{injectFirst:!0},i.createElement(hz,null,i.createElement(zD,null))))),gz&&gz instanceof Function&&n.e(237).then(n.bind(n,237)).then(function(e){var t=e.onCLS,n=e.onINP,r=e.onFCP,o=e.onLCP,a=e.onTTFB;t(gz),n(gz),r(gz),o(gz),a(gz)})},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(551)},981:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(601),o=n.n(r),a=n(314),i=n.n(a)()(o());i.push([e.id,"@media print {\n * {\n box-shadow: none !important;\n }\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n\nbody,\nhtml {\n height: 100%;\n}\n\nbody {\n background-color: #ffffff;\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n overscroll-behavior-y: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\nblockquote {\n /* Left bar should match theme grayLight */\n border-left: 0.25em solid #F0F2F1;\n /* Text should match theme grayDark */\n color: #616161;\n margin: 0;\n padding-left: 8px;\n}\n\n/* Keyboard-only focus indicator */\nbutton:focus-visible {\n border: 1px solid #707070;\n}\n\n/* Darken button backgrounds on hover on text styled buttons */\nbutton:hover {\n &.MuiButton-text {\n background-color: #cbd5df60;\n }\n}",""]);const l=i},982:(e,t,n)=>{"use strict";e.exports=n(463)},993:(e,t,n)=>{var r=n(546);function o(){var t,n,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.toStringTag||"@@toStringTag";function s(e,o,a,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return r(s,"_invoke",function(e,r,o){var a,i,l,s=0,u=o||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return a=e,i=0,l=t,p.n=n,c}};function f(e,r){for(i=e,l=r,n=0;!d&&s&&!o&&n<u.length;n++){var o,a=u[n],f=p.p,m=a[2];e>3?(o=m===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=f&&((o=e<2&&f<a[1])?(i=0,p.v=r,p.n=a[1]):f<m&&(o=e<3||a[0]>r||r>m)&&(a[4]=e,a[5]=r,p.n=m,i=0))}if(o||e>1)return c;throw d=!0,r}return function(o,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),i=u,l=m;(n=i<2?t:l)||!d;){a||(i?i<3?(i>1&&(p.n=-1),f(i,l)):p.n=l:p.v=l);try{if(s=2,a){if(i||(o="next"),n=a[o]){if(!(n=n.call(a,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,i<2&&(i=0)}else 1===i&&(n=a.return)&&n.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((n=(d=p.n<0)?l:e.call(r,p))!==c)break}catch(e){a=t,i=1,l=e}finally{s=1}}return{value:n,done:d}}}(e,a,i),!0),s}var c={};function u(){}function d(){}function p(){}n=Object.getPrototypeOf;var f=[][i]?n(n([][i]())):(r(n={},i,function(){return this}),n),m=p.prototype=u.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,r(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e}return d.prototype=p,r(m,"constructor",p),r(p,"constructor",d),d.displayName="GeneratorFunction",r(p,l,"GeneratorFunction"),r(m),r(m,l,"Generator"),r(m,i,function(){return this}),r(m,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:s,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}},a={};function i(e){var t=a[e];if(void 0!==t){if(void 0!==t.error)throw t.error;return t.exports}var n=a[e]={id:e,exports:{}};try{var r={id:e,module:n,factory:o[e],require:i};i.i.forEach(function(e){e(r)}),n=r.module,r.factory.call(n.exports,n,n.exports,r.require)}catch(e){throw n.error=e,e}return n.exports}i.m=o,i.c=a,i.i=[],i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>a[e]=()=>n[e]);return a.default=()=>n,i.d(o,a),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((t,n)=>(i.f[n](e,t),t),[])),i.u=e=>792===e?"bundle.js":e+".bundle.js",i.hu=e=>e+"."+i.h()+".hot-update.js",i.hmrF=()=>"main."+i.h()+".hot-update.json",i.h=()=>"0e7f280623a36aae6c2f",i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="inferno-web-app:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var l,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.setAttribute("data-webpack",r+o),l.src=e),n[e]=[t];var p=(t,r)=>{l.onerror=l.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach(e=>e(r)),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e,t,n,r={},o=i.c,a=[],l=[],s="idle",c=0,u=[];function d(e){s=e;for(var t=[],n=0;n<l.length;n++)t[n]=l[n].call(null,e);return Promise.all(t).then(function(){})}function p(){0===--c&&d("ready").then(function(){if(0===c){var e=u;u=[];for(var t=0;t<e.length;t++)e[t]()}})}function f(e){if("idle"!==s)throw new Error("check() is only allowed in idle status");return d("check").then(i.hmrM).then(function(n){return n?d("prepare").then(function(){var r=[];return t=[],Promise.all(Object.keys(i.hmrC).reduce(function(e,o){return i.hmrC[o](n.c,n.r,n.m,e,t,r),e},[])).then(function(){return t=function(){return e?h(e):d("ready").then(function(){return r})},0===c?t():new Promise(function(e){u.push(function(){e(t())})});var t})}):d(g()?"ready":"idle").then(function(){return null})})}function m(e){return"ready"!==s?Promise.resolve().then(function(){throw new Error("apply() is only allowed in ready status (state: "+s+")")}):h(e)}function h(e){e=e||{},g();var r=t.map(function(t){return t(e)});t=void 0;var o=r.map(function(e){return e.error}).filter(Boolean);if(o.length>0)return d("abort").then(function(){throw o[0]});var a=d("dispose");r.forEach(function(e){e.dispose&&e.dispose()});var i,l=d("apply"),s=function(e){i||(i=e)},c=[];return r.forEach(function(e){if(e.apply){var t=e.apply(s);if(t)for(var n=0;n<t.length;n++)c.push(t[n])}}),Promise.all([a,l]).then(function(){return i?d("fail").then(function(){throw i}):n?h(e).then(function(e){return c.forEach(function(t){e.indexOf(t)<0&&e.push(t)}),e}):d("idle").then(function(){return c})})}function g(){if(n)return t||(t=[]),Object.keys(i.hmrI).forEach(function(e){n.forEach(function(n){i.hmrI[e](n,t)})}),n=void 0,!0}i.hmrD=r,i.i.push(function(u){var h,g,v,y,b=u.module,x=function(t,n){var r=o[n];if(!r)return t;var i=function(i){if(r.hot.active){if(o[i]){var l=o[i].parents;-1===l.indexOf(n)&&l.push(n)}else a=[n],e=i;-1===r.children.indexOf(i)&&r.children.push(i)}else console.warn("[HMR] unexpected require("+i+") from disposed module "+n),a=[];return t(i)},l=function(e){return{configurable:!0,enumerable:!0,get:function(){return t[e]},set:function(n){t[e]=n}}};for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&"e"!==u&&Object.defineProperty(i,u,l(u));return i.e=function(e,n){return function(e){switch(s){case"ready":d("prepare");case"prepare":return c++,e.then(p,p),e;default:return e}}(t.e(e,n))},i}(u.require,u.id);b.hot=(h=u.id,g=b,y={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:v=e!==h,_requireSelf:function(){a=g.parents.slice(),e=v?void 0:h,i(h)},active:!0,accept:function(e,t,n){if(void 0===e)y._selfAccepted=!0;else if("function"==typeof e)y._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var r=0;r<e.length;r++)y._acceptedDependencies[e[r]]=t||function(){},y._acceptedErrorHandlers[e[r]]=n;else y._acceptedDependencies[e]=t||function(){},y._acceptedErrorHandlers[e]=n},decline:function(e){if(void 0===e)y._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)y._declinedDependencies[e[t]]=!0;else y._declinedDependencies[e]=!0},dispose:function(e){y._disposeHandlers.push(e)},addDisposeHandler:function(e){y._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=y._disposeHandlers.indexOf(e);t>=0&&y._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,s){case"idle":t=[],Object.keys(i.hmrI).forEach(function(e){i.hmrI[e](h,t)}),d("ready");break;case"ready":Object.keys(i.hmrI).forEach(function(e){i.hmrI[e](h,t)});break;case"prepare":case"check":case"dispose":case"apply":(n=n||[]).push(h)}},check:f,apply:m,status:function(e){if(!e)return s;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var t=l.indexOf(e);t>=0&&l.splice(t,1)},data:r[h]},e=void 0,y),b.parents=a,b.children=[],a=[],u.require=x}),i.hmrC={},i.hmrI={}})(),i.p="/public/",(()=>{var e,t=i.hmrS_jsonp=i.hmrS_jsonp||{792:0};i.f.j=(e,n)=>{var r=i.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((n,o)=>r=t[e]=[n,o]);n.push(r[2]=o);var a=i.p+i.u(e),l=new Error;i.l(a,n=>{if(i.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",l.name="ChunkLoadError",l.type=o,l.request=a,r[1](l)}},"chunk-"+e,e)}};var n,r,o,a,l={};function s(t,n){return e=n,new Promise((e,n)=>{l[t]=e;var r=i.p+i.hu(t),o=new Error;i.l(r,e=>{if(l[t]){l[t]=void 0;var r=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;o.message="Loading hot update chunk "+t+" failed.\n("+r+": "+a+")",o.name="ChunkLoadError",o.type=r,o.request=a,n(o)}})})}function c(e){function l(e){for(var t=[e],n={},r=t.map(function(e){return{chain:[e],id:e}});r.length>0;){var o=r.pop(),a=o.id,l=o.chain,c=i.c[a];if(c&&(!c.hot._selfAccepted||c.hot._selfInvalidated)){if(c.hot._selfDeclined)return{type:"self-declined",chain:l,moduleId:a};if(c.hot._main)return{type:"unaccepted",chain:l,moduleId:a};for(var u=0;u<c.parents.length;u++){var d=c.parents[u],p=i.c[d];if(p){if(p.hot._declinedDependencies[a])return{type:"declined",chain:l.concat([d]),moduleId:a,parentId:d};-1===t.indexOf(d)&&(p.hot._acceptedDependencies[a]?(n[d]||(n[d]=[]),s(n[d],[a])):(delete n[d],t.push(d),r.push({chain:l.concat([d]),id:d})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];-1===e.indexOf(r)&&e.push(r)}}i.f&&delete i.f.jsonpHmr,n=void 0;var c={},u=[],d={},p=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var f in r)if(i.o(r,f)){var m=r[f],h=m?l(f):{type:"disposed",moduleId:f},g=!1,v=!1,y=!1,b="";switch(h.chain&&(b="\nUpdate propagation: "+h.chain.join(" -> ")),h.type){case"self-declined":e.onDeclined&&e.onDeclined(h),e.ignoreDeclined||(g=new Error("Aborted because of self decline: "+h.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(h),e.ignoreDeclined||(g=new Error("Aborted because of declined dependency: "+h.moduleId+" in "+h.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(h),e.ignoreUnaccepted||(g=new Error("Aborted because "+f+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(h),v=!0;break;case"disposed":e.onDisposed&&e.onDisposed(h),y=!0;break;default:throw new Error("Unexception type "+h.type)}if(g)return{error:g};if(v)for(f in d[f]=m,s(u,h.outdatedModules),h.outdatedDependencies)i.o(h.outdatedDependencies,f)&&(c[f]||(c[f]=[]),s(c[f],h.outdatedDependencies[f]));y&&(s(u,[h.moduleId]),d[f]=p)}r=void 0;for(var x,w=[],k=0;k<u.length;k++){var S=u[k],E=i.c[S];E&&(E.hot._selfAccepted||E.hot._main)&&d[S]!==p&&!E.hot._selfInvalidated&&w.push({module:S,require:E.hot._requireSelf,errorHandler:E.hot._selfAccepted})}return{dispose:function(){var e;o.forEach(function(e){delete t[e]}),o=void 0;for(var n,r=u.slice();r.length>0;){var a=r.pop(),l=i.c[a];if(l){var s={},d=l.hot._disposeHandlers;for(k=0;k<d.length;k++)d[k].call(null,s);for(i.hmrD[a]=s,l.hot.active=!1,delete i.c[a],delete c[a],k=0;k<l.children.length;k++){var p=i.c[l.children[k]];p&&(e=p.parents.indexOf(a))>=0&&p.parents.splice(e,1)}}}for(var f in c)if(i.o(c,f)&&(l=i.c[f]))for(x=c[f],k=0;k<x.length;k++)n=x[k],(e=l.children.indexOf(n))>=0&&l.children.splice(e,1)},apply:function(t){for(var n in d)i.o(d,n)&&(i.m[n]=d[n]);for(var r=0;r<a.length;r++)a[r](i);for(var o in c)if(i.o(c,o)){var l=i.c[o];if(l){x=c[o];for(var s=[],p=[],f=[],m=0;m<x.length;m++){var h=x[m],g=l.hot._acceptedDependencies[h],v=l.hot._acceptedErrorHandlers[h];if(g){if(-1!==s.indexOf(g))continue;s.push(g),p.push(v),f.push(h)}}for(var y=0;y<s.length;y++)try{s[y].call(null,x)}catch(n){if("function"==typeof p[y])try{p[y](n,{moduleId:o,dependencyId:f[y]})}catch(r){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:o,dependencyId:f[y],error:r,originalError:n}),e.ignoreErrored||(t(r),t(n))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:o,dependencyId:f[y],error:n}),e.ignoreErrored||t(n)}}}for(var b=0;b<w.length;b++){var k=w[b],S=k.module;try{k.require(S)}catch(n){if("function"==typeof k.errorHandler)try{k.errorHandler(n,{moduleId:S,module:i.c[S]})}catch(r){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:S,error:r,originalError:n}),e.ignoreErrored||(t(r),t(n))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:S,error:n}),e.ignoreErrored||t(n)}}return u}}}self.webpackHotUpdateinferno_web_app=(t,n,o)=>{for(var s in n)i.o(n,s)&&(r[s]=n[s],e&&e.push(s));o&&a.push(o),l[t]&&(l[t](),l[t]=void 0)},i.hmrI.jsonp=function(e,t){r||(r={},a=[],o=[],t.push(c)),i.o(r,e)||(r[e]=i.m[e])},i.hmrC.jsonp=function(e,l,u,d,p,f){p.push(c),n={},o=l,r=u.reduce(function(e,t){return e[t]=!1,e},{}),a=[],e.forEach(function(e){i.o(t,e)&&void 0!==t[e]?(d.push(s(e,f)),n[e]=!0):n[e]=!1}),i.f&&(i.f.jsonpHmr=function(e,t){n&&i.o(n,e)&&!n[e]&&(t.push(s(e)),n[e]=!0)})},i.hmrM=()=>{if("undefined"==typeof fetch)throw new Error("No browser support: need fetch API");return fetch(i.p+i.hmrF()).then(e=>{if(404!==e.status){if(!e.ok)throw new Error("Failed to fetch update manifest "+e.statusText);return e.json()}})};var u=(e,n)=>{var r,o,[a,l,s]=n,c=0;if(a.some(e=>0!==t[e])){for(r in l)i.o(l,r)&&(i.m[r]=l[r]);s&&s(i)}for(e&&e(n);c<a.length;c++)o=a[c],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0},d=self.webpackChunkinferno_web_app=self.webpackChunkinferno_web_app||[];d.forEach(u.bind(null,0)),d.push=u.bind(null,d.push.bind(d))})(),i.nc=void 0,i(956)})();