locust 2.37.14.dev9__py3-none-any.whl → 2.37.15.dev5__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.
- locust/_version.py +2 -2
- locust/webui/dist/assets/{index-B6pZm8wd.js → index-Csul44Gr.js} +1 -1
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -1
- {locust-2.37.14.dev9.dist-info → locust-2.37.15.dev5.dist-info}/METADATA +1 -1
- {locust-2.37.14.dev9.dist-info → locust-2.37.15.dev5.dist-info}/RECORD +9 -9
- {locust-2.37.14.dev9.dist-info → locust-2.37.15.dev5.dist-info}/WHEEL +0 -0
- {locust-2.37.14.dev9.dist-info → locust-2.37.15.dev5.dist-info}/entry_points.txt +0 -0
- {locust-2.37.14.dev9.dist-info → locust-2.37.15.dev5.dist-info}/licenses/LICENSE +0 -0
locust/_version.py
CHANGED
@@ -17,5 +17,5 @@ __version__: str
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
18
18
|
version_tuple: VERSION_TUPLE
|
19
19
|
|
20
|
-
__version__ = version = '2.37.
|
21
|
-
__version_tuple__ = version_tuple = (2, 37,
|
20
|
+
__version__ = version = '2.37.15.dev5'
|
21
|
+
__version_tuple__ = version_tuple = (2, 37, 15, 'dev5')
|
@@ -201,7 +201,7 @@ export default theme;`}function tS(e={},...t){const{breakpoints:r,mixins:n={},sp
|
|
201
201
|
`:null,f9=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,o={root:["root",r,`color${ue(n)}`],svg:["svg"],circle:["circle",`circle${ue(r)}`,i&&"circleDisableShrink"]};return je(o,l9,t)},d9=se("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${ue(r.color)}`]]}})(Oe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:u9||{animation:`${uS} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),p9=se("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),h9=se("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${ue(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Oe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:c9||{animation:`${cS} 1.4s ease-in-out infinite`}}]}))),kD=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:d=0,variant:p="indeterminate",...h}=n,v={...n,color:o,disableShrink:a,size:s,thickness:c,value:d,variant:p},g=f9(v),x={},y={},S={};if(p==="determinate"){const w=2*Math.PI*((Va-c)/2);x.strokeDasharray=w.toFixed(3),S["aria-valuenow"]=Math.round(d),x.strokeDashoffset=`${((100-d)/100*w).toFixed(3)}px`,y.transform="rotate(-90deg)"}return P.jsx(d9,{className:Se(g.root,i),style:{width:s,height:s,...y,...l},ownerState:v,ref:r,role:"progressbar",...S,...h,children:P.jsx(p9,{className:g.svg,ownerState:v,viewBox:`${Va/2} ${Va/2} ${Va} ${Va}`,children:P.jsx(h9,{className:g.circle,style:x,ownerState:v,cx:Va,cy:Va,r:(Va-c)/2,fill:"none",strokeWidth:c})})})});function v9(e){return ze("MuiIconButton",e)}const WM=Fe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),g9=e=>{const{classes:t,disabled:r,color:n,edge:i,size:o,loading:a}=e,s={root:["root",a&&"loading",r&&"disabled",n!=="default"&&`color${ue(n)}`,i&&`edge${ue(i)}`,`size${ue(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return je(s,v9,t)},m9=se(xs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${ue(r.color)}`],r.edge&&t[`edge${ue(r.edge)}`],t[`size${ue(r.size)}`]]}})(Oe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Oe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${WM.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${WM.loading}`]:{color:"transparent"}}))),y9=se("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ba=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:v,...g}=n,x=Tc(p),y=v??P.jsx(kD,{"aria-labelledby":x,color:"inherit",size:16}),S={...n,edge:i,color:s,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:y,size:d},w=g9(S);return P.jsxs(m9,{id:h?x:p,className:Se(w.root,a),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:r,...g,ownerState:S,children:[typeof h=="boolean"&&P.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:P.jsx(y9,{className:w.loadingIndicator,ownerState:S,children:h&&y})}),o]})}),x9=Gt(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"})),S9=Gt(P.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),b9=Gt(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"})),w9=Gt(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"})),RD=Gt(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"})),_9=e=>{const{variant:t,color:r,severity:n,classes:i}=e,o={root:["root",`color${ue(r||n)}`,`${t}${ue(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return je(o,s9,i)},C9=se(ji,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ue(r.color||r.severity)}`]]}})(Oe(({theme:e})=>{const t=e.palette.mode==="light"?$l:zl,r=e.palette.mode==="light"?zl:$l;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Cr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${jM.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Cr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${jM.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Cr(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${n}FilledColor`],backgroundColor:e.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[n].dark:e.palette[n].main,color:e.palette.getContrastText(e.palette[n].main)}}}))]}})),T9=se("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),M9=se("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),k9=se("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),HM={success:P.jsx(x9,{fontSize:"inherit"}),warning:P.jsx(S9,{fontSize:"inherit"}),error:P.jsx(b9,{fontSize:"inherit"}),info:P.jsx(w9,{fontSize:"inherit"})},ua=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiAlert"}),{action:i,children:o,className:a,closeText:s="Close",color:l,components:c={},componentsProps:d={},icon:p,iconMapping:h=HM,onClose:v,role:g="alert",severity:x="success",slotProps:y={},slots:S={},variant:w="standard",...b}=n,C={...n,color:l,severity:x,variant:w,colorSeverity:l||x},T=_9(C),M={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...S},slotProps:{...d,...y}},[E,I]=Ue("root",{ref:r,shouldForwardComponentProp:!0,className:Se(T.root,a),elementType:C9,externalForwardedProps:{...M,...b},ownerState:C,additionalProps:{role:g,elevation:0}}),[D,k]=Ue("icon",{className:T.icon,elementType:T9,externalForwardedProps:M,ownerState:C}),[O,N]=Ue("message",{className:T.message,elementType:M9,externalForwardedProps:M,ownerState:C}),[$,z]=Ue("action",{className:T.action,elementType:k9,externalForwardedProps:M,ownerState:C}),[F,j]=Ue("closeButton",{elementType:ba,externalForwardedProps:M,ownerState:C}),[K,V]=Ue("closeIcon",{elementType:RD,externalForwardedProps:M,ownerState:C});return P.jsxs(E,{...I,children:[p!==!1?P.jsx(D,{...k,children:p||h[x]||HM[x]}):null,P.jsx(O,{...N,children:o}),i!=null?P.jsx($,{...z,children:i}):null,i==null&&v?P.jsx($,{...z,children:P.jsx(F,{size:"small","aria-label":s,title:s,color:"inherit",onClick:v,...j,children:P.jsx(K,{fontSize:"small",...V})})}):null]})});function R9(e){return ze("MuiTypography",e)}const VM=Fe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),P9={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},E9=l8(),A9=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${ue(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return je(s,R9,a)},I9=se("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${ue(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Oe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(Cr()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ue(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),UM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Xe=L.forwardRef(function(t,r){const{color:n,...i}=He({props:t,name:"MuiTypography"}),o=!P9[n],a=E9({...i,...o&&{color:n}}),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:v="body1",variantMapping:g=UM,...x}=a,y={...a,align:s,color:n,className:l,component:c,gutterBottom:d,noWrap:p,paragraph:h,variant:v,variantMapping:g},S=c||(h?"p":g[v]||UM[v])||"span",w=A9(y);return P.jsx(I9,{as:S,ref:r,className:Se(w.root,l),...x,ownerState:y,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...x.style}})});function D9(e){return ze("MuiAppBar",e)}Fe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const L9=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${ue(t)}`,`position${ue(r)}`]};return je(i,D9,n)},GM=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,O9=se(ji,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ue(r.position)}`],t[`color${ue(r.color)}`]]}})(Oe(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Cr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?GM(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?GM(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),N9=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed",...l}=n,c={...n,color:o,position:s,enableColorOnDark:a},d=L9(c);return P.jsx(O9,{square:!0,component:"header",ownerState:c,elevation:4,className:Se(d.root,i,s==="fixed"&&"mui-fixed"),ref:r,...l})}),B9=e=>{const t=L.useRef({});return L.useEffect(()=>{t.current=e}),t.current};function YM(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function $9(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let d=a?l.trim():l;r&&(d=d.toLowerCase()),t&&(d=YM(d));const p=d?s.filter(h=>{let v=(o||c)(h);return r&&(v=v.toLowerCase()),t&&(v=YM(v)),i==="start"?v.startsWith(d):v.includes(d)}):s;return typeof n=="number"?p.slice(0,n):p}}const z9=$9(),F9=5,j9=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},W9=[];function qM(e,t,r,n){if(t||e==null||n)return"";const i=r(e);return typeof i=="string"?i:""}function H9(e){const{unstable_isActiveElementInListbox:t=j9,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:d=e.multiple?W9:null,disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:v,disabledItemsFocusable:g=!1,disableListWrap:x=!1,filterOptions:y=z9,filterSelectedOptions:S=!1,freeSolo:w=!1,getOptionDisabled:b,getOptionKey:C,getOptionLabel:T=ae=>ae.label??ae,groupBy:M,handleHomeEndKeys:E=!e.freeSolo,id:I,includeInputInList:D=!1,inputValue:k,isOptionEqualToValue:O=(ae,ie)=>ae===ie,multiple:N=!1,onChange:$,onClose:z,onHighlightChange:F,onInputChange:j,onOpen:K,open:V,openOnFocus:H=!1,options:Y,readOnly:W=!1,renderValue:q,selectOnFocus:te=!e.freeSolo,value:le}=e,ne=Tc(I);let Q=T;Q=ae=>{const ie=T(ae);return typeof ie!="string"?String(ie):ie};const ce=L.useRef(!1),me=L.useRef(!0),de=L.useRef(null),fe=L.useRef(null),[ge,pe]=L.useState(null),[Ne,ke]=L.useState(-1),it=i?0:-1,rt=L.useRef(it),dt=L.useRef(qM(d??le,N,Q)).current,[we,at]=cs({controlled:le,default:d,name:c}),[Ee,Ye]=cs({controlled:k,default:dt,name:c,state:"inputValue"}),[Ce,Xt]=L.useState(!1),mt=L.useCallback((ae,ie,Re)=>{if(!(N?we.length<ie.length:ie!==null)&&!s)return;const qe=qM(ie,N,Q,q);Ee!==qe&&(Ye(qe),j&&j(ae,qe,Re))},[Q,Ee,N,j,Ye,s,we,q]),[Wt,Jt]=cs({controlled:V,default:!1,name:c,state:"open"}),[ar,Lt]=L.useState(!0),tr=!N&&we!=null&&Ee===Q(we),Je=Wt&&!W,xe=Je?y(Y.filter(ae=>!(S&&(N?we:[we]).some(ie=>ie!==null&&O(ae,ie)))),{inputValue:tr&&ar?"":Ee,getOptionLabel:Q}):[],wt=B9({filteredOptions:xe,value:we,inputValue:Ee});L.useEffect(()=>{const ae=we!==wt.value;Ce&&!ae||w&&!ae||mt(null,we,"reset")},[we,mt,Ce,wt.value,w]);const Rt=Wt&&xe.length>0&&!W,ut=vn(ae=>{if(ae===-1)de.current.focus();else{const ie=q?"data-item-index":"data-tag-index";ge.querySelector(`[${ie}="${ae}"]`).focus()}});L.useEffect(()=>{N&&Ne>we.length-1&&(ke(-1),ut(-1))},[we,N,Ne,ut]);function Be(ae,ie){if(!fe.current||ae<0||ae>=xe.length)return-1;let Re=ae;for(;;){const vt=fe.current.querySelector(`[data-option-index="${Re}"]`),qe=g?!1:!vt||vt.disabled||vt.getAttribute("aria-disabled")==="true";if(vt&&vt.hasAttribute("tabindex")&&!qe)return Re;if(ie==="next"?Re=(Re+1)%xe.length:Re=(Re-1+xe.length)%xe.length,Re===ae)return-1}}const st=vn(({event:ae,index:ie,reason:Re})=>{if(rt.current=ie,ie===-1?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant",`${ne}-option-${ie}`),F&&["mouse","keyboard","touch"].includes(Re)&&F(ae,ie===-1?null:xe[ie],Re),!fe.current)return;const vt=fe.current.querySelector(`[role="option"].${r}-focused`);vt&&(vt.classList.remove(`${r}-focused`),vt.classList.remove(`${r}-focusVisible`));let qe=fe.current;if(fe.current.getAttribute("role")!=="listbox"&&(qe=fe.current.parentElement.querySelector('[role="listbox"]')),!qe)return;if(ie===-1){qe.scrollTop=0;return}const sr=fe.current.querySelector(`[data-option-index="${ie}"]`);if(sr&&(sr.classList.add(`${r}-focused`),Re==="keyboard"&&sr.classList.add(`${r}-focusVisible`),qe.scrollHeight>qe.clientHeight&&Re!=="mouse"&&Re!=="touch")){const mr=sr,Pt=qe.clientHeight+qe.scrollTop,Ic=mr.offsetTop+mr.offsetHeight;Ic>Pt?qe.scrollTop=Ic-qe.clientHeight:mr.offsetTop-mr.offsetHeight*(M?1.3:0)<qe.scrollTop&&(qe.scrollTop=mr.offsetTop-mr.offsetHeight*(M?1.3:0))}}),_t=vn(({event:ae,diff:ie,direction:Re="next",reason:vt})=>{if(!Je)return;const sr=Be((()=>{const mr=xe.length-1;if(ie==="reset")return it;if(ie==="start")return 0;if(ie==="end")return mr;const Pt=rt.current+ie;return Pt<0?Pt===-1&&D?-1:x&&rt.current!==-1||Math.abs(ie)>1?0:mr:Pt>mr?Pt===mr+1&&D?-1:x||Math.abs(ie)>1?mr:0:Pt})(),Re);if(st({index:sr,reason:vt,event:ae}),n&&ie!=="reset")if(sr===-1)de.current.value=Ee;else{const mr=Q(xe[sr]);de.current.value=mr,mr.toLowerCase().indexOf(Ee.toLowerCase())===0&&Ee.length>0&&de.current.setSelectionRange(Ee.length,mr.length)}}),gr=()=>{const ae=(ie,Re)=>{const vt=ie?Q(ie):"",qe=Re?Q(Re):"";return vt===qe};if(rt.current!==-1&&wt.filteredOptions&&wt.filteredOptions.length!==xe.length&&wt.inputValue===Ee&&(N?we.length===wt.value.length&&wt.value.every((ie,Re)=>Q(we[Re])===Q(ie)):ae(wt.value,we))){const ie=wt.filteredOptions[rt.current];if(ie)return xe.findIndex(Re=>Q(Re)===Q(ie))}return-1},Nr=L.useCallback(()=>{if(!Je)return;const ae=gr();if(ae!==-1){rt.current=ae;return}const ie=N?we[0]:we;if(xe.length===0||ie==null){_t({diff:"reset"});return}if(fe.current){if(ie!=null){const Re=xe[rt.current];if(N&&Re&&we.findIndex(qe=>O(Re,qe))!==-1)return;const vt=xe.findIndex(qe=>O(qe,ie));vt===-1?_t({diff:"reset"}):st({index:vt});return}if(rt.current>=xe.length-1){st({index:xe.length-1});return}st({index:rt.current})}},[xe.length,N?!1:we,S,_t,st,Je,Ee,N]),Hi=vn(ae=>{iS(fe,ae),ae&&Nr()});L.useEffect(()=>{Nr()},[Nr]);const rr=ae=>{Wt||(Jt(!0),Lt(!0),K&&K(ae))},Rr=(ae,ie)=>{Wt&&(Jt(!1),z&&z(ae,ie))},en=(ae,ie,Re,vt)=>{if(N){if(we.length===ie.length&&we.every((qe,sr)=>qe===ie[sr]))return}else if(we===ie)return;$&&$(ae,ie,Re,vt),at(ie)},qn=L.useRef(!1),Ur=(ae,ie,Re="selectOption",vt="options")=>{let qe=Re,sr=ie;if(N){sr=Array.isArray(we)?we.slice():[];const mr=sr.findIndex(Pt=>O(ie,Pt));mr===-1?sr.push(ie):vt!=="freeSolo"&&(sr.splice(mr,1),qe="removeOption")}mt(ae,sr,qe),en(ae,sr,qe,{option:ie}),!h&&(!ae||!ae.ctrlKey&&!ae.metaKey)&&Rr(ae,qe),(a===!0||a==="touch"&&qn.current||a==="mouse"&&!qn.current)&&de.current.blur()};function Vi(ae,ie){if(ae===-1)return-1;let Re=ae;for(;;){if(ie==="next"&&Re===we.length||ie==="previous"&&Re===-1)return-1;const vt=q?"data-item-index":"data-tag-index",qe=ge.querySelector(`[${vt}="${Re}"]`);if(!qe||!qe.hasAttribute("tabindex")||qe.disabled||qe.getAttribute("aria-disabled")==="true")Re+=ie==="next"?1:-1;else return Re}}const et=(ae,ie)=>{if(!N)return;Ee===""&&Rr(ae,"toggleInput");let Re=Ne;Ne===-1?Ee===""&&ie==="previous"&&(Re=we.length-1):(Re+=ie==="next"?1:-1,Re<0&&(Re=0),Re===we.length&&(Re=-1)),Re=Vi(Re,ie),ke(Re),ut(Re)},nr=ae=>{ce.current=!0,Ye(""),j&&j(ae,"","clear"),en(ae,N?[]:null,"clear")},Me=ae=>ie=>{if(ae.onKeyDown&&ae.onKeyDown(ie),!ie.defaultMuiPrevented&&(Ne!==-1&&!["ArrowLeft","ArrowRight"].includes(ie.key)&&(ke(-1),ut(-1)),ie.which!==229))switch(ie.key){case"Home":Je&&E&&(ie.preventDefault(),_t({diff:"start",direction:"next",reason:"keyboard",event:ie}));break;case"End":Je&&E&&(ie.preventDefault(),_t({diff:"end",direction:"previous",reason:"keyboard",event:ie}));break;case"PageUp":ie.preventDefault(),_t({diff:-5,direction:"previous",reason:"keyboard",event:ie}),rr(ie);break;case"PageDown":ie.preventDefault(),_t({diff:F9,direction:"next",reason:"keyboard",event:ie}),rr(ie);break;case"ArrowDown":ie.preventDefault(),_t({diff:1,direction:"next",reason:"keyboard",event:ie}),rr(ie);break;case"ArrowUp":ie.preventDefault(),_t({diff:-1,direction:"previous",reason:"keyboard",event:ie}),rr(ie);break;case"ArrowLeft":!N&&q?ut(0):et(ie,"previous");break;case"ArrowRight":!N&&q?ut(-1):et(ie,"next");break;case"Enter":if(rt.current!==-1&&Je){const Re=xe[rt.current],vt=b?b(Re):!1;if(ie.preventDefault(),vt)return;Ur(ie,Re,"selectOption"),n&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else w&&Ee!==""&&tr===!1&&(N&&ie.preventDefault(),Ur(ie,Ee,"createOption","freeSolo"));break;case"Escape":Je?(ie.preventDefault(),ie.stopPropagation(),Rr(ie,"escape")):l&&(Ee!==""||N&&we.length>0||q)&&(ie.preventDefault(),ie.stopPropagation(),nr(ie));break;case"Backspace":if(N&&!W&&Ee===""&&we.length>0){const Re=Ne===-1?we.length-1:Ne,vt=we.slice();vt.splice(Re,1),en(ie,vt,"removeOption",{option:we[Re]})}!N&&q&&!W&&(at(null),ut(-1));break;case"Delete":if(N&&!W&&Ee===""&&we.length>0&&Ne!==-1){const Re=Ne,vt=we.slice();vt.splice(Re,1),en(ie,vt,"removeOption",{option:we[Re]})}!N&&q&&!W&&(at(null),ut(-1));break}},Ae=ae=>{Xt(!0),H&&!ce.current&&rr(ae)},ct=ae=>{if(t(fe)){de.current.focus();return}Xt(!1),me.current=!0,ce.current=!1,o&&rt.current!==-1&&Je?Ur(ae,xe[rt.current],"blur"):o&&w&&Ee!==""?Ur(ae,Ee,"blur","freeSolo"):s&&mt(ae,we,"blur"),Rr(ae,"blur")},pt=ae=>{const ie=ae.target.value;Ee!==ie&&(Ye(ie),Lt(!1),j&&j(ae,ie,"input")),ie===""?!p&&!N&&en(ae,null,"clear"):rr(ae)},zt=ae=>{const ie=Number(ae.currentTarget.getAttribute("data-option-index"));rt.current!==ie&&st({event:ae,index:ie,reason:"mouse"})},Pr=ae=>{st({event:ae,index:Number(ae.currentTarget.getAttribute("data-option-index")),reason:"touch"}),qn.current=!0},tn=ae=>{const ie=Number(ae.currentTarget.getAttribute("data-option-index"));Ur(ae,xe[ie],"selectOption"),qn.current=!1},mn=ae=>ie=>{const Re=we.slice();Re.splice(ae,1),en(ie,Re,"removeOption",{option:we[ae]})},Go=ae=>{en(ae,null,"removeOption",{option:we})},pi=ae=>{Wt?Rr(ae,"toggleInput"):rr(ae)},Er=ae=>{ae.currentTarget.contains(ae.target)&&ae.target.getAttribute("id")!==ne&&ae.preventDefault()},Ar=ae=>{ae.currentTarget.contains(ae.target)&&(de.current.focus(),te&&me.current&&de.current.selectionEnd-de.current.selectionStart===0&&de.current.select(),me.current=!1)},rn=ae=>{!v&&(Ee===""||!Wt)&&pi(ae)};let Ca=w&&Ee.length>0;Ca=Ca||(N?we.length>0:we!==null);let Rs=xe;return M&&(Rs=xe.reduce((ae,ie,Re)=>{const vt=M(ie);return ae.length>0&&ae[ae.length-1].group===vt?ae[ae.length-1].options.push(ie):ae.push({key:Re,index:Re,group:vt,options:[ie]}),ae},[])),v&&Ce&&ct(),{getRootProps:(ae={})=>({...ae,onKeyDown:Me(ae),onMouseDown:Er,onClick:Ar}),getInputLabelProps:()=>({id:`${ne}-label`,htmlFor:ne}),getInputProps:()=>({id:ne,value:Ee,onBlur:ct,onFocus:Ae,onChange:pt,onMouseDown:rn,"aria-activedescendant":Je?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Rt?`${ne}-listbox`:void 0,"aria-expanded":Rt,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:nr}),getItemProps:({index:ae=0}={})=>({...N&&{key:ae},...q?{"data-item-index":ae}:{"data-tag-index":ae},tabIndex:-1,...!W&&{onDelete:N?mn(ae):Go}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:pi}),getTagProps:({index:ae})=>({key:ae,"data-tag-index":ae,tabIndex:-1,...!W&&{onDelete:mn(ae)}}),getListboxProps:()=>({role:"listbox",id:`${ne}-listbox`,"aria-labelledby":`${ne}-label`,ref:Hi,onMouseDown:ae=>{ae.preventDefault()}}),getOptionProps:({index:ae,option:ie})=>{const Re=(N?we:[we]).some(qe=>qe!=null&&O(ie,qe)),vt=b?b(ie):!1;return{key:(C==null?void 0:C(ie))??Q(ie),tabIndex:-1,role:"option",id:`${ne}-option-${ae}`,onMouseMove:zt,onClick:tn,onTouchStart:Pr,"data-option-index":ae,"aria-disabled":vt,"aria-selected":Re}},id:ne,inputValue:Ee,value:we,dirty:Ca,expanded:Je&&ge,popupOpen:Je,focused:Ce||Ne!==-1,anchorEl:ge,setAnchorEl:pe,focusedItem:Ne,focusedTag:Ne,groupedOptions:Rs}}var zn="top",Bi="bottom",$i="right",Fn="left",yw="auto",xp=[zn,Bi,$i,Fn],cc="start",Fd="end",V9="clippingParents",PD="viewport",xf="popper",U9="reference",XM=xp.reduce(function(e,t){return e.concat([t+"-"+cc,t+"-"+Fd])},[]),ED=[].concat(xp,[yw]).reduce(function(e,t){return e.concat([t,t+"-"+cc,t+"-"+Fd])},[]),G9="beforeRead",Y9="read",q9="afterRead",X9="beforeMain",K9="main",Z9="afterMain",Q9="beforeWrite",J9="write",e7="afterWrite",t7=[G9,Y9,q9,X9,K9,Z9,Q9,J9,e7];function Bo(e){return e?(e.nodeName||"").toLowerCase():null}function ui(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fl(e){var t=ui(e).Element;return e instanceof t||e instanceof Element}function Oi(e){var t=ui(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xw(e){if(typeof ShadowRoot>"u")return!1;var t=ui(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function r7(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!Oi(o)||!Bo(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function n7(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],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,c){return l[c]="",l},{});!Oi(i)||!Bo(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const i7={name:"applyStyles",enabled:!0,phase:"write",fn:r7,effect:n7,requires:["computeStyles"]};function Eo(e){return e.split("-")[0]}var Rl=Math.max,Sg=Math.min,fc=Math.round;function fS(){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 AD(){return!/^((?!chrome|android).)*safari/i.test(fS())}function dc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Oi(e)&&(i=e.offsetWidth>0&&fc(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&fc(n.height)/e.offsetHeight||1);var a=Fl(e)?ui(e):window,s=a.visualViewport,l=!AD()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/i,d=(n.top+(l&&s?s.offsetTop:0))/o,p=n.width/i,h=n.height/o;return{width:p,height:h,top:d,right:c+p,bottom:d+h,left:c,x:c,y:d}}function Sw(e){var t=dc(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 ID(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&xw(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ma(e){return ui(e).getComputedStyle(e)}function o7(e){return["table","td","th"].indexOf(Bo(e))>=0}function Ts(e){return((Fl(e)?e.ownerDocument:e.document)||window.document).documentElement}function mm(e){return Bo(e)==="html"?e:e.assignedSlot||e.parentNode||(xw(e)?e.host:null)||Ts(e)}function KM(e){return!Oi(e)||ma(e).position==="fixed"?null:e.offsetParent}function a7(e){var t=/firefox/i.test(fS()),r=/Trident/i.test(fS());if(r&&Oi(e)){var n=ma(e);if(n.position==="fixed")return null}var i=mm(e);for(xw(i)&&(i=i.host);Oi(i)&&["html","body"].indexOf(Bo(i))<0;){var o=ma(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Sp(e){for(var t=ui(e),r=KM(e);r&&o7(r)&&ma(r).position==="static";)r=KM(r);return r&&(Bo(r)==="html"||Bo(r)==="body"&&ma(r).position==="static")?t:r||a7(e)||t}function bw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fd(e,t,r){return Rl(e,Sg(t,r))}function s7(e,t,r){var n=fd(e,t,r);return n>r?r:n}function DD(){return{top:0,right:0,bottom:0,left:0}}function LD(e){return Object.assign({},DD(),e)}function OD(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var l7=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,LD(typeof t!="number"?t:OD(t,xp))};function u7(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Eo(r.placement),l=bw(s),c=[Fn,$i].indexOf(s)>=0,d=c?"height":"width";if(!(!o||!a)){var p=l7(i.padding,r),h=Sw(o),v=l==="y"?zn:Fn,g=l==="y"?Bi:$i,x=r.rects.reference[d]+r.rects.reference[l]-a[l]-r.rects.popper[d],y=a[l]-r.rects.reference[l],S=Sp(o),w=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,b=x/2-y/2,C=p[v],T=w-h[d]-p[g],M=w/2-h[d]/2+b,E=fd(C,M,T),I=l;r.modifiersData[n]=(t={},t[I]=E,t.centerOffset=E-M,t)}}function c7(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)||ID(t.elements.popper,i)&&(t.elements.arrow=i))}const f7={name:"arrow",enabled:!0,phase:"main",fn:u7,effect:c7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pc(e){return e.split("-")[1]}var d7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p7(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:fc(r*i)/i||0,y:fc(n*i)/i||0}}function ZM(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=a.x,v=h===void 0?0:h,g=a.y,x=g===void 0?0:g,y=typeof d=="function"?d({x:v,y:x}):{x:v,y:x};v=y.x,x=y.y;var S=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),b=Fn,C=zn,T=window;if(c){var M=Sp(r),E="clientHeight",I="clientWidth";if(M===ui(r)&&(M=Ts(r),ma(M).position!=="static"&&s==="absolute"&&(E="scrollHeight",I="scrollWidth")),M=M,i===zn||(i===Fn||i===$i)&&o===Fd){C=Bi;var D=p&&M===T&&T.visualViewport?T.visualViewport.height:M[E];x-=D-n.height,x*=l?1:-1}if(i===Fn||(i===zn||i===Bi)&&o===Fd){b=$i;var k=p&&M===T&&T.visualViewport?T.visualViewport.width:M[I];v-=k-n.width,v*=l?1:-1}}var O=Object.assign({position:s},c&&d7),N=d===!0?p7({x:v,y:x},ui(r)):{x:v,y:x};if(v=N.x,x=N.y,l){var $;return Object.assign({},O,($={},$[C]=w?"0":"",$[b]=S?"0":"",$.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",$))}return Object.assign({},O,(t={},t[C]=w?x+"px":"",t[b]=S?v+"px":"",t.transform="",t))}function h7(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Eo(t.placement),variation:pc(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,ZM(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZM(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const v7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:h7,data:{}};var Yh={passive:!0};function g7(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,l=ui(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",r.update,Yh)}),s&&l.addEventListener("resize",r.update,Yh),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Yh)}),s&&l.removeEventListener("resize",r.update,Yh)}}const m7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:g7,data:{}};var y7={left:"right",right:"left",bottom:"top",top:"bottom"};function Yv(e){return e.replace(/left|right|bottom|top/g,function(t){return y7[t]})}var x7={start:"end",end:"start"};function QM(e){return e.replace(/start|end/g,function(t){return x7[t]})}function ww(e){var t=ui(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function _w(e){return dc(Ts(e)).left+ww(e).scrollLeft}function S7(e,t){var r=ui(e),n=Ts(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=AD();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+_w(e),y:l}}function b7(e){var t,r=Ts(e),n=ww(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Rl(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Rl(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+_w(e),l=-n.scrollTop;return ma(i||r).direction==="rtl"&&(s+=Rl(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Cw(e){var t=ma(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function ND(e){return["html","body","#document"].indexOf(Bo(e))>=0?e.ownerDocument.body:Oi(e)&&Cw(e)?e:ND(mm(e))}function dd(e,t){var r;t===void 0&&(t=[]);var n=ND(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=ui(n),a=i?[o].concat(o.visualViewport||[],Cw(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(dd(mm(a)))}function dS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w7(e,t){var r=dc(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 JM(e,t,r){return t===PD?dS(S7(e,r)):Fl(t)?w7(t,r):dS(b7(Ts(e)))}function _7(e){var t=dd(mm(e)),r=["absolute","fixed"].indexOf(ma(e).position)>=0,n=r&&Oi(e)?Sp(e):e;return Fl(n)?t.filter(function(i){return Fl(i)&&ID(i,n)&&Bo(i)!=="body"}):[]}function C7(e,t,r,n){var i=t==="clippingParents"?_7(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(l,c){var d=JM(e,c,n);return l.top=Rl(d.top,l.top),l.right=Sg(d.right,l.right),l.bottom=Sg(d.bottom,l.bottom),l.left=Rl(d.left,l.left),l},JM(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function BD(e){var t=e.reference,r=e.element,n=e.placement,i=n?Eo(n):null,o=n?pc(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case zn:l={x:a,y:t.y-r.height};break;case Bi:l={x:a,y:t.y+t.height};break;case $i:l={x:t.x+t.width,y:s};break;case Fn:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?bw(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case cc:l[c]=l[c]-(t[d]/2-r[d]/2);break;case Fd:l[c]=l[c]+(t[d]/2-r[d]/2);break}}return l}function jd(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,l=s===void 0?V9:s,c=r.rootBoundary,d=c===void 0?PD:c,p=r.elementContext,h=p===void 0?xf:p,v=r.altBoundary,g=v===void 0?!1:v,x=r.padding,y=x===void 0?0:x,S=LD(typeof y!="number"?y:OD(y,xp)),w=h===xf?U9:xf,b=e.rects.popper,C=e.elements[g?w:h],T=C7(Fl(C)?C:C.contextElement||Ts(e.elements.popper),l,d,a),M=dc(e.elements.reference),E=BD({reference:M,element:b,placement:i}),I=dS(Object.assign({},b,E)),D=h===xf?I:M,k={top:T.top-D.top+S.top,bottom:D.bottom-T.bottom+S.bottom,left:T.left-D.left+S.left,right:D.right-T.right+S.right},O=e.modifiersData.offset;if(h===xf&&O){var N=O[i];Object.keys(k).forEach(function($){var z=[$i,Bi].indexOf($)>=0?1:-1,F=[zn,Bi].indexOf($)>=0?"y":"x";k[$]+=N[F]*z})}return k}function T7(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?ED:l,d=pc(n),p=d?s?XM:XM.filter(function(g){return pc(g)===d}):xp,h=p.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=p);var v=h.reduce(function(g,x){return g[x]=jd(e,{placement:x,boundary:i,rootBoundary:o,padding:a})[Eo(x)],g},{});return Object.keys(v).sort(function(g,x){return v[g]-v[x]})}function M7(e){if(Eo(e)===yw)return[];var t=Yv(e);return[QM(e),t,QM(t)]}function k7(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,v=r.flipVariations,g=v===void 0?!0:v,x=r.allowedAutoPlacements,y=t.options.placement,S=Eo(y),w=S===y,b=l||(w||!g?[Yv(y)]:M7(y)),C=[y].concat(b).reduce(function(le,ne){return le.concat(Eo(ne)===yw?T7(t,{placement:ne,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:x}):ne)},[]),T=t.rects.reference,M=t.rects.popper,E=new Map,I=!0,D=C[0],k=0;k<C.length;k++){var O=C[k],N=Eo(O),$=pc(O)===cc,z=[zn,Bi].indexOf(N)>=0,F=z?"width":"height",j=jd(t,{placement:O,boundary:d,rootBoundary:p,altBoundary:h,padding:c}),K=z?$?$i:Fn:$?Bi:zn;T[F]>M[F]&&(K=Yv(K));var V=Yv(K),H=[];if(o&&H.push(j[N]<=0),s&&H.push(j[K]<=0,j[V]<=0),H.every(function(le){return le})){D=O,I=!1;break}E.set(O,H)}if(I)for(var Y=g?3:1,W=function(ne){var Q=C.find(function(ce){var me=E.get(ce);if(me)return me.slice(0,ne).every(function(de){return de})});if(Q)return D=Q,"break"},q=Y;q>0;q--){var te=W(q);if(te==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const R7={name:"flip",enabled:!0,phase:"main",fn:k7,requiresIfExists:["offset"],data:{_skip:!1}};function ek(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 tk(e){return[zn,$i,Bi,Fn].some(function(t){return e[t]>=0})}function P7(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=jd(t,{elementContext:"reference"}),s=jd(t,{altBoundary:!0}),l=ek(a,n),c=ek(s,i,o),d=tk(l),p=tk(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const E7={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:P7};function A7(e,t,r){var n=Eo(e),i=[Fn,zn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Fn,$i].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function I7(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=ED.reduce(function(d,p){return d[p]=A7(p,t.rects,o),d},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}const D7={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:I7};function L7(e){var t=e.state,r=e.name;t.modifiersData[r]=BD({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const O7={name:"popperOffsets",enabled:!0,phase:"read",fn:L7,data:{}};function N7(e){return e==="x"?"y":"x"}function B7(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,p=r.padding,h=r.tether,v=h===void 0?!0:h,g=r.tetherOffset,x=g===void 0?0:g,y=jd(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:d}),S=Eo(t.placement),w=pc(t.placement),b=!w,C=bw(S),T=N7(C),M=t.modifiersData.popperOffsets,E=t.rects.reference,I=t.rects.popper,D=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,k=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(M){if(o){var $,z=C==="y"?zn:Fn,F=C==="y"?Bi:$i,j=C==="y"?"height":"width",K=M[C],V=K+y[z],H=K-y[F],Y=v?-I[j]/2:0,W=w===cc?E[j]:I[j],q=w===cc?-I[j]:-E[j],te=t.elements.arrow,le=v&&te?Sw(te):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:DD(),Q=ne[z],ce=ne[F],me=fd(0,E[j],le[j]),de=b?E[j]/2-Y-me-Q-k.mainAxis:W-me-Q-k.mainAxis,fe=b?-E[j]/2+Y+me+ce+k.mainAxis:q+me+ce+k.mainAxis,ge=t.elements.arrow&&Sp(t.elements.arrow),pe=ge?C==="y"?ge.clientTop||0:ge.clientLeft||0:0,Ne=($=O==null?void 0:O[C])!=null?$:0,ke=K+de-Ne-pe,it=K+fe-Ne,rt=fd(v?Sg(V,ke):V,K,v?Rl(H,it):H);M[C]=rt,N[C]=rt-K}if(s){var dt,we=C==="x"?zn:Fn,at=C==="x"?Bi:$i,Ee=M[T],Ye=T==="y"?"height":"width",Ce=Ee+y[we],Xt=Ee-y[at],mt=[zn,Fn].indexOf(S)!==-1,Wt=(dt=O==null?void 0:O[T])!=null?dt:0,Jt=mt?Ce:Ee-E[Ye]-I[Ye]-Wt+k.altAxis,ar=mt?Ee+E[Ye]+I[Ye]-Wt-k.altAxis:Xt,Lt=v&&mt?s7(Jt,Ee,ar):fd(v?Jt:Ce,Ee,v?ar:Xt);M[T]=Lt,N[T]=Lt-Ee}t.modifiersData[n]=N}}const $7={name:"preventOverflow",enabled:!0,phase:"main",fn:B7,requiresIfExists:["offset"]};function z7(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function F7(e){return e===ui(e)||!Oi(e)?ww(e):z7(e)}function j7(e){var t=e.getBoundingClientRect(),r=fc(t.width)/e.offsetWidth||1,n=fc(t.height)/e.offsetHeight||1;return r!==1||n!==1}function W7(e,t,r){r===void 0&&(r=!1);var n=Oi(t),i=Oi(t)&&j7(t),o=Ts(t),a=dc(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Bo(t)!=="body"||Cw(o))&&(s=F7(t)),Oi(t)?(l=dc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=_w(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function H7(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function V7(e){var t=H7(e);return t7.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function U7(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function G7(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 rk={placement:"bottom",modifiers:[],strategy:"absolute"};function nk(){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 Y7(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?rk:i;return function(s,l,c){c===void 0&&(c=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},rk,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},p=[],h=!1,v={state:d,setOptions:function(S){var w=typeof S=="function"?S(d.options):S;x(),d.options=Object.assign({},o,d.options,w),d.scrollParents={reference:Fl(s)?dd(s):s.contextElement?dd(s.contextElement):[],popper:dd(l)};var b=V7(G7([].concat(n,d.options.modifiers)));return d.orderedModifiers=b.filter(function(C){return C.enabled}),g(),v.update()},forceUpdate:function(){if(!h){var S=d.elements,w=S.reference,b=S.popper;if(nk(w,b)){d.rects={reference:W7(w,Sp(b),d.options.strategy==="fixed"),popper:Sw(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(k){return d.modifiersData[k.name]=Object.assign({},k.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var T=d.orderedModifiers[C],M=T.fn,E=T.options,I=E===void 0?{}:E,D=T.name;typeof M=="function"&&(d=M({state:d,options:I,name:D,instance:v})||d)}}}},update:U7(function(){return new Promise(function(y){v.forceUpdate(),y(d)})}),destroy:function(){x(),h=!0}};if(!nk(s,l))return v;v.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var S=y.name,w=y.options,b=w===void 0?{}:w,C=y.effect;if(typeof C=="function"){var T=C({state:d,name:S,instance:v,options:b}),M=function(){};p.push(T||M)}})}function x(){p.forEach(function(y){return y()}),p=[]}return v}}var q7=[m7,O7,v7,i7,D7,R7,$7,f7,E7],X7=Y7({defaultModifiers:q7});function hc(e){var p;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...o}=e,a=i?{}:CD(r,n),{props:s,internalRef:l}=MD({...o,externalSlotProps:a}),c=Tr(l,a==null?void 0:a.ref,(p=e.additionalProps)==null?void 0:p.ref);return _D(t,{...s,ref:c},n)}function ql(e){var t;return parseInt(L.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function K7(e){return typeof e=="function"?e():e}const $D=L.forwardRef(function(t,r){const{children:n,container:i,disablePortal:o=!1}=t,[a,s]=L.useState(null),l=Tr(L.isValidElement(n)?ql(n):null,r);if(lo(()=>{o||s(K7(i)||document.body)},[i,o]),lo(()=>{if(a&&!o)return iS(r,a),()=>{iS(r,null)}},[r,a,o]),o){if(L.isValidElement(n)){const c={ref:l};return L.cloneElement(n,c)}return n}return a&&SD.createPortal(n,a)});function Z7(e){return ze("MuiPopper",e)}Fe("MuiPopper",["root"]);function Q7(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 pS(e){return typeof e=="function"?e():e}function J7(e){return e.nodeType!==void 0}const eW=e=>{const{classes:t}=e;return je({root:["root"]},Z7,t)},tW={},rW=L.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:o,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:d,popperRef:p,slotProps:h={},slots:v={},TransitionProps:g,ownerState:x,...y}=t,S=L.useRef(null),w=Tr(S,r),b=L.useRef(null),C=Tr(b,p),T=L.useRef(C);lo(()=>{T.current=C},[C]),L.useImperativeHandle(p,()=>b.current,[]);const M=Q7(c,o),[E,I]=L.useState(M),[D,k]=L.useState(pS(n));L.useEffect(()=>{b.current&&b.current.forceUpdate()}),L.useEffect(()=>{n&&k(pS(n))},[n]),lo(()=>{if(!D||!l)return;const F=V=>{I(V.placement)};let j=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{F(V)}}];s!=null&&(j=j.concat(s)),d&&d.modifiers!=null&&(j=j.concat(d.modifiers));const K=X7(D,S.current,{placement:M,...d,modifiers:j});return T.current(K),()=>{K.destroy(),T.current(null)}},[D,a,s,l,d,M]);const O={placement:E};g!==null&&(O.TransitionProps=g);const N=eW(t),$=v.root??"div",z=hc({elementType:$,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:N.root});return P.jsx($,{...z,children:typeof i=="function"?i(O):i})}),nW=L.forwardRef(function(t,r){const{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:d,placement:p="bottom",popperOptions:h=tW,popperRef:v,style:g,transition:x=!1,slotProps:y={},slots:S={},...w}=t,[b,C]=L.useState(!0),T=()=>{C(!1)},M=()=>{C(!0)};if(!l&&!d&&(!x||b))return null;let E;if(o)E=o;else if(n){const k=pS(n);E=k&&J7(k)?Hn(k).body:Hn(null).body}const I=!d&&l&&(!x||b)?"none":void 0,D=x?{in:d,onEnter:T,onExited:M}:void 0;return P.jsx($D,{disablePortal:s,container:E,children:P.jsx(rW,{anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:r,open:x?!b:d,placement:p,popperOptions:h,popperRef:v,slotProps:y,slots:S,...w,style:{position:"fixed",top:0,left:0,display:I,...g},TransitionProps:D,children:i})})}),iW=se(nW,{name:"MuiPopper",slot:"Root"})({}),ym=L.forwardRef(function(t,r){const n=Cc(),i=He({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:l,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:g,popperOptions:x,popperRef:y,transition:S,slots:w,slotProps:b,...C}=i,T=(w==null?void 0:w.root)??(s==null?void 0:s.Root),M={anchorEl:o,container:c,disablePortal:d,keepMounted:p,modifiers:h,open:v,placement:g,popperOptions:x,popperRef:y,transition:S,...C};return P.jsx(iW,{as:a,direction:n?"rtl":"ltr",slots:{root:T},slotProps:b??l,...M,ref:r})});function oW(e){return ze("MuiListSubheader",e)}Fe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const aW=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:o}=e,a={root:["root",r!=="default"&&`color${ue(r)}`,!n&&"gutters",i&&"inset",!o&&"sticky"]};return je(a,oW,t)},sW=se("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ue(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(Oe(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),hS=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1,...d}=n,p={...n,color:o,component:a,disableGutters:s,disableSticky:l,inset:c},h=aW(p);return P.jsx(sW,{as:a,className:Se(h.root,i),ref:r,ownerState:p,...d})});hS&&(hS.muiSkipListHighlight=!0);const lW=Gt(P.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function uW(e){return ze("MuiChip",e)}const Ct=Fe("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),cW=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,r&&"disabled",`size${ue(n)}`,`color${ue(i)}`,s&&"clickable",s&&`clickableColor${ue(i)}`,a&&"deletable",a&&`deletableColor${ue(i)}`,`${l}${ue(i)}`],label:["label",`label${ue(n)}`],avatar:["avatar",`avatar${ue(n)}`,`avatarColor${ue(i)}`],icon:["icon",`icon${ue(n)}`,`iconColor${ue(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(n)}`,`deleteIconColor${ue(i)}`,`deleteIcon${ue(l)}Color${ue(i)}`]};return je(c,uW,t)},fW=se("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=r;return[{[`& .${Ct.avatar}`]:t.avatar},{[`& .${Ct.avatar}`]:t[`avatar${ue(s)}`]},{[`& .${Ct.avatar}`]:t[`avatarColor${ue(n)}`]},{[`& .${Ct.icon}`]:t.icon},{[`& .${Ct.icon}`]:t[`icon${ue(s)}`]},{[`& .${Ct.icon}`]:t[`iconColor${ue(i)}`]},{[`& .${Ct.deleteIcon}`]:t.deleteIcon},{[`& .${Ct.deleteIcon}`]:t[`deleteIcon${ue(s)}`]},{[`& .${Ct.deleteIcon}`]:t[`deleteIconColor${ue(n)}`]},{[`& .${Ct.deleteIcon}`]:t[`deleteIcon${ue(l)}Color${ue(n)}`]},t.root,t[`size${ue(s)}`],t[`color${ue(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ue(n)})`],a&&t.deletable,a&&n!=="default"&&t[`deletableColor${ue(n)}`],t[l],t[`${l}${ue(n)}`]]}})(Oe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ct.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ct.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ct.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ct.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ct.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ct.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ct.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:bt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:bt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ct.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ct.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Cr(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${Ct.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:bt(e.palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Ct.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Ct.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Cr(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Ct.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:bt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Cr(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ct.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ct.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ct.avatar}`]:{marginLeft:4},[`& .${Ct.avatarSmall}`]:{marginLeft:2},[`& .${Ct.icon}`]:{marginLeft:4},[`& .${Ct.iconSmall}`]:{marginLeft:2},[`& .${Ct.deleteIcon}`]:{marginRight:5},[`& .${Ct.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Cr()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:bt(e.palette[r].main,.7)}`,[`&.${Ct.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${Ct.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:bt(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${Ct.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:bt(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),dW=se("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ue(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function ik(e){return e.key==="Backspace"||e.key==="Delete"}const pW=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:d=!1,icon:p,label:h,onClick:v,onDelete:g,onKeyDown:x,onKeyUp:y,size:S="medium",variant:w="filled",tabIndex:b,skipFocusWhenDisabled:C=!1,slots:T={},slotProps:M={},...E}=n,I=L.useRef(null),D=Tr(I,r),k=Q=>{Q.stopPropagation(),g&&g(Q)},O=Q=>{Q.currentTarget===Q.target&&ik(Q)&&Q.preventDefault(),x&&x(Q)},N=Q=>{Q.currentTarget===Q.target&&g&&ik(Q)&&g(Q),y&&y(Q)},$=a!==!1&&v?!0:a,z=$||g?xs:l||"div",F={...n,component:z,disabled:d,size:S,color:s,iconColor:L.isValidElement(p)&&p.props.color||s,onDelete:!!g,clickable:$,variant:w},j=cW(F),K=z===xs?{component:l||"div",focusVisibleClassName:j.focusVisible,...g&&{disableRipple:!0}}:{};let V=null;g&&(V=c&&L.isValidElement(c)?L.cloneElement(c,{className:Se(c.props.className,j.deleteIcon),onClick:k}):P.jsx(lW,{className:j.deleteIcon,onClick:k}));let H=null;i&&L.isValidElement(i)&&(H=L.cloneElement(i,{className:Se(j.avatar,i.props.className)}));let Y=null;p&&L.isValidElement(p)&&(Y=L.cloneElement(p,{className:Se(j.icon,p.props.className)}));const W={slots:T,slotProps:M},[q,te]=Ue("root",{elementType:fW,externalForwardedProps:{...W,...E},ownerState:F,shouldForwardComponentProp:!0,ref:D,className:Se(j.root,o),additionalProps:{disabled:$&&d?!0:void 0,tabIndex:C&&d?-1:b,...K},getSlotProps:Q=>({...Q,onClick:ce=>{var me;(me=Q.onClick)==null||me.call(Q,ce),v(ce)},onKeyDown:ce=>{var me;(me=Q.onKeyDown)==null||me.call(Q,ce),O(ce)},onKeyUp:ce=>{var me;(me=Q.onKeyUp)==null||me.call(Q,ce),N(ce)}})}),[le,ne]=Ue("label",{elementType:dW,externalForwardedProps:W,ownerState:F,className:j.label});return P.jsxs(q,{as:z,...te,children:[H||Y,P.jsx(le,{...ne,children:h}),V]})});function qh(e){return parseInt(e,10)||0}const hW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function vW(e){for(const t in e)return!1;return!0}function ok(e){return vW(e)||e.outerHeightStyle===0&&!e.overflowing}const gW=L.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:o=1,style:a,value:s,...l}=t,{current:c}=L.useRef(s!=null),d=L.useRef(null),p=Tr(r,d),h=L.useRef(null),v=L.useRef(null),g=L.useCallback(()=>{const b=d.current,C=v.current;if(!b||!C)return;const M=li(b).getComputedStyle(b);if(M.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=M.width,C.value=b.value||t.placeholder||"x",C.value.slice(-1)===`
|
202
202
|
`&&(C.value+=" ");const E=M.boxSizing,I=qh(M.paddingBottom)+qh(M.paddingTop),D=qh(M.borderBottomWidth)+qh(M.borderTopWidth),k=C.scrollHeight;C.value="x";const O=C.scrollHeight;let N=k;o&&(N=Math.max(Number(o)*O,N)),i&&(N=Math.min(Number(i)*O,N)),N=Math.max(N,O);const $=N+(E==="border-box"?I+D:0),z=Math.abs(N-k)<=1;return{outerHeightStyle:$,overflowing:z}},[i,o,t.placeholder]),x=vn(()=>{const b=d.current,C=g();if(!b||!C||ok(C))return!1;const T=C.outerHeightStyle;return h.current!=null&&h.current!==T}),y=L.useCallback(()=>{const b=d.current,C=g();if(!b||!C||ok(C))return;const T=C.outerHeightStyle;h.current!==T&&(h.current=T,b.style.height=`${T}px`),b.style.overflow=C.overflowing?"hidden":""},[g]),S=L.useRef(-1);lo(()=>{const b=yp(y),C=d==null?void 0:d.current;if(!C)return;const T=li(C);T.addEventListener("resize",b);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(()=>{x()&&(M.unobserve(C),cancelAnimationFrame(S.current),y(),S.current=requestAnimationFrame(()=>{M.observe(C)}))}),M.observe(C)),()=>{b.clear(),cancelAnimationFrame(S.current),T.removeEventListener("resize",b),M&&M.disconnect()}},[g,y,x]),lo(()=>{y()});const w=b=>{c||y();const C=b.target,T=C.value.length,M=C.value.endsWith(`
|
203
203
|
`),E=C.selectionStart===T;M&&E&&C.setSelectionRange(T,T),n&&n(b)};return P.jsxs(L.Fragment,{children:[P.jsx("textarea",{value:s,onChange:w,ref:p,rows:o,style:a,...l}),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:{...hW.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Wd(e){return typeof e=="string"}function Ms({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 xm=L.createContext(void 0);function jo(){return L.useContext(xm)}function ak(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function bg(e,t=!1){return e&&(ak(e.value)&&e.value!==""||t&&ak(e.defaultValue)&&e.defaultValue!=="")}function mW(e){return e.startAdornment}function yW(e){return ze("MuiInputBase",e)}const ti=Fe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var sk;const Sm=(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${ue(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},bm=(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]},xW=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:p,size:h,startAdornment:v,type:g}=e,x={root:["root",`color${ue(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&h!=="medium"&&`size${ue(h)}`,d&&"multiline",v&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",v&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return je(x,yW,t)},wm=se("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sm})(Oe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ti.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),_m=se("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bm})(Oe(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ti.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ti.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),lk=cw({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Tw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:a,className:s,color:l,components:c={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:v,endAdornment:g,error:x,fullWidth:y=!1,id:S,inputComponent:w="input",inputProps:b={},inputRef:C,margin:T,maxRows:M,minRows:E,multiline:I=!1,name:D,onBlur:k,onChange:O,onClick:N,onFocus:$,onKeyDown:z,onKeyUp:F,placeholder:j,readOnly:K,renderSuffix:V,rows:H,size:Y,slotProps:W={},slots:q={},startAdornment:te,type:le="text",value:ne,...Q}=n,ce=b.value!=null?b.value:ne,{current:me}=L.useRef(ce!=null),de=L.useRef(),fe=L.useCallback(xe=>{},[]),ge=Tr(de,C,b.ref,fe),[pe,Ne]=L.useState(!1),ke=jo(),it=Ms({props:n,muiFormControl:ke,states:["color","disabled","error","hiddenLabel","size","required","filled"]});it.focused=ke?ke.focused:pe,L.useEffect(()=>{!ke&&h&&pe&&(Ne(!1),k&&k())},[ke,h,pe,k]);const rt=ke&&ke.onFilled,dt=ke&&ke.onEmpty,we=L.useCallback(xe=>{bg(xe)?rt&&rt():dt&&dt()},[rt,dt]);lo(()=>{me&&we({value:ce})},[ce,we,me]);const at=xe=>{$&&$(xe),b.onFocus&&b.onFocus(xe),ke&&ke.onFocus?ke.onFocus(xe):Ne(!0)},Ee=xe=>{k&&k(xe),b.onBlur&&b.onBlur(xe),ke&&ke.onBlur?ke.onBlur(xe):Ne(!1)},Ye=(xe,...wt)=>{if(!me){const Rt=xe.target||de.current;if(Rt==null)throw new Error(ga(1));we({value:Rt.value})}b.onChange&&b.onChange(xe,...wt),O&&O(xe,...wt)};L.useEffect(()=>{we(de.current)},[]);const Ce=xe=>{de.current&&xe.currentTarget===xe.target&&de.current.focus(),N&&N(xe)};let Xt=w,mt=b;I&&Xt==="input"&&(H?mt={type:void 0,minRows:H,maxRows:H,...mt}:mt={type:void 0,maxRows:M,minRows:E,...mt},Xt=gW);const Wt=xe=>{we(xe.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};L.useEffect(()=>{ke&&ke.setAdornedStart(!!te)},[ke,te]);const Jt={...n,color:it.color||"primary",disabled:it.disabled,endAdornment:g,error:it.error,focused:it.focused,formControl:ke,fullWidth:y,hiddenLabel:it.hiddenLabel,multiline:I,size:it.size,startAdornment:te,type:le},ar=xW(Jt),Lt=q.root||c.Root||wm,tr=W.root||d.root||{},Je=q.input||c.Input||_m;return mt={...mt,...W.input??d.input},P.jsxs(L.Fragment,{children:[!v&&typeof lk=="function"&&(sk||(sk=P.jsx(lk,{}))),P.jsxs(Lt,{...tr,ref:r,onClick:Ce,...Q,...!Wd(Lt)&&{ownerState:{...Jt,...tr.ownerState}},className:Se(ar.root,tr.className,s,K&&"MuiInputBase-readOnly"),children:[te,P.jsx(xm.Provider,{value:null,children:P.jsx(Je,{"aria-invalid":it.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:p,disabled:it.disabled,id:S,onAnimationStart:Wt,name:D,placeholder:j,readOnly:K,required:it.required,rows:H,value:ce,onKeyDown:z,onKeyUp:F,type:le,...mt,...!Wd(Je)&&{as:Xt,ownerState:{...Jt,...mt.ownerState}},ref:ge,className:Se(ar.input,mt.className,K&&"MuiInputBase-readOnly"),onBlur:Ee,onChange:Ye,onFocus:at})}),g,V?V({...it,startAdornment:te}):null]})]})});function SW(e){return ze("MuiInput",e)}const is={...ti,...Fe("MuiInput",["root","underline","input"])};function bW(e){return ze("MuiOutlinedInput",e)}const Ci={...ti,...Fe("MuiOutlinedInput",["root","notchedOutline","input"])};function wW(e){return ze("MuiFilledInput",e)}const ri={...ti,...Fe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},zD=Gt(P.jsx("path",{d:"M7 10l5 5 5-5z"}));function _W(e){return ze("MuiAutocomplete",e)}const gt=Fe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var uk,ck;const CW=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:d}=e,p={root:["root",n&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ue(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return je(p,_W,t)},TW=se("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=r;return[{[`& .${gt.tag}`]:t.tag},{[`& .${gt.tag}`]:t[`tagSize${ue(s)}`]},{[`& .${gt.inputRoot}`]:t.inputRoot},{[`& .${gt.input}`]:t.input},{[`& .${gt.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${gt.focused} .${gt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${gt.clearIndicator}`]:{visibility:"visible"}},[`& .${gt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${gt.inputRoot}`]:{[`.${gt.hasPopupIcon}&, .${gt.hasClearIcon}&`]:{paddingRight:30},[`.${gt.hasPopupIcon}.${gt.hasClearIcon}&`]:{paddingRight:56},[`& .${gt.input}`]:{width:0,minWidth:30}},[`& .${is.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${is.root}.${ti.sizeSmall}`]:{[`& .${is.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ci.root}`]:{padding:9,[`.${gt.hasPopupIcon}&, .${gt.hasClearIcon}&`]:{paddingRight:39},[`.${gt.hasPopupIcon}.${gt.hasClearIcon}&`]:{paddingRight:65},[`& .${gt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${gt.endAdornment}`]:{right:9}},[`& .${Ci.root}.${ti.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${gt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${ri.root}`]:{paddingTop:19,paddingLeft:8,[`.${gt.hasPopupIcon}&, .${gt.hasClearIcon}&`]:{paddingRight:39},[`.${gt.hasPopupIcon}.${gt.hasClearIcon}&`]:{paddingRight:65},[`& .${ri.input}`]:{padding:"7px 4px"},[`& .${gt.endAdornment}`]:{right:9}},[`& .${ri.root}.${ti.sizeSmall}`]:{paddingBottom:1,[`& .${ri.input}`]:{padding:"2.5px 4px"}},[`& .${ti.hiddenLabel}`]:{paddingTop:8},[`& .${ri.root}.${ti.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${gt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${ri.root}.${ti.hiddenLabel}.${ti.sizeSmall}`]:{[`& .${gt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${gt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${gt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${gt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${gt.inputRoot}`]:{flexWrap:"wrap"}}}]}),MW=se("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),kW=se(ba,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),RW=se(ba,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),PW=se(ym,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${gt.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(Oe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),EW=se(ji,{name:"MuiAutocomplete",slot:"Paper"})(Oe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),AW=se("div",{name:"MuiAutocomplete",slot:"Loading"})(Oe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),IW=se("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Oe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),DW=se("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Oe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${gt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${gt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${gt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:bt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${gt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:bt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),LW=se(hS,{name:"MuiAutocomplete",slot:"GroupLabel"})(Oe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),OW=se("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${gt.option}`]:{paddingLeft:24}}),NW=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,ChipProps:l,className:c,clearIcon:d=uk||(uk=P.jsx(RD,{fontSize:"small"})),clearOnBlur:p=!n.freeSolo,clearOnEscape:h=!1,clearText:v="Clear",closeText:g="Close",componentsProps:x,defaultValue:y=n.multiple?[]:null,disableClearable:S=!1,disableCloseOnSelect:w=!1,disabled:b=!1,disabledItemsFocusable:C=!1,disableListWrap:T=!1,disablePortal:M=!1,filterOptions:E,filterSelectedOptions:I=!1,forcePopupIcon:D="auto",freeSolo:k=!1,fullWidth:O=!1,getLimitTagsText:N=Mt=>`+${Mt}`,getOptionDisabled:$,getOptionKey:z,getOptionLabel:F,isOptionEqualToValue:j,groupBy:K,handleHomeEndKeys:V=!n.freeSolo,id:H,includeInputInList:Y=!1,inputValue:W,limitTags:q=-1,ListboxComponent:te,ListboxProps:le,loading:ne=!1,loadingText:Q="Loading…",multiple:ce=!1,noOptionsText:me="No options",onChange:de,onClose:fe,onHighlightChange:ge,onInputChange:pe,onOpen:Ne,open:ke,openOnFocus:it=!1,openText:rt="Open",options:dt,PaperComponent:we,PopperComponent:at,popupIcon:Ee=ck||(ck=P.jsx(zD,{})),readOnly:Ye=!1,renderGroup:Ce,renderInput:Xt,renderOption:mt,renderTags:Wt,renderValue:Jt,selectOnFocus:ar=!n.freeSolo,size:Lt="medium",slots:tr={},slotProps:Je={},value:xe,...wt}=n,{getRootProps:Rt,getInputProps:ut,getInputLabelProps:Be,getPopupIndicatorProps:st,getClearProps:_t,getItemProps:gr,getListboxProps:Nr,getOptionProps:Hi,value:rr,dirty:Rr,expanded:en,id:qn,popupOpen:Ur,focused:Vi,focusedItem:et,anchorEl:nr,setAnchorEl:Me,inputValue:Ae,groupedOptions:ct}=H9({...n,componentName:"Autocomplete"}),pt=!S&&!b&&Rr&&!Ye,zt=(!k||D===!0)&&D!==!1,{onMouseDown:Pr}=ut(),{ref:tn,...mn}=Nr(),pi=F||(Mt=>Mt.label??Mt),Er={...n,disablePortal:M,expanded:en,focused:Vi,fullWidth:O,getOptionLabel:pi,hasClearIcon:pt,hasPopupIcon:zt,inputFocused:et===-1,popupOpen:Ur,size:Lt},Ar=CW(Er),rn={slots:{paper:we,popper:at,...tr},slotProps:{chip:l,listbox:le,...x,...Je}},[Ca,Rs]=Ue("listbox",{elementType:DW,externalForwardedProps:rn,ownerState:Er,className:Ar.listbox,additionalProps:mn,ref:tn}),[ae,ie]=Ue("paper",{elementType:ji,externalForwardedProps:rn,ownerState:Er,className:Ar.paper}),[Re,vt]=Ue("popper",{elementType:ym,externalForwardedProps:rn,ownerState:Er,className:Ar.popper,additionalProps:{disablePortal:M,style:{width:nr?nr.clientWidth:null},role:"presentation",anchorEl:nr,open:Ur}});let qe;const sr=Mt=>({className:Ar.tag,disabled:b,...gr(Mt)});if(ce?rr.length>0&&(Wt?qe=Wt(rr,sr,Er):Jt?qe=Jt(rr,sr,Er):qe=rr.map((Mt,Xn)=>{const{key:Br,...Ps}=sr({index:Xn});return P.jsx(pW,{label:pi(Mt),size:Lt,...Ps,...rn.slotProps.chip},Br)})):Jt&&rr!=null&&(qe=Jt(rr,sr,Er)),q>-1&&Array.isArray(qe)){const Mt=qe.length-q;!Vi&&Mt>0&&(qe=qe.splice(0,q),qe.push(P.jsx("span",{className:Ar.tag,children:N(Mt)},qe.length)))}const Pt=Ce||(Mt=>P.jsxs("li",{children:[P.jsx(LW,{className:Ar.groupLabel,ownerState:Er,component:"div",children:Mt.group}),P.jsx(OW,{className:Ar.groupUl,ownerState:Er,children:Mt.children})]},Mt.key)),Dc=mt||((Mt,Xn)=>{const{key:Br,...Ps}=Mt;return P.jsx("li",{...Ps,children:pi(Xn)},Br)}),Lc=(Mt,Xn)=>{const Br=Hi({option:Mt,index:Xn});return Dc({...Br,className:Ar.option},Mt,{selected:Br["aria-selected"],index:Xn,inputValue:Ae},Er)},Yo=rn.slotProps.clearIndicator,Kl=rn.slotProps.popupIndicator;return P.jsxs(L.Fragment,{children:[P.jsx(TW,{ref:r,className:Se(Ar.root,c),ownerState:Er,...Rt(wt),children:Xt({id:qn,disabled:b,fullWidth:!0,size:Lt==="small"?"small":void 0,InputLabelProps:Be(),InputProps:{ref:Me,className:Ar.inputRoot,startAdornment:qe,onMouseDown:Mt=>{Mt.target===Mt.currentTarget&&Pr(Mt)},...(pt||zt)&&{endAdornment:P.jsxs(MW,{className:Ar.endAdornment,ownerState:Er,children:[pt?P.jsx(kW,{..._t(),"aria-label":v,title:v,ownerState:Er,...Yo,className:Se(Ar.clearIndicator,Yo==null?void 0:Yo.className),children:d}):null,zt?P.jsx(RW,{...st(),disabled:b,"aria-label":Ur?g:rt,title:Ur?g:rt,ownerState:Er,...Kl,className:Se(Ar.popupIndicator,Kl==null?void 0:Kl.className),children:Ee}):null]})}},inputProps:{className:Ar.input,disabled:b,readOnly:Ye,...ut()}})}),nr?P.jsx(PW,{as:Re,...vt,children:P.jsxs(EW,{as:ae,...ie,children:[ne&&ct.length===0?P.jsx(AW,{className:Ar.loading,ownerState:Er,children:Q}):null,ct.length===0&&!k&&!ne?P.jsx(IW,{className:Ar.noOptions,ownerState:Er,role:"presentation",onMouseDown:Mt=>{Mt.preventDefault()},children:me}):null,ct.length>0?P.jsx(Ca,{as:te,...Rs,children:ct.map((Mt,Xn)=>K?Pt({key:Mt.key,group:Mt.group,children:Mt.options.map((Br,Ps)=>Lc(Br,Mt.index+Ps))}):Lc(Mt,Xn))}):null]})}):null]})}),BW={entering:{opacity:1},entered:{opacity:1}},$W=L.forwardRef(function(t,r){const n=Fo(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:d,onEntered:p,onEntering:h,onExit:v,onExited:g,onExiting:x,style:y,timeout:S=i,TransitionComponent:w=Fi,...b}=t,C=L.useRef(null),T=Tr(C,ql(s),r),M=z=>F=>{if(z){const j=C.current;F===void 0?z(j):z(j,F)}},E=M(h),I=M((z,F)=>{hw(z);const j=ys({style:y,timeout:S,easing:l},{mode:"enter"});z.style.webkitTransition=n.transitions.create("opacity",j),z.style.transition=n.transitions.create("opacity",j),d&&d(z,F)}),D=M(p),k=M(x),O=M(z=>{const F=ys({style:y,timeout:S,easing:l},{mode:"exit"});z.style.webkitTransition=n.transitions.create("opacity",F),z.style.transition=n.transitions.create("opacity",F),v&&v(z)}),N=M(g),$=z=>{o&&o(C.current,z)};return P.jsx(w,{appear:a,in:c,nodeRef:C,onEnter:I,onEntered:D,onEntering:E,onExit:O,onExited:N,onExiting:k,addEndListener:$,timeout:S,...b,children:(z,{ownerState:F,...j})=>L.cloneElement(s,{style:{opacity:0,visibility:z==="exited"&&!c?"hidden":void 0,...BW[z],...y,...s.props.style},ref:T,...j})})});function zW(e){return ze("MuiBackdrop",e)}Fe("MuiBackdrop",["root","invisible"]);const FW=e=>{const{classes:t,invisible:r}=e;return je({root:["root",r&&"invisible"]},zW,t)},jW=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),WW=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:a="div",invisible:s=!1,open:l,components:c={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:v,transitionDuration:g,...x}=n,y={...n,component:a,invisible:s},S=FW(y),w={transition:v,root:c.Root,...h},b={...d,...p},C={slots:w,slotProps:b},[T,M]=Ue("root",{elementType:jW,externalForwardedProps:C,className:Se(S.root,o),ownerState:y}),[E,I]=Ue("transition",{elementType:$W,externalForwardedProps:C,ownerState:y});return P.jsx(E,{in:l,timeout:g,...x,...I,children:P.jsx(T,{"aria-hidden":!0,...M,classes:S,ref:r,children:i})})}),HW=Fe("MuiBox",["root"]),VW=vm(),tt=O6({themeId:Ro,defaultTheme:VW,defaultClassName:HW.root,generateClassName:KI.generate});function UW(e){return ze("MuiButton",e)}const Hs=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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),GW=L.createContext({}),YW=L.createContext(void 0),qW=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,loading:a,loadingPosition:s,classes:l}=e,c={root:["root",a&&"loading",o,`${o}${ue(t)}`,`size${ue(i)}`,`${o}Size${ue(i)}`,`color${ue(t)}`,r&&"disableElevation",n&&"fullWidth",a&&`loadingPosition${ue(s)}`],startIcon:["icon","startIcon",`iconSize${ue(i)}`],endIcon:["icon","endIcon",`iconSize${ue(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=je(c,UW,l);return{...l,...d}},FD=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],XW=se(xs,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ue(r.color)}`],t[`size${ue(r.size)}`],t[`${r.variant}Size${ue(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Oe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Hs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Hs.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Cr()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:bt(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette[n].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Hs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Hs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Hs.loading}`]:{color:"transparent"}}}]}})),KW=se("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${ue(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...FD]})),ZW=se("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${ue(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...FD]})),QW=se("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),fk=se("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),ci=L.forwardRef(function(t,r){const n=L.useContext(GW),i=L.useContext(YW),o=zd(n,t),a=He({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:v=!1,endIcon:g,focusVisibleClassName:x,fullWidth:y=!1,id:S,loading:w=null,loadingIndicator:b,loadingPosition:C="center",size:T="medium",startIcon:M,type:E,variant:I="text",...D}=a,k=Tc(S),O=b??P.jsx(kD,{"aria-labelledby":k,color:"inherit",size:16}),N={...a,color:l,component:c,disabled:p,disableElevation:h,disableFocusRipple:v,fullWidth:y,loading:w,loadingIndicator:O,loadingPosition:C,size:T,type:E,variant:I},$=qW(N),z=(M||w&&C==="start")&&P.jsx(KW,{className:$.startIcon,ownerState:N,children:M||P.jsx(fk,{className:$.loadingIconPlaceholder,ownerState:N})}),F=(g||w&&C==="end")&&P.jsx(ZW,{className:$.endIcon,ownerState:N,children:g||P.jsx(fk,{className:$.loadingIconPlaceholder,ownerState:N})}),j=i||"",K=typeof w=="boolean"?P.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:w&&P.jsx(QW,{className:$.loadingIndicator,ownerState:N,children:O})}):null;return P.jsxs(XW,{ownerState:N,className:Se(n.className,$.root,d,j),component:c,disabled:p||w,focusRipple:!v,focusVisibleClassName:Se($.focusVisible,x),ref:r,type:E,id:w?k:S,...D,classes:$,children:[z,C!=="end"&&K,s,C==="end"&&K,F]})});function JW(e){return ze("MuiCard",e)}Fe("MuiCard",["root"]);const eH=e=>{const{classes:t}=e;return je({root:["root"]},JW,t)},tH=se(ji,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),rH=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiCard"}),{className:i,raised:o=!1,...a}=n,s={...n,raised:o},l=eH(s);return P.jsx(tH,{className:Se(l.root,i),elevation:o?8:void 0,ref:r,ownerState:s,...a})});function nH(e){return ze("MuiCardContent",e)}Fe("MuiCardContent",["root"]);const iH=e=>{const{classes:t}=e;return je({root:["root"]},nH,t)},oH=se("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),aH=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiCardContent"}),{className:i,component:o="div",...a}=n,s={...n,component:o},l=iH(s);return P.jsx(oH,{as:o,className:Se(l.root,i),ownerState:s,ref:r,...a})});function sH(e){return ze("PrivateSwitchBase",e)}Fe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const lH=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,o={root:["root",r&&"checked",n&&"disabled",i&&`edge${ue(i)}`],input:["input"]};return je(o,sH,t)},uH=se(xs)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),cH=se("input",{shouldForwardProp:Yn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),jD=L.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:o,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:p,inputProps:h,inputRef:v,name:g,onBlur:x,onChange:y,onFocus:S,readOnly:w,required:b=!1,tabIndex:C,type:T,value:M,slots:E={},slotProps:I={},...D}=t,[k,O]=cs({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),N=jo(),$=ne=>{S&&S(ne),N&&N.onFocus&&N.onFocus(ne)},z=ne=>{x&&x(ne),N&&N.onBlur&&N.onBlur(ne)},F=ne=>{if(ne.nativeEvent.defaultPrevented)return;const Q=ne.target.checked;O(Q),y&&y(ne,Q)};let j=s;N&&typeof j>"u"&&(j=N.disabled);const K=T==="checkbox"||T==="radio",V={...t,checked:k,disabled:j,disableFocusRipple:l,edge:c},H=lH(V),Y={slots:E,slotProps:{input:h,...I}},[W,q]=Ue("root",{ref:r,elementType:uH,className:H.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Y,component:"span",...D},getSlotProps:ne=>({...ne,onFocus:Q=>{var ce;(ce=ne.onFocus)==null||ce.call(ne,Q),$(Q)},onBlur:Q=>{var ce;(ce=ne.onBlur)==null||ce.call(ne,Q),z(Q)}}),ownerState:V,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:j,role:void 0,tabIndex:null}}),[te,le]=Ue("input",{ref:v,elementType:cH,className:H.input,externalForwardedProps:Y,getSlotProps:ne=>({...ne,onChange:Q=>{var ce;(ce=ne.onChange)==null||ce.call(ne,Q),F(Q)}}),ownerState:V,additionalProps:{autoFocus:n,checked:i,defaultChecked:a,disabled:j,id:K?p:void 0,name:g,readOnly:w,required:b,tabIndex:C,type:T,...T==="checkbox"&&M===void 0?{}:{value:M}}});return P.jsxs(W,{...q,children:[P.jsx(te,{...le}),k?o:d]})}),fH=Gt(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"})),dH=Gt(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"})),pH=Gt(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"}));function hH(e){return ze("MuiCheckbox",e)}const c1=Fe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),vH=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,o={root:["root",r&&"indeterminate",`color${ue(n)}`,`size${ue(i)}`]},a=je(o,hH,t);return{...t,...a}},gH=se(jD,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${ue(r.size)}`],r.color!=="default"&&t[`color${ue(r.color)}`]]}})(Oe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{[`&.${c1.checked}, &.${c1.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${c1.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),mH=P.jsx(dH,{}),yH=P.jsx(fH,{}),xH=P.jsx(pH,{}),vS=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiCheckbox"}),{checkedIcon:i=mH,color:o="primary",icon:a=yH,indeterminate:s=!1,indeterminateIcon:l=xH,inputProps:c,size:d="medium",disableRipple:p=!1,className:h,slots:v={},slotProps:g={},...x}=n,y=s?l:a,S=s?l:i,w={...n,disableRipple:p,color:o,indeterminate:s,size:d},b=vH(w),C=g.input??c,[T,M]=Ue("root",{ref:r,elementType:gH,className:Se(b.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:g,...x},ownerState:w,additionalProps:{type:"checkbox",icon:L.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:L.cloneElement(S,{fontSize:S.props.fontSize??d}),disableRipple:p,slots:v,slotProps:{input:fw(typeof C=="function"?C(w):C,{"data-indeterminate":s})}}});return P.jsx(T,{...M,classes:b})}),bp=wj({createStyledComponent:se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>He({props:e,name:"MuiContainer"})}),gS=typeof cw({})=="function",SH=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),bH=e=>({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}}),WD=(e,t=!1)=>{var o,a;const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var d,p;const c=e.getColorSchemeSelector(s);c.startsWith("@")?r[c]={":root":{colorScheme:(d=l.palette)==null?void 0:d.mode}}:r[c.replace(/\s*&/,"")]={colorScheme:(p=l.palette)==null?void 0:p.mode}});let n={html:SH(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...bH(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const i=(a=(o=e.components)==null?void 0:o.MuiCssBaseline)==null?void 0:a.styleOverrides;return i&&(n=[n,i]),n},qv="mui-ecs",wH=e=>{const t=WD(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${qv})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,i])=>{var a,s;const o=e.getColorSchemeSelector(n);o.startsWith("@")?r[o]={[`:root:not(:has(.${qv}))`]:{colorScheme:(a=i.palette)==null?void 0:a.mode}}:r[o.replace(/\s*&/,"")]={[`&:not(:has(.${qv}))`]:{colorScheme:(s=i.palette)==null?void 0:s.mode}}}),t},_H=cw(gS?({theme:e,enableColorScheme:t})=>WD(e,t):({theme:e})=>wH(e));function HD(e){const t=He({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return P.jsxs(L.Fragment,{children:[gS&&P.jsx(_H,{enableColorScheme:n}),!gS&&!n&&P.jsx("span",{className:qv,style:{display:"none"}}),r]})}function VD(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function CH(e){const t=Hn(e);return t.body===e?li(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dk(e){return parseInt(li(e).getComputedStyle(e).paddingRight,10)||0}function TH(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function pk(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,a=>{const s=!o.includes(a),l=!TH(a);s&&l&&pd(a,i)})}function f1(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function MH(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(CH(n)){const a=VD(li(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${dk(n)+a}px`;const s=Hn(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${dk(l)+a}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Hn(n).body;else{const a=n.parentElement,s=li(n);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function kH(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class RH{constructor(){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&&pd(t.modalRef,!1);const i=kH(r);pk(r,t.mount,t.modalRef,i,!0);const o=f1(this.containers,a=>a.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=f1(this.containers,o=>o.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=MH(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=f1(this.containers,a=>a.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&pd(t.modalRef,r),pk(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&pd(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const PH=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function EH(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 AH(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 IH(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||AH(e))}function DH(e){const t=[],r=[];return Array.from(e.querySelectorAll(PH)).forEach((n,i)=>{const o=EH(n);o===-1||!IH(n)||(o===0?t.push(n):r.push({documentOrder:i,tabIndex:o,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 LH(){return!0}function OH(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:o=DH,isEnabled:a=LH,open:s}=e,l=L.useRef(!1),c=L.useRef(null),d=L.useRef(null),p=L.useRef(null),h=L.useRef(null),v=L.useRef(!1),g=L.useRef(null),x=Tr(ql(t),g),y=L.useRef(null);L.useEffect(()=>{!s||!g.current||(v.current=!r)},[r,s]),L.useEffect(()=>{if(!s||!g.current)return;const b=Hn(g.current);return g.current.contains(b.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),v.current&&g.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[s]),L.useEffect(()=>{if(!s||!g.current)return;const b=Hn(g.current),C=E=>{y.current=E,!(n||!a()||E.key!=="Tab")&&b.activeElement===g.current&&E.shiftKey&&(l.current=!0,d.current&&d.current.focus())},T=()=>{var D,k;const E=g.current;if(E===null)return;if(!b.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(b.activeElement)||n&&b.activeElement!==c.current&&b.activeElement!==d.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!v.current)return;let I=[];if((b.activeElement===c.current||b.activeElement===d.current)&&(I=o(g.current)),I.length>0){const O=!!((D=y.current)!=null&&D.shiftKey&&((k=y.current)==null?void 0:k.key)==="Tab"),N=I[0],$=I[I.length-1];typeof N!="string"&&typeof $!="string"&&(O?$.focus():N.focus())}else E.focus()};b.addEventListener("focusin",T),b.addEventListener("keydown",C,!0);const M=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(M),b.removeEventListener("focusin",T),b.removeEventListener("keydown",C,!0)}},[r,n,i,a,s,o]);const S=b=>{p.current===null&&(p.current=b.relatedTarget),v.current=!0,h.current=b.target;const C=t.props.onFocus;C&&C(b)},w=b=>{p.current===null&&(p.current=b.relatedTarget),v.current=!0};return P.jsxs(L.Fragment,{children:[P.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelStart"}),L.cloneElement(t,{ref:x,onFocus:S}),P.jsx("div",{tabIndex:s?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}function NH(e){return typeof e=="function"?e():e}function BH(e){return e?e.props.hasOwnProperty("in"):!1}const hk=()=>{},Xh=new RH;function $H(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:l,open:c,rootRef:d}=e,p=L.useRef({}),h=L.useRef(null),v=L.useRef(null),g=Tr(v,d),[x,y]=L.useState(!c),S=BH(s);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const b=()=>Hn(h.current),C=()=>(p.current.modalRef=v.current,p.current.mount=h.current,p.current),T=()=>{Xh.mount(C(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},M=vn(()=>{const F=NH(t)||b().body;Xh.add(C(),F),v.current&&T()}),E=()=>Xh.isTopModal(C()),I=vn(F=>{h.current=F,F&&(c&&E()?T():v.current&&pd(v.current,w))}),D=L.useCallback(()=>{Xh.remove(C(),w)},[w]);L.useEffect(()=>()=>{D()},[D]),L.useEffect(()=>{c?M():(!S||!i)&&D()},[c,D,S,i,M]);const k=F=>j=>{var K;(K=F.onKeyDown)==null||K.call(F,j),!(j.key!=="Escape"||j.which===229||!E())&&(r||(j.stopPropagation(),l&&l(j,"escapeKeyDown")))},O=F=>j=>{var K;(K=F.onClick)==null||K.call(F,j),j.target===j.currentTarget&&l&&l(j,"backdropClick")};return{getRootProps:(F={})=>{const j=TD(e);delete j.onTransitionEnter,delete j.onTransitionExited;const K={...j,...F};return{role:"presentation",...K,onKeyDown:k(K),ref:g}},getBackdropProps:(F={})=>{const j=F;return{"aria-hidden":!0,...j,onClick:O(j),open:c}},getTransitionProps:()=>{const F=()=>{y(!1),o&&o()},j=()=>{y(!0),a&&a(),i&&D()};return{onEnter:OM(F,(s==null?void 0:s.props.onEnter)??hk),onExited:OM(j,(s==null?void 0:s.props.onExited)??hk)}},rootRef:g,portalRef:I,isTopModal:E,exited:x,hasTransition:S}}function zH(e){return ze("MuiModal",e)}Fe("MuiModal",["root","hidden","backdrop"]);const FH=e=>{const{open:t,exited:r,classes:n}=e;return je({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},zH,n)},jH=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Oe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),WH=se(WW,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Mw=L.forwardRef(function(t,r){const n=He({name:"MuiModal",props:t}),{BackdropComponent:i=WH,BackdropProps:o,classes:a,className:s,closeAfterTransition:l=!1,children:c,container:d,component:p,components:h={},componentsProps:v={},disableAutoFocus:g=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:y=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:b=!1,hideBackdrop:C=!1,keepMounted:T=!1,onClose:M,onTransitionEnter:E,onTransitionExited:I,open:D,slotProps:k={},slots:O={},theme:N,...$}=n,z={...n,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:x,disableEscapeKeyDown:y,disablePortal:S,disableRestoreFocus:w,disableScrollLock:b,hideBackdrop:C,keepMounted:T},{getRootProps:F,getBackdropProps:j,getTransitionProps:K,portalRef:V,isTopModal:H,exited:Y,hasTransition:W}=$H({...z,rootRef:r}),q={...z,exited:Y},te=FH(q),le={};if(c.props.tabIndex===void 0&&(le.tabIndex="-1"),W){const{onEnter:fe,onExited:ge}=K();le.onEnter=fe,le.onExited=ge}const ne={slots:{root:h.Root,backdrop:h.Backdrop,...O},slotProps:{...v,...k}},[Q,ce]=Ue("root",{ref:r,elementType:jH,externalForwardedProps:{...ne,...$,component:p},getSlotProps:F,ownerState:q,className:Se(s,te==null?void 0:te.root,!q.open&&q.exited&&(te==null?void 0:te.hidden))}),[me,de]=Ue("backdrop",{ref:o==null?void 0:o.ref,elementType:i,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:fe=>j({...fe,onClick:ge=>{fe!=null&&fe.onClick&&fe.onClick(ge)}}),className:Se(o==null?void 0:o.className,te==null?void 0:te.backdrop),ownerState:q});return!T&&!D&&(!W||Y)?null:P.jsx($D,{ref:V,container:d,disablePortal:S,children:P.jsxs(Q,{...ce,children:[!C&&i?P.jsx(me,{...de}):null,P.jsx(OH,{disableEnforceFocus:x,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:H,open:D,children:L.cloneElement(c,le)})]})})});function HH(e){return ze("MuiDivider",e)}Fe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const VH=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return je({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},HH,n)},UH=se("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]}})(Oe(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:bt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),GH=se("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Oe(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),xl=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,orientation:s="horizontal",component:l=o||s==="vertical"?"div":"hr",flexItem:c=!1,light:d=!1,role:p=l!=="hr"?"separator":void 0,textAlign:h="center",variant:v="fullWidth",...g}=n,x={...n,absolute:i,component:l,flexItem:c,light:d,orientation:s,role:p,textAlign:h,variant:v},y=VH(x);return P.jsx(UH,{as:l,className:Se(y.root,a),role:p,ref:r,ownerState:x,"aria-orientation":p==="separator"&&(l!=="hr"||s==="vertical")?s:void 0,...g,children:o?P.jsx(GH,{className:y.wrapper,ownerState:x,children:o}):null})});xl&&(xl.muiSkipListHighlight=!0);function YH(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),o=li(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=o.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?i?`translateX(-${n.right-i.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-n.top}px)`:`translateY(${o.innerHeight+l-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function qH(e){return typeof e=="function"?e():e}function Kh(e,t,r){const n=qH(r),i=YH(e,t,n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const XH=L.forwardRef(function(t,r){const n=Fo(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:d="down",easing:p=i,in:h,onEnter:v,onEntered:g,onEntering:x,onExit:y,onExited:S,onExiting:w,style:b,timeout:C=o,TransitionComponent:T=Fi,...M}=t,E=L.useRef(null),I=Tr(ql(l),E,r),D=V=>H=>{V&&(H===void 0?V(E.current):V(E.current,H))},k=D((V,H)=>{Kh(d,V,c),hw(V),v&&v(V,H)}),O=D((V,H)=>{const Y=ys({timeout:C,style:b,easing:p},{mode:"enter"});V.style.webkitTransition=n.transitions.create("-webkit-transform",{...Y}),V.style.transition=n.transitions.create("transform",{...Y}),V.style.webkitTransform="none",V.style.transform="none",x&&x(V,H)}),N=D(g),$=D(w),z=D(V=>{const H=ys({timeout:C,style:b,easing:p},{mode:"exit"});V.style.webkitTransition=n.transitions.create("-webkit-transform",H),V.style.transition=n.transitions.create("transform",H),Kh(d,V,c),y&&y(V)}),F=D(V=>{V.style.webkitTransition="",V.style.transition="",S&&S(V)}),j=V=>{a&&a(E.current,V)},K=L.useCallback(()=>{E.current&&Kh(d,E.current,c)},[d,c]);return L.useEffect(()=>{if(h||d==="down"||d==="right")return;const V=yp(()=>{E.current&&Kh(d,E.current,c)}),H=li(E.current);return H.addEventListener("resize",V),()=>{V.clear(),H.removeEventListener("resize",V)}},[d,h,c]),L.useEffect(()=>{h||K()},[h,K]),P.jsx(T,{nodeRef:E,onEnter:k,onEntered:N,onEntering:O,onExit:z,onExited:F,onExiting:$,addEndListener:j,appear:s,in:h,timeout:C,...M,children:(V,{ownerState:H,...Y})=>L.cloneElement(l,{ref:I,style:{visibility:V==="exited"&&!h?"hidden":void 0,...b,...l.props.style},...Y})})});function KH(e){return ze("MuiDrawer",e)}Fe("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const UD=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},ZH=e=>{const{classes:t,anchor:r,variant:n}=e,i={root:["root",`anchor${ue(r)}`],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ue(r)}`,n!=="temporary"&&`paperAnchorDocked${ue(r)}`]};return je(i,KH,t)},QH=se(Mw,{name:"MuiDrawer",slot:"Root",overridesResolver:UD})(Oe(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),JH=se("div",{shouldForwardProp:Yn,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:UD})({flex:"0 0 auto"}),eV=se(ji,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ue(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ue(r.anchor)}`]]}})(Oe(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),GD={left:"right",right:"left",top:"down",bottom:"up"};function tV(e){return["left","right"].includes(e)}function rV({direction:e},t){return e==="rtl"&&tV(t)?GD[t]:t}const nV=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiDrawer"}),i=Fo(),o=Cc(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:d,elevation:p=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:v,...g}={},onClose:x,open:y=!1,PaperProps:S={},SlideProps:w,TransitionComponent:b,transitionDuration:C=a,variant:T="temporary",slots:M={},slotProps:E={},...I}=n,D=L.useRef(!1);L.useEffect(()=>{D.current=!0},[]);const k=rV({direction:o?"rtl":"ltr"},s),N={...n,anchor:s,elevation:p,open:y,variant:T,...I},$=ZH(N),z={slots:{transition:b,...M},slotProps:{paper:S,transition:w,...E,backdrop:fw(E.backdrop||{...l,...v},{transitionDuration:C})}},[F,j]=Ue("root",{ref:r,elementType:QH,className:Se($.root,$.modal,d),shouldForwardComponentProp:!0,ownerState:N,externalForwardedProps:{...z,...I,...g},additionalProps:{open:y,onClose:x,hideBackdrop:h,slots:{backdrop:z.slots.backdrop},slotProps:{backdrop:z.slotProps.backdrop}}}),[K,V]=Ue("paper",{elementType:eV,shouldForwardComponentProp:!0,className:Se($.paper,S.className),ownerState:N,externalForwardedProps:z,additionalProps:{elevation:T==="temporary"?p:0,square:!0}}),[H,Y]=Ue("docked",{elementType:JH,ref:r,className:Se($.root,$.docked,d),ownerState:N,externalForwardedProps:z,additionalProps:I}),[W,q]=Ue("transition",{elementType:XH,ownerState:N,externalForwardedProps:z,additionalProps:{in:y,direction:GD[k],timeout:C,appear:D.current}}),te=P.jsx(K,{...V,children:c});if(T==="permanent")return P.jsx(H,{...Y,children:te});const le=P.jsx(W,{...q,children:te});return T==="persistent"?P.jsx(H,{...Y,children:le}):P.jsx(F,{...j,children:le})}),iV=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:i,size:o,hiddenLabel:a,multiline:s}=e,l={root:["root",!r&&"underline",n&&"adornedStart",i&&"adornedEnd",o==="small"&&`size${ue(o)}`,a&&"hiddenLabel",s&&"multiline"],input:["input"]},c=je(l,wW,t);return{...t,...c}},oV=se(wm,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sm(e,t),!r.disableUnderline&&t.underline]}})(Oe(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,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:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${ri.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${ri.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ri.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ri.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})`:r}`,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(.${ri.disabled}, .${ri.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ri.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Cr()).map(([a])=>{var s;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[a])==null?void 0:s.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:s})=>a.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),aV=se(_m,{name:"MuiFilledInput",slot:"Input",overridesResolver:bm})(Oe(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),kw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,hiddenLabel:l,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:h={},type:v="text",...g}=n,x={...n,disableUnderline:i,fullWidth:s,inputComponent:c,multiline:d,type:v},y=iV(n),S={root:{ownerState:x},input:{ownerState:x}},w=p??a?Vr(S,p??a):S,b=h.root??o.Root??oV,C=h.input??o.Input??aV;return P.jsx(Tw,{slots:{root:b,input:C},slotProps:w,fullWidth:s,inputComponent:c,multiline:d,ref:r,type:v,...g,classes:y})});kw.muiName="Input";function sV(e){return ze("MuiFormControl",e)}Fe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const lV=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${ue(r)}`,n&&"fullWidth"]};return je(i,sV,t)},uV=se("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${ue(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Rw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:v="none",required:g=!1,size:x="medium",variant:y="outlined",...S}=n,w={...n,color:a,component:s,disabled:l,error:c,fullWidth:p,hiddenLabel:h,margin:v,required:g,size:x,variant:y},b=lV(w),[C,T]=L.useState(()=>{let F=!1;return i&&L.Children.forEach(i,j=>{if(!Gv(j,["Input","Select"]))return;const K=Gv(j,["Select"])?j.props.input:j;K&&mW(K.props)&&(F=!0)}),F}),[M,E]=L.useState(()=>{let F=!1;return i&&L.Children.forEach(i,j=>{Gv(j,["Input","Select"])&&(bg(j.props,!0)||bg(j.props.inputProps,!0))&&(F=!0)}),F}),[I,D]=L.useState(!1);l&&I&&D(!1);const k=d!==void 0&&!l?d:I;let O;L.useRef(!1);const N=L.useCallback(()=>{E(!0)},[]),$=L.useCallback(()=>{E(!1)},[]),z=L.useMemo(()=>({adornedStart:C,setAdornedStart:T,color:a,disabled:l,error:c,filled:M,focused:k,fullWidth:p,hiddenLabel:h,size:x,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:$,onFilled:N,registerEffect:O,required:g,variant:y}),[C,a,l,c,M,k,p,h,O,$,N,g,x,y]);return P.jsx(xm.Provider,{value:z,children:P.jsx(uV,{as:s,ownerState:w,className:Se(b.root,o),ref:r,...S,children:i})})});function cV(e){return ze("MuiFormControlLabel",e)}const Qf=Fe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),fV=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:o}=e,a={root:["root",r&&"disabled",`labelPlacement${ue(n)}`,i&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return je(a,cV,t)},dV=se("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qf.label}`]:t.label},t.root,t[`labelPlacement${ue(r.labelPlacement)}`]]}})(Oe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Qf.disabled}`]:{cursor:"default"},[`& .${Qf.label}`]:{[`&.${Qf.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),pV=se("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Oe(({theme:e})=>({[`&.${Qf.error}`]:{color:(e.vars||e).palette.error.main}}))),YD=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormControlLabel"}),{checked:i,className:o,componentsProps:a={},control:s,disabled:l,disableTypography:c,inputRef:d,label:p,labelPlacement:h="end",name:v,onChange:g,required:x,slots:y={},slotProps:S={},value:w,...b}=n,C=jo(),T=l??s.props.disabled??(C==null?void 0:C.disabled),M=x??s.props.required,E={disabled:T,required:M};["checked","name","onChange","value","inputRef"].forEach(F=>{typeof s.props[F]>"u"&&typeof n[F]<"u"&&(E[F]=n[F])});const I=Ms({props:n,muiFormControl:C,states:["error"]}),D={...n,disabled:T,labelPlacement:h,required:M,error:I.error},k=fV(D),O={slots:y,slotProps:{...a,...S}},[N,$]=Ue("typography",{elementType:Xe,externalForwardedProps:O,ownerState:D});let z=p;return z!=null&&z.type!==Xe&&!c&&(z=P.jsx(N,{component:"span",...$,className:Se(k.label,$==null?void 0:$.className),children:z})),P.jsxs(dV,{className:Se(k.root,o),ownerState:D,ref:r,...b,children:[L.cloneElement(s,E),M?P.jsxs("div",{children:[z,P.jsxs(pV,{ownerState:D,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]}):z]})});function hV(e){return ze("MuiFormGroup",e)}Fe("MuiFormGroup",["root","row","error"]);const vV=e=>{const{classes:t,row:r,error:n}=e;return je({root:["root",r&&"row",n&&"error"]},hV,t)},gV=se("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),qD=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1,...a}=n,s=jo(),l=Ms({props:n,muiFormControl:s,states:["error"]}),c={...n,row:o,error:l.error},d=vV(c);return P.jsx(gV,{className:Se(d.root,i),ownerState:c,ref:r,...a})});function mV(e){return ze("MuiFormHelperText",e)}const vk=Fe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gk;const yV=e=>{const{classes:t,contained:r,size:n,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",n&&`size${ue(n)}`,r&&"contained",s&&"focused",a&&"filled",l&&"required"]};return je(c,mV,t)},xV=se("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ue(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Oe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vk.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vk.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),SV=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p",disabled:s,error:l,filled:c,focused:d,margin:p,required:h,variant:v,...g}=n,x=jo(),y=Ms({props:n,muiFormControl:x,states:["variant","size","disabled","error","filled","focused","required"]}),S={...n,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete S.ownerState;const w=yV(S);return P.jsx(xV,{as:a,className:Se(w.root,o),ref:r,...g,ownerState:S,children:i===" "?gk||(gk=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});function bV(e){return ze("MuiFormLabel",e)}const hd=Fe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),wV=e=>{const{classes:t,color:r,focused:n,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${ue(r)}`,i&&"disabled",o&&"error",a&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return je(l,bV,t)},_V=se("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(Oe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{color:t},style:{[`&.${hd.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${hd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hd.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),CV=se("span",{name:"MuiFormLabel",slot:"Asterisk"})(Oe(({theme:e})=>({[`&.${hd.error}`]:{color:(e.vars||e).palette.error.main}}))),TV=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormLabel"}),{children:i,className:o,color:a,component:s="label",disabled:l,error:c,filled:d,focused:p,required:h,...v}=n,g=jo(),x=Ms({props:n,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y={...n,color:x.color||"primary",component:s,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required},S=wV(y);return P.jsxs(_V,{as:s,ownerState:y,className:Se(S.root,o),ref:r,...v,children:[i,x.required&&P.jsxs(CV,{ownerState:y,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});function mS(e){return`scale(${e}, ${e**2})`}const MV={entering:{opacity:1,transform:mS(1)},entered:{opacity:1,transform:"none"}},d1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),wg=L.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:d,onExit:p,onExited:h,onExiting:v,style:g,timeout:x="auto",TransitionComponent:y=Fi,...S}=t,w=_l(),b=L.useRef(),C=Fo(),T=L.useRef(null),M=Tr(T,ql(o),r),E=F=>j=>{if(F){const K=T.current;j===void 0?F(K):F(K,j)}},I=E(d),D=E((F,j)=>{hw(F);const{duration:K,delay:V,easing:H}=ys({style:g,timeout:x,easing:a},{mode:"enter"});let Y;x==="auto"?(Y=C.transitions.getAutoHeightDuration(F.clientHeight),b.current=Y):Y=K,F.style.transition=[C.transitions.create("opacity",{duration:Y,delay:V}),C.transitions.create("transform",{duration:d1?Y:Y*.666,delay:V,easing:H})].join(","),l&&l(F,j)}),k=E(c),O=E(v),N=E(F=>{const{duration:j,delay:K,easing:V}=ys({style:g,timeout:x,easing:a},{mode:"exit"});let H;x==="auto"?(H=C.transitions.getAutoHeightDuration(F.clientHeight),b.current=H):H=j,F.style.transition=[C.transitions.create("opacity",{duration:H,delay:K}),C.transitions.create("transform",{duration:d1?H:H*.666,delay:d1?K:K||H*.333,easing:V})].join(","),F.style.opacity=0,F.style.transform=mS(.75),p&&p(F)}),$=E(h),z=F=>{x==="auto"&&w.start(b.current||0,F),n&&n(T.current,F)};return P.jsx(y,{appear:i,in:s,nodeRef:T,onEnter:D,onEntered:k,onEntering:I,onExit:N,onExited:$,onExiting:O,addEndListener:z,timeout:x==="auto"?null:x,...S,children:(F,{ownerState:j,...K})=>L.cloneElement(o,{style:{opacity:0,transform:mS(.75),visibility:F==="exited"&&!s?"hidden":void 0,...MV[F],...g,...o.props.style},ref:M,...K})})});wg&&(wg.muiSupportAuto=!0);const kV=e=>{const{classes:t,disableUnderline:r}=e,i=je({root:["root",!r&&"underline"],input:["input"]},SW,t);return{...t,...i}},RV=se(wm,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Sm(e,t),!r.disableUnderline&&t.underline]}})(Oe(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${is.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${is.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${is.disabled}, .${is.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${is.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Cr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),PV=se(_m,{name:"MuiInput",slot:"Input",overridesResolver:bm})({}),Pw=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:a,fullWidth:s=!1,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:h="text",...v}=n,g=kV(n),y={root:{ownerState:{disableUnderline:i}}},S=d??a?Vr(d??a,y):y,w=p.root??o.Root??RV,b=p.input??o.Input??PV;return P.jsx(Tw,{slots:{root:w,input:b},slotProps:S,fullWidth:s,inputComponent:l,multiline:c,ref:r,type:h,...v,classes:g})});Pw.muiName="Input";function EV(e){return ze("MuiInputAdornment",e)}const mk=Fe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var yk;const AV=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ue(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},IV=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:o,variant:a}=e,s={root:["root",r&&"disablePointerEvents",i&&`position${ue(i)}`,a,n&&"hiddenLabel",o&&`size${ue(o)}`]};return je(s,EV,t)},DV=se("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:AV})(Oe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${mk.positionStart}&:not(.${mk.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),LV=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:d,...p}=n,h=jo()||{};let v=d;d&&h.variant,h&&!v&&(v=h.variant);const g={...n,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:s,position:c,variant:v},x=IV(g);return P.jsx(xm.Provider,{value:null,children:P.jsx(DV,{as:a,ownerState:g,className:Se(x.root,o),ref:r,...p,children:typeof i=="string"&&!l?P.jsx(Xe,{color:"textSecondary",children:i}):P.jsxs(L.Fragment,{children:[c==="start"?yk||(yk=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,i]})})})});function OV(e){return ze("MuiInputLabel",e)}Fe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const NV=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",r&&"formControl",!o&&"animated",i&&"shrink",n&&n!=="medium"&&`size${ue(n)}`,a],asterisk:[s&&"asterisk"]},c=je(l,OV,t);return{...t,...c}},BV=se(TV,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${hd.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Oe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Cm=L.forwardRef(function(t,r){const n=He({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:o,shrink:a,variant:s,className:l,...c}=n,d=jo();let p=a;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=Ms({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),v={...n,disableAnimation:i,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=NV(v);return P.jsx(BV,{"data-shrink":p,ref:r,className:Se(g.root,l),...c,ownerState:v,classes:g})});function $V(e){return ze("MuiLink",e)}const zV=Fe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),FV=({theme:e,ownerState:t})=>{const r=t.color,n=os(e,`palette.${r}.main`,!1)||os(e,`palette.${r}`,!1)||t.color,i=os(e,`palette.${r}.mainChannel`)||os(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:bt(n,.4)},xk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},jV=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,o={root:["root",`underline${ue(i)}`,r==="button"&&"button",n&&"focusVisible"]};return je(o,$V,t)},WV=se(Xe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ue(r.underline)}`],r.component==="button"&&t.button]}})(Oe(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Cr()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:bt(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:bt(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:bt(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${zV.focusVisible}`]:{outline:"auto"}}}]}))),fn=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiLink"}),i=Fo(),{className:o,color:a="primary",component:s="a",onBlur:l,onFocus:c,TypographyClasses:d,underline:p="always",variant:h="inherit",sx:v,...g}=n,[x,y]=L.useState(!1),S=T=>{uc(T.target)||y(!1),l&&l(T)},w=T=>{uc(T.target)&&y(!0),c&&c(T)},b={...n,color:a,component:s,focusVisible:x,underline:p,variant:h},C=jV(b);return P.jsx(WV,{color:a,className:Se(C.root,o),classes:d,component:s,onBlur:S,onFocus:w,ref:r,ownerState:b,variant:h,...g,sx:[...xk[a]===void 0?[{color:a}]:[],...Array.isArray(v)?v:[v]],style:{...g.style,...p==="always"&&a!=="inherit"&&!xk[a]&&{"--Link-underlineColor":FV({theme:i,ownerState:b})}}})}),Pl=L.createContext({});function HV(e){return ze("MuiList",e)}Fe("MuiList",["root","padding","dense","subheader"]);const VV=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return je({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},HV,t)},UV=se("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ew=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c,...d}=n,p=L.useMemo(()=>({dense:s}),[s]),h={...n,component:a,dense:s,disablePadding:l},v=VV(h);return P.jsx(Pl.Provider,{value:p,children:P.jsxs(UV,{as:a,className:Se(v.root,o),ref:r,ownerState:h,...d,children:[c,i]})})});function GV(e){return ze("MuiListItem",e)}Fe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const YV=Fe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function qV(e){return ze("MuiListItemSecondaryAction",e)}Fe("MuiListItemSecondaryAction",["root","disableGutters"]);const XV=e=>{const{disableGutters:t,classes:r}=e;return je({root:["root",t&&"disableGutters"]},qV,r)},KV=se("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),XD=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=n,a=L.useContext(Pl),s={...n,disableGutters:a.disableGutters},l=XV(s);return P.jsx(KV,{className:Se(l.root,i),ownerState:s,ref:r,...o})});XD.muiName="ListItemSecondaryAction";const ZV=(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.hasSecondaryAction&&t.secondaryAction]},QV=e=>{const{alignItems:t,classes:r,dense:n,disableGutters:i,disablePadding:o,divider:a,hasSecondaryAction:s}=e;return je({root:["root",n&&"dense",!i&&"gutters",!o&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},GV,r)},JV=se("div",{name:"MuiListItem",slot:"Root",overridesResolver:ZV})(Oe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${YV.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),eU=se("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),ml=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:a,component:s,components:l={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p,...h}={},dense:v=!1,disableGutters:g=!1,disablePadding:x=!1,divider:y=!1,secondaryAction:S,slotProps:w={},slots:b={},...C}=n,T=L.useContext(Pl),M=L.useMemo(()=>({dense:v||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,v,g]),E=L.useRef(null),I=L.Children.toArray(o),D=I.length&&Gv(I[I.length-1],["ListItemSecondaryAction"]),k={...n,alignItems:i,dense:M.dense,disableGutters:g,disablePadding:x,divider:y,hasSecondaryAction:D},O=QV(k),N=Tr(E,r),$=b.root||l.Root||JV,z=w.root||c.root||{},F={className:Se(O.root,z.className,a),...C};let j=s||"li";return D?(j=!F.component&&!s?"div":j,d==="li"&&(j==="li"?j="div":F.component==="li"&&(F.component="div")),P.jsx(Pl.Provider,{value:M,children:P.jsxs(eU,{as:d,className:Se(O.container,p),ref:N,ownerState:k,...h,children:[P.jsx($,{...z,...!Wd($)&&{as:j,ownerState:{...k,...z.ownerState}},...F,children:I}),I.pop()]})})):P.jsx(Pl.Provider,{value:M,children:P.jsxs($,{...z,as:j,ref:N,...!Wd($)&&{ownerState:{...k,...z.ownerState}},...F,children:[I,S&&P.jsx(XD,{children:S})]})})});function tU(e){return ze("MuiListItemIcon",e)}Fe("MuiListItemIcon",["root","alignItemsFlexStart"]);const rU=e=>{const{alignItems:t,classes:r}=e;return je({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},tU,r)},nU=se("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Oe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),iU=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItemIcon"}),{className:i,...o}=n,a=L.useContext(Pl),s={...n,alignItems:a.alignItems},l=rU(s);return P.jsx(nU,{className:Se(l.root,i),ownerState:s,ref:r,...o})});function oU(e){return ze("MuiListItemText",e)}const Zh=Fe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aU=e=>{const{classes:t,inset:r,primary:n,secondary:i,dense:o}=e;return je({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},oU,t)},sU=se("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Zh.primary}`]:t.primary},{[`& .${Zh.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${VM.root}:where(& .${Zh.primary})`]:{display:"block"},[`.${VM.root}:where(& .${Zh.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),lU=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:p,slots:h={},slotProps:v={},...g}=n,{dense:x}=L.useContext(Pl);let y=l??i,S=d;const w={...n,disableTypography:a,inset:s,primary:!!y,secondary:!!S,dense:x},b=aU(w),C={slots:h,slotProps:{primary:c,secondary:p,...v}},[T,M]=Ue("root",{className:Se(b.root,o),elementType:sU,externalForwardedProps:{...C,...g},ownerState:w,ref:r}),[E,I]=Ue("primary",{className:b.primary,elementType:Xe,externalForwardedProps:C,ownerState:w}),[D,k]=Ue("secondary",{className:b.secondary,elementType:Xe,externalForwardedProps:C,ownerState:w});return y!=null&&y.type!==Xe&&!a&&(y=P.jsx(E,{variant:x?"body2":"body1",component:I!=null&&I.variant?void 0:"span",...I,children:y})),S!=null&&S.type!==Xe&&!a&&(S=P.jsx(D,{variant:"body2",color:"textSecondary",...k,children:S})),P.jsxs(T,{...M,children:[y,S]})});function p1(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Sk(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function KD(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.startsWith(t.keys.join(""))}function Sf(e,t,r,n,i,o){let a=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!KD(s,o)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const uU=L.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:p="selectedMenu",...h}=t,v=L.useRef(null),g=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});lo(()=>{i&&v.current.focus()},[i]),L.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,{direction:C})=>{const T=!v.current.style.width;if(b.clientHeight<v.current.clientHeight&&T){const M=`${VD(li(b))}px`;v.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=M,v.current.style.width=`calc(100% + ${M})`}return v.current}}),[]);const x=b=>{const C=v.current,T=b.key;if(b.ctrlKey||b.metaKey||b.altKey){d&&d(b);return}const E=Hn(C).activeElement;if(T==="ArrowDown")b.preventDefault(),Sf(C,E,c,l,p1);else if(T==="ArrowUp")b.preventDefault(),Sf(C,E,c,l,Sk);else if(T==="Home")b.preventDefault(),Sf(C,null,c,l,p1);else if(T==="End")b.preventDefault(),Sf(C,null,c,l,Sk);else if(T.length===1){const I=g.current,D=T.toLowerCase(),k=performance.now();I.keys.length>0&&(k-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&D!==I.keys[0]&&(I.repeating=!1)),I.lastTime=k,I.keys.push(D);const O=E&&!I.repeating&&KD(E,I);I.previousKeyMatched&&(O||Sf(C,E,!1,l,p1,I))?b.preventDefault():I.previousKeyMatched=!1}d&&d(b)},y=Tr(v,r);let S=-1;L.Children.forEach(a,(b,C)=>{if(!L.isValidElement(b)){S===C&&(S+=1,S>=a.length&&(S=-1));return}b.props.disabled||(p==="selectedMenu"&&b.props.selected||S===-1)&&(S=C),S===C&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(S+=1,S>=a.length&&(S=-1))});const w=L.Children.map(a,(b,C)=>{if(C===S){const T={};return o&&(T.autoFocus=!0),b.props.tabIndex===void 0&&p==="selectedMenu"&&(T.tabIndex=0),L.cloneElement(b,T)}return b});return P.jsx(Ew,{role:"menu",ref:y,className:s,onKeyDown:x,tabIndex:i?0:-1,...h,children:w})});function cU(e){return ze("MuiPopover",e)}Fe("MuiPopover",["root","paper"]);function bk(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function wk(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function _k(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Qh(e){return typeof e=="function"?e():e}const fU=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"]},cU,t)},dU=se(Mw,{name:"MuiPopover",slot:"Root"})({}),ZD=se(ji,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),QD=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:c,className:d,container:p,elevation:h=8,marginThreshold:v=16,open:g,PaperProps:x={},slots:y={},slotProps:S={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:C="auto",TransitionProps:T={},disableScrollLock:M=!1,...E}=n,I=L.useRef(),D={...n,anchorOrigin:a,anchorReference:l,elevation:h,marginThreshold:v,transformOrigin:w,TransitionComponent:b,transitionDuration:C,TransitionProps:T},k=fU(D),O=L.useCallback(()=>{if(l==="anchorPosition")return s;const fe=Qh(o),pe=(fe&&fe.nodeType===1?fe:Hn(I.current).body).getBoundingClientRect();return{top:pe.top+bk(pe,a.vertical),left:pe.left+wk(pe,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),N=L.useCallback(fe=>({vertical:bk(fe,w.vertical),horizontal:wk(fe,w.horizontal)}),[w.horizontal,w.vertical]),$=L.useCallback(fe=>{const ge={width:fe.offsetWidth,height:fe.offsetHeight},pe=N(ge);if(l==="none")return{top:null,left:null,transformOrigin:_k(pe)};const Ne=O();let ke=Ne.top-pe.vertical,it=Ne.left-pe.horizontal;const rt=ke+ge.height,dt=it+ge.width,we=li(Qh(o)),at=we.innerHeight-v,Ee=we.innerWidth-v;if(v!==null&&ke<v){const Ye=ke-v;ke-=Ye,pe.vertical+=Ye}else if(v!==null&&rt>at){const Ye=rt-at;ke-=Ye,pe.vertical+=Ye}if(v!==null&&it<v){const Ye=it-v;it-=Ye,pe.horizontal+=Ye}else if(dt>Ee){const Ye=dt-Ee;it-=Ye,pe.horizontal+=Ye}return{top:`${Math.round(ke)}px`,left:`${Math.round(it)}px`,transformOrigin:_k(pe)}},[o,l,O,N,v]),[z,F]=L.useState(g),j=L.useCallback(()=>{const fe=I.current;if(!fe)return;const ge=$(fe);ge.top!==null&&fe.style.setProperty("top",ge.top),ge.left!==null&&(fe.style.left=ge.left),fe.style.transformOrigin=ge.transformOrigin,F(!0)},[$]);L.useEffect(()=>(M&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[o,M,j]);const K=()=>{j()},V=()=>{F(!1)};L.useEffect(()=>{g&&j()}),L.useImperativeHandle(i,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),L.useEffect(()=>{if(!g)return;const fe=yp(()=>{j()}),ge=li(Qh(o));return ge.addEventListener("resize",fe),()=>{fe.clear(),ge.removeEventListener("resize",fe)}},[o,g,j]);let H=C;const Y={slots:{transition:b,...y},slotProps:{transition:T,paper:x,...S}},[W,q]=Ue("transition",{elementType:wg,externalForwardedProps:Y,ownerState:D,getSlotProps:fe=>({...fe,onEntering:(ge,pe)=>{var Ne;(Ne=fe.onEntering)==null||Ne.call(fe,ge,pe),K()},onExited:ge=>{var pe;(pe=fe.onExited)==null||pe.call(fe,ge),V()}}),additionalProps:{appear:!0,in:g}});C==="auto"&&!W.muiSupportAuto&&(H=void 0);const te=p||(o?Hn(Qh(o)).body:void 0),[le,{slots:ne,slotProps:Q,...ce}]=Ue("root",{ref:r,elementType:dU,externalForwardedProps:{...Y,...E},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:fw(typeof S.backdrop=="function"?S.backdrop(D):S.backdrop,{invisible:!0})},container:te,open:g},ownerState:D,className:Se(k.root,d)}),[me,de]=Ue("paper",{ref:I,className:k.paper,elementType:ZD,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:z?void 0:{opacity:0}},ownerState:D});return P.jsx(le,{...ce,...!Wd(le)&&{slots:ne,slotProps:Q,disableScrollLock:M},children:P.jsx(W,{...q,timeout:H,children:P.jsx(me,{...de,children:c})})})});function pU(e){return ze("MuiMenu",e)}Fe("MuiMenu",["root","paper","list"]);const hU={vertical:"top",horizontal:"right"},vU={vertical:"top",horizontal:"left"},gU=e=>{const{classes:t}=e;return je({root:["root"],paper:["paper"],list:["list"]},pU,t)},mU=se(QD,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),yU=se(ZD,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xU=se(uU,{name:"MuiMenu",slot:"List"})({outline:0}),SU=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,className:a,disableAutoFocusItem:s=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:v="auto",TransitionProps:{onEntering:g,...x}={},variant:y="selectedMenu",slots:S={},slotProps:w={},...b}=n,C=Cc(),T={...n,autoFocus:i,disableAutoFocusItem:s,MenuListProps:l,onEntering:g,PaperProps:p,transitionDuration:v,TransitionProps:x,variant:y},M=gU(T),E=i&&!s&&d,I=L.useRef(null),D=(H,Y)=>{I.current&&I.current.adjustStyleForScrollbar(H,{direction:C?"rtl":"ltr"}),g&&g(H,Y)},k=H=>{H.key==="Tab"&&(H.preventDefault(),c&&c(H,"tabKeyDown"))};let O=-1;L.Children.map(o,(H,Y)=>{L.isValidElement(H)&&(H.props.disabled||(y==="selectedMenu"&&H.props.selected||O===-1)&&(O=Y))});const N={slots:S,slotProps:{list:l,transition:x,paper:p,...w}},$=hc({elementType:S.root,externalSlotProps:w.root,ownerState:T,className:[M.root,a]}),[z,F]=Ue("paper",{className:M.paper,elementType:yU,externalForwardedProps:N,shouldForwardComponentProp:!0,ownerState:T}),[j,K]=Ue("list",{className:Se(M.list,l.className),elementType:xU,shouldForwardComponentProp:!0,externalForwardedProps:N,getSlotProps:H=>({...H,onKeyDown:Y=>{var W;k(Y),(W=H.onKeyDown)==null||W.call(H,Y)}}),ownerState:T}),V=typeof N.slotProps.transition=="function"?N.slotProps.transition(T):N.slotProps.transition;return P.jsx(mU,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?hU:vU,slots:{root:S.root,paper:z,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:$,paper:F,backdrop:typeof w.backdrop=="function"?w.backdrop(T):w.backdrop,transition:{...V,onEntering:(...H)=>{var Y;D(...H),(Y=V==null?void 0:V.onEntering)==null||Y.call(V,...H)}}},open:d,ref:r,transitionDuration:v,ownerState:T,...b,classes:h,children:P.jsx(j,{actions:I,autoFocus:i&&(O===-1||s),autoFocusItem:E,variant:y,...K,children:o})})});function bU(e){return ze("MuiNativeSelect",e)}const Aw=Fe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wU=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ue(r)}`,o&&"iconOpen",n&&"disabled"]};return je(s,bU,t)},JD=se("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Aw.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),_U=se(JD,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Yn,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Aw.multiple}`]:t.multiple}]}})({}),eL=se("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Aw.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),CU=se(eL,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ue(r.variant)}`],r.open&&t.iconOpen]}})({}),TU=L.forwardRef(function(t,r){const{className:n,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard",...c}=t,d={...t,disabled:i,variant:l,error:o},p=wU(d);return P.jsxs(L.Fragment,{children:[P.jsx(_U,{ownerState:d,className:Se(p.select,n),disabled:i,ref:s||r,...c}),t.multiple?null:P.jsx(CU,{as:a,ownerState:d,className:p.icon})]})});var Ck;const MU=se("fieldset",{shouldForwardProp:Yn})({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%"}),kU=se("legend",{shouldForwardProp:Yn})(Oe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function RU(e){const{children:t,classes:r,className:n,label:i,notched:o,...a}=e,s=i!=null&&i!=="",l={...e,notched:o,withLabel:s};return P.jsx(MU,{"aria-hidden":!0,className:n,ownerState:l,...a,children:P.jsx(kU,{ownerState:l,children:s?P.jsx("span",{children:i}):Ck||(Ck=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const PU=e=>{const{classes:t}=e,n=je({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bW,t);return{...t,...n}},EU=se(wm,{shouldForwardProp:e=>Yn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sm})(Oe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ci.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ci.focused} .${Ci.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Cr()).map(([r])=>({props:{color:r},style:{[`&.${Ci.focused} .${Ci.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Ci.error} .${Ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ci.disabled} .${Ci.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),AU=se(RU,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Oe(({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}})),IU=se(_m,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:bm})(Oe(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Tm=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:l=!1,notched:c,slots:d={},slotProps:p={},type:h="text",...v}=n,g=PU(n),x=jo(),y=Ms({props:n,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...n,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:x,fullWidth:o,hiddenLabel:y.hiddenLabel,multiline:l,size:y.size,type:h},w=d.root??i.Root??EU,b=d.input??i.Input??IU,[C,T]=Ue("notchedOutline",{elementType:AU,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:s!=null&&s!==""&&y.required?P.jsxs(L.Fragment,{children:[s," ","*"]}):s}});return P.jsx(Tw,{slots:{root:w,input:b},slotProps:p,renderSuffix:M=>P.jsx(C,{...T,notched:typeof c<"u"?c:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:o,inputComponent:a,multiline:l,ref:r,type:h,...v,classes:{...g,notchedOutline:null}})});Tm.muiName="Input";function tL(e){return ze("MuiSelect",e)}const bf=Fe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Tk;const DU=se(JD,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${bf.select}`]:t.select},{[`&.${bf.select}`]:t[r.variant]},{[`&.${bf.error}`]:t.error},{[`&.${bf.multiple}`]:t.multiple}]}})({[`&.${bf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),LU=se(eL,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ue(r.variant)}`],r.open&&t.iconOpen]}})({}),OU=se("input",{shouldForwardProp:e=>gD(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Mk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function NU(e){return e==null||typeof e=="string"&&!e.trim()}const BU=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ue(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return je(s,tL,t)},$U=L.forwardRef(function(t,r){var ut;const{"aria-describedby":n,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:h,error:v=!1,IconComponent:g,inputRef:x,labelId:y,MenuProps:S={},multiple:w,name:b,onBlur:C,onChange:T,onClose:M,onFocus:E,onOpen:I,open:D,readOnly:k,renderValue:O,required:N,SelectDisplayProps:$={},tabIndex:z,type:F,value:j,variant:K="standard",...V}=t,[H,Y]=cs({controlled:j,default:d,name:"Select"}),[W,q]=cs({controlled:D,default:c,name:"Select"}),te=L.useRef(null),le=L.useRef(null),[ne,Q]=L.useState(null),{current:ce}=L.useRef(D!=null),[me,de]=L.useState(),fe=Tr(r,x),ge=L.useCallback(Be=>{le.current=Be,Be&&Q(Be)},[]),pe=ne==null?void 0:ne.parentNode;L.useImperativeHandle(fe,()=>({focus:()=>{le.current.focus()},node:te.current,value:H}),[H]),L.useEffect(()=>{c&&W&&ne&&!ce&&(de(a?null:pe.clientWidth),le.current.focus())},[ne,a]),L.useEffect(()=>{o&&le.current.focus()},[o]),L.useEffect(()=>{if(!y)return;const Be=Hn(le.current).getElementById(y);if(Be){const st=()=>{getSelection().isCollapsed&&le.current.focus()};return Be.addEventListener("click",st),()=>{Be.removeEventListener("click",st)}}},[y]);const Ne=(Be,st)=>{Be?I&&I(st):M&&M(st),ce||(de(a?null:pe.clientWidth),q(Be))},ke=Be=>{Be.button===0&&(Be.preventDefault(),le.current.focus(),Ne(!0,Be))},it=Be=>{Ne(!1,Be)},rt=L.Children.toArray(s),dt=Be=>{const st=rt.find(_t=>_t.props.value===Be.target.value);st!==void 0&&(Y(st.props.value),T&&T(Be,st))},we=Be=>st=>{let _t;if(st.currentTarget.hasAttribute("tabindex")){if(w){_t=Array.isArray(H)?H.slice():[];const gr=H.indexOf(Be.props.value);gr===-1?_t.push(Be.props.value):_t.splice(gr,1)}else _t=Be.props.value;if(Be.props.onClick&&Be.props.onClick(st),H!==_t&&(Y(_t),T)){const gr=st.nativeEvent||st,Nr=new gr.constructor(gr.type,gr);Object.defineProperty(Nr,"target",{writable:!0,value:{value:_t,name:b}}),T(Nr,Be)}w||Ne(!1,st)}},at=Be=>{k||[" ","ArrowUp","ArrowDown","Enter"].includes(Be.key)&&(Be.preventDefault(),Ne(!0,Be))},Ee=ne!==null&&W,Ye=Be=>{!Ee&&C&&(Object.defineProperty(Be,"target",{writable:!0,value:{value:H,name:b}}),C(Be))};delete V["aria-invalid"];let Ce,Xt;const mt=[];let Wt=!1;(bg({value:H})||h)&&(O?Ce=O(H):Wt=!0);const Jt=rt.map(Be=>{if(!L.isValidElement(Be))return null;let st;if(w){if(!Array.isArray(H))throw new Error(ga(2));st=H.some(_t=>Mk(_t,Be.props.value)),st&&Wt&&mt.push(Be.props.children)}else st=Mk(H,Be.props.value),st&&Wt&&(Xt=Be.props.children);return L.cloneElement(Be,{"aria-selected":st?"true":"false",onClick:we(Be),onKeyUp:_t=>{_t.key===" "&&_t.preventDefault(),Be.props.onKeyUp&&Be.props.onKeyUp(_t)},role:"option",selected:st,value:void 0,"data-value":Be.props.value})});Wt&&(w?mt.length===0?Ce=null:Ce=mt.reduce((Be,st,_t)=>(Be.push(st),_t<mt.length-1&&Be.push(", "),Be),[]):Ce=Xt);let ar=me;!a&&ce&&ne&&(ar=pe.clientWidth);let Lt;typeof z<"u"?Lt=z:Lt=p?null:0;const tr=$.id||(b?`mui-component-select-${b}`:void 0),Je={...t,variant:K,value:H,open:Ee,error:v},xe=BU(Je),wt={...S.PaperProps,...(ut=S.slotProps)==null?void 0:ut.paper},Rt=Tc();return P.jsxs(L.Fragment,{children:[P.jsx(DU,{as:"div",ref:ge,tabIndex:Lt,role:"combobox","aria-controls":Ee?Rt:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":Ee?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[y,tr].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":N?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:at,onMouseDown:p||k?null:ke,onBlur:Ye,onFocus:E,...$,ownerState:Je,className:Se($.className,xe.select,l),id:tr,children:NU(Ce)?Tk||(Tk=P.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ce}),P.jsx(OU,{"aria-invalid":v,value:Array.isArray(H)?H.join(","):H,name:b,ref:te,"aria-hidden":!0,onChange:dt,tabIndex:-1,disabled:p,className:xe.nativeInput,autoFocus:o,required:N,...V,ownerState:Je}),P.jsx(LU,{as:g,className:xe.icon,ownerState:Je}),P.jsx(SU,{id:`menu-${b||""}`,anchorEl:pe,open:Ee,onClose:it,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:Rt,...S.MenuListProps},paper:{...wt,style:{minWidth:ar,...wt!=null?wt.style:null}}},children:Jt})]})}),zU=e=>{const{classes:t}=e,n=je({root:["root"]},tL,t);return{...t,...n}},Iw={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Yn(e)&&e!=="variant"},FU=se(Pw,Iw)(""),jU=se(Tm,Iw)(""),WU=se(kw,Iw)(""),Dw=L.forwardRef(function(t,r){const n=He({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=zD,id:p,input:h,inputProps:v,label:g,labelId:x,MenuProps:y,multiple:S=!1,native:w=!1,onClose:b,onOpen:C,open:T,renderValue:M,SelectDisplayProps:E,variant:I="outlined",...D}=n,k=w?TU:$U,O=jo(),N=Ms({props:n,muiFormControl:O,states:["variant","error"]}),$=N.variant||I,z={...n,variant:$,classes:a},F=zU(z),{root:j,...K}=F,V=h||{standard:P.jsx(FU,{ownerState:z}),outlined:P.jsx(jU,{label:g,ownerState:z}),filled:P.jsx(WU,{ownerState:z})}[$],H=Tr(r,ql(V));return P.jsx(L.Fragment,{children:L.cloneElement(V,{inputComponent:k,inputProps:{children:o,error:N.error,IconComponent:d,variant:$,type:void 0,multiple:S,...w?{id:p}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:y,onClose:b,onOpen:C,open:T,renderValue:M,SelectDisplayProps:{id:p,...E}},...v,classes:v?Vr(K,v.classes):K,...h?h.props.inputProps:{}},...(S&&w||c)&&$==="outlined"?{notched:!0}:{},ref:H,className:Se(V.props.className,s,F.root),...!h&&{variant:$},...D})})});Dw.muiName="Select";function HU(e){return ze("MuiTooltip",e)}const br=Fe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function VU(e){return Math.round(e*1e5)/1e5}const UU=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${ue(o.split("-")[0])}`],arrow:["arrow"]};return je(a,HU,t)},GU=se(ym,{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]}})(Oe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${br.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${br.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${br.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${br.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${br.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${br.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${br.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${br.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),YU=se("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${ue(r.placement.split("-")[0])}`]]}})(Oe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:bt(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,[`.${br.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${br.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${br.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${br.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${VU(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${br.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${br.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${br.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${br.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${br.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${br.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${br.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${br.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${br.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${br.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),qU=se("span",{name:"MuiTooltip",slot:"Arrow"})(Oe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:bt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Jh=!1;const kk=new gm;let wf={x:0,y:0};function ev(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const rL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:a,components:s={},componentsProps:l={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:h=!1,disableTouchListener:v=!1,enterDelay:g=100,enterNextDelay:x=0,enterTouchDelay:y=700,followCursor:S=!1,id:w,leaveDelay:b=0,leaveTouchDelay:C=1500,onClose:T,onOpen:M,open:E,placement:I="bottom",PopperComponent:D,PopperProps:k={},slotProps:O={},slots:N={},title:$,TransitionComponent:z,TransitionProps:F,...j}=n,K=L.isValidElement(o)?o:P.jsx("span",{children:o}),V=Fo(),H=Cc(),[Y,W]=L.useState(),[q,te]=L.useState(null),le=L.useRef(!1),ne=h||S,Q=_l(),ce=_l(),me=_l(),de=_l(),[fe,ge]=cs({controlled:E,default:!1,name:"Tooltip",state:"open"});let pe=fe;const Ne=Tc(w),ke=L.useRef(),it=vn(()=>{ke.current!==void 0&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),de.clear()});L.useEffect(()=>it,[it]);const rt=et=>{kk.clear(),Jh=!0,ge(!0),M&&!pe&&M(et)},dt=vn(et=>{kk.start(800+b,()=>{Jh=!1}),ge(!1),T&&pe&&T(et),Q.start(V.transitions.duration.shortest,()=>{le.current=!1})}),we=et=>{le.current&&et.type!=="touchstart"||(Y&&Y.removeAttribute("title"),ce.clear(),me.clear(),g||Jh&&x?ce.start(Jh?x:g,()=>{rt(et)}):rt(et))},at=et=>{ce.clear(),me.start(b,()=>{dt(et)})},[,Ee]=L.useState(!1),Ye=et=>{uc(et.target)||(Ee(!1),at(et))},Ce=et=>{Y||W(et.currentTarget),uc(et.target)&&(Ee(!0),we(et))},Xt=et=>{le.current=!0;const nr=K.props;nr.onTouchStart&&nr.onTouchStart(et)},mt=et=>{Xt(et),me.clear(),Q.clear(),it(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.start(y,()=>{document.body.style.WebkitUserSelect=ke.current,we(et)})},Wt=et=>{K.props.onTouchEnd&&K.props.onTouchEnd(et),it(),me.start(C,()=>{dt(et)})};L.useEffect(()=>{if(!pe)return;function et(nr){nr.key==="Escape"&&dt(nr)}return document.addEventListener("keydown",et),()=>{document.removeEventListener("keydown",et)}},[dt,pe]);const Jt=Tr(ql(K),W,r);!$&&$!==0&&(pe=!1);const ar=L.useRef(),Lt=et=>{const nr=K.props;nr.onMouseMove&&nr.onMouseMove(et),wf={x:et.clientX,y:et.clientY},ar.current&&ar.current.update()},tr={},Je=typeof $=="string";c?(tr.title=!pe&&Je&&!p?$:null,tr["aria-describedby"]=pe?Ne:null):(tr["aria-label"]=Je?$:null,tr["aria-labelledby"]=pe&&!Je?Ne:null);const xe={...tr,...j,...K.props,className:Se(j.className,K.props.className),onTouchStart:Xt,ref:Jt,...S?{onMouseMove:Lt}:{}},wt={};v||(xe.onTouchStart=mt,xe.onTouchEnd=Wt),p||(xe.onMouseOver=ev(we,xe.onMouseOver),xe.onMouseLeave=ev(at,xe.onMouseLeave),ne||(wt.onMouseOver=we,wt.onMouseLeave=at)),d||(xe.onFocus=ev(Ce,xe.onFocus),xe.onBlur=ev(Ye,xe.onBlur),ne||(wt.onFocus=Ce,wt.onBlur=Ye));const Rt={...n,isRtl:H,arrow:i,disableInteractive:ne,placement:I,PopperComponentProp:D,touch:le.current},ut=typeof O.popper=="function"?O.popper(Rt):O.popper,Be=L.useMemo(()=>{var nr,Me;let et=[{name:"arrow",enabled:!!q,options:{element:q,padding:4}}];return(nr=k.popperOptions)!=null&&nr.modifiers&&(et=et.concat(k.popperOptions.modifiers)),(Me=ut==null?void 0:ut.popperOptions)!=null&&Me.modifiers&&(et=et.concat(ut.popperOptions.modifiers)),{...k.popperOptions,...ut==null?void 0:ut.popperOptions,modifiers:et}},[q,k.popperOptions,ut==null?void 0:ut.popperOptions]),st=UU(Rt),_t=typeof O.transition=="function"?O.transition(Rt):O.transition,gr={slots:{popper:s.Popper,transition:s.Transition??z,tooltip:s.Tooltip,arrow:s.Arrow,...N},slotProps:{arrow:O.arrow??l.arrow,popper:{...k,...ut??l.popper},tooltip:O.tooltip??l.tooltip,transition:{...F,..._t??l.transition}}},[Nr,Hi]=Ue("popper",{elementType:GU,externalForwardedProps:gr,ownerState:Rt,className:Se(st.popper,k==null?void 0:k.className)}),[rr,Rr]=Ue("transition",{elementType:wg,externalForwardedProps:gr,ownerState:Rt}),[en,qn]=Ue("tooltip",{elementType:YU,className:st.tooltip,externalForwardedProps:gr,ownerState:Rt}),[Ur,Vi]=Ue("arrow",{elementType:qU,className:st.arrow,externalForwardedProps:gr,ownerState:Rt,ref:te});return P.jsxs(L.Fragment,{children:[L.cloneElement(K,xe),P.jsx(Nr,{as:D??ym,placement:I,anchorEl:S?{getBoundingClientRect:()=>({top:wf.y,left:wf.x,right:wf.x,bottom:wf.y,width:0,height:0})}:Y,popperRef:ar,open:Y?pe:!1,id:Ne,transition:!0,...wt,...Hi,popperOptions:Be,children:({TransitionProps:et})=>P.jsx(rr,{timeout:V.transitions.duration.shorter,...et,...Rr,children:P.jsxs(en,{...qn,children:[$,i?P.jsx(Ur,{...Vi}):null]})})})]})}),XU=Pj({createStyledComponent:se("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>He({props:e,name:"MuiStack"})});function KU(e){return ze("MuiSwitch",e)}const bn=Fe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),ZU=e=>{const{classes:t,edge:r,size:n,color:i,checked:o,disabled:a}=e,s={root:["root",r&&`edge${ue(r)}`,`size${ue(n)}`],switchBase:["switchBase",`color${ue(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=je(s,KU,t);return{...t,...l}},QU=se("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ue(r.edge)}`],t[`size${ue(r.size)}`]]}})({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"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${bn.thumb}`]:{width:16,height:16},[`& .${bn.switchBase}`]:{padding:4,[`&.${bn.checked}`]:{transform:"translateX(16px)"}}}}]}),JU=se(jD,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${bn.input}`]:t.input},r.color!=="default"&&t[`color${ue(r.color)}`]]}})(Oe(({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}),[`&.${bn.checked}`]:{transform:"translateX(20px)"},[`&.${bn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${bn.checked} + .${bn.track}`]:{opacity:.5},[`&.${bn.disabled} + .${bn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${bn.input}`]:{left:"-100%",width:"300%"}})),Oe(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Cr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${bn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:bt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?zl(e.palette[t].main,.62):$l(e.palette[t].main,.55)}`}},[`&.${bn.checked} + .${bn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),eG=se("span",{name:"MuiSwitch",slot:"Track"})(Oe(({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}`}))),tG=se("span",{name:"MuiSwitch",slot:"Thumb"})(Oe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),rG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:d={},...p}=n,h={...n,color:o,edge:a,size:s},v=ZU(h),g={slots:c,slotProps:d},[x,y]=Ue("root",{className:Se(v.root,i),elementType:QU,externalForwardedProps:g,ownerState:h,additionalProps:{sx:l}}),[S,w]=Ue("thumb",{className:v.thumb,elementType:tG,externalForwardedProps:g,ownerState:h}),b=P.jsx(S,{...w}),[C,T]=Ue("track",{className:v.track,elementType:eG,externalForwardedProps:g,ownerState:h});return P.jsxs(x,{...y,children:[P.jsx(JU,{type:"checkbox",icon:b,checkedIcon:b,ref:r,ownerState:h,...p,classes:{...v,root:v.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(h):d.switchBase},...d.input&&{input:typeof d.input=="function"?d.input(h):d.input}}}),P.jsx(C,{...T})]})});function nG(e){return ze("MuiTab",e)}const Si=Fe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),iG=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${ue(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return je(c,nG,t)},oG=se(xs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ue(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Si.iconWrapper}`]:t.iconWrapper},{[`& .${Si.icon}`]:t.icon}]}})(Oe(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${Si.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${Si.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${Si.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${Si.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Si.selected}`]:{opacity:1},[`&.${Si.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Si.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Si.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Si.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Si.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),aG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:d,label:p,onChange:h,onClick:v,onFocus:g,selected:x,selectionFollowsFocus:y,textColor:S="inherit",value:w,wrapped:b=!1,...C}=n,T={...n,disabled:o,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!p,fullWidth:s,textColor:S,wrapped:b},M=iG(T),E=l&&p&&L.isValidElement(l)?L.cloneElement(l,{className:Se(M.icon,l.props.className)}):l,I=k=>{!x&&h&&h(k,w),v&&v(k)},D=k=>{y&&!x&&h&&h(k,w),g&&g(k)};return P.jsxs(oG,{focusRipple:!a,className:Se(M.root,i),ref:r,role:"tab","aria-selected":x,disabled:o,onClick:I,onFocus:D,ownerState:T,tabIndex:x?0:-1,...C,children:[c==="top"||c==="start"?P.jsxs(L.Fragment,{children:[E,p]}):P.jsxs(L.Fragment,{children:[p,E]}),d]})}),nL=L.createContext();function sG(e){return ze("MuiTable",e)}Fe("MuiTable",["root","stickyHeader"]);const lG=e=>{const{classes:t,stickyHeader:r}=e;return je({root:["root",r&&"stickyHeader"]},sG,t)},uG=se("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(Oe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Rk="table",iL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTable"}),{className:i,component:o=Rk,padding:a="normal",size:s="medium",stickyHeader:l=!1,...c}=n,d={...n,component:o,padding:a,size:s,stickyHeader:l},p=lG(d),h=L.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return P.jsx(nL.Provider,{value:h,children:P.jsx(uG,{as:o,role:o===Rk?null:"table",ref:r,className:Se(p.root,i),ownerState:d,...c})})}),Mm=L.createContext();function cG(e){return ze("MuiTableBody",e)}Fe("MuiTableBody",["root"]);const fG=e=>{const{classes:t}=e;return je({root:["root"]},cG,t)},dG=se("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),pG={variant:"body"},Pk="tbody",oL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableBody"}),{className:i,component:o=Pk,...a}=n,s={...n,component:o},l=fG(s);return P.jsx(Mm.Provider,{value:pG,children:P.jsx(dG,{className:Se(l.root,i),as:o,ref:r,role:o===Pk?null:"rowgroup",ownerState:s,...a})})});function hG(e){return ze("MuiTableCell",e)}const vG=Fe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),gG=e=>{const{classes:t,variant:r,align:n,padding:i,size:o,stickyHeader:a}=e,s={root:["root",r,a&&"stickyHeader",n!=="inherit"&&`align${ue(n)}`,i!=="normal"&&`padding${ue(i)}`,`size${ue(o)}`]};return je(s,hG,t)},mG=se("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ue(r.size)}`],r.padding!=="normal"&&t[`padding${ue(r.padding)}`],r.align!=="inherit"&&t[`align${ue(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(Oe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
204
|
-
${e.palette.mode==="light"?zl(bt(e.palette.divider,1),.88):$l(bt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${vG.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Sl=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:d,variant:p,...h}=n,v=L.useContext(nL),g=L.useContext(Mm),x=g&&g.variant==="head";let y;a?y=a:y=x?"th":"td";let S=l;y==="td"?S=void 0:!S&&x&&(S="col");const w=p||g&&g.variant,b={...n,align:i,component:y,padding:s||(v&&v.padding?v.padding:"normal"),size:c||(v&&v.size?v.size:"medium"),sortDirection:d,stickyHeader:w==="head"&&v&&v.stickyHeader,variant:w},C=gG(b);let T=null;return d&&(T=d==="asc"?"ascending":"descending"),P.jsx(mG,{as:y,ref:r,className:Se(C.root,o),"aria-sort":T,scope:S,ownerState:b,...h})});function yG(e){return ze("MuiTableContainer",e)}Fe("MuiTableContainer",["root"]);const xG=e=>{const{classes:t}=e;return je({root:["root"]},yG,t)},SG=se("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),aL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableContainer"}),{className:i,component:o="div",...a}=n,s={...n,component:o},l=xG(s);return P.jsx(SG,{ref:r,as:o,className:Se(l.root,i),ownerState:s,...a})});function bG(e){return ze("MuiTableHead",e)}Fe("MuiTableHead",["root"]);const wG=e=>{const{classes:t}=e;return je({root:["root"]},bG,t)},_G=se("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),CG={variant:"head"},Ek="thead",sL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableHead"}),{className:i,component:o=Ek,...a}=n,s={...n,component:o},l=wG(s);return P.jsx(Mm.Provider,{value:CG,children:P.jsx(_G,{as:o,className:Se(l.root,i),ref:r,role:o===Ek?null:"rowgroup",ownerState:s,...a})})});function TG(e){return ze("MuiToolbar",e)}Fe("MuiToolbar",["root","gutters","regular","dense"]);const MG=e=>{const{classes:t,disableGutters:r,variant:n}=e;return je({root:["root",!r&&"gutters",n]},TG,t)},kG=se("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Oe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),RG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular",...l}=n,c={...n,component:o,disableGutters:a,variant:s},d=MG(c);return P.jsx(kG,{as:o,className:Se(d.root,i),ref:r,ownerState:c,...l})}),PG=Gt(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),EG=Gt(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function AG(e){return ze("MuiTableRow",e)}const Ak=Fe("MuiTableRow",["root","selected","hover","head","footer"]),IG=e=>{const{classes:t,selected:r,hover:n,head:i,footer:o}=e;return je({root:["root",r&&"selected",n&&"hover",i&&"head",o&&"footer"]},AG,t)},DG=se("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(Oe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ak.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ak.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bt(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}))`:bt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Ik="tr",_g=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableRow"}),{className:i,component:o=Ik,hover:a=!1,selected:s=!1,...l}=n,c=L.useContext(Mm),d={...n,component:o,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},p=IG(d);return P.jsx(DG,{as:o,ref:r,className:Se(p.root,i),role:o===Ik?null:"row",ownerState:d,...l})});function LG(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function OG(e,t,r,n={},i=()=>{}){const{ease:o=LG,duration:a=300}=n;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},p=h=>{if(c){i(new Error("Animation cancelled"));return}s===null&&(s=h);const v=Math.min(1,(h-s)/a);if(t[e]=o(v)*(r-l)+l,v>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(p)};return l===r?(i(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const NG={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function BG(e){const{onChange:t,...r}=e,n=L.useRef(),i=L.useRef(null),o=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return lo(()=>{const a=yp(()=>{const l=n.current;o(),l!==n.current&&t(n.current)}),s=li(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),L.useEffect(()=>{o(),t(n.current)},[t]),P.jsx("div",{style:NG,...r,ref:i})}function $G(e){return ze("MuiTabScrollButton",e)}const zG=Fe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),FG=e=>{const{classes:t,orientation:r,disabled:n}=e;return je({root:["root",r,n&&"disabled"]},$G,t)},jG=se(xs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${zG.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),WG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:a={},direction:s,orientation:l,disabled:c,...d}=n,p=Cc(),h={isRtl:p,...n},v=FG(h),g=o.StartScrollButtonIcon??PG,x=o.EndScrollButtonIcon??EG,y=hc({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),S=hc({elementType:x,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return P.jsx(jG,{component:"div",className:Se(v.root,i),ref:r,role:null,ownerState:h,tabIndex:null,...d,style:{...d.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${p?-90:90}deg)`}},children:s==="left"?P.jsx(g,{...y}):P.jsx(x,{...S})})});function HG(e){return ze("MuiTabs",e)}const h1=Fe("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Dk=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Lk=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,tv=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=r(e,i);else{i.focus();return}}},VG=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return je({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},HG,l)},UG=se("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${h1.scrollButtons}`]:t.scrollButtons},{[`& .${h1.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Oe(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${h1.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),GG=se("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]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),YG=se("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),qG=se("span",{name:"MuiTabs",slot:"Indicator"})(Oe(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),XG=se(BG)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Ok={},KG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTabs"}),i=Fo(),o=Cc(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:d,className:p,component:h="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:x,orientation:y="horizontal",ScrollButtonComponent:S,scrollButtons:w="auto",selectionFollowsFocus:b,slots:C={},slotProps:T={},TabIndicatorProps:M={},TabScrollButtonProps:E={},textColor:I="primary",value:D,variant:k="standard",visibleScrollbar:O=!1,...N}=n,$=k==="scrollable",z=y==="vertical",F=z?"scrollTop":"scrollLeft",j=z?"top":"left",K=z?"bottom":"right",V=z?"clientHeight":"clientWidth",H=z?"height":"width",Y={...n,component:h,allowScrollButtonsMobile:v,indicatorColor:g,orientation:y,vertical:z,scrollButtons:w,textColor:I,variant:k,visibleScrollbar:O,fixed:!$,hideScrollbar:$&&!O,scrollableX:$&&!z,scrollableY:$&&z,centered:c&&!$,scrollButtonsHideMobile:!v},W=VG(Y),q=hc({elementType:C.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:Y}),te=hc({elementType:C.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:Y}),[le,ne]=L.useState(!1),[Q,ce]=L.useState(Ok),[me,de]=L.useState(!1),[fe,ge]=L.useState(!1),[pe,Ne]=L.useState(!1),[ke,it]=L.useState({overflow:"hidden",scrollbarWidth:0}),rt=new Map,dt=L.useRef(null),we=L.useRef(null),at={slots:C,slotProps:{indicator:M,scrollButton:E,...T}},Ee=()=>{const Me=dt.current;let Ae;if(Me){const pt=Me.getBoundingClientRect();Ae={clientWidth:Me.clientWidth,scrollLeft:Me.scrollLeft,scrollTop:Me.scrollTop,scrollWidth:Me.scrollWidth,top:pt.top,bottom:pt.bottom,left:pt.left,right:pt.right}}let ct;if(Me&&D!==!1){const pt=we.current.children;if(pt.length>0){const zt=pt[rt.get(D)];ct=zt?zt.getBoundingClientRect():null}}return{tabsMeta:Ae,tabMeta:ct}},Ye=vn(()=>{const{tabsMeta:Me,tabMeta:Ae}=Ee();let ct=0,pt;z?(pt="top",Ae&&Me&&(ct=Ae.top-Me.top+Me.scrollTop)):(pt=o?"right":"left",Ae&&Me&&(ct=(o?-1:1)*(Ae[pt]-Me[pt]+Me.scrollLeft)));const zt={[pt]:ct,[H]:Ae?Ae[H]:0};if(typeof Q[pt]!="number"||typeof Q[H]!="number")ce(zt);else{const Pr=Math.abs(Q[pt]-zt[pt]),tn=Math.abs(Q[H]-zt[H]);(Pr>=1||tn>=1)&&ce(zt)}}),Ce=(Me,{animation:Ae=!0}={})=>{Ae?OG(F,dt.current,Me,{duration:i.transitions.duration.standard}):dt.current[F]=Me},Xt=Me=>{let Ae=dt.current[F];z?Ae+=Me:Ae+=Me*(o?-1:1),Ce(Ae)},mt=()=>{const Me=dt.current[V];let Ae=0;const ct=Array.from(we.current.children);for(let pt=0;pt<ct.length;pt+=1){const zt=ct[pt];if(Ae+zt[V]>Me){pt===0&&(Ae=Me);break}Ae+=zt[V]}return Ae},Wt=()=>{Xt(-1*mt())},Jt=()=>{Xt(mt())},[ar,{onChange:Lt,...tr}]=Ue("scrollbar",{className:Se(W.scrollableX,W.hideScrollbar),elementType:XG,shouldForwardComponentProp:!0,externalForwardedProps:at,ownerState:Y}),Je=L.useCallback(Me=>{Lt==null||Lt(Me),it({overflow:null,scrollbarWidth:Me})},[Lt]),[xe,wt]=Ue("scrollButtons",{className:Se(W.scrollButtons,E.className),elementType:WG,externalForwardedProps:at,ownerState:Y,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:C.startScrollButtonIcon||C.StartScrollButtonIcon,EndScrollButtonIcon:C.endScrollButtonIcon||C.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:q,endScrollButtonIcon:te}}}),Rt=()=>{const Me={};Me.scrollbarSizeListener=$?P.jsx(ar,{...tr,onChange:Je}):null;const ct=$&&(w==="auto"&&(me||fe)||w===!0);return Me.scrollButtonStart=ct?P.jsx(xe,{direction:o?"right":"left",onClick:Wt,disabled:!me,...wt}):null,Me.scrollButtonEnd=ct?P.jsx(xe,{direction:o?"left":"right",onClick:Jt,disabled:!fe,...wt}):null,Me},ut=vn(Me=>{const{tabsMeta:Ae,tabMeta:ct}=Ee();if(!(!ct||!Ae)){if(ct[j]<Ae[j]){const pt=Ae[F]+(ct[j]-Ae[j]);Ce(pt,{animation:Me})}else if(ct[K]>Ae[K]){const pt=Ae[F]+(ct[K]-Ae[K]);Ce(pt,{animation:Me})}}}),Be=vn(()=>{$&&w!==!1&&Ne(!pe)});L.useEffect(()=>{const Me=yp(()=>{dt.current&&Ye()});let Ae;const ct=Pr=>{Pr.forEach(tn=>{tn.removedNodes.forEach(mn=>{Ae==null||Ae.unobserve(mn)}),tn.addedNodes.forEach(mn=>{Ae==null||Ae.observe(mn)})}),Me(),Be()},pt=li(dt.current);pt.addEventListener("resize",Me);let zt;return typeof ResizeObserver<"u"&&(Ae=new ResizeObserver(Me),Array.from(we.current.children).forEach(Pr=>{Ae.observe(Pr)})),typeof MutationObserver<"u"&&(zt=new MutationObserver(ct),zt.observe(we.current,{childList:!0})),()=>{Me.clear(),pt.removeEventListener("resize",Me),zt==null||zt.disconnect(),Ae==null||Ae.disconnect()}},[Ye,Be]),L.useEffect(()=>{const Me=Array.from(we.current.children),Ae=Me.length;if(typeof IntersectionObserver<"u"&&Ae>0&&$&&w!==!1){const ct=Me[0],pt=Me[Ae-1],zt={root:dt.current,threshold:.99},Pr=pi=>{de(!pi[0].isIntersecting)},tn=new IntersectionObserver(Pr,zt);tn.observe(ct);const mn=pi=>{ge(!pi[0].isIntersecting)},Go=new IntersectionObserver(mn,zt);return Go.observe(pt),()=>{tn.disconnect(),Go.disconnect()}}},[$,w,pe,d==null?void 0:d.length]),L.useEffect(()=>{ne(!0)},[]),L.useEffect(()=>{Ye()}),L.useEffect(()=>{ut(Ok!==Q)},[ut,Q]),L.useImperativeHandle(l,()=>({updateIndicator:Ye,updateScrollButtons:Be}),[Ye,Be]);const[st,_t]=Ue("indicator",{className:Se(W.indicator,M.className),elementType:qG,externalForwardedProps:at,ownerState:Y,additionalProps:{style:Q}}),gr=P.jsx(st,{..._t});let Nr=0;const Hi=L.Children.map(d,Me=>{if(!L.isValidElement(Me))return null;const Ae=Me.props.value===void 0?Nr:Me.props.value;rt.set(Ae,Nr);const ct=Ae===D;return Nr+=1,L.cloneElement(Me,{fullWidth:k==="fullWidth",indicator:ct&&!le&&gr,selected:ct,selectionFollowsFocus:b,onChange:x,textColor:I,value:Ae,...Nr===1&&D===!1&&!Me.props.tabIndex?{tabIndex:0}:{}})}),rr=Me=>{if(Me.altKey||Me.shiftKey||Me.ctrlKey||Me.metaKey)return;const Ae=we.current,ct=Hn(Ae).activeElement;if(ct.getAttribute("role")!=="tab")return;let zt=y==="horizontal"?"ArrowLeft":"ArrowUp",Pr=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&o&&(zt="ArrowRight",Pr="ArrowLeft"),Me.key){case zt:Me.preventDefault(),tv(Ae,ct,Lk);break;case Pr:Me.preventDefault(),tv(Ae,ct,Dk);break;case"Home":Me.preventDefault(),tv(Ae,null,Dk);break;case"End":Me.preventDefault(),tv(Ae,null,Lk);break}},Rr=Rt(),[en,qn]=Ue("root",{ref:r,className:Se(W.root,p),elementType:UG,externalForwardedProps:{...at,...N,component:h},ownerState:Y}),[Ur,Vi]=Ue("scroller",{ref:dt,className:W.scroller,elementType:GG,externalForwardedProps:at,ownerState:Y,additionalProps:{style:{overflow:ke.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:O?void 0:-ke.scrollbarWidth}}}),[et,nr]=Ue("list",{ref:we,className:Se(W.list,W.flexContainer),elementType:YG,externalForwardedProps:at,ownerState:Y,getSlotProps:Me=>({...Me,onKeyDown:Ae=>{var ct;rr(Ae),(ct=Me.onKeyDown)==null||ct.call(Me,Ae)}})});return P.jsxs(en,{...qn,children:[Rr.scrollButtonStart,Rr.scrollbarSizeListener,P.jsxs(Ur,{...Vi,children:[P.jsx(et,{"aria-label":a,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...nr,children:Hi}),le&&gr]}),Rr.scrollButtonEnd]})});function ZG(e){return ze("MuiTextField",e)}Fe("MuiTextField",["root"]);const QG={standard:Pw,filled:kw,outlined:Tm},JG=e=>{const{classes:t}=e;return je({root:["root"]},ZG,t)},eY=se(Rw,{name:"MuiTextField",slot:"Root"})({}),El=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:v=!1,helperText:g,id:x,InputLabelProps:y,inputProps:S,InputProps:w,inputRef:b,label:C,maxRows:T,minRows:M,multiline:E=!1,name:I,onBlur:D,onChange:k,onFocus:O,placeholder:N,required:$=!1,rows:z,select:F=!1,SelectProps:j,slots:K={},slotProps:V={},type:H,value:Y,variant:W="outlined",...q}=n,te={...n,autoFocus:o,color:l,disabled:d,error:p,fullWidth:v,multiline:E,required:$,select:F,variant:W},le=JG(te),ne=Tc(x),Q=g&&ne?`${ne}-helper-text`:void 0,ce=C&&ne?`${ne}-label`:void 0,me=QG[W],de={slots:K,slotProps:{input:w,inputLabel:y,htmlInput:S,formHelperText:h,select:j,...V}},fe={},ge=de.slotProps.inputLabel;W==="outlined"&&(ge&&typeof ge.shrink<"u"&&(fe.notched=ge.shrink),fe.label=C),F&&((!j||!j.native)&&(fe.id=void 0),fe["aria-describedby"]=void 0);const[pe,Ne]=Ue("root",{elementType:eY,shouldForwardComponentProp:!0,externalForwardedProps:{...de,...q},ownerState:te,className:Se(le.root,s),ref:r,additionalProps:{disabled:d,error:p,fullWidth:v,required:$,color:l,variant:W}}),[ke,it]=Ue("input",{elementType:me,externalForwardedProps:de,additionalProps:fe,ownerState:te}),[rt,dt]=Ue("inputLabel",{elementType:Cm,externalForwardedProps:de,ownerState:te}),[we,at]=Ue("htmlInput",{elementType:"input",externalForwardedProps:de,ownerState:te}),[Ee,Ye]=Ue("formHelperText",{elementType:SV,externalForwardedProps:de,ownerState:te}),[Ce,Xt]=Ue("select",{elementType:Dw,externalForwardedProps:de,ownerState:te}),mt=P.jsx(ke,{"aria-describedby":Q,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:v,multiline:E,name:I,rows:z,maxRows:T,minRows:M,type:H,value:Y,id:ne,inputRef:b,onBlur:D,onChange:k,onFocus:O,placeholder:N,inputProps:at,slots:{input:K.htmlInput?we:void 0},...it});return P.jsxs(pe,{...Ne,children:[C!=null&&C!==""&&P.jsx(rt,{htmlFor:ne,id:ce,...dt,children:C}),F?P.jsx(Ce,{"aria-describedby":Q,id:ne,labelId:ce,value:Y,input:mt,...Xt,children:a}):mt,g&&P.jsx(Ee,{id:Q,...Ye,children:g})]})});function lL(){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"})]})}const Lw=Gt([P.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),P.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),tY=Gt(P.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),rY=Gt(P.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 12zM12 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 6"})),nY=Gt(P.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 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"})),iY=Gt(P.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"})),oY=Gt(P.jsx("path",{d:"M21.9 21.9 2.1 2.1.69 3.51l1.55 1.55c-.15.28-.23.6-.23.94L2 18c0 1.11.89 2 2 2h13.17l3.31 3.31zM4 12V8h1.17l4 4zm2.83-8H20c1.11 0 2 .89 2 2v12c0 .34-.08.66-.23.94L14.83 12H20V8h-9.17z"})),Ow=Gt(P.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),uL=Gt(P.jsx("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3"})),aY=Gt(P.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),Nw=Gt(P.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),cL=Gt([P.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),P.jsx("path",{d:"M10 3h4v12h-4z"},"1")]),sY=Gt(P.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-.61zM12 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.6"})),Bw=Gt(P.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"})),fL=Gt(P.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m7.46 7.12-2.78 1.15c-.51-1.36-1.58-2.44-2.95-2.94l1.15-2.78c2.1.8 3.77 2.47 4.58 4.57M12 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3M9.13 4.54l1.17 2.78c-1.38.5-2.47 1.59-2.98 2.97L4.54 9.13c.81-2.11 2.48-3.78 4.59-4.59M4.54 14.87l2.78-1.15c.51 1.38 1.59 2.46 2.97 2.96l-1.17 2.78c-2.1-.81-3.77-2.48-4.58-4.59m10.34 4.59-1.15-2.78c1.37-.51 2.45-1.59 2.95-2.97l2.78 1.17c-.81 2.1-2.48 3.77-4.58 4.58"})),lY=Gt(P.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),uY=Gt(P.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),cY=Gt(P.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}));function dL({name:e="password",label:t="Password",defaultValue:r,isRequired:n}){const[i,o]=L.useState(!1),a=()=>o(!i);return P.jsxs(Rw,{variant:"outlined",children:[P.jsx(Cm,{htmlFor:`${t}-${e}-field`,children:t}),P.jsx(Tm,{defaultValue:r,endAdornment:P.jsx(LV,{position:"end",children:P.jsx(ba,{edge:"end",onClick:a,children:i?P.jsx(cY,{}):P.jsx(uY,{})})}),id:`${t}-${e}-field`,label:t,name:e,required:n,type:i?"text":"password"})]})}function $w({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:o="medium",sx:a,...s}){return P.jsxs(Rw,{size:o,sx:a,children:[P.jsx(Cm,{htmlFor:t,shrink:!0,children:e}),P.jsx(Dw,{...s,defaultValue:s.value?void 0:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((l,c)=>P.jsx("option",{value:l,children:l},`option-${l}-${c}`))})]})}function zw({name:e,label:t,type:r="text",defaultValue:n,choices:i,isSecret:o,isRequired:a}){return i?P.jsx($w,{defaultValue:n,label:t,name:e,options:i,required:a,sx:{width:"100%"}}):typeof n=="boolean"?P.jsx(YD,{control:P.jsx(vS,{defaultChecked:n,required:a}),label:t,name:e}):o?P.jsx(dL,{defaultValue:n,isRequired:a,label:t,name:e}):P.jsx(El,{defaultValue:n,label:t,name:e,required:a,sx:{width:"100%"},type:r})}const Ao={DARK:"dark",LIGHT:"light"},fY=localStorage.theme===Ao.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ao.DARK:Ao.LIGHT,kn=gI,dY=TI;function To(e,t){const r=dY();return L.useCallback(n=>{r(e(n))},[e,r])}const pY={isDarkMode:!1},pL=Pi({name:"theme",initialState:pY,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),hY=pL.actions,hL=pL.reducer;function yS(){const e=kn(({theme:{isDarkMode:n}})=>n),t=To(hY.setIsDarkMode);L.useEffect(()=>{t(fY===Ao.DARK)},[]);const r=()=>{localStorage.theme=e?Ao.LIGHT:Ao.DARK,t(!e)};return P.jsx(ba,{color:"inherit",onClick:r,children:e?P.jsx(nY,{}):P.jsx(rY,{})})}const vY=e=>vm({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}});function vL(){const e=kn(({theme:{isDarkMode:r}})=>r);return L.useMemo(()=>vY(e?Ao.DARK:Ao.LIGHT),[e])}function gY({authProviders:e,customForm:t,error:r,info:n,usernamePasswordCallback:i}){const o=vL();return P.jsxs(mD,{theme:o,children:[P.jsx(HD,{}),P.jsx(tt,{sx:{position:"absolute",top:4,right:4},children:P.jsx(yS,{})}),P.jsxs(tt,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,width:400,border:"3px solid black",p:4},children:[P.jsx(tt,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:P.jsx(lL,{})}),i&&!t&&P.jsx("form",{action:i,method:"POST",children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[P.jsx(El,{label:"Username",name:"username"}),P.jsx(dL,{}),n&&P.jsx(ua,{severity:"info",children:n}),r&&P.jsx(ua,{severity:"error",children:r}),P.jsx(ci,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),t&&P.jsx("form",{action:t.callbackUrl,method:"POST",children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[t.inputs.map((a,s)=>P.jsx(zw,{...a},`custom-form-input-${s}`)),n&&P.jsx(ua,{severity:"info",children:n}),r&&P.jsx(ua,{severity:"error",children:r}),P.jsx(ci,{size:"large",type:"submit",variant:"contained",children:t.submitButtonText||"Login"})]})}),n&&!t&&!i&&P.jsx(ua,{severity:"info",children:n}),r&&!t&&!i&&P.jsx(ua,{severity:"error",children:r}),e&&P.jsx(tt,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:a,callbackUrl:s,iconUrl:l},c)=>P.jsxs(ba,{href:s,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[P.jsx("img",{height:"32",src:l}),P.jsx(Xe,{height:"32",variant:"button",children:a})]},`auth-provider-${c}`))})]})]})}function km({open:e,onClose:t,children:r}){return P.jsx(Mw,{onClose:t,open:e,children:P.jsxs(bp,{maxWidth:"md",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",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(ba,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:P.jsx(iY,{})}),r]})})}function mY(){const[e,t]=L.useState(!1),r=kn(({swarm:n})=>n.version);return P.jsxs(P.Fragment,{children:[P.jsx(tt,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(ci,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),P.jsxs(km,{onClose:()=>t(!1),open:e,children:[P.jsxs("div",{children:[P.jsx(Xe,{component:"h2",mb:1,variant:"h4",children:"About"}),P.jsxs(Xe,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",P.jsx(fn,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),P.jsxs(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",P.jsx(fn,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",P.jsx(fn,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),P.jsxs(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",P.jsx(fn,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),P.jsxs("div",{children:[P.jsx(Xe,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),P.jsx(fn,{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(Xe,{component:"h2",mb:1,variant:"h4",children:"Version"}),P.jsx(fn,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),P.jsxs("div",{children:[P.jsx(Xe,{component:"h2",mb:1,variant:"h4",children:"Links"}),P.jsx(Xe,{component:"p",variant:"subtitle1",children:P.jsx(fn,{href:"https://github.com/locustio/locust",children:"GitHub"})}),P.jsx(Xe,{component:"p",variant:"subtitle1",children:P.jsx(fn,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),P.jsx(Xe,{component:"p",variant:"subtitle1",children:P.jsx(fn,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function yY(){return P.jsx(bp,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:P.jsx(mY,{})})}const gL=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function xY(e,t){return{...e,...t}}const SY=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},Rm=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),Jr={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning"},Io=window.templateArgs?yl(window.templateArgs):{};Io.isReport&&{...Io,charts:(Io.history||[]).reduce((e,{currentResponseTimePercentiles:t,...r})=>Rm(e,{...t,...r}),{})};function bY({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:o,workerCount:a}){return P.jsxs(tt,{sx:{display:"flex",columnGap:2,rowGap:1,flexDirection:{xs:"column",md:"row"}},children:[P.jsxs(tt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Host"}),P.jsx(rL,{title:r,children:P.jsx(Xe,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:{xs:"180px",lg:"400px"}},children:r})})]}),P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Status"}),P.jsx(Xe,{variant:"button",children:t})]}),(t===Jr.RUNNING||t===Jr.SPAWNING)&&P.jsxs(P.Fragment,{children:[P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Users"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:o})]})]}),e&&P.jsxs(P.Fragment,{children:[P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Workers"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:a})]})]}),P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"RPS"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:n})]}),P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Failures"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const wY=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:o,userCount:a}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:o,userCount:a,workerCount:n}),Nk=di(wY)(bY),_Y="input, select, textarea",CY=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 mL({children:e,onSubmit:t,onChange:r}){const n=L.useCallback(async i=>{i.preventDefault();const a=[...i.target.querySelectorAll(_Y)].reduce((s,l)=>l.name?{...s,[l.name]:CY(l)}:s,{});t(a)},[t]);return P.jsx("form",{onChange:r,onSubmit:n,children:e})}function Bk({defaultValue:e,...t}){const[r,n]=L.useState(e||""),i=o=>{t.onChange&&t.onChange(o),!((o.target.value.match(/\./g)||[]).length>1)&&n(o.target.value.replace(/[^0-9.]/g,""))};return L.useEffect(()=>{e&&n(e)},[e]),P.jsx(El,{...t,onChange:i,value:r})}function TY({extraOptions:e}){return P.jsxs(vw,{children:[P.jsx(mw,{expandIcon:P.jsx(Ow,{}),children:P.jsx(Xe,{children:"Custom parameters"})}),P.jsx(gw,{children:P.jsx(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>L.createElement(zw,{...r,key:`valid-parameter-${n}`,label:r.helpText?`${qx(t)} (${r.helpText})`:qx(t),name:t}))})})]})}var yL=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(yL||{});function MY(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function kY(e){return new RegExp("(^|:)//").test(e)}var RY=e=>e.replace(/\/$/,""),PY=e=>e.replace(/^\//,"");function EY(e,t){if(!e)return t;if(!t)return e;if(kY(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=RY(e),t=PY(t),`${e}${r}${t}`}var $k=e=>[].concat(...e);function AY(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function IY(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var zk=No;function xL(e,t){if(e===t||!(zk(e)&&zk(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 o=Array.isArray(t)?[]:{};for(const a of r)o[a]=xL(e[a],t[a]),i&&(i=e[a]===o[a]);return i?e:o}var Fk=(...e)=>fetch(...e),DY=e=>e.status>=200&&e.status<=299,LY=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function jk(e){if(!No(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function OY({baseUrl:e,prepareHeaders:t=p=>p,fetchFn:r=Fk,paramsSerializer:n,isJsonContentType:i=LY,jsonContentType:o="application/json",jsonReplacer:a,timeout:s,responseHandler:l,validateStatus:c,...d}={}){return typeof fetch>"u"&&r===Fk&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(h,v)=>{const{signal:g,getState:x,extra:y,endpoint:S,forced:w,type:b}=v;let C,{url:T,headers:M=new Headers(d.headers),params:E=void 0,responseHandler:I=l??"json",validateStatus:D=c??DY,timeout:k=s,...O}=typeof h=="string"?{url:h}:h,N={...d,signal:g,...O};M=new Headers(jk(M)),N.headers=await t(M,{getState:x,extra:y,endpoint:S,forced:w,type:b})||M;const $=q=>typeof q=="object"&&(No(q)||Array.isArray(q)||typeof q.toJSON=="function");if(!N.headers.has("content-type")&&$(N.body)&&N.headers.set("content-type",o),$(N.body)&&i(N.headers)&&(N.body=JSON.stringify(N.body,a)),E){const q=~T.indexOf("?")?"&":"?",te=n?n(E):new URLSearchParams(jk(E));T+=q+te}T=EY(e,T);const z=new Request(T,N);C={request:new Request(T,N)};let j,K=!1,V=k&&setTimeout(()=>{K=!0,v.abort()},k);try{j=await r(z)}catch(q){return{error:{status:K?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(q)},meta:C}}finally{V&&clearTimeout(V)}const H=j.clone();C.response=H;let Y,W="";try{let q;if(await Promise.all([p(j,I).then(te=>Y=te,te=>q=te),H.text().then(te=>W=te,()=>{})]),q)throw q}catch(q){return{error:{status:"PARSING_ERROR",originalStatus:j.status,data:W,error:String(q)},meta:C}}return D(j,Y)?{data:Y,meta:C}:{error:{status:j.status,data:Y},meta:C}};async function p(h,v){if(typeof v=="function")return v(h);if(v==="content-type"&&(v=i(h.headers)?"json":"text"),v==="json"){const g=await h.text();return g.length?JSON.parse(g):null}return h.text()}}var Wk=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Fw=Cn("__rtkq/focused"),SL=Cn("__rtkq/unfocused"),jw=Cn("__rtkq/online"),bL=Cn("__rtkq/offline");function wL(e){return e.type==="query"}function NY(e){return e.type==="mutation"}function Ww(e,t,r,n,i,o){return BY(e)?e(t,r,n,i).map(xS).map(o):Array.isArray(e)?e.map(xS).map(o):[]}function BY(e){return typeof e=="function"}function xS(e){return typeof e=="string"?{type:e}:e}function Hk(e){return e!=null}function Zu(e){let t=0;for(const r in e)t++;return t}function $Y(e,t){return e.catch(t)}var Hd=Symbol("forceQueryFn"),SS=e=>typeof e[Hd]=="function";function zY({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const o=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=n.internalActions;return{buildInitiateQuery:g,buildInitiateMutation:x,getRunningQueryThunk:d,getRunningMutationThunk:p,getRunningQueriesThunk:h,getRunningMutationsThunk:v};function d(y,S){return w=>{var T;const b=i.endpointDefinitions[y],C=e({queryArgs:S,endpointDefinition:b,endpointName:y});return(T=o.get(w))==null?void 0:T[C]}}function p(y,S){return w=>{var b;return(b=a.get(w))==null?void 0:b[S]}}function h(){return y=>Object.values(o.get(y)||{}).filter(Hk)}function v(){return y=>Object.values(a.get(y)||{}).filter(Hk)}function g(y,S){const w=(b,{subscribe:C=!0,forceRefetch:T,subscriptionOptions:M,[Hd]:E,...I}={})=>(D,k)=>{var q;const O=e({queryArgs:b,endpointDefinition:S,endpointName:y}),N=t({...I,type:"query",subscribe:C,forceRefetch:T,subscriptionOptions:M,endpointName:y,originalArgs:b,queryCacheKey:O,[Hd]:E}),$=n.endpoints[y].select(b),z=D(N),F=$(k()),{requestId:j,abort:K}=z,V=F.requestId!==j,H=(q=o.get(D))==null?void 0:q[O],Y=()=>$(k()),W=Object.assign(E?z.then(Y):V&&!H?Promise.resolve(F):Promise.all([H,z]).then(Y),{arg:b,requestId:j,subscriptionOptions:M,queryCacheKey:O,abort:K,async unwrap(){const te=await W;if(te.isError)throw te.error;return te.data},refetch:()=>D(w(b,{subscribe:!1,forceRefetch:!0})),unsubscribe(){C&&D(s({queryCacheKey:O,requestId:j}))},updateSubscriptionOptions(te){W.subscriptionOptions=te,D(c({endpointName:y,requestId:j,queryCacheKey:O,options:te}))}});if(!H&&!V&&!E){const te=o.get(D)||{};te[O]=W,o.set(D,te),W.then(()=>{delete te[O],Zu(te)||o.delete(D)})}return W};return w}function x(y){return(S,{track:w=!0,fixedCacheKey:b}={})=>(C,T)=>{const M=r({type:"mutation",endpointName:y,originalArgs:S,track:w,fixedCacheKey:b}),E=C(M),{requestId:I,abort:D,unwrap:k}=E,O=$Y(E.unwrap().then(F=>({data:F})),F=>({error:F})),N=()=>{C(l({requestId:I,fixedCacheKey:b}))},$=Object.assign(O,{arg:E.arg,requestId:I,abort:D,unwrap:k,reset:N}),z=a.get(C)||{};return a.set(C,z),z[I]=$,$.then(()=>{delete z[I],Zu(z)||a.delete(C)}),b&&(z[b]=$,$.then(()=>{z[b]===$&&(delete z[b],Zu(z)||a.delete(C))})),$}}}function Vk(e){return e}function FY({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:o}){const a=(w,b,C,T)=>(M,E)=>{const I=r[w],D=n({queryArgs:b,endpointDefinition:I,endpointName:w});if(M(i.internalActions.queryResultPatched({queryCacheKey:D,patches:C})),!T)return;const k=i.endpoints[w].select(b)(E()),O=Ww(I.providesTags,k.data,void 0,b,{},o);M(i.internalActions.updateProvidedBy({queryCacheKey:D,providedTags:O}))},s=(w,b,C,T=!0)=>(M,E)=>{const D=i.endpoints[w].select(b)(E());let k={patches:[],inversePatches:[],undo:()=>M(i.util.patchQueryData(w,b,k.inversePatches,T))};if(D.status==="uninitialized")return k;let O;if("data"in D)if(ao(D.data)){const[N,$,z]=oI(D.data,C);k.patches.push(...$),k.inversePatches.push(...z),O=N}else O=C(D.data),k.patches.push({op:"replace",path:[],value:O}),k.inversePatches.push({op:"replace",path:[],value:D.data});return k.patches.length===0||M(i.util.patchQueryData(w,b,k.patches,T)),k},l=(w,b,C)=>T=>T(i.endpoints[w].initiate(b,{subscribe:!1,forceRefetch:!0,[Hd]:()=>({data:C})})),c=async(w,{signal:b,abort:C,rejectWithValue:T,fulfillWithValue:M,dispatch:E,getState:I,extra:D})=>{const k=r[w.endpointName];try{let O=Vk,N;const $={signal:b,abort:C,dispatch:E,getState:I,extra:D,endpoint:w.endpointName,type:w.type,forced:w.type==="query"?d(w,I()):void 0},z=w.type==="query"?w[Hd]:void 0;if(z?N=z():k.query?(N=await t(k.query(w.originalArgs),$,k.extraOptions),k.transformResponse&&(O=k.transformResponse)):N=await k.queryFn(w.originalArgs,$,k.extraOptions,F=>t(F,$,k.extraOptions)),typeof process<"u",N.error)throw new Wk(N.error,N.meta);return M(await O(N.data,N.meta,w.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:N.meta,[Wu]:!0})}catch(O){let N=O;if(N instanceof Wk){let $=Vk;k.query&&k.transformErrorResponse&&($=k.transformErrorResponse);try{return T(await $(N.value,N.meta,w.originalArgs),{baseQueryMeta:N.meta,[Wu]:!0})}catch(z){N=z}}throw console.error(N),N}};function d(w,b){var I,D,k;const C=(D=(I=b[e])==null?void 0:I.queries)==null?void 0:D[w.queryCacheKey],T=(k=b[e])==null?void 0:k.config.refetchOnMountOrArgChange,M=C==null?void 0:C.fulfilledTimeStamp,E=w.forceRefetch??(w.subscribe&&T);return E?E===!0||(Number(new Date)-Number(M))/1e3>=E:!1}const p=V2(`${e}/executeQuery`,c,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Wu]:!0}},condition(w,{getState:b}){var k,O,N;const C=b(),T=(O=(k=C[e])==null?void 0:k.queries)==null?void 0:O[w.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,E=w.originalArgs,I=T==null?void 0:T.originalArgs,D=r[w.endpointName];return SS(w)?!0:(T==null?void 0:T.status)==="pending"?!1:d(w,C)||wL(D)&&((N=D==null?void 0:D.forceRefetch)!=null&&N.call(D,{currentArg:E,previousArg:I,endpointState:T,state:C}))?!0:!M},dispatchConditionRejection:!0}),h=V2(`${e}/executeMutation`,c,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Wu]:!0}}}),v=w=>"force"in w,g=w=>"ifOlderThan"in w,x=(w,b,C)=>(T,M)=>{const E=v(C)&&C.force,I=g(C)&&C.ifOlderThan,D=(O=!0)=>{const N={forceRefetch:O,isPrefetch:!0};return i.endpoints[w].initiate(b,N)},k=i.endpoints[w].select(b)(M());if(E)T(D());else if(I){const O=k==null?void 0:k.fulfilledTimeStamp;if(!O){T(D());return}(Number(new Date)-Number(new Date(O)))/1e3>=I&&T(D())}else T(D(!1))};function y(w){return b=>{var C,T;return((T=(C=b==null?void 0:b.meta)==null?void 0:C.arg)==null?void 0:T.endpointName)===w}}function S(w,b){return{matchPending:ud(Fb(w),y(b)),matchFulfilled:ud(vs(w),y(b)),matchRejected:ud(sc(w),y(b))}}return{queryThunk:p,mutationThunk:h,prefetch:x,updateQueryData:s,upsertQueryData:l,patchQueryData:a,buildMatchThunkActions:S}}function _L(e,t,r,n){return Ww(r[e.meta.arg.endpointName][t],vs(e)?e.payload:void 0,rm(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function rv(e,t,r){const n=e[t];n&&r(n)}function Vd(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Uk(e,t,r){const n=e[Vd(t)];n&&r(n)}var _f={};function jY({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:o,hasRehydrationInfo:a},assertTagType:s,config:l}){const c=Cn(`${e}/resetApiState`),d=Pi({name:`${e}/queries`,initialState:_f,reducers:{removeQueryResult:{reducer(b,{payload:{queryCacheKey:C}}){delete b[C]},prepare:gf()},queryResultPatched:{reducer(b,{payload:{queryCacheKey:C,patches:T}}){rv(b,C,M=>{M.data=$2(M.data,T.concat())})},prepare:gf()}},extraReducers(b){b.addCase(t.pending,(C,{meta:T,meta:{arg:M}})=>{var I;const E=SS(M);C[I=M.queryCacheKey]??(C[I]={status:"uninitialized",endpointName:M.endpointName}),rv(C,M.queryCacheKey,D=>{D.status="pending",D.requestId=E&&D.requestId?D.requestId:T.requestId,M.originalArgs!==void 0&&(D.originalArgs=M.originalArgs),D.startedTimeStamp=T.startedTimeStamp})}).addCase(t.fulfilled,(C,{meta:T,payload:M})=>{rv(C,T.arg.queryCacheKey,E=>{if(E.requestId!==T.requestId&&!SS(T.arg))return;const{merge:I}=n[T.arg.endpointName];if(E.status="fulfilled",I)if(E.data!==void 0){const{fulfilledTimeStamp:D,arg:k,baseQueryMeta:O,requestId:N}=T;let $=up(E.data,z=>I(z,M,{arg:k.originalArgs,baseQueryMeta:O,fulfilledTimeStamp:D,requestId:N}));E.data=$}else E.data=M;else E.data=n[T.arg.endpointName].structuralSharing??!0?xL(oo(E.data)?NB(E.data):E.data,M):M;delete E.error,E.fulfilledTimeStamp=T.fulfilledTimeStamp})}).addCase(t.rejected,(C,{meta:{condition:T,arg:M,requestId:E},error:I,payload:D})=>{rv(C,M.queryCacheKey,k=>{if(!T){if(k.requestId!==E)return;k.status="rejected",k.error=D??I}})}).addMatcher(a,(C,T)=>{const{queries:M}=o(T);for(const[E,I]of Object.entries(M))((I==null?void 0:I.status)==="fulfilled"||(I==null?void 0:I.status)==="rejected")&&(C[E]=I)})}}),p=Pi({name:`${e}/mutations`,initialState:_f,reducers:{removeMutationResult:{reducer(b,{payload:C}){const T=Vd(C);T in b&&delete b[T]},prepare:gf()}},extraReducers(b){b.addCase(r.pending,(C,{meta:T,meta:{requestId:M,arg:E,startedTimeStamp:I}})=>{E.track&&(C[Vd(T)]={requestId:M,status:"pending",endpointName:E.endpointName,startedTimeStamp:I})}).addCase(r.fulfilled,(C,{payload:T,meta:M})=>{M.arg.track&&Uk(C,M,E=>{E.requestId===M.requestId&&(E.status="fulfilled",E.data=T,E.fulfilledTimeStamp=M.fulfilledTimeStamp)})}).addCase(r.rejected,(C,{payload:T,error:M,meta:E})=>{E.arg.track&&Uk(C,E,I=>{I.requestId===E.requestId&&(I.status="rejected",I.error=T??M)})}).addMatcher(a,(C,T)=>{const{mutations:M}=o(T);for(const[E,I]of Object.entries(M))((I==null?void 0:I.status)==="fulfilled"||(I==null?void 0:I.status)==="rejected")&&E!==(I==null?void 0:I.requestId)&&(C[E]=I)})}}),h=Pi({name:`${e}/invalidation`,initialState:_f,reducers:{updateProvidedBy:{reducer(b,C){var E,I;const{queryCacheKey:T,providedTags:M}=C.payload;for(const D of Object.values(b))for(const k of Object.values(D)){const O=k.indexOf(T);O!==-1&&k.splice(O,1)}for(const{type:D,id:k}of M){const O=(E=b[D]??(b[D]={}))[I=k||"__internal_without_id"]??(E[I]=[]);O.includes(T)||O.push(T)}},prepare:gf()}},extraReducers(b){b.addCase(d.actions.removeQueryResult,(C,{payload:{queryCacheKey:T}})=>{for(const M of Object.values(C))for(const E of Object.values(M)){const I=E.indexOf(T);I!==-1&&E.splice(I,1)}}).addMatcher(a,(C,T)=>{var E,I;const{provided:M}=o(T);for(const[D,k]of Object.entries(M))for(const[O,N]of Object.entries(k)){const $=(E=C[D]??(C[D]={}))[I=O||"__internal_without_id"]??(E[I]=[]);for(const z of N)$.includes(z)||$.push(z)}}).addMatcher(ha(vs(t),rm(t)),(C,T)=>{const M=_L(T,"providesTags",n,s),{queryCacheKey:E}=T.meta.arg;h.caseReducers.updateProvidedBy(C,h.actions.updateProvidedBy({queryCacheKey:E,providedTags:M}))})}}),v=Pi({name:`${e}/subscriptions`,initialState:_f,reducers:{updateSubscriptionOptions(b,C){},unsubscribeQueryResult(b,C){},internal_getRTKQSubscriptions(){}}}),g=Pi({name:`${e}/internalSubscriptions`,initialState:_f,reducers:{subscriptionsUpdated:{reducer(b,C){return $2(b,C.payload)},prepare:gf()}}}),x=Pi({name:`${e}/config`,initialState:{online:AY(),focused:IY(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(b,{payload:C}){b.middlewareRegistered=b.middlewareRegistered==="conflict"||i!==C?"conflict":!0}},extraReducers:b=>{b.addCase(jw,C=>{C.online=!0}).addCase(bL,C=>{C.online=!1}).addCase(Fw,C=>{C.focused=!0}).addCase(SL,C=>{C.focused=!1}).addMatcher(a,C=>({...C}))}}),y=Jg({queries:d.reducer,mutations:p.reducer,provided:h.reducer,subscriptions:g.reducer,config:x.reducer}),S=(b,C)=>y(c.match(C)?void 0:b,C),w={...x.actions,...d.actions,...v.actions,...g.actions,...p.actions,...h.actions,resetApiState:c};return{reducer:S,actions:w}}var Cl=Symbol.for("RTKQ/skipToken"),CL={status:"uninitialized"},Gk=up(CL,()=>{}),Yk=up(CL,()=>{});function WY({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=p=>Gk,i=p=>Yk;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:c,selectCachedArgsForQuery:d};function o(p){return{...p,...MY(p.status)}}function a(p){return p[t]}function s(p,h){return v=>{const g=e({queryArgs:v,endpointDefinition:h,endpointName:p});return r(v===Cl?n:S=>{var w,b;return((b=(w=a(S))==null?void 0:w.queries)==null?void 0:b[g])??Gk},o)}}function l(){return p=>{let h;return typeof p=="object"?h=Vd(p)??Cl:h=p,r(h===Cl?i:x=>{var y,S;return((S=(y=a(x))==null?void 0:y.mutations)==null?void 0:S[h])??Yk},o)}}function c(p,h){const v=p[t],g=new Set;for(const x of h.map(xS)){const y=v.provided[x.type];if(!y)continue;let S=(x.id!==void 0?y[x.id]:$k(Object.values(y)))??[];for(const w of S)g.add(w)}return $k(Array.from(g.values()).map(x=>{const y=v.queries[x];return y?[{queryCacheKey:x,endpointName:y.endpointName,originalArgs:y.originalArgs}]:[]}))}function d(p,h){return Object.values(p[t].queries).filter(v=>(v==null?void 0:v.endpointName)===h&&v.status!=="uninitialized").map(v=>v.originalArgs)}}var wu=WeakMap?new WeakMap:void 0,qk=({endpointName:e,queryArgs:t})=>{let r="";const n=wu==null?void 0:wu.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=No(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a,a));No(t)&&(wu==null||wu.set(t,i)),r=i}return`${e}(${r})`};function TL(...e){return function(r){const n=Ld(c=>{var d;return(d=r.extractRehydrationInfo)==null?void 0:d.call(r,c,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(c){let d=qk;if("serializeQueryArgs"in c.endpointDefinition){const p=c.endpointDefinition.serializeQueryArgs;d=h=>{const v=p(h);return typeof v=="string"?v:qk({...h,queryArgs:v})}}else r.serializeQueryArgs&&(d=r.serializeQueryArgs);return d(c)},tagTypes:[...r.tagTypes||[]]},o={endpointDefinitions:{},batch(c){c()},apiUid:zb(),extractRehydrationInfo:n,hasRehydrationInfo:Ld(c=>n(c)!=null)},a={injectEndpoints:l,enhanceEndpoints({addTagTypes:c,endpoints:d}){if(c)for(const p of c)i.tagTypes.includes(p)||i.tagTypes.push(p);if(d)for(const[p,h]of Object.entries(d))typeof h=="function"?h(o.endpointDefinitions[p]):Object.assign(o.endpointDefinitions[p]||{},h);return a}},s=e.map(c=>c.init(a,i,o));function l(c){const d=c.endpoints({query:p=>({...p,type:"query"}),mutation:p=>({...p,type:"mutation"})});for(const[p,h]of Object.entries(d)){if(c.overrideExisting!==!0&&p in o.endpointDefinitions){if(c.overrideExisting==="throw")throw new Error(gn(39));continue}o.endpointDefinitions[p]=h;for(const v of s)v.injectEndpoint(p,h)}return a}return a.injectEndpoints({endpoints:r.endpoints})}}function HY(e){for(let t in e)return!1;return!0}var VY=2147483647/1e3-1,UY=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:o,unsubscribeQueryResult:a}=t.internalActions,s=ha(a.match,r.fulfilled,r.rejected);function l(h){const v=i.currentSubscriptions[h];return!!v&&!HY(v)}const c={},d=(h,v,g)=>{var x;if(s(h)){const y=v.getState()[e],{queryCacheKey:S}=a.match(h)?h.payload:h.meta.arg;p(S,(x=y.queries[S])==null?void 0:x.endpointName,v,y.config)}if(t.util.resetApiState.match(h))for(const[y,S]of Object.entries(c))S&&clearTimeout(S),delete c[y];if(n.hasRehydrationInfo(h)){const y=v.getState()[e],{queries:S}=n.extractRehydrationInfo(h);for(const[w,b]of Object.entries(S))p(w,b==null?void 0:b.endpointName,v,y.config)}};function p(h,v,g,x){const y=n.endpointDefinitions[v],S=(y==null?void 0:y.keepUnusedDataFor)??x.keepUnusedDataFor;if(S===1/0)return;const w=Math.max(0,Math.min(S,VY));if(!l(h)){const b=c[h];b&&clearTimeout(b),c[h]=setTimeout(()=>{l(h)||g.dispatch(o({queryCacheKey:h})),delete c[h]},w*1e3)}}return d},GY=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:o,assertTagType:a,refetchQuery:s,internalState:l})=>{const{removeQueryResult:c}=o.internalActions,d=ha(vs(n),rm(n)),p=ha(vs(n,i),sc(n,i));let h=[];const v=(y,S)=>{d(y)?x(_L(y,"invalidatesTags",r,a),S):p(y)?x([],S):o.util.invalidateTags.match(y)&&x(Ww(y.payload,void 0,void 0,void 0,void 0,a),S)};function g(y){var S,w;for(const b in y.queries)if(((S=y.queries[b])==null?void 0:S.status)==="pending")return!0;for(const b in y.mutations)if(((w=y.mutations[b])==null?void 0:w.status)==="pending")return!0;return!1}function x(y,S){const w=S.getState(),b=w[e];if(h.push(...y),b.config.invalidationBehavior==="delayed"&&g(b))return;const C=h;if(h=[],C.length===0)return;const T=o.util.selectInvalidatedBy(w,C);t.batch(()=>{const M=Array.from(T.values());for(const{queryCacheKey:E}of M){const I=b.queries[E],D=l.currentSubscriptions[E]??{};I&&(Zu(D)===0?S.dispatch(c({queryCacheKey:E})):I.status!=="uninitialized"&&S.dispatch(s(I,E)))}})}return v},YY=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const o={},a=(h,v)=>{(r.internalActions.updateSubscriptionOptions.match(h)||r.internalActions.unsubscribeQueryResult.match(h))&&l(h.payload,v),(t.pending.match(h)||t.rejected.match(h)&&h.meta.condition)&&l(h.meta.arg,v),(t.fulfilled.match(h)||t.rejected.match(h)&&!h.meta.condition)&&s(h.meta.arg,v),r.util.resetApiState.match(h)&&d()};function s({queryCacheKey:h},v){const g=v.getState()[e],x=g.queries[h],y=i.currentSubscriptions[h];if(!x||x.status==="uninitialized")return;const{lowestPollingInterval:S,skipPollingIfUnfocused:w}=p(y);if(!Number.isFinite(S))return;const b=o[h];b!=null&&b.timeout&&(clearTimeout(b.timeout),b.timeout=void 0);const C=Date.now()+S;o[h]={nextPollTimestamp:C,pollingInterval:S,timeout:setTimeout(()=>{(g.config.focused||!w)&&v.dispatch(n(x,h)),s({queryCacheKey:h},v)},S)}}function l({queryCacheKey:h},v){const x=v.getState()[e].queries[h],y=i.currentSubscriptions[h];if(!x||x.status==="uninitialized")return;const{lowestPollingInterval:S}=p(y);if(!Number.isFinite(S)){c(h);return}const w=o[h],b=Date.now()+S;(!w||b<w.nextPollTimestamp)&&s({queryCacheKey:h},v)}function c(h){const v=o[h];v!=null&&v.timeout&&clearTimeout(v.timeout),delete o[h]}function d(){for(const h of Object.keys(o))c(h)}function p(h={}){let v=!1,g=Number.POSITIVE_INFINITY;for(let x in h)h[x].pollingInterval&&(g=Math.min(h[x].pollingInterval,g),v=h[x].skipPollingIfUnfocused||v);return{lowestPollingInterval:g,skipPollingIfUnfocused:v}}return a},qY=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:o}=r.internalActions,a=(l,c)=>{Fw.match(l)&&s(c,"refetchOnFocus"),jw.match(l)&&s(c,"refetchOnReconnect")};function s(l,c){const d=l.getState()[e],p=d.queries,h=i.currentSubscriptions;t.batch(()=>{for(const v of Object.keys(h)){const g=p[v],x=h[v];if(!x||!g)continue;(Object.values(x).some(S=>S[c]===!0)||Object.values(x).every(S=>S[c]===void 0)&&d.config[c])&&(Zu(x)===0?l.dispatch(o({queryCacheKey:v})):g.status!=="uninitialized"&&l.dispatch(n(g,v)))}})}return a},Xk=new Error("Promise never resolved before cacheEntryRemoved."),XY=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:o})=>{const a=Ux(n),s=Ux(i),l=vs(n,i),c={},d=(v,g,x)=>{const y=p(v);if(n.pending.match(v)){const S=x[t].queries[y],w=g.getState()[t].queries[y];!S&&w&&h(v.meta.arg.endpointName,v.meta.arg.originalArgs,y,g,v.meta.requestId)}else if(i.pending.match(v))g.getState()[t].mutations[y]&&h(v.meta.arg.endpointName,v.meta.arg.originalArgs,y,g,v.meta.requestId);else if(l(v)){const S=c[y];S!=null&&S.valueResolved&&(S.valueResolved({data:v.payload,meta:v.meta.baseQueryMeta}),delete S.valueResolved)}else if(e.internalActions.removeQueryResult.match(v)||e.internalActions.removeMutationResult.match(v)){const S=c[y];S&&(delete c[y],S.cacheEntryRemoved())}else if(e.util.resetApiState.match(v))for(const[S,w]of Object.entries(c))delete c[S],w.cacheEntryRemoved()};function p(v){return a(v)?v.meta.arg.queryCacheKey:s(v)?v.meta.arg.fixedCacheKey??v.meta.requestId:e.internalActions.removeQueryResult.match(v)?v.payload.queryCacheKey:e.internalActions.removeMutationResult.match(v)?Vd(v.payload):""}function h(v,g,x,y,S){const w=r.endpointDefinitions[v],b=w==null?void 0:w.onCacheEntryAdded;if(!b)return;let C={};const T=new Promise(O=>{C.cacheEntryRemoved=O}),M=Promise.race([new Promise(O=>{C.valueResolved=O}),T.then(()=>{throw Xk})]);M.catch(()=>{}),c[x]=C;const E=e.endpoints[v].select(w.type==="query"?g:x),I=y.dispatch((O,N,$)=>$),D={...y,getCacheEntry:()=>E(y.getState()),requestId:S,extra:I,updateCachedData:w.type==="query"?O=>y.dispatch(e.util.updateQueryData(v,g,O)):void 0,cacheDataLoaded:M,cacheEntryRemoved:T},k=b(g,D);Promise.resolve(k).catch(O=>{if(O!==Xk)throw O})}return d},KY=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=Fb(r,n),o=sc(r,n),a=vs(r,n),s={};return(c,d)=>{var p,h;if(i(c)){const{requestId:v,arg:{endpointName:g,originalArgs:x}}=c.meta,y=t.endpointDefinitions[g],S=y==null?void 0:y.onQueryStarted;if(S){const w={},b=new Promise((E,I)=>{w.resolve=E,w.reject=I});b.catch(()=>{}),s[v]=w;const C=e.endpoints[g].select(y.type==="query"?x:v),T=d.dispatch((E,I,D)=>D),M={...d,getCacheEntry:()=>C(d.getState()),requestId:v,extra:T,updateCachedData:y.type==="query"?E=>d.dispatch(e.util.updateQueryData(g,x,E)):void 0,queryFulfilled:b};S(x,M)}}else if(a(c)){const{requestId:v,baseQueryMeta:g}=c.meta;(p=s[v])==null||p.resolve({data:c.payload,meta:g}),delete s[v]}else if(o(c)){const{requestId:v,rejectedWithValue:g,baseQueryMeta:x}=c.meta;(h=s[v])==null||h.reject({error:c.payload??c.error,isUnhandledError:!g,meta:x}),delete s[v]}}},ZY=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t))},QY=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,o=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,l=(v,g)=>{var y,S,w;if(a.match(g)){const{queryCacheKey:b,requestId:C,options:T}=g.payload;return(y=v==null?void 0:v[b])!=null&&y[C]&&(v[b][C]=T),!0}if(s.match(g)){const{queryCacheKey:b,requestId:C}=g.payload;return v[b]&&delete v[b][C],!0}if(e.internalActions.removeQueryResult.match(g))return delete v[g.payload.queryCacheKey],!0;if(t.pending.match(g)){const{meta:{arg:b,requestId:C}}=g,T=v[S=b.queryCacheKey]??(v[S]={});return T[`${C}_running`]={},b.subscribe&&(T[C]=b.subscriptionOptions??T[C]??{}),!0}let x=!1;if(t.fulfilled.match(g)||t.rejected.match(g)){const b=v[g.meta.arg.queryCacheKey]||{},C=`${g.meta.requestId}_running`;x||(x=!!b[C]),delete b[C]}if(t.rejected.match(g)){const{meta:{condition:b,arg:C,requestId:T}}=g;if(b&&C.subscribe){const M=v[w=C.queryCacheKey]??(v[w]={});M[T]=C.subscriptionOptions??M[T]??{},x=!0}}return x},c=()=>r.currentSubscriptions,h={getSubscriptions:c,getSubscriptionCount:v=>{const x=c()[v]??{};return Zu(x)},isRequestSubscribed:(v,g)=>{var y;const x=c();return!!((y=x==null?void 0:x[v])!=null&&y[g])}};return(v,g)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(v))return i=r.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(v))return[!1,h];const x=l(r.currentSubscriptions,v);let y=!0;if(x){o||(o=setTimeout(()=>{const b=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,C]=oI(i,()=>b);g.next(e.internalActions.subscriptionsUpdated(C)),i=b,o=null},500));const S=typeof v.type=="string"&&!!v.type.startsWith(n),w=t.rejected.match(v)&&v.meta.condition&&!!v.meta.arg.subscribe;y=!S&&!w}return[y,!1]}};function JY(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:o}=i,a={invalidateTags:Cn(`${t}/invalidateTags`)},s=p=>p.type.startsWith(`${t}/`),l=[ZY,UY,GY,YY,XY,KY];return{middleware:p=>{let h=!1;const g={...e,internalState:{currentSubscriptions:{}},refetchQuery:d,isThisApiSliceAction:s},x=l.map(w=>w(g)),y=QY(g),S=qY(g);return w=>b=>{if(!QA(b))return w(b);h||(h=!0,p.dispatch(n.internalActions.middlewareRegistered(o)));const C={...p,next:w},T=p.getState(),[M,E]=y(b,C,T);let I;if(M?I=w(b):I=E,p.getState()[t]&&(S(b,C,T),s(b)||i.hasRehydrationInfo(b)))for(let D of x)D(b,C,T);return I}},actions:a};function d(p,h,v={}){return r({type:"query",endpointName:p.endpointName,originalArgs:p.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:h,...v})}}function Ua(e,...t){return Object.assign(e,...t)}var Kk=Symbol(),ML=({createSelector:e=$b}={})=>({name:Kk,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:o,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:d},p){UB();const h=V=>V;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:jw,onOffline:bL,onFocus:Fw,onFocusLost:SL},util:{}});const{queryThunk:v,mutationThunk:g,patchQueryData:x,updateQueryData:y,upsertQueryData:S,prefetch:w,buildMatchThunkActions:b}=FY({baseQuery:r,reducerPath:i,context:p,api:t,serializeQueryArgs:o,assertTagType:h}),{reducer:C,actions:T}=jY({context:p,queryThunk:v,mutationThunk:g,reducerPath:i,assertTagType:h,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:i,invalidationBehavior:d}});Ua(t.util,{patchQueryData:x,updateQueryData:y,upsertQueryData:S,prefetch:w,resetApiState:T.resetApiState}),Ua(t.internalActions,T);const{middleware:M,actions:E}=JY({reducerPath:i,context:p,queryThunk:v,mutationThunk:g,api:t,assertTagType:h});Ua(t.util,E),Ua(t,{reducer:C,middleware:M});const{buildQuerySelector:I,buildMutationSelector:D,selectInvalidatedBy:k,selectCachedArgsForQuery:O}=WY({serializeQueryArgs:o,reducerPath:i,createSelector:e});Ua(t.util,{selectInvalidatedBy:k,selectCachedArgsForQuery:O});const{buildInitiateQuery:N,buildInitiateMutation:$,getRunningMutationThunk:z,getRunningMutationsThunk:F,getRunningQueriesThunk:j,getRunningQueryThunk:K}=zY({queryThunk:v,mutationThunk:g,api:t,serializeQueryArgs:o,context:p});return Ua(t.util,{getRunningMutationThunk:z,getRunningMutationsThunk:F,getRunningQueryThunk:K,getRunningQueriesThunk:j}),{name:Kk,injectEndpoint(V,H){var W;const Y=t;(W=Y.endpoints)[V]??(W[V]={}),wL(H)?Ua(Y.endpoints[V],{name:V,select:I(V,H),initiate:N(V,H)},b(v,V)):NY(H)&&Ua(Y.endpoints[V],{name:V,select:D(),initiate:$(V)},b(g,V))}}}});ML();function eq(e){return e.type==="query"}function tq(e){return e.type==="mutation"}function nv(e,...t){return Object.assign(e,...t)}function v1(e){return e.replace(e[0],e[0].toUpperCase())}var _u=WeakMap?new WeakMap:void 0,rq=({endpointName:e,queryArgs:t})=>{let r="";const n=_u==null?void 0:_u.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=No(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a,a));No(t)&&(_u==null||_u.set(t,i)),r=i}return`${e}(${r})`},g1=Symbol();function Zk(e,t,r,n){const i=L.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),o=L.useRef(i);return L.useEffect(()=>{o.current.serialized!==i.serialized&&(o.current=i)},[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}function m1(e){const t=L.useRef(e);return L.useEffect(()=>{us(t.current,e)||(t.current=e)},[e]),us(t.current,e)?t.current:e}var nq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iq=nq(),oq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",aq=oq(),sq=()=>iq||aq?L.useLayoutEffect:L.useEffect,lq=sq(),uq=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:yL.pending}:e;function cq({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:o,createSelector:a},serializeQueryArgs:s,context:l}){const c=o?g=>g():L.useEffect;return{buildQueryHooks:h,buildMutationHook:v,usePrefetch:p};function d(g,x,y){if(x!=null&&x.endpointName&&g.isUninitialized){const{endpointName:M}=x,E=l.endpointDefinitions[M];s({queryArgs:x.originalArgs,endpointDefinition:E,endpointName:M})===s({queryArgs:y,endpointDefinition:E,endpointName:M})&&(x=void 0)}let S=g.isSuccess?g.data:x==null?void 0:x.data;S===void 0&&(S=g.data);const w=S!==void 0,b=g.isLoading,C=(!x||x.isLoading||x.isUninitialized)&&!w&&b,T=g.isSuccess||b&&w;return{...g,data:S,currentData:g.data,isFetching:b,isLoading:C,isSuccess:T}}function p(g,x){const y=r(),S=m1(x);return L.useCallback((w,b)=>y(e.util.prefetch(g,w,{...S,...b})),[g,y,S])}function h(g){const x=(w,{refetchOnReconnect:b,refetchOnFocus:C,refetchOnMountOrArgChange:T,skip:M=!1,pollingInterval:E=0,skipPollingIfUnfocused:I=!1}={})=>{const{initiate:D}=e.endpoints[g],k=r(),O=L.useRef(void 0);if(!O.current){const Y=k(e.internalActions.internal_getRTKQSubscriptions());O.current=Y}const N=Zk(M?Cl:w,rq,l.endpointDefinitions[g],g),$=m1({refetchOnReconnect:b,refetchOnFocus:C,pollingInterval:E,skipPollingIfUnfocused:I}),z=L.useRef(!1),F=L.useRef(void 0);let{queryCacheKey:j,requestId:K}=F.current||{},V=!1;j&&K&&(V=O.current.isRequestSubscribed(j,K));const H=!V&&z.current;return c(()=>{z.current=V}),c(()=>{H&&(F.current=void 0)},[H]),c(()=>{var q;const Y=F.current;if(N===Cl){Y==null||Y.unsubscribe(),F.current=void 0;return}const W=(q=F.current)==null?void 0:q.subscriptionOptions;if(!Y||Y.arg!==N){Y==null||Y.unsubscribe();const te=k(D(N,{subscriptionOptions:$,forceRefetch:T}));F.current=te}else $!==W&&Y.updateSubscriptionOptions($)},[k,D,T,N,$,H]),L.useEffect(()=>()=>{var Y;(Y=F.current)==null||Y.unsubscribe(),F.current=void 0},[]),L.useMemo(()=>({refetch:()=>{var Y;if(!F.current)throw new Error(gn(38));return(Y=F.current)==null?void 0:Y.refetch()}}),[])},y=({refetchOnReconnect:w,refetchOnFocus:b,pollingInterval:C=0,skipPollingIfUnfocused:T=!1}={})=>{const{initiate:M}=e.endpoints[g],E=r(),[I,D]=L.useState(g1),k=L.useRef(void 0),O=m1({refetchOnReconnect:w,refetchOnFocus:b,pollingInterval:C,skipPollingIfUnfocused:T});c(()=>{var F,j;const z=(F=k.current)==null?void 0:F.subscriptionOptions;O!==z&&((j=k.current)==null||j.updateSubscriptionOptions(O))},[O]);const N=L.useRef(O);c(()=>{N.current=O},[O]);const $=L.useCallback(function(z,F=!1){let j;return t(()=>{var K;(K=k.current)==null||K.unsubscribe(),k.current=j=E(M(z,{subscriptionOptions:N.current,forceRefetch:!F})),D(z)}),j},[E,M]);return L.useEffect(()=>()=>{var z;(z=k==null?void 0:k.current)==null||z.unsubscribe()},[]),L.useEffect(()=>{I!==g1&&!k.current&&$(I,!0)},[I,$]),L.useMemo(()=>[$,I],[$,I])},S=(w,{skip:b=!1,selectFromResult:C}={})=>{const{select:T}=e.endpoints[g],M=Zk(b?Cl:w,s,l.endpointDefinitions[g],g),E=L.useRef(void 0),I=L.useMemo(()=>a([T(M),($,z)=>z,$=>M],d,{memoizeOptions:{resultEqualityCheck:us}}),[T,M]),D=L.useMemo(()=>C?a([I],C,{devModeChecks:{identityFunctionCheck:"never"}}):I,[I,C]),k=n($=>D($,E.current),us),O=i(),N=I(O.getState(),E.current);return lq(()=>{E.current=N},[N]),k};return{useQueryState:S,useQuerySubscription:x,useLazyQuerySubscription:y,useLazyQuery(w){const[b,C]=y(w),T=S(C,{...w,skip:C===g1}),M=L.useMemo(()=>({lastArg:C}),[C]);return L.useMemo(()=>[b,T,M],[b,T,M])},useQuery(w,b){const C=x(w,b),T=S(w,{selectFromResult:w===Cl||b!=null&&b.skip?void 0:uq,...b}),{data:M,status:E,isLoading:I,isSuccess:D,isError:k,error:O}=T;return L.useDebugValue({data:M,status:E,isLoading:I,isSuccess:D,isError:k,error:O}),L.useMemo(()=>({...T,...C}),[T,C])}}}function v(g){return({selectFromResult:x,fixedCacheKey:y}={})=>{const{select:S,initiate:w}=e.endpoints[g],b=r(),[C,T]=L.useState();L.useEffect(()=>()=>{C!=null&&C.arg.fixedCacheKey||C==null||C.reset()},[C]);const M=L.useCallback(function(W){const q=b(w(W,{fixedCacheKey:y}));return T(q),q},[b,w,y]),{requestId:E}=C||{},I=L.useMemo(()=>S({fixedCacheKey:y,requestId:C==null?void 0:C.requestId}),[y,C,S]),D=L.useMemo(()=>x?a([I],x):I,[x,I]),k=n(D,us),O=y==null?C==null?void 0:C.arg.originalArgs:void 0,N=L.useCallback(()=>{t(()=>{C&&T(void 0),y&&b(e.internalActions.removeMutationResult({requestId:E,fixedCacheKey:y}))})},[b,y,C,E]),{endpointName:$,data:z,status:F,isLoading:j,isSuccess:K,isError:V,error:H}=k;L.useDebugValue({endpointName:$,data:z,status:F,isLoading:j,isSuccess:K,isError:V,error:H});const Y=L.useMemo(()=>({...k,originalArgs:O,reset:N}),[k,O,N]);return L.useMemo(()=>[M,Y],[M,Y])}}}var fq=Symbol(),dq=({batch:e=Rz,hooks:t={useDispatch:TI,useSelector:gI,useStore:CI},createSelector:r=$b,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:fq,init(o,{serializeQueryArgs:a},s){const l=o,{buildQueryHooks:c,buildMutationHook:d,usePrefetch:p}=cq({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:a,context:s});return nv(l,{usePrefetch:p}),nv(s,{batch:e}),{injectEndpoint(h,v){if(eq(v)){const{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:y,useQueryState:S,useQuerySubscription:w}=c(h);nv(l.endpoints[h],{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:y,useQueryState:S,useQuerySubscription:w}),o[`use${v1(h)}Query`]=g,o[`useLazy${v1(h)}Query`]=x}else if(tq(v)){const g=d(h);nv(l.endpoints[h],{useMutation:g}),o[`use${v1(h)}Mutation`]=g}}}}}),pq=TL(ML(),dq());const hq=(e,t,r)=>OY(window.baseUrl?{baseUrl:window.baseUrl,credentials:"include"}:void 0)(e,t,r),Cg=pq({baseQuery:hq,endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:yl}),getTasks:e.query({query:()=>"tasks",transformResponse:yl}),getExceptions:e.query({query:()=>"exceptions",transformResponse:yl}),getLogs:e.query({query:()=>"logs",transformResponse:yl}),getWorkerCount:e.query({query:()=>"worker-count",transformResponse:yl}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:SY(rM(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:rM(t)})}),resetStats:e.mutation({query:()=>({url:"stats/reset",method:"GET"})}),stopSwarm:e.mutation({query:()=>({url:"stop",method:"GET"})})})}),{useGetStatsQuery:vq,useGetTasksQuery:gq,useGetExceptionsQuery:mq,useGetLogsQuery:yq,useGetWorkerCountQuery:xq,useStartSwarmMutation:Sq,useUpdateUserSettingsMutation:bq,useStopSwarmMutation:wq,useResetStatsMutation:_q}=Cg;function wp(e,{payload:t}){return xY(e,t)}const Cq=Io,kL=Pi({name:"swarm",initialState:Cq,reducers:{setSwarm:wp}}),Pm=kL.actions,Tq=kL.reducer;function Mq({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return P.jsx(mL,{onSubmit:r,children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[P.jsx(Xe,{children:`${t.userClassName} Settings`}),P.jsx($w,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([o,a])=>P.jsx(El,{defaultValue:a,inputProps:{"data-type":typeof a=="number"?"number":"text"},label:qx(o),name:o},`user-to-edit-${o}`)),P.jsx(ci,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function kq({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:o}){const[a,s]=L.useState(!1),[l,c]=L.useState(),[d]=bq(),p=y=>{l&&(i({users:{...o,[l.userClassName]:y}}),d({...y,userClassName:l.userClassName}),s(!1))},h=y=>()=>r.includes(y)?n(r.filter(S=>S!==y)):n(r.concat(y)),v=r.length,g=e.length,x=y=>y.target.checked?n(e):n([]);return P.jsxs(P.Fragment,{children:[P.jsx(tt,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:P.jsxs(tt,{sx:{maxHeight:"30vh",overflow:"auto"},children:[P.jsx(Cm,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),P.jsx(qD,{children:P.jsx(aL,{component:ji,children:P.jsxs(iL,{children:[P.jsx(sL,{children:P.jsx(_g,{children:P.jsx(Sl,{colSpan:4,padding:"checkbox",children:P.jsx(vS,{checked:g>0&&v===g,indeterminate:v>0&&v<g,onChange:x})})})}),P.jsx(oL,{children:Object.entries(o).map(([y,S])=>P.jsxs(_g,{hover:!0,children:[P.jsx(Sl,{onClick:h(y),padding:"checkbox",children:P.jsx(vS,{checked:r.includes(y)})}),P.jsx(Sl,{children:y}),P.jsx(Sl,{children:P.jsx(Xe,{variant:"subtitle2",children:S.host})}),P.jsx(Sl,{align:"right",children:P.jsx(ba,{onClick:()=>{s(!a),c({userClass:S,userClassName:y})},children:P.jsx(sY,{})})})]},`user-class-${y}`))})]})})})]})}),P.jsx(km,{onClose:()=>s(!1),open:a,children:l&&P.jsx(Mq,{availableTasks:t[l.userClassName],handleEditUser:p,userToEdit:l})})]})}const Rq={setSwarm:Pm.setSwarm},Pq=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Eq=di(Pq,Rq)(kq);function Aq(){const[e,t]=L.useState({}),[r,n]=L.useState(!0),i=(a,s,l,{onlyDelete:c}={onlyDelete:!1})=>{const d={...e};let p;const h=l.match&&Array.isArray(l.match)&&l.match.find(({pattern:v})=>!new RegExp(v).test(s));l.minLength&&s.length<l.minLength?p=`Please enter at least ${l.minLength} characters`:h?p=h.message||"Invalid format":l.match&&!Array.isArray(l.match)&&!new RegExp(l.match.pattern).test(s)?p=l.match.message||"Invalid format":delete d[a],p&&!c&&(d[a]=p),t(d),n(Object.keys(d).length===0)};return{register:(a,s,l="onChange")=>({...e[a]&&s.level?{color:s.level,focused:!0,FormHelperTextProps:{sx:{color:d=>d.palette.warning.main}}}:{},name:a,onChange:({target:{value:d}})=>i(a,d,s,{onlyDelete:!0}),[l]:({target:{value:d}})=>i(a,d,s),error:!!e[a]&&!s.level,helperText:e[a]||""}),isValid:r}}const Iq=/^(?:[a-zA-Z][a-zA-Z\d+\-.]*):\/\/[^\s/$.?#].[^\s]*$/,Dq=({isDisabled:e,isDistributed:t,workerCount:r})=>e?{isFormDisabled:!0}:t&&!r?{isFormDisabled:!0,reason:"You can't start a distributed test before at least one worker processes has connected"}:{};function Lq({allProfiles:e,availableShapeClasses:t,availableUserClasses:r,host:n,extraOptions:i,hideCommonOptions:o,shapeUseCommonOptions:a,numUsers:s,userCount:l,overrideHostWarning:c,missingHostWarning:d,profile:p,runTime:h,setSwarm:v,showUserclassPicker:g,spawnRate:x,alert:y,isDisabled:S=!1,isEditSwarm:w=!1,isHostRequired:b,onFormChange:C,onFormSubmit:T,advancedOptions:M}){const[E]=Sq(),[I,D]=L.useState(""),[k,O]=L.useState(r),N=kn(({swarm:H})=>H),{register:$}=Aq(),{reason:z,isFormDisabled:F}=L.useMemo(()=>Dq({isDisabled:S,...N}),[S,N]),j=async H=>{const{data:Y}=await E({...H,...g&&k?{userClasses:k}:{}});Y&&Y.success?v({state:Jr.RUNNING,host:H.host||n,runTime:H.runTime,spawnRate:H.spawnRate,userCount:H.userCount,profile:H.profile}):D(Y?Y.message:"An unknown error occured."),T&&T(H)},K=H=>{I&&D(""),C&&C(H)},V=H=>{if(!a){const Y=H.target.value!==t[0];v({hideCommonOptions:Y})}};return P.jsxs(bp,{maxWidth:"md",sx:{my:2},children:[P.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:w?"Edit running load test":"Start new load test"}),!w&&g&&P.jsx(tt,{marginBottom:2,marginTop:2,children:P.jsx(Eq,{availableUserClasses:r,selectedUserClasses:k,setSelectedUserClasses:O})}),P.jsx(mL,{onChange:K,onSubmit:j,children:P.jsxs(tt,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[!w&&g&&P.jsx($w,{label:"Shape Class",name:"shapeClass",onChange:V,options:t}),P.jsx(Bk,{defaultValue:o&&"0"||l||s||1,disabled:!!o,label:"Number of users (peak concurrency)",name:"userCount",required:!0,title:o?"Disabled for tests using LoadTestShape class":""}),P.jsx(Bk,{defaultValue:o&&"0"||x||1,disabled:!!o,label:"Ramp up (users started/second)",name:"spawnRate",required:!0,title:o?"Disabled for tests using LoadTestShape class":""}),!w&&P.jsxs(P.Fragment,{children:[P.jsx(El,{...$("host",{match:{pattern:Iq,message:"Please use a valid url format e.g. https://google.com"},level:"warning"},"onBlur"),defaultValue:n,label:`Host ${c?"(setting this will override the host for the User classes)":""}`,name:"host",required:b}),P.jsxs(vw,{children:[P.jsx(mw,{expandIcon:P.jsx(Ow,{}),children:P.jsx(Xe,{children:"Advanced options"})}),P.jsx(gw,{children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[P.jsx(El,{defaultValue:h,disabled:!!o,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"},title:o?"Disabled for tests using LoadTestShape class":""}),P.jsx(NW,{defaultValue:p,disablePortal:!0,freeSolo:!0,options:e&&Array.isArray(e)?e:[],renderInput:H=>P.jsx(El,{...H,defaultValue:p,label:"Profile",name:"profile"})}),M&&M.map(({component:H,...Y},W)=>H?P.jsx(H,{...Y}):L.createElement(zw,{...Y,key:`advanced-parameter-${W}`}))]})})]})]}),!!i&&!gL(i)&&P.jsx(TY,{extraOptions:i}),y&&!I&&P.jsx(ua,{severity:y.level||"info",children:y.message}),(I||z)&&P.jsx(ua,{severity:"error",children:I||z}),!b&&d&&P.jsx(ua,{severity:"info",children:"One or more User class in your locustfile has no host attribute set. Please provide one in the field above."}),P.jsx(ci,{disabled:F,size:"large",type:"submit",variant:"contained",children:w?"Update":"Start"})]})})]})}const Oq=({swarm:{allProfiles:e,availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:o,host:a,numUsers:s,userCount:l,overrideHostWarning:c,missingHostWarning:d,isHostRequired:p,profile:h,runTime:v,spawnRate:g,showUserclassPicker:x}},y)=>({allProfiles:e||(y==null?void 0:y.allProfiles),availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:o,host:a,overrideHostWarning:c,missingHostWarning:d,isHostRequired:p,profile:h,showUserclassPicker:x,numUsers:s,userCount:l,runTime:v,spawnRate:g}),Nq={setSwarm:Pm.setSwarm},Hw=di(Oq,Nq)(Lq);function Bq(e){const[t,r]=L.useState(!1),{hideCommonOptions:n}=kn(({swarm:i})=>i);return P.jsxs(P.Fragment,{children:[P.jsx(rL,{title:n?"Disabled for tests using LoadTestShape class":"",children:P.jsx(tt,{children:P.jsx(ci,{color:"secondary",disabled:!!n,onClick:()=>r(!0),sx:{minHeight:"100%"},type:"button",variant:"contained",children:"Edit"})})}),P.jsx(km,{onClose:()=>r(!1),open:t,children:P.jsx(Hw,{...e,isEditSwarm:!0,onFormSubmit:()=>r(!1)})})]})}function $q(e){const[t,r]=L.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(ci,{color:"success",onClick:()=>r(!0),type:"button",variant:"contained",children:"New"}),P.jsx(km,{onClose:()=>r(!1),open:t,children:P.jsx(Hw,{...e})})]})}function zq(){const[e]=_q(),t=()=>{e()};return P.jsx(ci,{color:"warning",onClick:t,type:"button",variant:"contained",children:"Reset"})}function Fq(){const[e,t]=L.useState(!1),[r]=wq();L.useEffect(()=>{t(!1)},[]);const n=()=>{r(),t(!0)};return P.jsx(ci,{color:"error",disabled:e,onClick:n,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Qk(){const e=kn(({swarm:t})=>t.state);return e===Jr.READY?null:P.jsxs(tt,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===Jr.STOPPED?P.jsx($q,{}):P.jsxs(P.Fragment,{children:[P.jsx(Bq,{}),P.jsx(Fq,{})]}),P.jsx(zq,{})]})}function jq(){const e=Fo(),[t,r]=L.useState(!1);L.useEffect(()=>{const i=()=>{window.innerWidth>=e.breakpoints.values.md&&r(!1)};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[]);const n=i=>()=>{r(i)};return P.jsxs(P.Fragment,{children:[P.jsx(N9,{position:"static",children:P.jsx(bp,{maxWidth:"xl",children:P.jsxs(RG,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[P.jsx(fn,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:P.jsx(lL,{})}),P.jsx(ba,{"aria-label":"menu",color:"inherit",edge:"start",onClick:n(!0),sx:{display:{xs:"block",md:"none"}},children:P.jsx(aY,{})}),P.jsxs(tt,{sx:{display:{xs:"none",md:"flex"},columnGap:{md:2,lg:6}},children:[P.jsx(Nk,{}),P.jsx(Qk,{}),P.jsx(yS,{})]})]})})}),P.jsx(nV,{anchor:"right",onClose:n(!1),open:t,children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",columnGap:{md:2,lg:6},rowGap:2,p:2,maxWidth:"100vw"},children:[P.jsx(tt,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(yS,{})}),P.jsx(Qk,{}),P.jsx(Nk,{})]})})]})}function Wq({children:e}){return P.jsxs(P.Fragment,{children:[P.jsxs(tt,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[P.jsx(jq,{}),P.jsx("main",{children:e})]}),P.jsx(yY,{})]})}const RL=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),PL="logViewer";function _p(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=L.useRef(e);L.useEffect(()=>{i.current=e},[e]),L.useEffect(()=>{if(!r)return;n&&i.current();const o=setInterval(()=>i.current(),t);return()=>{clearInterval(o)}},[t,r])}const Hq={},EL=Pi({name:"notification",initialState:Hq,reducers:{setNotification:wp}}),AL=EL.actions,Vq=EL.reducer;function Uq(e,{key:t,shouldNotify:r}){const n=To(AL.setNotification),i=kn(({url:{query:a}})=>a&&a.tab),o=`${t}Notification`;L.useEffect(()=>{e.length>0&&e.length<localStorage[o]&&(localStorage[o]=e.length),e.length>(localStorage[o]||0)&&(!i||i!==t)&&(!r||r&&r(o))&&(n({[t]:!0}),localStorage[o]=e.length)},[e])}const Gq={master:[],workers:{}},IL=Pi({name:"logViewer",initialState:Gq,reducers:{setLogs:wp}}),Yq=IL.actions,qq=IL.reducer,DL=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?DL(r):r),[]),Xq={master:[],workers:{}};function Kq(){const e=kn(({swarm:l})=>l),t=To(Yq.setLogs),{data:r,refetch:n}=yq(),i=r||Xq,o=L.useMemo(()=>DL(Object.values(i.workers)),[i.workers]),a=L.useMemo(()=>[...i.master].concat(o),[i.master,i.workers]),s=L.useCallback(l=>a.slice(localStorage[l]).some(RL),[a]);return _p(n,5e3,{shouldRunInterval:e.state===Jr.SPAWNING||e.state==Jr.RUNNING}),Uq(a,{key:PL,shouldNotify:s}),L.useEffect(()=>{t(i)},[i]),i}function Zq(e,t){const r=t?-1:1;return function(n,i){const o=n[e],a=i[e];return o<a?r*-1:o>a?r*1:0}}function Qq(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=L.useState(e),[o,a]=L.useState(!1),s=L.useRef(),l=d=>{const h=(t?e.slice(0,-1):[...e]).sort(Zq(d,d===s.current&&!o));i(t?[...h,...e.slice(-1)]:h)},c=L.useCallback(d=>{s.current||(s.current=r);const p=d.target.getAttribute("data-sortkey");if(p===s.current)if(o){a(!1),s.current=void 0,l(r);return}else a(!0);else o&&a(!1);l(p),s.current=p},[s,e,o]);return L.useEffect(()=>{e.length?l(s.current||r):l.length&&i(e)},[e]),{onTableHeadClick:c,sortedRows:n,currentSortField:s.current}}const Jf=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Jq({content:e,formatter:t,round:r}){return t?t(e):r?Jf(e,r):e}function Cp({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:o,currentSortField:a}=Qq(e,{hasTotalRow:r,defaultSortKey:n});return P.jsx(aL,{component:ji,children:P.jsxs(iL,{children:[P.jsx(sL,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:P.jsx(_g,{children:t.map(({title:s,key:l})=>P.jsx(Sl,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:a===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),P.jsx(oL,{children:o.map((s,l)=>P.jsx(_g,{children:t.map(({key:c,...d},p)=>P.jsx(Sl,{children:P.jsx(Jq,{content:s[c],...d})},`table-row=${p}`))},`${s.name}-${l}`))})]})})}function eX({rows:e,tableStructure:t}){return t?P.jsx(Cp,{rows:e,structure:t}):null}const tX=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:o})=>o===r.tab),i=r&&r.tab&&t&&t.find(({key:o})=>o===r.tab);return{tableStructure:n?n.structure.map(({key:o,...a})=>({key:kI(o),...a})):null,rows:i?i.data:[]}},rX=di(tX)(eX),nX=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message"},{key:"traceback",title:"Traceback"}];function iX({exceptions:e}){return P.jsx(Cp,{rows:e,structure:nX})}const oX=({ui:{exceptions:e}})=>({exceptions:e}),aX=di(oX)(iX),sX={totalRps:0,failRatio:0,startTime:"",stats:[],errors:[],exceptions:[],charts:(Io.history||[]).reduce(Rm,{}),ratios:{},userCount:0};var XA;const lX=(XA=Io.percentilesToChart)==null?void 0:XA.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),uX=e=>Rm(e,{...lX,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),LL=Pi({name:"ui",initialState:sX,reducers:{setUi:wp,updateCharts:(e,{payload:t})=>({...e,charts:Rm(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...uX(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[(e.charts.time||[""])[0],t]}})}}),vd=LL.actions,cX=LL.reducer;function fX(){const{data:e,refetch:t}=mq(),r=To(vd.setUi),n=kn(({swarm:o})=>o.state),i=n===Jr.SPAWNING||n==Jr.RUNNING;L.useEffect(()=>{e&&r({exceptions:e.exceptions})},[e]),_p(t,5e3,{shouldRunInterval:i,immediate:!0})}function dX(){return fX(),P.jsx(aX,{})}const pX=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message"}];function hX({errors:e}){return P.jsx(Cp,{rows:e,structure:pX})}const vX=({ui:{errors:e}})=>({errors:e}),gX=di(vX)(hX),Jk=.5,mX=()=>{const[e,t]=L.useState(!1),r=L.useRef(null);return L.useEffect(()=>{const n=new IntersectionObserver(([i])=>{i.isIntersecting&&t(!0)},{threshold:Jk});return r.current&&n.observe(r.current),()=>{r.current&&n.unobserve(r.current)}},[Jk]),{isVisible:e,elementRef:r}};function Cf({children:e,sx:t}){const{isVisible:r,elementRef:n}=mX();return P.jsx(tt,{ref:n,sx:{...t,opacity:r?1:0,transition:"opacity 1s ease-out"},children:e})}function y1({tierName:e,price:t,features:r,recommended:n,ctaText:i,href:o}){return P.jsxs(rH,{sx:{flex:1,border:n?2:void 0,borderColor:n?"primary.main":void 0,position:"relative",overflow:"visible"},children:[n&&P.jsx(tt,{sx:{position:"absolute",top:-12,left:24,bgcolor:"primary.main",color:"white",px:2,py:.5,borderRadius:1,fontSize:"0.875rem",fontWeight:"bold"},children:"Recommended"}),P.jsxs(aH,{sx:{p:4,pt:5},children:[P.jsxs(tt,{sx:{height:{md:"120px"}},children:[P.jsx(Xe,{component:"h2",sx:{fontWeight:"bold",mb:2},variant:"h5",children:e}),t&&P.jsxs(tt,{sx:{display:"flex",alignItems:"baseline",gap:.5,mb:2},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},variant:"h4",children:t}),P.jsx(Xe,{color:"text.secondary",variant:"body1",children:"/month"})]})]}),P.jsx(Ew,{sx:{mb:4},children:r.map(({title:a,description:s,icon:l},c)=>P.jsxs(ml,{sx:{height:74},children:[P.jsx(iU,{sx:{minWidth:40},children:l}),P.jsx(lU,{primary:P.jsx(Xe,{sx:{fontWeight:"medium"},variant:"body1",children:a}),secondary:s})]},`pricing-${a}-${c}`))}),n?P.jsx(ci,{href:o,size:"large",sx:{width:"100%",mt:"auto",px:4,py:1.5,textTransform:"none",backgroundImage:"linear-gradient(to right, #15803d, oklch(62.7% 0.194 149.214))"},variant:"contained",children:i}):P.jsx(ci,{href:o,size:"large",sx:{width:"100%",mt:"auto",px:4,py:1.5,textTransform:"none",color:a=>a.palette.text.primary,border:a=>`1px solid ${a.palette.text.primary}`},variant:"outlined",children:i})]})]})}const yX=[{icon:P.jsx(Lw,{}),title:"200 VUh per month",description:""},{icon:P.jsx(Nw,{}),title:"Up to 100 Virtual Users",description:""},{icon:P.jsx(Bw,{}),title:"Distributed Tests",description:"Get access to up to 2 workers"},{icon:P.jsx(oY,{}),title:"No Credit Card Required, no Trial Clock",description:"Free load testing, no strings attached!"},{}],xX=[{icon:P.jsx(Lw,{}),title:"5,000 VUh per month",description:"Enough capacity to run bigger tests, or smaller tests several times per month"},{icon:P.jsx(Nw,{}),title:"Up to 1,000 Virtual Users",description:"Simulate real world load with more virtual users"},{icon:P.jsx(Bw,{}),title:"Distributed Tests",description:"Get access to up to 4 workers"},{icon:P.jsx(uL,{}),title:"Teams",description:"Up to 5 users"},{icon:P.jsx(fL,{}),title:"Priority Support",description:"Get help faster with dedicated support channels"}],SX=[{icon:P.jsx(Lw,{}),title:"Up to 5 million VUh per month",description:"Any capacity you need, we can provide"},{icon:P.jsx(Nw,{}),title:"Up to 1 million Virtual Users",description:"Prepare your system to handle load of any size"},{icon:P.jsx(Bw,{}),title:"Distributed Tests",description:"No limits on the number of workers"},{icon:P.jsx(uL,{}),title:"Teams",description:"Unlimited users"},{icon:P.jsx(fL,{}),title:"Priority Support",description:"Get help faster and receive consultation hours for building your locust test scripts"}];function bX(){return P.jsxs(tt,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:4,m:6},children:[P.jsx(y1,{ctaText:"Join for Free",features:yX,href:"https://auth.locust.cloud/signup",price:"$0",tierName:"Free"}),P.jsx(y1,{ctaText:"Get Started",features:xX,href:"https://auth.locust.cloud/signup?plan=premium",price:"$399",recommended:!0,tierName:"Premium"}),P.jsx(y1,{ctaText:"Request a consultation",features:SX,href:"https://www.locust.cloud/get-started?plan=unlimited",tierName:"Unlimited"})]})}function wX(){const e=kn(({theme:{isDarkMode:t}})=>t);return P.jsxs(tt,{sx:{mt:6},children:[P.jsxs(Cf,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:2},children:[P.jsxs(tt,{sx:{display:"flex",alignItems:"center",justifyContent:"center",columnGap:1,rowGap:4},children:[P.jsx(Xe,{component:"h2",sx:{textAlign:"center",fontWeight:"bold"},variant:"h4",children:"Power Up Your"}),P.jsx(Xe,{component:"h2",sx:{fontWeight:"bold",color:"rgb(22, 163, 74)"},variant:"h4",children:"Locust"})]}),P.jsx(Xe,{sx:{color:e?"#fff":Xx[700],textAlign:"center"},variant:"h6",children:"Load testing is hard. Let us take care of the heavy lifting. With Locust Cloud you'll be ready to run distributed load tests in minutes."}),P.jsx(tt,{sx:{display:"flex",columnGap:1},children:P.jsx(ci,{endIcon:P.jsx(tY,{}),href:"https://auth.locust.cloud/signup",sx:{textTransform:"none",px:12,py:1,borderRadius:2,backgroundColor:"rgb(22, 163, 74)"},variant:"contained",children:"Start Free Trial"})})]}),P.jsxs(Cf,{sx:{display:"flex",flexDirection:"column",my:6,p:{sm:4,md:12},backgroundColor:e?Xx[900]:hl[50]},children:[P.jsxs(tt,{sx:{textAlign:"center",mb:4},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},variant:"h4",children:"Your Locustfile. Our Cloud."}),P.jsx(Xe,{variant:"subtitle1",children:"Running locust cloud couldn't be easier. Simply upload your locustfile and you're off to the races."})]}),P.jsx(tt,{children:P.jsx("img",{src:"/assets/terminal.gif",width:"100%"})})]}),P.jsxs(Cf,{sx:{display:"grid",gridTemplateColumns:{md:"repeat(2, 1fr)"},rowGap:2,alignItems:"center",my:12},children:[P.jsxs(tt,{sx:{px:8},children:[P.jsx(Xe,{variant:"h4",children:"Dive Deeper"}),P.jsx(Xe,{variant:"subtitle1",children:"With locust cloud you can get more out of each testrun. Get a detailed view into individual requests and identify bottlenecks with ease."})]}),P.jsx(tt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:P.jsx(tt,{children:e?P.jsx("img",{src:"/assets/graphs-dark.png",width:"100%"}):P.jsx("img",{src:"/assets/graphs-light.png",width:"100%"})})})]}),P.jsxs(Cf,{sx:{display:{xs:"flex",md:"grid"},flexDirection:"column-reverse",gridTemplateColumns:{md:"repeat(2, 1fr)"},rowGap:2,alignItems:"center",my:12},children:[P.jsx(tt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:P.jsx(tt,{children:e?P.jsx("img",{src:"/assets/testruns-dark.png",width:"100%"}):P.jsx("img",{src:"/assets/testruns-light.png",width:"100%"})})}),P.jsxs(tt,{sx:{px:8},children:[P.jsx(Xe,{variant:"h4",children:"See Everything"}),P.jsx(Xe,{variant:"subtitle1",children:"Every locust testrun is saved. Keep track of how your system has performed historically and get notified immediately when performace degrades"})]})]}),P.jsxs(Cf,{children:[P.jsx(Xe,{sx:{textAlign:"center",mb:6},variant:"h4",children:"Pricing Plans to Fit your Needs"}),P.jsx(bX,{})]})]})}const _X=e=>e.includes("CRITICAL")?ns[900]:e.includes("ERROR")?ns[700]:e.includes("WARNING")?Iz[900]:e.includes("DEBUG")?pl[700]:"text.primary";function OL({log:e}){return P.jsx(Xe,{color:_X(e),fontFamily:"monospace",variant:"body2",children:e})}function CX({workerId:e,logs:t}){const[r,n]=L.useState(!1);L.useEffect(()=>{t.slice(localStorage[e]).some(RL)&&n(!0)},[t]);const i=L.useCallback(()=>{n(!1),localStorage[e]=t.length},[]);return P.jsxs(vw,{children:[P.jsxs(mw,{expandIcon:P.jsx(Ow,{}),onClick:i,children:[r&&P.jsx(cL,{color:"secondary","data-testid":"worker-notification"}),e]}),P.jsx(gw,{children:P.jsx(ji,{elevation:3,sx:{p:2},children:t.map((o,a)=>P.jsx(OL,{log:o},`worker-${e}-log-${a}`))})})]})}function TX(){const{master:e,workers:t}=kn(({logViewer:r})=>r);return P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[P.jsxs(tt,{children:[P.jsx(Xe,{sx:{mb:2},variant:"h5",children:"Master Logs"}),P.jsx(ji,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((r,n)=>P.jsx(OL,{log:r},`master-log-${n}`))})]}),!gL(t)&&P.jsxs(tt,{children:[P.jsx(Xe,{sx:{mb:2},variant:"h5",children:"Worker Logs"}),Object.entries(t).map(([r,n],i)=>P.jsx(CX,{logs:n,workerId:r},`worker-log-${i}`))]})]})}function MX({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=kn(({theme:{isDarkMode:n}})=>n);return P.jsxs(Ew,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(ml,{children:P.jsx(fn,{href:"./stats/requests/csv",children:"Download requests CSV"})}),t&&P.jsx(ml,{children:P.jsx(fn,{href:"./stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),P.jsx(ml,{children:P.jsx(fn,{href:"./stats/failures/csv",children:"Download failures CSV"})}),P.jsx(ml,{children:P.jsx(fn,{href:"./exceptions/csv",children:"Download exceptions CSV"})}),P.jsx(ml,{children:P.jsx(fn,{href:`./stats/report?theme=${r?Ao.DARK:Ao.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},o)=>P.jsx(ml,{children:P.jsx(fn,{href:n,children:i})},`extended-csv-${o}`))]})}const kX=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),RX=di(kX)(MX);function PX({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,o]=L.useState(null);return P.jsxs(XU,{sx:{alignSelf:{xs:"end",lg:"start"},my:2},children:[P.jsx(ci,{onClick:a=>o(a.currentTarget),variant:"outlined",children:P.jsx(lY,{})}),P.jsx(QD,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>o(null),open:!!i,children:P.jsx(qD,{sx:{p:2},children:e.map(({key:a,title:s})=>P.jsx(YD,{control:P.jsx(rG,{checked:t.includes(a),onChange:()=>{t.includes(a)?n(a):r(a)}}),label:s},a))})})]})}function EX(e){const[t,r]=L.useState(e.map(a=>a.key));return{selectedColumns:t,addColumn:a=>{r([...t,a])},removeColumn:a=>{r(t.filter(s=>s!==a))},filteredStructure:(a=>a.filter(s=>t.includes(s.key)))(e)}}const AX=Io.percentilesToStatistics?Io.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],IX=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...AX,{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function DX({stats:e,tableStructure:t=IX}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:o}=EX(t);return P.jsxs(tt,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row-reverse",alignItems:"flex-start"},columnGap:1},children:[P.jsx(PX,{addColumn:n,removeColumn:i,selectedColumns:r,structure:t}),P.jsx(Cp,{hasTotalRow:!0,rows:e,structure:o})]})}const LX=({ui:{stats:e}})=>({stats:e}),OX=di(LX)(DX);/*! *****************************************************************************
|
204
|
+
${e.palette.mode==="light"?zl(bt(e.palette.divider,1),.88):$l(bt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${vG.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Sl=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:d,variant:p,...h}=n,v=L.useContext(nL),g=L.useContext(Mm),x=g&&g.variant==="head";let y;a?y=a:y=x?"th":"td";let S=l;y==="td"?S=void 0:!S&&x&&(S="col");const w=p||g&&g.variant,b={...n,align:i,component:y,padding:s||(v&&v.padding?v.padding:"normal"),size:c||(v&&v.size?v.size:"medium"),sortDirection:d,stickyHeader:w==="head"&&v&&v.stickyHeader,variant:w},C=gG(b);let T=null;return d&&(T=d==="asc"?"ascending":"descending"),P.jsx(mG,{as:y,ref:r,className:Se(C.root,o),"aria-sort":T,scope:S,ownerState:b,...h})});function yG(e){return ze("MuiTableContainer",e)}Fe("MuiTableContainer",["root"]);const xG=e=>{const{classes:t}=e;return je({root:["root"]},yG,t)},SG=se("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),aL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableContainer"}),{className:i,component:o="div",...a}=n,s={...n,component:o},l=xG(s);return P.jsx(SG,{ref:r,as:o,className:Se(l.root,i),ownerState:s,...a})});function bG(e){return ze("MuiTableHead",e)}Fe("MuiTableHead",["root"]);const wG=e=>{const{classes:t}=e;return je({root:["root"]},bG,t)},_G=se("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),CG={variant:"head"},Ek="thead",sL=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableHead"}),{className:i,component:o=Ek,...a}=n,s={...n,component:o},l=wG(s);return P.jsx(Mm.Provider,{value:CG,children:P.jsx(_G,{as:o,className:Se(l.root,i),ref:r,role:o===Ek?null:"rowgroup",ownerState:s,...a})})});function TG(e){return ze("MuiToolbar",e)}Fe("MuiToolbar",["root","gutters","regular","dense"]);const MG=e=>{const{classes:t,disableGutters:r,variant:n}=e;return je({root:["root",!r&&"gutters",n]},TG,t)},kG=se("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Oe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),RG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular",...l}=n,c={...n,component:o,disableGutters:a,variant:s},d=MG(c);return P.jsx(kG,{as:o,className:Se(d.root,i),ref:r,ownerState:c,...l})}),PG=Gt(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),EG=Gt(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function AG(e){return ze("MuiTableRow",e)}const Ak=Fe("MuiTableRow",["root","selected","hover","head","footer"]),IG=e=>{const{classes:t,selected:r,hover:n,head:i,footer:o}=e;return je({root:["root",r&&"selected",n&&"hover",i&&"head",o&&"footer"]},AG,t)},DG=se("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(Oe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ak.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ak.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:bt(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}))`:bt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Ik="tr",_g=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableRow"}),{className:i,component:o=Ik,hover:a=!1,selected:s=!1,...l}=n,c=L.useContext(Mm),d={...n,component:o,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},p=IG(d);return P.jsx(DG,{as:o,ref:r,className:Se(p.root,i),role:o===Ik?null:"row",ownerState:d,...l})});function LG(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function OG(e,t,r,n={},i=()=>{}){const{ease:o=LG,duration:a=300}=n;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},p=h=>{if(c){i(new Error("Animation cancelled"));return}s===null&&(s=h);const v=Math.min(1,(h-s)/a);if(t[e]=o(v)*(r-l)+l,v>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(p)};return l===r?(i(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const NG={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function BG(e){const{onChange:t,...r}=e,n=L.useRef(),i=L.useRef(null),o=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return lo(()=>{const a=yp(()=>{const l=n.current;o(),l!==n.current&&t(n.current)}),s=li(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),L.useEffect(()=>{o(),t(n.current)},[t]),P.jsx("div",{style:NG,...r,ref:i})}function $G(e){return ze("MuiTabScrollButton",e)}const zG=Fe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),FG=e=>{const{classes:t,orientation:r,disabled:n}=e;return je({root:["root",r,n&&"disabled"]},$G,t)},jG=se(xs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${zG.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),WG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:a={},direction:s,orientation:l,disabled:c,...d}=n,p=Cc(),h={isRtl:p,...n},v=FG(h),g=o.StartScrollButtonIcon??PG,x=o.EndScrollButtonIcon??EG,y=hc({elementType:g,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),S=hc({elementType:x,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return P.jsx(jG,{component:"div",className:Se(v.root,i),ref:r,role:null,ownerState:h,tabIndex:null,...d,style:{...d.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${p?-90:90}deg)`}},children:s==="left"?P.jsx(g,{...y}):P.jsx(x,{...S})})});function HG(e){return ze("MuiTabs",e)}const h1=Fe("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Dk=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Lk=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,tv=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=r(e,i);else{i.focus();return}}},VG=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return je({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},HG,l)},UG=se("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${h1.scrollButtons}`]:t.scrollButtons},{[`& .${h1.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Oe(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${h1.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),GG=se("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]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),YG=se("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),qG=se("span",{name:"MuiTabs",slot:"Indicator"})(Oe(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),XG=se(BG)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Ok={},KG=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTabs"}),i=Fo(),o=Cc(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:d,className:p,component:h="div",allowScrollButtonsMobile:v=!1,indicatorColor:g="primary",onChange:x,orientation:y="horizontal",ScrollButtonComponent:S,scrollButtons:w="auto",selectionFollowsFocus:b,slots:C={},slotProps:T={},TabIndicatorProps:M={},TabScrollButtonProps:E={},textColor:I="primary",value:D,variant:k="standard",visibleScrollbar:O=!1,...N}=n,$=k==="scrollable",z=y==="vertical",F=z?"scrollTop":"scrollLeft",j=z?"top":"left",K=z?"bottom":"right",V=z?"clientHeight":"clientWidth",H=z?"height":"width",Y={...n,component:h,allowScrollButtonsMobile:v,indicatorColor:g,orientation:y,vertical:z,scrollButtons:w,textColor:I,variant:k,visibleScrollbar:O,fixed:!$,hideScrollbar:$&&!O,scrollableX:$&&!z,scrollableY:$&&z,centered:c&&!$,scrollButtonsHideMobile:!v},W=VG(Y),q=hc({elementType:C.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:Y}),te=hc({elementType:C.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:Y}),[le,ne]=L.useState(!1),[Q,ce]=L.useState(Ok),[me,de]=L.useState(!1),[fe,ge]=L.useState(!1),[pe,Ne]=L.useState(!1),[ke,it]=L.useState({overflow:"hidden",scrollbarWidth:0}),rt=new Map,dt=L.useRef(null),we=L.useRef(null),at={slots:C,slotProps:{indicator:M,scrollButton:E,...T}},Ee=()=>{const Me=dt.current;let Ae;if(Me){const pt=Me.getBoundingClientRect();Ae={clientWidth:Me.clientWidth,scrollLeft:Me.scrollLeft,scrollTop:Me.scrollTop,scrollWidth:Me.scrollWidth,top:pt.top,bottom:pt.bottom,left:pt.left,right:pt.right}}let ct;if(Me&&D!==!1){const pt=we.current.children;if(pt.length>0){const zt=pt[rt.get(D)];ct=zt?zt.getBoundingClientRect():null}}return{tabsMeta:Ae,tabMeta:ct}},Ye=vn(()=>{const{tabsMeta:Me,tabMeta:Ae}=Ee();let ct=0,pt;z?(pt="top",Ae&&Me&&(ct=Ae.top-Me.top+Me.scrollTop)):(pt=o?"right":"left",Ae&&Me&&(ct=(o?-1:1)*(Ae[pt]-Me[pt]+Me.scrollLeft)));const zt={[pt]:ct,[H]:Ae?Ae[H]:0};if(typeof Q[pt]!="number"||typeof Q[H]!="number")ce(zt);else{const Pr=Math.abs(Q[pt]-zt[pt]),tn=Math.abs(Q[H]-zt[H]);(Pr>=1||tn>=1)&&ce(zt)}}),Ce=(Me,{animation:Ae=!0}={})=>{Ae?OG(F,dt.current,Me,{duration:i.transitions.duration.standard}):dt.current[F]=Me},Xt=Me=>{let Ae=dt.current[F];z?Ae+=Me:Ae+=Me*(o?-1:1),Ce(Ae)},mt=()=>{const Me=dt.current[V];let Ae=0;const ct=Array.from(we.current.children);for(let pt=0;pt<ct.length;pt+=1){const zt=ct[pt];if(Ae+zt[V]>Me){pt===0&&(Ae=Me);break}Ae+=zt[V]}return Ae},Wt=()=>{Xt(-1*mt())},Jt=()=>{Xt(mt())},[ar,{onChange:Lt,...tr}]=Ue("scrollbar",{className:Se(W.scrollableX,W.hideScrollbar),elementType:XG,shouldForwardComponentProp:!0,externalForwardedProps:at,ownerState:Y}),Je=L.useCallback(Me=>{Lt==null||Lt(Me),it({overflow:null,scrollbarWidth:Me})},[Lt]),[xe,wt]=Ue("scrollButtons",{className:Se(W.scrollButtons,E.className),elementType:WG,externalForwardedProps:at,ownerState:Y,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:C.startScrollButtonIcon||C.StartScrollButtonIcon,EndScrollButtonIcon:C.endScrollButtonIcon||C.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:q,endScrollButtonIcon:te}}}),Rt=()=>{const Me={};Me.scrollbarSizeListener=$?P.jsx(ar,{...tr,onChange:Je}):null;const ct=$&&(w==="auto"&&(me||fe)||w===!0);return Me.scrollButtonStart=ct?P.jsx(xe,{direction:o?"right":"left",onClick:Wt,disabled:!me,...wt}):null,Me.scrollButtonEnd=ct?P.jsx(xe,{direction:o?"left":"right",onClick:Jt,disabled:!fe,...wt}):null,Me},ut=vn(Me=>{const{tabsMeta:Ae,tabMeta:ct}=Ee();if(!(!ct||!Ae)){if(ct[j]<Ae[j]){const pt=Ae[F]+(ct[j]-Ae[j]);Ce(pt,{animation:Me})}else if(ct[K]>Ae[K]){const pt=Ae[F]+(ct[K]-Ae[K]);Ce(pt,{animation:Me})}}}),Be=vn(()=>{$&&w!==!1&&Ne(!pe)});L.useEffect(()=>{const Me=yp(()=>{dt.current&&Ye()});let Ae;const ct=Pr=>{Pr.forEach(tn=>{tn.removedNodes.forEach(mn=>{Ae==null||Ae.unobserve(mn)}),tn.addedNodes.forEach(mn=>{Ae==null||Ae.observe(mn)})}),Me(),Be()},pt=li(dt.current);pt.addEventListener("resize",Me);let zt;return typeof ResizeObserver<"u"&&(Ae=new ResizeObserver(Me),Array.from(we.current.children).forEach(Pr=>{Ae.observe(Pr)})),typeof MutationObserver<"u"&&(zt=new MutationObserver(ct),zt.observe(we.current,{childList:!0})),()=>{Me.clear(),pt.removeEventListener("resize",Me),zt==null||zt.disconnect(),Ae==null||Ae.disconnect()}},[Ye,Be]),L.useEffect(()=>{const Me=Array.from(we.current.children),Ae=Me.length;if(typeof IntersectionObserver<"u"&&Ae>0&&$&&w!==!1){const ct=Me[0],pt=Me[Ae-1],zt={root:dt.current,threshold:.99},Pr=pi=>{de(!pi[0].isIntersecting)},tn=new IntersectionObserver(Pr,zt);tn.observe(ct);const mn=pi=>{ge(!pi[0].isIntersecting)},Go=new IntersectionObserver(mn,zt);return Go.observe(pt),()=>{tn.disconnect(),Go.disconnect()}}},[$,w,pe,d==null?void 0:d.length]),L.useEffect(()=>{ne(!0)},[]),L.useEffect(()=>{Ye()}),L.useEffect(()=>{ut(Ok!==Q)},[ut,Q]),L.useImperativeHandle(l,()=>({updateIndicator:Ye,updateScrollButtons:Be}),[Ye,Be]);const[st,_t]=Ue("indicator",{className:Se(W.indicator,M.className),elementType:qG,externalForwardedProps:at,ownerState:Y,additionalProps:{style:Q}}),gr=P.jsx(st,{..._t});let Nr=0;const Hi=L.Children.map(d,Me=>{if(!L.isValidElement(Me))return null;const Ae=Me.props.value===void 0?Nr:Me.props.value;rt.set(Ae,Nr);const ct=Ae===D;return Nr+=1,L.cloneElement(Me,{fullWidth:k==="fullWidth",indicator:ct&&!le&&gr,selected:ct,selectionFollowsFocus:b,onChange:x,textColor:I,value:Ae,...Nr===1&&D===!1&&!Me.props.tabIndex?{tabIndex:0}:{}})}),rr=Me=>{if(Me.altKey||Me.shiftKey||Me.ctrlKey||Me.metaKey)return;const Ae=we.current,ct=Hn(Ae).activeElement;if(ct.getAttribute("role")!=="tab")return;let zt=y==="horizontal"?"ArrowLeft":"ArrowUp",Pr=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&o&&(zt="ArrowRight",Pr="ArrowLeft"),Me.key){case zt:Me.preventDefault(),tv(Ae,ct,Lk);break;case Pr:Me.preventDefault(),tv(Ae,ct,Dk);break;case"Home":Me.preventDefault(),tv(Ae,null,Dk);break;case"End":Me.preventDefault(),tv(Ae,null,Lk);break}},Rr=Rt(),[en,qn]=Ue("root",{ref:r,className:Se(W.root,p),elementType:UG,externalForwardedProps:{...at,...N,component:h},ownerState:Y}),[Ur,Vi]=Ue("scroller",{ref:dt,className:W.scroller,elementType:GG,externalForwardedProps:at,ownerState:Y,additionalProps:{style:{overflow:ke.overflow,[z?`margin${o?"Left":"Right"}`:"marginBottom"]:O?void 0:-ke.scrollbarWidth}}}),[et,nr]=Ue("list",{ref:we,className:Se(W.list,W.flexContainer),elementType:YG,externalForwardedProps:at,ownerState:Y,getSlotProps:Me=>({...Me,onKeyDown:Ae=>{var ct;rr(Ae),(ct=Me.onKeyDown)==null||ct.call(Me,Ae)}})});return P.jsxs(en,{...qn,children:[Rr.scrollButtonStart,Rr.scrollbarSizeListener,P.jsxs(Ur,{...Vi,children:[P.jsx(et,{"aria-label":a,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...nr,children:Hi}),le&&gr]}),Rr.scrollButtonEnd]})});function ZG(e){return ze("MuiTextField",e)}Fe("MuiTextField",["root"]);const QG={standard:Pw,filled:kw,outlined:Tm},JG=e=>{const{classes:t}=e;return je({root:["root"]},ZG,t)},eY=se(Rw,{name:"MuiTextField",slot:"Root"})({}),El=L.forwardRef(function(t,r){const n=He({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:v=!1,helperText:g,id:x,InputLabelProps:y,inputProps:S,InputProps:w,inputRef:b,label:C,maxRows:T,minRows:M,multiline:E=!1,name:I,onBlur:D,onChange:k,onFocus:O,placeholder:N,required:$=!1,rows:z,select:F=!1,SelectProps:j,slots:K={},slotProps:V={},type:H,value:Y,variant:W="outlined",...q}=n,te={...n,autoFocus:o,color:l,disabled:d,error:p,fullWidth:v,multiline:E,required:$,select:F,variant:W},le=JG(te),ne=Tc(x),Q=g&&ne?`${ne}-helper-text`:void 0,ce=C&&ne?`${ne}-label`:void 0,me=QG[W],de={slots:K,slotProps:{input:w,inputLabel:y,htmlInput:S,formHelperText:h,select:j,...V}},fe={},ge=de.slotProps.inputLabel;W==="outlined"&&(ge&&typeof ge.shrink<"u"&&(fe.notched=ge.shrink),fe.label=C),F&&((!j||!j.native)&&(fe.id=void 0),fe["aria-describedby"]=void 0);const[pe,Ne]=Ue("root",{elementType:eY,shouldForwardComponentProp:!0,externalForwardedProps:{...de,...q},ownerState:te,className:Se(le.root,s),ref:r,additionalProps:{disabled:d,error:p,fullWidth:v,required:$,color:l,variant:W}}),[ke,it]=Ue("input",{elementType:me,externalForwardedProps:de,additionalProps:fe,ownerState:te}),[rt,dt]=Ue("inputLabel",{elementType:Cm,externalForwardedProps:de,ownerState:te}),[we,at]=Ue("htmlInput",{elementType:"input",externalForwardedProps:de,ownerState:te}),[Ee,Ye]=Ue("formHelperText",{elementType:SV,externalForwardedProps:de,ownerState:te}),[Ce,Xt]=Ue("select",{elementType:Dw,externalForwardedProps:de,ownerState:te}),mt=P.jsx(ke,{"aria-describedby":Q,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:v,multiline:E,name:I,rows:z,maxRows:T,minRows:M,type:H,value:Y,id:ne,inputRef:b,onBlur:D,onChange:k,onFocus:O,placeholder:N,inputProps:at,slots:{input:K.htmlInput?we:void 0},...it});return P.jsxs(pe,{...Ne,children:[C!=null&&C!==""&&P.jsx(rt,{htmlFor:ne,id:ce,...dt,children:C}),F?P.jsx(Ce,{"aria-describedby":Q,id:ne,labelId:ce,value:Y,input:mt,...Xt,children:a}):mt,g&&P.jsx(Ee,{id:Q,...Ye,children:g})]})});function lL(){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"})]})}const Lw=Gt([P.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),P.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),tY=Gt(P.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),rY=Gt(P.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 12zM12 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 6"})),nY=Gt(P.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 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"})),iY=Gt(P.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"})),oY=Gt(P.jsx("path",{d:"M21.9 21.9 2.1 2.1.69 3.51l1.55 1.55c-.15.28-.23.6-.23.94L2 18c0 1.11.89 2 2 2h13.17l3.31 3.31zM4 12V8h1.17l4 4zm2.83-8H20c1.11 0 2 .89 2 2v12c0 .34-.08.66-.23.94L14.83 12H20V8h-9.17z"})),Ow=Gt(P.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),uL=Gt(P.jsx("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3"})),aY=Gt(P.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),Nw=Gt(P.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),cL=Gt([P.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),P.jsx("path",{d:"M10 3h4v12h-4z"},"1")]),sY=Gt(P.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-.61zM12 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.6"})),Bw=Gt(P.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"})),fL=Gt(P.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m7.46 7.12-2.78 1.15c-.51-1.36-1.58-2.44-2.95-2.94l1.15-2.78c2.1.8 3.77 2.47 4.58 4.57M12 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3M9.13 4.54l1.17 2.78c-1.38.5-2.47 1.59-2.98 2.97L4.54 9.13c.81-2.11 2.48-3.78 4.59-4.59M4.54 14.87l2.78-1.15c.51 1.38 1.59 2.46 2.97 2.96l-1.17 2.78c-2.1-.81-3.77-2.48-4.58-4.59m10.34 4.59-1.15-2.78c1.37-.51 2.45-1.59 2.95-2.97l2.78 1.17c-.81 2.1-2.48 3.77-4.58 4.58"})),lY=Gt(P.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),uY=Gt(P.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),cY=Gt(P.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}));function dL({name:e="password",label:t="Password",defaultValue:r,isRequired:n}){const[i,o]=L.useState(!1),a=()=>o(!i);return P.jsxs(Rw,{variant:"outlined",children:[P.jsx(Cm,{htmlFor:`${t}-${e}-field`,children:t}),P.jsx(Tm,{defaultValue:r,endAdornment:P.jsx(LV,{position:"end",children:P.jsx(ba,{edge:"end",onClick:a,children:i?P.jsx(cY,{}):P.jsx(uY,{})})}),id:`${t}-${e}-field`,label:t,name:e,required:n,type:i?"text":"password"})]})}function $w({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:o="medium",sx:a,...s}){return P.jsxs(Rw,{size:o,sx:a,children:[P.jsx(Cm,{htmlFor:t,shrink:!0,children:e}),P.jsx(Dw,{...s,defaultValue:s.value?void 0:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((l,c)=>P.jsx("option",{value:l,children:l},`option-${l}-${c}`))})]})}function zw({name:e,label:t,type:r="text",defaultValue:n,choices:i,isSecret:o,isRequired:a}){return i?P.jsx($w,{defaultValue:n,label:t,name:e,options:i,required:a,sx:{width:"100%"}}):typeof n=="boolean"?P.jsx(YD,{control:P.jsx(vS,{defaultChecked:n,required:a}),label:t,name:e}):o?P.jsx(dL,{defaultValue:n,isRequired:a,label:t,name:e}):P.jsx(El,{defaultValue:n,label:t,name:e,required:a,sx:{width:"100%"},type:r})}const Ao={DARK:"dark",LIGHT:"light"},fY=localStorage.theme===Ao.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ao.DARK:Ao.LIGHT,kn=gI,dY=TI;function To(e,t){const r=dY();return L.useCallback(n=>{r(e(n))},[e,r])}const pY={isDarkMode:!1},pL=Pi({name:"theme",initialState:pY,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),hY=pL.actions,hL=pL.reducer;function yS(){const e=kn(({theme:{isDarkMode:n}})=>n),t=To(hY.setIsDarkMode);L.useEffect(()=>{t(fY===Ao.DARK)},[]);const r=()=>{localStorage.theme=e?Ao.LIGHT:Ao.DARK,t(!e)};return P.jsx(ba,{color:"inherit",onClick:r,children:e?P.jsx(nY,{}):P.jsx(rY,{})})}const vY=e=>vm({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}});function vL(){const e=kn(({theme:{isDarkMode:r}})=>r);return L.useMemo(()=>vY(e?Ao.DARK:Ao.LIGHT),[e])}function gY({authProviders:e,customForm:t,error:r,info:n,usernamePasswordCallback:i}){const o=vL();return P.jsxs(mD,{theme:o,children:[P.jsx(HD,{}),P.jsx(tt,{sx:{position:"absolute",top:4,right:4},children:P.jsx(yS,{})}),P.jsxs(tt,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,width:400,border:"3px solid black",p:4},children:[P.jsx(tt,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:P.jsx(lL,{})}),i&&!t&&P.jsx("form",{action:i,method:"POST",children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[P.jsx(El,{label:"Username",name:"username"}),P.jsx(dL,{}),n&&P.jsx(ua,{severity:"info",children:n}),r&&P.jsx(ua,{severity:"error",children:r}),P.jsx(ci,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),t&&P.jsx("form",{action:t.callbackUrl,method:"POST",children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[t.inputs.map((a,s)=>P.jsx(zw,{...a},`custom-form-input-${s}`)),n&&P.jsx(ua,{severity:"info",children:n}),r&&P.jsx(ua,{severity:"error",children:r}),P.jsx(ci,{size:"large",type:"submit",variant:"contained",children:t.submitButtonText||"Login"})]})}),n&&!t&&!i&&P.jsx(ua,{severity:"info",children:n}),r&&!t&&!i&&P.jsx(ua,{severity:"error",children:r}),e&&P.jsx(tt,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:a,callbackUrl:s,iconUrl:l},c)=>P.jsxs(ba,{href:s,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[P.jsx("img",{height:"32",src:l}),P.jsx(Xe,{height:"32",variant:"button",children:a})]},`auth-provider-${c}`))})]})]})}function km({open:e,onClose:t,children:r}){return P.jsx(Mw,{onClose:t,open:e,children:P.jsxs(bp,{maxWidth:"md",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",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(ba,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:P.jsx(iY,{})}),r]})})}function mY(){const[e,t]=L.useState(!1),r=kn(({swarm:n})=>n.version);return P.jsxs(P.Fragment,{children:[P.jsx(tt,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(ci,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),P.jsxs(km,{onClose:()=>t(!1),open:e,children:[P.jsxs("div",{children:[P.jsx(Xe,{component:"h2",mb:1,variant:"h4",children:"About"}),P.jsxs(Xe,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",P.jsx(fn,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),P.jsxs(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",P.jsx(fn,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",P.jsx(fn,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),P.jsxs(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",P.jsx(fn,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),P.jsxs("div",{children:[P.jsx(Xe,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),P.jsx(fn,{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(Xe,{component:"h2",mb:1,variant:"h4",children:"Version"}),P.jsx(fn,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),P.jsxs("div",{children:[P.jsx(Xe,{component:"h2",mb:1,variant:"h4",children:"Links"}),P.jsx(Xe,{component:"p",variant:"subtitle1",children:P.jsx(fn,{href:"https://github.com/locustio/locust",children:"GitHub"})}),P.jsx(Xe,{component:"p",variant:"subtitle1",children:P.jsx(fn,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),P.jsx(Xe,{component:"p",variant:"subtitle1",children:P.jsx(fn,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function yY(){return P.jsx(bp,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:P.jsx(mY,{})})}const gL=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function xY(e,t){return{...e,...t}}const SY=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},Rm=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),Jr={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning"},Io=window.templateArgs?yl(window.templateArgs):{};Io.isReport&&{...Io,charts:(Io.history||[]).reduce((e,{currentResponseTimePercentiles:t,...r})=>Rm(e,{...t,...r}),{})};function bY({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:o,workerCount:a}){return P.jsxs(tt,{sx:{display:"flex",columnGap:2,rowGap:1,flexDirection:{xs:"column",md:"row"}},children:[P.jsxs(tt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Host"}),P.jsx(rL,{title:r,children:P.jsx(Xe,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:{xs:"180px",lg:"400px"}},children:r})})]}),P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Status"}),P.jsx(Xe,{variant:"button",children:t})]}),(t===Jr.RUNNING||t===Jr.SPAWNING)&&P.jsxs(P.Fragment,{children:[P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Users"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:o})]})]}),e&&P.jsxs(P.Fragment,{children:[P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Workers"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:a})]})]}),P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"RPS"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:n})]}),P.jsx(xl,{flexItem:!0,orientation:"vertical"}),P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},children:"Failures"}),P.jsx(Xe,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const wY=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:o,userCount:a}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:o,userCount:a,workerCount:n}),Nk=di(wY)(bY),_Y="input, select, textarea",CY=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 mL({children:e,onSubmit:t,onChange:r}){const n=L.useCallback(async i=>{i.preventDefault();const a=[...i.target.querySelectorAll(_Y)].reduce((s,l)=>l.name?{...s,[l.name]:CY(l)}:s,{});t(a)},[t]);return P.jsx("form",{onChange:r,onSubmit:n,children:e})}function Bk({defaultValue:e,...t}){const[r,n]=L.useState(e||""),i=o=>{t.onChange&&t.onChange(o),!((o.target.value.match(/\./g)||[]).length>1)&&n(o.target.value.replace(/[^0-9.]/g,""))};return L.useEffect(()=>{e&&n(e)},[e]),P.jsx(El,{...t,onChange:i,value:r})}function TY({extraOptions:e}){return P.jsxs(vw,{children:[P.jsx(mw,{expandIcon:P.jsx(Ow,{}),children:P.jsx(Xe,{children:"Custom parameters"})}),P.jsx(gw,{children:P.jsx(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>L.createElement(zw,{...r,key:`valid-parameter-${n}`,label:r.helpText?`${qx(t)} (${r.helpText})`:qx(t),name:t}))})})]})}var yL=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(yL||{});function MY(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function kY(e){return new RegExp("(^|:)//").test(e)}var RY=e=>e.replace(/\/$/,""),PY=e=>e.replace(/^\//,"");function EY(e,t){if(!e)return t;if(!t)return e;if(kY(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=RY(e),t=PY(t),`${e}${r}${t}`}var $k=e=>[].concat(...e);function AY(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function IY(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var zk=No;function xL(e,t){if(e===t||!(zk(e)&&zk(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 o=Array.isArray(t)?[]:{};for(const a of r)o[a]=xL(e[a],t[a]),i&&(i=e[a]===o[a]);return i?e:o}var Fk=(...e)=>fetch(...e),DY=e=>e.status>=200&&e.status<=299,LY=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function jk(e){if(!No(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function OY({baseUrl:e,prepareHeaders:t=p=>p,fetchFn:r=Fk,paramsSerializer:n,isJsonContentType:i=LY,jsonContentType:o="application/json",jsonReplacer:a,timeout:s,responseHandler:l,validateStatus:c,...d}={}){return typeof fetch>"u"&&r===Fk&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(h,v)=>{const{signal:g,getState:x,extra:y,endpoint:S,forced:w,type:b}=v;let C,{url:T,headers:M=new Headers(d.headers),params:E=void 0,responseHandler:I=l??"json",validateStatus:D=c??DY,timeout:k=s,...O}=typeof h=="string"?{url:h}:h,N={...d,signal:g,...O};M=new Headers(jk(M)),N.headers=await t(M,{getState:x,extra:y,endpoint:S,forced:w,type:b})||M;const $=q=>typeof q=="object"&&(No(q)||Array.isArray(q)||typeof q.toJSON=="function");if(!N.headers.has("content-type")&&$(N.body)&&N.headers.set("content-type",o),$(N.body)&&i(N.headers)&&(N.body=JSON.stringify(N.body,a)),E){const q=~T.indexOf("?")?"&":"?",te=n?n(E):new URLSearchParams(jk(E));T+=q+te}T=EY(e,T);const z=new Request(T,N);C={request:new Request(T,N)};let j,K=!1,V=k&&setTimeout(()=>{K=!0,v.abort()},k);try{j=await r(z)}catch(q){return{error:{status:K?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(q)},meta:C}}finally{V&&clearTimeout(V)}const H=j.clone();C.response=H;let Y,W="";try{let q;if(await Promise.all([p(j,I).then(te=>Y=te,te=>q=te),H.text().then(te=>W=te,()=>{})]),q)throw q}catch(q){return{error:{status:"PARSING_ERROR",originalStatus:j.status,data:W,error:String(q)},meta:C}}return D(j,Y)?{data:Y,meta:C}:{error:{status:j.status,data:Y},meta:C}};async function p(h,v){if(typeof v=="function")return v(h);if(v==="content-type"&&(v=i(h.headers)?"json":"text"),v==="json"){const g=await h.text();return g.length?JSON.parse(g):null}return h.text()}}var Wk=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Fw=Cn("__rtkq/focused"),SL=Cn("__rtkq/unfocused"),jw=Cn("__rtkq/online"),bL=Cn("__rtkq/offline");function wL(e){return e.type==="query"}function NY(e){return e.type==="mutation"}function Ww(e,t,r,n,i,o){return BY(e)?e(t,r,n,i).map(xS).map(o):Array.isArray(e)?e.map(xS).map(o):[]}function BY(e){return typeof e=="function"}function xS(e){return typeof e=="string"?{type:e}:e}function Hk(e){return e!=null}function Zu(e){let t=0;for(const r in e)t++;return t}function $Y(e,t){return e.catch(t)}var Hd=Symbol("forceQueryFn"),SS=e=>typeof e[Hd]=="function";function zY({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const o=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=n.internalActions;return{buildInitiateQuery:g,buildInitiateMutation:x,getRunningQueryThunk:d,getRunningMutationThunk:p,getRunningQueriesThunk:h,getRunningMutationsThunk:v};function d(y,S){return w=>{var T;const b=i.endpointDefinitions[y],C=e({queryArgs:S,endpointDefinition:b,endpointName:y});return(T=o.get(w))==null?void 0:T[C]}}function p(y,S){return w=>{var b;return(b=a.get(w))==null?void 0:b[S]}}function h(){return y=>Object.values(o.get(y)||{}).filter(Hk)}function v(){return y=>Object.values(a.get(y)||{}).filter(Hk)}function g(y,S){const w=(b,{subscribe:C=!0,forceRefetch:T,subscriptionOptions:M,[Hd]:E,...I}={})=>(D,k)=>{var q;const O=e({queryArgs:b,endpointDefinition:S,endpointName:y}),N=t({...I,type:"query",subscribe:C,forceRefetch:T,subscriptionOptions:M,endpointName:y,originalArgs:b,queryCacheKey:O,[Hd]:E}),$=n.endpoints[y].select(b),z=D(N),F=$(k()),{requestId:j,abort:K}=z,V=F.requestId!==j,H=(q=o.get(D))==null?void 0:q[O],Y=()=>$(k()),W=Object.assign(E?z.then(Y):V&&!H?Promise.resolve(F):Promise.all([H,z]).then(Y),{arg:b,requestId:j,subscriptionOptions:M,queryCacheKey:O,abort:K,async unwrap(){const te=await W;if(te.isError)throw te.error;return te.data},refetch:()=>D(w(b,{subscribe:!1,forceRefetch:!0})),unsubscribe(){C&&D(s({queryCacheKey:O,requestId:j}))},updateSubscriptionOptions(te){W.subscriptionOptions=te,D(c({endpointName:y,requestId:j,queryCacheKey:O,options:te}))}});if(!H&&!V&&!E){const te=o.get(D)||{};te[O]=W,o.set(D,te),W.then(()=>{delete te[O],Zu(te)||o.delete(D)})}return W};return w}function x(y){return(S,{track:w=!0,fixedCacheKey:b}={})=>(C,T)=>{const M=r({type:"mutation",endpointName:y,originalArgs:S,track:w,fixedCacheKey:b}),E=C(M),{requestId:I,abort:D,unwrap:k}=E,O=$Y(E.unwrap().then(F=>({data:F})),F=>({error:F})),N=()=>{C(l({requestId:I,fixedCacheKey:b}))},$=Object.assign(O,{arg:E.arg,requestId:I,abort:D,unwrap:k,reset:N}),z=a.get(C)||{};return a.set(C,z),z[I]=$,$.then(()=>{delete z[I],Zu(z)||a.delete(C)}),b&&(z[b]=$,$.then(()=>{z[b]===$&&(delete z[b],Zu(z)||a.delete(C))})),$}}}function Vk(e){return e}function FY({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:o}){const a=(w,b,C,T)=>(M,E)=>{const I=r[w],D=n({queryArgs:b,endpointDefinition:I,endpointName:w});if(M(i.internalActions.queryResultPatched({queryCacheKey:D,patches:C})),!T)return;const k=i.endpoints[w].select(b)(E()),O=Ww(I.providesTags,k.data,void 0,b,{},o);M(i.internalActions.updateProvidedBy({queryCacheKey:D,providedTags:O}))},s=(w,b,C,T=!0)=>(M,E)=>{const D=i.endpoints[w].select(b)(E());let k={patches:[],inversePatches:[],undo:()=>M(i.util.patchQueryData(w,b,k.inversePatches,T))};if(D.status==="uninitialized")return k;let O;if("data"in D)if(ao(D.data)){const[N,$,z]=oI(D.data,C);k.patches.push(...$),k.inversePatches.push(...z),O=N}else O=C(D.data),k.patches.push({op:"replace",path:[],value:O}),k.inversePatches.push({op:"replace",path:[],value:D.data});return k.patches.length===0||M(i.util.patchQueryData(w,b,k.patches,T)),k},l=(w,b,C)=>T=>T(i.endpoints[w].initiate(b,{subscribe:!1,forceRefetch:!0,[Hd]:()=>({data:C})})),c=async(w,{signal:b,abort:C,rejectWithValue:T,fulfillWithValue:M,dispatch:E,getState:I,extra:D})=>{const k=r[w.endpointName];try{let O=Vk,N;const $={signal:b,abort:C,dispatch:E,getState:I,extra:D,endpoint:w.endpointName,type:w.type,forced:w.type==="query"?d(w,I()):void 0},z=w.type==="query"?w[Hd]:void 0;if(z?N=z():k.query?(N=await t(k.query(w.originalArgs),$,k.extraOptions),k.transformResponse&&(O=k.transformResponse)):N=await k.queryFn(w.originalArgs,$,k.extraOptions,F=>t(F,$,k.extraOptions)),typeof process<"u",N.error)throw new Wk(N.error,N.meta);return M(await O(N.data,N.meta,w.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:N.meta,[Wu]:!0})}catch(O){let N=O;if(N instanceof Wk){let $=Vk;k.query&&k.transformErrorResponse&&($=k.transformErrorResponse);try{return T(await $(N.value,N.meta,w.originalArgs),{baseQueryMeta:N.meta,[Wu]:!0})}catch(z){N=z}}throw console.error(N),N}};function d(w,b){var I,D,k;const C=(D=(I=b[e])==null?void 0:I.queries)==null?void 0:D[w.queryCacheKey],T=(k=b[e])==null?void 0:k.config.refetchOnMountOrArgChange,M=C==null?void 0:C.fulfilledTimeStamp,E=w.forceRefetch??(w.subscribe&&T);return E?E===!0||(Number(new Date)-Number(M))/1e3>=E:!1}const p=V2(`${e}/executeQuery`,c,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Wu]:!0}},condition(w,{getState:b}){var k,O,N;const C=b(),T=(O=(k=C[e])==null?void 0:k.queries)==null?void 0:O[w.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,E=w.originalArgs,I=T==null?void 0:T.originalArgs,D=r[w.endpointName];return SS(w)?!0:(T==null?void 0:T.status)==="pending"?!1:d(w,C)||wL(D)&&((N=D==null?void 0:D.forceRefetch)!=null&&N.call(D,{currentArg:E,previousArg:I,endpointState:T,state:C}))?!0:!M},dispatchConditionRejection:!0}),h=V2(`${e}/executeMutation`,c,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Wu]:!0}}}),v=w=>"force"in w,g=w=>"ifOlderThan"in w,x=(w,b,C)=>(T,M)=>{const E=v(C)&&C.force,I=g(C)&&C.ifOlderThan,D=(O=!0)=>{const N={forceRefetch:O,isPrefetch:!0};return i.endpoints[w].initiate(b,N)},k=i.endpoints[w].select(b)(M());if(E)T(D());else if(I){const O=k==null?void 0:k.fulfilledTimeStamp;if(!O){T(D());return}(Number(new Date)-Number(new Date(O)))/1e3>=I&&T(D())}else T(D(!1))};function y(w){return b=>{var C,T;return((T=(C=b==null?void 0:b.meta)==null?void 0:C.arg)==null?void 0:T.endpointName)===w}}function S(w,b){return{matchPending:ud(Fb(w),y(b)),matchFulfilled:ud(vs(w),y(b)),matchRejected:ud(sc(w),y(b))}}return{queryThunk:p,mutationThunk:h,prefetch:x,updateQueryData:s,upsertQueryData:l,patchQueryData:a,buildMatchThunkActions:S}}function _L(e,t,r,n){return Ww(r[e.meta.arg.endpointName][t],vs(e)?e.payload:void 0,rm(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function rv(e,t,r){const n=e[t];n&&r(n)}function Vd(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Uk(e,t,r){const n=e[Vd(t)];n&&r(n)}var _f={};function jY({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:o,hasRehydrationInfo:a},assertTagType:s,config:l}){const c=Cn(`${e}/resetApiState`),d=Pi({name:`${e}/queries`,initialState:_f,reducers:{removeQueryResult:{reducer(b,{payload:{queryCacheKey:C}}){delete b[C]},prepare:gf()},queryResultPatched:{reducer(b,{payload:{queryCacheKey:C,patches:T}}){rv(b,C,M=>{M.data=$2(M.data,T.concat())})},prepare:gf()}},extraReducers(b){b.addCase(t.pending,(C,{meta:T,meta:{arg:M}})=>{var I;const E=SS(M);C[I=M.queryCacheKey]??(C[I]={status:"uninitialized",endpointName:M.endpointName}),rv(C,M.queryCacheKey,D=>{D.status="pending",D.requestId=E&&D.requestId?D.requestId:T.requestId,M.originalArgs!==void 0&&(D.originalArgs=M.originalArgs),D.startedTimeStamp=T.startedTimeStamp})}).addCase(t.fulfilled,(C,{meta:T,payload:M})=>{rv(C,T.arg.queryCacheKey,E=>{if(E.requestId!==T.requestId&&!SS(T.arg))return;const{merge:I}=n[T.arg.endpointName];if(E.status="fulfilled",I)if(E.data!==void 0){const{fulfilledTimeStamp:D,arg:k,baseQueryMeta:O,requestId:N}=T;let $=up(E.data,z=>I(z,M,{arg:k.originalArgs,baseQueryMeta:O,fulfilledTimeStamp:D,requestId:N}));E.data=$}else E.data=M;else E.data=n[T.arg.endpointName].structuralSharing??!0?xL(oo(E.data)?NB(E.data):E.data,M):M;delete E.error,E.fulfilledTimeStamp=T.fulfilledTimeStamp})}).addCase(t.rejected,(C,{meta:{condition:T,arg:M,requestId:E},error:I,payload:D})=>{rv(C,M.queryCacheKey,k=>{if(!T){if(k.requestId!==E)return;k.status="rejected",k.error=D??I}})}).addMatcher(a,(C,T)=>{const{queries:M}=o(T);for(const[E,I]of Object.entries(M))((I==null?void 0:I.status)==="fulfilled"||(I==null?void 0:I.status)==="rejected")&&(C[E]=I)})}}),p=Pi({name:`${e}/mutations`,initialState:_f,reducers:{removeMutationResult:{reducer(b,{payload:C}){const T=Vd(C);T in b&&delete b[T]},prepare:gf()}},extraReducers(b){b.addCase(r.pending,(C,{meta:T,meta:{requestId:M,arg:E,startedTimeStamp:I}})=>{E.track&&(C[Vd(T)]={requestId:M,status:"pending",endpointName:E.endpointName,startedTimeStamp:I})}).addCase(r.fulfilled,(C,{payload:T,meta:M})=>{M.arg.track&&Uk(C,M,E=>{E.requestId===M.requestId&&(E.status="fulfilled",E.data=T,E.fulfilledTimeStamp=M.fulfilledTimeStamp)})}).addCase(r.rejected,(C,{payload:T,error:M,meta:E})=>{E.arg.track&&Uk(C,E,I=>{I.requestId===E.requestId&&(I.status="rejected",I.error=T??M)})}).addMatcher(a,(C,T)=>{const{mutations:M}=o(T);for(const[E,I]of Object.entries(M))((I==null?void 0:I.status)==="fulfilled"||(I==null?void 0:I.status)==="rejected")&&E!==(I==null?void 0:I.requestId)&&(C[E]=I)})}}),h=Pi({name:`${e}/invalidation`,initialState:_f,reducers:{updateProvidedBy:{reducer(b,C){var E,I;const{queryCacheKey:T,providedTags:M}=C.payload;for(const D of Object.values(b))for(const k of Object.values(D)){const O=k.indexOf(T);O!==-1&&k.splice(O,1)}for(const{type:D,id:k}of M){const O=(E=b[D]??(b[D]={}))[I=k||"__internal_without_id"]??(E[I]=[]);O.includes(T)||O.push(T)}},prepare:gf()}},extraReducers(b){b.addCase(d.actions.removeQueryResult,(C,{payload:{queryCacheKey:T}})=>{for(const M of Object.values(C))for(const E of Object.values(M)){const I=E.indexOf(T);I!==-1&&E.splice(I,1)}}).addMatcher(a,(C,T)=>{var E,I;const{provided:M}=o(T);for(const[D,k]of Object.entries(M))for(const[O,N]of Object.entries(k)){const $=(E=C[D]??(C[D]={}))[I=O||"__internal_without_id"]??(E[I]=[]);for(const z of N)$.includes(z)||$.push(z)}}).addMatcher(ha(vs(t),rm(t)),(C,T)=>{const M=_L(T,"providesTags",n,s),{queryCacheKey:E}=T.meta.arg;h.caseReducers.updateProvidedBy(C,h.actions.updateProvidedBy({queryCacheKey:E,providedTags:M}))})}}),v=Pi({name:`${e}/subscriptions`,initialState:_f,reducers:{updateSubscriptionOptions(b,C){},unsubscribeQueryResult(b,C){},internal_getRTKQSubscriptions(){}}}),g=Pi({name:`${e}/internalSubscriptions`,initialState:_f,reducers:{subscriptionsUpdated:{reducer(b,C){return $2(b,C.payload)},prepare:gf()}}}),x=Pi({name:`${e}/config`,initialState:{online:AY(),focused:IY(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(b,{payload:C}){b.middlewareRegistered=b.middlewareRegistered==="conflict"||i!==C?"conflict":!0}},extraReducers:b=>{b.addCase(jw,C=>{C.online=!0}).addCase(bL,C=>{C.online=!1}).addCase(Fw,C=>{C.focused=!0}).addCase(SL,C=>{C.focused=!1}).addMatcher(a,C=>({...C}))}}),y=Jg({queries:d.reducer,mutations:p.reducer,provided:h.reducer,subscriptions:g.reducer,config:x.reducer}),S=(b,C)=>y(c.match(C)?void 0:b,C),w={...x.actions,...d.actions,...v.actions,...g.actions,...p.actions,...h.actions,resetApiState:c};return{reducer:S,actions:w}}var Cl=Symbol.for("RTKQ/skipToken"),CL={status:"uninitialized"},Gk=up(CL,()=>{}),Yk=up(CL,()=>{});function WY({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=p=>Gk,i=p=>Yk;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:c,selectCachedArgsForQuery:d};function o(p){return{...p,...MY(p.status)}}function a(p){return p[t]}function s(p,h){return v=>{const g=e({queryArgs:v,endpointDefinition:h,endpointName:p});return r(v===Cl?n:S=>{var w,b;return((b=(w=a(S))==null?void 0:w.queries)==null?void 0:b[g])??Gk},o)}}function l(){return p=>{let h;return typeof p=="object"?h=Vd(p)??Cl:h=p,r(h===Cl?i:x=>{var y,S;return((S=(y=a(x))==null?void 0:y.mutations)==null?void 0:S[h])??Yk},o)}}function c(p,h){const v=p[t],g=new Set;for(const x of h.map(xS)){const y=v.provided[x.type];if(!y)continue;let S=(x.id!==void 0?y[x.id]:$k(Object.values(y)))??[];for(const w of S)g.add(w)}return $k(Array.from(g.values()).map(x=>{const y=v.queries[x];return y?[{queryCacheKey:x,endpointName:y.endpointName,originalArgs:y.originalArgs}]:[]}))}function d(p,h){return Object.values(p[t].queries).filter(v=>(v==null?void 0:v.endpointName)===h&&v.status!=="uninitialized").map(v=>v.originalArgs)}}var wu=WeakMap?new WeakMap:void 0,qk=({endpointName:e,queryArgs:t})=>{let r="";const n=wu==null?void 0:wu.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=No(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a,a));No(t)&&(wu==null||wu.set(t,i)),r=i}return`${e}(${r})`};function TL(...e){return function(r){const n=Ld(c=>{var d;return(d=r.extractRehydrationInfo)==null?void 0:d.call(r,c,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(c){let d=qk;if("serializeQueryArgs"in c.endpointDefinition){const p=c.endpointDefinition.serializeQueryArgs;d=h=>{const v=p(h);return typeof v=="string"?v:qk({...h,queryArgs:v})}}else r.serializeQueryArgs&&(d=r.serializeQueryArgs);return d(c)},tagTypes:[...r.tagTypes||[]]},o={endpointDefinitions:{},batch(c){c()},apiUid:zb(),extractRehydrationInfo:n,hasRehydrationInfo:Ld(c=>n(c)!=null)},a={injectEndpoints:l,enhanceEndpoints({addTagTypes:c,endpoints:d}){if(c)for(const p of c)i.tagTypes.includes(p)||i.tagTypes.push(p);if(d)for(const[p,h]of Object.entries(d))typeof h=="function"?h(o.endpointDefinitions[p]):Object.assign(o.endpointDefinitions[p]||{},h);return a}},s=e.map(c=>c.init(a,i,o));function l(c){const d=c.endpoints({query:p=>({...p,type:"query"}),mutation:p=>({...p,type:"mutation"})});for(const[p,h]of Object.entries(d)){if(c.overrideExisting!==!0&&p in o.endpointDefinitions){if(c.overrideExisting==="throw")throw new Error(gn(39));continue}o.endpointDefinitions[p]=h;for(const v of s)v.injectEndpoint(p,h)}return a}return a.injectEndpoints({endpoints:r.endpoints})}}function HY(e){for(let t in e)return!1;return!0}var VY=2147483647/1e3-1,UY=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:o,unsubscribeQueryResult:a}=t.internalActions,s=ha(a.match,r.fulfilled,r.rejected);function l(h){const v=i.currentSubscriptions[h];return!!v&&!HY(v)}const c={},d=(h,v,g)=>{var x;if(s(h)){const y=v.getState()[e],{queryCacheKey:S}=a.match(h)?h.payload:h.meta.arg;p(S,(x=y.queries[S])==null?void 0:x.endpointName,v,y.config)}if(t.util.resetApiState.match(h))for(const[y,S]of Object.entries(c))S&&clearTimeout(S),delete c[y];if(n.hasRehydrationInfo(h)){const y=v.getState()[e],{queries:S}=n.extractRehydrationInfo(h);for(const[w,b]of Object.entries(S))p(w,b==null?void 0:b.endpointName,v,y.config)}};function p(h,v,g,x){const y=n.endpointDefinitions[v],S=(y==null?void 0:y.keepUnusedDataFor)??x.keepUnusedDataFor;if(S===1/0)return;const w=Math.max(0,Math.min(S,VY));if(!l(h)){const b=c[h];b&&clearTimeout(b),c[h]=setTimeout(()=>{l(h)||g.dispatch(o({queryCacheKey:h})),delete c[h]},w*1e3)}}return d},GY=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:o,assertTagType:a,refetchQuery:s,internalState:l})=>{const{removeQueryResult:c}=o.internalActions,d=ha(vs(n),rm(n)),p=ha(vs(n,i),sc(n,i));let h=[];const v=(y,S)=>{d(y)?x(_L(y,"invalidatesTags",r,a),S):p(y)?x([],S):o.util.invalidateTags.match(y)&&x(Ww(y.payload,void 0,void 0,void 0,void 0,a),S)};function g(y){var S,w;for(const b in y.queries)if(((S=y.queries[b])==null?void 0:S.status)==="pending")return!0;for(const b in y.mutations)if(((w=y.mutations[b])==null?void 0:w.status)==="pending")return!0;return!1}function x(y,S){const w=S.getState(),b=w[e];if(h.push(...y),b.config.invalidationBehavior==="delayed"&&g(b))return;const C=h;if(h=[],C.length===0)return;const T=o.util.selectInvalidatedBy(w,C);t.batch(()=>{const M=Array.from(T.values());for(const{queryCacheKey:E}of M){const I=b.queries[E],D=l.currentSubscriptions[E]??{};I&&(Zu(D)===0?S.dispatch(c({queryCacheKey:E})):I.status!=="uninitialized"&&S.dispatch(s(I,E)))}})}return v},YY=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const o={},a=(h,v)=>{(r.internalActions.updateSubscriptionOptions.match(h)||r.internalActions.unsubscribeQueryResult.match(h))&&l(h.payload,v),(t.pending.match(h)||t.rejected.match(h)&&h.meta.condition)&&l(h.meta.arg,v),(t.fulfilled.match(h)||t.rejected.match(h)&&!h.meta.condition)&&s(h.meta.arg,v),r.util.resetApiState.match(h)&&d()};function s({queryCacheKey:h},v){const g=v.getState()[e],x=g.queries[h],y=i.currentSubscriptions[h];if(!x||x.status==="uninitialized")return;const{lowestPollingInterval:S,skipPollingIfUnfocused:w}=p(y);if(!Number.isFinite(S))return;const b=o[h];b!=null&&b.timeout&&(clearTimeout(b.timeout),b.timeout=void 0);const C=Date.now()+S;o[h]={nextPollTimestamp:C,pollingInterval:S,timeout:setTimeout(()=>{(g.config.focused||!w)&&v.dispatch(n(x,h)),s({queryCacheKey:h},v)},S)}}function l({queryCacheKey:h},v){const x=v.getState()[e].queries[h],y=i.currentSubscriptions[h];if(!x||x.status==="uninitialized")return;const{lowestPollingInterval:S}=p(y);if(!Number.isFinite(S)){c(h);return}const w=o[h],b=Date.now()+S;(!w||b<w.nextPollTimestamp)&&s({queryCacheKey:h},v)}function c(h){const v=o[h];v!=null&&v.timeout&&clearTimeout(v.timeout),delete o[h]}function d(){for(const h of Object.keys(o))c(h)}function p(h={}){let v=!1,g=Number.POSITIVE_INFINITY;for(let x in h)h[x].pollingInterval&&(g=Math.min(h[x].pollingInterval,g),v=h[x].skipPollingIfUnfocused||v);return{lowestPollingInterval:g,skipPollingIfUnfocused:v}}return a},qY=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:o}=r.internalActions,a=(l,c)=>{Fw.match(l)&&s(c,"refetchOnFocus"),jw.match(l)&&s(c,"refetchOnReconnect")};function s(l,c){const d=l.getState()[e],p=d.queries,h=i.currentSubscriptions;t.batch(()=>{for(const v of Object.keys(h)){const g=p[v],x=h[v];if(!x||!g)continue;(Object.values(x).some(S=>S[c]===!0)||Object.values(x).every(S=>S[c]===void 0)&&d.config[c])&&(Zu(x)===0?l.dispatch(o({queryCacheKey:v})):g.status!=="uninitialized"&&l.dispatch(n(g,v)))}})}return a},Xk=new Error("Promise never resolved before cacheEntryRemoved."),XY=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:o})=>{const a=Ux(n),s=Ux(i),l=vs(n,i),c={},d=(v,g,x)=>{const y=p(v);if(n.pending.match(v)){const S=x[t].queries[y],w=g.getState()[t].queries[y];!S&&w&&h(v.meta.arg.endpointName,v.meta.arg.originalArgs,y,g,v.meta.requestId)}else if(i.pending.match(v))g.getState()[t].mutations[y]&&h(v.meta.arg.endpointName,v.meta.arg.originalArgs,y,g,v.meta.requestId);else if(l(v)){const S=c[y];S!=null&&S.valueResolved&&(S.valueResolved({data:v.payload,meta:v.meta.baseQueryMeta}),delete S.valueResolved)}else if(e.internalActions.removeQueryResult.match(v)||e.internalActions.removeMutationResult.match(v)){const S=c[y];S&&(delete c[y],S.cacheEntryRemoved())}else if(e.util.resetApiState.match(v))for(const[S,w]of Object.entries(c))delete c[S],w.cacheEntryRemoved()};function p(v){return a(v)?v.meta.arg.queryCacheKey:s(v)?v.meta.arg.fixedCacheKey??v.meta.requestId:e.internalActions.removeQueryResult.match(v)?v.payload.queryCacheKey:e.internalActions.removeMutationResult.match(v)?Vd(v.payload):""}function h(v,g,x,y,S){const w=r.endpointDefinitions[v],b=w==null?void 0:w.onCacheEntryAdded;if(!b)return;let C={};const T=new Promise(O=>{C.cacheEntryRemoved=O}),M=Promise.race([new Promise(O=>{C.valueResolved=O}),T.then(()=>{throw Xk})]);M.catch(()=>{}),c[x]=C;const E=e.endpoints[v].select(w.type==="query"?g:x),I=y.dispatch((O,N,$)=>$),D={...y,getCacheEntry:()=>E(y.getState()),requestId:S,extra:I,updateCachedData:w.type==="query"?O=>y.dispatch(e.util.updateQueryData(v,g,O)):void 0,cacheDataLoaded:M,cacheEntryRemoved:T},k=b(g,D);Promise.resolve(k).catch(O=>{if(O!==Xk)throw O})}return d},KY=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=Fb(r,n),o=sc(r,n),a=vs(r,n),s={};return(c,d)=>{var p,h;if(i(c)){const{requestId:v,arg:{endpointName:g,originalArgs:x}}=c.meta,y=t.endpointDefinitions[g],S=y==null?void 0:y.onQueryStarted;if(S){const w={},b=new Promise((E,I)=>{w.resolve=E,w.reject=I});b.catch(()=>{}),s[v]=w;const C=e.endpoints[g].select(y.type==="query"?x:v),T=d.dispatch((E,I,D)=>D),M={...d,getCacheEntry:()=>C(d.getState()),requestId:v,extra:T,updateCachedData:y.type==="query"?E=>d.dispatch(e.util.updateQueryData(g,x,E)):void 0,queryFulfilled:b};S(x,M)}}else if(a(c)){const{requestId:v,baseQueryMeta:g}=c.meta;(p=s[v])==null||p.resolve({data:c.payload,meta:g}),delete s[v]}else if(o(c)){const{requestId:v,rejectedWithValue:g,baseQueryMeta:x}=c.meta;(h=s[v])==null||h.reject({error:c.payload??c.error,isUnhandledError:!g,meta:x}),delete s[v]}}},ZY=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t))},QY=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,o=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,l=(v,g)=>{var y,S,w;if(a.match(g)){const{queryCacheKey:b,requestId:C,options:T}=g.payload;return(y=v==null?void 0:v[b])!=null&&y[C]&&(v[b][C]=T),!0}if(s.match(g)){const{queryCacheKey:b,requestId:C}=g.payload;return v[b]&&delete v[b][C],!0}if(e.internalActions.removeQueryResult.match(g))return delete v[g.payload.queryCacheKey],!0;if(t.pending.match(g)){const{meta:{arg:b,requestId:C}}=g,T=v[S=b.queryCacheKey]??(v[S]={});return T[`${C}_running`]={},b.subscribe&&(T[C]=b.subscriptionOptions??T[C]??{}),!0}let x=!1;if(t.fulfilled.match(g)||t.rejected.match(g)){const b=v[g.meta.arg.queryCacheKey]||{},C=`${g.meta.requestId}_running`;x||(x=!!b[C]),delete b[C]}if(t.rejected.match(g)){const{meta:{condition:b,arg:C,requestId:T}}=g;if(b&&C.subscribe){const M=v[w=C.queryCacheKey]??(v[w]={});M[T]=C.subscriptionOptions??M[T]??{},x=!0}}return x},c=()=>r.currentSubscriptions,h={getSubscriptions:c,getSubscriptionCount:v=>{const x=c()[v]??{};return Zu(x)},isRequestSubscribed:(v,g)=>{var y;const x=c();return!!((y=x==null?void 0:x[v])!=null&&y[g])}};return(v,g)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(v))return i=r.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(v))return[!1,h];const x=l(r.currentSubscriptions,v);let y=!0;if(x){o||(o=setTimeout(()=>{const b=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,C]=oI(i,()=>b);g.next(e.internalActions.subscriptionsUpdated(C)),i=b,o=null},500));const S=typeof v.type=="string"&&!!v.type.startsWith(n),w=t.rejected.match(v)&&v.meta.condition&&!!v.meta.arg.subscribe;y=!S&&!w}return[y,!1]}};function JY(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:o}=i,a={invalidateTags:Cn(`${t}/invalidateTags`)},s=p=>p.type.startsWith(`${t}/`),l=[ZY,UY,GY,YY,XY,KY];return{middleware:p=>{let h=!1;const g={...e,internalState:{currentSubscriptions:{}},refetchQuery:d,isThisApiSliceAction:s},x=l.map(w=>w(g)),y=QY(g),S=qY(g);return w=>b=>{if(!QA(b))return w(b);h||(h=!0,p.dispatch(n.internalActions.middlewareRegistered(o)));const C={...p,next:w},T=p.getState(),[M,E]=y(b,C,T);let I;if(M?I=w(b):I=E,p.getState()[t]&&(S(b,C,T),s(b)||i.hasRehydrationInfo(b)))for(let D of x)D(b,C,T);return I}},actions:a};function d(p,h,v={}){return r({type:"query",endpointName:p.endpointName,originalArgs:p.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:h,...v})}}function Ua(e,...t){return Object.assign(e,...t)}var Kk=Symbol(),ML=({createSelector:e=$b}={})=>({name:Kk,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:o,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:d},p){UB();const h=V=>V;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:jw,onOffline:bL,onFocus:Fw,onFocusLost:SL},util:{}});const{queryThunk:v,mutationThunk:g,patchQueryData:x,updateQueryData:y,upsertQueryData:S,prefetch:w,buildMatchThunkActions:b}=FY({baseQuery:r,reducerPath:i,context:p,api:t,serializeQueryArgs:o,assertTagType:h}),{reducer:C,actions:T}=jY({context:p,queryThunk:v,mutationThunk:g,reducerPath:i,assertTagType:h,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:i,invalidationBehavior:d}});Ua(t.util,{patchQueryData:x,updateQueryData:y,upsertQueryData:S,prefetch:w,resetApiState:T.resetApiState}),Ua(t.internalActions,T);const{middleware:M,actions:E}=JY({reducerPath:i,context:p,queryThunk:v,mutationThunk:g,api:t,assertTagType:h});Ua(t.util,E),Ua(t,{reducer:C,middleware:M});const{buildQuerySelector:I,buildMutationSelector:D,selectInvalidatedBy:k,selectCachedArgsForQuery:O}=WY({serializeQueryArgs:o,reducerPath:i,createSelector:e});Ua(t.util,{selectInvalidatedBy:k,selectCachedArgsForQuery:O});const{buildInitiateQuery:N,buildInitiateMutation:$,getRunningMutationThunk:z,getRunningMutationsThunk:F,getRunningQueriesThunk:j,getRunningQueryThunk:K}=zY({queryThunk:v,mutationThunk:g,api:t,serializeQueryArgs:o,context:p});return Ua(t.util,{getRunningMutationThunk:z,getRunningMutationsThunk:F,getRunningQueryThunk:K,getRunningQueriesThunk:j}),{name:Kk,injectEndpoint(V,H){var W;const Y=t;(W=Y.endpoints)[V]??(W[V]={}),wL(H)?Ua(Y.endpoints[V],{name:V,select:I(V,H),initiate:N(V,H)},b(v,V)):NY(H)&&Ua(Y.endpoints[V],{name:V,select:D(),initiate:$(V)},b(g,V))}}}});ML();function eq(e){return e.type==="query"}function tq(e){return e.type==="mutation"}function nv(e,...t){return Object.assign(e,...t)}function v1(e){return e.replace(e[0],e[0].toUpperCase())}var _u=WeakMap?new WeakMap:void 0,rq=({endpointName:e,queryArgs:t})=>{let r="";const n=_u==null?void 0:_u.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=No(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a,a));No(t)&&(_u==null||_u.set(t,i)),r=i}return`${e}(${r})`},g1=Symbol();function Zk(e,t,r,n){const i=L.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),o=L.useRef(i);return L.useEffect(()=>{o.current.serialized!==i.serialized&&(o.current=i)},[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}function m1(e){const t=L.useRef(e);return L.useEffect(()=>{us(t.current,e)||(t.current=e)},[e]),us(t.current,e)?t.current:e}var nq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iq=nq(),oq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",aq=oq(),sq=()=>iq||aq?L.useLayoutEffect:L.useEffect,lq=sq(),uq=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:yL.pending}:e;function cq({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:o,createSelector:a},serializeQueryArgs:s,context:l}){const c=o?g=>g():L.useEffect;return{buildQueryHooks:h,buildMutationHook:v,usePrefetch:p};function d(g,x,y){if(x!=null&&x.endpointName&&g.isUninitialized){const{endpointName:M}=x,E=l.endpointDefinitions[M];s({queryArgs:x.originalArgs,endpointDefinition:E,endpointName:M})===s({queryArgs:y,endpointDefinition:E,endpointName:M})&&(x=void 0)}let S=g.isSuccess?g.data:x==null?void 0:x.data;S===void 0&&(S=g.data);const w=S!==void 0,b=g.isLoading,C=(!x||x.isLoading||x.isUninitialized)&&!w&&b,T=g.isSuccess||b&&w;return{...g,data:S,currentData:g.data,isFetching:b,isLoading:C,isSuccess:T}}function p(g,x){const y=r(),S=m1(x);return L.useCallback((w,b)=>y(e.util.prefetch(g,w,{...S,...b})),[g,y,S])}function h(g){const x=(w,{refetchOnReconnect:b,refetchOnFocus:C,refetchOnMountOrArgChange:T,skip:M=!1,pollingInterval:E=0,skipPollingIfUnfocused:I=!1}={})=>{const{initiate:D}=e.endpoints[g],k=r(),O=L.useRef(void 0);if(!O.current){const Y=k(e.internalActions.internal_getRTKQSubscriptions());O.current=Y}const N=Zk(M?Cl:w,rq,l.endpointDefinitions[g],g),$=m1({refetchOnReconnect:b,refetchOnFocus:C,pollingInterval:E,skipPollingIfUnfocused:I}),z=L.useRef(!1),F=L.useRef(void 0);let{queryCacheKey:j,requestId:K}=F.current||{},V=!1;j&&K&&(V=O.current.isRequestSubscribed(j,K));const H=!V&&z.current;return c(()=>{z.current=V}),c(()=>{H&&(F.current=void 0)},[H]),c(()=>{var q;const Y=F.current;if(N===Cl){Y==null||Y.unsubscribe(),F.current=void 0;return}const W=(q=F.current)==null?void 0:q.subscriptionOptions;if(!Y||Y.arg!==N){Y==null||Y.unsubscribe();const te=k(D(N,{subscriptionOptions:$,forceRefetch:T}));F.current=te}else $!==W&&Y.updateSubscriptionOptions($)},[k,D,T,N,$,H]),L.useEffect(()=>()=>{var Y;(Y=F.current)==null||Y.unsubscribe(),F.current=void 0},[]),L.useMemo(()=>({refetch:()=>{var Y;if(!F.current)throw new Error(gn(38));return(Y=F.current)==null?void 0:Y.refetch()}}),[])},y=({refetchOnReconnect:w,refetchOnFocus:b,pollingInterval:C=0,skipPollingIfUnfocused:T=!1}={})=>{const{initiate:M}=e.endpoints[g],E=r(),[I,D]=L.useState(g1),k=L.useRef(void 0),O=m1({refetchOnReconnect:w,refetchOnFocus:b,pollingInterval:C,skipPollingIfUnfocused:T});c(()=>{var F,j;const z=(F=k.current)==null?void 0:F.subscriptionOptions;O!==z&&((j=k.current)==null||j.updateSubscriptionOptions(O))},[O]);const N=L.useRef(O);c(()=>{N.current=O},[O]);const $=L.useCallback(function(z,F=!1){let j;return t(()=>{var K;(K=k.current)==null||K.unsubscribe(),k.current=j=E(M(z,{subscriptionOptions:N.current,forceRefetch:!F})),D(z)}),j},[E,M]);return L.useEffect(()=>()=>{var z;(z=k==null?void 0:k.current)==null||z.unsubscribe()},[]),L.useEffect(()=>{I!==g1&&!k.current&&$(I,!0)},[I,$]),L.useMemo(()=>[$,I],[$,I])},S=(w,{skip:b=!1,selectFromResult:C}={})=>{const{select:T}=e.endpoints[g],M=Zk(b?Cl:w,s,l.endpointDefinitions[g],g),E=L.useRef(void 0),I=L.useMemo(()=>a([T(M),($,z)=>z,$=>M],d,{memoizeOptions:{resultEqualityCheck:us}}),[T,M]),D=L.useMemo(()=>C?a([I],C,{devModeChecks:{identityFunctionCheck:"never"}}):I,[I,C]),k=n($=>D($,E.current),us),O=i(),N=I(O.getState(),E.current);return lq(()=>{E.current=N},[N]),k};return{useQueryState:S,useQuerySubscription:x,useLazyQuerySubscription:y,useLazyQuery(w){const[b,C]=y(w),T=S(C,{...w,skip:C===g1}),M=L.useMemo(()=>({lastArg:C}),[C]);return L.useMemo(()=>[b,T,M],[b,T,M])},useQuery(w,b){const C=x(w,b),T=S(w,{selectFromResult:w===Cl||b!=null&&b.skip?void 0:uq,...b}),{data:M,status:E,isLoading:I,isSuccess:D,isError:k,error:O}=T;return L.useDebugValue({data:M,status:E,isLoading:I,isSuccess:D,isError:k,error:O}),L.useMemo(()=>({...T,...C}),[T,C])}}}function v(g){return({selectFromResult:x,fixedCacheKey:y}={})=>{const{select:S,initiate:w}=e.endpoints[g],b=r(),[C,T]=L.useState();L.useEffect(()=>()=>{C!=null&&C.arg.fixedCacheKey||C==null||C.reset()},[C]);const M=L.useCallback(function(W){const q=b(w(W,{fixedCacheKey:y}));return T(q),q},[b,w,y]),{requestId:E}=C||{},I=L.useMemo(()=>S({fixedCacheKey:y,requestId:C==null?void 0:C.requestId}),[y,C,S]),D=L.useMemo(()=>x?a([I],x):I,[x,I]),k=n(D,us),O=y==null?C==null?void 0:C.arg.originalArgs:void 0,N=L.useCallback(()=>{t(()=>{C&&T(void 0),y&&b(e.internalActions.removeMutationResult({requestId:E,fixedCacheKey:y}))})},[b,y,C,E]),{endpointName:$,data:z,status:F,isLoading:j,isSuccess:K,isError:V,error:H}=k;L.useDebugValue({endpointName:$,data:z,status:F,isLoading:j,isSuccess:K,isError:V,error:H});const Y=L.useMemo(()=>({...k,originalArgs:O,reset:N}),[k,O,N]);return L.useMemo(()=>[M,Y],[M,Y])}}}var fq=Symbol(),dq=({batch:e=Rz,hooks:t={useDispatch:TI,useSelector:gI,useStore:CI},createSelector:r=$b,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:fq,init(o,{serializeQueryArgs:a},s){const l=o,{buildQueryHooks:c,buildMutationHook:d,usePrefetch:p}=cq({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:a,context:s});return nv(l,{usePrefetch:p}),nv(s,{batch:e}),{injectEndpoint(h,v){if(eq(v)){const{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:y,useQueryState:S,useQuerySubscription:w}=c(h);nv(l.endpoints[h],{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:y,useQueryState:S,useQuerySubscription:w}),o[`use${v1(h)}Query`]=g,o[`useLazy${v1(h)}Query`]=x}else if(tq(v)){const g=d(h);nv(l.endpoints[h],{useMutation:g}),o[`use${v1(h)}Mutation`]=g}}}}}),pq=TL(ML(),dq());const hq=(e,t,r)=>OY(window.baseUrl?{baseUrl:window.baseUrl,credentials:"include"}:void 0)(e,t,r),Cg=pq({baseQuery:hq,endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:yl}),getTasks:e.query({query:()=>"tasks",transformResponse:yl}),getExceptions:e.query({query:()=>"exceptions",transformResponse:yl}),getLogs:e.query({query:()=>"logs",transformResponse:yl}),getWorkerCount:e.query({query:()=>"worker-count",transformResponse:yl}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:SY(rM(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:rM(t)})}),resetStats:e.mutation({query:()=>({url:"stats/reset",method:"GET"})}),stopSwarm:e.mutation({query:()=>({url:"stop",method:"GET"})})})}),{useGetStatsQuery:vq,useGetTasksQuery:gq,useGetExceptionsQuery:mq,useGetLogsQuery:yq,useGetWorkerCountQuery:xq,useStartSwarmMutation:Sq,useUpdateUserSettingsMutation:bq,useStopSwarmMutation:wq,useResetStatsMutation:_q}=Cg;function wp(e,{payload:t}){return xY(e,t)}const Cq=Io,kL=Pi({name:"swarm",initialState:Cq,reducers:{setSwarm:wp}}),Pm=kL.actions,Tq=kL.reducer;function Mq({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return P.jsx(mL,{onSubmit:r,children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[P.jsx(Xe,{children:`${t.userClassName} Settings`}),P.jsx($w,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([o,a])=>P.jsx(El,{defaultValue:a,inputProps:{"data-type":typeof a=="number"?"number":"text"},label:qx(o),name:o},`user-to-edit-${o}`)),P.jsx(ci,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function kq({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:o}){const[a,s]=L.useState(!1),[l,c]=L.useState(),[d]=bq(),p=y=>{l&&(i({users:{...o,[l.userClassName]:y}}),d({...y,userClassName:l.userClassName}),s(!1))},h=y=>()=>r.includes(y)?n(r.filter(S=>S!==y)):n(r.concat(y)),v=r.length,g=e.length,x=y=>y.target.checked?n(e):n([]);return P.jsxs(P.Fragment,{children:[P.jsx(tt,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:P.jsxs(tt,{sx:{maxHeight:"30vh",overflow:"auto"},children:[P.jsx(Cm,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),P.jsx(qD,{children:P.jsx(aL,{component:ji,children:P.jsxs(iL,{children:[P.jsx(sL,{children:P.jsx(_g,{children:P.jsx(Sl,{colSpan:4,padding:"checkbox",children:P.jsx(vS,{checked:g>0&&v===g,indeterminate:v>0&&v<g,onChange:x})})})}),P.jsx(oL,{children:Object.entries(o).map(([y,S])=>P.jsxs(_g,{hover:!0,children:[P.jsx(Sl,{onClick:h(y),padding:"checkbox",children:P.jsx(vS,{checked:r.includes(y)})}),P.jsx(Sl,{children:y}),P.jsx(Sl,{children:P.jsx(Xe,{variant:"subtitle2",children:S.host})}),P.jsx(Sl,{align:"right",children:P.jsx(ba,{onClick:()=>{s(!a),c({userClass:S,userClassName:y})},children:P.jsx(sY,{})})})]},`user-class-${y}`))})]})})})]})}),P.jsx(km,{onClose:()=>s(!1),open:a,children:l&&P.jsx(Mq,{availableTasks:t[l.userClassName],handleEditUser:p,userToEdit:l})})]})}const Rq={setSwarm:Pm.setSwarm},Pq=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Eq=di(Pq,Rq)(kq);function Aq(){const[e,t]=L.useState({}),[r,n]=L.useState(!0),i=(a,s,l,{onlyDelete:c}={onlyDelete:!1})=>{const d={...e};let p;const h=l.match&&Array.isArray(l.match)&&l.match.find(({pattern:v})=>!new RegExp(v).test(s));l.minLength&&s.length<l.minLength?p=`Please enter at least ${l.minLength} characters`:h?p=h.message||"Invalid format":l.match&&!Array.isArray(l.match)&&!new RegExp(l.match.pattern).test(s)?p=l.match.message||"Invalid format":delete d[a],p&&!c&&(d[a]=p),t(d),n(Object.keys(d).length===0)};return{register:(a,s,l="onChange")=>({...e[a]&&s.level?{color:s.level,focused:!0,FormHelperTextProps:{sx:{color:d=>d.palette.warning.main}}}:{},name:a,onChange:({target:{value:d}})=>i(a,d,s,{onlyDelete:!0}),[l]:({target:{value:d}})=>i(a,d,s),error:!!e[a]&&!s.level,helperText:e[a]||""}),isValid:r}}const Iq=/^(?:[a-zA-Z][a-zA-Z\d+\-.]*):\/\/[^\s/$.?#].[^\s]*$/,Dq=({isDisabled:e,isDistributed:t,workerCount:r})=>e?{isFormDisabled:!0}:t&&!r?{isFormDisabled:!0,reason:"You can't start a distributed test before at least one worker processes has connected"}:{};function Lq({allProfiles:e,availableShapeClasses:t,availableUserClasses:r,host:n,extraOptions:i,hideCommonOptions:o,shapeUseCommonOptions:a,numUsers:s,userCount:l,overrideHostWarning:c,missingHostWarning:d,profile:p,runTime:h,setSwarm:v,showUserclassPicker:g,spawnRate:x,alert:y,isDisabled:S=!1,isEditSwarm:w=!1,isHostRequired:b,onFormChange:C,onFormSubmit:T,advancedOptions:M}){const[E]=Sq(),[I,D]=L.useState(""),[k,O]=L.useState(r),N=kn(({swarm:H})=>H),{register:$}=Aq(),{reason:z,isFormDisabled:F}=L.useMemo(()=>Dq({isDisabled:S,...N}),[S,N]),j=async H=>{const{data:Y}=await E({...H,...g&&k?{userClasses:k}:{}});Y&&Y.success?v({state:Jr.RUNNING,host:H.host||n,runTime:H.runTime,spawnRate:H.spawnRate,userCount:H.userCount,profile:H.profile}):D(Y?Y.message:"An unknown error occured."),T&&T(H)},K=H=>{I&&D(""),C&&C(H)},V=H=>{if(!a){const Y=H.target.value!==t[0];v({hideCommonOptions:Y})}};return P.jsxs(bp,{maxWidth:"md",sx:{my:2},children:[P.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:w?"Edit running load test":"Start new load test"}),!w&&g&&P.jsx(tt,{marginBottom:2,marginTop:2,children:P.jsx(Eq,{availableUserClasses:r,selectedUserClasses:k,setSelectedUserClasses:O})}),P.jsx(mL,{onChange:K,onSubmit:j,children:P.jsxs(tt,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[!w&&g&&P.jsx($w,{label:"Shape Class",name:"shapeClass",onChange:V,options:t}),P.jsx(Bk,{defaultValue:o&&"0"||l||s||1,disabled:!!o,label:"Number of users (peak concurrency)",name:"userCount",required:!0,title:o?"Disabled for tests using LoadTestShape class":""}),P.jsx(Bk,{defaultValue:o&&"0"||x||1,disabled:!!o,label:"Ramp up (users started/second)",name:"spawnRate",required:!0,title:o?"Disabled for tests using LoadTestShape class":""}),!w&&P.jsxs(P.Fragment,{children:[P.jsx(El,{...$("host",{match:{pattern:Iq,message:"Please use a valid url format e.g. https://google.com"},level:"warning"},"onBlur"),defaultValue:n,label:`Host ${c?"(setting this will override the host for the User classes)":""}`,name:"host",required:b}),P.jsxs(vw,{children:[P.jsx(mw,{expandIcon:P.jsx(Ow,{}),children:P.jsx(Xe,{children:"Advanced options"})}),P.jsx(gw,{children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[P.jsx(El,{defaultValue:h,disabled:!!o,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"},title:o?"Disabled for tests using LoadTestShape class":""}),P.jsx(NW,{defaultValue:p,disablePortal:!0,freeSolo:!0,options:e&&Array.isArray(e)?e:[],renderInput:H=>P.jsx(El,{...H,defaultValue:p,label:"Profile",name:"profile"})}),M&&M.map(({component:H,...Y},W)=>H?P.jsx(H,{...Y}):L.createElement(zw,{...Y,key:`advanced-parameter-${W}`}))]})})]})]}),!!i&&!gL(i)&&P.jsx(TY,{extraOptions:i}),y&&!I&&P.jsx(ua,{severity:y.level||"info",children:y.message}),(I||z)&&P.jsx(ua,{severity:"error",children:I||z}),!b&&d&&P.jsx(ua,{severity:"info",children:"One or more User class in your locustfile has no host attribute set. Please provide one in the field above."}),P.jsx(ci,{disabled:F,size:"large",type:"submit",variant:"contained",children:w?"Update":"Start"})]})})]})}const Oq=({swarm:{allProfiles:e,availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:o,host:a,numUsers:s,userCount:l,overrideHostWarning:c,missingHostWarning:d,isHostRequired:p,profile:h,runTime:v,spawnRate:g,showUserclassPicker:x}},y)=>({allProfiles:e||(y==null?void 0:y.allProfiles),availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:o,host:a,overrideHostWarning:c,missingHostWarning:d,isHostRequired:p,profile:h,showUserclassPicker:x,numUsers:s,userCount:l,runTime:v,spawnRate:g}),Nq={setSwarm:Pm.setSwarm},Hw=di(Oq,Nq)(Lq);function Bq(e){const[t,r]=L.useState(!1),{hideCommonOptions:n}=kn(({swarm:i})=>i);return P.jsxs(P.Fragment,{children:[P.jsx(rL,{title:n?"Disabled for tests using LoadTestShape class":"",children:P.jsx(tt,{children:P.jsx(ci,{color:"secondary",disabled:!!n,onClick:()=>r(!0),sx:{minHeight:"100%"},type:"button",variant:"contained",children:"Edit"})})}),P.jsx(km,{onClose:()=>r(!1),open:t,children:P.jsx(Hw,{...e,isEditSwarm:!0,onFormSubmit:()=>r(!1)})})]})}function $q(e){const[t,r]=L.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(ci,{color:"success",onClick:()=>r(!0),type:"button",variant:"contained",children:"New"}),P.jsx(km,{onClose:()=>r(!1),open:t,children:P.jsx(Hw,{...e})})]})}function zq(){const[e]=_q(),t=()=>{e()};return P.jsx(ci,{color:"warning",onClick:t,type:"button",variant:"contained",children:"Reset"})}function Fq(){const[e,t]=L.useState(!1),[r]=wq();L.useEffect(()=>{t(!1)},[]);const n=()=>{r(),t(!0)};return P.jsx(ci,{color:"error",disabled:e,onClick:n,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function Qk(){const e=kn(({swarm:t})=>t.state);return e===Jr.READY?null:P.jsxs(tt,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===Jr.STOPPED?P.jsx($q,{}):P.jsxs(P.Fragment,{children:[P.jsx(Bq,{}),P.jsx(Fq,{})]}),P.jsx(zq,{})]})}function jq(){const e=Fo(),[t,r]=L.useState(!1);L.useEffect(()=>{const i=()=>{window.innerWidth>=e.breakpoints.values.md&&r(!1)};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[]);const n=i=>()=>{r(i)};return P.jsxs(P.Fragment,{children:[P.jsx(N9,{position:"static",children:P.jsx(bp,{maxWidth:"xl",children:P.jsxs(RG,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[P.jsx(fn,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:P.jsx(lL,{})}),P.jsx(ba,{"aria-label":"menu",color:"inherit",edge:"start",onClick:n(!0),sx:{display:{xs:"block",md:"none"}},children:P.jsx(aY,{})}),P.jsxs(tt,{sx:{display:{xs:"none",md:"flex"},columnGap:{md:2,lg:6}},children:[P.jsx(Nk,{}),P.jsx(Qk,{}),P.jsx(yS,{})]})]})})}),P.jsx(nV,{anchor:"right",onClose:n(!1),open:t,children:P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",columnGap:{md:2,lg:6},rowGap:2,p:2,maxWidth:"100vw"},children:[P.jsx(tt,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(yS,{})}),P.jsx(Qk,{}),P.jsx(Nk,{})]})})]})}function Wq({children:e}){return P.jsxs(P.Fragment,{children:[P.jsxs(tt,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[P.jsx(jq,{}),P.jsx("main",{children:e})]}),P.jsx(yY,{})]})}const RL=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),PL="logViewer";function _p(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=L.useRef(e);L.useEffect(()=>{i.current=e},[e]),L.useEffect(()=>{if(!r)return;n&&i.current();const o=setInterval(()=>i.current(),t);return()=>{clearInterval(o)}},[t,r])}const Hq={},EL=Pi({name:"notification",initialState:Hq,reducers:{setNotification:wp}}),AL=EL.actions,Vq=EL.reducer;function Uq(e,{key:t,shouldNotify:r}){const n=To(AL.setNotification),i=kn(({url:{query:a}})=>a&&a.tab),o=`${t}Notification`;L.useEffect(()=>{e.length>0&&e.length<localStorage[o]&&(localStorage[o]=e.length),e.length>(localStorage[o]||0)&&(!i||i!==t)&&(!r||r&&r(o))&&(n({[t]:!0}),localStorage[o]=e.length)},[e])}const Gq={master:[],workers:{}},IL=Pi({name:"logViewer",initialState:Gq,reducers:{setLogs:wp}}),Yq=IL.actions,qq=IL.reducer,DL=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?DL(r):r),[]),Xq={master:[],workers:{}};function Kq(){const e=kn(({swarm:l})=>l),t=To(Yq.setLogs),{data:r,refetch:n}=yq(),i=r||Xq,o=L.useMemo(()=>DL(Object.values(i.workers)),[i.workers]),a=L.useMemo(()=>[...i.master].concat(o),[i.master,i.workers]),s=L.useCallback(l=>a.slice(localStorage[l]).some(RL),[a]);return _p(n,5e3,{shouldRunInterval:e.state===Jr.SPAWNING||e.state==Jr.RUNNING}),Uq(a,{key:PL,shouldNotify:s}),L.useEffect(()=>{t(i)},[i]),i}function Zq(e,t){const r=t?-1:1;return function(n,i){const o=n[e],a=i[e];return o<a?r*-1:o>a?r*1:0}}function Qq(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=L.useState(e),[o,a]=L.useState(!1),s=L.useRef(),l=d=>{const h=(t?e.slice(0,-1):[...e]).sort(Zq(d,d===s.current&&!o));i(t?[...h,...e.slice(-1)]:h)},c=L.useCallback(d=>{s.current||(s.current=r);const p=d.target.getAttribute("data-sortkey");if(p===s.current)if(o){a(!1),s.current=void 0,l(r);return}else a(!0);else o&&a(!1);l(p),s.current=p},[s,e,o]);return L.useEffect(()=>{e.length?l(s.current||r):l.length&&i(e)},[e]),{onTableHeadClick:c,sortedRows:n,currentSortField:s.current}}const Jf=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Jq({content:e,formatter:t,round:r}){return t?t(e):r?Jf(e,r):e}function Cp({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:o,currentSortField:a}=Qq(e,{hasTotalRow:r,defaultSortKey:n});return P.jsx(aL,{component:ji,children:P.jsxs(iL,{children:[P.jsx(sL,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:P.jsx(_g,{children:t.map(({title:s,key:l})=>P.jsx(Sl,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:a===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),P.jsx(oL,{children:o.map((s,l)=>P.jsx(_g,{children:t.map(({key:c,...d},p)=>P.jsx(Sl,{children:P.jsx(Jq,{content:s[c],...d})},`table-row=${p}`))},`${s.name}-${l}`))})]})})}function eX({rows:e,tableStructure:t}){return t?P.jsx(Cp,{rows:e,structure:t}):null}const tX=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:o})=>o===r.tab),i=r&&r.tab&&t&&t.find(({key:o})=>o===r.tab);return{tableStructure:n?n.structure.map(({key:o,...a})=>({key:kI(o),...a})):null,rows:i?i.data:[]}},rX=di(tX)(eX),nX=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message"},{key:"traceback",title:"Traceback"}];function iX({exceptions:e}){return P.jsx(Cp,{rows:e,structure:nX})}const oX=({ui:{exceptions:e}})=>({exceptions:e}),aX=di(oX)(iX),sX={totalRps:0,failRatio:0,startTime:"",stats:[],errors:[],exceptions:[],charts:(Io.history||[]).reduce(Rm,{}),ratios:{},userCount:0};var XA;const lX=(XA=Io.percentilesToChart)==null?void 0:XA.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),uX=e=>Rm(e,{...lX,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),LL=Pi({name:"ui",initialState:sX,reducers:{setUi:wp,updateCharts:(e,{payload:t})=>({...e,charts:Rm(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...uX(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[(e.charts.time||[""])[0],t]}})}}),vd=LL.actions,cX=LL.reducer;function fX(){const{data:e,refetch:t}=mq(),r=To(vd.setUi),n=kn(({swarm:o})=>o.state),i=n===Jr.SPAWNING||n==Jr.RUNNING;L.useEffect(()=>{e&&r({exceptions:e.exceptions})},[e]),_p(t,5e3,{shouldRunInterval:i,immediate:!0})}function dX(){return fX(),P.jsx(aX,{})}const pX=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message"}];function hX({errors:e}){return P.jsx(Cp,{rows:e,structure:pX})}const vX=({ui:{errors:e}})=>({errors:e}),gX=di(vX)(hX),Jk=.5,mX=()=>{const[e,t]=L.useState(!1),r=L.useRef(null);return L.useEffect(()=>{const n=new IntersectionObserver(([i])=>{i.isIntersecting&&t(!0)},{threshold:Jk});return r.current&&n.observe(r.current),()=>{r.current&&n.unobserve(r.current)}},[Jk]),{isVisible:e,elementRef:r}};function Cf({children:e,sx:t}){const{isVisible:r,elementRef:n}=mX();return P.jsx(tt,{ref:n,sx:{...t,opacity:r?1:0,transition:"opacity 1s ease-out"},children:e})}function y1({tierName:e,price:t,features:r,recommended:n,ctaText:i,href:o}){return P.jsxs(rH,{sx:{flex:1,border:n?2:void 0,borderColor:n?"primary.main":void 0,position:"relative",overflow:"visible"},children:[n&&P.jsx(tt,{sx:{position:"absolute",top:-12,left:24,bgcolor:"primary.main",color:"white",px:2,py:.5,borderRadius:1,fontSize:"0.875rem",fontWeight:"bold"},children:"Recommended"}),P.jsxs(aH,{sx:{p:4,pt:5},children:[P.jsxs(tt,{sx:{height:{md:"120px"}},children:[P.jsx(Xe,{component:"h2",sx:{fontWeight:"bold",mb:2},variant:"h5",children:e}),t&&P.jsxs(tt,{sx:{display:"flex",alignItems:"baseline",gap:.5,mb:2},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},variant:"h4",children:t}),P.jsx(Xe,{color:"text.secondary",variant:"body1",children:"/month"})]})]}),P.jsx(Ew,{sx:{mb:4},children:r.map(({title:a,description:s,icon:l},c)=>P.jsxs(ml,{sx:{height:74},children:[P.jsx(iU,{sx:{minWidth:40},children:l}),P.jsx(lU,{primary:P.jsx(Xe,{sx:{fontWeight:"medium"},variant:"body1",children:a}),secondary:s})]},`pricing-${a}-${c}`))}),n?P.jsx(ci,{href:o,size:"large",sx:{width:"100%",mt:"auto",px:4,py:1.5,textTransform:"none",backgroundImage:"linear-gradient(to right, #15803d, oklch(62.7% 0.194 149.214))"},variant:"contained",children:i}):P.jsx(ci,{href:o,size:"large",sx:{width:"100%",mt:"auto",px:4,py:1.5,textTransform:"none",color:a=>a.palette.text.primary,border:a=>`1px solid ${a.palette.text.primary}`},variant:"outlined",children:i})]})]})}const yX=[{icon:P.jsx(Lw,{}),title:"200 VUh per month",description:""},{icon:P.jsx(Nw,{}),title:"Up to 100 Virtual Users",description:""},{icon:P.jsx(Bw,{}),title:"Distributed Tests",description:"Get access to up to 2 workers"},{icon:P.jsx(oY,{}),title:"No Credit Card Required, no Trial Clock",description:"Free load testing, no strings attached!"},{}],xX=[{icon:P.jsx(Lw,{}),title:"5,000 VUh per month",description:"Enough capacity to run bigger tests, or smaller tests several times per month"},{icon:P.jsx(Nw,{}),title:"Up to 1,000 Virtual Users",description:"Simulate real world load with more virtual users"},{icon:P.jsx(Bw,{}),title:"Distributed Tests",description:"Get access to up to 4 workers"},{icon:P.jsx(uL,{}),title:"Teams",description:"Up to 5 users"},{icon:P.jsx(fL,{}),title:"Priority Support",description:"Get help faster with dedicated support channels"}],SX=[{icon:P.jsx(Lw,{}),title:"Up to 5 million VUh per month",description:"Any capacity you need, we can provide"},{icon:P.jsx(Nw,{}),title:"Up to 1 million Virtual Users",description:"Prepare your system to handle load of any size"},{icon:P.jsx(Bw,{}),title:"Distributed Tests",description:"No limits on the number of workers"},{icon:P.jsx(uL,{}),title:"Teams",description:"Unlimited users"},{icon:P.jsx(fL,{}),title:"Priority Support",description:"Get help faster and receive consultation hours for building your locust test scripts"}];function bX(){return P.jsxs(tt,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:4,m:6},children:[P.jsx(y1,{ctaText:"Join for Free",features:yX,href:"https://auth.locust.cloud/signup",price:"$0",tierName:"Free"}),P.jsx(y1,{ctaText:"Get Started",features:xX,href:"https://auth.locust.cloud/signup?plan=premium",price:"$399",recommended:!0,tierName:"Premium"}),P.jsx(y1,{ctaText:"Request a consultation",features:SX,href:"https://www.locust.cloud/get-started?plan=unlimited",tierName:"Unlimited"})]})}function wX(){const e=kn(({theme:{isDarkMode:t}})=>t);return P.jsxs(tt,{sx:{mt:6},children:[P.jsxs(Cf,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:2},children:[P.jsxs(tt,{sx:{display:"flex",alignItems:"center",justifyContent:"center",columnGap:1,rowGap:4},children:[P.jsx(Xe,{component:"h2",sx:{textAlign:"center",fontWeight:"bold"},variant:"h4",children:"Power Up Your"}),P.jsx(Xe,{component:"h2",sx:{fontWeight:"bold",color:"rgb(22, 163, 74)"},variant:"h4",children:"Locust"})]}),P.jsx(Xe,{sx:{color:e?"#fff":Xx[700],textAlign:"center"},variant:"h6",children:"Let us take care of the heavy lifting. With Locust Cloud you'll be ready to run distributed load tests in minutes."}),P.jsx(tt,{sx:{display:"flex",columnGap:1},children:P.jsx(ci,{endIcon:P.jsx(tY,{}),href:"https://auth.locust.cloud/signup",sx:{textTransform:"none",px:12,py:1,borderRadius:2,backgroundColor:"rgb(22, 163, 74)"},variant:"contained",children:"Start Free Trial"})})]}),P.jsxs(Cf,{sx:{display:"flex",flexDirection:"column",my:6,p:{sm:4,md:12},backgroundColor:e?Xx[900]:hl[50]},children:[P.jsxs(tt,{sx:{textAlign:"center",mb:4},children:[P.jsx(Xe,{sx:{fontWeight:"bold"},variant:"h4",children:"Your Locustfile. Our Cloud."}),P.jsx(Xe,{variant:"subtitle1",children:"Running locust cloud couldn't be easier. Simply upload your locustfile and you're off to the races."})]}),P.jsx(tt,{children:P.jsx("img",{src:"/assets/terminal.gif",width:"100%"})})]}),P.jsxs(Cf,{sx:{display:"grid",gridTemplateColumns:{md:"repeat(2, 1fr)"},rowGap:2,alignItems:"center",my:12},children:[P.jsxs(tt,{sx:{px:8},children:[P.jsx(Xe,{variant:"h4",children:"Dive Deeper"}),P.jsx(Xe,{variant:"subtitle1",children:"With locust cloud you can get more out of each testrun. Get a detailed view into individual requests and identify bottlenecks with ease."})]}),P.jsx(tt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:P.jsx(tt,{children:e?P.jsx("img",{src:"/assets/graphs-dark.png",width:"100%"}):P.jsx("img",{src:"/assets/graphs-light.png",width:"100%"})})})]}),P.jsxs(Cf,{sx:{display:{xs:"flex",md:"grid"},flexDirection:"column-reverse",gridTemplateColumns:{md:"repeat(2, 1fr)"},rowGap:2,alignItems:"center",my:12},children:[P.jsx(tt,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:P.jsx(tt,{children:e?P.jsx("img",{src:"/assets/testruns-dark.png",width:"100%"}):P.jsx("img",{src:"/assets/testruns-light.png",width:"100%"})})}),P.jsxs(tt,{sx:{px:8},children:[P.jsx(Xe,{variant:"h4",children:"See Everything"}),P.jsx(Xe,{variant:"subtitle1",children:"Every locust testrun is saved. Keep track of how your system has performed historically and get notified immediately when performace degrades"})]})]}),P.jsxs(Cf,{children:[P.jsx(Xe,{sx:{textAlign:"center",mb:6},variant:"h4",children:"Pricing Plans to Fit your Needs"}),P.jsx(bX,{})]})]})}const _X=e=>e.includes("CRITICAL")?ns[900]:e.includes("ERROR")?ns[700]:e.includes("WARNING")?Iz[900]:e.includes("DEBUG")?pl[700]:"text.primary";function OL({log:e}){return P.jsx(Xe,{color:_X(e),fontFamily:"monospace",variant:"body2",children:e})}function CX({workerId:e,logs:t}){const[r,n]=L.useState(!1);L.useEffect(()=>{t.slice(localStorage[e]).some(RL)&&n(!0)},[t]);const i=L.useCallback(()=>{n(!1),localStorage[e]=t.length},[]);return P.jsxs(vw,{children:[P.jsxs(mw,{expandIcon:P.jsx(Ow,{}),onClick:i,children:[r&&P.jsx(cL,{color:"secondary","data-testid":"worker-notification"}),e]}),P.jsx(gw,{children:P.jsx(ji,{elevation:3,sx:{p:2},children:t.map((o,a)=>P.jsx(OL,{log:o},`worker-${e}-log-${a}`))})})]})}function TX(){const{master:e,workers:t}=kn(({logViewer:r})=>r);return P.jsxs(tt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[P.jsxs(tt,{children:[P.jsx(Xe,{sx:{mb:2},variant:"h5",children:"Master Logs"}),P.jsx(ji,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((r,n)=>P.jsx(OL,{log:r},`master-log-${n}`))})]}),!gL(t)&&P.jsxs(tt,{children:[P.jsx(Xe,{sx:{mb:2},variant:"h5",children:"Worker Logs"}),Object.entries(t).map(([r,n],i)=>P.jsx(CX,{logs:n,workerId:r},`worker-log-${i}`))]})]})}function MX({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=kn(({theme:{isDarkMode:n}})=>n);return P.jsxs(Ew,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(ml,{children:P.jsx(fn,{href:"./stats/requests/csv",children:"Download requests CSV"})}),t&&P.jsx(ml,{children:P.jsx(fn,{href:"./stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),P.jsx(ml,{children:P.jsx(fn,{href:"./stats/failures/csv",children:"Download failures CSV"})}),P.jsx(ml,{children:P.jsx(fn,{href:"./exceptions/csv",children:"Download exceptions CSV"})}),P.jsx(ml,{children:P.jsx(fn,{href:`./stats/report?theme=${r?Ao.DARK:Ao.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},o)=>P.jsx(ml,{children:P.jsx(fn,{href:n,children:i})},`extended-csv-${o}`))]})}const kX=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),RX=di(kX)(MX);function PX({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,o]=L.useState(null);return P.jsxs(XU,{sx:{alignSelf:{xs:"end",lg:"start"},my:2},children:[P.jsx(ci,{onClick:a=>o(a.currentTarget),variant:"outlined",children:P.jsx(lY,{})}),P.jsx(QD,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>o(null),open:!!i,children:P.jsx(qD,{sx:{p:2},children:e.map(({key:a,title:s})=>P.jsx(YD,{control:P.jsx(rG,{checked:t.includes(a),onChange:()=>{t.includes(a)?n(a):r(a)}}),label:s},a))})})]})}function EX(e){const[t,r]=L.useState(e.map(a=>a.key));return{selectedColumns:t,addColumn:a=>{r([...t,a])},removeColumn:a=>{r(t.filter(s=>s!==a))},filteredStructure:(a=>a.filter(s=>t.includes(s.key)))(e)}}const AX=Io.percentilesToStatistics?Io.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],IX=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...AX,{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function DX({stats:e,tableStructure:t=IX}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:o}=EX(t);return P.jsxs(tt,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row-reverse",alignItems:"flex-start"},columnGap:1},children:[P.jsx(PX,{addColumn:n,removeColumn:i,selectedColumns:r,structure:t}),P.jsx(Cp,{hasTotalRow:!0,rows:e,structure:o})]})}const LX=({ui:{stats:e}})=>({stats:e}),OX=di(LX)(DX);/*! *****************************************************************************
|
205
205
|
Copyright (c) Microsoft Corporation.
|
206
206
|
|
207
207
|
Permission to use, copy, modify, and/or distribute this software for any
|
locust/webui/dist/auth.html
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
<meta name="theme-color" content="#000000" />
|
9
9
|
|
10
10
|
<title>{{ auth_title | default("Locust") }}</title>
|
11
|
-
<script type="module" crossorigin src="./assets/index-
|
11
|
+
<script type="module" crossorigin src="./assets/index-Csul44Gr.js"></script>
|
12
12
|
</head>
|
13
13
|
<body>
|
14
14
|
<div id="root"></div>
|
locust/webui/dist/index.html
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
<meta name="theme-color" content="#000000" />
|
9
9
|
|
10
10
|
<title>Locust</title>
|
11
|
-
<script type="module" crossorigin src="./assets/index-
|
11
|
+
<script type="module" crossorigin src="./assets/index-Csul44Gr.js"></script>
|
12
12
|
</head>
|
13
13
|
<body>
|
14
14
|
<div id="root"></div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
locust/__init__.py,sha256=aWeuBPUxONjwNm1xp4v8L4BO14SuYLjscIiwJVX1Ui4,1746
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=vx3HSS461jeyXKspEk3Lf2CHT-sMcM4Q2r5VoZ9L874,528
|
4
4
|
locust/argument_parser.py,sha256=oO2Hi13tp_vRqOCQoA44l9qwP1Zeg-0KcnkynvwDqBM,33083
|
5
5
|
locust/clients.py,sha256=o-277lWQdpmPnoRTdf3IQVNPQT8LMFDtPtuxbLHQIIs,19286
|
6
6
|
locust/debug.py,sha256=7CCm8bIg44uGH2wqBlo1rXBzV2VzwPicLxLewz8r5CQ,5099
|
@@ -41,19 +41,19 @@ locust/util/load_locustfile.py,sha256=0ncZh2GQvkiItZB0ePy6JQ_2ayZNP9jXOTfUhdvlQB
|
|
41
41
|
locust/util/rounding.py,sha256=5haxR8mKhATqag6WvPby-MSRRgIw5Ob6thbyvMYZM7o,92
|
42
42
|
locust/util/timespan.py,sha256=Y0LtnhUq2Mq19p04u0XtBlYQ_-S2cRvwRdgru8W9WhA,986
|
43
43
|
locust/util/url.py,sha256=s_W2PCxvxTWxWX0yUvp-8VBuQm881KwI5X9iifogZG4,321
|
44
|
-
locust/webui/dist/auth.html,sha256=
|
45
|
-
locust/webui/dist/index.html,sha256=
|
44
|
+
locust/webui/dist/auth.html,sha256=WYPnE9s_INeKTZfM9YkQo2lMi8EzhoRuzuqyKkbPx5Y,678
|
45
|
+
locust/webui/dist/index.html,sha256=7JuVfALb4Vp6JPaLJ62uSOjkAWnVNTn2nNCzFIJE0Lk,654
|
46
46
|
locust/webui/dist/report.html,sha256=Ls9bx6JZXe31tU5Xrx-DvUMpDWkStYl-Y4CQ7WRV62o,860861
|
47
47
|
locust/webui/dist/assets/favicon-dark.png,sha256=6zVkRtiRfU45qQGvEhf1cq2nNauFs_JW5SI79wT0YkM,2437
|
48
48
|
locust/webui/dist/assets/favicon-light.png,sha256=VdG2GZyeTCOML7xfievupBP4EhmHoUqlVCw-tXqkvxU,2468
|
49
49
|
locust/webui/dist/assets/graphs-dark.png,sha256=IZTsfkpotu0ujxpIQlig2rBlvE58M856SvpKns-3mZk,185796
|
50
50
|
locust/webui/dist/assets/graphs-light.png,sha256=r_HKEusaXNrSLTwTilK1n2bQcF3k4YJKXllaW-gO13s,173014
|
51
|
-
locust/webui/dist/assets/index-
|
51
|
+
locust/webui/dist/assets/index-Csul44Gr.js,sha256=LxqMIOEPGaRFi_fJfnKXF29rRjk6P0v12UwHTHlutz8,1164275
|
52
52
|
locust/webui/dist/assets/terminal.gif,sha256=iw80LO2u0dnf4wpGfFJZauBeKTcSpw9iUfISXT2nEF4,75302
|
53
53
|
locust/webui/dist/assets/testruns-dark.png,sha256=G4p2VZSBuuqF4neqUaPSshIp5OKQJ_Bvb69Luj6XuVs,125231
|
54
54
|
locust/webui/dist/assets/testruns-light.png,sha256=JinGDiiBPOkhpfF-XCbmQqhRInqItrjrBTLKt5MlqVI,130301
|
55
|
-
locust-2.37.
|
56
|
-
locust-2.37.
|
57
|
-
locust-2.37.
|
58
|
-
locust-2.37.
|
59
|
-
locust-2.37.
|
55
|
+
locust-2.37.15.dev5.dist-info/METADATA,sha256=fNdB3RfWKjifAvZbXCBS_h5Bz9HmD6Vp9yvRxqX9WjA,9404
|
56
|
+
locust-2.37.15.dev5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
57
|
+
locust-2.37.15.dev5.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
|
58
|
+
locust-2.37.15.dev5.dist-info/licenses/LICENSE,sha256=5hnz-Vpj0Z3kSCQl0LzV2hT1TLc4LHcbpBp3Cy-EuyM,1110
|
59
|
+
locust-2.37.15.dev5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|