locust 2.31.8.dev12__py3-none-any.whl → 2.31.8.dev14__py3-none-any.whl

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.
@@ -139,7 +139,7 @@ ${j.current.stack}
139
139
  }
140
140
  `),vi.rippleVisible,mre,IT,({theme:e})=>e.transitions.easing.easeInOut,vi.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,vi.child,vi.childLeaving,yre,IT,({theme:e})=>e.transitions.easing.easeInOut,vi.childPulsate,xre,({theme:e})=>e.transitions.easing.easeInOut),_re=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=ge(n,vre),[l,u]=O.useState([]),c=O.useRef(0),f=O.useRef(null);O.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=O.useRef(!1),h=O.useRef(0),p=O.useRef(null),v=O.useRef(null);O.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const g=O.useCallback(S=>{const{pulsate:_,rippleX:b,rippleY:w,rippleSize:C,cb:T}=S;u(A=>[...A,P.jsx(bre,{classes:{ripple:ye(a.ripple,vi.ripple),rippleVisible:ye(a.rippleVisible,vi.rippleVisible),ripplePulsate:ye(a.ripplePulsate,vi.ripplePulsate),child:ye(a.child,vi.child),childLeaving:ye(a.childLeaving,vi.childLeaving),childPulsate:ye(a.childPulsate,vi.childPulsate)},timeout:IT,pulsate:_,rippleX:b,rippleY:w,rippleSize:C},c.current)]),c.current+=1,f.current=T},[a]),m=O.useCallback((S={},_={},b=()=>{})=>{const{pulsate:w=!1,center:C=i||_.pulsate,fakeElement:T=!1}=_;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const A=T?null:v.current,M=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,I,R;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)k=Math.round(M.width/2),I=Math.round(M.height/2);else{const{clientX:L,clientY:N}=S.touches&&S.touches.length>0?S.touches[0]:S;k=Math.round(L-M.left),I=Math.round(N-M.top)}if(C)R=Math.sqrt((2*M.width**2+M.height**2)/3),R%2===0&&(R+=1);else{const L=Math.max(Math.abs((A?A.clientWidth:0)-k),k)*2+2,N=Math.max(Math.abs((A?A.clientHeight:0)-I),I)*2+2;R=Math.sqrt(L**2+N**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:k,rippleY:I,rippleSize:R,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},gre)):g({pulsate:w,rippleX:k,rippleY:I,rippleSize:R,cb:b})},[i,g]),y=O.useCallback(()=>{m({},{pulsate:!0})},[m]),x=O.useCallback((S,_)=>{if(clearTimeout(h.current),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.current=setTimeout(()=>{x(S,_)});return}p.current=null,u(b=>b.length>0?b.slice(1):b),f.current=_},[]);return O.useImperativeHandle(r,()=>({pulsate:y,start:m,stop:x}),[y,m,x]),P.jsx(Sre,B({className:ye(vi.root,a.root,o),ref:v},s,{children:P.jsx(dk,{component:null,exit:!0,children:l})}))});function wre(e){return ze("MuiButtonBase",e)}const Cre=Fe("MuiButtonBase",["root","disabled","focusVisible"]),Tre=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Are=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Be({root:["root",t&&"disabled",r&&"focusVisible"]},wre,i);return r&&n&&(o.root+=` ${n}`),o},Mre=le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Cre.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Yu=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:_,onMouseDown:b,onMouseLeave:w,onMouseUp:C,onTouchEnd:T,onTouchMove:A,onTouchStart:M,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:R,type:L}=n,N=ge(n,Tre),$=O.useRef(null),z=O.useRef(null),V=sr(z,R),{isFocusVisibleRef:E,onFocus:G,onBlur:W,ref:F}=vx(),[Y,J]=O.useState(!1);u&&Y&&J(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{J(!0),$.current.focus()}}),[]);const[j,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const Q=j&&!c&&!u;O.useEffect(()=>{Y&&d&&!c&&j&&z.current.pulsate()},[c,d,Y,j]);function te(he,pt,Qt=f){return Ji(_e=>(pt&&pt(_e),!Qt&&z.current&&z.current[he](_e),!0))}const ae=te("start",b),K=te("stop",g),ne=te("stop",m),me=te("stop",C),pe=te("stop",he=>{Y&&he.preventDefault(),w&&w(he)}),Me=te("start",M),je=te("stop",T),Ue=te("stop",A),rt=te("stop",he=>{W(he),E.current===!1&&J(!1),p&&p(he)},!1),ot=Ji(he=>{$.current||($.current=he.currentTarget),G(he),E.current===!0&&(J(!0),x&&x(he)),y&&y(he)}),st=()=>{const he=$.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Xe=O.useRef(!1),Vt=Ji(he=>{d&&!Xe.current&&Y&&z.current&&he.key===" "&&(Xe.current=!0,z.current.stop(he,()=>{z.current.start(he)})),he.target===he.currentTarget&&st()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&st()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),Tt=Ji(he=>{d&&he.key===" "&&z.current&&Y&&!he.defaultPrevented&&(Xe.current=!1,z.current.stop(he,()=>{z.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&st()&&he.key===" "&&!he.defaultPrevented&&v(he)});let lt=l;lt==="button"&&(N.href||N.to)&&(lt=h);const X={};lt==="button"?(X.type=L===void 0?"button":L,X.disabled=u):(!N.href&&!N.to&&(X.role="button"),u&&(X["aria-disabled"]=u));const ie=sr(r,F,$),Pe=B({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:k,focusVisible:Y}),be=Are(Pe);return P.jsxs(Mre,B({as:lt,className:ye(be.root,s),ownerState:Pe,onBlur:rt,onClick:v,onContextMenu:K,onFocus:ot,onKeyDown:Vt,onKeyUp:Tt,onMouseDown:ae,onMouseLeave:pe,onMouseUp:me,onDragLeave:ne,onTouchEnd:je,onTouchMove:Ue,onTouchStart:Me,ref:ie,tabIndex:u?-1:k,type:L},X,N,{children:[o,Q?P.jsx(_re,B({ref:V,center:a},I)):null]}))});function kre(e){return ze("MuiAccordionSummary",e)}const sf=Fe("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Ire=["children","className","expandIcon","focusVisibleClassName","onClick"],Pre=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Be({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},kre,t)},Dre=le(Yu,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return B({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${sf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${sf.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${sf.expanded}`]:{minHeight:64}})}),Rre=le("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>B({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${sf.expanded}`]:{margin:"20px 0"}})),Lre=le("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${sf.expanded}`]:{transform:"rotate(180deg)"}})),vk=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=ge(n,Ire),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(j6),p=m=>{h&&h(m),l&&l(m)},v=B({},n,{expanded:d,disabled:c,disableGutters:f}),g=Pre(v);return P.jsxs(Dre,B({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:ye(g.root,a),focusVisibleClassName:ye(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[P.jsx(Rre,{className:g.content,ownerState:v,children:i}),o&&P.jsx(Lre,{className:g.expandIconWrapper,ownerState:v,children:o})]}))});function Ere(e){return ze("MuiAlert",e)}const TL=Fe("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Ore(e){return ze("MuiIconButton",e)}const Nre=Fe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),zre=["edge","children","className","color","disabled","disableFocusRipple","size"],Bre=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${xe(n)}`,i&&`edge${xe(i)}`,`size${xe(a)}`]};return Be(o,Ore,t)},Fre=le(Yu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xe(r.color)}`],r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({theme:e,ownerState:t})=>B({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Xt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return B({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&B({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":B({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xt(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Nre.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Jv=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=ge(n,zre),d=B({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Bre(d);return P.jsx(Fre,B({className:ye(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),$re=Oi(P.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"),Vre=Oi(P.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Gre=Oi(P.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"),Hre=Oi(P.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"),Wre=Oi(P.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"),jre=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Ure=e=>{const{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`${t}${xe(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Be(a,Ere,i)},Yre=le(nl,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?nv:iv,n=e.palette.mode==="light"?iv:nv,i=t.color||t.severity;return B({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${TL.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${TL.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&B({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}))}),Xre=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),qre=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),AL=le("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),ML={success:P.jsx($re,{fontSize:"inherit"}),warning:P.jsx(Vre,{fontSize:"inherit"}),error:P.jsx(Gre,{fontSize:"inherit"}),info:P.jsx(Hre,{fontSize:"inherit"})},Zre=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=$e({props:t,name:"MuiAlert"}),{action:c,children:f,className:d,closeText:h="Close",color:p,components:v={},componentsProps:g={},icon:m,iconMapping:y=ML,onClose:x,role:S="alert",severity:_="success",slotProps:b={},slots:w={},variant:C="standard"}=u,T=ge(u,jre),A=B({},u,{color:p,severity:_,variant:C}),M=Ure(A),k=(n=(i=w.closeButton)!=null?i:v.CloseButton)!=null?n:Jv,I=(a=(o=w.closeIcon)!=null?o:v.CloseIcon)!=null?a:Wre,R=(s=b.closeButton)!=null?s:g.closeButton,L=(l=b.closeIcon)!=null?l:g.closeIcon;return P.jsxs(Yre,B({role:S,elevation:0,ownerState:A,className:ye(M.root,d),ref:r},T,{children:[m!==!1?P.jsx(Xre,{ownerState:A,className:M.icon,children:m||y[_]||ML[_]}):null,P.jsx(qre,{ownerState:A,className:M.message,children:f}),c!=null?P.jsx(AL,{ownerState:A,className:M.action,children:c}):null,c==null&&x?P.jsx(AL,{ownerState:A,className:M.action,children:P.jsx(k,B({size:"small","aria-label":h,title:h,color:"inherit",onClick:x},R,{children:P.jsx(I,B({fontSize:"small"},L))}))}):null]}))});function Kre(e){return ze("MuiTypography",e)}Fe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Qre=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Jre=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${xe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Be(s,Kre,o)},ene=le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>B({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),kL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},tne={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},rne=e=>tne[e]||e,dt=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTypography"}),i=rne(n.color),a=sk(B({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=kL}=a,p=ge(a,Qre),v=B({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),g=l||(f?"p":h[d]||kL[d])||"span",m=Jre(v);return P.jsx(ene,B({as:g,ref:r,ownerState:v,className:ye(m.root,s)},p))});function nne(e){return ze("MuiAppBar",e)}Fe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const ine=["className","color","enableColorOnDark","position"],ane=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${xe(t)}`,`position${xe(r)}`]};return Be(i,nne,n)},Qg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,one=le(nl,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return B({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&B({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&B({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&B({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Qg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Qg(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Qg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Qg(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),sne=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=ge(n,ine),u=B({},n,{color:a,position:s,enableColorOnDark:o}),c=ane(u);return P.jsx(one,B({square:!0,component:"header",ownerState:u,elevation:4,className:ye(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))});function Gf(e){return typeof e=="string"}function Rh(e,t,r){return e===void 0||Gf(e)?t:B({},t,{ownerState:B({},t.ownerState,r)})}const lne={disableDefaultClasses:!1},une=O.createContext(lne);function cne(e){const{disableDefaultClasses:t}=O.useContext(une);return r=>t?"":e(r)}function U6(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function fne(e,t,r){return typeof e=="function"?e(t,r):e}function IL(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function dne(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=ye(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=B({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=B({},r,i,n);return h.length>0&&(v.className=h),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const o=U6(B({},i,n)),s=IL(n),l=IL(i),u=t(o),c=ye(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=B({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=B({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const hne=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=ge(e,hne),s=a?{}:fne(n,i),{props:l,internalRef:u}=dne(B({},o,{externalSlotProps:s})),c=sr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Rh(r,B({},l,{ref:c}),i)}const pne=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vne(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function gne(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function mne(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gne(e))}function yne(e){const t=[],r=[];return Array.from(e.querySelectorAll(pne)).forEach((n,i)=>{const a=vne(n);a===-1||!mne(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function xne(){return!0}function Sne(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=yne,isEnabled:o=xne,open:s}=e,l=O.useRef(!1),u=O.useRef(null),c=O.useRef(null),f=O.useRef(null),d=O.useRef(null),h=O.useRef(!1),p=O.useRef(null),v=sr(t.ref,p),g=O.useRef(null);O.useEffect(()=>{!s||!p.current||(h.current=!r)},[r,s]),O.useEffect(()=>{if(!s||!p.current)return;const x=Nr(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),O.useEffect(()=>{if(!s||!p.current)return;const x=Nr(p.current),S=w=>{g.current=w,!(n||!o()||w.key!=="Tab")&&x.activeElement===p.current&&w.shiftKey&&(l.current=!0,c.current&&c.current.focus())},_=()=>{const w=p.current;if(w===null)return;if(!x.hasFocus()||!o()||l.current){l.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(C=a(p.current)),C.length>0){var T,A;const M=!!((T=g.current)!=null&&T.shiftKey&&((A=g.current)==null?void 0:A.key)==="Tab"),k=C[0],I=C[C.length-1];typeof k!="string"&&typeof I!="string"&&(M?I.focus():k.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",S,!0);const b=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(b),x.removeEventListener("focusin",_),x.removeEventListener("keydown",S,!0)}},[r,n,i,o,s,a]);const m=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,d.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return P.jsxs(O.Fragment,{children:[P.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),P.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}var Ln="top",Di="bottom",Ri="right",En="left",gk="auto",eg=[Ln,Di,Ri,En],Hf="start",av="end",bne="clippingParents",Y6="viewport",Wd="popper",_ne="reference",PL=eg.reduce(function(e,t){return e.concat([t+"-"+Hf,t+"-"+av])},[]),X6=[].concat(eg,[gk]).reduce(function(e,t){return e.concat([t,t+"-"+Hf,t+"-"+av])},[]),wne="beforeRead",Cne="read",Tne="afterRead",Ane="beforeMain",Mne="main",kne="afterMain",Ine="beforeWrite",Pne="write",Dne="afterWrite",Rne=[wne,Cne,Tne,Ane,Mne,kne,Ine,Pne,Dne];function Ka(e){return e?(e.nodeName||"").toLowerCase():null}function ri(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nu(e){var t=ri(e).Element;return e instanceof t||e instanceof Element}function Mi(e){var t=ri(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mk(e){if(typeof ShadowRoot>"u")return!1;var t=ri(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Lne(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!Mi(a)||!Ka(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function Ene(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!Mi(i)||!Ka(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const One={name:"applyStyles",enabled:!0,phase:"write",fn:Lne,effect:Ene,requires:["computeStyles"]};function Wa(e){return e.split("-")[0]}var vu=Math.max,D0=Math.min,Wf=Math.round;function PT(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function q6(){return!/^((?!chrome|android).)*safari/i.test(PT())}function jf(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Mi(e)&&(i=e.offsetWidth>0&&Wf(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Wf(n.height)/e.offsetHeight||1);var o=Nu(e)?ri(e):window,s=o.visualViewport,l=!q6()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/i,c=(n.top+(l&&s?s.offsetTop:0))/a,f=n.width/i,d=n.height/a;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function yk(e){var t=jf(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Z6(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&mk(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Eo(e){return ri(e).getComputedStyle(e)}function Nne(e){return["table","td","th"].indexOf(Ka(e))>=0}function il(e){return((Nu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vx(e){return Ka(e)==="html"?e:e.assignedSlot||e.parentNode||(mk(e)?e.host:null)||il(e)}function DL(e){return!Mi(e)||Eo(e).position==="fixed"?null:e.offsetParent}function zne(e){var t=/firefox/i.test(PT()),r=/Trident/i.test(PT());if(r&&Mi(e)){var n=Eo(e);if(n.position==="fixed")return null}var i=Vx(e);for(mk(i)&&(i=i.host);Mi(i)&&["html","body"].indexOf(Ka(i))<0;){var a=Eo(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function tg(e){for(var t=ri(e),r=DL(e);r&&Nne(r)&&Eo(r).position==="static";)r=DL(r);return r&&(Ka(r)==="html"||Ka(r)==="body"&&Eo(r).position==="static")?t:r||zne(e)||t}function xk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sp(e,t,r){return vu(e,D0(t,r))}function Bne(e,t,r){var n=sp(e,t,r);return n>r?r:n}function K6(){return{top:0,right:0,bottom:0,left:0}}function Q6(e){return Object.assign({},K6(),e)}function J6(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Fne=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Q6(typeof t!="number"?t:J6(t,eg))};function $ne(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Wa(r.placement),l=xk(s),u=[En,Ri].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!o)){var f=Fne(i.padding,r),d=yk(a),h=l==="y"?Ln:En,p=l==="y"?Di:Ri,v=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],g=o[l]-r.rects.reference[l],m=tg(a),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-g/2,S=f[h],_=y-d[c]-f[p],b=y/2-d[c]/2+x,w=sp(S,b,_),C=l;r.modifiersData[n]=(t={},t[C]=w,t.centerOffset=w-b,t)}}function Vne(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Z6(t.elements.popper,i)&&(t.elements.arrow=i))}const Gne={name:"arrow",enabled:!0,phase:"main",fn:$ne,effect:Vne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uf(e){return e.split("-")[1]}var Hne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wne(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Wf(r*i)/i||0,y:Wf(n*i)/i||0}}function RL(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,p=o.y,v=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),x=En,S=Ln,_=window;if(u){var b=tg(r),w="clientHeight",C="clientWidth";if(b===ri(r)&&(b=il(r),Eo(b).position!=="static"&&s==="absolute"&&(w="scrollHeight",C="scrollWidth")),b=b,i===Ln||(i===En||i===Ri)&&a===av){S=Di;var T=f&&b===_&&_.visualViewport?_.visualViewport.height:b[w];v-=T-n.height,v*=l?1:-1}if(i===En||(i===Ln||i===Di)&&a===av){x=Ri;var A=f&&b===_&&_.visualViewport?_.visualViewport.width:b[C];h-=A-n.width,h*=l?1:-1}}var M=Object.assign({position:s},u&&Hne),k=c===!0?Wne({x:h,y:v},ri(r)):{x:h,y:v};if(h=k.x,v=k.y,l){var I;return Object.assign({},M,(I={},I[S]=y?"0":"",I[x]=m?"0":"",I.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",I))}return Object.assign({},M,(t={},t[S]=y?v+"px":"",t[x]=m?h+"px":"",t.transform="",t))}function jne(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Wa(t.placement),variation:Uf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,RL(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,RL(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Une={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jne,data:{}};var Jg={passive:!0};function Yne(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=ri(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,Jg)}),s&&l.addEventListener("resize",r.update,Jg),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,Jg)}),s&&l.removeEventListener("resize",r.update,Jg)}}const Xne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Yne,data:{}};var qne={left:"right",right:"left",bottom:"top",top:"bottom"};function ky(e){return e.replace(/left|right|bottom|top/g,function(t){return qne[t]})}var Zne={start:"end",end:"start"};function LL(e){return e.replace(/start|end/g,function(t){return Zne[t]})}function Sk(e){var t=ri(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function bk(e){return jf(il(e)).left+Sk(e).scrollLeft}function Kne(e,t){var r=ri(e),n=il(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=q6();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+bk(e),y:l}}function Qne(e){var t,r=il(e),n=Sk(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=vu(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=vu(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+bk(e),l=-n.scrollTop;return Eo(i||r).direction==="rtl"&&(s+=vu(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function _k(e){var t=Eo(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function eG(e){return["html","body","#document"].indexOf(Ka(e))>=0?e.ownerDocument.body:Mi(e)&&_k(e)?e:eG(Vx(e))}function lp(e,t){var r;t===void 0&&(t=[]);var n=eG(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=ri(n),o=i?[a].concat(a.visualViewport||[],_k(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(lp(Vx(o)))}function DT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jne(e,t){var r=jf(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function EL(e,t,r){return t===Y6?DT(Kne(e,r)):Nu(t)?Jne(t,r):DT(Qne(il(e)))}function eie(e){var t=lp(Vx(e)),r=["absolute","fixed"].indexOf(Eo(e).position)>=0,n=r&&Mi(e)?tg(e):e;return Nu(n)?t.filter(function(i){return Nu(i)&&Z6(i,n)&&Ka(i)!=="body"}):[]}function tie(e,t,r,n){var i=t==="clippingParents"?eie(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(l,u){var c=EL(e,u,n);return l.top=vu(c.top,l.top),l.right=D0(c.right,l.right),l.bottom=D0(c.bottom,l.bottom),l.left=vu(c.left,l.left),l},EL(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function tG(e){var t=e.reference,r=e.element,n=e.placement,i=n?Wa(n):null,a=n?Uf(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case Ln:l={x:o,y:t.y-r.height};break;case Di:l={x:o,y:t.y+t.height};break;case Ri:l={x:t.x+t.width,y:s};break;case En:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?xk(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case Hf:l[u]=l[u]-(t[c]/2-r[c]/2);break;case av:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function ov(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,s=r.boundary,l=s===void 0?bne:s,u=r.rootBoundary,c=u===void 0?Y6:u,f=r.elementContext,d=f===void 0?Wd:f,h=r.altBoundary,p=h===void 0?!1:h,v=r.padding,g=v===void 0?0:v,m=Q6(typeof g!="number"?g:J6(g,eg)),y=d===Wd?_ne:Wd,x=e.rects.popper,S=e.elements[p?y:d],_=tie(Nu(S)?S:S.contextElement||il(e.elements.popper),l,c,o),b=jf(e.elements.reference),w=tG({reference:b,element:x,strategy:"absolute",placement:i}),C=DT(Object.assign({},x,w)),T=d===Wd?C:b,A={top:_.top-T.top+m.top,bottom:T.bottom-_.bottom+m.bottom,left:_.left-T.left+m.left,right:T.right-_.right+m.right},M=e.modifiersData.offset;if(d===Wd&&M){var k=M[i];Object.keys(A).forEach(function(I){var R=[Ri,Di].indexOf(I)>=0?1:-1,L=[Ln,Di].indexOf(I)>=0?"y":"x";A[I]+=k[L]*R})}return A}function rie(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?X6:l,c=Uf(n),f=c?s?PL:PL.filter(function(p){return Uf(p)===c}):eg,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=ov(e,{placement:v,boundary:i,rootBoundary:a,padding:o})[Wa(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function nie(e){if(Wa(e)===gk)return[];var t=ky(e);return[LL(e),t,LL(t)]}function iie(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,p=h===void 0?!0:h,v=r.allowedAutoPlacements,g=t.options.placement,m=Wa(g),y=m===g,x=l||(y||!p?[ky(g)]:nie(g)),S=[g].concat(x).reduce(function(Y,J){return Y.concat(Wa(J)===gk?rie(t,{placement:J,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):J)},[]),_=t.rects.reference,b=t.rects.popper,w=new Map,C=!0,T=S[0],A=0;A<S.length;A++){var M=S[A],k=Wa(M),I=Uf(M)===Hf,R=[Ln,Di].indexOf(k)>=0,L=R?"width":"height",N=ov(t,{placement:M,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),$=R?I?Ri:En:I?Di:Ln;_[L]>b[L]&&($=ky($));var z=ky($),V=[];if(a&&V.push(N[k]<=0),s&&V.push(N[$]<=0,N[z]<=0),V.every(function(Y){return Y})){T=M,C=!1;break}w.set(M,V)}if(C)for(var E=p?3:1,G=function(J){var j=S.find(function(ee){var Q=w.get(ee);if(Q)return Q.slice(0,J).every(function(te){return te})});if(j)return T=j,"break"},W=E;W>0;W--){var F=G(W);if(F==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}const aie={name:"flip",enabled:!0,phase:"main",fn:iie,requiresIfExists:["offset"],data:{_skip:!1}};function OL(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function NL(e){return[Ln,Ri,Di,En].some(function(t){return e[t]>=0})}function oie(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ov(t,{elementContext:"reference"}),s=ov(t,{altBoundary:!0}),l=OL(o,n),u=OL(s,i,a),c=NL(l),f=NL(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const sie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oie};function lie(e,t,r){var n=Wa(e),i=[En,Ln].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[En,Ri].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function uie(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=X6.reduce(function(c,f){return c[f]=lie(f,t.rects,a),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}const cie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uie};function fie(e){var t=e.state,r=e.name;t.modifiersData[r]=tG({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const die={name:"popperOffsets",enabled:!0,phase:"read",fn:fie,data:{}};function hie(e){return e==="x"?"y":"x"}function pie(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,p=r.tetherOffset,v=p===void 0?0:p,g=ov(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=Wa(t.placement),y=Uf(t.placement),x=!y,S=xk(m),_=hie(S),b=t.modifiersData.popperOffsets,w=t.rects.reference,C=t.rects.popper,T=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,A=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(b){if(a){var I,R=S==="y"?Ln:En,L=S==="y"?Di:Ri,N=S==="y"?"height":"width",$=b[S],z=$+g[R],V=$-g[L],E=h?-C[N]/2:0,G=y===Hf?w[N]:C[N],W=y===Hf?-C[N]:-w[N],F=t.elements.arrow,Y=h&&F?yk(F):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:K6(),j=J[R],ee=J[L],Q=sp(0,w[N],Y[N]),te=x?w[N]/2-E-Q-j-A.mainAxis:G-Q-j-A.mainAxis,ae=x?-w[N]/2+E+Q+ee+A.mainAxis:W+Q+ee+A.mainAxis,K=t.elements.arrow&&tg(t.elements.arrow),ne=K?S==="y"?K.clientTop||0:K.clientLeft||0:0,me=(I=M==null?void 0:M[S])!=null?I:0,pe=$+te-me-ne,Me=$+ae-me,je=sp(h?D0(z,pe):z,$,h?vu(V,Me):V);b[S]=je,k[S]=je-$}if(s){var Ue,rt=S==="x"?Ln:En,ot=S==="x"?Di:Ri,st=b[_],Xe=_==="y"?"height":"width",Vt=st+g[rt],Tt=st-g[ot],lt=[Ln,En].indexOf(m)!==-1,X=(Ue=M==null?void 0:M[_])!=null?Ue:0,ie=lt?Vt:st-w[Xe]-C[Xe]-X+A.altAxis,Pe=lt?st+w[Xe]+C[Xe]-X-A.altAxis:Tt,be=h&&lt?Bne(ie,st,Pe):sp(h?ie:Vt,st,h?Pe:Tt);b[_]=be,k[_]=be-st}t.modifiersData[n]=k}}const vie={name:"preventOverflow",enabled:!0,phase:"main",fn:pie,requiresIfExists:["offset"]};function gie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mie(e){return e===ri(e)||!Mi(e)?Sk(e):gie(e)}function yie(e){var t=e.getBoundingClientRect(),r=Wf(t.width)/e.offsetWidth||1,n=Wf(t.height)/e.offsetHeight||1;return r!==1||n!==1}function xie(e,t,r){r===void 0&&(r=!1);var n=Mi(t),i=Mi(t)&&yie(t),a=il(t),o=jf(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Ka(t)!=="body"||_k(a))&&(s=mie(t)),Mi(t)?(l=jf(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=bk(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function Sie(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function bie(e){var t=Sie(e);return Rne.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function _ie(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function wie(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var zL={placement:"bottom",modifiers:[],strategy:"absolute"};function BL(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Cie(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?zL:i;return function(s,l,u){u===void 0&&(u=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},zL,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:c,setOptions:function(m){var y=typeof m=="function"?m(c.options):m;v(),c.options=Object.assign({},a,c.options,y),c.scrollParents={reference:Nu(s)?lp(s):s.contextElement?lp(s.contextElement):[],popper:lp(l)};var x=bie(wie([].concat(n,c.options.modifiers)));return c.orderedModifiers=x.filter(function(S){return S.enabled}),p(),h.update()},forceUpdate:function(){if(!d){var m=c.elements,y=m.reference,x=m.popper;if(BL(y,x)){c.rects={reference:xie(y,tg(x),c.options.strategy==="fixed"),popper:yk(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var _=c.orderedModifiers[S],b=_.fn,w=_.options,C=w===void 0?{}:w,T=_.name;typeof b=="function"&&(c=b({state:c,options:C,name:T,instance:h})||c)}}}},update:_ie(function(){return new Promise(function(g){h.forceUpdate(),g(c)})}),destroy:function(){v(),d=!0}};if(!BL(s,l))return h;h.setOptions(u).then(function(g){!d&&u.onFirstUpdate&&u.onFirstUpdate(g)});function p(){c.orderedModifiers.forEach(function(g){var m=g.name,y=g.options,x=y===void 0?{}:y,S=g.effect;if(typeof S=="function"){var _=S({state:c,name:m,instance:h,options:x}),b=function(){};f.push(_||b)}})}function v(){f.forEach(function(g){return g()}),f=[]}return h}}var Tie=[Xne,die,Une,One,cie,aie,vie,Gne,sie],Aie=Cie({defaultModifiers:Tie});function Mie(e){return typeof e=="function"?e():e}const rG=O.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=O.useState(null),l=sr(O.isValidElement(n)?n.ref:null,r);if(ua(()=>{a||s(Mie(i)||document.body)},[i,a]),ua(()=>{if(o&&!a)return M0(r,o),()=>{M0(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return P.jsx(O.Fragment,{children:n})}return P.jsx(O.Fragment,{children:o&&J1.createPortal(n,o)})});function kie(e){return ze("MuiPopper",e)}Fe("MuiPopper",["root"]);const Iie=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Pie=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Die(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function RT(e){return typeof e=="function"?e():e}function Rie(e){return e.nodeType!==void 0}const Lie=()=>Be({root:["root"]},cne(kie)),Eie={},Oie=O.forwardRef(function(t,r){var n;const{anchorEl:i,children:a,direction:o,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:d,slotProps:h={},slots:p={},TransitionProps:v}=t,g=ge(t,Iie),m=O.useRef(null),y=sr(m,r),x=O.useRef(null),S=sr(x,d),_=O.useRef(S);ua(()=>{_.current=S},[S]),O.useImperativeHandle(d,()=>x.current,[]);const b=Die(c,o),[w,C]=O.useState(b),[T,A]=O.useState(RT(i));O.useEffect(()=>{x.current&&x.current.forceUpdate()}),O.useEffect(()=>{i&&A(RT(i))},[i]),ua(()=>{if(!T||!u)return;const L=z=>{C(z.placement)};let N=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];l!=null&&(N=N.concat(l)),f&&f.modifiers!=null&&(N=N.concat(f.modifiers));const $=Aie(T,m.current,B({placement:b},f,{modifiers:N}));return _.current($),()=>{$.destroy(),_.current(null)}},[T,s,l,u,f,b]);const M={placement:w};v!==null&&(M.TransitionProps=v);const k=Lie(),I=(n=p.root)!=null?n:"div",R=fa({elementType:I,externalSlotProps:h.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:k.root});return P.jsx(I,B({},R,{children:typeof a=="function"?a(M):a}))}),Nie=O.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:d=Eie,popperRef:h,style:p,transition:v=!1,slotProps:g={},slots:m={}}=t,y=ge(t,Pie),[x,S]=O.useState(!0),_=()=>{S(!1)},b=()=>{S(!0)};if(!l&&!c&&(!v||x))return null;let w;if(a)w=a;else if(n){const A=RT(n);w=A&&Rie(A)?Nr(A).body:Nr(null).body}const C=!c&&l&&(!v||x)?"none":void 0,T=v?{in:c,onEnter:_,onExited:b}:void 0;return P.jsx(rG,{disablePortal:s,container:w,children:P.jsx(Oie,B({anchorEl:n,direction:o,disablePortal:s,modifiers:u,ref:r,open:v?!x:c,placement:f,popperOptions:d,popperRef:h,slotProps:g,slots:m},y,{style:B({position:"fixed",top:0,left:0,display:C},p),TransitionProps:T,children:i}))})});function zie(e){const t=Nr(e);return t.body===e?Za(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function up(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function FL(e){return parseInt(Za(e).getComputedStyle(e).paddingRight,10)||0}function Bie(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function $L(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!Bie(o);s&&l&&up(o,i)})}function Mb(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Fie(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(zie(n)){const o=c6(Nr(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${FL(n)+o}px`;const s=Nr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${FL(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Nr(n).body;else{const o=n.parentElement,s=Za(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function $ie(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Vie{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&up(t.modalRef,!1);const i=$ie(r);$L(r,t.mount,t.modalRef,i,!0);const a=Mb(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Mb(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=Fie(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Mb(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&up(t.modalRef,r),$L(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&up(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Gie(e){return typeof e=="function"?e():e}function Hie(e){return e?e.props.hasOwnProperty("in"):!1}const Wie=new Vie;function jie(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Wie,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=O.useRef({}),h=O.useRef(null),p=O.useRef(null),v=sr(p,f),[g,m]=O.useState(!c),y=Hie(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>Nr(h.current),_=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),b=()=>{i.mount(_(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=Ji(()=>{const N=Gie(t)||S().body;i.add(_(),N),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),T=Ji(N=>{h.current=N,N&&(c&&C()?b():p.current&&up(p.current,x))}),A=O.useCallback(()=>{i.remove(_(),x)},[x,i]);O.useEffect(()=>()=>{A()},[A]),O.useEffect(()=>{c?w():(!y||!a)&&A()},[c,A,y,a,w]);const M=N=>$=>{var z;(z=N.onKeyDown)==null||z.call(N,$),!($.key!=="Escape"||!C())&&(r||($.stopPropagation(),u&&u($,"escapeKeyDown")))},k=N=>$=>{var z;(z=N.onClick)==null||z.call(N,$),$.target===$.currentTarget&&u&&u($,"backdropClick")};return{getRootProps:(N={})=>{const $=U6(e);delete $.onTransitionEnter,delete $.onTransitionExited;const z=B({},$,N);return B({role:"presentation"},z,{onKeyDown:M(z),ref:v})},getBackdropProps:(N={})=>{const $=N;return B({"aria-hidden":!0},$,{onClick:k($),open:c})},getTransitionProps:()=>{const N=()=>{m(!1),o&&o()},$=()=>{m(!0),s&&s(),a&&A()};return{onEnter:bT(N,l==null?void 0:l.props.onEnter),onExited:bT($,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:T,isTopModal:C,exited:g,hasTransition:y}}const Uie=["onChange","maxRows","minRows","style","value"];function em(e){return parseInt(e,10)||0}const Yie={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function VL(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Xie=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=ge(t,Uie),{current:u}=O.useRef(s!=null),c=O.useRef(null),f=sr(r,c),d=O.useRef(null),h=O.useRef(0),[p,v]=O.useState({outerHeightStyle:0}),g=O.useCallback(()=>{const _=c.current,w=Za(_).getComputedStyle(_);if(w.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=w.width,C.value=_.value||t.placeholder||"x",C.value.slice(-1)===`
141
141
  `&&(C.value+=" ");const T=w.boxSizing,A=em(w.paddingBottom)+em(w.paddingTop),M=em(w.borderBottomWidth)+em(w.borderTopWidth),k=C.scrollHeight;C.value="x";const I=C.scrollHeight;let R=k;a&&(R=Math.max(Number(a)*I,R)),i&&(R=Math.min(Number(i)*I,R)),R=Math.max(R,I);const L=R+(T==="border-box"?A+M:0),N=Math.abs(R-k)<=1;return{outerHeightStyle:L,overflow:N}},[i,a,t.placeholder]),m=(_,b)=>{const{outerHeightStyle:w,overflow:C}=b;return h.current<20&&(w>0&&Math.abs((_.outerHeightStyle||0)-w)>1||_.overflow!==C)?(h.current+=1,{overflow:C,outerHeightStyle:w}):_},y=O.useCallback(()=>{const _=g();VL(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();VL(_)||J1.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=Xv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,T=Za(C);return T.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),T.removeEventListener("resize",b),w&&w.disconnect()}}),ua(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return P.jsxs(O.Fragment,{children:[P.jsx("textarea",B({value:s,onChange:S,ref:f,rows:a,style:B({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:B({},Yie.shadow,o,{paddingTop:0,paddingBottom:0})})]})}),qie=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Zie=le(Nie,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nG=O.forwardRef(function(t,r){var n;const i=ok(),a=$e({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:p,placement:v,popperOptions:g,popperRef:m,transition:y,slots:x,slotProps:S}=a,_=ge(a,qie),b=(n=x==null?void 0:x.root)!=null?n:l==null?void 0:l.Root,w=B({anchorEl:o,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:p,placement:v,popperOptions:g,popperRef:m,transition:y},_);return P.jsx(Zie,B({as:s,direction:i==null?void 0:i.direction,slots:{root:b},slotProps:S??u},w,{ref:r}))});function al({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const wk=O.createContext(void 0);function Wo(){return O.useContext(wk)}function iG(e){return P.jsx(Iee,B({},e,{defaultTheme:Fx,themeId:Lu}))}function GL(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function R0(e,t=!1){return e&&(GL(e.value)&&e.value!==""||t&&GL(e.defaultValue)&&e.defaultValue!=="")}function Kie(e){return e.startAdornment}function Qie(e){return ze("MuiInputBase",e)}const Yf=Fe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Jie=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Gx=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${xe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Hx=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},eae=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,v={root:["root",`color${xe(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${xe(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Be(v,Qie,t)},Wx=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Gx})(({theme:e,ownerState:t})=>B({},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",[`&.${Yf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&B({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),jx=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Hx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=B({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return B({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Yf.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Yf.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),tae=P.jsx(iG,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ck=O.forwardRef(function(t,r){var n;const i=$e({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:v=!1,id:g,inputComponent:m="input",inputProps:y={},inputRef:x,maxRows:S,minRows:_,multiline:b=!1,name:w,onBlur:C,onChange:T,onClick:A,onFocus:M,onKeyDown:k,onKeyUp:I,placeholder:R,readOnly:L,renderSuffix:N,rows:$,slotProps:z={},slots:V={},startAdornment:E,type:G="text",value:W}=i,F=ge(i,Jie),Y=y.value!=null?y.value:W,{current:J}=O.useRef(Y!=null),j=O.useRef(),ee=O.useCallback(be=>{},[]),Q=sr(j,x,y.ref,ee),[te,ae]=O.useState(!1),K=Wo(),ne=al({props:i,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=K?K.focused:te,O.useEffect(()=>{!K&&d&&te&&(ae(!1),C&&C())},[K,d,te,C]);const me=K&&K.onFilled,pe=K&&K.onEmpty,Me=O.useCallback(be=>{R0(be)?me&&me():pe&&pe()},[me,pe]);ua(()=>{J&&Me({value:Y})},[Y,Me,J]);const je=be=>{if(ne.disabled){be.stopPropagation();return}M&&M(be),y.onFocus&&y.onFocus(be),K&&K.onFocus?K.onFocus(be):ae(!0)},Ue=be=>{C&&C(be),y.onBlur&&y.onBlur(be),K&&K.onBlur?K.onBlur(be):ae(!1)},rt=(be,...he)=>{if(!J){const pt=be.target||j.current;if(pt==null)throw new Error(js(1));Me({value:pt.value})}y.onChange&&y.onChange(be,...he),T&&T(be,...he)};O.useEffect(()=>{Me(j.current)},[]);const ot=be=>{j.current&&be.currentTarget===be.target&&j.current.focus(),A&&A(be)};let st=m,Xe=y;b&&st==="input"&&($?Xe=B({type:void 0,minRows:$,maxRows:$},Xe):Xe=B({type:void 0,maxRows:S,minRows:_},Xe),st=Xie);const Vt=be=>{Me(be.animationName==="mui-auto-fill-cancel"?j.current:{value:"x"})};O.useEffect(()=>{K&&K.setAdornedStart(!!E)},[K,E]);const Tt=B({},i,{color:ne.color||"primary",disabled:ne.disabled,endAdornment:p,error:ne.error,focused:ne.focused,formControl:K,fullWidth:v,hiddenLabel:ne.hiddenLabel,multiline:b,size:ne.size,startAdornment:E,type:G}),lt=eae(Tt),X=V.root||u.Root||Wx,ie=z.root||c.root||{},Pe=V.input||u.Input||jx;return Xe=B({},Xe,(n=z.input)!=null?n:c.input),P.jsxs(O.Fragment,{children:[!h&&tae,P.jsxs(X,B({},ie,!Gf(X)&&{ownerState:B({},Tt,ie.ownerState)},{ref:r,onClick:ot},F,{className:ye(lt.root,ie.className,l,L&&"MuiInputBase-readOnly"),children:[E,P.jsx(wk.Provider,{value:null,children:P.jsx(Pe,B({ownerState:Tt,"aria-invalid":ne.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:ne.disabled,id:g,onAnimationStart:Vt,name:w,placeholder:R,readOnly:L,required:ne.required,rows:$,value:Y,onKeyDown:k,onKeyUp:I,type:G},Xe,!Gf(Pe)&&{as:st,ownerState:B({},Tt,Xe.ownerState)},{ref:Q,className:ye(lt.input,Xe.className,L&&"MuiInputBase-readOnly"),onBlur:Ue,onChange:rt,onFocus:je}))}),p,N?N(B({},ne,{startAdornment:E})):null]}))]})});function rae(e){return ze("MuiInput",e)}const jd=B({},Yf,Fe("MuiInput",["root","underline","input"]));function nae(e){return ze("MuiOutlinedInput",e)}const qo=B({},Yf,Fe("MuiOutlinedInput",["root","notchedOutline","input"]));function iae(e){return ze("MuiFilledInput",e)}const ul=B({},Yf,Fe("MuiFilledInput",["root","underline","input"])),aae=Oi(P.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),oae=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sae={entering:{opacity:1},entered:{opacity:1}},lae=O.forwardRef(function(t,r){const n=Uu(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:p,onExiting:v,style:g,timeout:m=i,TransitionComponent:y=pa}=t,x=ge(t,oae),S=O.useRef(null),_=sr(S,s.ref,r),b=R=>L=>{if(R){const N=S.current;L===void 0?R(N):R(N,L)}},w=b(d),C=b((R,L)=>{H6(R);const N=Vf({style:g,timeout:m,easing:l},{mode:"enter"});R.style.webkitTransition=n.transitions.create("opacity",N),R.style.transition=n.transitions.create("opacity",N),c&&c(R,L)}),T=b(f),A=b(v),M=b(R=>{const L=Vf({style:g,timeout:m,easing:l},{mode:"exit"});R.style.webkitTransition=n.transitions.create("opacity",L),R.style.transition=n.transitions.create("opacity",L),h&&h(R)}),k=b(p),I=R=>{a&&a(S.current,R)};return P.jsx(y,B({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:T,onEntering:w,onExit:M,onExited:k,onExiting:A,addEndListener:I,timeout:m},x,{children:(R,L)=>O.cloneElement(s,B({style:B({opacity:0,visibility:R==="exited"&&!u?"hidden":void 0},sae[R],g,s.props.style),ref:_},L))}))});function uae(e){return ze("MuiBackdrop",e)}Fe("MuiBackdrop",["root","invisible"]);const cae=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fae=e=>{const{classes:t,invisible:r}=e;return Be({root:["root",r&&"invisible"]},uae,t)},dae=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>B({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"},e.invisible&&{backgroundColor:"transparent"})),hae=O.forwardRef(function(t,r){var n,i,a;const o=$e({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:v={},TransitionComponent:g=lae,transitionDuration:m}=o,y=ge(o,cae),x=B({},o,{component:u,invisible:d}),S=fae(x),_=(n=p.root)!=null?n:f.root;return P.jsx(g,B({in:h,timeout:m},y,{children:P.jsx(dae,B({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:ye(S.root,l,_==null?void 0:_.className),ownerState:B({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),pae=ck(),Pt=Lee({themeId:Lu,defaultTheme:pae,defaultClassName:"MuiBox-root",generateClassName:UM.generate});function vae(e){return ze("MuiButton",e)}const tm=Fe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),gae=O.createContext({}),mae=O.createContext(void 0),yae=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],xae=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${xe(t)}`,`size${xe(i)}`,`${a}Size${xe(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xe(i)}`],endIcon:["endIcon",`iconSize${xe(i)}`]},l=Be(s,vae,o);return B({},o,l)},aG=e=>B({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Sae=le(Yu,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color)}`],t[`size${xe(r.size)}`],t[`${r.variant}Size${xe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return B({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":B({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Xt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":B({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${tm.focusVisible}`]:B({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${tm.disabled}`]:B({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Xt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${tm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${tm.disabled}`]:{boxShadow:"none"}}),bae=le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>B({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},aG(e))),_ae=le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>B({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},aG(e))),ao=O.forwardRef(function(t,r){const n=O.useContext(gae),i=O.useContext(mae),a=jM(n,t),o=$e({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:v,fullWidth:g=!1,size:m="medium",startIcon:y,type:x,variant:S="text"}=o,_=ge(o,yae),b=B({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=xae(b),C=y&&P.jsx(bae,{className:w.startIcon,ownerState:b,children:y}),T=p&&P.jsx(_ae,{className:w.endIcon,ownerState:b,children:p}),A=i||"";return P.jsxs(Sae,B({ownerState:b,className:ye(n.className,w.root,c,A),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:ye(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,T]}))});function wae(e){return ze("PrivateSwitchBase",e)}Fe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Cae=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Tae=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${xe(i)}`],input:["input"]};return Be(a,wae,t)},Aae=le(Yu)(({ownerState:e})=>B({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Mae=le("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),oG=O.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:p,name:v,onBlur:g,onChange:m,onFocus:y,readOnly:x,required:S=!1,tabIndex:_,type:b,value:w}=t,C=ge(t,Cae),[T,A]=Bf({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),M=Wo(),k=V=>{y&&y(V),M&&M.onFocus&&M.onFocus(V)},I=V=>{g&&g(V),M&&M.onBlur&&M.onBlur(V)},R=V=>{if(V.nativeEvent.defaultPrevented)return;const E=V.target.checked;A(E),m&&m(V,E)};let L=l;M&&typeof L>"u"&&(L=M.disabled);const N=b==="checkbox"||b==="radio",$=B({},t,{checked:T,disabled:L,disableFocusRipple:u,edge:c}),z=Tae($);return P.jsxs(Aae,B({component:"span",className:ye(z.root,o),centerRipple:!0,focusRipple:!u,disabled:L,tabIndex:null,role:void 0,onFocus:k,onBlur:I,ownerState:$,ref:r},C,{children:[P.jsx(Mae,B({autoFocus:n,checked:i,defaultChecked:s,className:z.input,disabled:L,id:N?d:void 0,name:v,onChange:R,readOnly:x,ref:p,required:S,ownerState:$,tabIndex:_,type:b},b==="checkbox"&&w===void 0?{}:{value:w},h)),T?a:f]}))}),kae=Oi(P.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"),Iae=Oi(P.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"),Pae=Oi(P.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 Dae(e){return ze("MuiCheckbox",e)}const kb=Fe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Rae=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Lae=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${xe(n)}`,`size${xe(i)}`]},o=Be(a,Dae,t);return B({},t,o)},Eae=le(oG,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${kb.checked}, &.${kb.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${kb.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Oae=P.jsx(Iae,{}),Nae=P.jsx(kae,{}),zae=P.jsx(Pae,{}),LT=O.forwardRef(function(t,r){var n,i;const a=$e({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Oae,color:s="primary",icon:l=Nae,indeterminate:u=!1,indeterminateIcon:c=zae,inputProps:f,size:d="medium",className:h}=a,p=ge(a,Rae),v=u?c:l,g=u?c:o,m=B({},a,{color:s,indeterminate:u,size:d}),y=Lae(m);return P.jsx(Eae,B({type:"checkbox",inputProps:B({"data-indeterminate":u},f),icon:O.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:d}),checkedIcon:O.cloneElement(g,{fontSize:(i=g.props.fontSize)!=null?i:d}),ownerState:m,ref:r,className:ye(y.root,h)},p,{classes:y}))}),rg=ite({createStyledComponent:le("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>$e({props:e,name:"MuiContainer"})}),Bae=(e,t)=>B({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Fae=e=>B({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),$ae=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=B({html:Bae(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:B({margin:0},Fae(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function sG(e){const t=$e({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return P.jsxs(O.Fragment,{children:[P.jsx(iG,{styles:i=>$ae(i,n)}),r]})}function Vae(e){return ze("MuiModal",e)}Fe("MuiModal",["root","hidden","backdrop"]);const Gae=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Hae=e=>{const{open:t,exited:r,classes:n}=e;return Be({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Vae,n)},Wae=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>B({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),jae=le(hae,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lG=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=$e({name:"MuiModal",props:t}),{BackdropComponent:c=jae,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:v,component:g,components:m={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:_=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:T=!1,keepMounted:A=!1,onBackdropClick:M,open:k,slotProps:I,slots:R}=u,L=ge(u,Gae),N=B({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:T,keepMounted:A}),{getRootProps:$,getBackdropProps:z,getTransitionProps:V,portalRef:E,isTopModal:G,exited:W,hasTransition:F}=jie(B({},N,{rootRef:r})),Y=B({},N,{exited:W}),J=Hae(Y),j={};if(p.props.tabIndex===void 0&&(j.tabIndex="-1"),F){const{onEnter:me,onExited:pe}=V();j.onEnter=me,j.onExited=pe}const ee=(n=(i=R==null?void 0:R.root)!=null?i:m.Root)!=null?n:Wae,Q=(a=(o=R==null?void 0:R.backdrop)!=null?o:m.Backdrop)!=null?a:c,te=(s=I==null?void 0:I.root)!=null?s:y.root,ae=(l=I==null?void 0:I.backdrop)!=null?l:y.backdrop,K=fa({elementType:ee,externalSlotProps:te,externalForwardedProps:L,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:Y,className:ye(d,te==null?void 0:te.className,J==null?void 0:J.root,!Y.open&&Y.exited&&(J==null?void 0:J.hidden))}),ne=fa({elementType:Q,externalSlotProps:ae,additionalProps:f,getSlotProps:me=>z(B({},me,{onClick:pe=>{M&&M(pe),me!=null&&me.onClick&&me.onClick(pe)}})),className:ye(ae==null?void 0:ae.className,f==null?void 0:f.className,J==null?void 0:J.backdrop),ownerState:Y});return!A&&!k&&(!F||W)?null:P.jsx(rG,{ref:E,container:v,disablePortal:b,children:P.jsxs(ee,B({},K,{children:[!T&&c?P.jsx(Q,B({},ne)):null,P.jsx(Sne,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:k,children:O.cloneElement(p,j)})]}))})});function Uae(e){return ze("MuiDivider",e)}Fe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Yae=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Xae=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Be({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},Uae,n)},qae=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>B({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Xt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>B({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>B({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>B({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>B({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Zae=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>B({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Fc=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,p=ge(n,Yae),v=B({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=Xae(v);return P.jsx(qae,B({as:s,className:ye(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?P.jsx(Zae,{className:g.wrapper,ownerState:v,children:a}):null}))});Fc.muiSkipListHighlight=!0;const Kae=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Qae=e=>{const{classes:t,disableUnderline:r}=e,i=Be({root:["root",!r&&"underline"],input:["input"]},iae,t);return B({},t,i)},Jae=le(Wx,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Gx(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return B({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,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:a}},[`&.${ul.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${ul.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,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"},[`&.${ul.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ul.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})`:i}`,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(.${ul.disabled}, .${ul.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ul.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&B({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),eoe=le(jx,{name:"MuiFilledInput",slot:"Input",overridesResolver:Hx})(({theme:e,ownerState:t})=>B({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),Tk=O.forwardRef(function(t,r){var n,i,a,o;const s=$e({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:v="text"}=s,g=ge(s,Kae),m=B({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=Qae(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?Rn(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:Jae,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:eoe;return P.jsx(Ck,B({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});Tk.muiName="Input";function toe(e){return ze("MuiFormControl",e)}Fe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const roe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],noe=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return Be(i,toe,t)},ioe=le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>B({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>B({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),uG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:v="medium",variant:g="outlined"}=n,m=ge(n,roe),y=B({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=noe(y),[S,_]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,R=>{if(!ip(R,["Input","Select"]))return;const L=ip(R,["Select"])?R.props.input:R;L&&Kie(L.props)&&(I=!0)}),I}),[b,w]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,R=>{ip(R,["Input","Select"])&&(R0(R.props,!0)||R0(R.props.inputProps,!0))&&(I=!0)}),I}),[C,T]=O.useState(!1);l&&C&&T(!1);const A=c!==void 0&&!l?c:C;let M;const k=O.useMemo(()=>({adornedStart:S,setAdornedStart:_,color:o,disabled:l,error:u,filled:b,focused:A,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{T(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{T(!0)},registerEffect:M,required:p,variant:g}),[S,o,l,u,b,A,f,d,M,p,v,g]);return P.jsx(wk.Provider,{value:k,children:P.jsx(ioe,B({as:s,ownerState:y,className:ye(x.root,a),ref:r},m,{children:i}))})}),cG=dte({createStyledComponent:le("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$e({props:e,name:"MuiStack"})});function aoe(e){return ze("MuiFormControlLabel",e)}const Lh=Fe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ooe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],soe=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${xe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Be(o,aoe,t)},loe=le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lh.label}`]:t.label},t.root,t[`labelPlacement${xe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>B({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Lh.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Lh.label}`]:{[`&.${Lh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),uoe=le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Lh.error}`]:{color:(e.vars||e).palette.error.main}})),fG=O.forwardRef(function(t,r){var n,i;const a=$e({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:p={}}=a,v=ge(a,ooe),g=Wo(),m=(n=u??l.props.disabled)!=null?n:g==null?void 0:g.disabled,y=h??l.props.required,x={disabled:m,required:y};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof l.props[T]>"u"&&typeof a[T]<"u"&&(x[T]=a[T])});const S=al({props:a,muiFormControl:g,states:["error"]}),_=B({},a,{disabled:m,labelPlacement:d,required:y,error:S.error}),b=soe(_),w=(i=p.typography)!=null?i:s.typography;let C=f;return C!=null&&C.type!==dt&&!c&&(C=P.jsx(dt,B({component:"span"},w,{className:ye(b.label,w==null?void 0:w.className),children:C}))),P.jsxs(loe,B({className:ye(b.root,o),ownerState:_,ref:r},v,{children:[O.cloneElement(l,x),y?P.jsxs(cG,{direction:"row",alignItems:"center",children:[C,P.jsxs(uoe,{ownerState:_,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}):C]}))});function coe(e){return ze("MuiFormGroup",e)}Fe("MuiFormGroup",["root","row","error"]);const foe=["className","row"],doe=e=>{const{classes:t,row:r,error:n}=e;return Be({root:["root",r&&"row",n&&"error"]},coe,t)},hoe=le("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>B({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),dG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=n,o=ge(n,foe),s=Wo(),l=al({props:n,muiFormControl:s,states:["error"]}),u=B({},n,{row:a,error:l.error}),c=doe(u);return P.jsx(hoe,B({className:ye(c.root,i),ownerState:u,ref:r},o))});function poe(e){return ze("MuiFormHelperText",e)}const HL=Fe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var WL;const voe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],goe=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${xe(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Be(u,poe,t)},moe=le("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${xe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${HL.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${HL.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),yoe=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ge(n,voe),l=Wo(),u=al({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=B({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=goe(c);return P.jsx(moe,B({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:i===" "?WL||(WL=P.jsx("span",{className:"notranslate",children:"​"})):i}))});function xoe(e){return ze("MuiFormLabel",e)}const cp=Fe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Soe=["children","className","color","component","disabled","error","filled","focused","required"],boe=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${xe(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Be(l,xoe,t)},_oe=le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>B({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>B({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${cp.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cp.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${cp.error}`]:{color:(e.vars||e).palette.error.main}})),woe=le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${cp.error}`]:{color:(e.vars||e).palette.error.main}})),Coe=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ge(n,Soe),l=Wo(),u=al({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=B({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=boe(c);return P.jsxs(_oe,B({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:[i,u.required&&P.jsxs(woe,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Toe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ET(e){return`scale(${e}, ${e**2})`}const Aoe={entering:{opacity:1,transform:ET(1)},entered:{opacity:1,transform:"none"}},Ib=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),L0=O.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:v="auto",TransitionComponent:g=pa}=t,m=ge(t,Toe),y=O.useRef(),x=O.useRef(),S=Uu(),_=O.useRef(null),b=sr(_,a.ref,r),w=L=>N=>{if(L){const $=_.current;N===void 0?L($):L($,N)}},C=w(c),T=w((L,N)=>{H6(L);const{duration:$,delay:z,easing:V}=Vf({style:p,timeout:v,easing:o},{mode:"enter"});let E;v==="auto"?(E=S.transitions.getAutoHeightDuration(L.clientHeight),x.current=E):E=$,L.style.transition=[S.transitions.create("opacity",{duration:E,delay:z}),S.transitions.create("transform",{duration:Ib?E:E*.666,delay:z,easing:V})].join(","),l&&l(L,N)}),A=w(u),M=w(h),k=w(L=>{const{duration:N,delay:$,easing:z}=Vf({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(L.clientHeight),x.current=V):V=N,L.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:Ib?V:V*.666,delay:Ib?$:$||V*.333,easing:z})].join(","),L.style.opacity=0,L.style.transform=ET(.75),f&&f(L)}),I=w(d),R=L=>{v==="auto"&&(y.current=setTimeout(L,x.current||0)),n&&n(_.current,L)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),P.jsx(g,B({appear:i,in:s,nodeRef:_,onEnter:T,onEntered:A,onEntering:C,onExit:k,onExited:I,onExiting:M,addEndListener:R,timeout:v==="auto"?null:v},m,{children:(L,N)=>O.cloneElement(a,B({style:B({opacity:0,transform:ET(.75),visibility:L==="exited"&&!s?"hidden":void 0},Aoe[L],p,a.props.style),ref:b},N))}))});L0.muiSupportAuto=!0;const Moe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],koe=e=>{const{classes:t,disableUnderline:r}=e,i=Be({root:["root",!r&&"underline"],input:["input"]},rae,t);return B({},t,i)},Ioe=le(Wx,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Gx(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),B({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${jd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jd.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${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(.${jd.disabled}, .${jd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${jd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Poe=le(jx,{name:"MuiInput",slot:"Input",overridesResolver:Hx})({}),Ak=O.forwardRef(function(t,r){var n,i,a,o;const s=$e({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:v={},type:g="text"}=s,m=ge(s,Moe),y=koe(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?Rn(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Ioe,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Poe;return P.jsx(Ck,B({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});Ak.muiName="Input";function Doe(e){return ze("MuiInputLabel",e)}Fe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Roe=["disableAnimation","margin","shrink","variant","className"],Loe=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${xe(n)}`,o],asterisk:[s&&"asterisk"]},u=Be(l,Doe,t);return B({},t,u)},Eoe=le(Coe,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${cp.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>B({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&B({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&B({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&B({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Mk=O.forwardRef(function(t,r){const n=$e({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ge(n,Roe),l=Wo();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=al({props:n,muiFormControl:l,states:["size","variant","required"]}),f=B({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=Loe(f);return P.jsx(Eoe,B({"data-shrink":u,ownerState:f,ref:r,className:ye(d.root,o)},s,{classes:d}))});function Ooe(e){return ze("MuiLink",e)}const Noe=Fe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),hG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zoe=e=>hG[e]||e,Boe=({theme:e,ownerState:t})=>{const r=zoe(t.color),n=$f(e,`palette.${r}`,!1)||t.color,i=$f(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Xt(n,.4)},Foe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$oe=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${xe(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Be(a,Ooe,t)},Voe=le(dt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${xe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>B({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&B({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Boe({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{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"},[`&.${Noe.focusVisible}`]:{outline:"auto"}})),Ur=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=ge(n,Foe),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=vx(),[y,x]=O.useState(!1),S=sr(r,m),_=T=>{v(T),p.current===!1&&x(!1),s&&s(T)},b=T=>{g(T),p.current===!0&&x(!0),l&&l(T)},w=B({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=$oe(w);return P.jsx(Voe,B({color:a,className:ye(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(hG).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),fp=O.createContext({});function Goe(e){return ze("MuiList",e)}Fe("MuiList",["root","padding","dense","subheader"]);const Hoe=["children","className","component","dense","disablePadding","subheader"],Woe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Be({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},Goe,t)},joe=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>B({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),pG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ge(n,Hoe),f=O.useMemo(()=>({dense:s}),[s]),d=B({},n,{component:o,dense:s,disablePadding:l}),h=Woe(d);return P.jsx(fp.Provider,{value:f,children:P.jsxs(joe,B({as:o,className:ye(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})});function Uoe(e){return ze("MuiListItem",e)}const $c=Fe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Yoe=Fe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Xoe(e){return ze("MuiListItemSecondaryAction",e)}Fe("MuiListItemSecondaryAction",["root","disableGutters"]);const qoe=["className"],Zoe=e=>{const{disableGutters:t,classes:r}=e;return Be({root:["root",t&&"disableGutters"]},Xoe,r)},Koe=le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>B({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),vG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ge(n,qoe),o=O.useContext(fp),s=B({},n,{disableGutters:o.disableGutters}),l=Zoe(s);return P.jsx(Koe,B({className:ye(l.root,i),ownerState:s,ref:r},a))});vG.muiName="ListItemSecondaryAction";const Qoe=["className"],Joe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ese=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},tse=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Be({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Uoe,n)},rse=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:ese})(({theme:e,ownerState:t})=>B({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&B({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Yoe.root}`]:{paddingRight:48}},{[`&.${$c.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$c.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$c.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Xt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$c.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${$c.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xt(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})`:Xt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),nse=le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),hc=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:v=!1,disableGutters:g=!1,disablePadding:m=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:S,selected:_=!1,slotProps:b={},slots:w={}}=n,C=ge(n.ContainerProps,Qoe),T=ge(n,Joe),A=O.useContext(fp),M=O.useMemo(()=>({dense:p||A.dense||!1,alignItems:i,disableGutters:g}),[i,A.dense,p,g]),k=O.useRef(null);ua(()=>{a&&k.current&&k.current.focus()},[a]);const I=O.Children.toArray(s),R=I.length&&ip(I[I.length-1],["ListItemSecondaryAction"]),L=B({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:R,selected:_}),N=tse(L),$=sr(k,r),z=w.root||c.Root||rse,V=b.root||f.root||{},E=B({className:ye(N.root,V.className,l),disabled:v},T);let G=u||"li";return o&&(E.component=u||"div",E.focusVisibleClassName=ye($c.focusVisible,x),G=Yu),R?(G=!E.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":E.component==="li"&&(E.component="div")),P.jsx(fp.Provider,{value:M,children:P.jsxs(nse,B({as:d,className:ye(N.container,h),ref:$,ownerState:L},C,{children:[P.jsx(z,B({},V,!Gf(z)&&{as:G,ownerState:B({},L,V.ownerState)},E,{children:I})),I.pop()]}))})):P.jsx(fp.Provider,{value:M,children:P.jsxs(z,B({},V,{as:G,ref:$},!Gf(z)&&{ownerState:B({},L,V.ownerState)},E,{children:[I,S&&P.jsx(vG,{children:S})]}))})}),ise=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Pb(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function jL(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function gG(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Ud(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!gG(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const ase=O.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=ge(t,ise),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ua(()=>{i&&h.current.focus()},[i]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,S)=>{const _=!h.current.style.width;if(x.clientHeight<h.current.clientHeight&&_){const b=`${c6(Nr(x))}px`;h.current.style[S.direction==="rtl"?"paddingLeft":"paddingRight"]=b,h.current.style.width=`calc(100% + ${b})`}return h.current}}),[]);const v=x=>{const S=h.current,_=x.key,b=Nr(S).activeElement;if(_==="ArrowDown")x.preventDefault(),Ud(S,b,u,l,Pb);else if(_==="ArrowUp")x.preventDefault(),Ud(S,b,u,l,jL);else if(_==="Home")x.preventDefault(),Ud(S,null,u,l,Pb);else if(_==="End")x.preventDefault(),Ud(S,null,u,l,jL);else if(_.length===1){const w=p.current,C=_.toLowerCase(),T=performance.now();w.keys.length>0&&(T-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&C!==w.keys[0]&&(w.repeating=!1)),w.lastTime=T,w.keys.push(C);const A=b&&!w.repeating&&gG(b,w);w.previousKeyMatched&&(A||Ud(S,b,!1,l,Pb,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},g=sr(h,r);let m=-1;O.Children.forEach(o,(x,S)=>{if(!O.isValidElement(x)){m===S&&(m+=1,m>=o.length&&(m=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||m===-1)&&(m=S),m===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(m+=1,m>=o.length&&(m=-1))});const y=O.Children.map(o,(x,S)=>{if(S===m){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),O.cloneElement(x,_)}return x});return P.jsx(pG,B({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))});function ose(e){return ze("MuiPopover",e)}Fe("MuiPopover",["root","paper"]);const sse=["onEntering"],lse=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],use=["slotProps"];function UL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function YL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function XL(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Db(e){return typeof e=="function"?e():e}const cse=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"]},ose,t)},fse=le(lG,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mG=le(nl,{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}),yG=O.forwardRef(function(t,r){var n,i,a;const o=$e({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:v=8,marginThreshold:g=16,open:m,PaperProps:y={},slots:x,slotProps:S,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:b=L0,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:T=!1}=o,A=ge(o.TransitionProps,sse),M=ge(o,lse),k=(n=S==null?void 0:S.paper)!=null?n:y,I=O.useRef(),R=sr(I,k.ref),L=B({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:k,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:A}),N=cse(L),$=O.useCallback(()=>{if(f==="anchorPosition")return c;const me=Db(l),Me=(me&&me.nodeType===1?me:Nr(I.current).body).getBoundingClientRect();return{top:Me.top+UL(Me,u.vertical),left:Me.left+YL(Me,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),z=O.useCallback(me=>({vertical:UL(me,_.vertical),horizontal:YL(me,_.horizontal)}),[_.horizontal,_.vertical]),V=O.useCallback(me=>{const pe={width:me.offsetWidth,height:me.offsetHeight},Me=z(pe);if(f==="none")return{top:null,left:null,transformOrigin:XL(Me)};const je=$();let Ue=je.top-Me.vertical,rt=je.left-Me.horizontal;const ot=Ue+pe.height,st=rt+pe.width,Xe=Za(Db(l)),Vt=Xe.innerHeight-g,Tt=Xe.innerWidth-g;if(g!==null&&Ue<g){const lt=Ue-g;Ue-=lt,Me.vertical+=lt}else if(g!==null&&ot>Vt){const lt=ot-Vt;Ue-=lt,Me.vertical+=lt}if(g!==null&&rt<g){const lt=rt-g;rt-=lt,Me.horizontal+=lt}else if(st>Tt){const lt=st-Tt;rt-=lt,Me.horizontal+=lt}return{top:`${Math.round(Ue)}px`,left:`${Math.round(rt)}px`,transformOrigin:XL(Me)}},[l,f,$,z,g]),[E,G]=O.useState(m),W=O.useCallback(()=>{const me=I.current;if(!me)return;const pe=V(me);pe.top!==null&&(me.style.top=pe.top),pe.left!==null&&(me.style.left=pe.left),me.style.transformOrigin=pe.transformOrigin,G(!0)},[V]);O.useEffect(()=>(T&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[l,T,W]);const F=(me,pe)=>{C&&C(me,pe),W()},Y=()=>{G(!1)};O.useEffect(()=>{m&&W()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{W()}}:null,[m,W]),O.useEffect(()=>{if(!m)return;const me=Xv(()=>{W()}),pe=Za(l);return pe.addEventListener("resize",me),()=>{me.clear(),pe.removeEventListener("resize",me)}},[l,m,W]);let J=w;w==="auto"&&!b.muiSupportAuto&&(J=void 0);const j=p||(l?Nr(Db(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:fse,Q=(a=x==null?void 0:x.paper)!=null?a:mG,te=fa({elementType:Q,externalSlotProps:B({},k,{style:E?k.style:B({},k.style,{opacity:0})}),additionalProps:{elevation:v,ref:R},ownerState:L,className:ye(N.paper,k==null?void 0:k.className)}),ae=fa({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:j,open:m},ownerState:L,className:ye(N.root,h)}),{slotProps:K}=ae,ne=ge(ae,use);return P.jsx(ee,B({},ne,!Gf(ee)&&{slotProps:K,disableScrollLock:T},{children:P.jsx(b,B({appear:!0,in:m,onEntering:F,onExited:Y,timeout:J},A,{children:P.jsx(Q,B({},te,{children:d}))}))}))});function dse(e){return ze("MuiMenu",e)}Fe("MuiMenu",["root","paper","list"]);const hse=["onEntering"],pse=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],vse={vertical:"top",horizontal:"right"},gse={vertical:"top",horizontal:"left"},mse=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"],list:["list"]},dse,t)},yse=le(yG,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xse=le(mG,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Sse=le(ase,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),bse=O.forwardRef(function(t,r){var n,i;const a=$e({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:v="auto",TransitionProps:{onEntering:g}={},variant:m="selectedMenu",slots:y={},slotProps:x={}}=a,S=ge(a.TransitionProps,hse),_=ge(a,pse),b=Uu(),w=b.direction==="rtl",C=B({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),T=mse(C),A=o&&!u&&d,M=O.useRef(null),k=(V,E)=>{M.current&&M.current.adjustStyleForScrollbar(V,b),g&&g(V,E)},I=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let R=-1;O.Children.map(s,(V,E)=>{O.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||R===-1)&&(R=E))});const L=(n=y.paper)!=null?n:xse,N=(i=x.paper)!=null?i:h,$=fa({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[T.root,l]}),z=fa({elementType:L,externalSlotProps:N,ownerState:C,className:T.paper});return P.jsx(yse,B({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?vse:gse,slots:{paper:L,root:y.root},slotProps:{root:$,paper:z},open:d,ref:r,transitionDuration:v,TransitionProps:B({onEntering:k},S),ownerState:C},_,{classes:p,children:P.jsx(Sse,B({onKeyDown:I,actions:M,autoFocus:o&&(R===-1||u),autoFocusItem:A,variant:m},c,{className:ye(T.list,c.className),children:s}))}))});function _se(e){return ze("MuiNativeSelect",e)}const kk=Fe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wse=["className","disabled","error","IconComponent","inputRef","variant"],Cse=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"]};return Be(s,_se,t)},xG=({ownerState:e,theme:t})=>B({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":B({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${kk.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Tse=le("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:io,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${kk.multiple}`]:t.multiple}]}})(xG),SG=({ownerState:e,theme:t})=>B({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${kk.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Ase=le("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(SG),Mse=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ge(t,wse),c=B({},t,{disabled:i,variant:l,error:a}),f=Cse(c);return P.jsxs(O.Fragment,{children:[P.jsx(Tse,B({ownerState:c,className:ye(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:P.jsx(Ase,{as:o,ownerState:c,className:f.icon})]})});var qL;const kse=["children","classes","className","label","notched"],Ise=le("fieldset")({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%"}),Pse=le("legend")(({ownerState:e,theme:t})=>B({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&B({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Dse(e){const{className:t,label:r,notched:n}=e,i=ge(e,kse),a=r!=null&&r!=="",o=B({},e,{notched:n,withLabel:a});return P.jsx(Ise,B({"aria-hidden":!0,className:t,ownerState:o},i,{children:P.jsx(Pse,{ownerState:o,children:a?P.jsx("span",{children:r}):qL||(qL=P.jsx("span",{className:"notranslate",children:"​"}))})}))}const Rse=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Lse=e=>{const{classes:t}=e,n=Be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nae,t);return B({},t,n)},Ese=le(Wx,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Gx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return B({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${qo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${qo.focused} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${qo.error} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qo.disabled} .${qo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&B({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Ose=le(Dse,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"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}}),Nse=le(jx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Hx})(({theme:e,ownerState:t})=>B({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Ik=O.forwardRef(function(t,r){var n,i,a,o,s;const l=$e({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:v={},type:g="text"}=l,m=ge(l,Rse),y=Lse(l),x=Wo(),S=al({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=B({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:g}),b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Ese,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Nse;return P.jsx(Ck,B({slots:{root:b,input:w},renderSuffix:C=>P.jsx(Ose,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=P.jsxs(O.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:g},m,{classes:B({},y,{notchedOutline:null})}))});Ik.muiName="Input";function zse(e){return ze("MuiSelect",e)}const Yd=Fe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ZL;const Bse=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Fse=le("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Yd.select}`]:t.select},{[`&.${Yd.select}`]:t[r.variant]},{[`&.${Yd.error}`]:t.error},{[`&.${Yd.multiple}`]:t.multiple}]}})(xG,{[`&.${Yd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$se=le("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(SG),Vse=le("input",{shouldForwardProp:e=>Ote(e)&&e!=="classes",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 KL(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Gse(e){return e==null||typeof e=="string"&&!e.trim()}const Hse=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Be(s,zse,t)},Wse=O.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:v,inputRef:g,labelId:m,MenuProps:y={},multiple:x,name:S,onBlur:_,onChange:b,onClose:w,onFocus:C,onOpen:T,open:A,readOnly:M,renderValue:k,SelectDisplayProps:I={},tabIndex:R,value:L,variant:N="standard"}=t,$=ge(t,Bse),[z,V]=Bf({controlled:L,default:f,name:"Select"}),[E,G]=Bf({controlled:A,default:c,name:"Select"}),W=O.useRef(null),F=O.useRef(null),[Y,J]=O.useState(null),{current:j}=O.useRef(A!=null),[ee,Q]=O.useState(),te=sr(r,g),ae=O.useCallback(_e=>{F.current=_e,_e&&J(_e)},[]),K=Y==null?void 0:Y.parentNode;O.useImperativeHandle(te,()=>({focus:()=>{F.current.focus()},node:W.current,value:z}),[z]),O.useEffect(()=>{c&&E&&Y&&!j&&(Q(s?null:K.clientWidth),F.current.focus())},[Y,s]),O.useEffect(()=>{o&&F.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const _e=Nr(F.current).getElementById(m);if(_e){const it=()=>{getSelection().isCollapsed&&F.current.focus()};return _e.addEventListener("click",it),()=>{_e.removeEventListener("click",it)}}},[m]);const ne=(_e,it)=>{_e?T&&T(it):w&&w(it),j||(Q(s?null:K.clientWidth),G(_e))},me=_e=>{_e.button===0&&(_e.preventDefault(),F.current.focus(),ne(!0,_e))},pe=_e=>{ne(!1,_e)},Me=O.Children.toArray(l),je=_e=>{const it=Me.find(At=>At.props.value===_e.target.value);it!==void 0&&(V(it.props.value),b&&b(_e,it))},Ue=_e=>it=>{let At;if(it.currentTarget.hasAttribute("tabindex")){if(x){At=Array.isArray(z)?z.slice():[];const de=z.indexOf(_e.props.value);de===-1?At.push(_e.props.value):At.splice(de,1)}else At=_e.props.value;if(_e.props.onClick&&_e.props.onClick(it),z!==At&&(V(At),b)){const de=it.nativeEvent||it,De=new de.constructor(de.type,de);Object.defineProperty(De,"target",{writable:!0,value:{value:At,name:S}}),b(De,_e)}x||ne(!1,it)}},rt=_e=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(_e.key)!==-1&&(_e.preventDefault(),ne(!0,_e))},ot=Y!==null&&E,st=_e=>{!ot&&_&&(Object.defineProperty(_e,"target",{writable:!0,value:{value:z,name:S}}),_(_e))};delete $["aria-invalid"];let Xe,Vt;const Tt=[];let lt=!1;(R0({value:z})||h)&&(k?Xe=k(z):lt=!0);const X=Me.map(_e=>{if(!O.isValidElement(_e))return null;let it;if(x){if(!Array.isArray(z))throw new Error(js(2));it=z.some(At=>KL(At,_e.props.value)),it&&lt&&Tt.push(_e.props.children)}else it=KL(z,_e.props.value),it&&lt&&(Vt=_e.props.children);return O.cloneElement(_e,{"aria-selected":it?"true":"false",onClick:Ue(_e),onKeyUp:At=>{At.key===" "&&At.preventDefault(),_e.props.onKeyUp&&_e.props.onKeyUp(At)},role:"option",selected:it,value:void 0,"data-value":_e.props.value})});lt&&(x?Tt.length===0?Xe=null:Xe=Tt.reduce((_e,it,At)=>(_e.push(it),At<Tt.length-1&&_e.push(", "),_e),[]):Xe=Vt);let ie=ee;!s&&j&&Y&&(ie=K.clientWidth);let Pe;typeof R<"u"?Pe=R:Pe=d?null:0;const be=I.id||(S?`mui-component-select-${S}`:void 0),he=B({},t,{variant:N,value:z,open:ot,error:p}),pt=Hse(he),Qt=B({},y.PaperProps,(n=y.slotProps)==null?void 0:n.paper);return P.jsxs(O.Fragment,{children:[P.jsx(Fse,B({ref:ae,tabIndex:Pe,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":ot?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[m,be].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:rt,onMouseDown:d||M?null:me,onBlur:st,onFocus:C},I,{ownerState:he,className:ye(I.className,pt.select,u),id:be,children:Gse(Xe)?ZL||(ZL=P.jsx("span",{className:"notranslate",children:"​"})):Xe})),P.jsx(Vse,B({"aria-invalid":p,value:Array.isArray(z)?z.join(","):z,name:S,ref:W,"aria-hidden":!0,onChange:je,tabIndex:-1,disabled:d,className:pt.nativeInput,autoFocus:o,ownerState:he},$)),P.jsx($se,{as:v,className:pt.icon,ownerState:he}),P.jsx(bse,B({id:`menu-${S||""}`,anchorEl:K,open:ot,onClose:pe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:B({"aria-labelledby":m,role:"listbox",disableListWrap:!0},y.MenuListProps),slotProps:{paper:B({},Qt,{style:B({minWidth:ie},Qt!=null?Qt.style:null)})},children:X}))]})}),jse=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Use=["root"],Yse=e=>{const{classes:t}=e;return t},Pk={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>io(e)&&e!=="variant",slot:"Root"},Xse=le(Ak,Pk)(""),qse=le(Ik,Pk)(""),Zse=le(Tk,Pk)(""),Dk=O.forwardRef(function(t,r){const n=$e({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=aae,id:f,input:d,inputProps:h,label:p,labelId:v,MenuProps:g,multiple:m=!1,native:y=!1,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:w,variant:C="outlined"}=n,T=ge(n,jse),A=y?Mse:Wse,M=Wo(),k=al({props:n,muiFormControl:M,states:["variant","error"]}),I=k.variant||C,R=B({},n,{variant:I,classes:o}),L=Yse(R),N=ge(L,Use),$=d||{standard:P.jsx(Xse,{ownerState:R}),outlined:P.jsx(qse,{label:p,ownerState:R}),filled:P.jsx(Zse,{ownerState:R})}[I],z=sr(r,$.ref);return P.jsx(O.Fragment,{children:O.cloneElement($,B({inputComponent:A,inputProps:B({children:a,error:k.error,IconComponent:c,variant:I,type:void 0,multiple:m},y?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:g,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:B({id:f},w)},h,{classes:h?Rn(N,h.classes):N},d?d.props.inputProps:{})},m&&y&&I==="outlined"?{notched:!0}:{},{ref:z,className:ye($.props.className,s,L.root)},!d&&{variant:I},T))})});Dk.muiName="Select";function Kse(e){return ze("MuiTooltip",e)}const xs=Fe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Qse=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Jse(e){return Math.round(e*1e5)/1e5}const ele=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:a}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${xe(a.split("-")[0])}`],arrow:["arrow"]};return Be(o,Kse,t)},tle=le(nG,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>B({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${xs.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${xs.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${xs.arrow}`]:B({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${xs.arrow}`]:B({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),rle=le("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${xe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>B({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Xt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Jse(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${xs.popper}[data-popper-placement*="left"] &`]:B({transformOrigin:"right center"},t.isRtl?B({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):B({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${xs.popper}[data-popper-placement*="right"] &`]:B({transformOrigin:"left center"},t.isRtl?B({marginRight:"14px"},t.touch&&{marginRight:"24px"}):B({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${xs.popper}[data-popper-placement*="top"] &`]:B({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${xs.popper}[data-popper-placement*="bottom"] &`]:B({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),nle=le("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Xt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let rm=!1,Rb=null,Xd={x:0,y:0};function nm(e,t){return r=>{t&&t(r),e(r)}}const ile=O.forwardRef(function(t,r){var n,i,a,o,s,l,u,c,f,d,h,p,v,g,m,y,x,S,_;const b=$e({props:t,name:"MuiTooltip"}),{arrow:w=!1,children:C,components:T={},componentsProps:A={},describeChild:M=!1,disableFocusListener:k=!1,disableHoverListener:I=!1,disableInteractive:R=!1,disableTouchListener:L=!1,enterDelay:N=100,enterNextDelay:$=0,enterTouchDelay:z=700,followCursor:V=!1,id:E,leaveDelay:G=0,leaveTouchDelay:W=1500,onClose:F,onOpen:Y,open:J,placement:j="bottom",PopperComponent:ee,PopperProps:Q={},slotProps:te={},slots:ae={},title:K,TransitionComponent:ne=L0,TransitionProps:me}=b,pe=ge(b,Qse),Me=O.isValidElement(C)?C:P.jsx("span",{children:C}),je=Uu(),Ue=je.direction==="rtl",[rt,ot]=O.useState(),[st,Xe]=O.useState(null),Vt=O.useRef(!1),Tt=R||V,lt=O.useRef(),X=O.useRef(),ie=O.useRef(),Pe=O.useRef(),[be,he]=Bf({controlled:J,default:!1,name:"Tooltip",state:"open"});let pt=be;const Qt=WM(E),_e=O.useRef(),it=O.useCallback(()=>{_e.current!==void 0&&(document.body.style.WebkitUserSelect=_e.current,_e.current=void 0),clearTimeout(Pe.current)},[]);O.useEffect(()=>()=>{clearTimeout(lt.current),clearTimeout(X.current),clearTimeout(ie.current),it()},[it]);const At=ct=>{clearTimeout(Rb),rm=!0,he(!0),Y&&!pt&&Y(ct)},de=Ji(ct=>{clearTimeout(Rb),Rb=setTimeout(()=>{rm=!1},800+G),he(!1),F&&pt&&F(ct),clearTimeout(lt.current),lt.current=setTimeout(()=>{Vt.current=!1},je.transitions.duration.shortest)}),De=ct=>{Vt.current&&ct.type!=="touchstart"||(rt&&rt.removeAttribute("title"),clearTimeout(X.current),clearTimeout(ie.current),N||rm&&$?X.current=setTimeout(()=>{At(ct)},rm?$:N):At(ct))},qe=ct=>{clearTimeout(X.current),clearTimeout(ie.current),ie.current=setTimeout(()=>{de(ct)},G)},{isFocusVisibleRef:mt,onBlur:wr,onFocus:ma,ref:ac}=vx(),[,Ig]=O.useState(!1),kd=ct=>{wr(ct),mt.current===!1&&(Ig(!1),qe(ct))},oc=ct=>{rt||ot(ct.currentTarget),ma(ct),mt.current===!0&&(Ig(!0),De(ct))},cD=ct=>{Vt.current=!0;const $n=Me.props;$n.onTouchStart&&$n.onTouchStart(ct)},fD=De,dD=qe,bY=ct=>{cD(ct),clearTimeout(ie.current),clearTimeout(lt.current),it(),_e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=_e.current,De(ct)},z)},_Y=ct=>{Me.props.onTouchEnd&&Me.props.onTouchEnd(ct),it(),clearTimeout(ie.current),ie.current=setTimeout(()=>{de(ct)},W)};O.useEffect(()=>{if(!pt)return;function ct($n){($n.key==="Escape"||$n.key==="Esc")&&de($n)}return document.addEventListener("keydown",ct),()=>{document.removeEventListener("keydown",ct)}},[de,pt]);const wY=sr(Me.ref,ac,ot,r);!K&&K!==0&&(pt=!1);const VS=O.useRef(),CY=ct=>{const $n=Me.props;$n.onMouseMove&&$n.onMouseMove(ct),Xd={x:ct.clientX,y:ct.clientY},VS.current&&VS.current.update()},Id={},GS=typeof K=="string";M?(Id.title=!pt&&GS&&!I?K:null,Id["aria-describedby"]=pt?Qt:null):(Id["aria-label"]=GS?K:null,Id["aria-labelledby"]=pt&&!GS?Qt:null);const Vi=B({},Id,pe,Me.props,{className:ye(pe.className,Me.props.className),onTouchStart:cD,ref:wY},V?{onMouseMove:CY}:{}),Pd={};L||(Vi.onTouchStart=bY,Vi.onTouchEnd=_Y),I||(Vi.onMouseOver=nm(fD,Vi.onMouseOver),Vi.onMouseLeave=nm(dD,Vi.onMouseLeave),Tt||(Pd.onMouseOver=fD,Pd.onMouseLeave=dD)),k||(Vi.onFocus=nm(oc,Vi.onFocus),Vi.onBlur=nm(kd,Vi.onBlur),Tt||(Pd.onFocus=oc,Pd.onBlur=kd));const TY=O.useMemo(()=>{var ct;let $n=[{name:"arrow",enabled:!!st,options:{element:st,padding:4}}];return(ct=Q.popperOptions)!=null&&ct.modifiers&&($n=$n.concat(Q.popperOptions.modifiers)),B({},Q.popperOptions,{modifiers:$n})},[st,Q]),Dd=B({},b,{isRtl:Ue,arrow:w,disableInteractive:Tt,placement:j,PopperComponentProp:ee,touch:Vt.current}),HS=ele(Dd),hD=(n=(i=ae.popper)!=null?i:T.Popper)!=null?n:tle,pD=(a=(o=(s=ae.transition)!=null?s:T.Transition)!=null?o:ne)!=null?a:L0,vD=(l=(u=ae.tooltip)!=null?u:T.Tooltip)!=null?l:rle,gD=(c=(f=ae.arrow)!=null?f:T.Arrow)!=null?c:nle,AY=Rh(hD,B({},Q,(d=te.popper)!=null?d:A.popper,{className:ye(HS.popper,Q==null?void 0:Q.className,(h=(p=te.popper)!=null?p:A.popper)==null?void 0:h.className)}),Dd),MY=Rh(pD,B({},me,(v=te.transition)!=null?v:A.transition),Dd),kY=Rh(vD,B({},(g=te.tooltip)!=null?g:A.tooltip,{className:ye(HS.tooltip,(m=(y=te.tooltip)!=null?y:A.tooltip)==null?void 0:m.className)}),Dd),IY=Rh(gD,B({},(x=te.arrow)!=null?x:A.arrow,{className:ye(HS.arrow,(S=(_=te.arrow)!=null?_:A.arrow)==null?void 0:S.className)}),Dd);return P.jsxs(O.Fragment,{children:[O.cloneElement(Me,Vi),P.jsx(hD,B({as:ee??nG,placement:j,anchorEl:V?{getBoundingClientRect:()=>({top:Xd.y,left:Xd.x,right:Xd.x,bottom:Xd.y,width:0,height:0})}:rt,popperRef:VS,open:rt?pt:!1,id:Qt,transition:!0},Pd,AY,{popperOptions:TY,children:({TransitionProps:ct})=>P.jsx(pD,B({timeout:je.transitions.duration.shorter},ct,MY,{children:P.jsxs(vD,B({},kY,{children:[K,w?P.jsx(gD,B({},IY,{ref:Xe})):null]}))}))}))]})});function ale(e){return ze("MuiSwitch",e)}const rn=Fe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),ole=["className","color","edge","size","sx"],sle=e=>{const{classes:t,edge:r,size:n,color:i,checked:a,disabled:o}=e,s={root:["root",r&&`edge${xe(r)}`,`size${xe(n)}`],switchBase:["switchBase",`color${xe(i)}`,a&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Be(s,ale,t);return B({},t,l)},lle=le("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({ownerState:e})=>B({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${rn.thumb}`]:{width:16,height:16},[`& .${rn.switchBase}`]:{padding:4,[`&.${rn.checked}`]:{transform:"translateX(16px)"}}})),ule=le(oG,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${rn.input}`]:t.input},r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${rn.checked}`]:{transform:"translateX(20px)"},[`&.${rn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${rn.checked} + .${rn.track}`]:{opacity:.5},[`&.${rn.disabled} + .${rn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${rn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>B({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Xt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${rn.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Xt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?iv(e.palette[t.color].main,.62):nv(e.palette[t.color].main,.55)}`}},[`&.${rn.checked} + .${rn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),cle=le("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),fle=le("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),dle=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:o=!1,size:s="medium",sx:l}=n,u=ge(n,ole),c=B({},n,{color:a,edge:o,size:s}),f=sle(c),d=P.jsx(fle,{className:f.thumb,ownerState:c});return P.jsxs(lle,{className:ye(f.root,i),sx:l,ownerState:c,children:[P.jsx(ule,B({type:"checkbox",icon:d,checkedIcon:d,ref:r,ownerState:c},u,{classes:B({},f,{root:f.switchBase})})),P.jsx(cle,{className:f.track,ownerState:c})]})});function hle(e){return ze("MuiTab",e)}const cl=Fe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),ple=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],vle=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${xe(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Be(u,hle,t)},gle=le(Yu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${xe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>B({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${cl.iconWrapper}`]:B({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${cl.selected}`]:{opacity:1},[`&.${cl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${cl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${cl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${cl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${cl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),mle=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:p,selected:v,selectionFollowsFocus:g,textColor:m="inherit",value:y,wrapped:x=!1}=n,S=ge(n,ple),_=B({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=vle(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:ye(b.iconWrapper,l.props.className)}):l,C=A=>{!v&&d&&d(A,y),h&&h(A)},T=A=>{g&&!v&&d&&d(A,y),p&&p(A)};return P.jsxs(gle,B({focusRipple:!o,className:ye(b.root,i),ref:r,role:"tab","aria-selected":v,disabled:a,onClick:C,onFocus:T,ownerState:_,tabIndex:v?0:-1},S,{children:[u==="top"||u==="start"?P.jsxs(O.Fragment,{children:[w,f]}):P.jsxs(O.Fragment,{children:[f,w]}),c]}))}),bG=O.createContext();function yle(e){return ze("MuiTable",e)}Fe("MuiTable",["root","stickyHeader"]);const xle=["className","component","padding","size","stickyHeader"],Sle=e=>{const{classes:t,stickyHeader:r}=e;return Be({root:["root",r&&"stickyHeader"]},yle,t)},ble=le("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>B({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":B({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),QL="table",_G=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTable"}),{className:i,component:a=QL,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ge(n,xle),c=B({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Sle(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return P.jsx(bG.Provider,{value:d,children:P.jsx(ble,B({as:a,role:a===QL?null:"table",ref:r,className:ye(f.root,i),ownerState:c},u))})}),Ux=O.createContext();function _le(e){return ze("MuiTableBody",e)}Fe("MuiTableBody",["root"]);const wle=["className","component"],Cle=e=>{const{classes:t}=e;return Be({root:["root"]},_le,t)},Tle=le("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ale={variant:"body"},JL="tbody",wG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableBody"}),{className:i,component:a=JL}=n,o=ge(n,wle),s=B({},n,{component:a}),l=Cle(s);return P.jsx(Ux.Provider,{value:Ale,children:P.jsx(Tle,B({className:ye(l.root,i),as:a,ref:r,role:a===JL?null:"rowgroup",ownerState:s},o))})});function Mle(e){return ze("MuiTableCell",e)}const kle=Fe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Ile=["align","className","component","padding","scope","size","sortDirection","variant"],Ple=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${xe(n)}`,i!=="normal"&&`padding${xe(i)}`,`size${xe(a)}`]};return Be(s,Mle,t)},Dle=le("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.padding!=="normal"&&t[`padding${xe(r.padding)}`],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>B({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
142
- ${e.palette.mode==="light"?iv(Xt(e.palette.divider,1),.88):nv(Xt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${kle.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Xl=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ge(n,Ile),h=O.useContext(bG),p=O.useContext(Ux),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let m=l;g==="td"?m=void 0:!m&&v&&(m="col");const y=f||p&&p.variant,x=B({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),S=Ple(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),P.jsx(Dle,B({as:g,ref:r,className:ye(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))});function Rle(e){return ze("MuiTableContainer",e)}Fe("MuiTableContainer",["root"]);const Lle=["className","component"],Ele=e=>{const{classes:t}=e;return Be({root:["root"]},Rle,t)},Ole=le("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),CG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ge(n,Lle),s=B({},n,{component:a}),l=Ele(s);return P.jsx(Ole,B({ref:r,as:a,className:ye(l.root,i),ownerState:s},o))});function Nle(e){return ze("MuiTableHead",e)}Fe("MuiTableHead",["root"]);const zle=["className","component"],Ble=e=>{const{classes:t}=e;return Be({root:["root"]},Nle,t)},Fle=le("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),$le={variant:"head"},eE="thead",TG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableHead"}),{className:i,component:a=eE}=n,o=ge(n,zle),s=B({},n,{component:a}),l=Ble(s);return P.jsx(Ux.Provider,{value:$le,children:P.jsx(Fle,B({as:a,className:ye(l.root,i),ref:r,role:a===eE?null:"rowgroup",ownerState:s},o))})});function Vle(e){return ze("MuiToolbar",e)}Fe("MuiToolbar",["root","gutters","regular","dense"]);const Gle=["className","component","disableGutters","variant"],Hle=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Be({root:["root",!r&&"gutters",n]},Vle,t)},Wle=le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>B({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),jle=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ge(n,Gle),u=B({},n,{component:a,disableGutters:o,variant:s}),c=Hle(u);return P.jsx(Wle,B({as:a,className:ye(c.root,i),ref:r,ownerState:u},l))}),Ule=Oi(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Yle=Oi(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Xle(e){return ze("MuiTableRow",e)}const tE=Fe("MuiTableRow",["root","selected","hover","head","footer"]),qle=["className","component","hover","selected"],Zle=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Be({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Xle,t)},Kle=le("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${tE.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xt(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}))`:Xt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),rE="tr",E0=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableRow"}),{className:i,component:a=rE,hover:o=!1,selected:s=!1}=n,l=ge(n,qle),u=O.useContext(Ux),c=B({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Zle(c);return P.jsx(Kle,B({as:a,ref:r,className:ye(f.root,i),role:a===rE?null:"row",ownerState:c},l))});function Qle(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Jle(e,t,r,n={},i=()=>{}){const{ease:a=Qle,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const eue=["onChange"],tue={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function rue(e){const{onChange:t}=e,r=ge(e,eue),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ua(()=>{const o=Xv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Za(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),P.jsx("div",B({style:tue,ref:i},r))}function nue(e){return ze("MuiTabScrollButton",e)}const iue=Fe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),aue=["className","slots","slotProps","direction","orientation","disabled"],oue=e=>{const{classes:t,orientation:r,disabled:n}=e;return Be({root:["root",r,n&&"disabled"]},nue,t)},sue=le(Yu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>B({width:40,flexShrink:0,opacity:.8,[`&.${iue.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),lue=O.forwardRef(function(t,r){var n,i;const a=$e({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ge(a,aue),d=Uu().direction==="rtl",h=B({isRtl:d},a),p=oue(h),v=(n=s.StartScrollButtonIcon)!=null?n:Ule,g=(i=s.EndScrollButtonIcon)!=null?i:Yle,m=fa({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=fa({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return P.jsx(sue,B({component:"div",className:ye(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?P.jsx(v,B({},m)):P.jsx(g,B({},y))}))});function uue(e){return ze("MuiTabs",e)}const Lb=Fe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),cue=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],nE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,iE=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,im=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},fue=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Be({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},uue,l)},due=le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lb.scrollButtons}`]:t.scrollButtons},{[`& .${Lb.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>B({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Lb.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),hue=le("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>B({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),pue=le("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>B({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),vue=le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>B({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),gue=le(rue)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),aE={},mue=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTabs"}),i=Uu(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:v,orientation:g="horizontal",ScrollButtonComponent:m=lue,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:T,variant:A="standard",visibleScrollbar:M=!1}=n,k=ge(n,cue),I=A==="scrollable",R=g==="vertical",L=R?"scrollTop":"scrollLeft",N=R?"top":"left",$=R?"bottom":"right",z=R?"clientHeight":"clientWidth",V=R?"height":"width",E=B({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:R,scrollButtons:y,textColor:C,variant:A,visibleScrollbar:M,fixed:!I,hideScrollbar:I&&!M,scrollableX:I&&!R,scrollableY:I&&R,centered:u&&!I,scrollButtonsHideMobile:!h}),G=fue(E),W=fa({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:E}),F=fa({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:E}),[Y,J]=O.useState(!1),[j,ee]=O.useState(aE),[Q,te]=O.useState(!1),[ae,K]=O.useState(!1),[ne,me]=O.useState(!1),[pe,Me]=O.useState({overflow:"hidden",scrollbarWidth:0}),je=new Map,Ue=O.useRef(null),rt=O.useRef(null),ot=()=>{const de=Ue.current;let De;if(de){const mt=de.getBoundingClientRect();De={clientWidth:de.clientWidth,scrollLeft:de.scrollLeft,scrollTop:de.scrollTop,scrollLeftNormalized:IQ(de,i.direction),scrollWidth:de.scrollWidth,top:mt.top,bottom:mt.bottom,left:mt.left,right:mt.right}}let qe;if(de&&T!==!1){const mt=rt.current.children;if(mt.length>0){const wr=mt[je.get(T)];qe=wr?wr.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},st=Ji(()=>{const{tabsMeta:de,tabMeta:De}=ot();let qe=0,mt;if(R)mt="top",De&&de&&(qe=De.top-de.top+de.scrollTop);else if(mt=a?"right":"left",De&&de){const ma=a?de.scrollLeftNormalized+de.clientWidth-de.scrollWidth:de.scrollLeft;qe=(a?-1:1)*(De[mt]-de[mt]+ma)}const wr={[mt]:qe,[V]:De?De[V]:0};if(isNaN(j[mt])||isNaN(j[V]))ee(wr);else{const ma=Math.abs(j[mt]-wr[mt]),ac=Math.abs(j[V]-wr[V]);(ma>=1||ac>=1)&&ee(wr)}}),Xe=(de,{animation:De=!0}={})=>{De?Jle(L,Ue.current,de,{duration:i.transitions.duration.standard}):Ue.current[L]=de},Vt=de=>{let De=Ue.current[L];R?De+=de:(De+=de*(a?-1:1),De*=a&&f6()==="reverse"?-1:1),Xe(De)},Tt=()=>{const de=Ue.current[z];let De=0;const qe=Array.from(rt.current.children);for(let mt=0;mt<qe.length;mt+=1){const wr=qe[mt];if(De+wr[z]>de){mt===0&&(De=de);break}De+=wr[z]}return De},lt=()=>{Vt(-1*Tt())},X=()=>{Vt(Tt())},ie=O.useCallback(de=>{Me({overflow:null,scrollbarWidth:de})},[]),Pe=()=>{const de={};de.scrollbarSizeListener=I?P.jsx(gue,{onChange:ie,className:ye(G.scrollableX,G.hideScrollbar)}):null;const qe=I&&(y==="auto"&&(Q||ae)||y===!0);return de.scrollButtonStart=qe?P.jsx(m,B({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:g,direction:a?"right":"left",onClick:lt,disabled:!Q},w,{className:ye(G.scrollButtons,w.className)})):null,de.scrollButtonEnd=qe?P.jsx(m,B({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:g,direction:a?"left":"right",onClick:X,disabled:!ae},w,{className:ye(G.scrollButtons,w.className)})):null,de},be=Ji(de=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[N]<De[N]){const mt=De[L]+(qe[N]-De[N]);Xe(mt,{animation:de})}else if(qe[$]>De[$]){const mt=De[L]+(qe[$]-De[$]);Xe(mt,{animation:de})}}}),he=Ji(()=>{I&&y!==!1&&me(!ne)});O.useEffect(()=>{const de=Xv(()=>{Ue.current&&st()}),De=Za(Ue.current);De.addEventListener("resize",de);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(de),Array.from(rt.current.children).forEach(mt=>{qe.observe(mt)})),()=>{de.clear(),De.removeEventListener("resize",de),qe&&qe.disconnect()}},[st]),O.useEffect(()=>{const de=Array.from(rt.current.children),De=de.length;if(typeof IntersectionObserver<"u"&&De>0&&I&&y!==!1){const qe=de[0],mt=de[De-1],wr={root:Ue.current,threshold:.99},ma=oc=>{te(!oc[0].isIntersecting)},ac=new IntersectionObserver(ma,wr);ac.observe(qe);const Ig=oc=>{K(!oc[0].isIntersecting)},kd=new IntersectionObserver(Ig,wr);return kd.observe(mt),()=>{ac.disconnect(),kd.disconnect()}}},[I,y,ne,c==null?void 0:c.length]),O.useEffect(()=>{J(!0)},[]),O.useEffect(()=>{st()}),O.useEffect(()=>{be(aE!==j)},[be,j]),O.useImperativeHandle(l,()=>({updateIndicator:st,updateScrollButtons:he}),[st,he]);const pt=P.jsx(vue,B({},b,{className:ye(G.indicator,b.className),ownerState:E,style:B({},j,b.style)}));let Qt=0;const _e=O.Children.map(c,de=>{if(!O.isValidElement(de))return null;const De=de.props.value===void 0?Qt:de.props.value;je.set(De,Qt);const qe=De===T;return Qt+=1,O.cloneElement(de,B({fullWidth:A==="fullWidth",indicator:qe&&!Y&&pt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Qt===1&&T===!1&&!de.props.tabIndex?{tabIndex:0}:{}))}),it=de=>{const De=rt.current,qe=Nr(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let wr=g==="horizontal"?"ArrowLeft":"ArrowUp",ma=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(wr="ArrowRight",ma="ArrowLeft"),de.key){case wr:de.preventDefault(),im(De,qe,iE);break;case ma:de.preventDefault(),im(De,qe,nE);break;case"Home":de.preventDefault(),im(De,null,nE);break;case"End":de.preventDefault(),im(De,null,iE);break}},At=Pe();return P.jsxs(due,B({className:ye(G.root,f),ownerState:E,ref:r,as:d},k,{children:[At.scrollButtonStart,At.scrollbarSizeListener,P.jsxs(hue,{className:G.scroller,ownerState:E,style:{overflow:pe.overflow,[R?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-pe.scrollbarWidth},ref:Ue,children:[P.jsx(pue,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:E,onKeyDown:it,ref:rt,role:"tablist",children:_e}),Y&&pt]}),At.scrollButtonEnd]}))});function yue(e){return ze("MuiTextField",e)}Fe("MuiTextField",["root"]);const xue=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Sue={standard:Ak,filled:Tk,outlined:Ik},bue=e=>{const{classes:t}=e;return Be({root:["root"]},yue,t)},_ue=le(uG,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Na=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:v,InputLabelProps:g,inputProps:m,InputProps:y,inputRef:x,label:S,maxRows:_,minRows:b,multiline:w=!1,name:C,onBlur:T,onChange:A,onFocus:M,placeholder:k,required:I=!1,rows:R,select:L=!1,SelectProps:N,type:$,value:z,variant:V="outlined"}=n,E=ge(n,xue),G=B({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:I,select:L,variant:V}),W=bue(G),F={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(F.notched=g.shrink),F.label=S),L&&((!N||!N.native)&&(F.id=void 0),F["aria-describedby"]=void 0);const Y=WM(v),J=p&&Y?`${Y}-helper-text`:void 0,j=S&&Y?`${Y}-label`:void 0,ee=Sue[V],Q=P.jsx(ee,B({"aria-describedby":J,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:R,maxRows:_,minRows:b,type:$,value:z,id:Y,inputRef:x,onBlur:T,onChange:A,onFocus:M,placeholder:k,inputProps:m},F,y));return P.jsxs(_ue,B({className:ye(W.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:I,color:l,variant:V,ownerState:G},E,{children:[S!=null&&S!==""&&P.jsx(Mk,B({htmlFor:Y,id:j},g,{children:S})),L?P.jsx(Dk,B({"aria-describedby":J,id:Y,labelId:j,value:z,input:Q},N,{children:o})):Q,p&&P.jsx(yoe,B({id:J},d,{children:p}))]}))});function AG(){return P.jsxs("svg",{clipRule:"evenodd",fillRule:"evenodd",height:"35",strokeLinejoin:"round",strokeMiterlimit:"2",version:"1.1",viewBox:"0 0 183 35",width:"183",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[P.jsx("title",{children:"Locust"}),P.jsx("path",{d:"M36.694,18.975L48.943,6.626L47.341,5.012L35.092,17.361L36.694,18.975Z",fill:"rgb(184,238,75)"}),P.jsx("path",{d:"M40.954,20.093L53.03,8.017L51.416,6.403L39.34,18.479L40.954,20.093Z",fill:"rgb(184,238,75)"}),P.jsx("rect",{fill:"rgb(184,238,75)",height:"7.152",width:"2.459",x:"37.215",y:"17.411"}),P.jsx("path",{d:"M14.632,4.173L11.279,5.804L10.932,5.973L4.446,30.826L10.881,30.826L15.383,13.594L32.616,30.826L41.285,30.826L14.632,4.173Z",fill:"rgb(184,238,75)",fillRule:"nonzero"}),P.jsx("path",{d:"M4.722,26.007L3.683,29.988L0,29.988L0,28.176L4.722,26.007ZM27.385,15.595L39.945,9.824L43.705,9.824L47.464,13.583L47.464,19.963L43.819,23.608L39.201,18.928L38.025,20.088L47.793,29.988L41.778,29.988L27.385,15.595ZM14.232,21.637L19.644,19.151L27.609,27.116L20.962,29.988L12.05,29.988L14.232,21.637Z",fill:"rgb(184,238,75)"}),P.jsx("path",{d:"M64.001,30L64.001,11.009L68.501,11.009L68.501,26.224L79.443,26.224L79.443,30L64.001,30ZM90.405,30.633C84.211,30.633 79.983,26.473 79.983,20.505C79.983,14.536 84.211,10.376 90.405,10.376C96.623,10.376 100.85,14.536 100.85,20.505C100.85,26.473 96.623,30.633 90.405,30.633ZM90.405,26.722C93.796,26.722 96.374,24.235 96.374,20.505C96.374,16.774 93.796,14.287 90.405,14.287C87.037,14.287 84.437,16.774 84.437,20.505C84.437,24.235 87.037,26.722 90.405,26.722ZM112.638,30.633C106.488,30.633 102.238,26.473 102.238,20.505C102.238,14.536 106.488,10.376 112.638,10.376C116.798,10.376 121.071,12.23 121.997,17.814L117.679,17.814C116.865,15.372 114.989,14.287 112.638,14.287C109.269,14.287 106.692,16.842 106.692,20.505C106.692,24.144 109.269,26.722 112.638,26.722C114.989,26.722 116.865,25.637 117.679,23.172L121.997,23.172C121.071,28.779 116.843,30.633 112.638,30.633ZM132.77,30.633C126.914,30.633 123.613,27.875 123.613,22.087L123.613,11.009L128.158,11.009L128.158,21.974C128.158,25.004 129.672,26.835 132.77,26.835C135.867,26.835 137.404,25.004 137.404,21.974L137.404,11.009L141.926,11.009L141.926,22.087C141.926,27.875 138.625,30.633 132.77,30.633ZM152.22,30.633C146.432,30.633 143.38,28.576 143.403,24.122L147.472,24.122C147.63,25.908 149.1,27.038 152.22,27.061C155.159,27.061 156.764,26.066 156.764,24.574C156.764,23.263 155.702,22.607 153.441,22.223L151.089,21.816C147.495,21.183 143.923,20.233 143.923,16.096C143.923,12.501 146.952,10.376 152.265,10.376C157.216,10.376 160.653,12.117 160.698,16.819L156.651,16.819C156.357,15.101 155.023,13.948 152.175,13.948C149.597,13.948 148.241,14.83 148.241,16.299C148.241,17.452 149.168,18.176 151.112,18.538L153.169,18.899C156.787,19.555 161.241,20.165 161.241,24.71C161.241,28.485 158.143,30.633 152.22,30.633ZM180.394,11.009L180.394,14.785L173.272,14.785L173.272,30L168.751,30L168.751,14.785L161.652,14.785L161.652,11.009L180.394,11.009Z",fill:"currentcolor"})]})}var Rk={},MG={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(MG);var Xu=MG.exports,Eb={};const wue=LY(Gte);var oE;function qu(){return oE||(oE=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=wue}(Eb)),Eb}var Cue=Xu;Object.defineProperty(Rk,"__esModule",{value:!0});var kG=Rk.default=void 0,Tue=Cue(qu()),Aue=P,Mue=(0,Tue.default)((0,Aue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");kG=Rk.default=Mue;var Lk={},kue=Xu;Object.defineProperty(Lk,"__esModule",{value:!0});var IG=Lk.default=void 0,Iue=kue(qu()),Pue=P,Due=(0,Iue.default)((0,Pue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");IG=Lk.default=Due;const ja={DARK:"dark",LIGHT:"light"},Rue=localStorage.theme===ja.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?ja.DARK:ja.LIGHT,Ni=qV,Lue=i6;function xo(e,t){const r=Lue();return O.useCallback(n=>{r(e(n))},[e,r])}const Eue={isDarkMode:!1},PG=yi({name:"theme",initialState:Eue,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),Oue=PG.actions,DG=PG.reducer;function RG(){const e=Ni(({theme:{isDarkMode:n}})=>n),t=xo(Oue.setIsDarkMode);O.useEffect(()=>{t(Rue===ja.DARK)},[]);const r=()=>{localStorage.theme=e?ja.LIGHT:ja.DARK,t(!e)};return P.jsx(Jv,{color:"inherit",onClick:r,children:e?P.jsx(IG,{}):P.jsx(kG,{})})}const Nue=e=>ck({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}});function LG(){const e=Ni(({theme:{isDarkMode:r}})=>r);return O.useMemo(()=>Nue(e?ja.DARK:ja.LIGHT),[e])}function zue({authProviders:e,error:t,usernamePasswordCallback:r}){const n=LG();return P.jsxs(V6,{theme:n,children:[P.jsx(sG,{}),P.jsx(Pt,{sx:{position:"absolute",top:4,right:4},children:P.jsx(RG,{})}),P.jsxs(Pt,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[P.jsx(Pt,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:P.jsx(AG,{})}),r&&P.jsx("form",{action:r,children:P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[P.jsx(Na,{label:"Username",name:"username"}),P.jsx(Na,{label:"Password",name:"password",type:"password"}),t&&P.jsx(Zre,{severity:"error",children:t}),P.jsx(ao,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),e&&P.jsx(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:i,callbackUrl:a,iconUrl:o},s)=>P.jsxs(Jv,{href:a,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[P.jsx("img",{height:"32",src:o}),P.jsx(dt,{height:"32",variant:"button",children:i})]},`auth-provider-${s}`))})]})]})}var Ek={},Bue=Xu;Object.defineProperty(Ek,"__esModule",{value:!0});var EG=Ek.default=void 0,Fue=Bue(qu()),$ue=P,Vue=(0,Fue.default)((0,$ue.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");EG=Ek.default=Vue;function Yx({open:e,onClose:t,children:r}){return P.jsx(lG,{onClose:t,open:e,children:P.jsxs(Pt,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",maxHeight:"90vh",overflowY:"auto",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[P.jsx(Jv,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:P.jsx(EG,{})}),r]})})}function Gue(){const[e,t]=O.useState(!1),r=Ni(({swarm:n})=>n.version);return P.jsxs(P.Fragment,{children:[P.jsx(Pt,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(ao,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),P.jsxs(Yx,{onClose:()=>t(!1),open:e,children:[P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"About"}),P.jsxs(dt,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",P.jsx(Ur,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),P.jsxs(dt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",P.jsx(Ur,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",P.jsx(Ur,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),P.jsxs(dt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",P.jsx(Ur,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),P.jsx(Ur,{href:"https://locust.cloud",children:"Locust Cloud"})," gives you access to hosted, easily scalable, and distributed load generation, as well as advanced reporting — all while preserving the flexible “it’s just Python” approach to load test scripting that Locust provides"]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Version"}),P.jsx(Ur,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Links"}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Ur,{href:"https://github.com/locustio/locust",children:"GitHub"})}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Ur,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Ur,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function Hue(){return P.jsx(rg,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:P.jsx(Gue,{})})}const OG=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function Wue(e,t){return{...e,...t}}const jue=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},Xx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),qr={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},Ua=window.templateArgs?of(window.templateArgs):{};var hF;Ua.isReport&&{...Ua,charts:(hF=Ua.history)==null||hF.reduce((e,{currentResponseTimePercentiles:t,...r})=>Xx(e,{...t,...r}),{})};function Uue({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return P.jsxs(Pt,{sx:{display:"flex",columnGap:2},children:[P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(dt,{variant:"button",children:"Host"}),P.jsx(ile,{title:r,children:P.jsx(dt,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"400px"},children:r})})]}),P.jsx(Fc,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(dt,{variant:"button",children:"Status"}),P.jsx(dt,{variant:"button",children:t})]}),(t===qr.RUNNING||t===qr.SPAWNING)&&P.jsxs(P.Fragment,{children:[P.jsx(Fc,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Users"}),P.jsx(dt,{noWrap:!0,variant:"button",children:a})]})]}),e&&P.jsxs(P.Fragment,{children:[P.jsx(Fc,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Workers"}),P.jsx(dt,{noWrap:!0,variant:"button",children:o})]})]}),P.jsx(Fc,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"RPS"}),P.jsx(dt,{noWrap:!0,variant:"button",children:n})]}),P.jsx(Fc,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Failures"}),P.jsx(dt,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const Yue=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),Xue=Fn(Yue)(Uue),que="input, select, textarea",Zue=e=>e instanceof HTMLInputElement&&e.getAttribute("data-type")==="number"?Number(e.value):e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function Ok({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(que)].reduce((o,s)=>({...o,[s.name]:Zue(s)}),{});t(a)},[t]);return P.jsx("form",{onSubmit:r,children:e})}var NG=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(NG||{});function Kue(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function Que(e){return new RegExp("(^|:)//").test(e)}var Jue=e=>e.replace(/\/$/,""),ece=e=>e.replace(/^\//,"");function tce(e,t){if(!e)return t;if(!t)return e;if(Que(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=Jue(e),t=ece(t),`${e}${r}${t}`}var sE=e=>[].concat(...e);function rce(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function nce(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var lE=qa;function zG(e,t){if(e===t||!(lE(e)&&lE(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let i=r.length===n.length;const a=Array.isArray(t)?[]:{};for(const o of r)a[o]=zG(e[o],t[o]),i&&(i=e[o]===a[o]);return i?e:a}var uE=(...e)=>fetch(...e),ice=e=>e.status>=200&&e.status<=299,ace=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function cE(e){if(!qa(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function oce({baseUrl:e,prepareHeaders:t=f=>f,fetchFn:r=uE,paramsSerializer:n,isJsonContentType:i=ace,jsonContentType:a="application/json",jsonReplacer:o,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return typeof fetch>"u"&&r===uE&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,h)=>{const{signal:p,getState:v,extra:g,endpoint:m,forced:y,type:x}=h;let S,{url:_,headers:b=new Headers(c.headers),params:w=void 0,responseHandler:C=l??"json",validateStatus:T=u??ice,timeout:A=s,...M}=typeof d=="string"?{url:d}:d,k={...c,signal:p,...M};b=new Headers(cE(b)),k.headers=await t(b,{getState:v,extra:g,endpoint:m,forced:y,type:x})||b;const I=W=>typeof W=="object"&&(qa(W)||Array.isArray(W)||typeof W.toJSON=="function");if(!k.headers.has("content-type")&&I(k.body)&&k.headers.set("content-type",a),I(k.body)&&i(k.headers)&&(k.body=JSON.stringify(k.body,o)),w){const W=~_.indexOf("?")?"&":"?",F=n?n(w):new URLSearchParams(cE(w));_+=W+F}_=tce(e,_);const R=new Request(_,k);S={request:new Request(_,k)};let N,$=!1,z=A&&setTimeout(()=>{$=!0,h.abort()},A);try{N=await r(R)}catch(W){return{error:{status:$?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(W)},meta:S}}finally{z&&clearTimeout(z)}const V=N.clone();S.response=V;let E,G="";try{let W;if(await Promise.all([f(N,C).then(F=>E=F,F=>W=F),V.text().then(F=>G=F,()=>{})]),W)throw W}catch(W){return{error:{status:"PARSING_ERROR",originalStatus:N.status,data:G,error:String(W)},meta:S}}return T(N,E)?{data:E,meta:S}:{error:{status:N.status,data:E},meta:S}};async function f(d,h){if(typeof h=="function")return h(d);if(h==="content-type"&&(h=i(d.headers)?"json":"text"),h==="json"){const p=await d.text();return p.length?JSON.parse(p):null}return d.text()}}var fE=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Nk=un("__rtkq/focused"),BG=un("__rtkq/unfocused"),zk=un("__rtkq/online"),FG=un("__rtkq/offline");function $G(e){return e.type==="query"}function sce(e){return e.type==="mutation"}function Bk(e,t,r,n,i,a){return lce(e)?e(t,r,n,i).map(OT).map(a):Array.isArray(e)?e.map(OT).map(a):[]}function lce(e){return typeof e=="function"}function OT(e){return typeof e=="string"?{type:e}:e}function dE(e){return e!=null}function Sf(e){let t=0;for(const r in e)t++;return t}function uce(e,t){return e.catch(t)}var sv=Symbol("forceQueryFn"),NT=e=>typeof e[sv]=="function";function cce({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const a=new Map,o=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:u}=n.internalActions;return{buildInitiateQuery:p,buildInitiateMutation:v,getRunningQueryThunk:c,getRunningMutationThunk:f,getRunningQueriesThunk:d,getRunningMutationsThunk:h};function c(g,m){return y=>{var _;const x=i.endpointDefinitions[g],S=e({queryArgs:m,endpointDefinition:x,endpointName:g});return(_=a.get(y))==null?void 0:_[S]}}function f(g,m){return y=>{var x;return(x=o.get(y))==null?void 0:x[m]}}function d(){return g=>Object.values(a.get(g)||{}).filter(dE)}function h(){return g=>Object.values(o.get(g)||{}).filter(dE)}function p(g,m){const y=(x,{subscribe:S=!0,forceRefetch:_,subscriptionOptions:b,[sv]:w,...C}={})=>(T,A)=>{var W;const M=e({queryArgs:x,endpointDefinition:m,endpointName:g}),k=t({...C,type:"query",subscribe:S,forceRefetch:_,subscriptionOptions:b,endpointName:g,originalArgs:x,queryCacheKey:M,[sv]:w}),I=n.endpoints[g].select(x),R=T(k),L=I(A()),{requestId:N,abort:$}=R,z=L.requestId!==N,V=(W=a.get(T))==null?void 0:W[M],E=()=>I(A()),G=Object.assign(w?R.then(E):z&&!V?Promise.resolve(L):Promise.all([V,R]).then(E),{arg:x,requestId:N,subscriptionOptions:b,queryCacheKey:M,abort:$,async unwrap(){const F=await G;if(F.isError)throw F.error;return F.data},refetch:()=>T(y(x,{subscribe:!1,forceRefetch:!0})),unsubscribe(){S&&T(s({queryCacheKey:M,requestId:N}))},updateSubscriptionOptions(F){G.subscriptionOptions=F,T(u({endpointName:g,requestId:N,queryCacheKey:M,options:F}))}});if(!V&&!z&&!w){const F=a.get(T)||{};F[M]=G,a.set(T,F),G.then(()=>{delete F[M],Sf(F)||a.delete(T)})}return G};return y}function v(g){return(m,{track:y=!0,fixedCacheKey:x}={})=>(S,_)=>{const b=r({type:"mutation",endpointName:g,originalArgs:m,track:y,fixedCacheKey:x}),w=S(b),{requestId:C,abort:T,unwrap:A}=w,M=uce(w.unwrap().then(L=>({data:L})),L=>({error:L})),k=()=>{S(l({requestId:C,fixedCacheKey:x}))},I=Object.assign(M,{arg:w.arg,requestId:C,abort:T,unwrap:A,reset:k}),R=o.get(S)||{};return o.set(S,R),R[C]=I,I.then(()=>{delete R[C],Sf(R)||o.delete(S)}),x&&(R[x]=I,I.then(()=>{R[x]===I&&(delete R[x],Sf(R)||o.delete(S))})),I}}}function hE(e){return e}function fce({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:a}){const o=(y,x,S,_)=>(b,w)=>{const C=r[y],T=n({queryArgs:x,endpointDefinition:C,endpointName:y});if(b(i.internalActions.queryResultPatched({queryCacheKey:T,patches:S})),!_)return;const A=i.endpoints[y].select(x)(w()),M=Bk(C.providesTags,A.data,void 0,x,{},a);b(i.internalActions.updateProvidedBy({queryCacheKey:T,providedTags:M}))},s=(y,x,S,_=!0)=>(b,w)=>{const T=i.endpoints[y].select(x)(w());let A={patches:[],inversePatches:[],undo:()=>b(i.util.patchQueryData(y,x,A.inversePatches,_))};if(T.status==="uninitialized")return A;let M;if("data"in T)if(la(T.data)){const[k,I,R]=NV(T.data,S);A.patches.push(...I),A.inversePatches.push(...R),M=k}else M=S(T.data),A.patches.push({op:"replace",path:[],value:M}),A.inversePatches.push({op:"replace",path:[],value:T.data});return A.patches.length===0||b(i.util.patchQueryData(y,x,A.patches,_)),A},l=(y,x,S)=>_=>_(i.endpoints[y].initiate(x,{subscribe:!1,forceRefetch:!0,[sv]:()=>({data:S})})),u=async(y,{signal:x,abort:S,rejectWithValue:_,fulfillWithValue:b,dispatch:w,getState:C,extra:T})=>{const A=r[y.endpointName];try{let M=hE,k;const I={signal:x,abort:S,dispatch:w,getState:C,extra:T,endpoint:y.endpointName,type:y.type,forced:y.type==="query"?c(y,C()):void 0},R=y.type==="query"?y[sv]:void 0;if(R?k=R():A.query?(k=await t(A.query(y.originalArgs),I,A.extraOptions),A.transformResponse&&(M=A.transformResponse)):k=await A.queryFn(y.originalArgs,I,A.extraOptions,L=>t(L,I,A.extraOptions)),typeof process<"u",k.error)throw new fE(k.error,k.meta);return b(await M(k.data,k.meta,y.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:k.meta,[af]:!0})}catch(M){let k=M;if(k instanceof fE){let I=hE;A.query&&A.transformErrorResponse&&(I=A.transformErrorResponse);try{return _(await I(k.value,k.meta,y.originalArgs),{baseQueryMeta:k.meta,[af]:!0})}catch(R){k=R}}throw typeof process<"u",console.error(k),k}};function c(y,x){var C,T,A;const S=(T=(C=x[e])==null?void 0:C.queries)==null?void 0:T[y.queryCacheKey],_=(A=x[e])==null?void 0:A.config.refetchOnMountOrArgChange,b=S==null?void 0:S.fulfilledTimeStamp,w=y.forceRefetch??(y.subscribe&&_);return w?w===!0||(Number(new Date)-Number(b))/1e3>=w:!1}const f=zR(`${e}/executeQuery`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[af]:!0}},condition(y,{getState:x}){var A,M,k;const S=x(),_=(M=(A=S[e])==null?void 0:A.queries)==null?void 0:M[y.queryCacheKey],b=_==null?void 0:_.fulfilledTimeStamp,w=y.originalArgs,C=_==null?void 0:_.originalArgs,T=r[y.endpointName];return NT(y)?!0:(_==null?void 0:_.status)==="pending"?!1:c(y,S)||$G(T)&&((k=T==null?void 0:T.forceRefetch)!=null&&k.call(T,{currentArg:w,previousArg:C,endpointState:_,state:S}))?!0:!b},dispatchConditionRejection:!0}),d=zR(`${e}/executeMutation`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[af]:!0}}}),h=y=>"force"in y,p=y=>"ifOlderThan"in y,v=(y,x,S)=>(_,b)=>{const w=h(S)&&S.force,C=p(S)&&S.ifOlderThan,T=(M=!0)=>{const k={forceRefetch:M,isPrefetch:!0};return i.endpoints[y].initiate(x,k)},A=i.endpoints[y].select(x)(b());if(w)_(T());else if(C){const M=A==null?void 0:A.fulfilledTimeStamp;if(!M){_(T());return}(Number(new Date)-Number(new Date(M)))/1e3>=C&&_(T())}else _(T(!1))};function g(y){return x=>{var S,_;return((_=(S=x==null?void 0:x.meta)==null?void 0:S.arg)==null?void 0:_.endpointName)===y}}function m(y,x){return{matchPending:np(NM(y),g(x)),matchFulfilled:np(Ws(y),g(x)),matchRejected:np(zf(y),g(x))}}return{queryThunk:f,mutationThunk:d,prefetch:v,updateQueryData:s,upsertQueryData:l,patchQueryData:o,buildMatchThunkActions:m}}function VG(e,t,r,n){return Bk(r[e.meta.arg.endpointName][t],Ws(e)?e.payload:void 0,nx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function am(e,t,r){const n=e[t];n&&r(n)}function lv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function pE(e,t,r){const n=e[lv(t)];n&&r(n)}var qd={};function dce({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:o},assertTagType:s,config:l}){const u=un(`${e}/resetApiState`),c=yi({name:`${e}/queries`,initialState:qd,reducers:{removeQueryResult:{reducer(x,{payload:{queryCacheKey:S}}){delete x[S]},prepare:$d()},queryResultPatched:{reducer(x,{payload:{queryCacheKey:S,patches:_}}){am(x,S,b=>{b.data=DR(b.data,_.concat())})},prepare:$d()}},extraReducers(x){x.addCase(t.pending,(S,{meta:_,meta:{arg:b}})=>{var C;const w=NT(b);S[C=b.queryCacheKey]??(S[C]={status:"uninitialized",endpointName:b.endpointName}),am(S,b.queryCacheKey,T=>{T.status="pending",T.requestId=w&&T.requestId?T.requestId:_.requestId,b.originalArgs!==void 0&&(T.originalArgs=b.originalArgs),T.startedTimeStamp=_.startedTimeStamp})}).addCase(t.fulfilled,(S,{meta:_,payload:b})=>{am(S,_.arg.queryCacheKey,w=>{if(w.requestId!==_.requestId&&!NT(_.arg))return;const{merge:C}=n[_.arg.endpointName];if(w.status="fulfilled",C)if(w.data!==void 0){const{fulfilledTimeStamp:T,arg:A,baseQueryMeta:M,requestId:k}=_;let I=jv(w.data,R=>C(R,b,{arg:A.originalArgs,baseQueryMeta:M,fulfilledTimeStamp:T,requestId:k}));w.data=I}else w.data=b;else w.data=n[_.arg.endpointName].structuralSharing??!0?zG(sa(w.data)?hZ(w.data):w.data,b):b;delete w.error,w.fulfilledTimeStamp=_.fulfilledTimeStamp})}).addCase(t.rejected,(S,{meta:{condition:_,arg:b,requestId:w},error:C,payload:T})=>{am(S,b.queryCacheKey,A=>{if(!_){if(A.requestId!==w)return;A.status="rejected",A.error=T??C}})}).addMatcher(o,(S,_)=>{const{queries:b}=a(_);for(const[w,C]of Object.entries(b))((C==null?void 0:C.status)==="fulfilled"||(C==null?void 0:C.status)==="rejected")&&(S[w]=C)})}}),f=yi({name:`${e}/mutations`,initialState:qd,reducers:{removeMutationResult:{reducer(x,{payload:S}){const _=lv(S);_ in x&&delete x[_]},prepare:$d()}},extraReducers(x){x.addCase(r.pending,(S,{meta:_,meta:{requestId:b,arg:w,startedTimeStamp:C}})=>{w.track&&(S[lv(_)]={requestId:b,status:"pending",endpointName:w.endpointName,startedTimeStamp:C})}).addCase(r.fulfilled,(S,{payload:_,meta:b})=>{b.arg.track&&pE(S,b,w=>{w.requestId===b.requestId&&(w.status="fulfilled",w.data=_,w.fulfilledTimeStamp=b.fulfilledTimeStamp)})}).addCase(r.rejected,(S,{payload:_,error:b,meta:w})=>{w.arg.track&&pE(S,w,C=>{C.requestId===w.requestId&&(C.status="rejected",C.error=_??b)})}).addMatcher(o,(S,_)=>{const{mutations:b}=a(_);for(const[w,C]of Object.entries(b))((C==null?void 0:C.status)==="fulfilled"||(C==null?void 0:C.status)==="rejected")&&w!==(C==null?void 0:C.requestId)&&(S[w]=C)})}}),d=yi({name:`${e}/invalidation`,initialState:qd,reducers:{updateProvidedBy:{reducer(x,S){var w,C;const{queryCacheKey:_,providedTags:b}=S.payload;for(const T of Object.values(x))for(const A of Object.values(T)){const M=A.indexOf(_);M!==-1&&A.splice(M,1)}for(const{type:T,id:A}of b){const M=(w=x[T]??(x[T]={}))[C=A||"__internal_without_id"]??(w[C]=[]);M.includes(_)||M.push(_)}},prepare:$d()}},extraReducers(x){x.addCase(c.actions.removeQueryResult,(S,{payload:{queryCacheKey:_}})=>{for(const b of Object.values(S))for(const w of Object.values(b)){const C=w.indexOf(_);C!==-1&&w.splice(C,1)}}).addMatcher(o,(S,_)=>{var w,C;const{provided:b}=a(_);for(const[T,A]of Object.entries(b))for(const[M,k]of Object.entries(A)){const I=(w=S[T]??(S[T]={}))[C=M||"__internal_without_id"]??(w[C]=[]);for(const R of k)I.includes(R)||I.push(R)}}).addMatcher(Ro(Ws(t),nx(t)),(S,_)=>{const b=VG(_,"providesTags",n,s),{queryCacheKey:w}=_.meta.arg;d.caseReducers.updateProvidedBy(S,d.actions.updateProvidedBy({queryCacheKey:w,providedTags:b}))})}}),h=yi({name:`${e}/subscriptions`,initialState:qd,reducers:{updateSubscriptionOptions(x,S){},unsubscribeQueryResult(x,S){},internal_getRTKQSubscriptions(){}}}),p=yi({name:`${e}/internalSubscriptions`,initialState:qd,reducers:{subscriptionsUpdated:{reducer(x,S){return DR(x,S.payload)},prepare:$d()}}}),v=yi({name:`${e}/config`,initialState:{online:rce(),focused:nce(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(x,{payload:S}){x.middlewareRegistered=x.middlewareRegistered==="conflict"||i!==S?"conflict":!0}},extraReducers:x=>{x.addCase(zk,S=>{S.online=!0}).addCase(FG,S=>{S.online=!1}).addCase(Nk,S=>{S.focused=!0}).addCase(BG,S=>{S.focused=!1}).addMatcher(o,S=>({...S}))}}),g=ex({queries:c.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:p.reducer,config:v.reducer}),m=(x,S)=>g(u.match(S)?void 0:x,S),y={...v.actions,...c.actions,...h.actions,...p.actions,...f.actions,...d.actions,resetApiState:u};return{reducer:m,actions:y}}var iu=Symbol.for("RTKQ/skipToken"),GG={status:"uninitialized"},vE=jv(GG,()=>{}),gE=jv(GG,()=>{});function hce({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=f=>vE,i=f=>gE;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:u,selectCachedArgsForQuery:c};function a(f){return{...f,...Kue(f.status)}}function o(f){return f[t]}function s(f,d){return h=>{const p=e({queryArgs:h,endpointDefinition:d,endpointName:f});return r(h===iu?n:m=>{var y,x;return((x=(y=o(m))==null?void 0:y.queries)==null?void 0:x[p])??vE},a)}}function l(){return f=>{let d;return typeof f=="object"?d=lv(f)??iu:d=f,r(d===iu?i:v=>{var g,m;return((m=(g=o(v))==null?void 0:g.mutations)==null?void 0:m[d])??gE},a)}}function u(f,d){const h=f[t],p=new Set;for(const v of d.map(OT)){const g=h.provided[v.type];if(!g)continue;let m=(v.id!==void 0?g[v.id]:sE(Object.values(g)))??[];for(const y of m)p.add(y)}return sE(Array.from(p.values()).map(v=>{const g=h.queries[v];return g?[{queryCacheKey:v,endpointName:g.endpointName,originalArgs:g.originalArgs}]:[]}))}function c(f,d){return Object.values(f[t].queries).filter(h=>(h==null?void 0:h.endpointName)===d&&h.status!=="uninitialized").map(h=>h.originalArgs)}}var pc=WeakMap?new WeakMap:void 0,mE=({endpointName:e,queryArgs:t})=>{let r="";const n=pc==null?void 0:pc.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=qa(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));qa(t)&&(pc==null||pc.set(t,i)),r=i}return`${e}(${r})`};function pce(...e){return function(r){const n=Qp(u=>{var c;return(c=r.extractRehydrationInfo)==null?void 0:c.call(r,u,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(u){let c=mE;if("serializeQueryArgs"in u.endpointDefinition){const f=u.endpointDefinition.serializeQueryArgs;c=d=>{const h=f(d);return typeof h=="string"?h:mE({...d,queryArgs:h})}}else r.serializeQueryArgs&&(c=r.serializeQueryArgs);return c(u)},tagTypes:[...r.tagTypes||[]]},a={endpointDefinitions:{},batch(u){u()},apiUid:OM(),extractRehydrationInfo:n,hasRehydrationInfo:Qp(u=>n(u)!=null)},o={injectEndpoints:l,enhanceEndpoints({addTagTypes:u,endpoints:c}){if(u)for(const f of u)i.tagTypes.includes(f)||i.tagTypes.push(f);if(c)for(const[f,d]of Object.entries(c))typeof d=="function"?d(a.endpointDefinitions[f]):Object.assign(a.endpointDefinitions[f]||{},d);return o}},s=e.map(u=>u.init(o,i,a));function l(u){const c=u.endpoints({query:f=>({...f,type:"query"}),mutation:f=>({...f,type:"mutation"})});for(const[f,d]of Object.entries(c)){if(u.overrideExisting!==!0&&f in a.endpointDefinitions){if(u.overrideExisting==="throw")throw new Error(Zr(39));typeof process<"u";continue}a.endpointDefinitions[f]=d;for(const h of s)h.injectEndpoint(f,d)}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function vce(e){for(let t in e)return!1;return!0}var gce=2147483647/1e3-1,mce=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions,s=Ro(o.match,r.fulfilled,r.rejected);function l(d){const h=i.currentSubscriptions[d];return!!h&&!vce(h)}const u={},c=(d,h,p)=>{var v;if(s(d)){const g=h.getState()[e],{queryCacheKey:m}=o.match(d)?d.payload:d.meta.arg;f(m,(v=g.queries[m])==null?void 0:v.endpointName,h,g.config)}if(t.util.resetApiState.match(d))for(const[g,m]of Object.entries(u))m&&clearTimeout(m),delete u[g];if(n.hasRehydrationInfo(d)){const g=h.getState()[e],{queries:m}=n.extractRehydrationInfo(d);for(const[y,x]of Object.entries(m))f(y,x==null?void 0:x.endpointName,h,g.config)}};function f(d,h,p,v){const g=n.endpointDefinitions[h],m=(g==null?void 0:g.keepUnusedDataFor)??v.keepUnusedDataFor;if(m===1/0)return;const y=Math.max(0,Math.min(m,gce));if(!l(d)){const x=u[d];x&&clearTimeout(x),u[d]=setTimeout(()=>{l(d)||p.dispatch(a({queryCacheKey:d})),delete u[d]},y*1e3)}}return c},yce=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:a,assertTagType:o,refetchQuery:s,internalState:l})=>{const{removeQueryResult:u}=a.internalActions,c=Ro(Ws(n),nx(n)),f=Ro(Ws(n,i),zf(n,i));let d=[];const h=(g,m)=>{c(g)?v(VG(g,"invalidatesTags",r,o),m):f(g)?v([],m):a.util.invalidateTags.match(g)&&v(Bk(g.payload,void 0,void 0,void 0,void 0,o),m)};function p(g){var m,y;for(const x in g.queries)if(((m=g.queries[x])==null?void 0:m.status)==="pending")return!0;for(const x in g.mutations)if(((y=g.mutations[x])==null?void 0:y.status)==="pending")return!0;return!1}function v(g,m){const y=m.getState(),x=y[e];if(d.push(...g),x.config.invalidationBehavior==="delayed"&&p(x))return;const S=d;if(d=[],S.length===0)return;const _=a.util.selectInvalidatedBy(y,S);t.batch(()=>{const b=Array.from(_.values());for(const{queryCacheKey:w}of b){const C=x.queries[w],T=l.currentSubscriptions[w]??{};C&&(Sf(T)===0?m.dispatch(u({queryCacheKey:w})):C.status!=="uninitialized"&&m.dispatch(s(C,w)))}})}return h},xce=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const a={},o=(d,h)=>{(r.internalActions.updateSubscriptionOptions.match(d)||r.internalActions.unsubscribeQueryResult.match(d))&&l(d.payload,h),(t.pending.match(d)||t.rejected.match(d)&&d.meta.condition)&&l(d.meta.arg,h),(t.fulfilled.match(d)||t.rejected.match(d)&&!d.meta.condition)&&s(d.meta.arg,h),r.util.resetApiState.match(d)&&c()};function s({queryCacheKey:d},h){const p=h.getState()[e],v=p.queries[d],g=i.currentSubscriptions[d];if(!v||v.status==="uninitialized")return;const{lowestPollingInterval:m,skipPollingIfUnfocused:y}=f(g);if(!Number.isFinite(m))return;const x=a[d];x!=null&&x.timeout&&(clearTimeout(x.timeout),x.timeout=void 0);const S=Date.now()+m;a[d]={nextPollTimestamp:S,pollingInterval:m,timeout:setTimeout(()=>{(p.config.focused||!y)&&h.dispatch(n(v,d)),s({queryCacheKey:d},h)},m)}}function l({queryCacheKey:d},h){const v=h.getState()[e].queries[d],g=i.currentSubscriptions[d];if(!v||v.status==="uninitialized")return;const{lowestPollingInterval:m}=f(g);if(!Number.isFinite(m)){u(d);return}const y=a[d],x=Date.now()+m;(!y||x<y.nextPollTimestamp)&&s({queryCacheKey:d},h)}function u(d){const h=a[d];h!=null&&h.timeout&&clearTimeout(h.timeout),delete a[d]}function c(){for(const d of Object.keys(a))u(d)}function f(d={}){let h=!1,p=Number.POSITIVE_INFINITY;for(let v in d)d[v].pollingInterval&&(p=Math.min(d[v].pollingInterval,p),h=d[v].skipPollingIfUnfocused||h);return{lowestPollingInterval:p,skipPollingIfUnfocused:h}}return o},Sce=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:a}=r.internalActions,o=(l,u)=>{Nk.match(l)&&s(u,"refetchOnFocus"),zk.match(l)&&s(u,"refetchOnReconnect")};function s(l,u){const c=l.getState()[e],f=c.queries,d=i.currentSubscriptions;t.batch(()=>{for(const h of Object.keys(d)){const p=f[h],v=d[h];if(!v||!p)continue;(Object.values(v).some(m=>m[u]===!0)||Object.values(v).every(m=>m[u]===void 0)&&c.config[u])&&(Sf(v)===0?l.dispatch(a({queryCacheKey:h})):p.status!=="uninitialized"&&l.dispatch(n(p,h)))}})}return o},yE=new Error("Promise never resolved before cacheEntryRemoved."),bce=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:a})=>{const o=yT(n),s=yT(i),l=Ws(n,i),u={},c=(h,p,v)=>{const g=f(h);if(n.pending.match(h)){const m=v[t].queries[g],y=p.getState()[t].queries[g];!m&&y&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId)}else if(i.pending.match(h))p.getState()[t].mutations[g]&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId);else if(l(h)){const m=u[g];m!=null&&m.valueResolved&&(m.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete m.valueResolved)}else if(e.internalActions.removeQueryResult.match(h)||e.internalActions.removeMutationResult.match(h)){const m=u[g];m&&(delete u[g],m.cacheEntryRemoved())}else if(e.util.resetApiState.match(h))for(const[m,y]of Object.entries(u))delete u[m],y.cacheEntryRemoved()};function f(h){return o(h)?h.meta.arg.queryCacheKey:s(h)?h.meta.arg.fixedCacheKey??h.meta.requestId:e.internalActions.removeQueryResult.match(h)?h.payload.queryCacheKey:e.internalActions.removeMutationResult.match(h)?lv(h.payload):""}function d(h,p,v,g,m){const y=r.endpointDefinitions[h],x=y==null?void 0:y.onCacheEntryAdded;if(!x)return;let S={};const _=new Promise(M=>{S.cacheEntryRemoved=M}),b=Promise.race([new Promise(M=>{S.valueResolved=M}),_.then(()=>{throw yE})]);b.catch(()=>{}),u[v]=S;const w=e.endpoints[h].select(y.type==="query"?p:v),C=g.dispatch((M,k,I)=>I),T={...g,getCacheEntry:()=>w(g.getState()),requestId:m,extra:C,updateCachedData:y.type==="query"?M=>g.dispatch(e.util.updateQueryData(h,p,M)):void 0,cacheDataLoaded:b,cacheEntryRemoved:_},A=x(p,T);Promise.resolve(A).catch(M=>{if(M!==yE)throw M})}return c},_ce=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=NM(r,n),a=zf(r,n),o=Ws(r,n),s={};return(u,c)=>{var f,d;if(i(u)){const{requestId:h,arg:{endpointName:p,originalArgs:v}}=u.meta,g=t.endpointDefinitions[p],m=g==null?void 0:g.onQueryStarted;if(m){const y={},x=new Promise((w,C)=>{y.resolve=w,y.reject=C});x.catch(()=>{}),s[h]=y;const S=e.endpoints[p].select(g.type==="query"?v:h),_=c.dispatch((w,C,T)=>T),b={...c,getCacheEntry:()=>S(c.getState()),requestId:h,extra:_,updateCachedData:g.type==="query"?w=>c.dispatch(e.util.updateQueryData(p,v,w)):void 0,queryFulfilled:x};m(v,b)}}else if(o(u)){const{requestId:h,baseQueryMeta:p}=u.meta;(f=s[h])==null||f.resolve({data:u.payload,meta:p}),delete s[h]}else if(a(u)){const{requestId:h,rejectedWithValue:p,baseQueryMeta:v}=u.meta;(d=s[h])==null||d.reject({error:u.payload??u.error,isUnhandledError:!p,meta:v}),delete s[h]}}},wce=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t)),typeof process<"u"},Cce=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:o,unsubscribeQueryResult:s}=e.internalActions,l=(h,p)=>{var g,m,y;if(o.match(p)){const{queryCacheKey:x,requestId:S,options:_}=p.payload;return(g=h==null?void 0:h[x])!=null&&g[S]&&(h[x][S]=_),!0}if(s.match(p)){const{queryCacheKey:x,requestId:S}=p.payload;return h[x]&&delete h[x][S],!0}if(e.internalActions.removeQueryResult.match(p))return delete h[p.payload.queryCacheKey],!0;if(t.pending.match(p)){const{meta:{arg:x,requestId:S}}=p,_=h[m=x.queryCacheKey]??(h[m]={});return _[`${S}_running`]={},x.subscribe&&(_[S]=x.subscriptionOptions??_[S]??{}),!0}let v=!1;if(t.fulfilled.match(p)||t.rejected.match(p)){const x=h[p.meta.arg.queryCacheKey]||{},S=`${p.meta.requestId}_running`;v||(v=!!x[S]),delete x[S]}if(t.rejected.match(p)){const{meta:{condition:x,arg:S,requestId:_}}=p;if(x&&S.subscribe){const b=h[y=S.queryCacheKey]??(h[y]={});b[_]=S.subscriptionOptions??b[_]??{},v=!0}}return v},u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:h=>{const v=u()[h]??{};return Sf(v)},isRequestSubscribed:(h,p)=>{var g;const v=u();return!!((g=v==null?void 0:v[h])!=null&&g[p])}};return(h,p)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(h))return i=r.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(h))return[!1,d];const v=l(r.currentSubscriptions,h);let g=!0;if(v){a||(a=setTimeout(()=>{const x=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,S]=NV(i,()=>x);p.next(e.internalActions.subscriptionsUpdated(S)),i=x,a=null},500));const m=typeof h.type=="string"&&!!h.type.startsWith(n),y=t.rejected.match(h)&&h.meta.condition&&!!h.meta.arg.subscribe;g=!m&&!y}return[g,!1]}};function Tce(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:a}=i,o={invalidateTags:un(`${t}/invalidateTags`)},s=f=>f.type.startsWith(`${t}/`),l=[wce,mce,yce,xce,bce,_ce];return{middleware:f=>{let d=!1;const p={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:s},v=l.map(y=>y(p)),g=Cce(p),m=Sce(p);return y=>x=>{if(!IV(x))return y(x);d||(d=!0,f.dispatch(n.internalActions.middlewareRegistered(a)));const S={...f,next:y},_=f.getState(),[b,w]=g(x,S,_);let C;if(b?C=y(x):C=w,f.getState()[t]&&(m(x,S,_),s(x)||i.hasRehydrationInfo(x)))for(let T of v)T(x,S,_);return C}},actions:o};function c(f,d,h={}){return r({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d,...h})}}function Zo(e,...t){return Object.assign(e,...t)}var xE=Symbol(),Ace=({createSelector:e=EM}={})=>({name:xE,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c},f){_Z();const d=z=>(typeof process<"u",z);Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:zk,onOffline:FG,onFocus:Nk,onFocusLost:BG},util:{}});const{queryThunk:h,mutationThunk:p,patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,buildMatchThunkActions:x}=fce({baseQuery:r,reducerPath:i,context:f,api:t,serializeQueryArgs:a,assertTagType:d}),{reducer:S,actions:_}=dce({context:f,queryThunk:h,mutationThunk:p,reducerPath:i,assertTagType:d,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:c}});Zo(t.util,{patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,resetApiState:_.resetApiState}),Zo(t.internalActions,_);const{middleware:b,actions:w}=Tce({reducerPath:i,context:f,queryThunk:h,mutationThunk:p,api:t,assertTagType:d});Zo(t.util,w),Zo(t,{reducer:S,middleware:b});const{buildQuerySelector:C,buildMutationSelector:T,selectInvalidatedBy:A,selectCachedArgsForQuery:M}=hce({serializeQueryArgs:a,reducerPath:i,createSelector:e});Zo(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:M});const{buildInitiateQuery:k,buildInitiateMutation:I,getRunningMutationThunk:R,getRunningMutationsThunk:L,getRunningQueriesThunk:N,getRunningQueryThunk:$}=cce({queryThunk:h,mutationThunk:p,api:t,serializeQueryArgs:a,context:f});return Zo(t.util,{getRunningMutationThunk:R,getRunningMutationsThunk:L,getRunningQueryThunk:$,getRunningQueriesThunk:N}),{name:xE,injectEndpoint(z,V){var G;const E=t;(G=E.endpoints)[z]??(G[z]={}),$G(V)?Zo(E.endpoints[z],{name:z,select:C(z,V),initiate:k(z,V)},x(h,z)):sce(V)&&Zo(E.endpoints[z],{name:z,select:T(),initiate:I(z)},x(p,z))}}}});function Mce(e){return e.type==="query"}function kce(e){return e.type==="mutation"}function om(e,...t){return Object.assign(e,...t)}function Ob(e){return e.replace(e[0],e[0].toUpperCase())}var vc=WeakMap?new WeakMap:void 0,Ice=({endpointName:e,queryArgs:t})=>{let r="";const n=vc==null?void 0:vc.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=qa(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));qa(t)&&(vc==null||vc.set(t,i)),r=i}return`${e}(${r})`},Nb=Symbol();function SE(e,t,r,n){const i=O.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),a=O.useRef(i);return O.useEffect(()=>{a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}function zb(e){const t=O.useRef(e);return O.useEffect(()=>{zs(t.current,e)||(t.current=e)},[e]),zs(t.current,e)?t.current:e}var Pce=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dce=Pce(),Rce=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Lce=Rce(),Ece=()=>Dce||Lce?O.useLayoutEffect:O.useEffect,Oce=Ece(),Nce=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:NG.pending}:e;function zce({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:a,createSelector:o},serializeQueryArgs:s,context:l}){const u=a?p=>p():O.useEffect;return{buildQueryHooks:d,buildMutationHook:h,usePrefetch:f};function c(p,v,g){if(v!=null&&v.endpointName&&p.isUninitialized){const{endpointName:b}=v,w=l.endpointDefinitions[b];s({queryArgs:v.originalArgs,endpointDefinition:w,endpointName:b})===s({queryArgs:g,endpointDefinition:w,endpointName:b})&&(v=void 0)}let m=p.isSuccess?p.data:v==null?void 0:v.data;m===void 0&&(m=p.data);const y=m!==void 0,x=p.isLoading,S=(!v||v.isLoading||v.isUninitialized)&&!y&&x,_=p.isSuccess||x&&y;return{...p,data:m,currentData:p.data,isFetching:x,isLoading:S,isSuccess:_}}function f(p,v){const g=r(),m=zb(v);return O.useCallback((y,x)=>g(e.util.prefetch(p,y,{...m,...x})),[p,g,m])}function d(p){const v=(y,{refetchOnReconnect:x,refetchOnFocus:S,refetchOnMountOrArgChange:_,skip:b=!1,pollingInterval:w=0,skipPollingIfUnfocused:C=!1}={})=>{const{initiate:T}=e.endpoints[p],A=r(),M=O.useRef(void 0);if(!M.current){const E=A(e.internalActions.internal_getRTKQSubscriptions());M.current=E}const k=SE(b?iu:y,Ice,l.endpointDefinitions[p],p),I=zb({refetchOnReconnect:x,refetchOnFocus:S,pollingInterval:w,skipPollingIfUnfocused:C}),R=O.useRef(!1),L=O.useRef(void 0);let{queryCacheKey:N,requestId:$}=L.current||{},z=!1;N&&$&&(z=M.current.isRequestSubscribed(N,$));const V=!z&&R.current;return u(()=>{R.current=z}),u(()=>{V&&(L.current=void 0)},[V]),u(()=>{var W;const E=L.current;if(typeof process<"u",k===iu){E==null||E.unsubscribe(),L.current=void 0;return}const G=(W=L.current)==null?void 0:W.subscriptionOptions;if(!E||E.arg!==k){E==null||E.unsubscribe();const F=A(T(k,{subscriptionOptions:I,forceRefetch:_}));L.current=F}else I!==G&&E.updateSubscriptionOptions(I)},[A,T,_,k,I,V]),O.useEffect(()=>()=>{var E;(E=L.current)==null||E.unsubscribe(),L.current=void 0},[]),O.useMemo(()=>({refetch:()=>{var E;if(!L.current)throw new Error(Zr(38));return(E=L.current)==null?void 0:E.refetch()}}),[])},g=({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S=0,skipPollingIfUnfocused:_=!1}={})=>{const{initiate:b}=e.endpoints[p],w=r(),[C,T]=O.useState(Nb),A=O.useRef(void 0),M=zb({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S,skipPollingIfUnfocused:_});u(()=>{var L,N;const R=(L=A.current)==null?void 0:L.subscriptionOptions;M!==R&&((N=A.current)==null||N.updateSubscriptionOptions(M))},[M]);const k=O.useRef(M);u(()=>{k.current=M},[M]);const I=O.useCallback(function(R,L=!1){let N;return t(()=>{var $;($=A.current)==null||$.unsubscribe(),A.current=N=w(b(R,{subscriptionOptions:k.current,forceRefetch:!L})),T(R)}),N},[w,b]);return O.useEffect(()=>()=>{var R;(R=A==null?void 0:A.current)==null||R.unsubscribe()},[]),O.useEffect(()=>{C!==Nb&&!A.current&&I(C,!0)},[C,I]),O.useMemo(()=>[I,C],[I,C])},m=(y,{skip:x=!1,selectFromResult:S}={})=>{const{select:_}=e.endpoints[p],b=SE(x?iu:y,s,l.endpointDefinitions[p],p),w=O.useRef(void 0),C=O.useMemo(()=>o([_(b),(I,R)=>R,I=>b],c,{memoizeOptions:{resultEqualityCheck:zs}}),[_,b]),T=O.useMemo(()=>S?o([C],S,{devModeChecks:{identityFunctionCheck:"never"}}):C,[C,S]),A=n(I=>T(I,w.current),zs),M=i(),k=C(M.getState(),w.current);return Oce(()=>{w.current=k},[k]),A};return{useQueryState:m,useQuerySubscription:v,useLazyQuerySubscription:g,useLazyQuery(y){const[x,S]=g(y),_=m(S,{...y,skip:S===Nb}),b=O.useMemo(()=>({lastArg:S}),[S]);return O.useMemo(()=>[x,_,b],[x,_,b])},useQuery(y,x){const S=v(y,x),_=m(y,{selectFromResult:y===iu||x!=null&&x.skip?void 0:Nce,...x}),{data:b,status:w,isLoading:C,isSuccess:T,isError:A,error:M}=_;return O.useDebugValue({data:b,status:w,isLoading:C,isSuccess:T,isError:A,error:M}),O.useMemo(()=>({..._,...S}),[_,S])}}}function h(p){return({selectFromResult:v,fixedCacheKey:g}={})=>{const{select:m,initiate:y}=e.endpoints[p],x=r(),[S,_]=O.useState();O.useEffect(()=>()=>{S!=null&&S.arg.fixedCacheKey||S==null||S.reset()},[S]);const b=O.useCallback(function(G){const W=x(y(G,{fixedCacheKey:g}));return _(W),W},[x,y,g]),{requestId:w}=S||{},C=O.useMemo(()=>m({fixedCacheKey:g,requestId:S==null?void 0:S.requestId}),[g,S,m]),T=O.useMemo(()=>v?o([C],v):C,[v,C]),A=n(T,zs),M=g==null?S==null?void 0:S.arg.originalArgs:void 0,k=O.useCallback(()=>{t(()=>{S&&_(void 0),g&&x(e.internalActions.removeMutationResult({requestId:w,fixedCacheKey:g}))})},[x,g,S,w]),{endpointName:I,data:R,status:L,isLoading:N,isSuccess:$,isError:z,error:V}=A;O.useDebugValue({endpointName:I,data:R,status:L,isLoading:N,isSuccess:$,isError:z,error:V});const E=O.useMemo(()=>({...A,originalArgs:M,reset:k}),[A,M,k]);return O.useMemo(()=>[b,E],[b,E])}}}var Bce=Symbol(),Fce=({batch:e=fQ,hooks:t={useDispatch:i6,useSelector:qV,useStore:n6},createSelector:r=EM,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:Bce,init(a,{serializeQueryArgs:o},s){const l=a,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:f}=zce({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:o,context:s});return om(l,{usePrefetch:f}),om(s,{batch:e}),{injectEndpoint(d,h){if(Mce(h)){const{useQuery:p,useLazyQuery:v,useLazyQuerySubscription:g,useQueryState:m,useQuerySubscription:y}=u(d);om(l.endpoints[d],{useQuery:p,useLazyQuery:v,useLazyQuerySubscription:g,useQueryState:m,useQuerySubscription:y}),a[`use${Ob(d)}Query`]=p,a[`useLazy${Ob(d)}Query`]=v}else if(kce(h)){const p=c(d);om(l.endpoints[d],{useMutation:p}),a[`use${Ob(d)}Mutation`]=p}}}}}),$ce=pce(Ace(),Fce());const O0=$ce({baseQuery:oce(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:of}),getTasks:e.query({query:()=>"tasks",transformResponse:of}),getExceptions:e.query({query:()=>"exceptions",transformResponse:of}),getLogs:e.query({query:()=>"logs",transformResponse:of}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:jue(YR(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:YR(t)})})})}),{useGetStatsQuery:Vce,useGetTasksQuery:Gce,useGetExceptionsQuery:Hce,useGetLogsQuery:Wce,useStartSwarmMutation:HG,useUpdateUserSettingsMutation:jce}=O0;function ng(e,{payload:t}){return Wue(e,t)}const Uce=Ua,WG=yi({name:"swarm",initialState:Uce,reducers:{setSwarm:ng}}),qx=WG.actions,Yce=WG.reducer;function Xce({onSubmit:e,userCount:t,spawnRate:r,setSwarm:n}){const[i]=HG(),a=o=>{e(),i(o),n(o)};return P.jsxs(rg,{maxWidth:"md",sx:{my:2},children:[P.jsx(dt,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),P.jsx(Ok,{onSubmit:a,children:P.jsxs(Pt,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[P.jsx(Na,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),P.jsx(Na,{defaultValue:r||1,label:"Ramp up (users started/second)",name:"spawnRate"}),P.jsx(ao,{size:"large",type:"submit",variant:"contained",children:"Update"})]})})]})}const qce=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),Zce={setSwarm:qx.setSwarm},Kce=Fn(qce,Zce)(Xce);function Qce(){const[e,t]=O.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(ao,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),P.jsx(Yx,{onClose:()=>t(!1),open:e,children:P.jsx(Kce,{onSubmit:()=>t(!1)})})]})}var Fk={},Jce=Xu;Object.defineProperty(Fk,"__esModule",{value:!0});var Zx=Fk.default=void 0,efe=Jce(qu()),tfe=P,rfe=(0,efe.default)((0,tfe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");Zx=Fk.default=rfe;function $k({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:a="medium",sx:o,...s}){return P.jsxs(uG,{size:a,sx:o,children:[P.jsx(Mk,{htmlFor:t,shrink:!0,children:e}),P.jsx(Dk,{...s,defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((l,u)=>P.jsx("option",{value:l,children:l},`option-${l}-${u}`))})]})}function nfe({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=s6(e),o=n?`${a} (${n})`:a;return r?P.jsx($k,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?P.jsx(fG,{control:P.jsx(LT,{defaultChecked:t}),label:o,name:e}):P.jsx(Na,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function ife({extraOptions:e}){return P.jsxs(hk,{children:[P.jsx(vk,{expandIcon:P.jsx(Zx,{}),children:P.jsx(dt,{children:"Custom parameters"})}),P.jsx(pk,{children:P.jsx(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>P.jsx(nfe,{label:t,...r},`valid-parameter-${n}`))})})]})}var Vk={},afe=Xu;Object.defineProperty(Vk,"__esModule",{value:!0});var jG=Vk.default=void 0,ofe=afe(qu()),sfe=P,lfe=(0,ofe.default)((0,sfe.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");jG=Vk.default=lfe;function ufe({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return P.jsx(Ok,{onSubmit:r,children:P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[P.jsx(dt,{children:`${t.userClassName} Settings`}),P.jsx($k,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>P.jsx(Na,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:s6(a),name:a},`user-to-edit-${a}`)),P.jsx(ao,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function cfe({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=O.useState(!1),[l,u]=O.useState(),[c]=jce(),f=g=>{l&&(i({users:{...a,[l.userClassName]:g}}),c({...g,userClassName:l.userClassName}),s(!1))},d=g=>()=>r.includes(g)?n(r.filter(m=>m!==g)):n(r.concat(g)),h=r.length,p=e.length,v=g=>g.target.checked?n(e):n([]);return P.jsxs(P.Fragment,{children:[P.jsx(Pt,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:P.jsxs(Pt,{sx:{maxHeight:"30vh",overflow:"auto"},children:[P.jsx(Mk,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),P.jsx(dG,{children:P.jsx(CG,{component:nl,children:P.jsxs(_G,{children:[P.jsx(TG,{children:P.jsx(E0,{children:P.jsx(Xl,{colSpan:4,padding:"checkbox",children:P.jsx(LT,{checked:p>0&&h===p,indeterminate:h>0&&h<p,onChange:v})})})}),P.jsx(wG,{children:Object.entries(a).map(([g,m])=>P.jsxs(E0,{hover:!0,children:[P.jsx(Xl,{onClick:d(g),padding:"checkbox",children:P.jsx(LT,{checked:r.includes(g)})}),P.jsx(Xl,{children:g}),P.jsx(Xl,{children:P.jsx(dt,{variant:"subtitle2",children:m.host})}),P.jsx(Xl,{align:"right",children:P.jsx(Jv,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:P.jsx(jG,{})})})]},`user-class-${g}`))})]})})})]})}),P.jsx(Yx,{onClose:()=>s(!1),open:o,children:l&&P.jsx(ufe,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const ffe={setSwarm:qx.setSwarm},dfe=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),hfe=Fn(dfe,ffe)(cfe);function pfe({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=HG(),[d,h]=O.useState(t),p=v=>{l({state:qr.RUNNING,host:v.host||r,runTime:v.runTime,spawnRate:Number(v.spawnRate)||null,numUsers:Number(v.userCount)||null}),f({...v,...u&&d?{userClasses:d}:{}})};return P.jsxs(rg,{maxWidth:"md",sx:{my:2},children:[P.jsx(dt,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&P.jsx(Pt,{marginBottom:2,marginTop:2,children:P.jsx(hfe,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),P.jsx(Ok,{onSubmit:p,children:P.jsxs(Pt,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&P.jsx($k,{label:"Shape Class",name:"shapeClass",options:e}),P.jsx(Na,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),P.jsx(Na,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),P.jsx(Na,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),P.jsxs(hk,{children:[P.jsx(vk,{expandIcon:P.jsx(Zx,{}),children:P.jsx(dt,{children:"Advanced options"})}),P.jsx(pk,{children:P.jsx(Na,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!OG(n)&&P.jsx(ife,{extraOptions:n}),P.jsx(ao,{size:"large",type:"submit",variant:"contained",children:"Start"})]})})]})}const vfe=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),gfe={setSwarm:qx.setSwarm},UG=Fn(vfe,gfe)(pfe);function mfe(){const[e,t]=O.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(ao,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),P.jsx(Yx,{onClose:()=>t(!1),open:e,children:P.jsx(UG,{})})]})}function yfe(){const e=()=>{fetch("stats/reset")};return P.jsx(ao,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function xfe(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return P.jsx(ao,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Sfe(){const e=Ni(({swarm:t})=>t.state);return e===qr.READY?null:P.jsxs(Pt,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===qr.STOPPED?P.jsx(mfe,{}):P.jsxs(P.Fragment,{children:[P.jsx(Qce,{}),P.jsx(xfe,{})]}),P.jsx(yfe,{})]})}function bfe(){return P.jsx(sne,{position:"static",children:P.jsx(rg,{maxWidth:"xl",children:P.jsxs(jle,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[P.jsx(Ur,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:P.jsx(AG,{})}),P.jsxs(Pt,{sx:{display:"flex",columnGap:6},children:[P.jsx(Xue,{}),P.jsx(Sfe,{}),P.jsx(RG,{})]})]})})})}function _fe({children:e}){return P.jsxs(P.Fragment,{children:[P.jsxs(Pt,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[P.jsx(bfe,{}),P.jsx("main",{children:e})]}),P.jsx(Hue,{})]})}const YG=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),XG="logViewer";function uv(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=O.useRef(e);O.useEffect(()=>{i.current=e},[e]),O.useEffect(()=>{if(!r)return;n&&i.current();const a=setInterval(()=>i.current(),t);return()=>{clearInterval(a)}},[t,r])}const wfe={},qG=yi({name:"notification",initialState:wfe,reducers:{setNotification:ng}}),ZG=qG.actions,Cfe=qG.reducer;function Tfe(e,{key:t,shouldNotify:r}){const n=xo(ZG.setNotification),i=Ni(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{e.length>0&&e.length<localStorage[a]&&(localStorage[a]=e.length),e.length>(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r(a))&&(n({[t]:!0}),localStorage[a]=e.length)},[e])}const Afe={master:[],workers:{}},KG=yi({name:"logViewer",initialState:Afe,reducers:{setLogs:ng}}),Mfe=KG.actions,kfe=KG.reducer,QG=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?QG(r):r),[]),Ife={master:[],workers:{}};function Pfe(){const e=Ni(({swarm:l})=>l),t=xo(Mfe.setLogs),{data:r,refetch:n}=Wce(),i=r||Ife,a=O.useMemo(()=>QG(Object.values(i.workers)),[i.workers]),o=O.useMemo(()=>[...i.master].concat(a),[i.master,i.workers]),s=O.useCallback(l=>o.slice(localStorage[l]).some(YG),[o]);return uv(n,5e3,{shouldRunInterval:e.state===qr.SPAWNING||e.state==qr.RUNNING}),Tfe(o,{key:XG,shouldNotify:s}),O.useEffect(()=>{t(i)},[i]),i}var Gk={},Dfe=Xu;Object.defineProperty(Gk,"__esModule",{value:!0});var Hk=Gk.default=void 0,Rfe=Dfe(qu()),bE=P,Lfe=(0,Rfe.default)([(0,bE.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,bE.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");Hk=Gk.default=Lfe;function Efe(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Ofe=/[ \t\n\f\r]/g;function Nfe(e){return typeof e=="object"?e.type==="text"?_E(e.value):!1:_E(e)}function _E(e){return e.replace(Ofe,"")===""}class ig{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}ig.prototype.property={};ig.prototype.normal={};ig.prototype.space=null;function JG(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new ig(r,n,t)}function zT(e){return e.toLowerCase()}class zi{constructor(t,r){this.property=t,this.attribute=r}}zi.prototype.space=null;zi.prototype.boolean=!1;zi.prototype.booleanish=!1;zi.prototype.overloadedBoolean=!1;zi.prototype.number=!1;zi.prototype.commaSeparated=!1;zi.prototype.spaceSeparated=!1;zi.prototype.commaOrSpaceSeparated=!1;zi.prototype.mustUseProperty=!1;zi.prototype.defined=!1;let zfe=0;const et=Zu(),cr=Zu(),eH=Zu(),ue=Zu(),zt=Zu(),bf=Zu(),Gn=Zu();function Zu(){return 2**++zfe}const BT=Object.freeze(Object.defineProperty({__proto__:null,boolean:et,booleanish:cr,commaOrSpaceSeparated:Gn,commaSeparated:bf,number:ue,overloadedBoolean:eH,spaceSeparated:zt},Symbol.toStringTag,{value:"Module"})),Bb=Object.keys(BT);class Wk extends zi{constructor(t,r,n,i){let a=-1;if(super(t,r),wE(this,"space",i),typeof n=="number")for(;++a<Bb.length;){const o=Bb[a];wE(this,Bb[a],(n&BT[o])===BT[o])}}}Wk.prototype.defined=!0;function wE(e,t,r){r&&(e[t]=r)}const Bfe={}.hasOwnProperty;function ud(e){const t={},r={};let n;for(n in e.properties)if(Bfe.call(e.properties,n)){const i=e.properties[n],a=new Wk(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[zT(n)]=n,r[zT(a.attribute)]=n}return new ig(t,r,e.space)}const tH=ud({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),rH=ud({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function nH(e,t){return t in e?e[t]:t}function iH(e,t){return nH(e,t.toLowerCase())}const aH=ud({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:iH,properties:{xmlns:null,xmlnsXLink:null}}),oH=ud({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:cr,ariaAutoComplete:null,ariaBusy:cr,ariaChecked:cr,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:zt,ariaCurrent:null,ariaDescribedBy:zt,ariaDetails:null,ariaDisabled:cr,ariaDropEffect:zt,ariaErrorMessage:null,ariaExpanded:cr,ariaFlowTo:zt,ariaGrabbed:cr,ariaHasPopup:null,ariaHidden:cr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:zt,ariaLevel:ue,ariaLive:null,ariaModal:cr,ariaMultiLine:cr,ariaMultiSelectable:cr,ariaOrientation:null,ariaOwns:zt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:cr,ariaReadOnly:cr,ariaRelevant:null,ariaRequired:cr,ariaRoleDescription:zt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:cr,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null}}),Ffe=ud({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:iH,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bf,acceptCharset:zt,accessKey:zt,action:null,allow:null,allowFullScreen:et,allowPaymentRequest:et,allowUserMedia:et,alt:null,as:null,async:et,autoCapitalize:null,autoComplete:zt,autoFocus:et,autoPlay:et,blocking:zt,capture:et,charSet:null,checked:et,cite:null,className:zt,cols:ue,colSpan:null,content:null,contentEditable:cr,controls:et,controlsList:zt,coords:ue|bf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:et,defer:et,dir:null,dirName:null,disabled:et,download:eH,draggable:cr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:et,formTarget:null,headers:zt,height:ue,hidden:et,high:ue,href:null,hrefLang:null,htmlFor:zt,httpEquiv:zt,id:null,imageSizes:null,imageSrcSet:null,inert:et,inputMode:null,integrity:null,is:null,isMap:et,itemId:null,itemProp:zt,itemRef:zt,itemScope:et,itemType:zt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:et,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:et,muted:et,name:null,nonce:null,noModule:et,noValidate:et,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:et,optimum:ue,pattern:null,ping:zt,placeholder:null,playsInline:et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:et,referrerPolicy:null,rel:zt,required:et,reversed:et,rows:ue,rowSpan:ue,sandbox:zt,scope:null,scoped:et,seamless:et,selected:et,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:cr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:et,useMap:null,value:cr,width:ue,wrap:null,align:null,aLink:null,archive:zt,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:et,declare:et,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:et,noHref:et,noShade:et,noWrap:et,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:cr,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:et,disableRemotePlayback:et,prefix:null,property:null,results:ue,security:null,unselectable:null}}),$fe=ud({space:"svg",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"},transform:nH,properties:{about:Gn,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:zt,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:et,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:bf,g2:bf,glyphName:bf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:Gn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,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:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:zt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gn,rev:Gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gn,requiredFeatures:Gn,requiredFonts:Gn,requiredFormats:Gn,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Gn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Vfe=/^data[-\w.:]+$/i,CE=/-[a-z]/g,Gfe=/[A-Z]/g;function Hfe(e,t){const r=zT(t);let n=t,i=zi;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Vfe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(CE,jfe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!CE.test(a)){let o=a.replace(Gfe,Wfe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Wk}return new i(n,t)}function Wfe(e){return"-"+e.toLowerCase()}function jfe(e){return e.charAt(1).toUpperCase()}const Ufe={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"},Yfe=JG([rH,tH,aH,oH,Ffe],"html"),sH=JG([rH,tH,aH,oH,$fe],"svg");function Xfe(e){return e.join(" ").trim()}var jk={exports:{}},TE=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,qfe=/\n/g,Zfe=/^\s*/,Kfe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Qfe=/^:\s*/,Jfe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ede=/^[;\s]*/,tde=/^\s+|\s+$/g,rde=`
142
+ ${e.palette.mode==="light"?iv(Xt(e.palette.divider,1),.88):nv(Xt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${kle.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Xl=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ge(n,Ile),h=O.useContext(bG),p=O.useContext(Ux),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let m=l;g==="td"?m=void 0:!m&&v&&(m="col");const y=f||p&&p.variant,x=B({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),S=Ple(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),P.jsx(Dle,B({as:g,ref:r,className:ye(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))});function Rle(e){return ze("MuiTableContainer",e)}Fe("MuiTableContainer",["root"]);const Lle=["className","component"],Ele=e=>{const{classes:t}=e;return Be({root:["root"]},Rle,t)},Ole=le("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),CG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ge(n,Lle),s=B({},n,{component:a}),l=Ele(s);return P.jsx(Ole,B({ref:r,as:a,className:ye(l.root,i),ownerState:s},o))});function Nle(e){return ze("MuiTableHead",e)}Fe("MuiTableHead",["root"]);const zle=["className","component"],Ble=e=>{const{classes:t}=e;return Be({root:["root"]},Nle,t)},Fle=le("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),$le={variant:"head"},eE="thead",TG=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableHead"}),{className:i,component:a=eE}=n,o=ge(n,zle),s=B({},n,{component:a}),l=Ble(s);return P.jsx(Ux.Provider,{value:$le,children:P.jsx(Fle,B({as:a,className:ye(l.root,i),ref:r,role:a===eE?null:"rowgroup",ownerState:s},o))})});function Vle(e){return ze("MuiToolbar",e)}Fe("MuiToolbar",["root","gutters","regular","dense"]);const Gle=["className","component","disableGutters","variant"],Hle=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Be({root:["root",!r&&"gutters",n]},Vle,t)},Wle=le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>B({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),jle=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ge(n,Gle),u=B({},n,{component:a,disableGutters:o,variant:s}),c=Hle(u);return P.jsx(Wle,B({as:a,className:ye(c.root,i),ref:r,ownerState:u},l))}),Ule=Oi(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Yle=Oi(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Xle(e){return ze("MuiTableRow",e)}const tE=Fe("MuiTableRow",["root","selected","hover","head","footer"]),qle=["className","component","hover","selected"],Zle=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Be({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Xle,t)},Kle=le("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${tE.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xt(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}))`:Xt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),rE="tr",E0=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTableRow"}),{className:i,component:a=rE,hover:o=!1,selected:s=!1}=n,l=ge(n,qle),u=O.useContext(Ux),c=B({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Zle(c);return P.jsx(Kle,B({as:a,ref:r,className:ye(f.root,i),role:a===rE?null:"row",ownerState:c},l))});function Qle(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Jle(e,t,r,n={},i=()=>{}){const{ease:a=Qle,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const eue=["onChange"],tue={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function rue(e){const{onChange:t}=e,r=ge(e,eue),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ua(()=>{const o=Xv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Za(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),P.jsx("div",B({style:tue,ref:i},r))}function nue(e){return ze("MuiTabScrollButton",e)}const iue=Fe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),aue=["className","slots","slotProps","direction","orientation","disabled"],oue=e=>{const{classes:t,orientation:r,disabled:n}=e;return Be({root:["root",r,n&&"disabled"]},nue,t)},sue=le(Yu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>B({width:40,flexShrink:0,opacity:.8,[`&.${iue.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),lue=O.forwardRef(function(t,r){var n,i;const a=$e({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ge(a,aue),d=Uu().direction==="rtl",h=B({isRtl:d},a),p=oue(h),v=(n=s.StartScrollButtonIcon)!=null?n:Ule,g=(i=s.EndScrollButtonIcon)!=null?i:Yle,m=fa({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=fa({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return P.jsx(sue,B({component:"div",className:ye(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?P.jsx(v,B({},m)):P.jsx(g,B({},y))}))});function uue(e){return ze("MuiTabs",e)}const Lb=Fe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),cue=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],nE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,iE=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,im=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},fue=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Be({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},uue,l)},due=le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Lb.scrollButtons}`]:t.scrollButtons},{[`& .${Lb.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>B({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Lb.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),hue=le("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>B({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),pue=le("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>B({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),vue=le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>B({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),gue=le(rue)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),aE={},mue=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTabs"}),i=Uu(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:v,orientation:g="horizontal",ScrollButtonComponent:m=lue,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:T,variant:A="standard",visibleScrollbar:M=!1}=n,k=ge(n,cue),I=A==="scrollable",R=g==="vertical",L=R?"scrollTop":"scrollLeft",N=R?"top":"left",$=R?"bottom":"right",z=R?"clientHeight":"clientWidth",V=R?"height":"width",E=B({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:R,scrollButtons:y,textColor:C,variant:A,visibleScrollbar:M,fixed:!I,hideScrollbar:I&&!M,scrollableX:I&&!R,scrollableY:I&&R,centered:u&&!I,scrollButtonsHideMobile:!h}),G=fue(E),W=fa({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:E}),F=fa({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:E}),[Y,J]=O.useState(!1),[j,ee]=O.useState(aE),[Q,te]=O.useState(!1),[ae,K]=O.useState(!1),[ne,me]=O.useState(!1),[pe,Me]=O.useState({overflow:"hidden",scrollbarWidth:0}),je=new Map,Ue=O.useRef(null),rt=O.useRef(null),ot=()=>{const de=Ue.current;let De;if(de){const mt=de.getBoundingClientRect();De={clientWidth:de.clientWidth,scrollLeft:de.scrollLeft,scrollTop:de.scrollTop,scrollLeftNormalized:IQ(de,i.direction),scrollWidth:de.scrollWidth,top:mt.top,bottom:mt.bottom,left:mt.left,right:mt.right}}let qe;if(de&&T!==!1){const mt=rt.current.children;if(mt.length>0){const wr=mt[je.get(T)];qe=wr?wr.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},st=Ji(()=>{const{tabsMeta:de,tabMeta:De}=ot();let qe=0,mt;if(R)mt="top",De&&de&&(qe=De.top-de.top+de.scrollTop);else if(mt=a?"right":"left",De&&de){const ma=a?de.scrollLeftNormalized+de.clientWidth-de.scrollWidth:de.scrollLeft;qe=(a?-1:1)*(De[mt]-de[mt]+ma)}const wr={[mt]:qe,[V]:De?De[V]:0};if(isNaN(j[mt])||isNaN(j[V]))ee(wr);else{const ma=Math.abs(j[mt]-wr[mt]),ac=Math.abs(j[V]-wr[V]);(ma>=1||ac>=1)&&ee(wr)}}),Xe=(de,{animation:De=!0}={})=>{De?Jle(L,Ue.current,de,{duration:i.transitions.duration.standard}):Ue.current[L]=de},Vt=de=>{let De=Ue.current[L];R?De+=de:(De+=de*(a?-1:1),De*=a&&f6()==="reverse"?-1:1),Xe(De)},Tt=()=>{const de=Ue.current[z];let De=0;const qe=Array.from(rt.current.children);for(let mt=0;mt<qe.length;mt+=1){const wr=qe[mt];if(De+wr[z]>de){mt===0&&(De=de);break}De+=wr[z]}return De},lt=()=>{Vt(-1*Tt())},X=()=>{Vt(Tt())},ie=O.useCallback(de=>{Me({overflow:null,scrollbarWidth:de})},[]),Pe=()=>{const de={};de.scrollbarSizeListener=I?P.jsx(gue,{onChange:ie,className:ye(G.scrollableX,G.hideScrollbar)}):null;const qe=I&&(y==="auto"&&(Q||ae)||y===!0);return de.scrollButtonStart=qe?P.jsx(m,B({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:g,direction:a?"right":"left",onClick:lt,disabled:!Q},w,{className:ye(G.scrollButtons,w.className)})):null,de.scrollButtonEnd=qe?P.jsx(m,B({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:g,direction:a?"left":"right",onClick:X,disabled:!ae},w,{className:ye(G.scrollButtons,w.className)})):null,de},be=Ji(de=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[N]<De[N]){const mt=De[L]+(qe[N]-De[N]);Xe(mt,{animation:de})}else if(qe[$]>De[$]){const mt=De[L]+(qe[$]-De[$]);Xe(mt,{animation:de})}}}),he=Ji(()=>{I&&y!==!1&&me(!ne)});O.useEffect(()=>{const de=Xv(()=>{Ue.current&&st()}),De=Za(Ue.current);De.addEventListener("resize",de);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(de),Array.from(rt.current.children).forEach(mt=>{qe.observe(mt)})),()=>{de.clear(),De.removeEventListener("resize",de),qe&&qe.disconnect()}},[st]),O.useEffect(()=>{const de=Array.from(rt.current.children),De=de.length;if(typeof IntersectionObserver<"u"&&De>0&&I&&y!==!1){const qe=de[0],mt=de[De-1],wr={root:Ue.current,threshold:.99},ma=oc=>{te(!oc[0].isIntersecting)},ac=new IntersectionObserver(ma,wr);ac.observe(qe);const Ig=oc=>{K(!oc[0].isIntersecting)},kd=new IntersectionObserver(Ig,wr);return kd.observe(mt),()=>{ac.disconnect(),kd.disconnect()}}},[I,y,ne,c==null?void 0:c.length]),O.useEffect(()=>{J(!0)},[]),O.useEffect(()=>{st()}),O.useEffect(()=>{be(aE!==j)},[be,j]),O.useImperativeHandle(l,()=>({updateIndicator:st,updateScrollButtons:he}),[st,he]);const pt=P.jsx(vue,B({},b,{className:ye(G.indicator,b.className),ownerState:E,style:B({},j,b.style)}));let Qt=0;const _e=O.Children.map(c,de=>{if(!O.isValidElement(de))return null;const De=de.props.value===void 0?Qt:de.props.value;je.set(De,Qt);const qe=De===T;return Qt+=1,O.cloneElement(de,B({fullWidth:A==="fullWidth",indicator:qe&&!Y&&pt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Qt===1&&T===!1&&!de.props.tabIndex?{tabIndex:0}:{}))}),it=de=>{const De=rt.current,qe=Nr(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let wr=g==="horizontal"?"ArrowLeft":"ArrowUp",ma=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(wr="ArrowRight",ma="ArrowLeft"),de.key){case wr:de.preventDefault(),im(De,qe,iE);break;case ma:de.preventDefault(),im(De,qe,nE);break;case"Home":de.preventDefault(),im(De,null,nE);break;case"End":de.preventDefault(),im(De,null,iE);break}},At=Pe();return P.jsxs(due,B({className:ye(G.root,f),ownerState:E,ref:r,as:d},k,{children:[At.scrollButtonStart,At.scrollbarSizeListener,P.jsxs(hue,{className:G.scroller,ownerState:E,style:{overflow:pe.overflow,[R?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-pe.scrollbarWidth},ref:Ue,children:[P.jsx(pue,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:E,onKeyDown:it,ref:rt,role:"tablist",children:_e}),Y&&pt]}),At.scrollButtonEnd]}))});function yue(e){return ze("MuiTextField",e)}Fe("MuiTextField",["root"]);const xue=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Sue={standard:Ak,filled:Tk,outlined:Ik},bue=e=>{const{classes:t}=e;return Be({root:["root"]},yue,t)},_ue=le(uG,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Na=O.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:v,InputLabelProps:g,inputProps:m,InputProps:y,inputRef:x,label:S,maxRows:_,minRows:b,multiline:w=!1,name:C,onBlur:T,onChange:A,onFocus:M,placeholder:k,required:I=!1,rows:R,select:L=!1,SelectProps:N,type:$,value:z,variant:V="outlined"}=n,E=ge(n,xue),G=B({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:I,select:L,variant:V}),W=bue(G),F={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(F.notched=g.shrink),F.label=S),L&&((!N||!N.native)&&(F.id=void 0),F["aria-describedby"]=void 0);const Y=WM(v),J=p&&Y?`${Y}-helper-text`:void 0,j=S&&Y?`${Y}-label`:void 0,ee=Sue[V],Q=P.jsx(ee,B({"aria-describedby":J,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:R,maxRows:_,minRows:b,type:$,value:z,id:Y,inputRef:x,onBlur:T,onChange:A,onFocus:M,placeholder:k,inputProps:m},F,y));return P.jsxs(_ue,B({className:ye(W.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:I,color:l,variant:V,ownerState:G},E,{children:[S!=null&&S!==""&&P.jsx(Mk,B({htmlFor:Y,id:j},g,{children:S})),L?P.jsx(Dk,B({"aria-describedby":J,id:Y,labelId:j,value:z,input:Q},N,{children:o})):Q,p&&P.jsx(yoe,B({id:J},d,{children:p}))]}))});function AG(){return P.jsxs("svg",{clipRule:"evenodd",fillRule:"evenodd",height:"35",strokeLinejoin:"round",strokeMiterlimit:"2",version:"1.1",viewBox:"0 0 183 35",width:"183",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[P.jsx("title",{children:"Locust"}),P.jsx("path",{d:"M36.694,18.975L48.943,6.626L47.341,5.012L35.092,17.361L36.694,18.975Z",fill:"rgb(184,238,75)"}),P.jsx("path",{d:"M40.954,20.093L53.03,8.017L51.416,6.403L39.34,18.479L40.954,20.093Z",fill:"rgb(184,238,75)"}),P.jsx("rect",{fill:"rgb(184,238,75)",height:"7.152",width:"2.459",x:"37.215",y:"17.411"}),P.jsx("path",{d:"M14.632,4.173L11.279,5.804L10.932,5.973L4.446,30.826L10.881,30.826L15.383,13.594L32.616,30.826L41.285,30.826L14.632,4.173Z",fill:"rgb(184,238,75)",fillRule:"nonzero"}),P.jsx("path",{d:"M4.722,26.007L3.683,29.988L0,29.988L0,28.176L4.722,26.007ZM27.385,15.595L39.945,9.824L43.705,9.824L47.464,13.583L47.464,19.963L43.819,23.608L39.201,18.928L38.025,20.088L47.793,29.988L41.778,29.988L27.385,15.595ZM14.232,21.637L19.644,19.151L27.609,27.116L20.962,29.988L12.05,29.988L14.232,21.637Z",fill:"rgb(184,238,75)"}),P.jsx("path",{d:"M64.001,30L64.001,11.009L68.501,11.009L68.501,26.224L79.443,26.224L79.443,30L64.001,30ZM90.405,30.633C84.211,30.633 79.983,26.473 79.983,20.505C79.983,14.536 84.211,10.376 90.405,10.376C96.623,10.376 100.85,14.536 100.85,20.505C100.85,26.473 96.623,30.633 90.405,30.633ZM90.405,26.722C93.796,26.722 96.374,24.235 96.374,20.505C96.374,16.774 93.796,14.287 90.405,14.287C87.037,14.287 84.437,16.774 84.437,20.505C84.437,24.235 87.037,26.722 90.405,26.722ZM112.638,30.633C106.488,30.633 102.238,26.473 102.238,20.505C102.238,14.536 106.488,10.376 112.638,10.376C116.798,10.376 121.071,12.23 121.997,17.814L117.679,17.814C116.865,15.372 114.989,14.287 112.638,14.287C109.269,14.287 106.692,16.842 106.692,20.505C106.692,24.144 109.269,26.722 112.638,26.722C114.989,26.722 116.865,25.637 117.679,23.172L121.997,23.172C121.071,28.779 116.843,30.633 112.638,30.633ZM132.77,30.633C126.914,30.633 123.613,27.875 123.613,22.087L123.613,11.009L128.158,11.009L128.158,21.974C128.158,25.004 129.672,26.835 132.77,26.835C135.867,26.835 137.404,25.004 137.404,21.974L137.404,11.009L141.926,11.009L141.926,22.087C141.926,27.875 138.625,30.633 132.77,30.633ZM152.22,30.633C146.432,30.633 143.38,28.576 143.403,24.122L147.472,24.122C147.63,25.908 149.1,27.038 152.22,27.061C155.159,27.061 156.764,26.066 156.764,24.574C156.764,23.263 155.702,22.607 153.441,22.223L151.089,21.816C147.495,21.183 143.923,20.233 143.923,16.096C143.923,12.501 146.952,10.376 152.265,10.376C157.216,10.376 160.653,12.117 160.698,16.819L156.651,16.819C156.357,15.101 155.023,13.948 152.175,13.948C149.597,13.948 148.241,14.83 148.241,16.299C148.241,17.452 149.168,18.176 151.112,18.538L153.169,18.899C156.787,19.555 161.241,20.165 161.241,24.71C161.241,28.485 158.143,30.633 152.22,30.633ZM180.394,11.009L180.394,14.785L173.272,14.785L173.272,30L168.751,30L168.751,14.785L161.652,14.785L161.652,11.009L180.394,11.009Z",fill:"currentcolor"})]})}var Rk={},MG={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(MG);var Xu=MG.exports,Eb={};const wue=LY(Gte);var oE;function qu(){return oE||(oE=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=wue}(Eb)),Eb}var Cue=Xu;Object.defineProperty(Rk,"__esModule",{value:!0});var kG=Rk.default=void 0,Tue=Cue(qu()),Aue=P,Mue=(0,Tue.default)((0,Aue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");kG=Rk.default=Mue;var Lk={},kue=Xu;Object.defineProperty(Lk,"__esModule",{value:!0});var IG=Lk.default=void 0,Iue=kue(qu()),Pue=P,Due=(0,Iue.default)((0,Pue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");IG=Lk.default=Due;const ja={DARK:"dark",LIGHT:"light"},Rue=localStorage.theme===ja.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?ja.DARK:ja.LIGHT,Ni=qV,Lue=i6;function xo(e,t){const r=Lue();return O.useCallback(n=>{r(e(n))},[e,r])}const Eue={isDarkMode:!1},PG=yi({name:"theme",initialState:Eue,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),Oue=PG.actions,DG=PG.reducer;function RG(){const e=Ni(({theme:{isDarkMode:n}})=>n),t=xo(Oue.setIsDarkMode);O.useEffect(()=>{t(Rue===ja.DARK)},[]);const r=()=>{localStorage.theme=e?ja.LIGHT:ja.DARK,t(!e)};return P.jsx(Jv,{color:"inherit",onClick:r,children:e?P.jsx(IG,{}):P.jsx(kG,{})})}const Nue=e=>ck({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}});function LG(){const e=Ni(({theme:{isDarkMode:r}})=>r);return O.useMemo(()=>Nue(e?ja.DARK:ja.LIGHT),[e])}function zue({authProviders:e,error:t,usernamePasswordCallback:r}){const n=LG();return P.jsxs(V6,{theme:n,children:[P.jsx(sG,{}),P.jsx(Pt,{sx:{position:"absolute",top:4,right:4},children:P.jsx(RG,{})}),P.jsxs(Pt,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[P.jsx(Pt,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:P.jsx(AG,{})}),r&&P.jsx("form",{action:r,method:"POST",children:P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[P.jsx(Na,{label:"Username",name:"username"}),P.jsx(Na,{label:"Password",name:"password",type:"password"}),t&&P.jsx(Zre,{severity:"error",children:t}),P.jsx(ao,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),e&&P.jsx(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:i,callbackUrl:a,iconUrl:o},s)=>P.jsxs(Jv,{href:a,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[P.jsx("img",{height:"32",src:o}),P.jsx(dt,{height:"32",variant:"button",children:i})]},`auth-provider-${s}`))})]})]})}var Ek={},Bue=Xu;Object.defineProperty(Ek,"__esModule",{value:!0});var EG=Ek.default=void 0,Fue=Bue(qu()),$ue=P,Vue=(0,Fue.default)((0,$ue.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");EG=Ek.default=Vue;function Yx({open:e,onClose:t,children:r}){return P.jsx(lG,{onClose:t,open:e,children:P.jsxs(Pt,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",maxHeight:"90vh",overflowY:"auto",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[P.jsx(Jv,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:P.jsx(EG,{})}),r]})})}function Gue(){const[e,t]=O.useState(!1),r=Ni(({swarm:n})=>n.version);return P.jsxs(P.Fragment,{children:[P.jsx(Pt,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(ao,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),P.jsxs(Yx,{onClose:()=>t(!1),open:e,children:[P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"About"}),P.jsxs(dt,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",P.jsx(Ur,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),P.jsxs(dt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",P.jsx(Ur,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",P.jsx(Ur,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),P.jsxs(dt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",P.jsx(Ur,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),P.jsx(Ur,{href:"https://locust.cloud",children:"Locust Cloud"})," gives you access to hosted, easily scalable, and distributed load generation, as well as advanced reporting — all while preserving the flexible “it’s just Python” approach to load test scripting that Locust provides"]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Version"}),P.jsx(Ur,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),P.jsxs("div",{children:[P.jsx(dt,{component:"h2",mb:1,variant:"h4",children:"Links"}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Ur,{href:"https://github.com/locustio/locust",children:"GitHub"})}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Ur,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),P.jsx(dt,{component:"p",variant:"subtitle1",children:P.jsx(Ur,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function Hue(){return P.jsx(rg,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:P.jsx(Gue,{})})}const OG=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function Wue(e,t){return{...e,...t}}const jue=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},Xx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),qr={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},Ua=window.templateArgs?of(window.templateArgs):{};var hF;Ua.isReport&&{...Ua,charts:(hF=Ua.history)==null||hF.reduce((e,{currentResponseTimePercentiles:t,...r})=>Xx(e,{...t,...r}),{})};function Uue({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return P.jsxs(Pt,{sx:{display:"flex",columnGap:2},children:[P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(dt,{variant:"button",children:"Host"}),P.jsx(ile,{title:r,children:P.jsx(dt,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"400px"},children:r})})]}),P.jsx(Fc,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(dt,{variant:"button",children:"Status"}),P.jsx(dt,{variant:"button",children:t})]}),(t===qr.RUNNING||t===qr.SPAWNING)&&P.jsxs(P.Fragment,{children:[P.jsx(Fc,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Users"}),P.jsx(dt,{noWrap:!0,variant:"button",children:a})]})]}),e&&P.jsxs(P.Fragment,{children:[P.jsx(Fc,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Workers"}),P.jsx(dt,{noWrap:!0,variant:"button",children:o})]})]}),P.jsx(Fc,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"RPS"}),P.jsx(dt,{noWrap:!0,variant:"button",children:n})]}),P.jsx(Fc,{flexItem:!0,orientation:"vertical"}),P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(dt,{variant:"button",children:"Failures"}),P.jsx(dt,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const Yue=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),Xue=Fn(Yue)(Uue),que="input, select, textarea",Zue=e=>e instanceof HTMLInputElement&&e.getAttribute("data-type")==="number"?Number(e.value):e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function Ok({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(que)].reduce((o,s)=>({...o,[s.name]:Zue(s)}),{});t(a)},[t]);return P.jsx("form",{onSubmit:r,children:e})}var NG=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(NG||{});function Kue(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function Que(e){return new RegExp("(^|:)//").test(e)}var Jue=e=>e.replace(/\/$/,""),ece=e=>e.replace(/^\//,"");function tce(e,t){if(!e)return t;if(!t)return e;if(Que(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=Jue(e),t=ece(t),`${e}${r}${t}`}var sE=e=>[].concat(...e);function rce(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function nce(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var lE=qa;function zG(e,t){if(e===t||!(lE(e)&&lE(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let i=r.length===n.length;const a=Array.isArray(t)?[]:{};for(const o of r)a[o]=zG(e[o],t[o]),i&&(i=e[o]===a[o]);return i?e:a}var uE=(...e)=>fetch(...e),ice=e=>e.status>=200&&e.status<=299,ace=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function cE(e){if(!qa(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function oce({baseUrl:e,prepareHeaders:t=f=>f,fetchFn:r=uE,paramsSerializer:n,isJsonContentType:i=ace,jsonContentType:a="application/json",jsonReplacer:o,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return typeof fetch>"u"&&r===uE&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,h)=>{const{signal:p,getState:v,extra:g,endpoint:m,forced:y,type:x}=h;let S,{url:_,headers:b=new Headers(c.headers),params:w=void 0,responseHandler:C=l??"json",validateStatus:T=u??ice,timeout:A=s,...M}=typeof d=="string"?{url:d}:d,k={...c,signal:p,...M};b=new Headers(cE(b)),k.headers=await t(b,{getState:v,extra:g,endpoint:m,forced:y,type:x})||b;const I=W=>typeof W=="object"&&(qa(W)||Array.isArray(W)||typeof W.toJSON=="function");if(!k.headers.has("content-type")&&I(k.body)&&k.headers.set("content-type",a),I(k.body)&&i(k.headers)&&(k.body=JSON.stringify(k.body,o)),w){const W=~_.indexOf("?")?"&":"?",F=n?n(w):new URLSearchParams(cE(w));_+=W+F}_=tce(e,_);const R=new Request(_,k);S={request:new Request(_,k)};let N,$=!1,z=A&&setTimeout(()=>{$=!0,h.abort()},A);try{N=await r(R)}catch(W){return{error:{status:$?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(W)},meta:S}}finally{z&&clearTimeout(z)}const V=N.clone();S.response=V;let E,G="";try{let W;if(await Promise.all([f(N,C).then(F=>E=F,F=>W=F),V.text().then(F=>G=F,()=>{})]),W)throw W}catch(W){return{error:{status:"PARSING_ERROR",originalStatus:N.status,data:G,error:String(W)},meta:S}}return T(N,E)?{data:E,meta:S}:{error:{status:N.status,data:E},meta:S}};async function f(d,h){if(typeof h=="function")return h(d);if(h==="content-type"&&(h=i(d.headers)?"json":"text"),h==="json"){const p=await d.text();return p.length?JSON.parse(p):null}return d.text()}}var fE=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Nk=un("__rtkq/focused"),BG=un("__rtkq/unfocused"),zk=un("__rtkq/online"),FG=un("__rtkq/offline");function $G(e){return e.type==="query"}function sce(e){return e.type==="mutation"}function Bk(e,t,r,n,i,a){return lce(e)?e(t,r,n,i).map(OT).map(a):Array.isArray(e)?e.map(OT).map(a):[]}function lce(e){return typeof e=="function"}function OT(e){return typeof e=="string"?{type:e}:e}function dE(e){return e!=null}function Sf(e){let t=0;for(const r in e)t++;return t}function uce(e,t){return e.catch(t)}var sv=Symbol("forceQueryFn"),NT=e=>typeof e[sv]=="function";function cce({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const a=new Map,o=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:u}=n.internalActions;return{buildInitiateQuery:p,buildInitiateMutation:v,getRunningQueryThunk:c,getRunningMutationThunk:f,getRunningQueriesThunk:d,getRunningMutationsThunk:h};function c(g,m){return y=>{var _;const x=i.endpointDefinitions[g],S=e({queryArgs:m,endpointDefinition:x,endpointName:g});return(_=a.get(y))==null?void 0:_[S]}}function f(g,m){return y=>{var x;return(x=o.get(y))==null?void 0:x[m]}}function d(){return g=>Object.values(a.get(g)||{}).filter(dE)}function h(){return g=>Object.values(o.get(g)||{}).filter(dE)}function p(g,m){const y=(x,{subscribe:S=!0,forceRefetch:_,subscriptionOptions:b,[sv]:w,...C}={})=>(T,A)=>{var W;const M=e({queryArgs:x,endpointDefinition:m,endpointName:g}),k=t({...C,type:"query",subscribe:S,forceRefetch:_,subscriptionOptions:b,endpointName:g,originalArgs:x,queryCacheKey:M,[sv]:w}),I=n.endpoints[g].select(x),R=T(k),L=I(A()),{requestId:N,abort:$}=R,z=L.requestId!==N,V=(W=a.get(T))==null?void 0:W[M],E=()=>I(A()),G=Object.assign(w?R.then(E):z&&!V?Promise.resolve(L):Promise.all([V,R]).then(E),{arg:x,requestId:N,subscriptionOptions:b,queryCacheKey:M,abort:$,async unwrap(){const F=await G;if(F.isError)throw F.error;return F.data},refetch:()=>T(y(x,{subscribe:!1,forceRefetch:!0})),unsubscribe(){S&&T(s({queryCacheKey:M,requestId:N}))},updateSubscriptionOptions(F){G.subscriptionOptions=F,T(u({endpointName:g,requestId:N,queryCacheKey:M,options:F}))}});if(!V&&!z&&!w){const F=a.get(T)||{};F[M]=G,a.set(T,F),G.then(()=>{delete F[M],Sf(F)||a.delete(T)})}return G};return y}function v(g){return(m,{track:y=!0,fixedCacheKey:x}={})=>(S,_)=>{const b=r({type:"mutation",endpointName:g,originalArgs:m,track:y,fixedCacheKey:x}),w=S(b),{requestId:C,abort:T,unwrap:A}=w,M=uce(w.unwrap().then(L=>({data:L})),L=>({error:L})),k=()=>{S(l({requestId:C,fixedCacheKey:x}))},I=Object.assign(M,{arg:w.arg,requestId:C,abort:T,unwrap:A,reset:k}),R=o.get(S)||{};return o.set(S,R),R[C]=I,I.then(()=>{delete R[C],Sf(R)||o.delete(S)}),x&&(R[x]=I,I.then(()=>{R[x]===I&&(delete R[x],Sf(R)||o.delete(S))})),I}}}function hE(e){return e}function fce({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:a}){const o=(y,x,S,_)=>(b,w)=>{const C=r[y],T=n({queryArgs:x,endpointDefinition:C,endpointName:y});if(b(i.internalActions.queryResultPatched({queryCacheKey:T,patches:S})),!_)return;const A=i.endpoints[y].select(x)(w()),M=Bk(C.providesTags,A.data,void 0,x,{},a);b(i.internalActions.updateProvidedBy({queryCacheKey:T,providedTags:M}))},s=(y,x,S,_=!0)=>(b,w)=>{const T=i.endpoints[y].select(x)(w());let A={patches:[],inversePatches:[],undo:()=>b(i.util.patchQueryData(y,x,A.inversePatches,_))};if(T.status==="uninitialized")return A;let M;if("data"in T)if(la(T.data)){const[k,I,R]=NV(T.data,S);A.patches.push(...I),A.inversePatches.push(...R),M=k}else M=S(T.data),A.patches.push({op:"replace",path:[],value:M}),A.inversePatches.push({op:"replace",path:[],value:T.data});return A.patches.length===0||b(i.util.patchQueryData(y,x,A.patches,_)),A},l=(y,x,S)=>_=>_(i.endpoints[y].initiate(x,{subscribe:!1,forceRefetch:!0,[sv]:()=>({data:S})})),u=async(y,{signal:x,abort:S,rejectWithValue:_,fulfillWithValue:b,dispatch:w,getState:C,extra:T})=>{const A=r[y.endpointName];try{let M=hE,k;const I={signal:x,abort:S,dispatch:w,getState:C,extra:T,endpoint:y.endpointName,type:y.type,forced:y.type==="query"?c(y,C()):void 0},R=y.type==="query"?y[sv]:void 0;if(R?k=R():A.query?(k=await t(A.query(y.originalArgs),I,A.extraOptions),A.transformResponse&&(M=A.transformResponse)):k=await A.queryFn(y.originalArgs,I,A.extraOptions,L=>t(L,I,A.extraOptions)),typeof process<"u",k.error)throw new fE(k.error,k.meta);return b(await M(k.data,k.meta,y.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:k.meta,[af]:!0})}catch(M){let k=M;if(k instanceof fE){let I=hE;A.query&&A.transformErrorResponse&&(I=A.transformErrorResponse);try{return _(await I(k.value,k.meta,y.originalArgs),{baseQueryMeta:k.meta,[af]:!0})}catch(R){k=R}}throw typeof process<"u",console.error(k),k}};function c(y,x){var C,T,A;const S=(T=(C=x[e])==null?void 0:C.queries)==null?void 0:T[y.queryCacheKey],_=(A=x[e])==null?void 0:A.config.refetchOnMountOrArgChange,b=S==null?void 0:S.fulfilledTimeStamp,w=y.forceRefetch??(y.subscribe&&_);return w?w===!0||(Number(new Date)-Number(b))/1e3>=w:!1}const f=zR(`${e}/executeQuery`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[af]:!0}},condition(y,{getState:x}){var A,M,k;const S=x(),_=(M=(A=S[e])==null?void 0:A.queries)==null?void 0:M[y.queryCacheKey],b=_==null?void 0:_.fulfilledTimeStamp,w=y.originalArgs,C=_==null?void 0:_.originalArgs,T=r[y.endpointName];return NT(y)?!0:(_==null?void 0:_.status)==="pending"?!1:c(y,S)||$G(T)&&((k=T==null?void 0:T.forceRefetch)!=null&&k.call(T,{currentArg:w,previousArg:C,endpointState:_,state:S}))?!0:!b},dispatchConditionRejection:!0}),d=zR(`${e}/executeMutation`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[af]:!0}}}),h=y=>"force"in y,p=y=>"ifOlderThan"in y,v=(y,x,S)=>(_,b)=>{const w=h(S)&&S.force,C=p(S)&&S.ifOlderThan,T=(M=!0)=>{const k={forceRefetch:M,isPrefetch:!0};return i.endpoints[y].initiate(x,k)},A=i.endpoints[y].select(x)(b());if(w)_(T());else if(C){const M=A==null?void 0:A.fulfilledTimeStamp;if(!M){_(T());return}(Number(new Date)-Number(new Date(M)))/1e3>=C&&_(T())}else _(T(!1))};function g(y){return x=>{var S,_;return((_=(S=x==null?void 0:x.meta)==null?void 0:S.arg)==null?void 0:_.endpointName)===y}}function m(y,x){return{matchPending:np(NM(y),g(x)),matchFulfilled:np(Ws(y),g(x)),matchRejected:np(zf(y),g(x))}}return{queryThunk:f,mutationThunk:d,prefetch:v,updateQueryData:s,upsertQueryData:l,patchQueryData:o,buildMatchThunkActions:m}}function VG(e,t,r,n){return Bk(r[e.meta.arg.endpointName][t],Ws(e)?e.payload:void 0,nx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function am(e,t,r){const n=e[t];n&&r(n)}function lv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function pE(e,t,r){const n=e[lv(t)];n&&r(n)}var qd={};function dce({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:o},assertTagType:s,config:l}){const u=un(`${e}/resetApiState`),c=yi({name:`${e}/queries`,initialState:qd,reducers:{removeQueryResult:{reducer(x,{payload:{queryCacheKey:S}}){delete x[S]},prepare:$d()},queryResultPatched:{reducer(x,{payload:{queryCacheKey:S,patches:_}}){am(x,S,b=>{b.data=DR(b.data,_.concat())})},prepare:$d()}},extraReducers(x){x.addCase(t.pending,(S,{meta:_,meta:{arg:b}})=>{var C;const w=NT(b);S[C=b.queryCacheKey]??(S[C]={status:"uninitialized",endpointName:b.endpointName}),am(S,b.queryCacheKey,T=>{T.status="pending",T.requestId=w&&T.requestId?T.requestId:_.requestId,b.originalArgs!==void 0&&(T.originalArgs=b.originalArgs),T.startedTimeStamp=_.startedTimeStamp})}).addCase(t.fulfilled,(S,{meta:_,payload:b})=>{am(S,_.arg.queryCacheKey,w=>{if(w.requestId!==_.requestId&&!NT(_.arg))return;const{merge:C}=n[_.arg.endpointName];if(w.status="fulfilled",C)if(w.data!==void 0){const{fulfilledTimeStamp:T,arg:A,baseQueryMeta:M,requestId:k}=_;let I=jv(w.data,R=>C(R,b,{arg:A.originalArgs,baseQueryMeta:M,fulfilledTimeStamp:T,requestId:k}));w.data=I}else w.data=b;else w.data=n[_.arg.endpointName].structuralSharing??!0?zG(sa(w.data)?hZ(w.data):w.data,b):b;delete w.error,w.fulfilledTimeStamp=_.fulfilledTimeStamp})}).addCase(t.rejected,(S,{meta:{condition:_,arg:b,requestId:w},error:C,payload:T})=>{am(S,b.queryCacheKey,A=>{if(!_){if(A.requestId!==w)return;A.status="rejected",A.error=T??C}})}).addMatcher(o,(S,_)=>{const{queries:b}=a(_);for(const[w,C]of Object.entries(b))((C==null?void 0:C.status)==="fulfilled"||(C==null?void 0:C.status)==="rejected")&&(S[w]=C)})}}),f=yi({name:`${e}/mutations`,initialState:qd,reducers:{removeMutationResult:{reducer(x,{payload:S}){const _=lv(S);_ in x&&delete x[_]},prepare:$d()}},extraReducers(x){x.addCase(r.pending,(S,{meta:_,meta:{requestId:b,arg:w,startedTimeStamp:C}})=>{w.track&&(S[lv(_)]={requestId:b,status:"pending",endpointName:w.endpointName,startedTimeStamp:C})}).addCase(r.fulfilled,(S,{payload:_,meta:b})=>{b.arg.track&&pE(S,b,w=>{w.requestId===b.requestId&&(w.status="fulfilled",w.data=_,w.fulfilledTimeStamp=b.fulfilledTimeStamp)})}).addCase(r.rejected,(S,{payload:_,error:b,meta:w})=>{w.arg.track&&pE(S,w,C=>{C.requestId===w.requestId&&(C.status="rejected",C.error=_??b)})}).addMatcher(o,(S,_)=>{const{mutations:b}=a(_);for(const[w,C]of Object.entries(b))((C==null?void 0:C.status)==="fulfilled"||(C==null?void 0:C.status)==="rejected")&&w!==(C==null?void 0:C.requestId)&&(S[w]=C)})}}),d=yi({name:`${e}/invalidation`,initialState:qd,reducers:{updateProvidedBy:{reducer(x,S){var w,C;const{queryCacheKey:_,providedTags:b}=S.payload;for(const T of Object.values(x))for(const A of Object.values(T)){const M=A.indexOf(_);M!==-1&&A.splice(M,1)}for(const{type:T,id:A}of b){const M=(w=x[T]??(x[T]={}))[C=A||"__internal_without_id"]??(w[C]=[]);M.includes(_)||M.push(_)}},prepare:$d()}},extraReducers(x){x.addCase(c.actions.removeQueryResult,(S,{payload:{queryCacheKey:_}})=>{for(const b of Object.values(S))for(const w of Object.values(b)){const C=w.indexOf(_);C!==-1&&w.splice(C,1)}}).addMatcher(o,(S,_)=>{var w,C;const{provided:b}=a(_);for(const[T,A]of Object.entries(b))for(const[M,k]of Object.entries(A)){const I=(w=S[T]??(S[T]={}))[C=M||"__internal_without_id"]??(w[C]=[]);for(const R of k)I.includes(R)||I.push(R)}}).addMatcher(Ro(Ws(t),nx(t)),(S,_)=>{const b=VG(_,"providesTags",n,s),{queryCacheKey:w}=_.meta.arg;d.caseReducers.updateProvidedBy(S,d.actions.updateProvidedBy({queryCacheKey:w,providedTags:b}))})}}),h=yi({name:`${e}/subscriptions`,initialState:qd,reducers:{updateSubscriptionOptions(x,S){},unsubscribeQueryResult(x,S){},internal_getRTKQSubscriptions(){}}}),p=yi({name:`${e}/internalSubscriptions`,initialState:qd,reducers:{subscriptionsUpdated:{reducer(x,S){return DR(x,S.payload)},prepare:$d()}}}),v=yi({name:`${e}/config`,initialState:{online:rce(),focused:nce(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(x,{payload:S}){x.middlewareRegistered=x.middlewareRegistered==="conflict"||i!==S?"conflict":!0}},extraReducers:x=>{x.addCase(zk,S=>{S.online=!0}).addCase(FG,S=>{S.online=!1}).addCase(Nk,S=>{S.focused=!0}).addCase(BG,S=>{S.focused=!1}).addMatcher(o,S=>({...S}))}}),g=ex({queries:c.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:p.reducer,config:v.reducer}),m=(x,S)=>g(u.match(S)?void 0:x,S),y={...v.actions,...c.actions,...h.actions,...p.actions,...f.actions,...d.actions,resetApiState:u};return{reducer:m,actions:y}}var iu=Symbol.for("RTKQ/skipToken"),GG={status:"uninitialized"},vE=jv(GG,()=>{}),gE=jv(GG,()=>{});function hce({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=f=>vE,i=f=>gE;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:u,selectCachedArgsForQuery:c};function a(f){return{...f,...Kue(f.status)}}function o(f){return f[t]}function s(f,d){return h=>{const p=e({queryArgs:h,endpointDefinition:d,endpointName:f});return r(h===iu?n:m=>{var y,x;return((x=(y=o(m))==null?void 0:y.queries)==null?void 0:x[p])??vE},a)}}function l(){return f=>{let d;return typeof f=="object"?d=lv(f)??iu:d=f,r(d===iu?i:v=>{var g,m;return((m=(g=o(v))==null?void 0:g.mutations)==null?void 0:m[d])??gE},a)}}function u(f,d){const h=f[t],p=new Set;for(const v of d.map(OT)){const g=h.provided[v.type];if(!g)continue;let m=(v.id!==void 0?g[v.id]:sE(Object.values(g)))??[];for(const y of m)p.add(y)}return sE(Array.from(p.values()).map(v=>{const g=h.queries[v];return g?[{queryCacheKey:v,endpointName:g.endpointName,originalArgs:g.originalArgs}]:[]}))}function c(f,d){return Object.values(f[t].queries).filter(h=>(h==null?void 0:h.endpointName)===d&&h.status!=="uninitialized").map(h=>h.originalArgs)}}var pc=WeakMap?new WeakMap:void 0,mE=({endpointName:e,queryArgs:t})=>{let r="";const n=pc==null?void 0:pc.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=qa(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));qa(t)&&(pc==null||pc.set(t,i)),r=i}return`${e}(${r})`};function pce(...e){return function(r){const n=Qp(u=>{var c;return(c=r.extractRehydrationInfo)==null?void 0:c.call(r,u,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(u){let c=mE;if("serializeQueryArgs"in u.endpointDefinition){const f=u.endpointDefinition.serializeQueryArgs;c=d=>{const h=f(d);return typeof h=="string"?h:mE({...d,queryArgs:h})}}else r.serializeQueryArgs&&(c=r.serializeQueryArgs);return c(u)},tagTypes:[...r.tagTypes||[]]},a={endpointDefinitions:{},batch(u){u()},apiUid:OM(),extractRehydrationInfo:n,hasRehydrationInfo:Qp(u=>n(u)!=null)},o={injectEndpoints:l,enhanceEndpoints({addTagTypes:u,endpoints:c}){if(u)for(const f of u)i.tagTypes.includes(f)||i.tagTypes.push(f);if(c)for(const[f,d]of Object.entries(c))typeof d=="function"?d(a.endpointDefinitions[f]):Object.assign(a.endpointDefinitions[f]||{},d);return o}},s=e.map(u=>u.init(o,i,a));function l(u){const c=u.endpoints({query:f=>({...f,type:"query"}),mutation:f=>({...f,type:"mutation"})});for(const[f,d]of Object.entries(c)){if(u.overrideExisting!==!0&&f in a.endpointDefinitions){if(u.overrideExisting==="throw")throw new Error(Zr(39));typeof process<"u";continue}a.endpointDefinitions[f]=d;for(const h of s)h.injectEndpoint(f,d)}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function vce(e){for(let t in e)return!1;return!0}var gce=2147483647/1e3-1,mce=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions,s=Ro(o.match,r.fulfilled,r.rejected);function l(d){const h=i.currentSubscriptions[d];return!!h&&!vce(h)}const u={},c=(d,h,p)=>{var v;if(s(d)){const g=h.getState()[e],{queryCacheKey:m}=o.match(d)?d.payload:d.meta.arg;f(m,(v=g.queries[m])==null?void 0:v.endpointName,h,g.config)}if(t.util.resetApiState.match(d))for(const[g,m]of Object.entries(u))m&&clearTimeout(m),delete u[g];if(n.hasRehydrationInfo(d)){const g=h.getState()[e],{queries:m}=n.extractRehydrationInfo(d);for(const[y,x]of Object.entries(m))f(y,x==null?void 0:x.endpointName,h,g.config)}};function f(d,h,p,v){const g=n.endpointDefinitions[h],m=(g==null?void 0:g.keepUnusedDataFor)??v.keepUnusedDataFor;if(m===1/0)return;const y=Math.max(0,Math.min(m,gce));if(!l(d)){const x=u[d];x&&clearTimeout(x),u[d]=setTimeout(()=>{l(d)||p.dispatch(a({queryCacheKey:d})),delete u[d]},y*1e3)}}return c},yce=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:a,assertTagType:o,refetchQuery:s,internalState:l})=>{const{removeQueryResult:u}=a.internalActions,c=Ro(Ws(n),nx(n)),f=Ro(Ws(n,i),zf(n,i));let d=[];const h=(g,m)=>{c(g)?v(VG(g,"invalidatesTags",r,o),m):f(g)?v([],m):a.util.invalidateTags.match(g)&&v(Bk(g.payload,void 0,void 0,void 0,void 0,o),m)};function p(g){var m,y;for(const x in g.queries)if(((m=g.queries[x])==null?void 0:m.status)==="pending")return!0;for(const x in g.mutations)if(((y=g.mutations[x])==null?void 0:y.status)==="pending")return!0;return!1}function v(g,m){const y=m.getState(),x=y[e];if(d.push(...g),x.config.invalidationBehavior==="delayed"&&p(x))return;const S=d;if(d=[],S.length===0)return;const _=a.util.selectInvalidatedBy(y,S);t.batch(()=>{const b=Array.from(_.values());for(const{queryCacheKey:w}of b){const C=x.queries[w],T=l.currentSubscriptions[w]??{};C&&(Sf(T)===0?m.dispatch(u({queryCacheKey:w})):C.status!=="uninitialized"&&m.dispatch(s(C,w)))}})}return h},xce=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const a={},o=(d,h)=>{(r.internalActions.updateSubscriptionOptions.match(d)||r.internalActions.unsubscribeQueryResult.match(d))&&l(d.payload,h),(t.pending.match(d)||t.rejected.match(d)&&d.meta.condition)&&l(d.meta.arg,h),(t.fulfilled.match(d)||t.rejected.match(d)&&!d.meta.condition)&&s(d.meta.arg,h),r.util.resetApiState.match(d)&&c()};function s({queryCacheKey:d},h){const p=h.getState()[e],v=p.queries[d],g=i.currentSubscriptions[d];if(!v||v.status==="uninitialized")return;const{lowestPollingInterval:m,skipPollingIfUnfocused:y}=f(g);if(!Number.isFinite(m))return;const x=a[d];x!=null&&x.timeout&&(clearTimeout(x.timeout),x.timeout=void 0);const S=Date.now()+m;a[d]={nextPollTimestamp:S,pollingInterval:m,timeout:setTimeout(()=>{(p.config.focused||!y)&&h.dispatch(n(v,d)),s({queryCacheKey:d},h)},m)}}function l({queryCacheKey:d},h){const v=h.getState()[e].queries[d],g=i.currentSubscriptions[d];if(!v||v.status==="uninitialized")return;const{lowestPollingInterval:m}=f(g);if(!Number.isFinite(m)){u(d);return}const y=a[d],x=Date.now()+m;(!y||x<y.nextPollTimestamp)&&s({queryCacheKey:d},h)}function u(d){const h=a[d];h!=null&&h.timeout&&clearTimeout(h.timeout),delete a[d]}function c(){for(const d of Object.keys(a))u(d)}function f(d={}){let h=!1,p=Number.POSITIVE_INFINITY;for(let v in d)d[v].pollingInterval&&(p=Math.min(d[v].pollingInterval,p),h=d[v].skipPollingIfUnfocused||h);return{lowestPollingInterval:p,skipPollingIfUnfocused:h}}return o},Sce=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:a}=r.internalActions,o=(l,u)=>{Nk.match(l)&&s(u,"refetchOnFocus"),zk.match(l)&&s(u,"refetchOnReconnect")};function s(l,u){const c=l.getState()[e],f=c.queries,d=i.currentSubscriptions;t.batch(()=>{for(const h of Object.keys(d)){const p=f[h],v=d[h];if(!v||!p)continue;(Object.values(v).some(m=>m[u]===!0)||Object.values(v).every(m=>m[u]===void 0)&&c.config[u])&&(Sf(v)===0?l.dispatch(a({queryCacheKey:h})):p.status!=="uninitialized"&&l.dispatch(n(p,h)))}})}return o},yE=new Error("Promise never resolved before cacheEntryRemoved."),bce=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:a})=>{const o=yT(n),s=yT(i),l=Ws(n,i),u={},c=(h,p,v)=>{const g=f(h);if(n.pending.match(h)){const m=v[t].queries[g],y=p.getState()[t].queries[g];!m&&y&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId)}else if(i.pending.match(h))p.getState()[t].mutations[g]&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,g,p,h.meta.requestId);else if(l(h)){const m=u[g];m!=null&&m.valueResolved&&(m.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete m.valueResolved)}else if(e.internalActions.removeQueryResult.match(h)||e.internalActions.removeMutationResult.match(h)){const m=u[g];m&&(delete u[g],m.cacheEntryRemoved())}else if(e.util.resetApiState.match(h))for(const[m,y]of Object.entries(u))delete u[m],y.cacheEntryRemoved()};function f(h){return o(h)?h.meta.arg.queryCacheKey:s(h)?h.meta.arg.fixedCacheKey??h.meta.requestId:e.internalActions.removeQueryResult.match(h)?h.payload.queryCacheKey:e.internalActions.removeMutationResult.match(h)?lv(h.payload):""}function d(h,p,v,g,m){const y=r.endpointDefinitions[h],x=y==null?void 0:y.onCacheEntryAdded;if(!x)return;let S={};const _=new Promise(M=>{S.cacheEntryRemoved=M}),b=Promise.race([new Promise(M=>{S.valueResolved=M}),_.then(()=>{throw yE})]);b.catch(()=>{}),u[v]=S;const w=e.endpoints[h].select(y.type==="query"?p:v),C=g.dispatch((M,k,I)=>I),T={...g,getCacheEntry:()=>w(g.getState()),requestId:m,extra:C,updateCachedData:y.type==="query"?M=>g.dispatch(e.util.updateQueryData(h,p,M)):void 0,cacheDataLoaded:b,cacheEntryRemoved:_},A=x(p,T);Promise.resolve(A).catch(M=>{if(M!==yE)throw M})}return c},_ce=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=NM(r,n),a=zf(r,n),o=Ws(r,n),s={};return(u,c)=>{var f,d;if(i(u)){const{requestId:h,arg:{endpointName:p,originalArgs:v}}=u.meta,g=t.endpointDefinitions[p],m=g==null?void 0:g.onQueryStarted;if(m){const y={},x=new Promise((w,C)=>{y.resolve=w,y.reject=C});x.catch(()=>{}),s[h]=y;const S=e.endpoints[p].select(g.type==="query"?v:h),_=c.dispatch((w,C,T)=>T),b={...c,getCacheEntry:()=>S(c.getState()),requestId:h,extra:_,updateCachedData:g.type==="query"?w=>c.dispatch(e.util.updateQueryData(p,v,w)):void 0,queryFulfilled:x};m(v,b)}}else if(o(u)){const{requestId:h,baseQueryMeta:p}=u.meta;(f=s[h])==null||f.resolve({data:u.payload,meta:p}),delete s[h]}else if(a(u)){const{requestId:h,rejectedWithValue:p,baseQueryMeta:v}=u.meta;(d=s[h])==null||d.reject({error:u.payload??u.error,isUnhandledError:!p,meta:v}),delete s[h]}}},wce=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t)),typeof process<"u"},Cce=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:o,unsubscribeQueryResult:s}=e.internalActions,l=(h,p)=>{var g,m,y;if(o.match(p)){const{queryCacheKey:x,requestId:S,options:_}=p.payload;return(g=h==null?void 0:h[x])!=null&&g[S]&&(h[x][S]=_),!0}if(s.match(p)){const{queryCacheKey:x,requestId:S}=p.payload;return h[x]&&delete h[x][S],!0}if(e.internalActions.removeQueryResult.match(p))return delete h[p.payload.queryCacheKey],!0;if(t.pending.match(p)){const{meta:{arg:x,requestId:S}}=p,_=h[m=x.queryCacheKey]??(h[m]={});return _[`${S}_running`]={},x.subscribe&&(_[S]=x.subscriptionOptions??_[S]??{}),!0}let v=!1;if(t.fulfilled.match(p)||t.rejected.match(p)){const x=h[p.meta.arg.queryCacheKey]||{},S=`${p.meta.requestId}_running`;v||(v=!!x[S]),delete x[S]}if(t.rejected.match(p)){const{meta:{condition:x,arg:S,requestId:_}}=p;if(x&&S.subscribe){const b=h[y=S.queryCacheKey]??(h[y]={});b[_]=S.subscriptionOptions??b[_]??{},v=!0}}return v},u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:h=>{const v=u()[h]??{};return Sf(v)},isRequestSubscribed:(h,p)=>{var g;const v=u();return!!((g=v==null?void 0:v[h])!=null&&g[p])}};return(h,p)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(h))return i=r.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(h))return[!1,d];const v=l(r.currentSubscriptions,h);let g=!0;if(v){a||(a=setTimeout(()=>{const x=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,S]=NV(i,()=>x);p.next(e.internalActions.subscriptionsUpdated(S)),i=x,a=null},500));const m=typeof h.type=="string"&&!!h.type.startsWith(n),y=t.rejected.match(h)&&h.meta.condition&&!!h.meta.arg.subscribe;g=!m&&!y}return[g,!1]}};function Tce(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:a}=i,o={invalidateTags:un(`${t}/invalidateTags`)},s=f=>f.type.startsWith(`${t}/`),l=[wce,mce,yce,xce,bce,_ce];return{middleware:f=>{let d=!1;const p={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:s},v=l.map(y=>y(p)),g=Cce(p),m=Sce(p);return y=>x=>{if(!IV(x))return y(x);d||(d=!0,f.dispatch(n.internalActions.middlewareRegistered(a)));const S={...f,next:y},_=f.getState(),[b,w]=g(x,S,_);let C;if(b?C=y(x):C=w,f.getState()[t]&&(m(x,S,_),s(x)||i.hasRehydrationInfo(x)))for(let T of v)T(x,S,_);return C}},actions:o};function c(f,d,h={}){return r({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d,...h})}}function Zo(e,...t){return Object.assign(e,...t)}var xE=Symbol(),Ace=({createSelector:e=EM}={})=>({name:xE,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c},f){_Z();const d=z=>(typeof process<"u",z);Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:zk,onOffline:FG,onFocus:Nk,onFocusLost:BG},util:{}});const{queryThunk:h,mutationThunk:p,patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,buildMatchThunkActions:x}=fce({baseQuery:r,reducerPath:i,context:f,api:t,serializeQueryArgs:a,assertTagType:d}),{reducer:S,actions:_}=dce({context:f,queryThunk:h,mutationThunk:p,reducerPath:i,assertTagType:d,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:c}});Zo(t.util,{patchQueryData:v,updateQueryData:g,upsertQueryData:m,prefetch:y,resetApiState:_.resetApiState}),Zo(t.internalActions,_);const{middleware:b,actions:w}=Tce({reducerPath:i,context:f,queryThunk:h,mutationThunk:p,api:t,assertTagType:d});Zo(t.util,w),Zo(t,{reducer:S,middleware:b});const{buildQuerySelector:C,buildMutationSelector:T,selectInvalidatedBy:A,selectCachedArgsForQuery:M}=hce({serializeQueryArgs:a,reducerPath:i,createSelector:e});Zo(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:M});const{buildInitiateQuery:k,buildInitiateMutation:I,getRunningMutationThunk:R,getRunningMutationsThunk:L,getRunningQueriesThunk:N,getRunningQueryThunk:$}=cce({queryThunk:h,mutationThunk:p,api:t,serializeQueryArgs:a,context:f});return Zo(t.util,{getRunningMutationThunk:R,getRunningMutationsThunk:L,getRunningQueryThunk:$,getRunningQueriesThunk:N}),{name:xE,injectEndpoint(z,V){var G;const E=t;(G=E.endpoints)[z]??(G[z]={}),$G(V)?Zo(E.endpoints[z],{name:z,select:C(z,V),initiate:k(z,V)},x(h,z)):sce(V)&&Zo(E.endpoints[z],{name:z,select:T(),initiate:I(z)},x(p,z))}}}});function Mce(e){return e.type==="query"}function kce(e){return e.type==="mutation"}function om(e,...t){return Object.assign(e,...t)}function Ob(e){return e.replace(e[0],e[0].toUpperCase())}var vc=WeakMap?new WeakMap:void 0,Ice=({endpointName:e,queryArgs:t})=>{let r="";const n=vc==null?void 0:vc.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=qa(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));qa(t)&&(vc==null||vc.set(t,i)),r=i}return`${e}(${r})`},Nb=Symbol();function SE(e,t,r,n){const i=O.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),a=O.useRef(i);return O.useEffect(()=>{a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}function zb(e){const t=O.useRef(e);return O.useEffect(()=>{zs(t.current,e)||(t.current=e)},[e]),zs(t.current,e)?t.current:e}var Pce=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dce=Pce(),Rce=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Lce=Rce(),Ece=()=>Dce||Lce?O.useLayoutEffect:O.useEffect,Oce=Ece(),Nce=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:NG.pending}:e;function zce({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:a,createSelector:o},serializeQueryArgs:s,context:l}){const u=a?p=>p():O.useEffect;return{buildQueryHooks:d,buildMutationHook:h,usePrefetch:f};function c(p,v,g){if(v!=null&&v.endpointName&&p.isUninitialized){const{endpointName:b}=v,w=l.endpointDefinitions[b];s({queryArgs:v.originalArgs,endpointDefinition:w,endpointName:b})===s({queryArgs:g,endpointDefinition:w,endpointName:b})&&(v=void 0)}let m=p.isSuccess?p.data:v==null?void 0:v.data;m===void 0&&(m=p.data);const y=m!==void 0,x=p.isLoading,S=(!v||v.isLoading||v.isUninitialized)&&!y&&x,_=p.isSuccess||x&&y;return{...p,data:m,currentData:p.data,isFetching:x,isLoading:S,isSuccess:_}}function f(p,v){const g=r(),m=zb(v);return O.useCallback((y,x)=>g(e.util.prefetch(p,y,{...m,...x})),[p,g,m])}function d(p){const v=(y,{refetchOnReconnect:x,refetchOnFocus:S,refetchOnMountOrArgChange:_,skip:b=!1,pollingInterval:w=0,skipPollingIfUnfocused:C=!1}={})=>{const{initiate:T}=e.endpoints[p],A=r(),M=O.useRef(void 0);if(!M.current){const E=A(e.internalActions.internal_getRTKQSubscriptions());M.current=E}const k=SE(b?iu:y,Ice,l.endpointDefinitions[p],p),I=zb({refetchOnReconnect:x,refetchOnFocus:S,pollingInterval:w,skipPollingIfUnfocused:C}),R=O.useRef(!1),L=O.useRef(void 0);let{queryCacheKey:N,requestId:$}=L.current||{},z=!1;N&&$&&(z=M.current.isRequestSubscribed(N,$));const V=!z&&R.current;return u(()=>{R.current=z}),u(()=>{V&&(L.current=void 0)},[V]),u(()=>{var W;const E=L.current;if(typeof process<"u",k===iu){E==null||E.unsubscribe(),L.current=void 0;return}const G=(W=L.current)==null?void 0:W.subscriptionOptions;if(!E||E.arg!==k){E==null||E.unsubscribe();const F=A(T(k,{subscriptionOptions:I,forceRefetch:_}));L.current=F}else I!==G&&E.updateSubscriptionOptions(I)},[A,T,_,k,I,V]),O.useEffect(()=>()=>{var E;(E=L.current)==null||E.unsubscribe(),L.current=void 0},[]),O.useMemo(()=>({refetch:()=>{var E;if(!L.current)throw new Error(Zr(38));return(E=L.current)==null?void 0:E.refetch()}}),[])},g=({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S=0,skipPollingIfUnfocused:_=!1}={})=>{const{initiate:b}=e.endpoints[p],w=r(),[C,T]=O.useState(Nb),A=O.useRef(void 0),M=zb({refetchOnReconnect:y,refetchOnFocus:x,pollingInterval:S,skipPollingIfUnfocused:_});u(()=>{var L,N;const R=(L=A.current)==null?void 0:L.subscriptionOptions;M!==R&&((N=A.current)==null||N.updateSubscriptionOptions(M))},[M]);const k=O.useRef(M);u(()=>{k.current=M},[M]);const I=O.useCallback(function(R,L=!1){let N;return t(()=>{var $;($=A.current)==null||$.unsubscribe(),A.current=N=w(b(R,{subscriptionOptions:k.current,forceRefetch:!L})),T(R)}),N},[w,b]);return O.useEffect(()=>()=>{var R;(R=A==null?void 0:A.current)==null||R.unsubscribe()},[]),O.useEffect(()=>{C!==Nb&&!A.current&&I(C,!0)},[C,I]),O.useMemo(()=>[I,C],[I,C])},m=(y,{skip:x=!1,selectFromResult:S}={})=>{const{select:_}=e.endpoints[p],b=SE(x?iu:y,s,l.endpointDefinitions[p],p),w=O.useRef(void 0),C=O.useMemo(()=>o([_(b),(I,R)=>R,I=>b],c,{memoizeOptions:{resultEqualityCheck:zs}}),[_,b]),T=O.useMemo(()=>S?o([C],S,{devModeChecks:{identityFunctionCheck:"never"}}):C,[C,S]),A=n(I=>T(I,w.current),zs),M=i(),k=C(M.getState(),w.current);return Oce(()=>{w.current=k},[k]),A};return{useQueryState:m,useQuerySubscription:v,useLazyQuerySubscription:g,useLazyQuery(y){const[x,S]=g(y),_=m(S,{...y,skip:S===Nb}),b=O.useMemo(()=>({lastArg:S}),[S]);return O.useMemo(()=>[x,_,b],[x,_,b])},useQuery(y,x){const S=v(y,x),_=m(y,{selectFromResult:y===iu||x!=null&&x.skip?void 0:Nce,...x}),{data:b,status:w,isLoading:C,isSuccess:T,isError:A,error:M}=_;return O.useDebugValue({data:b,status:w,isLoading:C,isSuccess:T,isError:A,error:M}),O.useMemo(()=>({..._,...S}),[_,S])}}}function h(p){return({selectFromResult:v,fixedCacheKey:g}={})=>{const{select:m,initiate:y}=e.endpoints[p],x=r(),[S,_]=O.useState();O.useEffect(()=>()=>{S!=null&&S.arg.fixedCacheKey||S==null||S.reset()},[S]);const b=O.useCallback(function(G){const W=x(y(G,{fixedCacheKey:g}));return _(W),W},[x,y,g]),{requestId:w}=S||{},C=O.useMemo(()=>m({fixedCacheKey:g,requestId:S==null?void 0:S.requestId}),[g,S,m]),T=O.useMemo(()=>v?o([C],v):C,[v,C]),A=n(T,zs),M=g==null?S==null?void 0:S.arg.originalArgs:void 0,k=O.useCallback(()=>{t(()=>{S&&_(void 0),g&&x(e.internalActions.removeMutationResult({requestId:w,fixedCacheKey:g}))})},[x,g,S,w]),{endpointName:I,data:R,status:L,isLoading:N,isSuccess:$,isError:z,error:V}=A;O.useDebugValue({endpointName:I,data:R,status:L,isLoading:N,isSuccess:$,isError:z,error:V});const E=O.useMemo(()=>({...A,originalArgs:M,reset:k}),[A,M,k]);return O.useMemo(()=>[b,E],[b,E])}}}var Bce=Symbol(),Fce=({batch:e=fQ,hooks:t={useDispatch:i6,useSelector:qV,useStore:n6},createSelector:r=EM,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:Bce,init(a,{serializeQueryArgs:o},s){const l=a,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:f}=zce({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:o,context:s});return om(l,{usePrefetch:f}),om(s,{batch:e}),{injectEndpoint(d,h){if(Mce(h)){const{useQuery:p,useLazyQuery:v,useLazyQuerySubscription:g,useQueryState:m,useQuerySubscription:y}=u(d);om(l.endpoints[d],{useQuery:p,useLazyQuery:v,useLazyQuerySubscription:g,useQueryState:m,useQuerySubscription:y}),a[`use${Ob(d)}Query`]=p,a[`useLazy${Ob(d)}Query`]=v}else if(kce(h)){const p=c(d);om(l.endpoints[d],{useMutation:p}),a[`use${Ob(d)}Mutation`]=p}}}}}),$ce=pce(Ace(),Fce());const O0=$ce({baseQuery:oce(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:of}),getTasks:e.query({query:()=>"tasks",transformResponse:of}),getExceptions:e.query({query:()=>"exceptions",transformResponse:of}),getLogs:e.query({query:()=>"logs",transformResponse:of}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:jue(YR(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:YR(t)})})})}),{useGetStatsQuery:Vce,useGetTasksQuery:Gce,useGetExceptionsQuery:Hce,useGetLogsQuery:Wce,useStartSwarmMutation:HG,useUpdateUserSettingsMutation:jce}=O0;function ng(e,{payload:t}){return Wue(e,t)}const Uce=Ua,WG=yi({name:"swarm",initialState:Uce,reducers:{setSwarm:ng}}),qx=WG.actions,Yce=WG.reducer;function Xce({onSubmit:e,userCount:t,spawnRate:r,setSwarm:n}){const[i]=HG(),a=o=>{e(),i(o),n(o)};return P.jsxs(rg,{maxWidth:"md",sx:{my:2},children:[P.jsx(dt,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),P.jsx(Ok,{onSubmit:a,children:P.jsxs(Pt,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[P.jsx(Na,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),P.jsx(Na,{defaultValue:r||1,label:"Ramp up (users started/second)",name:"spawnRate"}),P.jsx(ao,{size:"large",type:"submit",variant:"contained",children:"Update"})]})})]})}const qce=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),Zce={setSwarm:qx.setSwarm},Kce=Fn(qce,Zce)(Xce);function Qce(){const[e,t]=O.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(ao,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),P.jsx(Yx,{onClose:()=>t(!1),open:e,children:P.jsx(Kce,{onSubmit:()=>t(!1)})})]})}var Fk={},Jce=Xu;Object.defineProperty(Fk,"__esModule",{value:!0});var Zx=Fk.default=void 0,efe=Jce(qu()),tfe=P,rfe=(0,efe.default)((0,tfe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");Zx=Fk.default=rfe;function $k({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:a="medium",sx:o,...s}){return P.jsxs(uG,{size:a,sx:o,children:[P.jsx(Mk,{htmlFor:t,shrink:!0,children:e}),P.jsx(Dk,{...s,defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((l,u)=>P.jsx("option",{value:l,children:l},`option-${l}-${u}`))})]})}function nfe({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=s6(e),o=n?`${a} (${n})`:a;return r?P.jsx($k,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?P.jsx(fG,{control:P.jsx(LT,{defaultChecked:t}),label:o,name:e}):P.jsx(Na,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function ife({extraOptions:e}){return P.jsxs(hk,{children:[P.jsx(vk,{expandIcon:P.jsx(Zx,{}),children:P.jsx(dt,{children:"Custom parameters"})}),P.jsx(pk,{children:P.jsx(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>P.jsx(nfe,{label:t,...r},`valid-parameter-${n}`))})})]})}var Vk={},afe=Xu;Object.defineProperty(Vk,"__esModule",{value:!0});var jG=Vk.default=void 0,ofe=afe(qu()),sfe=P,lfe=(0,ofe.default)((0,sfe.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");jG=Vk.default=lfe;function ufe({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return P.jsx(Ok,{onSubmit:r,children:P.jsxs(Pt,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[P.jsx(dt,{children:`${t.userClassName} Settings`}),P.jsx($k,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>P.jsx(Na,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:s6(a),name:a},`user-to-edit-${a}`)),P.jsx(ao,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function cfe({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=O.useState(!1),[l,u]=O.useState(),[c]=jce(),f=g=>{l&&(i({users:{...a,[l.userClassName]:g}}),c({...g,userClassName:l.userClassName}),s(!1))},d=g=>()=>r.includes(g)?n(r.filter(m=>m!==g)):n(r.concat(g)),h=r.length,p=e.length,v=g=>g.target.checked?n(e):n([]);return P.jsxs(P.Fragment,{children:[P.jsx(Pt,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:P.jsxs(Pt,{sx:{maxHeight:"30vh",overflow:"auto"},children:[P.jsx(Mk,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),P.jsx(dG,{children:P.jsx(CG,{component:nl,children:P.jsxs(_G,{children:[P.jsx(TG,{children:P.jsx(E0,{children:P.jsx(Xl,{colSpan:4,padding:"checkbox",children:P.jsx(LT,{checked:p>0&&h===p,indeterminate:h>0&&h<p,onChange:v})})})}),P.jsx(wG,{children:Object.entries(a).map(([g,m])=>P.jsxs(E0,{hover:!0,children:[P.jsx(Xl,{onClick:d(g),padding:"checkbox",children:P.jsx(LT,{checked:r.includes(g)})}),P.jsx(Xl,{children:g}),P.jsx(Xl,{children:P.jsx(dt,{variant:"subtitle2",children:m.host})}),P.jsx(Xl,{align:"right",children:P.jsx(Jv,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:P.jsx(jG,{})})})]},`user-class-${g}`))})]})})})]})}),P.jsx(Yx,{onClose:()=>s(!1),open:o,children:l&&P.jsx(ufe,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const ffe={setSwarm:qx.setSwarm},dfe=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),hfe=Fn(dfe,ffe)(cfe);function pfe({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=HG(),[d,h]=O.useState(t),p=v=>{l({state:qr.RUNNING,host:v.host||r,runTime:v.runTime,spawnRate:Number(v.spawnRate)||null,numUsers:Number(v.userCount)||null}),f({...v,...u&&d?{userClasses:d}:{}})};return P.jsxs(rg,{maxWidth:"md",sx:{my:2},children:[P.jsx(dt,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&P.jsx(Pt,{marginBottom:2,marginTop:2,children:P.jsx(hfe,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),P.jsx(Ok,{onSubmit:p,children:P.jsxs(Pt,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&P.jsx($k,{label:"Shape Class",name:"shapeClass",options:e}),P.jsx(Na,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),P.jsx(Na,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),P.jsx(Na,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),P.jsxs(hk,{children:[P.jsx(vk,{expandIcon:P.jsx(Zx,{}),children:P.jsx(dt,{children:"Advanced options"})}),P.jsx(pk,{children:P.jsx(Na,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!OG(n)&&P.jsx(ife,{extraOptions:n}),P.jsx(ao,{size:"large",type:"submit",variant:"contained",children:"Start"})]})})]})}const vfe=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),gfe={setSwarm:qx.setSwarm},UG=Fn(vfe,gfe)(pfe);function mfe(){const[e,t]=O.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(ao,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),P.jsx(Yx,{onClose:()=>t(!1),open:e,children:P.jsx(UG,{})})]})}function yfe(){const e=()=>{fetch("stats/reset")};return P.jsx(ao,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function xfe(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return P.jsx(ao,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Sfe(){const e=Ni(({swarm:t})=>t.state);return e===qr.READY?null:P.jsxs(Pt,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===qr.STOPPED?P.jsx(mfe,{}):P.jsxs(P.Fragment,{children:[P.jsx(Qce,{}),P.jsx(xfe,{})]}),P.jsx(yfe,{})]})}function bfe(){return P.jsx(sne,{position:"static",children:P.jsx(rg,{maxWidth:"xl",children:P.jsxs(jle,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[P.jsx(Ur,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:P.jsx(AG,{})}),P.jsxs(Pt,{sx:{display:"flex",columnGap:6},children:[P.jsx(Xue,{}),P.jsx(Sfe,{}),P.jsx(RG,{})]})]})})})}function _fe({children:e}){return P.jsxs(P.Fragment,{children:[P.jsxs(Pt,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[P.jsx(bfe,{}),P.jsx("main",{children:e})]}),P.jsx(Hue,{})]})}const YG=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),XG="logViewer";function uv(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=O.useRef(e);O.useEffect(()=>{i.current=e},[e]),O.useEffect(()=>{if(!r)return;n&&i.current();const a=setInterval(()=>i.current(),t);return()=>{clearInterval(a)}},[t,r])}const wfe={},qG=yi({name:"notification",initialState:wfe,reducers:{setNotification:ng}}),ZG=qG.actions,Cfe=qG.reducer;function Tfe(e,{key:t,shouldNotify:r}){const n=xo(ZG.setNotification),i=Ni(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{e.length>0&&e.length<localStorage[a]&&(localStorage[a]=e.length),e.length>(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r(a))&&(n({[t]:!0}),localStorage[a]=e.length)},[e])}const Afe={master:[],workers:{}},KG=yi({name:"logViewer",initialState:Afe,reducers:{setLogs:ng}}),Mfe=KG.actions,kfe=KG.reducer,QG=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?QG(r):r),[]),Ife={master:[],workers:{}};function Pfe(){const e=Ni(({swarm:l})=>l),t=xo(Mfe.setLogs),{data:r,refetch:n}=Wce(),i=r||Ife,a=O.useMemo(()=>QG(Object.values(i.workers)),[i.workers]),o=O.useMemo(()=>[...i.master].concat(a),[i.master,i.workers]),s=O.useCallback(l=>o.slice(localStorage[l]).some(YG),[o]);return uv(n,5e3,{shouldRunInterval:e.state===qr.SPAWNING||e.state==qr.RUNNING}),Tfe(o,{key:XG,shouldNotify:s}),O.useEffect(()=>{t(i)},[i]),i}var Gk={},Dfe=Xu;Object.defineProperty(Gk,"__esModule",{value:!0});var Hk=Gk.default=void 0,Rfe=Dfe(qu()),bE=P,Lfe=(0,Rfe.default)([(0,bE.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,bE.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");Hk=Gk.default=Lfe;function Efe(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Ofe=/[ \t\n\f\r]/g;function Nfe(e){return typeof e=="object"?e.type==="text"?_E(e.value):!1:_E(e)}function _E(e){return e.replace(Ofe,"")===""}class ig{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}ig.prototype.property={};ig.prototype.normal={};ig.prototype.space=null;function JG(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new ig(r,n,t)}function zT(e){return e.toLowerCase()}class zi{constructor(t,r){this.property=t,this.attribute=r}}zi.prototype.space=null;zi.prototype.boolean=!1;zi.prototype.booleanish=!1;zi.prototype.overloadedBoolean=!1;zi.prototype.number=!1;zi.prototype.commaSeparated=!1;zi.prototype.spaceSeparated=!1;zi.prototype.commaOrSpaceSeparated=!1;zi.prototype.mustUseProperty=!1;zi.prototype.defined=!1;let zfe=0;const et=Zu(),cr=Zu(),eH=Zu(),ue=Zu(),zt=Zu(),bf=Zu(),Gn=Zu();function Zu(){return 2**++zfe}const BT=Object.freeze(Object.defineProperty({__proto__:null,boolean:et,booleanish:cr,commaOrSpaceSeparated:Gn,commaSeparated:bf,number:ue,overloadedBoolean:eH,spaceSeparated:zt},Symbol.toStringTag,{value:"Module"})),Bb=Object.keys(BT);class Wk extends zi{constructor(t,r,n,i){let a=-1;if(super(t,r),wE(this,"space",i),typeof n=="number")for(;++a<Bb.length;){const o=Bb[a];wE(this,Bb[a],(n&BT[o])===BT[o])}}}Wk.prototype.defined=!0;function wE(e,t,r){r&&(e[t]=r)}const Bfe={}.hasOwnProperty;function ud(e){const t={},r={};let n;for(n in e.properties)if(Bfe.call(e.properties,n)){const i=e.properties[n],a=new Wk(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[zT(n)]=n,r[zT(a.attribute)]=n}return new ig(t,r,e.space)}const tH=ud({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),rH=ud({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function nH(e,t){return t in e?e[t]:t}function iH(e,t){return nH(e,t.toLowerCase())}const aH=ud({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:iH,properties:{xmlns:null,xmlnsXLink:null}}),oH=ud({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:cr,ariaAutoComplete:null,ariaBusy:cr,ariaChecked:cr,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:zt,ariaCurrent:null,ariaDescribedBy:zt,ariaDetails:null,ariaDisabled:cr,ariaDropEffect:zt,ariaErrorMessage:null,ariaExpanded:cr,ariaFlowTo:zt,ariaGrabbed:cr,ariaHasPopup:null,ariaHidden:cr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:zt,ariaLevel:ue,ariaLive:null,ariaModal:cr,ariaMultiLine:cr,ariaMultiSelectable:cr,ariaOrientation:null,ariaOwns:zt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:cr,ariaReadOnly:cr,ariaRelevant:null,ariaRequired:cr,ariaRoleDescription:zt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:cr,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null}}),Ffe=ud({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:iH,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bf,acceptCharset:zt,accessKey:zt,action:null,allow:null,allowFullScreen:et,allowPaymentRequest:et,allowUserMedia:et,alt:null,as:null,async:et,autoCapitalize:null,autoComplete:zt,autoFocus:et,autoPlay:et,blocking:zt,capture:et,charSet:null,checked:et,cite:null,className:zt,cols:ue,colSpan:null,content:null,contentEditable:cr,controls:et,controlsList:zt,coords:ue|bf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:et,defer:et,dir:null,dirName:null,disabled:et,download:eH,draggable:cr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:et,formTarget:null,headers:zt,height:ue,hidden:et,high:ue,href:null,hrefLang:null,htmlFor:zt,httpEquiv:zt,id:null,imageSizes:null,imageSrcSet:null,inert:et,inputMode:null,integrity:null,is:null,isMap:et,itemId:null,itemProp:zt,itemRef:zt,itemScope:et,itemType:zt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:et,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:et,muted:et,name:null,nonce:null,noModule:et,noValidate:et,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:et,optimum:ue,pattern:null,ping:zt,placeholder:null,playsInline:et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:et,referrerPolicy:null,rel:zt,required:et,reversed:et,rows:ue,rowSpan:ue,sandbox:zt,scope:null,scoped:et,seamless:et,selected:et,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:cr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:et,useMap:null,value:cr,width:ue,wrap:null,align:null,aLink:null,archive:zt,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:et,declare:et,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:et,noHref:et,noShade:et,noWrap:et,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:cr,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:et,disableRemotePlayback:et,prefix:null,property:null,results:ue,security:null,unselectable:null}}),$fe=ud({space:"svg",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"},transform:nH,properties:{about:Gn,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:zt,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:et,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:bf,g2:bf,glyphName:bf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:Gn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,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:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:zt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gn,rev:Gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gn,requiredFeatures:Gn,requiredFonts:Gn,requiredFormats:Gn,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Gn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Vfe=/^data[-\w.:]+$/i,CE=/-[a-z]/g,Gfe=/[A-Z]/g;function Hfe(e,t){const r=zT(t);let n=t,i=zi;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Vfe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(CE,jfe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!CE.test(a)){let o=a.replace(Gfe,Wfe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Wk}return new i(n,t)}function Wfe(e){return"-"+e.toLowerCase()}function jfe(e){return e.charAt(1).toUpperCase()}const Ufe={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"},Yfe=JG([rH,tH,aH,oH,Ffe],"html"),sH=JG([rH,tH,aH,oH,$fe],"svg");function Xfe(e){return e.join(" ").trim()}var jk={exports:{}},TE=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,qfe=/\n/g,Zfe=/^\s*/,Kfe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Qfe=/^:\s*/,Jfe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ede=/^[;\s]*/,tde=/^\s+|\s+$/g,rde=`
143
143
  `,AE="/",ME="*",ql="",nde="comment",ide="declaration",ade=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(qfe);v&&(r+=v.length);var g=p.lastIndexOf(rde);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(Zfe)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(AE!=e.charAt(0)||ME!=e.charAt(1))){for(var v=2;ql!=e.charAt(v)&&(ME!=e.charAt(v)||AE!=e.charAt(v+1));)++v;if(v+=2,ql===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:nde,comment:g})}}function d(){var p=a(),v=l(Kfe);if(v){if(f(),!l(Qfe))return s("property missing ':'");var g=l(Jfe),m=p({type:ide,property:kE(v[0].replace(TE,ql)),value:g?kE(g[0].replace(TE,ql)):ql});return l(ede),m}}function h(){var p=[];c(p);for(var v;v=d();)v!==!1&&(p.push(v),c(p));return p}return u(),h()};function kE(e){return e?e.replace(tde,ql):ql}var ode=ade;function lH(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=ode(e),a=typeof t=="function",o,s,l=0,u=i.length;l<u;l++)n=i[l],o=n.property,s=n.value,a?t(o,s,n):s&&(r||(r={}),r[o]=s);return r}jk.exports=lH;jk.exports.default=lH;var sde=jk.exports;const lde=N1(sde),uH=cH("end"),Uk=cH("start");function cH(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function ude(e){const t=Uk(e),r=uH(e);if(t&&r)return{start:t,end:r}}function dp(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?IE(e.position):"start"in e||"end"in e?IE(e):"line"in e||"column"in e?FT(e):""}function FT(e){return PE(e&&e.line)+":"+PE(e&&e.column)}function IE(e){return FT(e&&e.start)+"-"+FT(e&&e.end)}function PE(e){return e&&typeof e=="number"?e:1}class yn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=dp(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}yn.prototype.file="";yn.prototype.name="";yn.prototype.reason="";yn.prototype.message="";yn.prototype.stack="";yn.prototype.column=void 0;yn.prototype.line=void 0;yn.prototype.ancestors=void 0;yn.prototype.cause=void 0;yn.prototype.fatal=void 0;yn.prototype.place=void 0;yn.prototype.ruleId=void 0;yn.prototype.source=void 0;const Yk={}.hasOwnProperty,cde=new Map,fde=/[A-Z]/g,dde=/-([a-z])/g,hde=new Set(["table","tbody","thead","tfoot","tr"]),pde=new Set(["td","th"]);function vde(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=mde(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=gde(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?sH:Yfe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=fH(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function fH(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=sH,e.schema=i),e.ancestors.push(t);let a=yde(e,t);const o=xde(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&hde.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Nfe(l):!0})),Yk.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function gde(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function mde(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=Uk(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function yde(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:cde;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys&&a.type==="element"){const l=i.get(a.tagName)||0;o=a.tagName+"-"+l,i.set(a.tagName,l+1)}const s=fH(e,a,o);s!==void 0&&r.push(s)}return r}function xde(e,t){const r=t[t.length-1],n={};let i;if("properties"in r&&r.properties){let a;for(i in r.properties)if(i!=="children"&&Yk.call(r.properties,i)){const o=Sde(e,t,i,r.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&pde.has(r.tagName)?a=l:n[s]=l}}if(a){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}}return n}function Sde(e,t,r,n){const i=Hfe(e.schema,r);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Efe(n):Xfe(n)),i.property==="style"){let a=typeof n=="object"?n:bde(e,t,String(n));return e.stylePropertyNameCase==="css"&&(a=_de(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?Ufe[i.property]||i.property:i.attribute,n]}}function bde(e,t,r){const n={};try{lde(r,i)}catch(a){if(!e.ignoreInvalidStyle){const o=a,s=new yn("Cannot parse `style` attribute",{ancestors:t,cause:o,source:"hast-util-to-jsx-runtime",ruleId:"style"});throw s.file=e.filePath||void 0,s.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute",s}}return n;function i(a,o){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(dde,Cde)),n[s]=o}}function _de(e){const t={};let r;for(r in e)Yk.call(e,r)&&(t[wde(r)]=e[r]);return t}function wde(e){let t=e.replace(fde,Tde);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Cde(e,t){return t.toUpperCase()}function Tde(e){return"-"+e.toLowerCase()}const Fb={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"]},Ade={};function Mde(e,t){const r=Ade,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return dH(e,n,i)}function dH(e,t,r){if(kde(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return DE(e.children,t,r)}return Array.isArray(e)?DE(e,t,r):""}function DE(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=dH(e[i],t,r);return n.join("")}function kde(e){return!!(e&&typeof e=="object")}const RE=document.createElement("i");function Xk(e){const t="&"+e+";";RE.innerHTML=t;const r=RE.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Qa(e,t,r,n){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function xi(e,t){return e.length>0?(Qa(e,e.length,0,t),e):t}const LE={}.hasOwnProperty;function Ide(e){const t={};let r=-1;for(;++r<e.length;)Pde(t,e[r]);return t}function Pde(e,t){let r;for(r in t){const i=(LE.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){LE.call(i,o)||(i[o]=[]);const s=a[o];Dde(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Dde(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Qa(e,0,0,n)}function hH(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function _f(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rde=ol(new RegExp("\\p{P}","u")),La=ol(/[A-Za-z]/),Yn=ol(/[\dA-Za-z]/),Lde=ol(/[#-'*+\--9=?A-Z^-~]/);function $T(e){return e!==null&&(e<32||e===127)}const VT=ol(/\d/),Ede=ol(/[\dA-Fa-f]/),pH=ol(/[!-/:-@[-`{-~]/);function We(e){return e!==null&&e<-2}function On(e){return e!==null&&(e<0||e===32)}function wt(e){return e===-2||e===-1||e===32}function Ode(e){return pH(e)||Rde(e)}const Nde=ol(/\s/);function ol(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function cd(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(a===37&&Yn(e.charCodeAt(r+1))&&Yn(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Ft(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return wt(l)?(e.enter(r),s(l)):t(l)}function s(l){return wt(l)&&a++<i?(e.consume(l),s):(e.exit(r),t(l))}}const zde={tokenize:Bde};function Bde(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ft(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return We(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const Fde={tokenize:$de},EE={tokenize:Vde};function $de(e){const t=this,r=[];let n=0,i,a,o;return s;function s(x){if(n<r.length){const S=r[n];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(x)}return u(x)}function l(x){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const S=t.events.length;let _=S,b;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){b=t.events[_][1].end;break}m(n);let w=S;for(;w<t.events.length;)t.events[w][1].end=Object.assign({},b),w++;return Qa(t.events,_+1,0,t.events.slice(S)),t.events.length=w,u(x)}return s(x)}function u(x){if(n===r.length){if(!i)return d(x);if(i.currentConstruct&&i.currentConstruct.concrete)return p(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(EE,c,f)(x)}function c(x){return i&&y(),m(n),d(x)}function f(x){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,p(x)}function d(x){return t.containerState={},e.attempt(EE,h,p)(x)}function h(x){return n++,r.push([t.currentConstruct,t.containerState]),d(x)}function p(x){if(x===null){i&&y(),m(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),v(x)}function v(x){if(x===null){g(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return We(x)?(e.consume(x),g(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(x),v)}function g(x,S){const _=t.sliceStream(x);if(S&&_.push(null),x.previous=a,a&&(a.next=x),a=x,i.defineSkip(x.start),i.write(_),t.parser.lazy[x.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<o&&(!i.events[b][1].end||i.events[b][1].end.offset>o))return;const w=t.events.length;let C=w,T,A;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(T){A=t.events[C][1].end;break}T=!0}for(m(n),b=w;b<t.events.length;)t.events[b][1].end=Object.assign({},A),b++;Qa(t.events,C+1,0,t.events.slice(w)),t.events.length=b}}function m(x){let S=r.length;for(;S-- >x;){const _=r[S];t.containerState=_[1],_[0].exit.call(t,e)}r.length=x}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Vde(e,t,r){return Ft(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function OE(e){if(e===null||On(e)||Nde(e))return 1;if(Ode(e))return 2}function qk(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const GT={name:"attention",tokenize:Hde,resolveAll:Gde};function Gde(e,t){let r=-1,n,i,a,o,s,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);NE(f,-l),NE(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=xi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=xi(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=xi(u,qk(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=xi(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=xi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Qa(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Hde(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=OE(n);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const u=e.exit("attentionSequence"),c=OE(l),f=!c||c===2&&i||r.includes(l),d=!i||i===2&&c||r.includes(n);return u._open=!!(a===42?f:f&&(i||!d)),u._close=!!(a===42?d:d&&(c||!f)),t(l)}}function NE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Wde={name:"autolink",tokenize:jde};function jde(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return La(h)?(e.consume(h),o):u(h)}function o(h){return h===43||h===45||h===46||Yn(h)?(n=1,s(h)):u(h)}function s(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Yn(h))&&n++<32?(e.consume(h),s):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||$T(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):Lde(h)?(e.consume(h),u):r(h)}function c(h){return Yn(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Yn(h))&&n++<63){const p=h===45?d:f;return e.consume(h),p}return r(h)}}const Kx={tokenize:Ude,partial:!0};function Ude(e,t,r){return n;function n(a){return wt(a)?Ft(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||We(a)?t(a):r(a)}}const vH={name:"blockQuote",tokenize:Yde,continuation:{tokenize:Xde},exit:qde};function Yde(e,t,r){const n=this;return i;function i(o){if(o===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return wt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function Xde(e,t,r){const n=this;return i;function i(o){return wt(o)?Ft(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(vH,t,r)(o)}}function qde(e){e.exit("blockQuote")}const gH={name:"characterEscape",tokenize:Zde};function Zde(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return pH(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const mH={name:"characterReference",tokenize:Kde};function Kde(e,t,r){const n=this;let i=0,a,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=Yn,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=Ede,c):(e.enter("characterReferenceValue"),a=7,o=VT,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===Yn&&!Xk(n.sliceSerialize(d))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<a?(e.consume(f),c):r(f)}}const zE={tokenize:Jde,partial:!0},BE={name:"codeFenced",tokenize:Qde,concrete:!0};function Qde(e,t,r){const n=this,i={tokenize:_,partial:!0};let a=0,o=0,s;return l;function l(b){return u(b)}function u(b){const w=n.events[n.events.length-1];return a=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,s=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(b)}function c(b){return b===s?(o++,e.consume(b),c):o<3?r(b):(e.exit("codeFencedFenceSequence"),wt(b)?Ft(e,f,"whitespace")(b):f(b))}function f(b){return b===null||We(b)?(e.exit("codeFencedFence"),n.interrupt?t(b):e.check(zE,v,S)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||We(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(b)):wt(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ft(e,h,"whitespace")(b)):b===96&&b===s?r(b):(e.consume(b),d)}function h(b){return b===null||We(b)?f(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||We(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(b)):b===96&&b===s?r(b):(e.consume(b),p)}function v(b){return e.attempt(i,S,g)(b)}function g(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m}function m(b){return a>0&&wt(b)?Ft(e,y,"linePrefix",a+1)(b):y(b)}function y(b){return b===null||We(b)?e.check(zE,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||We(b)?(e.exit("codeFlowValue"),y(b)):(e.consume(b),x)}function S(b){return e.exit("codeFenced"),t(b)}function _(b,w,C){let T=0;return A;function A(L){return b.enter("lineEnding"),b.consume(L),b.exit("lineEnding"),M}function M(L){return b.enter("codeFencedFence"),wt(L)?Ft(b,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):k(L)}function k(L){return L===s?(b.enter("codeFencedFenceSequence"),I(L)):C(L)}function I(L){return L===s?(T++,b.consume(L),I):T>=o?(b.exit("codeFencedFenceSequence"),wt(L)?Ft(b,R,"whitespace")(L):R(L)):C(L)}function R(L){return L===null||We(L)?(b.exit("codeFencedFence"),w(L)):C(L)}}}function Jde(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const $b={name:"codeIndented",tokenize:the},ehe={tokenize:rhe,partial:!0};function the(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Ft(e,a,"linePrefix",5)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):We(u)?e.attempt(ehe,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||We(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function rhe(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):We(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Ft(e,a,"linePrefix",5)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):We(o)?i(o):r(o)}}const nhe={name:"codeText",tokenize:ohe,resolve:ihe,previous:ahe};function ihe(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function ahe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ohe(e,t,r){let n=0,i,a;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),n++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),i=0,c(f)):We(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||We(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}function yH(e){const t={};let r=-1,n,i,a,o,s,l,u;for(;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,she(e,r)),r=t[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--&&(o=e[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(n[1].end=Object.assign({},e[i][1].start),s=e.slice(i,r),s.unshift(n),Qa(e,i,r-i+1,s))}}return!u}function she(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,l=[],u={};let c,f,d=-1,h=r,p=0,v=0;const g=[v];for(;h;){for(;e[++i][1]!==h;);a.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(v=d+1,g.push(v),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),d=g.length;d--;){const m=s.slice(g[d],g[d+1]),y=a.pop();l.unshift([y,y+m.length-1]),Qa(e,y,2,m)}for(d=-1;++d<l.length;)u[p+l[d][0]]=p+l[d][1],p+=l[d][1]-l[d][0]-1;return u}const lhe={tokenize:fhe,resolve:che},uhe={tokenize:dhe,partial:!0};function che(e){return yH(e),e}function fhe(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?a(s):We(s)?e.check(uhe,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function dhe(e,t,r){const n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ft(e,a,"linePrefix")}function a(o){if(o===null||We(o))return r(o);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function xH(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||$T(m)?r(m):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||We(m)?r(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function v(m){return!c&&(m===null||m===41||On(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(m)):c<u&&m===40?(e.consume(m),c++,v):m===41?(e.consume(m),c--,v):m===null||m===32||m===40||$T(m)?r(m):(e.consume(m),m===92?g:v)}function g(m){return m===40||m===41||m===92?(e.consume(m),v):v(m)}}function SH(e,t,r,n,i,a){const o=this;let s=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(a),c}function c(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):We(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||We(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!wt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function bH(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):We(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Ft(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||We(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function hp(e,t){let r;return n;function n(i){return We(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):wt(i)?Ft(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const hhe={name:"definition",tokenize:vhe},phe={tokenize:ghe,partial:!0};function vhe(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return SH.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=_f(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return On(h)?hp(e,u)(h):u(h)}function u(h){return xH(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(phe,f,f)(h)}function f(h){return wt(h)?Ft(e,d,"whitespace")(h):d(h)}function d(h){return h===null||We(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function ghe(e,t,r){return n;function n(s){return On(s)?hp(e,i)(s):r(s)}function i(s){return bH(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return wt(s)?Ft(e,o,"whitespace")(s):o(s)}function o(s){return s===null||We(s)?t(s):r(s)}}const mhe={name:"hardBreakEscape",tokenize:yhe};function yhe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return We(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const xhe={name:"headingAtx",tokenize:bhe,resolve:She};function She(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Qa(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function bhe(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||On(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||We(c)?(e.exit("atxHeading"),t(c)):wt(c)?Ft(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||On(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const _he=["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"],FE=["pre","script","style","textarea"],whe={name:"htmlFlow",tokenize:Mhe,resolveTo:Ahe,concrete:!0},Che={tokenize:Ihe,partial:!0},The={tokenize:khe,partial:!0};function Ahe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Mhe(e,t,r){const n=this;let i,a,o,s,l;return u;function u(F){return c(F)}function c(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),f}function f(F){return F===33?(e.consume(F),d):F===47?(e.consume(F),a=!0,v):F===63?(e.consume(F),i=3,n.interrupt?t:E):La(F)?(e.consume(F),o=String.fromCharCode(F),g):r(F)}function d(F){return F===45?(e.consume(F),i=2,h):F===91?(e.consume(F),i=5,s=0,p):La(F)?(e.consume(F),i=4,n.interrupt?t:E):r(F)}function h(F){return F===45?(e.consume(F),n.interrupt?t:E):r(F)}function p(F){const Y="CDATA[";return F===Y.charCodeAt(s++)?(e.consume(F),s===Y.length?n.interrupt?t:k:p):r(F)}function v(F){return La(F)?(e.consume(F),o=String.fromCharCode(F),g):r(F)}function g(F){if(F===null||F===47||F===62||On(F)){const Y=F===47,J=o.toLowerCase();return!Y&&!a&&FE.includes(J)?(i=1,n.interrupt?t(F):k(F)):_he.includes(o.toLowerCase())?(i=6,Y?(e.consume(F),m):n.interrupt?t(F):k(F)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(F):a?y(F):x(F))}return F===45||Yn(F)?(e.consume(F),o+=String.fromCharCode(F),g):r(F)}function m(F){return F===62?(e.consume(F),n.interrupt?t:k):r(F)}function y(F){return wt(F)?(e.consume(F),y):A(F)}function x(F){return F===47?(e.consume(F),A):F===58||F===95||La(F)?(e.consume(F),S):wt(F)?(e.consume(F),x):A(F)}function S(F){return F===45||F===46||F===58||F===95||Yn(F)?(e.consume(F),S):_(F)}function _(F){return F===61?(e.consume(F),b):wt(F)?(e.consume(F),_):x(F)}function b(F){return F===null||F===60||F===61||F===62||F===96?r(F):F===34||F===39?(e.consume(F),l=F,w):wt(F)?(e.consume(F),b):C(F)}function w(F){return F===l?(e.consume(F),l=null,T):F===null||We(F)?r(F):(e.consume(F),w)}function C(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||On(F)?_(F):(e.consume(F),C)}function T(F){return F===47||F===62||wt(F)?x(F):r(F)}function A(F){return F===62?(e.consume(F),M):r(F)}function M(F){return F===null||We(F)?k(F):wt(F)?(e.consume(F),M):r(F)}function k(F){return F===45&&i===2?(e.consume(F),N):F===60&&i===1?(e.consume(F),$):F===62&&i===4?(e.consume(F),G):F===63&&i===3?(e.consume(F),E):F===93&&i===5?(e.consume(F),V):We(F)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Che,W,I)(F)):F===null||We(F)?(e.exit("htmlFlowData"),I(F)):(e.consume(F),k)}function I(F){return e.check(The,R,W)(F)}function R(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),L}function L(F){return F===null||We(F)?I(F):(e.enter("htmlFlowData"),k(F))}function N(F){return F===45?(e.consume(F),E):k(F)}function $(F){return F===47?(e.consume(F),o="",z):k(F)}function z(F){if(F===62){const Y=o.toLowerCase();return FE.includes(Y)?(e.consume(F),G):k(F)}return La(F)&&o.length<8?(e.consume(F),o+=String.fromCharCode(F),z):k(F)}function V(F){return F===93?(e.consume(F),E):k(F)}function E(F){return F===62?(e.consume(F),G):F===45&&i===2?(e.consume(F),E):k(F)}function G(F){return F===null||We(F)?(e.exit("htmlFlowData"),W(F)):(e.consume(F),G)}function W(F){return e.exit("htmlFlow"),t(F)}}function khe(e,t,r){const n=this;return i;function i(o){return We(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function Ihe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Kx,t,r)}}const Phe={name:"htmlText",tokenize:Dhe};function Dhe(e,t,r){const n=this;let i,a,o;return s;function s(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),l}function l(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),_):E===63?(e.consume(E),x):La(E)?(e.consume(E),C):r(E)}function u(E){return E===45?(e.consume(E),c):E===91?(e.consume(E),a=0,p):La(E)?(e.consume(E),y):r(E)}function c(E){return E===45?(e.consume(E),h):r(E)}function f(E){return E===null?r(E):E===45?(e.consume(E),d):We(E)?(o=f,$(E)):(e.consume(E),f)}function d(E){return E===45?(e.consume(E),h):f(E)}function h(E){return E===62?N(E):E===45?d(E):f(E)}function p(E){const G="CDATA[";return E===G.charCodeAt(a++)?(e.consume(E),a===G.length?v:p):r(E)}function v(E){return E===null?r(E):E===93?(e.consume(E),g):We(E)?(o=v,$(E)):(e.consume(E),v)}function g(E){return E===93?(e.consume(E),m):v(E)}function m(E){return E===62?N(E):E===93?(e.consume(E),m):v(E)}function y(E){return E===null||E===62?N(E):We(E)?(o=y,$(E)):(e.consume(E),y)}function x(E){return E===null?r(E):E===63?(e.consume(E),S):We(E)?(o=x,$(E)):(e.consume(E),x)}function S(E){return E===62?N(E):x(E)}function _(E){return La(E)?(e.consume(E),b):r(E)}function b(E){return E===45||Yn(E)?(e.consume(E),b):w(E)}function w(E){return We(E)?(o=w,$(E)):wt(E)?(e.consume(E),w):N(E)}function C(E){return E===45||Yn(E)?(e.consume(E),C):E===47||E===62||On(E)?T(E):r(E)}function T(E){return E===47?(e.consume(E),N):E===58||E===95||La(E)?(e.consume(E),A):We(E)?(o=T,$(E)):wt(E)?(e.consume(E),T):N(E)}function A(E){return E===45||E===46||E===58||E===95||Yn(E)?(e.consume(E),A):M(E)}function M(E){return E===61?(e.consume(E),k):We(E)?(o=M,$(E)):wt(E)?(e.consume(E),M):T(E)}function k(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),i=E,I):We(E)?(o=k,$(E)):wt(E)?(e.consume(E),k):(e.consume(E),R)}function I(E){return E===i?(e.consume(E),i=void 0,L):E===null?r(E):We(E)?(o=I,$(E)):(e.consume(E),I)}function R(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||On(E)?T(E):(e.consume(E),R)}function L(E){return E===47||E===62||On(E)?T(E):r(E)}function N(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function $(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),z}function z(E){return wt(E)?Ft(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):V(E)}function V(E){return e.enter("htmlTextData"),o(E)}}const Zk={name:"labelEnd",tokenize:zhe,resolveTo:Nhe,resolveAll:Ohe},Rhe={tokenize:Bhe},Lhe={tokenize:Fhe},Ehe={tokenize:$he};function Ohe(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function Nhe(e,t){let r=e.length,n=0,i,a,o,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[a+n+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",l,t],["enter",u,t]],s=xi(s,e.slice(a+1,a+n+3)),s=xi(s,[["enter",c,t]]),s=xi(s,qk(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=xi(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=xi(s,e.slice(o+1)),s=xi(s,[["exit",l,t]]),Qa(e,a,e.length,s),e}function zhe(e,t,r){const n=this;let i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(d){return a?a._inactive?f(d):(o=n.parser.defined.includes(_f(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(Rhe,c,o?c:f)(d):d===91?e.attempt(Lhe,c,o?u:f)(d):o?c(d):f(d)}function u(d){return e.attempt(Ehe,c,f)(d)}function c(d){return t(d)}function f(d){return a._balanced=!0,r(d)}}function Bhe(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return On(f)?hp(e,a)(f):a(f)}function a(f){return f===41?c(f):xH(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return On(f)?hp(e,l)(f):c(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?bH(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return On(f)?hp(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function Fhe(e,t,r){const n=this;return i;function i(s){return SH.call(n,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(_f(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function $he(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const Vhe={name:"labelStartImage",tokenize:Ghe,resolveAll:Zk.resolveAll};function Ghe(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const Hhe={name:"labelStartLink",tokenize:Whe,resolveAll:Zk.resolveAll};function Whe(e,t,r){const n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const Vb={name:"lineEnding",tokenize:jhe};function jhe(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ft(e,t,"linePrefix")}}const Iy={name:"thematicBreak",tokenize:Uhe};function Uhe(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||We(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),wt(u)?Ft(e,s,"whitespace")(u):s(u))}}const _n={name:"list",tokenize:qhe,continuation:{tokenize:Zhe},exit:Qhe},Yhe={tokenize:Jhe,partial:!0},Xhe={tokenize:Khe,partial:!0};function qhe(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:VT(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Iy,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return VT(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(Kx,n.interrupt?r:c,e.attempt(Yhe,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return wt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Zhe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Kx,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Ft(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!wt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Xhe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Ft(e,e.attempt(_n,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Khe(e,t,r){const n=this;return Ft(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function Qhe(e){e.exit(this.containerState.type)}function Jhe(e,t,r){const n=this;return Ft(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=n.events[n.events.length-1];return!wt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const $E={name:"setextUnderline",tokenize:tpe,resolveTo:epe};function epe(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function tpe(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),wt(u)?Ft(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||We(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const rpe={tokenize:npe};function npe(e){const t=this,r=e.attempt(Kx,n,e.attempt(this.parser.constructs.flowInitial,i,Ft(e,e.attempt(this.parser.constructs.flow,i,e.attempt(lhe,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const ipe={resolveAll:wH()},ape=_H("string"),ope=_H("text");function _H(e){return{tokenize:t,resolveAll:wH(e==="text"?spe:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function wH(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function spe(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let a=i.length,o=-1,s=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(s){const u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-s,offset:n.end.offset-s,_index:n.start._index+a,_bufferIndex:a?o:n.start._bufferIndex+o},end:Object.assign({},n.end)};n.end=Object.assign({},u.start),n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}function lpe(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const l={consume:y,enter:x,exit:S,attempt:w(_),check:w(b),interrupt:w(b,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:d,now:p,defineSkip:v,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function f(M){return o=xi(o,M),g(),o[o.length-1]!==null?[]:(C(t,0),u.events=qk(a,u.events,u),u.events)}function d(M,k){return cpe(h(M),k)}function h(M){return upe(o,M)}function p(){const{line:M,column:k,offset:I,_index:R,_bufferIndex:L}=n;return{line:M,column:k,offset:I,_index:R,_bufferIndex:L}}function v(M){i[M.line]=M.column,A()}function g(){let M;for(;n._index<o.length;){const k=o[n._index];if(typeof k=="string")for(M=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===M&&n._bufferIndex<k.length;)m(k.charCodeAt(n._bufferIndex));else m(k)}}function m(M){c=c(M)}function y(M){We(M)?(n.line++,n.column=1,n.offset+=M===-3?2:1,A()):M!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=M}function x(M,k){const I=k||{};return I.type=M,I.start=p(),u.events.push(["enter",I,u]),s.push(I),I}function S(M){const k=s.pop();return k.end=p(),u.events.push(["exit",k,u]),k}function _(M,k){C(M,k.from)}function b(M,k){k.restore()}function w(M,k){return I;function I(R,L,N){let $,z,V,E;return Array.isArray(R)?W(R):"tokenize"in R?W([R]):G(R);function G(j){return ee;function ee(Q){const te=Q!==null&&j[Q],ae=Q!==null&&j.null,K=[...Array.isArray(te)?te:te?[te]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return W(K)(Q)}}function W(j){return $=j,z=0,j.length===0?N:F(j[z])}function F(j){return ee;function ee(Q){return E=T(),V=j,j.partial||(u.currentConstruct=j),j.name&&u.parser.constructs.disable.null.includes(j.name)?J():j.tokenize.call(k?Object.assign(Object.create(u),k):u,l,Y,J)(Q)}}function Y(j){return M(V,E),L}function J(j){return E.restore(),++z<$.length?F($[z]):N}}}function C(M,k){M.resolveAll&&!a.includes(M)&&a.push(M),M.resolve&&Qa(u.events,k,u.events.length-k,M.resolve(u.events.slice(k),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function T(){const M=p(),k=u.previous,I=u.currentConstruct,R=u.events.length,L=Array.from(s);return{restore:N,from:R};function N(){n=M,u.previous=k,u.currentConstruct=I,u.events.length=R,s=L,A()}}function A(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function upe(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function cpe(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
144
144
  `;break}case-3:{o=`\r
145
145
  `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}const fpe={42:_n,43:_n,45:_n,48:_n,49:_n,50:_n,51:_n,52:_n,53:_n,54:_n,55:_n,56:_n,57:_n,62:vH},dpe={91:hhe},hpe={[-2]:$b,[-1]:$b,32:$b},ppe={35:xhe,42:Iy,45:[$E,Iy],60:whe,61:$E,95:Iy,96:BE,126:BE},vpe={38:mH,92:gH},gpe={[-5]:Vb,[-4]:Vb,[-3]:Vb,33:Vhe,38:mH,42:GT,60:[Wde,Phe],91:Hhe,92:[mhe,gH],93:Zk,95:GT,96:nhe},mpe={null:[GT,ipe]},ype={null:[42,95]},xpe={null:[]},Spe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ype,contentInitial:dpe,disable:xpe,document:fpe,flow:ppe,flowInitial:hpe,insideSpan:mpe,string:vpe,text:gpe},Symbol.toStringTag,{value:"Module"}));function bpe(e){const r=Ide([Spe,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(zde),document:i(Fde),flow:i(rpe),string:i(ape),text:i(ope)};return n;function i(a){return o;function o(s){return lpe(n,a,s)}}}function _pe(e){for(;!yH(e););return e}const VE=/[\0\t\n\r]/g;function wpe(){let e=1,t="",r=!0,n;return i;function i(a,o,s){const l=[];let u,c,f,d,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",r&&(a.charCodeAt(0)===65279&&f++,r=void 0);f<a.length;){if(VE.lastIndex=f,u=VE.exec(a),d=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(d),!u){t=a.slice(f);break}if(h===10&&f===d&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=d+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Cpe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Tpe(e){return e.replace(Cpe,Ape)}function Ape(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return hH(r.slice(a?2:1),a?16:10)}return Xk(r)||e}const CH={}.hasOwnProperty;function Mpe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),kpe(r)(_pe(bpe(r).document().write(wpe()(e,t,!0))))}function kpe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(rt),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(pe),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(ae),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ae,o),codeText:a(K,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ne),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(me),hardBreakEscape:a(Me),hardBreakTrailing:a(Me),htmlFlow:a(je,o),htmlFlowData:T,htmlText:a(je,o),htmlTextData:T,image:a(Ue),label:o,link:a(rt),listItem:a(st),listItemValue:d,listOrdered:a(ot,f),listUnordered:a(ot),paragraph:a(Xe),reference:F,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(pe),strong:a(Vt),thematicBreak:a(lt)},exit:{atxHeading:l(),atxHeadingSequence:_,autolink:l(),autolinkEmail:Q,autolinkProtocol:ee,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:j,codeFenced:l(g),codeFencedFence:v,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:A,codeIndented:l(m),codeText:l(L),codeTextData:A,data:A,definition:l(),definitionDestinationString:S,definitionLabelString:y,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(I),htmlFlowData:A,htmlText:l(R),htmlTextData:A,image:l($),label:V,labelText:z,lineEnding:M,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Y,resourceDestinationString:E,resourceTitleString:G,resource:W,setextHeading:l(C),setextHeadingLineSequence:w,setextHeadingText:b,strong:l(),thematicBreak:l()}};TH(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(X){let ie={type:"root",children:[]};const Pe={stack:[ie],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},be=[];let he=-1;for(;++he<X.length;)if(X[he][1].type==="listOrdered"||X[he][1].type==="listUnordered")if(X[he][0]==="enter")be.push(he);else{const pt=be.pop();he=i(X,pt,he)}for(he=-1;++he<X.length;){const pt=t[X[he][0]];CH.call(pt,X[he][1].type)&&pt[X[he][1].type].call(Object.assign({sliceSerialize:X[he][2].sliceSerialize},Pe),X[he][1])}if(Pe.tokenStack.length>0){const pt=Pe.tokenStack[Pe.tokenStack.length-1];(pt[1]||GE).call(Pe,void 0,pt[0])}for(ie.position={start:Ko(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:Ko(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<t.transforms.length;)ie=t.transforms[he](ie)||ie;return ie}function i(X,ie,Pe){let be=ie-1,he=-1,pt=!1,Qt,_e,it,At;for(;++be<=Pe;){const de=X[be];switch(de[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{de[0]==="enter"?he++:he--,At=void 0;break}case"lineEndingBlank":{de[0]==="enter"&&(Qt&&!At&&!he&&!it&&(it=be),At=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:At=void 0}if(!he&&de[0]==="enter"&&de[1].type==="listItemPrefix"||he===-1&&de[0]==="exit"&&(de[1].type==="listUnordered"||de[1].type==="listOrdered")){if(Qt){let De=be;for(_e=void 0;De--;){const qe=X[De];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;_e&&(X[_e][1].type="lineEndingBlank",pt=!0),qe[1].type="lineEnding",_e=De}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}it&&(!_e||it<_e)&&(Qt._spread=!0),Qt.end=Object.assign({},_e?X[_e][1].start:de[1].end),X.splice(_e||be,0,["exit",Qt,de[2]]),be++,Pe++}if(de[1].type==="listItemPrefix"){const De={type:"listItem",_spread:!1,start:Object.assign({},de[1].start),end:void 0};Qt=De,X.splice(be,0,["enter",De,de[2]]),be++,Pe++,it=void 0,At=!0}}}return X[ie][1]._spread=pt,Pe}function a(X,ie){return Pe;function Pe(be){s.call(this,X(be),be),ie&&ie.call(this,be)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(X,ie,Pe){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([ie,Pe]),X.position={start:Ko(ie.start),end:void 0}}function l(X){return ie;function ie(Pe){X&&X.call(this,Pe),u.call(this,Pe)}}function u(X,ie){const Pe=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==X.type&&(ie?ie.call(this,X,be[0]):(be[1]||GE).call(this,X,be[0]));else throw new Error("Cannot close `"+X.type+"` ("+dp({start:X.start,end:X.end})+"): it’s not open");Pe.position.end=Ko(X.end)}function c(){return Mde(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(X){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function h(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=X}function p(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=X}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.value=X.replace(/(\r?\n|\r)$/g,"")}function y(X){const ie=this.resume(),Pe=this.stack[this.stack.length-1];Pe.label=ie,Pe.identifier=_f(this.sliceSerialize(X)).toLowerCase()}function x(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.title=X}function S(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.url=X}function _(X){const ie=this.stack[this.stack.length-1];if(!ie.depth){const Pe=this.sliceSerialize(X).length;ie.depth=Pe}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function w(X){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function T(X){const Pe=this.stack[this.stack.length-1].children;let be=Pe[Pe.length-1];(!be||be.type!=="text")&&(be=Tt(),be.position={start:Ko(X.start),end:void 0},Pe.push(be)),this.stack.push(be)}function A(X){const ie=this.stack.pop();ie.value+=this.sliceSerialize(X),ie.position.end=Ko(X.end)}function M(X){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Pe=ie.children[ie.children.length-1];Pe.position.end=Ko(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ie.type)&&(T.call(this,X),A.call(this,X))}function k(){this.data.atHardBreak=!0}function I(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.value=X}function R(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.value=X}function L(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.value=X}function N(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ie,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function $(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=ie,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function z(X){const ie=this.sliceSerialize(X),Pe=this.stack[this.stack.length-2];Pe.label=Tpe(ie),Pe.identifier=_f(ie).toLowerCase()}function V(){const X=this.stack[this.stack.length-1],ie=this.resume(),Pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Pe.type==="link"){const be=X.children;Pe.children=be}else Pe.alt=ie}function E(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.url=X}function G(){const X=this.resume(),ie=this.stack[this.stack.length-1];ie.title=X}function W(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function Y(X){const ie=this.resume(),Pe=this.stack[this.stack.length-1];Pe.label=ie,Pe.identifier=_f(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function J(X){this.data.characterReferenceType=X.type}function j(X){const ie=this.sliceSerialize(X),Pe=this.data.characterReferenceType;let be;Pe?(be=hH(ie,Pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=Xk(ie);const he=this.stack.pop();he.value+=be,he.position.end=Ko(X.end)}function ee(X){A.call(this,X);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(X)}function Q(X){A.call(this,X);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(X)}function te(){return{type:"blockquote",children:[]}}function ae(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function ne(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function me(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:0,children:[]}}function Me(){return{type:"break"}}function je(){return{type:"html",value:""}}function Ue(){return{type:"image",title:null,url:"",alt:null}}function rt(){return{type:"link",title:null,url:"",children:[]}}function ot(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function st(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function Xe(){return{type:"paragraph",children:[]}}function Vt(){return{type:"strong",children:[]}}function Tt(){return{type:"text",value:""}}function lt(){return{type:"thematicBreak"}}}function Ko(e){return{line:e.line,column:e.column,offset:e.offset}}function TH(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?TH(e,n):Ipe(e,n)}}function Ipe(e,t){let r;for(r in t)if(CH.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function GE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+dp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+dp({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+dp({start:t.start,end:t.end})+") is still open")}function Ppe(e){const t=this;t.parser=r;function r(n){return Mpe(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Dpe(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Rpe(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`