@holoviz/panel-material-ui 0.15.1-alpha.2 → 0.15.1-alpha.3
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.
|
@@ -245,7 +245,7 @@ ${s}
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
${({theme:e})=>gce(e)}
|
|
248
|
-
`,xce=Zs.forwardRef(function(t,o){let r=ce({props:t,name:"MuiTouchRipple"}),n=me(),s=Pn(n.motion.reducedMotion,!1),{center:i=!1,classes:a=kC,className:l,...c}=r,[p,u]=Zs.useState({items:kU,order:kU}),f=p.items,d=Zs.useRef(0),m=Zs.useRef(null),h=Zs.useRef(!1);mh(()=>(h.current=!0,()=>{h.current=!1})),Zs.useEffect(()=>{m.current&&(m.current(),m.current=null)},[f]);let b=Zs.useRef(!1),y=ur(),g=Zs.useRef(null),T=Zs.useRef(null),x=Oo(R=>{h.current&&u(S=>{let P=S.items.filter(E=>E.key!==R),M=fM(S.order.filter(E=>E!==R),P.filter(E=>!E.exiting).map(E=>E.key));return{items:P,order:M}})}),C=Oo(R=>{let{pulsate:S,rippleX:P,rippleY:M,rippleSize:E,cb:D}=R,N=d.current;d.current+=1,u(L=>{let j=[...L.items,{key:N,pulsate:S,rippleX:P,rippleY:M,rippleSize:E,exiting:!1}];return{items:j,order:fM(L.order,j.filter(X=>!X.exiting).map(X=>X.key))}}),m.current=D}),v=Oo((R=kC,S=kC,P=dce)=>{let{pulsate:M=!1,center:E=i||S.pulsate,fakeElement:D=!1}=S;if(R?.type==="mousedown"&&b.current){b.current=!1;return}R?.type==="touchstart"&&(b.current=!0);let N=D?null:T.current,{rippleX:L,rippleY:j,rippleSize:X}=fce({event:R,element:N,center:E});R?.touches?g.current===null&&(g.current=()=>{C({pulsate:M,rippleX:L,rippleY:j,rippleSize:X,cb:P})},y.start(uce,()=>{g.current&&(g.current(),g.current=null)})):C({pulsate:M,rippleX:L,rippleY:j,rippleSize:X,cb:P})}),k=Oo(()=>{v(kC,{pulsate:!0})}),_=Oo((R,S)=>{if(y.clear(),R?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{_(R,S)});return}g.current=null,u(P=>{let M=P.items.findIndex(D=>!D.exiting);if(M===-1)return P;let E=P.items.slice();return E[M]={...E[M],exiting:!0},{items:E,order:fM(P.order,E.filter(D=>!D.exiting).map(D=>D.key))}}),m.current=S});Zs.useImperativeHandle(o,()=>({pulsate:k,start:v,stop:_}),[k,v,_]);let I=new Map(f.map(R=>[R.key,R])),O=p.order.map(R=>I.get(R)).filter(Boolean);return(0,mM.jsx)(bce,{className:$(jn.root,a.root,l),ref:T,...c,children:O.map(R=>(0,mM.jsx)(Tce,{classes:{ripple:$(a.ripple,jn.ripple),rippleVisible:$(a.rippleVisible,jn.rippleVisible),ripplePulsate:$(a.ripplePulsate,jn.ripplePulsate),child:$(a.child,jn.child),childLeaving:$(a.childLeaving,jn.childLeaving),childPulsate:$(a.childPulsate,jn.childPulsate)},timeout:s.shouldReduceMotion?0:yM,pulsate:R.pulsate,rippleX:R.rippleX,rippleY:R.rippleY,rippleSize:R.rippleSize,in:!R.exiting,onExited:()=>x(R.key)},R.key))})}),RU=xce;function hM(e){return K("MuiButtonBase",e)}var Pce=Q("MuiButtonBase",["root","disabled","focusVisible"]),ss=Pce;var RC=w(J(),1),vce=e=>{let{disabled:t,focusVisible:o,focusVisibleClassName:r,suppressFocusVisible:n,classes:s}=e,a=G({root:["root",t&&"disabled",o&&!n&&"focusVisible"]},hM,s);return o&&!n&&r&&(a.root+=` ${r}`),a},Sce=A("button",{name:"MuiButtonBase",slot:"Root"})(de(({theme:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ss.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"},variants:[{props:{internalDisabledThemeFocusVisible:!1},style:e.focusVisible&&{...Ks,[`&.${ss.focusVisible}`]:e.focusVisible}}]}))),Cce=sd.forwardRef(function(t,o){let r=ce({props:t,name:"MuiButtonBase"}),{action:n,centerRipple:s=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:p=!1,disableTouchRipple:u=!1,focusRipple:f=!1,focusVisibleClassName:d,focusableWhenDisabled:m,suppressFocusVisible:h=!1,internalNativeButton:b,internalDisabledThemeFocusVisible:y=!1,LinkComponent:g="a",nativeButton:T,onBlur:x,onClick:C,onContextMenu:v,onDragLeave:k,onFocus:_,onFocusVisible:I,onKeyDown:O,onKeyUp:R,onMouseDown:S,onMouseLeave:P,onMouseUp:M,onTouchEnd:E,onTouchMove:D,onTouchStart:N,tabIndex:L=0,TouchRippleProps:j,touchRippleRef:X,type:H,...Z}=r,ie=!!(Z.href||Z.to),q=!!Z.formAction,ee=l;ee==="button"&&ie&&(ee=g);let z=typeof ee=="string"?ee==="button":b??!1,re=T??z,Y=wC(),W=Wt(Y.ref,X),[ne,te]=sd.useState(!1);(c||h)&&ne&&te(!1);let U=Oo(He=>{f&&!He.repeat&&ne&&He.key===" "&&Y.stop(He,()=>{Y.start(He)})}),ue=Oo(He=>{f&&He.key===" "&&ne&&!He.defaultPrevented&&Y.stop(He,()=>{Y.pulsate(He)})}),{getButtonProps:V,rootRef:pe}=pM({nativeButton:re,nativeButtonProp:T,internalNativeButton:z,allowInferredHostMismatch:ie||typeof ee=="string",disabled:c,type:H,hasFormAction:q,tabIndex:L,onBeforeKeyDown:U,onBeforeKeyUp:ue}),{onClick:se,onKeyDown:ye,onKeyUp:le,...ge}=V({onClick:C,onKeyDown:O,onKeyUp:R});sd.useImperativeHandle(n,()=>({focusVisible:()=>{te(!0),pe.current.focus()}}),[pe]);let ae=Y.shouldMount&&!p&&!c;sd.useEffect(()=>{ne&&f&&!p&&Y.pulsate()},[p,f,ne,Y]);let oe=Ep(Y,"start",S,u),he=Ep(Y,"stop",v,u),Ie=Ep(Y,"stop",k,u),Se=Ep(Y,"stop",M,u),ot=Ep(Y,"stop",He=>{ne&&He.preventDefault(),P&&P(He)},u),Fe=Ep(Y,"start",N,u),Le=Ep(Y,"stop",E,u),qe=Ep(Y,"stop",D,u),Mt=Ep(Y,"stop",He=>{rs(He.target)||te(!1),x&&x(He)},!1),Pe=Oo(He=>{pe.current||(pe.current=He.currentTarget),!h&&rs(He.target)&&(te(!0),I&&I(He)),_&&_(He)}),Ee={};ie&&(Ee.tabIndex=c?-1:L,c&&(Ee["aria-disabled"]=c),Ee.type=H);let je=Wt(o,pe),rt={...r,centerRipple:s,component:l,disabled:c,disableRipple:p,disableTouchRipple:u,focusRipple:f,suppressFocusVisible:h,tabIndex:L,focusVisible:ne,internalDisabledThemeFocusVisible:y},st=vce(rt);return(0,RC.jsxs)(Sce,{as:ee,className:$(st.root,a),ownerState:rt,onBlur:Mt,onClick:se,onContextMenu:he,onFocus:Pe,onKeyDown:ye,onKeyUp:le,onMouseDown:oe,onMouseLeave:ot,onMouseUp:Se,onDragLeave:Ie,onTouchEnd:Le,onTouchMove:qe,onTouchStart:Fe,ref:je,...ie?Ee:ge,...Z,children:[i,ae?(0,RC.jsx)(RU,{ref:W,center:s,...j}):null]})});function Ep(e,t,o,r=!1){return Oo(n=>(o&&o(n),r||e[t](n),!0))}var Qt=Cce;function gM(e){return K("MuiIconButton",e)}var wce=Q("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),GT=wce;var wh=w(J(),1),kce=e=>{let{classes:t,disabled:o,color:r,edge:n,size:s,loading:i}=e,a={root:["root",i&&"loading",o&&"disabled",r!=="default"&&`color${Te(r)}`,n&&`edge${Te(n)}`,`size${Te(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return G(a,gM,t)},Rce=A(Qt,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.loading&&t.loading,o.color!=="default"&&t[`color${Te(o.color)}`],o.edge&&t[`edge${Te(o.edge)}`],t[`size${Te(o.size)}`]]}})(de(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,...Ge(e,"background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||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}}]})),de(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(bt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||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)}}],[`&.${GT.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${GT.loading}`]:{color:"transparent"}}))),Ice=A("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"}}]})),_ce=IC.forwardRef(function(t,o){let r=ce({props:t,name:"MuiIconButton"}),{edge:n=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:p="medium",id:u,loading:f=null,loadingIndicator:d,...m}=r,h=Bn(u),b=d??(0,wh.jsx)(_e,{"aria-labelledby":h,color:"inherit",size:16}),y={...r,edge:n,color:a,disabled:l,disableFocusRipple:c,loading:f,loadingIndicator:b,size:p},g=kce(y);return(0,wh.jsxs)(Rce,{id:f?h:u,className:$(g.root,i),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:l||f,ref:o,...m,ownerState:y,children:[typeof f=="boolean"&&(0,wh.jsx)("span",{className:g.loadingWrapper,style:{display:"contents"},children:(0,wh.jsx)(Ice,{className:g.loadingIndicator,ownerState:y,children:f&&b})}),s]})}),Qe=_ce;var Vn=w(B(),1);var kh=w(B(),1);var vn=w(B(),1);var IU=w(B()),Mp=IU.default.createContext(null);var _U=w(J(),1);function Ece(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e=="number")return{appear:e,enter:e,exit:e};let t=e.enter,o=e.exit;return{appear:e.appear!==void 0?e.appear:t,enter:t,exit:o}}function Mce(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=Ece(e.timeout);return e.currentStatus==="entering"?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function Oce(e){let{in:t=!1,appear:o=!1,enter:r=!0,exit:n=!0,mountOnEnter:s=!1,unmountOnExit:i=!1,timeout:a,addEndListener:l,reduceMotion:c=!1,getAutoTimeout:p,nodeRef:u,onEnter:f,onEntering:d,onEntered:m,onExit:h,onExiting:b,onExited:y,children:g,...T}=e,x=vn.useContext(Mp),C=x&&!x.isMounting?r:o,[v,k]=vn.useState(()=>t?C?"exited":"entered":s||i?"unmounted":"exited"),_=vn.useRef(v);_.current=v,t&&v==="unmounted"&&(_.current="exited",k("exited"));let I=vn.useRef(t&&C),O=vn.useRef(!1),R=vn.useRef(null),S=vn.useRef(v),P=vn.useRef(!1),M=vn.useRef(c),E=sC({timeout:a,addEndListener:l,reduceMotion:c,getAutoTimeout:p,onEnter:f,onEntering:d,onEntered:m,onExit:h,onExiting:b,onExited:y,enter:r,exit:n,mountOnEnter:s,unmountOnExit:i,nodeRef:u,parentGroup:x}),D=vn.useCallback(()=>{R.current!==null&&(R.current.cancel(),R.current=null)},[]),N=vn.useCallback(Z=>{let ie=!0,q=()=>{ie&&(ie=!1,R.current=null,Z())};return q.cancel=()=>{ie=!1},R.current=q,q},[]),L=vn.useCallback((Z,ie)=>{let q,ee=()=>{q!==void 0&&(clearTimeout(q),q=void 0)},z=N(()=>{ee(),_.current=Z,k(Z)}),re=z.cancel;z.cancel=()=>{ee(),re()};let Y=E.current.nodeRef.current,W=E.current.addEndListener,ne=E.current.getAutoTimeout!==void 0,te=E.current.getAutoTimeout?.(),U=Mce({currentStatus:ie,isAppearing:P.current,timeout:E.current.timeout,autoTimeout:te}),ue=M.current,V=U??(ue&&ne?0:null),pe=se=>{q=setTimeout(z,se)};if(!Y){pe(0);return}if(W){V!=null&&pe(ue?0:V),W.length>=2?W(Y,z):W(z);return}pe(ue?0:U??0)},[N,E]),j=vn.useCallback(Z=>{let ie=E.current,q=ie.parentGroup?ie.parentGroup.isMounting:Z;if(P.current=q,!Z&&!ie.enter){_.current="entered",k("entered");return}M.current=ie.reduceMotion,ie.onEnter?.(q),_.current="entering",k("entering")},[E]),X=vn.useCallback(()=>{let Z=E.current;if(!Z.exit){_.current="exited",k("exited");return}M.current=Z.reduceMotion,Z.onExit?.(),_.current="exiting",k("exiting")},[E]),H=vn.useCallback((Z,ie)=>{if(D(),ie==="entering"){let q=E.current;if(q.mountOnEnter||q.unmountOnExit){let ee=q.nodeRef.current;ee&&Tc(ee)}j(Z)}else X()},[D,j,X,E]);return Ct(()=>(O.current=!0,I.current&&(I.current=!1,H(!0,"entering")),()=>{O.current=!1,D()}),[D,H]),Ct(()=>{if(!O.current)return;let Z=_.current;t?Z!=="entering"&&Z!=="entered"&&H(!1,"entering"):Z==="entering"||Z==="entered"?H(!1,"exiting"):Z==="exited"&&i&&(_.current="unmounted",k("unmounted"))},[t,v,i,H]),Ct(()=>{if(v==="unmounted"||S.current==="unmounted"){S.current=v;return}let ie=S.current!==v;ie&&(S.current=v);let q=E.current;v==="entering"?(ie&&q.onEntering?.(P.current),R.current===null&&_.current===v&&L("entered","entering")):v==="exiting"?(ie&&q.onExiting?.(),R.current===null&&_.current===v&&L("exited","exiting")):v==="entered"&&ie?q.onEntered?.(P.current):v==="exited"&&ie&&q.onExited?.()},[E,L,v]),v==="unmounted"?null:(0,_U.jsx)(Mp.Provider,{value:null,children:g(v,T)})}var Sc=Oce;var EU=w(J(),1),Dce={entering:{transform:"none"},entered:{transform:"none"},exiting:{transform:"scale(0)"},exited:{transform:"scale(0)"}},Nce={transform:"scale(0)",visibility:"hidden"},Ace=kh.forwardRef(function(t,o){let r=me(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,disablePrefersReducedMotion:l=!1,easing:c,in:p,onEnter:u,onEntered:f,onEntering:d,onExit:m,onExited:h,onExiting:b,style:y,timeout:g=n,...T}=t,x=Pn(r.motion.reducedMotion,l),C=kh.useRef(null),v=Wt(C,ln(a),o),k=uo(C,d),_=uo(C,(M,E)=>{x.shouldReduceMotion||Tc(M);let D=os({style:y,timeout:g,easing:c},{mode:"enter"}),N=x.getTransitionTiming({duration:D.duration,delay:D.delay});M.style.transition=r.transitions.create("transform",{duration:N.duration,easing:D.easing,delay:N.delay}),u&&u(M,E)}),I=uo(C,f),O=uo(C,b),R=uo(C,M=>{let E=os({style:y,timeout:g,easing:c},{mode:"exit"}),D=x.getTransitionTiming({duration:E.duration,delay:E.delay});M.style.transition=r.transitions.create("transform",{duration:D.duration,easing:E.easing,delay:D.delay}),m&&m(M)}),S=uo(C,M=>{M.style.transition="",h&&h(M)});return(0,EU.jsx)(Sc,{appear:i,in:p,nodeRef:C,onEnter:_,onEntered:I,onEntering:k,onExit:R,onExited:S,onExiting:O,addEndListener:s?M=>{s(C.current,M)}:void 0,reduceMotion:x.shouldReduceMotion,timeout:g,...T,children:(M,{ownerState:E,...D})=>{let N=dh(M,p,Dce,Nce,y,a.props.style);return kh.cloneElement(a,{style:N,ref:v,...D})}})}),Gf=Ace;var MU=w(B(),1);function bM(e){return K("MuiFab",e)}var Fce=Q("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),KT=Fce;var OU=w(J(),1),Lce=e=>{let{color:t,variant:o,classes:r,size:n}=e,s={root:["root",o,`size${Te(n)}`,t==="inherit"?"colorInherit":t]},i=G(s,bM,r);return{...r,...i}},Bce=A(Qt,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Ht(e)||e==="classes",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant],t[`size${Te(o.size)}`],o.color==="inherit"&&t.colorInherit,t[Te(o.size)],t[o.color]]}})(de(({theme:e})=>({...e.typography.button,minHeight:36,...Ge(e,["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${KT.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),de(({theme:e})=>({variants:[...Object.entries(e.palette).filter(bt(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),de(({theme:e})=>({[`&.${KT.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),jce=MU.forwardRef(function(t,o){let r=ce({props:t,name:"MuiFab"}),{children:n,className:s,color:i="default",component:a="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:p,size:u="large",variant:f="circular",...d}=r,m={...r,color:i,component:a,disabled:l,disableFocusRipple:c,size:u,variant:f},h=Lce(m),{root:b,...y}=h;return(0,OU.jsx)(Bce,{className:$(h.root,s),component:a,internalNativeButton:!0,disabled:l,focusRipple:!c,focusVisibleClassName:$(h.focusVisible,p),ownerState:m,ref:o,...d,classes:y,children:n})}),Op=jce;function TM(e){return K("MuiSpeedDial",e)}var Vce=Q("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]),Kf=Vce;function xe(e,t){let{className:o,elementType:r,ownerState:n,externalForwardedProps:s,internalForwardedProps:i,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:p={[e]:void 0},slotProps:u={[e]:void 0},...f}=s,d=p[e]||r,m=dr(u[e],n),{props:{component:h,...b},internalRef:y}=UT({className:o,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:m}),g=_t(y,m?.ref,t.ref),T=e==="root"?h||c:h,x=$T(d,{...e==="root"&&!c&&!p[e]&&i,...e!=="root"&&!p[e]&&i,...b,...T&&!a&&{as:T},...T&&a&&{component:T},ref:g},n);return[d,x]}var Rh=w(J(),1),$ce=e=>{let{classes:t,open:o,direction:r}=e,n={root:["root",`direction${Te(r)}`],fab:["fab"],actions:["actions",!o&&"actionsClosed"]};return G(n,TM,t)};function XT(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}var id=32,_C=16,Uce=A("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[`direction${Te(o.direction)}`]]}})(de(({theme:e})=>({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none",variants:[{props:{direction:"up"},style:{flexDirection:"column-reverse",[`& .${Kf.actions}`]:{flexDirection:"column-reverse",marginBottom:-id,paddingBottom:_C+id}}},{props:{direction:"down"},style:{flexDirection:"column",[`& .${Kf.actions}`]:{flexDirection:"column",marginTop:-id,paddingTop:_C+id}}},{props:{direction:"left"},style:{flexDirection:"row-reverse",[`& .${Kf.actions}`]:{flexDirection:"row-reverse",marginRight:-id,paddingRight:_C+id}}},{props:{direction:"right"},style:{flexDirection:"row",[`& .${Kf.actions}`]:{flexDirection:"row",marginLeft:-id,paddingLeft:_C+id}}}]}))),zce=A(Op,{name:"MuiSpeedDial",slot:"Fab"})({pointerEvents:"auto"}),Wce=A("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.actions,!o.open&&t.actionsClosed]}})(de(({theme:e})=>({display:"flex",pointerEvents:"auto",variants:[{props:({ownerState:t})=>!t.open,style:{transition:"top 0s linear 0.2s",...Xs(e),pointerEvents:"none"}}]}))),Hce=Vn.forwardRef(function(t,o){let r=ce({props:t,name:"MuiSpeedDial"}),n=me(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{ariaLabel:i,FabProps:{ref:a,...l}={},children:c,className:p,direction:u="up",hidden:f=!1,icon:d,onBlur:m,onClose:h,onFocus:b,onKeyDown:y,onMouseEnter:g,onMouseLeave:T,onOpen:x,open:C,openIcon:v,slots:k={},slotProps:_={},transitionDuration:I=s,...O}=r,[R,S]=ns({controlled:C,default:!1,name:"SpeedDial",state:"open"}),P={...r,open:R,direction:u},M=$ce(P),E=ur(),D=Vn.useRef(0),N=Vn.useRef(),L=Vn.useRef([]);L.current=[L.current[0]];let j=Vn.useCallback(V=>{L.current[0]=V},[]),X=Wt(a,j),H=(V,pe)=>se=>{L.current[V+1]=se,pe&&pe(se)},Z=V=>{y&&y(V);let pe=V.key.replace("Arrow","").toLowerCase(),{current:se=pe}=N;if(V.key==="Escape"){S(!1),L.current[0].focus(),h&&h(V,"escapeKeyDown");return}if(XT(pe)===XT(se)&&XT(pe)!==void 0){V.preventDefault();let ye=pe===se?1:-1,le=Ti(D.current+ye,0,L.current.length-1);L.current[le].focus(),D.current=le,N.current=se}};Vn.useEffect(()=>{R||(D.current=0,N.current=void 0)},[R]);let ie=V=>{V.type==="mouseleave"&&T&&T(V),V.type==="blur"&&m&&m(V),E.clear(),V.type==="blur"?E.start(0,()=>{S(!1),h&&h(V,"blur")}):(S(!1),h&&h(V,"mouseLeave"))},q=V=>{l.onClick&&l.onClick(V),E.clear(),R?(S(!1),h&&h(V,"toggle")):(S(!0),x&&x(V,"toggle"))},ee=V=>{V.type==="mouseenter"&&g&&g(V),V.type==="focus"&&b&&b(V),E.clear(),R||E.start(0,()=>{S(!0),x&&x(V,{focus:"focus",mouseenter:"mouseEnter"}[V.type])})},z=i.replace(/^[^a-z]+|[^\w:.-]+/gi,""),re=Vn.Children.toArray(c).filter(V=>Vn.isValidElement(V)),Y=re.map((V,pe)=>{let{slotProps:se={}}=V.props,{fab:{ref:ye,...le}={},...ge}=se,ae=XT(u)==="vertical"?"left":"top";return Vn.cloneElement(V,{slotProps:{...ge,fab:{...le,ref:H(pe,ye)},tooltip:typeof ge.tooltip=="function"?oe=>({placement:ae,...ge.tooltip(oe)}):{placement:ae,...ge.tooltip}},delay:30*(R?pe:re.length-pe),open:R,id:`${z}-action-${pe}`})}),W={slots:k,slotProps:_},[ne,te]=xe("root",{elementType:Uce,externalForwardedProps:{...W,...O},ownerState:P,ref:o,className:$(M.root,p),additionalProps:{role:"presentation"},getSlotProps:V=>({...V,onKeyDown:pe=>{V.onKeyDown?.(pe),Z(pe)},onBlur:pe=>{V.onBlur?.(pe),ie(pe)},onFocus:pe=>{V.onFocus?.(pe),ee(pe)},onMouseEnter:pe=>{V.onMouseEnter?.(pe),ee(pe)},onMouseLeave:pe=>{V.onMouseLeave?.(pe),ie(pe)}})}),[U,ue]=xe("transition",{elementType:Gf,externalForwardedProps:W,ownerState:P});return(0,Rh.jsxs)(ne,{...te,children:[(0,Rh.jsx)(U,{in:!f,timeout:I,unmountOnExit:!0,...ue,children:(0,Rh.jsx)(zce,{color:"primary","aria-label":i,"aria-haspopup":"true","aria-expanded":R,"aria-controls":`${z}-actions`,...l,onClick:q,className:$(M.fab,l.className),ref:X,ownerState:P,children:Vn.isValidElement(d)&&Ka(d,["SpeedDialIcon"])?Vn.cloneElement(d,{open:R}):d})}),(0,Rh.jsx)(Wce,{id:`${z}-actions`,role:"menu","aria-orientation":XT(u),className:$(M.actions,!R&&M.actionsClosed),ownerState:P,children:Y})]})}),Xf=Hce;var cg=w(B(),1);var Mr=w(B(),1);var Qf=w(B(),1);var DU=w(J(),1);function QT(e){return`scale(${e}, ${e**2})`}var Yce={entering:{opacity:1,transform:QT(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:QT(.75)},exited:{opacity:0,transform:QT(.75)}},qce={opacity:0,transform:QT(.75),visibility:"hidden"},xM=Qf.forwardRef(function(t,o){let{addEndListener:r,appear:n=!0,children:s,disablePrefersReducedMotion:i=!1,easing:a,in:l,onEnter:c,onEntered:p,onEntering:u,onExit:f,onExited:d,onExiting:m,style:h,timeout:b="auto",...y}=t,g=Qf.useRef(null),T=me(),x=Pn(T.motion.reducedMotion,i),C=Qf.useRef(null),v=Wt(C,ln(s),o),k=uo(C,u),_=uo(C,(M,E)=>{x.shouldReduceMotion||Tc(M);let{duration:D,delay:N,easing:L}=os({style:h,timeout:b,easing:a},{mode:"enter"}),j;b==="auto"&&!x.shouldReduceMotion?(j=T.transitions.getAutoHeightDuration(M.clientHeight),g.current=j):(j=D,g.current=null);let X=x.getTransitionTiming({duration:j,delay:N});M.style.transition=[T.transitions.create("opacity",{duration:X.duration,delay:X.delay}),T.transitions.create("transform",{duration:typeof X.duration=="string"?X.duration:X.duration*.666,delay:X.delay,easing:L})].join(","),c&&c(M,E)}),I=uo(C,p),O=uo(C,m),R=uo(C,M=>{let{duration:E,delay:D,easing:N}=os({style:h,timeout:b,easing:a},{mode:"exit"}),L;b==="auto"&&!x.shouldReduceMotion?(L=T.transitions.getAutoHeightDuration(M.clientHeight),g.current=L):(L=E,g.current=null);let j=x.getTransitionTiming({duration:L,delay:D});M.style.transition=[T.transitions.create("opacity",{duration:j.duration,delay:j.delay}),T.transitions.create("transform",{duration:typeof j.duration=="string"?j.duration:j.duration*.666,delay:j.delay||(typeof j.duration=="string"?j.duration:j.duration*.333),easing:N})].join(","),M.style.opacity=0,M.style.transform=QT(.75),f&&f(M)}),S=uo(C,M=>{M.style.transition="",d&&d(M)});return(0,DU.jsx)(Sc,{appear:n,in:l,nodeRef:C,onEnter:_,onEntered:I,onEntering:k,onExit:R,onExited:S,onExiting:O,addEndListener:r?M=>{r(C.current,M)}:void 0,getAutoTimeout:b==="auto"?()=>g.current:void 0,reduceMotion:x.shouldReduceMotion,timeout:b==="auto"?null:b,...y,children:(M,{ownerState:E,...D})=>{let N=dh(M,l,Yce,qce,h,s.props.style);return Qf.cloneElement(s,{style:N,ref:v,...D})}})});xM&&(xM.muiSupportAuto=!0);var Js=xM;var SW=w(B(),1);var Ls=w(B(),1);var Vr="top",Sn="bottom",cn="right",Kr="left",EC="auto",ad=[Vr,Sn,cn,Kr],Dp="start",Zf="end",NU="clippingParents",MC="viewport",Ih="popper",AU="reference",PM=ad.reduce(function(e,t){return e.concat([t+"-"+Dp,t+"-"+Zf])},[]),OC=[].concat(ad,[EC]).reduce(function(e,t){return e.concat([t,t+"-"+Dp,t+"-"+Zf])},[]),Gce="beforeRead",Kce="read",Xce="afterRead",Qce="beforeMain",Zce="main",Jce="afterMain",epe="beforeWrite",tpe="write",ope="afterWrite",FU=[Gce,Kce,Xce,Qce,Zce,Jce,epe,tpe,ope];function $n(e){return e?(e.nodeName||"").toLowerCase():null}function Pr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xa(e){var t=Pr(e).Element;return e instanceof t||e instanceof Element}function Cn(e){var t=Pr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _h(e){if(typeof ShadowRoot>"u")return!1;var t=Pr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rpe(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},n=t.attributes[o]||{},s=t.elements[o];!Cn(s)||!$n(s)||(Object.assign(s.style,r),Object.keys(n).forEach(function(i){var a=n[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function npe(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var n=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),a=i.reduce(function(l,c){return l[c]="",l},{});!Cn(n)||!$n(n)||(Object.assign(n.style,a),Object.keys(s).forEach(function(l){n.removeAttribute(l)}))})}}var LU={name:"applyStyles",enabled:!0,phase:"write",fn:rpe,effect:npe,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Ll=Math.max,Jf=Math.min,Np=Math.round;function Eh(){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 ZT(){return!/^((?!chrome|android).)*safari/i.test(Eh())}function Qa(e,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var r=e.getBoundingClientRect(),n=1,s=1;t&&Cn(e)&&(n=e.offsetWidth>0&&Np(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Np(r.height)/e.offsetHeight||1);var i=Xa(e)?Pr(e):window,a=i.visualViewport,l=!ZT()&&o,c=(r.left+(l&&a?a.offsetLeft:0))/n,p=(r.top+(l&&a?a.offsetTop:0))/s,u=r.width/n,f=r.height/s;return{width:u,height:f,top:p,right:c+u,bottom:p+f,left:c,x:c,y:p}}function em(e){var t=Qa(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function JT(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&_h(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ei(e){return Pr(e).getComputedStyle(e)}function vM(e){return["table","td","th"].indexOf($n(e))>=0}function is(e){return((Xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ap(e){return $n(e)==="html"?e:e.assignedSlot||e.parentNode||(_h(e)?e.host:null)||is(e)}function BU(e){return!Cn(e)||ei(e).position==="fixed"?null:e.offsetParent}function spe(e){var t=/firefox/i.test(Eh()),o=/Trident/i.test(Eh());if(o&&Cn(e)){var r=ei(e);if(r.position==="fixed")return null}var n=Ap(e);for(_h(n)&&(n=n.host);Cn(n)&&["html","body"].indexOf($n(n))<0;){var s=ei(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function Bl(e){for(var t=Pr(e),o=BU(e);o&&vM(o)&&ei(o).position==="static";)o=BU(o);return o&&($n(o)==="html"||$n(o)==="body"&&ei(o).position==="static")?t:o||spe(e)||t}function tm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function om(e,t,o){return Ll(e,Jf(t,o))}function jU(e,t,o){var r=om(e,t,o);return r>o?o:r}function ex(){return{top:0,right:0,bottom:0,left:0}}function tx(e){return Object.assign({},ex(),e)}function ox(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var ipe=function(t,o){return t=typeof t=="function"?t(Object.assign({},o.rects,{placement:o.placement})):t,tx(typeof t!="number"?t:ox(t,ad))};function ape(e){var t,o=e.state,r=e.name,n=e.options,s=o.elements.arrow,i=o.modifiersData.popperOffsets,a=Un(o.placement),l=tm(a),c=[Kr,cn].indexOf(a)>=0,p=c?"height":"width";if(!(!s||!i)){var u=ipe(n.padding,o),f=em(s),d=l==="y"?Vr:Kr,m=l==="y"?Sn:cn,h=o.rects.reference[p]+o.rects.reference[l]-i[l]-o.rects.popper[p],b=i[l]-o.rects.reference[l],y=Bl(s),g=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,T=h/2-b/2,x=u[d],C=g-f[p]-u[m],v=g/2-f[p]/2+T,k=om(x,v,C),_=l;o.modifiersData[r]=(t={},t[_]=k,t.centerOffset=k-v,t)}}function lpe(e){var t=e.state,o=e.options,r=o.element,n=r===void 0?"[data-popper-arrow]":r;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||JT(t.elements.popper,n)&&(t.elements.arrow=n))}var VU={name:"arrow",enabled:!0,phase:"main",fn:ape,effect:lpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Za(e){return e.split("-")[1]}var cpe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ppe(e,t){var o=e.x,r=e.y,n=t.devicePixelRatio||1;return{x:Np(o*n)/n||0,y:Np(r*n)/n||0}}function $U(e){var t,o=e.popper,r=e.popperRect,n=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,p=e.roundOffsets,u=e.isFixed,f=i.x,d=f===void 0?0:f,m=i.y,h=m===void 0?0:m,b=typeof p=="function"?p({x:d,y:h}):{x:d,y:h};d=b.x,h=b.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),T=Kr,x=Vr,C=window;if(c){var v=Bl(o),k="clientHeight",_="clientWidth";if(v===Pr(o)&&(v=is(o),ei(v).position!=="static"&&a==="absolute"&&(k="scrollHeight",_="scrollWidth")),v=v,n===Vr||(n===Kr||n===cn)&&s===Zf){x=Sn;var I=u&&v===C&&C.visualViewport?C.visualViewport.height:v[k];h-=I-r.height,h*=l?1:-1}if(n===Kr||(n===Vr||n===Sn)&&s===Zf){T=cn;var O=u&&v===C&&C.visualViewport?C.visualViewport.width:v[_];d-=O-r.width,d*=l?1:-1}}var R=Object.assign({position:a},c&&cpe),S=p===!0?ppe({x:d,y:h},Pr(o)):{x:d,y:h};if(d=S.x,h=S.y,l){var P;return Object.assign({},R,(P={},P[x]=g?"0":"",P[T]=y?"0":"",P.transform=(C.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",P))}return Object.assign({},R,(t={},t[x]=g?h+"px":"",t[T]=y?d+"px":"",t.transform="",t))}function upe(e){var t=e.state,o=e.options,r=o.gpuAcceleration,n=r===void 0?!0:r,s=o.adaptive,i=s===void 0?!0:s,a=o.roundOffsets,l=a===void 0?!0:a,c={placement:Un(t.placement),variation:Za(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$U(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$U(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})}var UU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:upe,data:{}};var DC={passive:!0};function dpe(e){var t=e.state,o=e.instance,r=e.options,n=r.scroll,s=n===void 0?!0:n,i=r.resize,a=i===void 0?!0:i,l=Pr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(p){p.addEventListener("scroll",o.update,DC)}),a&&l.addEventListener("resize",o.update,DC),function(){s&&c.forEach(function(p){p.removeEventListener("scroll",o.update,DC)}),a&&l.removeEventListener("resize",o.update,DC)}}var zU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dpe,data:{}};var fpe={left:"right",right:"left",bottom:"top",top:"bottom"};function Mh(e){return e.replace(/left|right|bottom|top/g,function(t){return fpe[t]})}var mpe={start:"end",end:"start"};function NC(e){return e.replace(/start|end/g,function(t){return mpe[t]})}function rm(e){var t=Pr(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function nm(e){return Qa(is(e)).left+rm(e).scrollLeft}function SM(e,t){var o=Pr(e),r=is(e),n=o.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(n){s=n.width,i=n.height;var c=ZT();(c||!c&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:s,height:i,x:a+nm(e),y:l}}function CM(e){var t,o=is(e),r=rm(e),n=(t=e.ownerDocument)==null?void 0:t.body,s=Ll(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=Ll(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-r.scrollLeft+nm(e),l=-r.scrollTop;return ei(n||o).direction==="rtl"&&(a+=Ll(o.clientWidth,n?n.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function sm(e){var t=ei(e),o=t.overflow,r=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function AC(e){return["html","body","#document"].indexOf($n(e))>=0?e.ownerDocument.body:Cn(e)&&sm(e)?e:AC(Ap(e))}function ld(e,t){var o;t===void 0&&(t=[]);var r=AC(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=Pr(r),i=n?[s].concat(s.visualViewport||[],sm(r)?r:[]):r,a=t.concat(i);return n?a:a.concat(ld(Ap(i)))}function Oh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ype(e,t){var o=Qa(e,!1,t==="fixed");return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function WU(e,t,o){return t===MC?Oh(SM(e,o)):Xa(t)?ype(t,o):Oh(CM(is(e)))}function hpe(e){var t=ld(Ap(e)),o=["absolute","fixed"].indexOf(ei(e).position)>=0,r=o&&Cn(e)?Bl(e):e;return Xa(r)?t.filter(function(n){return Xa(n)&&JT(n,r)&&$n(n)!=="body"}):[]}function wM(e,t,o,r){var n=t==="clippingParents"?hpe(e):[].concat(t),s=[].concat(n,[o]),i=s[0],a=s.reduce(function(l,c){var p=WU(e,c,r);return l.top=Ll(p.top,l.top),l.right=Jf(p.right,l.right),l.bottom=Jf(p.bottom,l.bottom),l.left=Ll(p.left,l.left),l},WU(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rx(e){var t=e.reference,o=e.element,r=e.placement,n=r?Un(r):null,s=r?Za(r):null,i=t.x+t.width/2-o.width/2,a=t.y+t.height/2-o.height/2,l;switch(n){case Vr:l={x:i,y:t.y-o.height};break;case Sn:l={x:i,y:t.y+t.height};break;case cn:l={x:t.x+t.width,y:a};break;case Kr:l={x:t.x-o.width,y:a};break;default:l={x:t.x,y:t.y}}var c=n?tm(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(s){case Dp:l[c]=l[c]-(t[p]/2-o[p]/2);break;case Zf:l[c]=l[c]+(t[p]/2-o[p]/2);break;default:}}return l}function jl(e,t){t===void 0&&(t={});var o=t,r=o.placement,n=r===void 0?e.placement:r,s=o.strategy,i=s===void 0?e.strategy:s,a=o.boundary,l=a===void 0?NU:a,c=o.rootBoundary,p=c===void 0?MC:c,u=o.elementContext,f=u===void 0?Ih:u,d=o.altBoundary,m=d===void 0?!1:d,h=o.padding,b=h===void 0?0:h,y=tx(typeof b!="number"?b:ox(b,ad)),g=f===Ih?AU:Ih,T=e.rects.popper,x=e.elements[m?g:f],C=wM(Xa(x)?x:x.contextElement||is(e.elements.popper),l,p,i),v=Qa(e.elements.reference),k=rx({reference:v,element:T,strategy:"absolute",placement:n}),_=Oh(Object.assign({},T,k)),I=f===Ih?_:v,O={top:C.top-I.top+y.top,bottom:I.bottom-C.bottom+y.bottom,left:C.left-I.left+y.left,right:I.right-C.right+y.right},R=e.modifiersData.offset;if(f===Ih&&R){var S=R[n];Object.keys(O).forEach(function(P){var M=[cn,Sn].indexOf(P)>=0?1:-1,E=[Vr,Sn].indexOf(P)>=0?"y":"x";O[P]+=S[E]*M})}return O}function kM(e,t){t===void 0&&(t={});var o=t,r=o.placement,n=o.boundary,s=o.rootBoundary,i=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,c=l===void 0?OC:l,p=Za(r),u=p?a?PM:PM.filter(function(m){return Za(m)===p}):ad,f=u.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=u);var d=f.reduce(function(m,h){return m[h]=jl(e,{placement:h,boundary:n,rootBoundary:s,padding:i})[Un(h)],m},{});return Object.keys(d).sort(function(m,h){return d[m]-d[h]})}function gpe(e){if(Un(e)===EC)return[];var t=Mh(e);return[NC(e),t,NC(t)]}function bpe(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var n=o.mainAxis,s=n===void 0?!0:n,i=o.altAxis,a=i===void 0?!0:i,l=o.fallbackPlacements,c=o.padding,p=o.boundary,u=o.rootBoundary,f=o.altBoundary,d=o.flipVariations,m=d===void 0?!0:d,h=o.allowedAutoPlacements,b=t.options.placement,y=Un(b),g=y===b,T=l||(g||!m?[Mh(b)]:gpe(b)),x=[b].concat(T).reduce(function(q,ee){return q.concat(Un(ee)===EC?kM(t,{placement:ee,boundary:p,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:h}):ee)},[]),C=t.rects.reference,v=t.rects.popper,k=new Map,_=!0,I=x[0],O=0;O<x.length;O++){var R=x[O],S=Un(R),P=Za(R)===Dp,M=[Vr,Sn].indexOf(S)>=0,E=M?"width":"height",D=jl(t,{placement:R,boundary:p,rootBoundary:u,altBoundary:f,padding:c}),N=M?P?cn:Kr:P?Sn:Vr;C[E]>v[E]&&(N=Mh(N));var L=Mh(N),j=[];if(s&&j.push(D[S]<=0),a&&j.push(D[N]<=0,D[L]<=0),j.every(function(q){return q})){I=R,_=!1;break}k.set(R,j)}if(_)for(var X=m?3:1,H=function(ee){var z=x.find(function(re){var Y=k.get(re);if(Y)return Y.slice(0,ee).every(function(W){return W})});if(z)return I=z,"break"},Z=X;Z>0;Z--){var ie=H(Z);if(ie==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}var HU={name:"flip",enabled:!0,phase:"main",fn:bpe,requiresIfExists:["offset"],data:{_skip:!1}};function YU(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function qU(e){return[Vr,cn,Sn,Kr].some(function(t){return e[t]>=0})}function Tpe(e){var t=e.state,o=e.name,r=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,i=jl(t,{elementContext:"reference"}),a=jl(t,{altBoundary:!0}),l=YU(i,r),c=YU(a,n,s),p=qU(l),u=qU(c);t.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}var GU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tpe};function xpe(e,t,o){var r=Un(e),n=[Kr,Vr].indexOf(r)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,i=s[0],a=s[1];return i=i||0,a=(a||0)*n,[Kr,cn].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function Ppe(e){var t=e.state,o=e.options,r=e.name,n=o.offset,s=n===void 0?[0,0]:n,i=OC.reduce(function(p,u){return p[u]=xpe(u,t.rects,s),p},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}var KU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ppe};function vpe(e){var t=e.state,o=e.name;t.modifiersData[o]=rx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var XU={name:"popperOffsets",enabled:!0,phase:"read",fn:vpe,data:{}};function RM(e){return e==="x"?"y":"x"}function Spe(e){var t=e.state,o=e.options,r=e.name,n=o.mainAxis,s=n===void 0?!0:n,i=o.altAxis,a=i===void 0?!1:i,l=o.boundary,c=o.rootBoundary,p=o.altBoundary,u=o.padding,f=o.tether,d=f===void 0?!0:f,m=o.tetherOffset,h=m===void 0?0:m,b=jl(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:p}),y=Un(t.placement),g=Za(t.placement),T=!g,x=tm(y),C=RM(x),v=t.modifiersData.popperOffsets,k=t.rects.reference,_=t.rects.popper,I=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(v){if(s){var P,M=x==="y"?Vr:Kr,E=x==="y"?Sn:cn,D=x==="y"?"height":"width",N=v[x],L=N+b[M],j=N-b[E],X=d?-_[D]/2:0,H=g===Dp?k[D]:_[D],Z=g===Dp?-_[D]:-k[D],ie=t.elements.arrow,q=d&&ie?em(ie):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ex(),z=ee[M],re=ee[E],Y=om(0,k[D],q[D]),W=T?k[D]/2-X-Y-z-O.mainAxis:H-Y-z-O.mainAxis,ne=T?-k[D]/2+X+Y+re+O.mainAxis:Z+Y+re+O.mainAxis,te=t.elements.arrow&&Bl(t.elements.arrow),U=te?x==="y"?te.clientTop||0:te.clientLeft||0:0,ue=(P=R?.[x])!=null?P:0,V=N+W-ue-U,pe=N+ne-ue,se=om(d?Jf(L,V):L,N,d?Ll(j,pe):j);v[x]=se,S[x]=se-N}if(a){var ye,le=x==="x"?Vr:Kr,ge=x==="x"?Sn:cn,ae=v[C],oe=C==="y"?"height":"width",he=ae+b[le],Ie=ae-b[ge],Se=[Vr,Kr].indexOf(y)!==-1,ot=(ye=R?.[C])!=null?ye:0,Fe=Se?he:ae-k[oe]-_[oe]-ot+O.altAxis,Le=Se?ae+k[oe]+_[oe]-ot-O.altAxis:Ie,qe=d&&Se?jU(Fe,ae,Le):om(d?Fe:he,ae,d?Le:Ie);v[C]=qe,S[C]=qe-ae}t.modifiersData[r]=S}}var QU={name:"preventOverflow",enabled:!0,phase:"main",fn:Spe,requiresIfExists:["offset"]};function IM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _M(e){return e===Pr(e)||!Cn(e)?rm(e):IM(e)}function Cpe(e){var t=e.getBoundingClientRect(),o=Np(t.width)/e.offsetWidth||1,r=Np(t.height)/e.offsetHeight||1;return o!==1||r!==1}function EM(e,t,o){o===void 0&&(o=!1);var r=Cn(t),n=Cn(t)&&Cpe(t),s=is(t),i=Qa(e,n,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!o)&&(($n(t)!=="body"||sm(s))&&(a=_M(t)),Cn(t)?(l=Qa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=nm(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function wpe(e){var t=new Map,o=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function n(s){o.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!o.has(a)){var l=t.get(a);l&&n(l)}}),r.push(s)}return e.forEach(function(s){o.has(s.name)||n(s)}),r}function MM(e){var t=wpe(e);return FU.reduce(function(o,r){return o.concat(t.filter(function(n){return n.phase===r}))},[])}function OM(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function DM(e){var t=e.reduce(function(o,r){var n=o[r.name];return o[r.name]=n?Object.assign({},n,r,{options:Object.assign({},n.options,r.options),data:Object.assign({},n.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var ZU={placement:"bottom",modifiers:[],strategy:"absolute"};function JU(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ez(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,r=o===void 0?[]:o,n=t.defaultOptions,s=n===void 0?ZU:n;return function(a,l,c){c===void 0&&(c=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ZU,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],f=!1,d={state:p,setOptions:function(y){var g=typeof y=="function"?y(p.options):y;h(),p.options=Object.assign({},s,p.options,g),p.scrollParents={reference:Xa(a)?ld(a):a.contextElement?ld(a.contextElement):[],popper:ld(l)};var T=MM(DM([].concat(r,p.options.modifiers)));return p.orderedModifiers=T.filter(function(x){return x.enabled}),m(),d.update()},forceUpdate:function(){if(!f){var y=p.elements,g=y.reference,T=y.popper;if(JU(g,T)){p.rects={reference:EM(g,Bl(T),p.options.strategy==="fixed"),popper:em(T)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(O){return p.modifiersData[O.name]=Object.assign({},O.data)});for(var x=0;x<p.orderedModifiers.length;x++){if(p.reset===!0){p.reset=!1,x=-1;continue}var C=p.orderedModifiers[x],v=C.fn,k=C.options,_=k===void 0?{}:k,I=C.name;typeof v=="function"&&(p=v({state:p,options:_,name:I,instance:d})||p)}}}},update:OM(function(){return new Promise(function(b){d.forceUpdate(),b(p)})}),destroy:function(){h(),f=!0}};if(!JU(a,l))return d;d.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function m(){p.orderedModifiers.forEach(function(b){var y=b.name,g=b.options,T=g===void 0?{}:g,x=b.effect;if(typeof x=="function"){var C=x({state:p,name:y,instance:d,options:T}),v=function(){};u.push(C||v)}})}function h(){u.forEach(function(b){return b()}),u=[]}return d}}var kpe=[zU,XU,UU,LU,KU,HU,QU,VU,GU],NM=ez({defaultModifiers:kpe});var Yp=w(B(),1),TW=w(Pm(),1);function _de(e){return typeof e=="function"?e():e}var Ede=Yp.forwardRef(function(t,o){let{children:r,container:n,disablePortal:s=!1}=t,[i,a]=Yp.useState(null),l=_t(Yp.isValidElement(r)?ln(r):null,o);return Ct(()=>{s||a(_de(n)||document.body)},[n,s]),Ct(()=>{if(i&&!s)return Nl(o,i),()=>{Nl(o,null)}},[o,i,s]),s?Yp.isValidElement(r)?Yp.cloneElement(r,{ref:l}):r:i&&TW.createPortal(r,i)}),vm=Ede;function GD(e){return K("MuiPopper",e)}var Mde=Q("MuiPopper",["root"]),xW=Mde;var t1=w(J(),1);function Ode(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 PW(e){return typeof e=="function"?e():e}function Dde(e){return e.nodeType!==void 0}var Nde=e=>{let{classes:t}=e;return G({root:["root"]},GD,t)},Ade={},Fde=Ls.forwardRef(function(t,o){let{anchorEl:r,children:n,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:p,popperRef:u,slotProps:f={},slots:d={},TransitionProps:m,ownerState:h,...b}=t,y=Ls.useRef(null),g=_t(y,o),T=Ls.useRef(null),x=_t(T,u),C=Ls.useRef(x);Ct(()=>{C.current=x},[x]),Ls.useImperativeHandle(u,()=>T.current,[]);let v=Ode(c,s),[k,_]=Ls.useState(v),I=Ls.useMemo(()=>PW(r),[r]);Ls.useEffect(()=>{T.current&&T.current.forceUpdate()}),Ct(()=>{if(!I||!l)return;let M=L=>{_(L.placement)},E=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{M(L)}}];a!=null&&(E=E.concat(a)),p&&p.modifiers!=null&&(E=E.concat(p.modifiers));let D=NM(I,y.current,{placement:v,...p,modifiers:E});C.current(D);let N=y.current;return()=>{if(N){let{style:L}=N,j=L.position,X=L.top,H=L.left,Z=L.transform;D.destroy(),L.position=j,L.top=X,L.left=H,L.transform=Z}else D.destroy();C.current(null)}},[I,i,a,l,p,v]);let O={placement:k};m!==null&&(O.TransitionProps=m);let R=Nde(t),S=d.root??"div",P=Je({elementType:S,externalSlotProps:f.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:R.root});return(0,t1.jsx)(S,{...P,children:typeof n=="function"?n(O):n})}),Lde=Ls.forwardRef(function(t,o){let{anchorEl:r,children:n,container:s,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:p,placement:u="bottom",popperOptions:f=Ade,popperRef:d,style:m,transition:h=!1,slotProps:b={},slots:y={},...g}=t,[T,x]=Ls.useState(!0),C=()=>{x(!1)},v=()=>{x(!0)};if(!l&&!p&&(!h||T))return null;let k;if(s)k=s;else if(r){let O=PW(r);k=O&&Dde(O)?Kt(O).body:Kt(null).body}let _=!p&&l&&(!h||T)?"none":void 0,I=h?{in:p,onEnter:C,onExited:v}:void 0;return(0,t1.jsx)(vm,{disablePortal:a,container:k,children:(0,t1.jsx)(Fde,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:o,open:h?!T:p,placement:u,popperOptions:f,popperRef:d,slotProps:b,slots:y,...g,style:{position:"fixed",top:0,left:0,display:_,...m},TransitionProps:I,children:n})})}),vW=Lde;var CW=w(J(),1),Bde=A(vW,{name:"MuiPopper",slot:"Root"})({}),jde=SW.forwardRef(function(t,o){let r=zt(),n=ce({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,container:a,disablePortal:l,keepMounted:c,modifiers:p,open:u,placement:f,popperOptions:d,popperRef:m,transition:h,slots:b,slotProps:y,...g}=n,T={anchorEl:s,container:a,disablePortal:l,keepMounted:c,modifiers:p,open:u,placement:f,popperOptions:d,popperRef:m,transition:h,...g};return(0,CW.jsx)(Bde,{as:i,direction:r?"rtl":"ltr",slots:b,slotProps:y,...T,ref:o})}),ps=jde;function KD(e){return K("MuiTooltip",e)}var Vde=Q("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ni=Vde;var Ed=w(J(),1);function $de(e){return Math.round(e*1e5)/1e5}var Ude=e=>{let{classes:t,disableInteractive:o,arrow:r,touch:n,placement:s}=e,i={popper:["popper",!o&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",n&&"touch",`tooltipPlacement${Te(s.split("-")[0])}`],arrow:["arrow"]};return G(i,KD,t)},zde=A(ps,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.popper,!o.disableInteractive&&t.popperInteractive,o.arrow&&t.popperArrow,!o.open&&t.popperClose]}})(de(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t,open:o})=>o&&!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${ni.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ni.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ni.arrow}`]:{height:"1em",width:"0.71em",insetInlineStart:0,marginInlineStart:"-0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${ni.arrow}`]:{height:"1em",width:"0.71em",insetInlineEnd:0,marginInlineEnd:"-0.71em","&::before":{transformOrigin:"0 0"}}}}]}))),Wde=A("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.tooltip,o.touch&&t.touch,o.arrow&&t.tooltipArrow,t[`tooltipPlacement${Te(o.placement.split("-")[0])}`]]}})(de(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(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,[`.${ni.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center",marginInlineEnd:"14px"},[`.${ni.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center",marginInlineStart:"14px"},[`.${ni.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${ni.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",marginBlock:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${$de(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>t.touch,style:{[`.${ni.popper}[data-popper-placement*="left"] &`]:{marginInlineEnd:"24px"},[`.${ni.popper}[data-popper-placement*="right"] &`]:{marginInlineStart:"24px"},[`.${ni.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"},[`.${ni.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Hde=A("span",{name:"MuiTooltip",slot:"Arrow"})(de(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),o1=!1,wW=new yh,Kx={x:0,y:0};function r1(e,t){return(o,...r)=>{t&&t(o,...r),e(o,...r)}}var Yde=Mr.forwardRef(function(t,o){let r=ce({props:t,name:"MuiTooltip"}),{arrow:n=!1,children:s,classes:i,describeChild:a=!1,disableFocusListener:l=!1,disableHoverListener:c=!1,disableInteractive:p=!1,disableTouchListener:u=!1,enterDelay:f=100,enterNextDelay:d=0,enterTouchDelay:m=700,followCursor:h=!1,id:b,leaveDelay:y=0,leaveTouchDelay:g=1500,onClose:T,onOpen:x,open:C,placement:v="bottom",slotProps:k={},slots:_={},title:I,...O}=r,R=Mr.isValidElement(s)?s:(0,Ed.jsx)("span",{children:s}),S=me(),[P,M]=Mr.useState(),[E,D]=Mr.useState(null),N=Mr.useRef(!1),L=Mr.useRef(!1),j=p||h,X=ur(),H=ur(),Z=ur(),ie=ur(),[q,ee]=ns({controlled:C,default:!1,name:"Tooltip",state:"open"}),z=q,{current:re}=Mr.useRef(C!==void 0),Y=Bn(b),W=Mr.useRef(),ne=Oo(()=>{W.current!==void 0&&(document.body.style.WebkitUserSelect=W.current,W.current=void 0),ie.clear()});Mr.useEffect(()=>ne,[ne]);let te=Ke=>{wW.clear(),o1=!0,ee(!0),x&&!z&&x(Ke)},U=Oo(Ke=>{L.current=!1,wW.start(800+y,()=>{o1=!1}),ee(!1),T&&z&&T(Ke),X.start(S.transitions.duration.shortest,()=>{N.current=!1})}),ue=Ke=>{N.current&&Ke.type!=="touchstart"||(P&&P.removeAttribute("title"),H.clear(),Z.clear(),f||o1&&d?H.start(o1?d:f,()=>{te(Ke)}):te(Ke))},V=Ke=>{if(P?.disabled&&!re){if(z&&!L.current)return;L.current=!0}else L.current=!1;ue(Ke)},pe=Ke=>{P?.disabled&&!re&&!L.current||ue(Ke)},se=Ke=>{H.clear(),Z.start(y,()=>{U(Ke)})},[,ye]=Mr.useState(!1),le=Ke=>{let lt=Ke?.target??P;if(!lt||lt.disabled||!rs(lt)){ye(!1);let Go=Ke??new Event("blur");!Ke&<&&(Object.defineProperty(Go,"target",{value:lt}),Object.defineProperty(Go,"currentTarget",{value:lt})),se(Go)}},ge=Ke=>{if(P||M(Ke.currentTarget),L.current=!1,rs(Ke.target)){let lt=Go=>{Go.target.disabled&&le(Go),Go.target.removeEventListener("blur",lt)};Ke.target.addEventListener("blur",lt),ye(!0),ue(Ke)}},ae=Ke=>{N.current=!0;let lt=R.props;lt.onTouchStart&<.onTouchStart(Ke)},oe=Ke=>{ae(Ke),Z.clear(),X.clear(),ne(),W.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ie.start(m,()=>{document.body.style.WebkitUserSelect=W.current,V(Ke)})},he=Ke=>{R.props.onTouchEnd&&R.props.onTouchEnd(Ke),ne(),Z.start(g,()=>{U(Ke)})};Mr.useEffect(()=>{if(!z)return;function Ke(lt){lt.key==="Escape"&&U(lt)}return document.addEventListener("keydown",Ke),()=>{document.removeEventListener("keydown",Ke)}},[U,z]);let Ie=Wt(ln(R),M,o);!I&&I!==0&&(z=!1);let Se=Mr.useRef(),ot=Ke=>{let lt=R.props;lt.onMouseMove&<.onMouseMove(Ke),Kx={x:Ke.clientX,y:Ke.clientY},Se.current&&Se.current.update()},Fe={},Le=typeof I=="string";a?(Fe.title=!z&&Le&&!c?I:null,Fe["aria-describedby"]=z?Y:null):(Fe["aria-label"]=Le?I:null,Fe["aria-labelledby"]=z&&!Le?Y:null);let qe={...Fe,...O,...R.props,className:$(O.className,R.props.className),onTouchStart:ae,ref:Ie,...h?{onMouseMove:ot}:{}},Mt={};u||(qe.onTouchStart=oe,qe.onTouchEnd=he),c||(qe.onMouseOver=r1(V,qe.onMouseOver),qe.onMouseLeave=r1(se,qe.onMouseLeave),j||(Mt.onMouseOver=pe,Mt.onMouseLeave=se)),l||(qe.onFocus=r1(ge,qe.onFocus),qe.onBlur=r1(le,qe.onBlur),j||(Mt.onFocus=ge,Mt.onBlur=le));let Pe={...r,arrow:n,disableInteractive:j,placement:v,touch:N.current},Ee=typeof k.popper=="function"?k.popper(Pe):k.popper,je=Mr.useMemo(()=>{let Ke=[{name:"arrow",enabled:!!E,options:{element:E,padding:4}}];return Ee?.popperOptions?.modifiers&&(Ke=Ke.concat(Ee.popperOptions.modifiers)),{...Ee?.popperOptions,modifiers:Ke}},[E,Ee?.popperOptions]),rt=Ude(Pe),st={slots:_,slotProps:{arrow:k.arrow,popper:Ee,tooltip:k.tooltip,transition:k.transition}},[He,mt]=xe("popper",{elementType:zde,externalForwardedProps:st,ownerState:Pe,className:rt.popper}),[at,no]=xe("transition",{elementType:Js,externalForwardedProps:st,ownerState:Pe}),[tt,Re]=xe("tooltip",{elementType:Wde,className:rt.tooltip,externalForwardedProps:st,ownerState:Pe}),[Ve,ut]=xe("arrow",{elementType:Hde,className:rt.arrow,externalForwardedProps:st,ownerState:Pe,ref:D});return(0,Ed.jsxs)(Mr.Fragment,{children:[Mr.cloneElement(R,qe),(0,Ed.jsx)(He,{as:ps,placement:v,anchorEl:h?{getBoundingClientRect:()=>({top:Kx.y,left:Kx.x,right:Kx.x,bottom:Kx.y,width:0,height:0})}:P,popperRef:Se,open:P?z:!1,id:Y,transition:!0,...Mt,...mt,popperOptions:je,children:({TransitionProps:Ke})=>(0,Ed.jsx)(at,{timeout:S.transitions.duration.shorter,...Ke,...no,children:(0,Ed.jsxs)(tt,{...Re,children:[I,n?(0,Ed.jsx)(Ve,{...ut}):null]})})})]})}),ht=Yde;function XD(e){return K("MuiSpeedDialAction",e)}var qde=Q("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),Sm=qde;var lg=w(J(),1),Gde=e=>{let{open:t,tooltipPlacement:o,classes:r}=e,n={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${Te(o)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return G(n,XD,r)},Kde=A(Op,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.fab,!o.open&&t.fabClosed]}})(de(({theme:e})=>({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:za(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,...Xs(e),opacity:1,variants:[{props:({ownerState:t})=>!t.open,style:{opacity:0,transform:"scale(0)"}}]}))),Xde=A("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.staticTooltip,!o.open&&t.staticTooltipClosed,t[`tooltipPlacement${Te(o.tooltipPlacement)}`]]}})(de(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",[`& .${Sm.staticTooltipLabel}`]:{...Ge(e,["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},variants:[{props:({ownerState:t})=>!t.open,style:{[`& .${Sm.staticTooltipLabel}`]:{opacity:0,transform:"scale(0.5)"}}},{props:{tooltipPlacement:"left"},style:{[`& .${Sm.staticTooltipLabel}`]:{transformOrigin:"100% 50%",right:"100%",marginRight:8}}},{props:{tooltipPlacement:"right"},style:{[`& .${Sm.staticTooltipLabel}`]:{transformOrigin:"0% 50%",left:"100%",marginLeft:8}}}]}))),Qde=A("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel"})(de(({theme:e})=>({position:"absolute",...e.typography.body1,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}))),Zde=cg.forwardRef(function(t,o){let r=ce({props:t,name:"MuiSpeedDialAction"}),{className:n,delay:s=0,icon:i,id:a,open:l,slots:c={},slotProps:p={},...u}=r,f=me(),d=Pn(f.motion.reducedMotion,!1),m=typeof p.tooltip=="function"?p.tooltip(r):p.tooltip??{},h=m.placement??"left",b={...r,tooltipPlacement:h},y=Gde(b),g={slots:c,slotProps:p},[T,x]=cg.useState(m.open??!1),C=()=>{x(!1)},v=()=>{x(!0)},_={transitionDelay:d.getTransitionTiming({duration:0,delay:`${s}ms`}).delay},[I,O]=xe("fab",{elementType:Kde,externalForwardedProps:g,ownerState:b,shouldForwardComponentProp:!0,className:$(y.fab,n),additionalProps:{style:_,tabIndex:-1,role:"menuitem",size:"small"}}),[R,S]=xe("tooltip",{elementType:ht,externalForwardedProps:g,shouldForwardComponentProp:!0,ref:o,additionalProps:{id:a},ownerState:b,getSlotProps:L=>({...L,onClose:j=>{L.onClose?.(j),C()},onOpen:j=>{L.onOpen?.(j),v()}})}),[P,M]=xe("staticTooltip",{elementType:Xde,externalForwardedProps:g,ownerState:b,ref:o,className:y.staticTooltip,additionalProps:{id:a}}),[E,D]=xe("staticTooltipLabel",{elementType:Qde,externalForwardedProps:g,ownerState:b,className:y.staticTooltipLabel,additionalProps:{style:_,id:`${a}-label`}}),N=(0,lg.jsx)(I,{...O,children:i});return S.open?(0,lg.jsxs)(P,{...M,...u,children:[(0,lg.jsx)(E,{...D,children:S.title}),cg.cloneElement(N,{"aria-labelledby":`${a}-label`})]}):(!l&&T&&x(!1),(0,lg.jsx)(R,{...S,title:S.title,open:l&&T,placement:S.placement,classes:S.classes,...u,children:N}))}),Md=Zde;var kW=w(J(),1),RW=be((0,kW.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var IW=w(J(),1),_W=be((0,IW.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var pg=w(B(),1);var EW=w(J(),1),MW=be((0,EW.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function QD(e){return K("MuiSpeedDialIcon",e)}var Jde=Q("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),ua=Jde;var n1=w(J(),1),efe=e=>{let{classes:t,open:o,openIcon:r}=e;return G({root:["root"],icon:["icon",o&&"iconOpen",r&&o&&"iconWithOpenIconOpen"],openIcon:["openIcon",o&&"openIconOpen"]},QD,t)},tfe=A("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[{[`& .${ua.icon}`]:t.icon},{[`& .${ua.icon}`]:o.open&&t.iconOpen},{[`& .${ua.icon}`]:o.open&&o.openIcon&&t.iconWithOpenIconOpen},{[`& .${ua.openIcon}`]:t.openIcon},{[`& .${ua.openIcon}`]:o.open&&t.openIconOpen},t.root]}})(de(({theme:e})=>({height:24,[`& .${ua.icon}`]:{...Ge(e,["transform","opacity"],{duration:e.transitions.duration.short})},[`& .${ua.openIcon}`]:{position:"absolute",...Ge(e,["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},variants:[{props:({ownerState:t})=>t.open,style:{[`& .${ua.icon}`]:{transform:"rotate(45deg)"},[`& .${ua.openIcon}`]:{transform:"rotate(0deg)",opacity:1}}},{props:({ownerState:t})=>t.open&&t.openIcon,style:{[`& .${ua.icon}`]:{opacity:0}}}]}))),OW=pg.forwardRef(function(t,o){let r=ce({props:t,name:"MuiSpeedDialIcon"}),{className:n,icon:s,open:i,openIcon:a,...l}=r,c=r,p=efe(c);function u(f,d){return pg.isValidElement(f)?pg.cloneElement(f,{className:d}):f}return(0,n1.jsxs)(tfe,{className:$(p.root,n),ref:o,ownerState:c,...l,children:[a?u(a,p.openIcon):null,s?u(s,p.icon):(0,n1.jsx)(MW,{className:p.icon})]})});OW.muiName="SpeedDialIcon";var Cm=OW;var s1=w(B(),1);var Xx=w(J(),1),DW,ofe=A("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ht})({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%"}),rfe=A("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ht})(de(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",...Ge(e,"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,...Ge(e,"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%",...Ge(e,"max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function ZD(e){let{children:t,classes:o,className:r,label:n,notched:s,...i}=e,a=n!=null&&n!=="",l={...e,notched:s,withLabel:a};return(0,Xx.jsx)(ofe,{"aria-hidden":!0,className:r,ownerState:l,...i,children:(0,Xx.jsx)(rfe,{ownerState:l,children:a?(0,Xx.jsx)("span",{children:n}):DW||(DW=(0,Xx.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"}))})})}function Qx(e){return K("MuiSelect",e)}var nfe=Q("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","nativeInput","error"]),il=nfe;var Zx=w(J(),1),sfe=e=>{let{classes:t}=e,r=G({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LE,t);return{...t,...r}},ife=A(jf,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Lf})(de(({theme:e})=>{let 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 .${jr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${jr.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${jr.focused} .${jr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(bt()).map(([o])=>({props:{color:o},style:{[`&.${jr.focused} .${jr.notchedOutline}`]:{borderColor:(e.vars||e).palette[o].main}}})),{props:{},style:{[`&.${jr.error} .${jr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${jr.disabled} .${jr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:14}},{props:({ownerState:o})=>o.endAdornment,style:{"--_trailingPad":"14px",paddingRight:"var(--_trailingPad)",[`&.${il.root}`]:{"--_trailingPad":"0px"}}},{props:({ownerState:o})=>o.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:o,size:r})=>o.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),afe=A(ZD,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(de(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),lfe=A(Vf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Bf})(de(({theme:e})=>({padding:"16.5px 14px","&:-webkit-autofill":{...!e.vars&&{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&&e.applyStyles("dark",{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}}]}))),NW=s1.forwardRef(function(t,o){let r=ce({props:t,name:"MuiOutlinedInput"}),{fullWidth:n=!1,inputComponent:s="input",label:i,multiline:a=!1,notched:l,slots:c={},slotProps:p={},type:u="text",...f}=r,d=sfe(r),[m,h]=Ln({props:r,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:h,fullWidth:n,hiddenLabel:m.hiddenLabel,multiline:a,size:m.size,type:u},y=c.root??ife,g=c.input??lfe,[T,x]=xe("notchedOutline",{elementType:afe,className:d.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:c,slotProps:p},additionalProps:{label:i!=null&&i!==""&&m.required?(0,Zx.jsxs)(s1.Fragment,{children:[i,"\u2009","*"]}):i}});return(0,Zx.jsx)(Ol,{slots:{root:y,input:g},slotProps:p,renderSuffix:C=>(0,Zx.jsx)(T,{...x,notched:typeof l<"u"?l:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:n,inputComponent:s,multiline:a,ref:o,type:u,...f,classes:{...d,notchedOutline:null}})});NW.muiName="Input";var da=NW;var fa=w(B(),1);var AW=w(J(),1),FW=be((0,AW.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function JD(e){return K("MuiChip",e)}var cfe=Q("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","deletable","outlined","filled","avatar","icon","label","deleteIcon","focusVisible"]),To=cfe;var Jx=w(J(),1),pfe=e=>{let{classes:t,disabled:o,size:r,color:n,onDelete:s,clickable:i,variant:a}=e,l={root:["root",a,o&&"disabled",`size${Te(r)}`,`color${Te(n)}`,i&&"clickable",s&&"deletable"],label:["label"],avatar:["avatar"],icon:["icon"],deleteIcon:["deleteIcon"]};return G(l,JD,t)},ufe=A("div",{name:"MuiChip",slot:"Root",shouldForwardProp:e=>Ht(e)&&e!=="focusableWhenDisabled"&&e!=="skipFocusWhenDisabled",overridesResolver:(e,t)=>{let{ownerState:o}=e,{color:r,clickable:n,onDelete:s,size:i,variant:a}=o;return[{[`& .${To.avatar}`]:t.avatar},{[`& .${To.icon}`]:t.icon},{[`& .${To.deleteIcon}`]:t.deleteIcon},t.root,t[`size${Te(i)}`],t[`color${Te(r)}`],n&&t.clickable,s&&t.deletable,t[a]]}})(de(({theme:e})=>{let 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,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",...Ge(e,["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${To.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${To.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${To.icon}`]:{marginLeft:5,marginRight:-6},[`& .${To.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:"primary"},style:{[`& .${To.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:"secondary"},style:{[`& .${To.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:"small"},style:{height:24,[`& .${To.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${To.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${To.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(bt(["contrastText"])).map(([o])=>({props:{color:o},style:{backgroundColor:(e.vars||e).palette[o].main,color:(e.vars||e).palette[o].contrastText,[`& .${To.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[o].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o].contrastText}}}})),{props:o=>o.iconColor===o.color,style:{[`& .${To.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:o=>o.iconColor===o.color&&o.color!=="default",style:{[`& .${To.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:!e.focusVisible&&{[`&.${To.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(bt(["dark"])).map(([o])=>({props:{color:o,onDelete:!0},style:!e.focusVisible&&{[`&.${To.focusVisible}`]:{background:(e.vars||e).palette[o].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},...!e.focusVisible&&{[`&.${To.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(bt(["dark"])).map(([o])=>({props:{color:o,clickable:!0},style:{"&:hover":{backgroundColor:(e.vars||e).palette[o].dark},...!e.focusVisible&&{[`&.${To.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o].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]}`,[`&.${To.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},...!e.focusVisible&&{[`&.${To.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`& .${To.avatar}`]:{marginLeft:4},[`& .${To.icon}`]:{marginLeft:4},[`& .${To.deleteIcon}`]:{marginRight:5}}},{props:{size:"small",variant:"outlined"},style:{[`& .${To.avatar}`]:{marginLeft:2},[`& .${To.icon}`]:{marginLeft:2},[`& .${To.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(bt()).map(([o])=>({props:{variant:"outlined",color:o},style:{color:(e.vars||e).palette[o].main,border:`1px solid ${e.alpha((e.vars||e).palette[o].main,.7)}`,[`&.${To.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)},...!e.focusVisible&&{[`&.${To.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.focusOpacity)}},[`& .${To.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[o].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o].main}}}}))]}})),dfe=A("span",{name:"MuiChip",slot:"Label"})({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 LW(e){return e.key==="Backspace"||e.key==="Delete"}var ffe=fa.forwardRef(function(t,o){let r=ce({props:t,name:"MuiChip"}),{avatar:n,className:s,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:p=!1,icon:u,label:f,onClick:d,onDelete:m,onKeyDown:h,onKeyUp:b,size:y="medium",variant:g="filled",tabIndex:T,skipFocusWhenDisabled:x=!1,slots:C={},slotProps:v={},...k}=r,{nativeButton:_,...I}=k,O=fa.useRef(null),R=Wt(O,o),S=Y=>{Y.stopPropagation(),m(Y)},P=Y=>{Y.currentTarget===Y.target&&LW(Y)&&Y.preventDefault(),h&&h(Y)},M=Y=>{Y.currentTarget===Y.target&&m&&LW(Y)&&m(Y),b&&b(Y)},E=i!==!1&&d?!0:i,D=E||m?Qt:l||"div",N={...r,component:D,disabled:p,size:y,color:a,iconColor:fa.isValidElement(u)&&u.props.color||a,onDelete:!!m,clickable:E,variant:g},L=pfe(N),j=D===Qt?{component:l||"div",internalNativeButton:!1,focusVisibleClassName:L.focusVisible,...m&&{disableRipple:!0},..._!==void 0&&{nativeButton:_}}:{},X=null;m&&(X=c&&fa.isValidElement(c)?fa.cloneElement(c,{className:$(c.props.className,L.deleteIcon),onClick:S}):(0,Jx.jsx)(FW,{className:L.deleteIcon,onClick:S}));let H=null;n&&fa.isValidElement(n)&&(H=fa.cloneElement(n,{className:$(L.avatar,n.props.className)}));let Z=null;u&&fa.isValidElement(u)&&(Z=fa.cloneElement(u,{className:$(L.icon,u.props.className)}));let ie={slots:C,slotProps:v},[q,ee]=xe("root",{elementType:ufe,externalForwardedProps:{...ie,...I},ownerState:N,shouldForwardComponentProp:!0,ref:R,className:$(L.root,s),additionalProps:{disabled:E&&p?!0:void 0,tabIndex:x&&p?-1:T,...j},getSlotProps:Y=>({...Y,onClick:W=>{Y.onClick?.(W),d?.(W)},onKeyDown:W=>{Y.onKeyDown?.(W),P(W)},onKeyUp:W=>{Y.onKeyUp?.(W),M(W)}})}),[z,re]=xe("label",{elementType:dfe,externalForwardedProps:ie,ownerState:N,className:L.label});return(0,Jx.jsxs)(q,{as:D,...ee,children:[H||Z,(0,Jx.jsx)(z,{...re,children:f}),X]})}),us=ffe;var BW=w(J(),1),i1=be((0,BW.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var jW=w(J(),1),e2=be((0,jW.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFile");var VW={"image/":"image","image/jpeg":"image","image/png":"image","image/gif":"gif_box","image/svg+xml":"image","image/webp":"image","application/pdf":"picture_as_pdf","application/msword":"description","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"description","application/vnd.ms-excel":"table_chart","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"table_chart","application/vnd.ms-powerpoint":"slideshow","application/vnd.openxmlformats-officedocument.presentationml.presentation":"slideshow","text/":"article","text/plain":"article","text/html":"html","text/css":"css","text/javascript":"javascript","text/csv":"table_chart","text/markdown":"article","audio/":"audio_file","audio/mpeg":"audio_file","audio/wav":"audio_file","audio/ogg":"audio_file","video/":"video_file","video/mp4":"video_file","video/webm":"video_file","video/ogg":"video_file","application/zip":"folder_zip","application/x-rar-compressed":"folder_zip","application/x-7z-compressed":"folder_zip","application/x-tar":"folder_zip","application/gzip":"folder_zip","application/json":"code","application/xml":"code","text/xml":"code",default:"insert_drive_file"},mfe=e=>kt.createElement(Be,{sx:{position:"relative",display:"inline-block",width:40,height:40}},kt.createElement(_e,{size:40,thickness:4,sx:{color:`${e.color}.main`,animationDuration:"1s",strokeLinecap:"round"},value:e.progress,variant:e.progress==null?"indeterminate":"determinate"}),kt.createElement(Be,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"white",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",width:25,height:25}},kt.createElement(_W,{color:e.color,sx:{fontSize:24}}))),yfe=A("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"100%",overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:"100%",opacity:0,cursor:"pointer",zIndex:1});function hfe(e){if(e===0)return"0 B";let t=1024,o=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**r).toFixed(2))} ${o[r]}`}var gfe=kt.forwardRef(({filePreview:e,footerObjects:t,...o},r)=>{let n=kt.useRef(null);return kt.useImperativeHandle(r,()=>({focus:()=>n?.current?.focus(),blur:()=>n?.current?.blur(),value:n?.current?.value})),kt.createElement(Be,{sx:{alignSelf:"center",width:"100%"}},e,kt.createElement(Df,{ref:n,...o,style:{...o.style,border:"none",outline:"none",resize:"none",background:"transparent",fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",width:"100%",boxSizing:"border-box",paddingTop:"0.5rem",paddingBottom:"0.5rem"}}),t&&t.length>0&&kt.createElement(Be,{sx:{display:"flex",flexDirection:"row",flexWrap:"nowrap",gap:1,pt:0,pb:0,mb:-1,alignItems:"center",width:"100%",maxWidth:"calc(100% - 16px)",overflowX:"auto","&::-webkit-scrollbar":{height:"1px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0,0,0,0.2)",borderRadius:"1px"}}},t))});function bfe({model:e,view:t}){let[o]=e.useState("accept"),[r]=e.useState("actions"),[n]=e.useState("auto_grow"),[s]=e.useState("color"),[i]=e.useState("disabled"),[a]=e.useState("disabled_enter"),[l]=e.useState("enable_upload"),[c]=e.useState("enter_sends"),[p]=e.useState("error_state"),[u,f]=e.useState("loading"),[d]=e.useState("max_rows"),[m]=e.useState("label"),[h]=e.useState("placeholder"),[b]=e.useState("rows"),[y]=e.useState("sx"),[g,T]=e.useState("value_input"),[x]=e.useState("variant"),[C,v]=kt.useState(!1),k=kt.useRef(null),_=e.get_child("footer_objects"),I=co(h),[O,R]=kt.useState(void 0),[S,P]=kt.useState([]),[M,E]=e.useState("pending_uploads"),D=kt.useRef(null),N=kt.useRef(S);kt.useEffect(()=>{N.current=S,E(S.length)},[S]),kt.useEffect(()=>{e.on("msg:custom",te=>{te.status==="finished"?D.current=te:te.type==="sync"?X():te.type==="focus"&&setTimeout(()=>{t.container.querySelector("textarea")?.focus()},0)}),e.on("lifecycle:update_layout",()=>{_.map((te,U)=>{jt(t.get_child_view(e.footer_objects[U]),"row")})})},[]),e.on("remove",()=>{D.current={status:"removed"}});let L=te=>te.key==="Enter"&&(c&&!(te.ctrlKey||te.shiftKey)||!c&&(te.ctrlKey||te.shiftKey)),j={sx:{width:"100%",height:"100%",...y}};n?j={minRows:b}:j={rows:b};let X=async()=>{let te=N.current;if(te.length){let U=te;o&&(U=Array.from(te).filter(V=>td(V,o)));let ue=await qT(U,e,e.max_file_size,e.max_total_file_size,e.chunk_size||10*1024*1024,R,D);P([]),N.current=[],R(void 0)}},H=async()=>{if(!i){if(S.length){let te=S;o&&(te=Array.from(S).filter(ue=>td(ue,o)));let U=await qT(te,e,e.max_file_size,e.max_total_file_size,e.chunk_size||10*1024*1024,R,D)}e.send_msg({type:"input",value:g}),await tM(D),P([]),N.current=[],T(""),R(void 0)}},Z=()=>{e.send_msg({type:"action",action:"stop"})},ie=te=>{te.preventDefault(),te.stopPropagation(),te.dataTransfer.types&&te.dataTransfer.types.includes("Files")&&v(!0)},q=te=>{te.preventDefault(),te.stopPropagation(),v(!1)},ee=te=>{te.preventDefault(),te.stopPropagation(),te.dataTransfer.types&&te.dataTransfer.types.includes("Files")?te.dataTransfer.dropEffect="copy":te.dataTransfer.dropEffect="none"},z=te=>{if(te.preventDefault(),te.stopPropagation(),v(!1),i)return;let U=Array.from(te.dataTransfer.files),ue=U;o&&(ue=U.filter(pe=>td(pe,o)));let V=[...S,...ue];P(V),N.current=V},re=te=>{let U=[...S];U.splice(te,1),P(U),N.current=U},Y=()=>kt.createElement(Be,{sx:{display:"flex",flexWrap:"wrap",gap:.5,p:1,pb:.5,width:"100%",minHeight:"32px",maxHeight:"60px",overflowY:"auto",alignItems:"center",borderBottom:1,borderColor:"divider",backgroundColor:"background.paper"}},S.map((te,U)=>kt.createElement(us,{key:`${te.name}-${U}`,icon:kt.createElement(Gr,null,Object.entries(VW).find(([ue,V])=>te.type.startsWith(ue))?.[1]||VW.default),label:kt.createElement($e,{variant:"caption",noWrap:!0,sx:{maxWidth:"150px"}},te.name," (",hfe(te.size),")"),onDelete:()=>re(U),deleteIcon:kt.createElement(i1,null),size:"small",color:s,variant:"outlined",sx:{height:"24px",mb:"8px"}}))),W=kt.useRef(null);kt.useEffect(()=>{setTimeout(()=>{t.container.querySelector("textarea")?.focus()},0)},[]);let ne=kt.useRef(u);return kt.useEffect(()=>{ne.current&&!u&&setTimeout(()=>{t.container.querySelector("textarea")?.focus()},0),ne.current=u},[u]),kt.createElement(Be,{sx:{display:"flex",flexDirection:"column",width:"100%",height:"100%",gap:1}},kt.createElement(Be,{sx:{position:"relative",width:"100%",height:"100%",...C&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.1)",border:"2px dashed",borderColor:`${s}.main`,borderRadius:1,zIndex:2}}},onDragEnter:ie,onDragLeave:q,onDragOver:ee,onDrop:z},l&&kt.createElement(yfe,{ref:k,type:"file",multiple:!0,accept:o,onChange:te=>{if(te.target.files&&te.target.files.length>0){let U=Array.from(te.target.files),ue=U;o&&(ue=U.filter(pe=>td(pe,o)));let V=[...S,...ue];P(V),N.current=V}}}),kt.createElement(da,{multiline:!0,color:s,disabled:i,inputComponent:gfe,value:g,slotProps:{root:{ref:W,onChange:te=>T(te.target.value),onKeyDown:te=>{L(te)&&(te.preventDefault(),H())},value:g},input:{filePreview:l&&S.length>0?kt.createElement(Y,null):null,footerObjects:_.map((te,U)=>(jt(t.get_child_view(e.footer_objects[U]),"row"),te)),maxRows:d,placeholder:I,...j}},placeholder:I,startAdornment:Object.keys(r).length>0?kt.createElement(tr,{position:"start",sx:{alignItems:"end",maxHeight:"35px",mr:"4px",alignSelf:"center"}},kt.createElement(Xf,{ariaLabel:"Actions",disabled:i,size:"small",FabProps:{size:"small",sx:{width:"35px",height:"35px",minHeight:"35px"}},icon:kt.createElement(Cm,{color:s}),sx:{zIndex:1e3,ml:"-4px"}},l&&kt.createElement(Md,{icon:kt.createElement(e2,null),slotProps:{popper:{container:t.container},tooltip:{title:"Attach files"}},onClick:()=>k.current?.click()}),Object.keys(r).map(te=>kt.createElement(Md,{key:te,icon:kt.createElement(Gr,null,r[te].icon),slotProps:{popper:{container:t.container},tooltip:{title:fe(r[te].label||te)}},onClick:()=>e.send_msg({type:"action",action:te})})))):l?kt.createElement(Qe,{color:"primary",disabled:i,onClick:()=>k.current?.click()},kt.createElement(e2,null)):null,endAdornment:kt.createElement(tr,{onClick:()=>a||u?Z():H(),position:"end",sx:{mb:"2px",ml:"-4px",alignSelf:"center"}},kt.createElement(Qe,{color:"primary",disabled:i},a||u||O!==void 0?kt.createElement(mfe,{color:s,progress:O}):kt.createElement(RW,null))),error:p,label:co(m),variant:x,fullWidth:!0,sx:{...j.sx,p:"8px",alignItems:"end",position:"relative",zIndex:0,width:"100%",".MuiInputBase-root":{alignItems:"flex-start",padding:Object.keys(r).length>0||l?"8px":"8px 8px 8px 16px"}}})))}function Tfe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),kt.createElement(ve,{theme:t},kt.createElement(Ce,null),kt.createElement(bfe,{...e}),o.length?kt.createElement("div",{class:"attached"},o):null)}var $W={render:Tfe};var ro=w(B());var ug=w(B(),1);var UW=w(J(),1),zW=be((0,UW.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function t2(e){return K("MuiAvatar",e)}var xfe=Q("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),a1=xfe;var l1=w(J(),1),Pfe=e=>{let{classes:t,variant:o,colorDefault:r}=e;return G({root:["root",o,r&&"colorDefault"],img:["img"],fallback:["fallback"]},t2,t)},vfe=A("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant],o.colorDefault&&t.colorDefault]}})(de(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,"@media (forced-colors: active)":{boxSizing:"border-box",border:"1px solid ButtonBorder"},...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),Sfe=A("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Cfe=A(zW,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function wfe(e,t,o,r){let[n,s]=ug.useState(!1);return ug.useEffect(()=>{if(!e&&!t)return;s(!1);let i=!0,a=new Image;return a.onload=()=>{i&&s("loaded")},a.onerror=()=>{i&&s("error")},a.crossOrigin=o,a.referrerPolicy=r,a.src=e,t&&(a.srcset=t),()=>{i=!1}},[o,r,e,t]),n}var kfe=ug.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAvatar"}),{alt:n,children:s,className:i,component:a="div",slots:l={},slotProps:c={},sizes:p,src:u,srcSet:f,variant:d="circular",...m}=r,h=null,b={...r,component:a,variant:d},{crossOrigin:y,referrerPolicy:g}=(typeof c.img=="function"?c.img(b):c.img)??{},T=wfe(u,f,y,g),x=u||f,C=x&&T!=="error";b.colorDefault=!C,delete b.ownerState;let v=Pfe(b),k={slots:l,slotProps:c},[_,I]=xe("root",{ref:o,className:$(v.root,i),elementType:vfe,externalForwardedProps:{...k,component:a,...m},ownerState:b}),[O,R]=xe("img",{className:v.img,elementType:Sfe,externalForwardedProps:k,additionalProps:{alt:n,src:u,srcSet:f,sizes:p},ownerState:b}),[S,P]=xe("fallback",{className:v.fallback,elementType:Cfe,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:b});return C?h=(0,l1.jsx)(O,{...R}):s||s===0?h=s:x&&n?h=n[0]:h=(0,l1.jsx)(S,{...P}),(0,l1.jsx)(_,{...I,children:h})}),Rn=kfe;var HW=w(B(),1);function o2(e){return K("MuiPaper",e)}var Rfe=Q("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),WW=Rfe;var YW=w(J(),1),Ife=e=>{let{square:t,elevation:o,variant:r,classes:n}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${o}`]};return G(s,o2,n)},_fe=A("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant],!o.square&&t.rounded,o.variant==="elevation"&&t[`elevation${o.elevation}`]]}})(de(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...Ge(e,"box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Efe=HW.forwardRef(function(t,o){let r=ce({props:t,name:"MuiPaper"}),n=me(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...p}=r,u={...r,component:i,elevation:a,square:l,variant:c},f=Ife(u);return(0,YW.jsx)(_fe,{as:i,ownerState:u,className:$(f.root,s),ref:o,...p,style:{...c==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[a],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[a]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${_l("#fff",Cp(a))}, ${_l("#fff",Cp(a))})`}},...p.style}})}),oo=Efe;var Mfe=DS({createStyledComponent:A("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>ce({props:e,name:"MuiStack"})}),Od=Mfe;var Ofe=Q("MuiStack",["root"]),qW=Ofe;var GW=w(J(),1),KW=be((0,GW.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var XW=w(J(),1),QW=be((0,XW.jsx)("path",{d:"M3 10h11v2H3zm0-2h11V6H3zm0 8h7v-2H3zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71-5.3 5.3V21h2.12l5.3-5.3z"}),"EditNote");function Dfe(){return ro.createElement(Be,{sx:{margin:"1em 0.5em 0 0",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px",width:"90px"}},ro.createElement(Be,{component:"span",sx:{width:12,height:12,borderRadius:"50%",backgroundColor:"text.disabled",animation:"grow 2.4s ease-in-out infinite, fade 2.4s ease-in-out infinite","@keyframes grow":{"0%, 100%":{transform:"scale(0)"},"50%":{transform:"scale(1)"}},"@keyframes fade":{"0%, 100%":{opacity:.3},"50%":{opacity:1}}}}),ro.createElement(Be,{component:"span",sx:{width:12,height:12,borderRadius:"50%",backgroundColor:"text.disabled",animation:"grow 2.4s ease-in-out infinite, fade 2.4s ease-in-out infinite",animationDelay:"0.6s"}}),ro.createElement(Be,{component:"span",sx:{width:12,height:12,borderRadius:"50%",backgroundColor:"text.disabled",animation:"grow 2.4s ease-in-out infinite, fade 2.4s ease-in-out infinite",animationDelay:"1.2s"}}),ro.createElement(Be,{component:"span",sx:{width:12,height:12,borderRadius:"50%",backgroundColor:"text.disabled",animation:"grow 2.4s ease-in-out infinite, fade 2.4s ease-in-out infinite",animationDelay:"1.8s"}}))}function Nfe(e){return/[\p{Emoji}]/u.test(e)}function Afe({model:e,view:t}){let[o]=e.useState("placement"),[r]=e.useState("elevation"),[n]=e.useState("user"),[s]=e.useState("show_avatar"),[i]=e.useState("show_edit_icon"),[a]=e.useState("show_user"),[l]=e.useState("show_timestamp"),[c]=e.useState("show_reaction_icons"),[p]=e.useState("show_copy_icon"),[u]=e.useState("reaction_icons"),[f]=e.useState("reactions"),[d]=e.useState("_internal_state.avatar"),[m]=e.useState("_internal_state.timestamp"),h=e.get_child("_object_panel"),b=e.get_child("header_objects"),y=e.get_child("footer_objects");e.on("msg:custom",R=>{navigator.clipboard.writeText(R.text)});let g=s&&d.type==="text"&&d.text=="PLACEHOLDER",T=g?ro.createElement(Dfe,null):ro.createElement(Rn,{src:d.type==="image"?d.src:null,sx:{margin:o==="left"?"1em 0.5em 0 0":"1em 0 0 0.5em",bgcolor:"background.paper",color:"text.primary",boxShadow:3}},d.type!=="image"&&(d.type=="text"?Nfe(d.text)?d.text:[...d.text][0]:(()=>{let R=Al(d.icon);return ro.createElement(Gr,{baseClassName:R.baseClassName},R.iconName)})())),x=t.model.data._object_panel,C=x.sizing_mode&&(x.sizing_mode.includes("width")||x.sizing_mode.includes("both")),v=ro.useRef(null),[k,_]=ro.useState(!1);ro.useEffect(()=>{if(!v.current)return;let R=new MutationObserver(()=>{_(!!v.current?.querySelector(".edit-area"))});return R.observe(v.current,{childList:!0,subtree:!0}),()=>R.disconnect()},[]);let I=ro.useRef(null),O=ro.useRef(!1);return ro.useEffect(()=>{let R=t.el;for(;R;){if(R.scrollHeight>R.clientHeight+1){let E=getComputedStyle(R);if(E.overflowY==="auto"||E.overflowY==="scroll"){I.current=R;break}}if(R.parentElement)R=R.parentElement;else{let E=R.getRootNode();R=E instanceof ShadowRoot?E.host:null}}let S=I.current;if(!S)return;let P=S.scrollTop,M=()=>{let E=S.scrollTop,D=S.scrollHeight-E-S.clientHeight;E<P?O.current=!0:D<50&&(O.current=!1),P=E};return S.addEventListener("scroll",M),()=>S.removeEventListener("scroll",M)},[]),ro.useEffect(()=>{if(!v.current||t.parent?.model.type!="panel.models.feed.Feed")return;let R=null,S=new ResizeObserver(()=>{clearTimeout(R),R=setTimeout(()=>t.invalidate_layout(),50),O.current||requestAnimationFrame(()=>{let P=I.current;P&&(P.scrollTop=P.scrollHeight)})});return S.observe(v.current),()=>{S.disconnect(),clearTimeout(R)}},[]),ro.createElement(Be,{sx:{flexDirection:"row",display:"flex",maxWidth:"100%"}},o==="left"&&T,!g&&ro.createElement(Od,{direction:"column",spacing:0,sx:{flexGrow:1,maxWidth:"calc(100% - 60px)",alignItems:o==="left"?"flex-start":"flex-end"}},a&&ro.createElement($e,{variant:"caption"},fe(n)),ro.createElement(Od,{direction:"row",spacing:0},b),ro.createElement(oo,{ref:v,elevation:r,sx:{bgcolor:"background.paper",width:C||k?"100%":"fit-content"}},h),ro.createElement(Od,{direction:"row",spacing:0,sx:{position:"relative",zIndex:1}},i&&ro.createElement(Qe,{disableRipple:!0,size:"small",sx:{padding:"0 0.1em"},onClick:()=>{e.send_msg("edit")}},ro.createElement(QW,{sx:{width:"0.8em"},color:"lightgray"})),p&&ro.createElement(Qe,{disableRipple:!0,size:"small",sx:{padding:"0 0.1em"},onClick:()=>{e.send_msg("copy")}},ro.createElement(KW,{sx:{width:"0.5em"},color:"lightgray"})),c&&f.map(R=>ro.createElement(Qe,{key:`reaction-${R}`,disableRipple:!0,size:"small",sx:{padding:"0 0.1em"},onClick:()=>{e.send_msg(R)}},(()=>{let S=u[R]||R,P=Al(S);return ro.createElement(Gr,{baseClassName:P.baseClassName,sx:{width:"0.5em"}},P.iconName)})()))),ro.createElement(Od,{direction:"row",spacing:0},y),l&&ro.createElement($e,{variant:"caption",color:"text.secondary"},m)),o==="right"&&T)}function Ffe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return ro.createElement("div",{style:{display:"contents",position:"relative"}},ro.createElement(Afe,{...e}),t&&ro.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},ro.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Lfe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),ro.createElement(ve,{theme:t},ro.createElement(Ce,null),ro.createElement(Ffe,{...e}),o.length?ro.createElement("div",{class:"attached"},o):null)}var ZW={render:Lfe};var In=w(B());var e8=w(B(),1);function r2(e){return K("MuiCard",e)}var Bfe=Q("MuiCard",["root"]),JW=Bfe;var t8=w(J(),1),jfe=e=>{let{classes:t}=e;return G({root:["root"]},r2,t)},Vfe=A(oo,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),$fe=e8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiCard"}),{className:n,raised:s=!1,...i}=r,a={...r,raised:s},l=jfe(a);return(0,t8.jsx)(Vfe,{className:$(l.root,n),elevation:s?8:void 0,ref:o,ownerState:a,...i})}),qp=$fe;var r8=w(B(),1);function n2(e){return K("MuiCardContent",e)}var Ufe=Q("MuiCardContent",["root"]),o8=Ufe;var n8=w(J(),1),zfe=e=>{let{classes:t}=e;return G({root:["root"]},n2,t)},Wfe=A("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Hfe=r8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiCardContent"}),{className:n,component:s="div",...i}=r,a={...r,component:s},l=zfe(a);return(0,n8.jsx)(Wfe,{as:s,className:$(l.root,n),ownerState:a,ref:o,...i})}),wm=Hfe;var s8=w(B(),1);function s2(e){return K("MuiCardHeader",e)}var Yfe=Q("MuiCardHeader",["root","avatar","action","content","title","subheader"]),km=Yfe;var Dd=w(J(),1),qfe=e=>{let{classes:t}=e;return G({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},s2,t)},Gfe=A("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${km.title}`]:t.title},{[`& .${km.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),Kfe=A("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),Xfe=A("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Qfe=A("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${od.root}:where(& .${km.title})`]:{display:"block"},[`.${od.root}:where(& .${km.subheader})`]:{display:"block"}}),Zfe=s8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiCardHeader"}),{action:n,avatar:s,component:i="div",disableTypography:a=!1,subheader:l,title:c,slots:p={},slotProps:u={},...f}=r,d={...r,component:i,disableTypography:a},m=qfe(d),h={slots:p,slotProps:u},b=c,[y,g]=xe("title",{className:m.title,elementType:$e,externalForwardedProps:h,ownerState:d,additionalProps:{variant:s?"body2":"h5",component:"span"}});b!=null&&b.type!==$e&&!a&&(b=(0,Dd.jsx)(y,{...g,children:b}));let T=l,[x,C]=xe("subheader",{className:m.subheader,elementType:$e,externalForwardedProps:h,ownerState:d,additionalProps:{variant:s?"body2":"body1",color:"textSecondary",component:"span"}});T!=null&&T.type!==$e&&!a&&(T=(0,Dd.jsx)(x,{...C,children:T}));let[v,k]=xe("root",{ref:o,className:m.root,elementType:Gfe,externalForwardedProps:{...h,...f,component:i},ownerState:d}),[_,I]=xe("avatar",{className:m.avatar,elementType:Kfe,externalForwardedProps:h,ownerState:d}),[O,R]=xe("content",{className:m.content,elementType:Qfe,externalForwardedProps:h,ownerState:d}),[S,P]=xe("action",{className:m.action,elementType:Xfe,externalForwardedProps:h,ownerState:d});return(0,Dd.jsxs)(v,{...k,children:[s&&(0,Dd.jsx)(_,{...I,children:s}),(0,Dd.jsxs)(O,{...R,children:[b,T]}),n&&(0,Dd.jsx)(S,{...P,children:n})]})}),Gp=Zfe;var dg=w(B(),1);function i2(e){return K("MuiCollapse",e)}var Jfe=Q("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),i8=Jfe;var eP=w(J(),1),a8={},eme=e=>{let{orientation:t,classes:o}=e;return G({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},i2,o)},tme=A("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.orientation],o.state==="entered"&&t.entered,o.state==="exited"&&!o.in&&o.collapsedSize==="0px"&&t.hidden]}})(de(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),ome=A("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),rme=A("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),a2=dg.forwardRef(function(t,o){let r=ce({props:t,name:"MuiCollapse"}),{addEndListener:n,children:s,className:i,collapsedSize:a="0px",component:l,disablePrefersReducedMotion:c=!1,easing:p,in:u,onEnter:f,onEntered:d,onEntering:m,onExit:h,onExited:b,onExiting:y,orientation:g="vertical",slots:T=a8,slotProps:x=a8,style:C,timeout:v=ih.standard,TransitionComponent:k=Sc,..._}=r,I={...r,orientation:g,collapsedSize:a},O=eme(I),R=me(),S=dg.useRef(null),P=dg.useRef(null),M=typeof a=="number"?`${a}px`:a,E=g==="horizontal",D=E?"width":"height",N=Pn(R.motion.reducedMotion,c),L=dg.useRef(null),j=Wt(o,L),X=()=>S.current?S.current[E?"clientWidth":"clientHeight"]:0,H=uo(L,(pe,se)=>{S.current&&E&&(S.current.style.position="absolute"),pe.style[D]=M,f&&f(pe,se)}),Z=uo(L,(pe,se)=>{let ye=X();S.current&&E&&(S.current.style.position="");let{duration:le,easing:ge}=os({style:C,timeout:v,easing:p},{mode:"enter"});if(v==="auto"&&!N.shouldReduceMotion){let oe=R.transitions.getAutoHeightDuration(ye);P.current=oe}else P.current=null;let ae=N.getTransitionTiming({duration:P.current??le,delay:void 0});pe.style.transitionDuration=typeof ae.duration=="string"?ae.duration:`${ae.duration}ms`,pe.style[D]=`${ye}px`,pe.style.transitionTimingFunction=ge,m&&m(pe,se)}),ie=uo(L,(pe,se)=>{pe.style[D]="auto",d&&d(pe,se)}),q=uo(L,pe=>{pe.style[D]=`${X()}px`,h&&h(pe)}),ee=uo(L,b),z=uo(L,pe=>{let se=X(),{duration:ye,easing:le}=os({style:C,timeout:v,easing:p},{mode:"exit"});if(v==="auto"&&!N.shouldReduceMotion){let ae=R.transitions.getAutoHeightDuration(se);P.current=ae}else P.current=null;let ge=N.getTransitionTiming({duration:P.current??ye,delay:void 0});pe.style.transitionDuration=typeof ge.duration=="string"?ge.duration:`${ge.duration}ms`,pe.style[D]=M,pe.style.transitionTimingFunction=le,y&&y(pe)}),re=n?pe=>{n(L.current,pe)}:void 0,Y={slots:T,slotProps:x,component:l},[W,ne]=xe("root",{ref:j,className:$(O.root,i),elementType:tme,externalForwardedProps:Y,ownerState:I,additionalProps:{style:{[E?"minWidth":"minHeight"]:M,...C}}}),[te,U]=xe("wrapper",{ref:S,className:O.wrapper,elementType:ome,externalForwardedProps:Y,ownerState:I}),[ue,V]=xe("wrapperInner",{className:O.wrapperInner,elementType:rme,externalForwardedProps:Y,ownerState:I});return(0,eP.jsx)(k,{in:u,onEnter:H,onEntered:ie,onEntering:Z,onExit:q,onExited:ee,onExiting:z,addEndListener:re,getAutoTimeout:v==="auto"?()=>P.current:void 0,reduceMotion:N.shouldReduceMotion,nodeRef:L,timeout:v==="auto"?null:v,..._,children:(pe,{ownerState:se,...ye})=>{let le={...I,state:pe};return(0,eP.jsx)(W,{...ne,className:$(ne.className,{entered:O.entered,exited:!u&&M==="0px"&&O.hidden}[pe]),ownerState:le,...ye,children:(0,eP.jsx)(te,{...U,ownerState:le,children:(0,eP.jsx)(ue,{...V,ownerState:le,children:s})})})}})});a2&&(a2.muiSupportAuto=!0);var nr=a2;var l8=w(J(),1),ma=be((0,l8.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var nme={failed:"red",success:"green",pending:"transparent",running:"gold",completed:"green"},sme=A(e=>{let{expand:t,...o}=e;return In.createElement(Qe,{...o})})(({theme:e})=>({marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),variants:[{props:({expand:t})=>!t,style:{transform:"rotate(0deg)"}},{props:({expand:t})=>!!t,style:{transform:"rotate(180deg)"}}]}));function ime({model:e,view:t}){let[o]=e.useState("collapsible"),[r,n]=e.useState("collapsed"),[s]=e.useState("hide_header"),[i]=e.useState("elevation"),[a]=e.useState("title"),[l]=e.useState("outlined"),[c]=e.useState("raised"),[p]=e.useState("sx"),u=e.get_child("header"),f=e.get_child("objects"),[d]=e.useState("status");return e.header&&jt(t.get_child_view(e.header),"row"),In.createElement(qp,{raised:c,elevation:i,variant:l?"outlined":"elevation",sx:{display:"flex",flexDirection:"column",width:"100%",height:"100%",...p}},In.createElement(Gp,{action:o&&In.createElement(sme,{expand:!r,onClick:()=>n(!r),"aria-expanded":!r,"aria-label":"show more"},In.createElement(ma,null)),avatar:In.createElement(Be,{sx:{display:"flex",alignItems:"center",mr:2}},In.createElement(Be,{sx:{width:15,height:15,borderRadius:"50%",border:"1px solid",borderColor:"black",bgcolor:nme[d]}})),sx:{display:"flex",minWidth:0,padding:"0.5em 0.5em 0.5em 1em","& .MuiCardHeader-content":{minWidth:0},"& .MuiCardHeader-title .step-header":{minWidth:0}},title:e.header?u:In.createElement($e,{variant:"h3"},fe(a))}),In.createElement(nr,{in:!r,timeout:"auto",unmountOnExit:!0,sx:{flexGrow:1,height:"100%",width:"100%","& .MuiCollapse-wrapper":{height:"100% !important"}}},In.createElement(wm,{sx:{height:"100%",width:"100%",display:"flex",flexDirection:"column",padding:"0 8px 0 16px","&:last-child":{pb:"0px"}}},f)))}function ame(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return In.createElement("div",{style:{display:"contents",position:"relative"}},In.createElement(ime,{...e}),t&&In.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},In.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function lme(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),In.createElement(ve,{theme:t},In.createElement(Ce,null),In.createElement(ame,{...e}),o.length?In.createElement("div",{class:"attached"},o):null)}var c8={render:lme};var ds=w(B());var Kp=w(B(),1);var p8=w(B(),1),cme=p8.createContext({}),c1=cme;function l2(e){return K("MuiAccordion",e)}var pme=Q("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),Rm=pme;var Im=w(J(),1),ume=e=>{let{classes:t,square:o,expanded:r,disabled:n,disableGutters:s}=e;return G({root:["root",!o&&"rounded",r&&"expanded",n&&"disabled",!s&&"gutters"],heading:["heading"],region:["region"]},l2,t)},dme=A(oo,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[{[`& .${Rm.region}`]:t.region},t.root,!o.square&&t.rounded,!o.disableGutters&&t.gutters]}})(de(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{position:"relative",...Ge(e,["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,...Ge(e,["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${Rm.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Rm.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),de(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${Rm.expanded}`]:{margin:"16px 0"}}}]}))),fme=A("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),mme=A("div",{name:"MuiAccordion",slot:"Region"})({}),yme=Kp.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAccordion"}),{children:n,className:s,defaultExpanded:i=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:p,slots:u={},slotProps:f={},...d}=r,[m,h]=ns({controlled:c,default:i,name:"Accordion",state:"expanded"}),b=Kp.useCallback(E=>{h(!m),p&&p(E,!m)},[m,p,h]),[y,...g]=Kp.Children.toArray(n),T=Kp.useMemo(()=>({expanded:m,disabled:a,disableGutters:l,toggle:b}),[m,a,l,b]),x={...r,disabled:a,disableGutters:l,expanded:m},C=ume(x),v={slots:u,slotProps:f},[k,_]=xe("root",{elementType:dme,externalForwardedProps:{...v,...d},className:$(C.root,s),shouldForwardComponentProp:!0,ownerState:x,ref:o}),[I,O]=xe("heading",{elementType:fme,externalForwardedProps:v,className:C.heading,ownerState:x}),[R,S]=xe("transition",{elementType:nr,externalForwardedProps:v,ownerState:x}),[P,M]=xe("region",{elementType:mme,externalForwardedProps:v,ownerState:x,className:C.region,additionalProps:{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region"}});return(0,Im.jsxs)(k,{..._,children:[(0,Im.jsx)(I,{...O,children:(0,Im.jsx)(c1.Provider,{value:T,children:y})}),(0,Im.jsx)(R,{in:m,timeout:"auto",...S,children:(0,Im.jsx)(P,{...M,children:g})})]})}),tP=yme;var p1=w(B(),1);var oP=w(J(),1),hme=e=>{let{classes:t,expanded:o,disabled:r,disableGutters:n}=e;return G({root:["root",o&&"expanded",r&&"disabled",!n&&"gutters"],focusVisible:["focusVisible"],content:["content",o&&"expanded"],expandIconWrapper:["expandIconWrapper",o&&"expanded"]},vE,t)},gme=A(Qt,{name:"MuiAccordionSummary",slot:"Root"})(de(({theme:e})=>({display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),...Ge(e,["min-height","background-color"],{duration:e.transitions.duration.shortest}),...!e.focusVisible&&{[`&.${El.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${El.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${El.disabled})`]:{cursor:"pointer"},variants:[{props:t=>!t.disableGutters,style:{[`&.${El.expanded}`]:{minHeight:64}}}]}))),bme=A("span",{name:"MuiAccordionSummary",slot:"Content"})(de(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{...Ge(e,["margin"],{duration:e.transitions.duration.shortest}),[`&.${El.expanded}`]:{margin:"20px 0"}}}]}))),Tme=A("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(de(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",...Ge(e,"transform",{duration:e.transitions.duration.shortest}),[`&.${El.expanded}`]:{transform:"rotate(180deg)"}}))),xme=p1.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAccordionSummary"}),{children:n,className:s,expandIcon:i,focusVisibleClassName:a,onClick:l,slots:c,slotProps:p,...u}=r,{disabled:f=!1,disableGutters:d,expanded:m,toggle:h}=p1.useContext(c1),b=O=>{h&&h(O),l&&l(O)},y={...r,expanded:m,disabled:f,disableGutters:d},g=hme(y),T={slots:c,slotProps:p},[x,C]=xe("root",{ref:o,shouldForwardComponentProp:!0,className:$(g.root,s),elementType:gme,externalForwardedProps:{...T,...u},ownerState:y,additionalProps:{focusRipple:!1,disableRipple:!0,internalNativeButton:!0,disabled:f,"aria-expanded":m,focusVisibleClassName:$(g.focusVisible,a)},getSlotProps:O=>({...O,onClick:R=>{O.onClick?.(R),b(R)}})}),[v,k]=xe("content",{className:g.content,elementType:bme,externalForwardedProps:T,ownerState:y}),[_,I]=xe("expandIconWrapper",{className:g.expandIconWrapper,elementType:Tme,externalForwardedProps:T,ownerState:y});return(0,oP.jsxs)(x,{...C,children:[(0,oP.jsx)(v,{...k,children:n}),i&&(0,oP.jsx)(_,{...I,children:i})]})}),rP=xme;var d8=w(B(),1);function c2(e){return K("MuiAccordionDetails",e)}var Pme=Q("MuiAccordionDetails",["root"]),u8=Pme;var f8=w(J(),1),vme=e=>{let{classes:t}=e;return G({root:["root"]},c2,t)},Sme=A("div",{name:"MuiAccordionDetails",slot:"Root"})(de(({theme:e})=>({padding:e.spacing(1,2,2)}))),Cme=d8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAccordionDetails"}),{className:n,...s}=r,i=r,a=vme(i);return(0,f8.jsx)(Sme,{className:$(a.root,n),ref:o,ownerState:i,...s})}),nP=Cme;function wme({model:e}){let[t,o]=e.useState("active"),[r]=e.useState("active_header_background"),[n]=e.useState("active_header_color"),[s]=e.useState("disabled"),[i]=e.useState("disable_gutters"),[a]=e.useState("elevation"),[l]=e.useState("header_background"),[c]=e.useState("header_color"),[p]=e.useState("_names"),[u]=e.useState("toggle"),[f]=e.useState("sx"),[d]=e.useState("square"),[m]=e.useState("title_variant"),[h]=e.useState("variant"),b=e.get_child("_headers"),y=e.get_child("objects"),g=T=>()=>{let x;t.includes(T)?x=t.filter(C=>C!=T):u?x=[T]:(x=[...t],x.push(T)),o(x)};return ds.createElement(ds.Fragment,null,y.map((T,x)=>ds.createElement(tP,{defaultExpanded:t.includes(x),disabled:s.includes(x),disableGutters:i,elevation:a,expanded:t.includes(x),key:`accordion-${x}`,square:d,sx:f,variant:h},ds.createElement(rP,{expandIcon:ds.createElement(ma,null),onClick:g(x),sx:{backgroundColor:t.includes(x)&&r||l,color:t.includes(x)&&n||c,"& .MuiAccordionSummary-content.Mui-expanded":{mt:1,mb:1}}},p[x]?ds.createElement($e,{className:"title",variant:m,sx:{display:"inline-flex",alignItems:"center",gap:"0.25em"}},_p(p[x])):b[x]),ds.createElement(nP,{sx:{pb:1,pl:1,pr:1}},T))))}function kme(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return ds.createElement("div",{style:{display:"contents",position:"relative"}},ds.createElement(wme,{...e}),t&&ds.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},ds.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Rme(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),ds.createElement(ve,{theme:t},ds.createElement(Ce,null),ds.createElement(kme,{...e}),o.length?ds.createElement("div",{class:"attached"},o):null)}var m8={render:Rme};var ha=w(B());var w8=w(B(),1);function p2(e){return K("MuiAlert",e)}var Ime=Q("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","outlined","standard"]),sP=Ime;var y8=w(J(),1),h8=be((0,y8.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined");var g8=w(J(),1),b8=be((0,g8.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");var T8=w(J(),1),x8=be((0,T8.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");var P8=w(J(),1),v8=be((0,P8.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var S8=w(J(),1),u1=be((0,S8.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var ya=w(J(),1),_me=e=>{let{variant:t,color:o,severity:r,classes:n}=e,s={root:["root",`color${Te(o||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return G(s,p2,n)},Eme=A(oo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant]]}})(de(({theme:e})=>{let t=e.palette.mode==="light"?e.darken:e.lighten,o=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(bt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:o(e.palette[r].light,.9),[`& .${sP.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(bt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${sP.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(bt(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{...e.focusVisible&&rh(`0 0 0 4px ${(e.vars||e).palette.background.default}`),fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),Mme=A("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Ome=A("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Dme=A("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),C8={success:(0,ya.jsx)(h8,{fontSize:"inherit"}),warning:(0,ya.jsx)(b8,{fontSize:"inherit"}),error:(0,ya.jsx)(x8,{fontSize:"inherit"}),info:(0,ya.jsx)(v8,{fontSize:"inherit"})},Nme=w8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAlert"}),{action:n,children:s,className:i,closeText:a="Close",color:l,icon:c,iconMapping:p=C8,onClose:u,role:f="alert",severity:d="success",slotProps:m={},slots:h={},variant:b="standard",...y}=r,g={...r,color:l,severity:d,variant:b,colorSeverity:l||d},T=_me(g),x={slots:h,slotProps:m},[C,v]=xe("root",{ref:o,shouldForwardComponentProp:!0,className:$(T.root,i),elementType:Eme,externalForwardedProps:{...x,...y},ownerState:g,additionalProps:{role:f,elevation:0}}),[k,_]=xe("icon",{className:T.icon,elementType:Mme,externalForwardedProps:x,ownerState:g}),[I,O]=xe("message",{className:T.message,elementType:Ome,externalForwardedProps:x,ownerState:g}),[R,S]=xe("action",{className:T.action,elementType:Dme,externalForwardedProps:x,ownerState:g}),[P,M]=xe("closeButton",{elementType:Qe,externalForwardedProps:x,ownerState:g}),[E,D]=xe("closeIcon",{elementType:u1,externalForwardedProps:x,ownerState:g});return(0,ya.jsxs)(C,{...v,children:[c!==!1?(0,ya.jsx)(k,{..._,children:c||p[d]||C8[d]}):null,(0,ya.jsx)(I,{...O,children:s}),n!=null?(0,ya.jsx)(R,{...S,children:n}):null,n==null&&u?(0,ya.jsx)(R,{...S,children:(0,ya.jsx)(P,{size:"small","aria-label":a,title:a,color:"inherit",onClick:u,...M,children:(0,ya.jsx)(E,{fontSize:"small",...D})})}):null]})}),_m=Nme;var R8=w(B(),1);function u2(e){return K("MuiAlertTitle",e)}var Ame=Q("MuiAlertTitle",["root"]),k8=Ame;var I8=w(J(),1),Fme=e=>{let{classes:t}=e;return G({root:["root"]},u2,t)},Lme=A($e,{name:"MuiAlertTitle",slot:"Root"})(de(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Bme=R8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAlertTitle"}),{className:n,...s}=r,i=r,a=Fme(i);return(0,I8.jsx)(Lme,{gutterBottom:!0,component:"div",ownerState:i,ref:o,className:$(a.root,n),...s})}),iP=Bme;function jme(e){return new DOMParser().parseFromString(e,"text/html").documentElement.textContent}function Vme({model:e}){let[t,o]=e.useState("closed"),[r]=e.useState("closeable"),[n]=e.useState("severity"),[s]=e.useState("title"),[i]=e.useState("object"),[a]=e.useState("variant"),[l]=e.useState("sx"),c=e.get_child("objects"),p={};r&&(p.onClose=()=>{o(!0)});let f={...{"& .MuiAlert-icon":{paddingBottom:0},"& .MuiAlert-message":{paddingBottom:0},"& .MuiAlert-action":{paddingBottom:0}},...l};return ha.createElement(nr,{in:!t},ha.createElement(_m,{severity:n,variant:a,...p,sx:f},ha.createElement(iP,null,fe(s)),ha.createElement("span",{dangerouslySetInnerHTML:{__html:jme(i)}}),c))}function $me(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return ha.createElement("div",{style:{display:"contents",position:"relative"}},ha.createElement(Vme,{...e}),t&&ha.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},ha.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Ume(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),ha.createElement(ve,{theme:t},ha.createElement(Ce,null),ha.createElement($me,{...e}),o.length?ha.createElement("div",{class:"attached"},o):null)}var _8={render:Ume};var Ec=w(B());var O8=w(B(),1);var fg=w(B(),1);var E8=w(J(),1),zme={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Wme={opacity:0,visibility:"hidden"},Hme=fg.forwardRef(function(t,o){let r=me(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,disablePrefersReducedMotion:l=!1,easing:c,in:p,onEnter:u,onEntered:f,onEntering:d,onExit:m,onExited:h,onExiting:b,style:y,timeout:g=n,...T}=t,x=Pn(r.motion.reducedMotion,l),C=fg.useRef(null),v=Wt(C,ln(a),o),k=uo(C,d),_=uo(C,(M,E)=>{x.shouldReduceMotion||Tc(M);let D=os({style:y,timeout:g,easing:c},{mode:"enter"}),N=x.getTransitionTiming({duration:D.duration,delay:D.delay});M.style.transition=r.transitions.create("opacity",{duration:N.duration,easing:D.easing,delay:N.delay}),u&&u(M,E)}),I=uo(C,f),O=uo(C,b),R=uo(C,M=>{let E=os({style:y,timeout:g,easing:c},{mode:"exit"}),D=x.getTransitionTiming({duration:E.duration,delay:E.delay});M.style.transition=r.transitions.create("opacity",{duration:D.duration,easing:E.easing,delay:D.delay}),m&&m(M)}),S=uo(C,M=>{M.style.transition="",h&&h(M)});return(0,E8.jsx)(Sc,{appear:i,in:p,nodeRef:C,onEnter:_,onEntered:I,onEntering:k,onExit:R,onExited:S,onExiting:O,addEndListener:s?M=>{s(C.current,M)}:void 0,reduceMotion:x.shouldReduceMotion,timeout:g,...T,children:(M,{ownerState:E,...D})=>{let N=dh(M,p,zme,Wme,y,a.props.style);return fg.cloneElement(a,{style:N,ref:v,...D})}})}),fs=Hme;function d2(e){return K("MuiBackdrop",e)}var Yme=Q("MuiBackdrop",["root","invisible"]),M8=Yme;var f2=w(J(),1),qme=e=>{let{classes:t,invisible:o}=e;return G({root:["root",o&&"invisible"]},d2,t)},Gme=A("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.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"}}]}),Kme=O8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiBackdrop"}),{children:n,className:s,component:i="div",invisible:a=!1,open:l,slotProps:c={},slots:p={},transitionDuration:u,...f}=r,d={...r,component:i,invisible:a},m=qme(d),h={component:i,slots:p,slotProps:c},[b,y]=xe("root",{elementType:Gme,externalForwardedProps:h,className:$(m.root,s),ownerState:d}),[g,T]=xe("transition",{elementType:fs,externalForwardedProps:h,ownerState:d});return(0,f2.jsx)(g,{in:l,timeout:u,...f,...T,children:(0,f2.jsx)(b,{...y,ref:o,children:n})})}),Xp=Kme;var D8={zIndex:e=>e.zIndex.drawer+1};function Xme({model:e,view:t}){let[o]=e.useState("open"),[r]=e.useState("sx"),n=e.get_child("objects");return Ec.createElement(Xp,{open:o,sx:r?[D8,r]:D8},n)}function Qme(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Ec.createElement("div",{style:{display:"contents",position:"relative"}},Ec.createElement(Xme,{...e}),t&&Ec.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Ec.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Zme(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Ec.createElement(ve,{theme:t},Ec.createElement(Ce,null),Ec.createElement(Qme,{...e}),o.length?Ec.createElement("div",{class:"attached"},o):null)}var N8={render:Zme};var Qr=w(B());var Jme={display:"flex",flexDirection:"column",width:"100%",height:"100%"},eye=A(e=>{let{expand:t,...o}=e;return Qr.createElement(Qe,{...o})})(({theme:e})=>({marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),variants:[{props:({expand:t})=>!t,style:{transform:"rotate(0deg)"}},{props:({expand:t})=>!!t,style:{transform:"rotate(180deg)"}}]}));function tye({model:e,view:t}){let[o]=e.useState("collapsible"),[r,n]=e.useState("collapsed"),[s]=e.useState("elevation"),[i]=e.useState("header_color"),[a]=e.useState("header_css_classes"),[l]=e.useState("header_background"),[c]=e.useState("hide_header"),[p]=e.useState("raised"),[u]=e.useState("square"),[f]=e.useState("sx"),[d]=e.useState("title"),[m]=e.useState("title_css_classes"),[h]=e.useState("title_variant"),[b]=e.useState("variant"),y=e.get_child("header"),g=e.get_child("objects"),T=c||!e.header&&(!d||d.trim()===""),x=g.length===0;Qr.useEffect(()=>{let v=()=>{g.map((k,_)=>{jt(t.get_child_view(e.objects[_]),"column")})};return e.on("lifecycle:update_layout",v),()=>e.off("lifecycle:update_layout",v)},[]);let C=Qr.useMemo(()=>[Jme,f||{}],[f]);return e.header&&jt(t.get_child_view(e.header),"row"),Qr.createElement(qp,{elevation:s,square:u,raised:p,variant:b,sx:C},!T&&Qr.createElement(Gp,{action:o&&Qr.createElement(eye,{expand:!r,onClick:()=>n(!r),"aria-expanded":!r,"aria-label":"show more"},Qr.createElement(ma,null)),classes:a,title:e.header?y:Qr.createElement($e,{classes:m,sx:{display:"inline-flex",alignItems:"center",gap:"0.25em",fontSize:"1.15rem",fontWeight:500},variant:h},_p(d)),sx:{backgroundColor:l,color:i,display:"flex",minWidth:0,p:"12px 16px","& .MuiCardHeader-content":{minWidth:0}}}),Qr.createElement(nr,{in:!r,timeout:"auto",unmountOnExit:!0,sx:{flexGrow:1,height:"100%",width:"100%","& .MuiCollapse-wrapper":{height:"100% !important"}}},!x&&Qr.createElement(wm,{sx:{height:"100%",width:"100%",display:"flex",flexDirection:"column",p:T?"16px 16px 12px 16px":"0px 16px 12px 16px","&:last-child":{pb:"12px"}}},g.map((v,k)=>(jt(t.get_child_view(e.objects[k]),"column"),v)))))}function oye(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Qr.createElement("div",{style:{display:"contents",position:"relative"}},Qr.createElement(tye,{...e}),t&&Qr.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Qr.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function rye(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Qr.createElement(ve,{theme:t},Qr.createElement(Ce,null),Qr.createElement(oye,{...e}),o.length?Qr.createElement("div",{class:"attached"},o):null)}var A8={render:rye};var xo=w(B());var nye={height:"100%",width:"100%",display:"flex",position:"relative"};function sye({model:e,view:t}){let o=e.esm_constants.direction,r=o==="column",[n]=e.useState("sx"),s=0,i=0,a=null,l=0,c=!1,p;if(r){let[I]=e.useState("auto_scroll_limit"),[O]=e.useState("scroll_button_threshold"),[R]=e.useState("scroll_index"),[S,P]=e.useState("scroll_position"),[M]=e.useState("view_latest");s=I===void 0?0:I,i=O===void 0?0:O,a=R===void 0?null:R,l=S===void 0?0:S,c=M===void 0?!1:M,p=P}let u=e.get_child("objects"),f=xo.useRef(null),d=xo.useRef(!1),m=xo.useRef(!1),h=xo.useRef(!1),b=xo.useRef(u.length),[y,g]=xo.useState(!1),T=()=>!1,x=()=>{},C=()=>{},v=r&&(!!c||s>0||i>0||l>0||a!==null);if(r){let I=xo.useCallback(P=>{if(!r||!v||i<=0){g(!1);return}fC(P,i,g)},[v,i]),O=xo.useCallback(P=>{let M=f.current;if(!M||P===null||P<0)return;let E=M.children.item(P);E&&yC(M,E,p)},[p]);T=xo.useCallback((P=null)=>mC(f.current,d,p,I,P),[p,I]);let R=xo.useCallback(P=>hC(P,P.children.item(u.length-1)),[u.length]),S=gC({boxRef:f,pendingScrollLatestRef:m,scrollToLatest:T,latestChildAtBottom:R,layoutUpdatedRef:h});x=S.startScrollLatestSettlement,C=S.stopScrollLatestSettlement,xo.useEffect(()=>{let P=f.current;if(!v||!P)return;let M=()=>{d.current||(p(Math.round(P.scrollTop)),I(P))};return P.addEventListener("scroll",M),I(P),()=>{P.removeEventListener("scroll",M)}},[v,p,I]),xo.useEffect(()=>{let P=f.current;!v||!P||d.current||Math.abs(P.scrollTop-l)<=1||(d.current=!0,P.scrollTo({top:l,behavior:"instant"}),d.current=!1,I(P))},[v,l,I]),xo.useEffect(()=>{v&&O(a)},[v,a,O]),xo.useEffect(()=>{let P=M=>{M?.type==="scroll_to"&&O(M.index)};return e.on("msg:custom",P),()=>e.off("msg:custom",P)},[e,O]),xo.useEffect(()=>{let P=f.current;if(!v||!P){b.current=u.length;return}c&&b.current===u.length?x(null,!0):u.length>b.current&&s>0&&T(s),b.current=u.length},[v,u.length,s,T,x,c])}let k={};if(o==="flex"){let[I]=e.useState("align_items"),[O]=e.useState("justify_content"),[R]=e.useState("gap"),[S]=e.useState("flex_wrap"),[P]=e.useState("flex_direction");k={alignItems:I,justifyContent:O,gap:R,flexWrap:S,flexDirection:P}}xo.useEffect(()=>{let I=()=>{h.current=!0,u.map((O,R)=>{jt(t.get_child_view(e.objects[R]),o)}),m.current&&T()};return e.on("lifecycle:update_layout",I),()=>{C?.(),e.off("lifecycle:update_layout",I)}},[]);let _=xo.useMemo(()=>[nye,{flexDirection:o},v?{overflowY:"auto"}:{},k,n||{}],[o,v,k,n]);return xo.createElement(Be,{ref:f,sx:_},u.map((I,O)=>(jt(t.get_child_view(e.objects[O]),o),I)),v&&i>0&&xo.createElement("div",{role:"button",tabIndex:0,"aria-label":"Scroll to latest",className:`scroll-button${y?" visible":""}`,onClick:()=>{x(),e.send_event("click",{})},onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),x(),e.send_event("click",{}))},style:{position:"sticky",top:"auto",bottom:"0.8rem",alignSelf:"flex-end",marginRight:"0.8rem",zIndex:1,cursor:"pointer",display:y?"inline-flex":"none"}}))}function iye(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return xo.createElement("div",{style:{display:"contents",position:"relative"}},xo.createElement(sye,{...e}),t&&xo.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},xo.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function aye(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),xo.createElement(ve,{theme:t},xo.createElement(Ce,null),xo.createElement(iye,{...e}),o.length?xo.createElement("div",{class:"attached"},o):null)}var mg={render:aye};var Ii=w(B());var lye=_S({createStyledComponent:A("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[`maxWidth${Te(String(o.maxWidth))}`],o.fixed&&t.fixed,o.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ce({props:e,name:"MuiContainer"})}),aP=lye;function cye(e){return K("MuiContainer",e)}var pye=Q("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]),F8=pye;var uye={height:"100%",width:"100%",display:"flex",flexDirection:"column"};function dye({model:e,view:t}){let[o]=e.useState("disable_gutters"),[r]=e.useState("fixed"),[n]=e.useState("width_option"),[s]=e.useState("sx"),i=e.get_child("objects");Ii.useEffect(()=>{let l=()=>{i.map((c,p)=>{jt(t.get_child_view(e.objects[p]),"column")})};return e.on("lifecycle:update_layout",l),()=>e.off("lifecycle:update_layout",l)},[]);let a=Ii.useMemo(()=>[uye,{minHeight:e.min_height},s||{}],[e.min_height,s]);return Ii.createElement(aP,{disableGutters:o,fixed:r,maxWidth:n||void 0,sx:a},i.map((l,c)=>(jt(t.get_child_view(e.objects[c]),"column"),l)))}function fye(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Ii.createElement("div",{style:{display:"contents",position:"relative"}},Ii.createElement(dye,{...e}),t&&Ii.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Ii.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function mye(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Ii.createElement(ve,{theme:t},Ii.createElement(Ce,null),Ii.createElement(fye,{...e}),o.length?Ii.createElement("div",{class:"attached"},o):null)}var L8={render:mye};var zo=w(B());var B8=w(J(),1),yg=be((0,B8.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var yye={display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"hidden"},rpt=A(Qe,{shouldForwardProp:e=>e!=="expand"})(({theme:e,expand:t})=>({padding:"2px",margin:"0 2px",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),...t&&{transform:"rotate(180deg)"}})),j8=A(Qe,{shouldForwardProp:e=>e!=="expand"})(({theme:e,expand:t})=>({padding:"2px",margin:"0 2px",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),...t&&{transform:"rotate(180deg)"}}));function hye({model:e,view:t,el:o}){let[r,n]=e.useState("collapsed"),[s,i]=e.useState("fully_expanded"),[a]=e.useState("header_color"),[l]=e.useState("header_css_classes"),[c]=e.useState("header_background"),[p]=e.useState("hide_header"),[u]=e.useState("square"),[f]=e.useState("sx"),[d]=e.useState("title"),[m]=e.useState("title_css_classes"),[h]=e.useState("scrollable_height"),b=e.get_child("header"),y=e.get_child("objects"),g=me(),T=p||!e.header&&(!d||d.trim()===""),x=y.length===0,C=!r,v=C&&s,k=e.objects.some(D=>D.sizing_mode==="stretch_both"||D.sizing_mode==="stretch_height"),_=zo.useRef(!1),I=()=>{if(e.height!=null){let D=v?`${e.height}px`:"auto";t.el.style.height=o.style.height=D}};_.current||(I(),_.current=!0),zo.useEffect(()=>{I()},[C,v]),zo.useEffect(()=>{let D=()=>{y.map((N,L)=>{jt(t.get_child_view(e.objects[L]),"column")})};return e.on("lifecycle:update_layout",D),()=>e.off("lifecycle:update_layout",D)},[]),e.header&&jt(t.get_child_view(e.header),"row");let O=()=>{n(!r),r||i(!1)},R=D=>{D.stopPropagation(),i(!s)},P=g.palette.mode==="dark"?g.palette.grey[900]:g.palette.grey[50],M=c||P,E=zo.useMemo(()=>[yye,{minHeight:e.min_height?`${e.min_height}px`:0,border:`1px solid ${g.palette.divider}`,borderRadius:u?0:"4px"},f||{}],[e.min_height,g.palette.divider,u,f]);return zo.createElement(Be,{className:"details",sx:E},!T&&zo.createElement(Be,{className:l?.length?`details-header ${l.join(" ")}`:"details-header",onClick:O,sx:{display:"flex",alignItems:"center",padding:"4px 8px",cursor:"pointer",backgroundColor:M,color:a||g.palette.text.primary,minHeight:"28px",fontSize:"1rem",userSelect:"none"}},zo.createElement(yg,{sx:{fontSize:"16px",marginRight:"4px",transform:C?"rotate(90deg)":"rotate(0deg)",transition:g.transitions.create("transform",{duration:g.transitions.duration.shortest})}}),e.header?b:zo.createElement($e,{classes:m,sx:{display:"inline-flex",alignItems:"center",gap:"0.25em",fontSize:"1rem",fontWeight:400,flex:1,margin:0,padding:0}},_p(d)),v&&zo.createElement(j8,{expand:!0,onClick:D=>{D.stopPropagation(),R(D)},"aria-label":"collapse to scrollable",size:"small",sx:{ml:"auto"}},zo.createElement(ma,{sx:{fontSize:"16px"}}))),zo.createElement(nr,{in:C,timeout:"auto",unmountOnExit:!0,sx:{flexGrow:1,width:"100%","& .MuiCollapse-wrapper":{height:v||k?"100% !important":"auto"}}},!x&&zo.createElement(Be,{className:"details-content",sx:{display:"flex",flexDirection:"column",height:v?"100%":"auto",maxHeight:v?"none":`${h}px`,minHeight:k&&!v&&h?`${h}px`:"none",overflowY:v?"visible":"auto",overflowX:"hidden"}},zo.createElement(Be,{sx:{display:"flex",flexDirection:"column",flex:1}},y.map((D,N)=>(jt(t.get_child_view(e.objects[N]),"column"),D))))),C&&!v&&zo.createElement(Be,{className:"details-expand-button",sx:{display:"flex",justifyContent:"center",alignItems:"center",padding:"4px",borderTop:`1px solid ${g.palette.divider}`,backgroundColor:P,position:"sticky",bottom:0}},zo.createElement(j8,{expand:!1,onClick:R,"aria-label":"expand fully",size:"small"},zo.createElement(ma,{sx:{fontSize:"16px"}}))))}function gye(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return zo.createElement("div",{style:{display:"contents",position:"relative"}},zo.createElement(hye,{...e}),t&&zo.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},zo.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function bye(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),zo.createElement(ve,{theme:t},zo.createElement(Ce,null),zo.createElement(gye,{...e}),o.length?zo.createElement("div",{class:"attached"},o):null)}var V8={render:bye};var si=w(B());var Pg=w(B(),1);function Tye(e){let t=Kt(e);return e===t.body||e===t.documentElement?Ya(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function hg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $8(e){return parseFloat(Ya(e).getComputedStyle(e).paddingRight)||0}function xye(e){let o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||r}function U8(e,t,o,r,n){let s=[t,o,...r];[].forEach.call(e.children,i=>{let a=!s.includes(i),l=!xye(i);a&&l&&hg(i,n)})}function Pye(e,t){let o=[],r=e.container;if(!t.disableScrollLock){let s;if(r.parentNode instanceof DocumentFragment)s=Kt(r).body;else{let i=r.parentElement,a=Ya(r);s=i?.nodeName==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}if(Tye(s)){let i=hh(Ya(s));o.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${$8(s)+i}px`;let a=Kt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{o.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${$8(l)+i}px`})}o.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{o.forEach(({value:s,el:i,property:a})=>{s?i.style.setProperty(a,s):i.style.removeProperty(a)})}}function vye(e){let t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}var gg=class{constructor(){this.modals=[],this.containers=[]}add(t,o){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&hg(t.modalRef,!1);let n=vye(o);U8(o,t.mount,t.modalRef,n,!0);let s=this.containers.findIndex(i=>i.container===o);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:n}),r)}mount(t,o){let r=this.containers.findIndex(s=>s.modals.includes(t)),n=this.containers[r];n.restore||(n.restore=Pye(n,o))}remove(t,o=!0){let r=this.modals.indexOf(t);if(r===-1)return r;let n=this.containers.findIndex(i=>i.modals.includes(t)),s=this.containers[n];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&hg(t.modalRef,o),U8(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(n,1);else{let i=s.modals[s.modals.length-1];i.modalRef&&hg(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}};var f1=w(B(),1);var ms=w(B(),1);var Bs=na;var bg="data-mui-focusable";function m2(e){return e?e.hasAttribute(bg)?e:e.querySelector(`[${bg}]`):null}var lP=w(J(),1),Sye=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function z8(e){let 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 Cye(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;let t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`),o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function wye(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Cye(e))}function kye(e){let t=[],o=[];return Array.from(e.querySelectorAll(Sye)).forEach((r,n)=>{let s=z8(r);s===-1||!wye(r)||(s===0?t.push(r):o.push({documentOrder:n,tabIndex:s,node:r}))}),o.sort((r,n)=>r.tabIndex===n.tabIndex?r.documentOrder-n.documentOrder:r.tabIndex-n.tabIndex).map(r=>r.node).concat(t)}function Rye(){return!0}function Iye(e){let{children:t,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:n=!1,getTabbable:s=kye,isEnabled:i=Rye,open:a}=e,l=ms.useRef(!1),c=ms.useRef(null),p=ms.useRef(null),u=ms.useRef(null),f=ms.useRef(null),d=ms.useRef(!1),m=ms.useRef(null),h=_t(ln(t),m),b=ms.useRef(null);ms.useEffect(()=>{!a||!m.current||(d.current=!o)},[o,a]),ms.useEffect(()=>{if(l.current=!1,!a||!m.current)return;let T=Kt(m.current),x=Yr(T),C=m2(m.current)??m.current;return Bs(m.current,x)||(C.hasAttribute("tabIndex")||C.setAttribute("tabIndex","-1"),d.current&&C.focus()),()=>{!n&&u.current&&(l.current=!0,u.current.focus(),u.current=null)}},[a]),ms.useEffect(()=>{if(!a||!m.current)return;let T=Kt(m.current),x=k=>{if(b.current=k,r||!i()||k.key!=="Tab")return;let _=m.current,I=Yr(T);if(_===null)return;let O=m2(_);if(I===_||I===O){let S=s(_);if(S.length===0)return;k.preventDefault(),k.shiftKey?S[S.length-1].focus():S[0].focus();return}if(Bs(_,I)){let S=s(_),P=S.indexOf(I);if(P===-1||!S.some(D=>z8(D)>0))return;k.preventDefault();let E=0;k.shiftKey?E=P<=0?S.length-1:P-1:E=P===S.length-1?0:P+1,S[E].focus()}},C=()=>{let k=m.current;if(k===null)return;let _=Yr(T);if(!T.hasFocus()||!i()||l.current){l.current=!1;return}if(Bs(k,_)||r&&_!==c.current&&_!==p.current)return;if(_!==f.current)f.current=null;else if(f.current!==null)return;if(!d.current)return;let I=[];if((_===c.current||_===p.current)&&(I=s(m.current)),I.length>0){let O=!!(b.current?.shiftKey&&b.current?.key==="Tab"),R=I[0],S=I[I.length-1];typeof R!="string"&&typeof S!="string"&&(O?S.focus():R.focus())}else k.focus()};T.addEventListener("focusin",C),T.addEventListener("keydown",x,!0);let v=setInterval(()=>{let k=Yr(T);k&&k.tagName==="BODY"&&C()},50);return()=>{clearInterval(v),T.removeEventListener("focusin",C),T.removeEventListener("keydown",x,!0)}},[o,r,n,i,a,s]);let y=T=>{u.current===null&&(u.current=T.relatedTarget),d.current=!0,f.current=T.target;let x=t.props.onFocus;x&&x(T)},g=T=>{u.current===null&&(u.current=T.relatedTarget),d.current=!0};return(0,lP.jsxs)(ms.Fragment,{children:[(0,lP.jsx)("div",{tabIndex:a?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),ms.cloneElement(t,{ref:h,onFocus:y}),(0,lP.jsx)("div",{tabIndex:a?0:-1,onFocus:g,ref:p,"data-testid":"sentinelEnd"})]})}var Em=Iye;var al=w(B(),1);function _ye(e){return typeof e=="function"?e():e}function Eye(e){return e?e.props.hasOwnProperty("in"):!1}var W8=()=>{},d1=new gg;function Mye(e){let{container:t,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:n,onTransitionExited:s,children:i,onClose:a,open:l,rootRef:c}=e,p=al.useRef({}),u=al.useRef(null),f=al.useRef(null),d=al.useRef(null),m=_t(d,c),[h,b]=al.useState(!l),y=Eye(i),g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);let T=()=>Kt(u.current),x=()=>(p.current.modalRef=d.current,p.current.mount=u.current,p.current),C=()=>{d1.mount(x(),{disableScrollLock:o}),d.current&&(d.current.scrollTop=0)},v=Ae(()=>{let D=_ye(t)||T().body;d1.add(x(),D),d.current&&C()}),k=()=>d1.isTopModal(x()),_=Ae(D=>{u.current=D,D&&(f.current=D,l&&k()?C():d.current&&hg(d.current,g))}),I=al.useCallback(()=>{d1.remove(x(),g)},[g]);al.useEffect(()=>()=>{I()},[I]),al.useEffect(()=>{l?v():(!y||!r)&&I()},[l,I,y,r,v]);let O=D=>N=>{D.onKeyDown?.(N),!(N.key!=="Escape"||N.which===229||!k())&&(N.stopPropagation(),a&&a(N,"escapeKeyDown"))},R=D=>N=>{D.onClick?.(N),N.target===N.currentTarget&&a&&a(N,"backdropClick")},S=(D={})=>{let N=Tr(e);delete N.onTransitionEnter,delete N.onTransitionExited;let L={...N,...D};return{role:"presentation",...L,onKeyDown:O(L),ref:m}},P=(D={})=>{let N=D;return{"aria-hidden":!0,...N,onClick:R(N),open:l}},M=()=>{let D=()=>{b(!1),n&&n()},N=()=>{b(!0),s&&s(),r&&I()};return{onEnter:Uf(D,i?.props.onEnter??W8),onExited:Uf(N,i?.props.onExited??W8)}},E=!l&&y&&!h?f.current??t:t;return{getRootProps:S,getBackdropProps:P,getTransitionProps:M,rootRef:m,portalRef:_,portalContainer:E,isTopModal:k,exited:h,hasTransition:y}}var H8=Mye;function y2(e){return K("MuiModal",e)}var Oye=Q("MuiModal",["root","hidden","backdrop"]),Y8=Oye;var Tg=w(J(),1),Dye=e=>{let{open:t,exited:o,classes:r}=e;return G({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},y2,r)},Nye=A("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(de(({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"}}]}))),Aye=A(Xp,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Fye=f1.forwardRef(function(t,o){let r=ce({name:"MuiModal",props:t}),{classes:n,className:s,closeAfterTransition:i=!1,children:a,container:l,component:c,disableAutoFocus:p=!1,disableEnforceFocus:u=!1,disablePortal:f=!1,disableRestoreFocus:d=!1,disableScrollLock:m=!1,hideBackdrop:h=!1,keepMounted:b=!1,onClose:y,onTransitionEnter:g,onTransitionExited:T,open:x,slotProps:C={},slots:v={},theme:k,..._}=r,I={...r,closeAfterTransition:i,disableAutoFocus:p,disableEnforceFocus:u,disablePortal:f,disableRestoreFocus:d,disableScrollLock:m,hideBackdrop:h,keepMounted:b},{getRootProps:O,getBackdropProps:R,getTransitionProps:S,portalRef:P,portalContainer:M,isTopModal:E,exited:D,hasTransition:N}=H8({...I,rootRef:o}),L={...I,exited:D},j=Dye(L),X={};if(a.props.tabIndex===void 0&&(X.tabIndex="-1"),N){let{onEnter:z,onExited:re}=S();X.onEnter=z,X.onExited=re}let H={slots:v,slotProps:C},[Z,ie]=xe("root",{ref:o,elementType:Nye,externalForwardedProps:{...H,..._,component:c},getSlotProps:O,ownerState:L,className:$(s,j?.root,!L.open&&L.exited&&j?.hidden)}),[q,ee]=xe("backdrop",{elementType:Aye,externalForwardedProps:H,shouldForwardComponentProp:!0,getSlotProps:z=>R({...z,onClick:re=>{z?.onClick&&z.onClick(re)}}),className:j?.backdrop,ownerState:L});return!b&&!x&&(!N||D)?null:(0,Tg.jsx)(vm,{ref:P,container:M,disablePortal:f,children:(0,Tg.jsxs)(Z,{...ie,children:[h?null:(0,Tg.jsx)(q,{...ee}),(0,Tg.jsx)(Em,{disableEnforceFocus:u,disableAutoFocus:p,disableRestoreFocus:d,isEnabled:E,open:x,children:f1.cloneElement(a,X)})]})})}),Qp=Fye;function h2(e){return K("MuiDialog",e)}var Lye=Q("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cP=Lye;var q8=w(B(),1),Bye=q8.createContext({}),m1=Bye;var xg=w(J(),1),jye=A(Xp,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),Vye=e=>{let{classes:t,scroll:o,maxWidth:r,fullWidth:n,fullScreen:s}=e,i={root:["root"],backdrop:["backdrop"],container:["container",`scroll${Te(o)}`],paper:["paper",`paperWidth${Te(String(r))}`,n&&"paperFullWidth",s&&"paperFullScreen"]};return G(i,h2,t)},$ye=A(Qp,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Uye=A("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.container,t[`scroll${Te(o.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),zye=A(oo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.paper,t[`paperWidth${Te(String(o.maxWidth))}`],o.fullWidth&&t.paperFullWidth,o.fullScreen&&t.paperFullScreen]}})(de(({theme:e})=>({margin:32,position:"relative",overflowY:"auto",outline:0,"@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:"xs",scroll:"body"},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t,scroll:"body"},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0}},{props:({ownerState:t})=>t.fullScreen&&t.scroll==="body",style:{margin:0,maxWidth:"100%"}}]}))),Wye=Pg.forwardRef(function(t,o){let r=ce({props:t,name:"MuiDialog"}),n=me(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,"aria-modal":l=!0,children:c,className:p,fullScreen:u=!1,fullWidth:f=!1,maxWidth:d="sm",onClick:m,onClose:h,open:b,PaperComponent:y=oo,role:g="dialog",scroll:T="paper",slots:x={},slotProps:C={},transitionDuration:v=s,...k}=r,_={...r,fullScreen:u,fullWidth:f,maxWidth:d,scroll:T},I=Vye(_),O=Pg.useRef(),R=z=>{O.current=z.target===z.currentTarget},S=z=>{m&&m(z),O.current&&(O.current=null,h&&h(z,"backdropClick"))},P=pr(a),M=Pg.useMemo(()=>({titleId:P}),[P]),E={slots:x,slotProps:C},[D,N]=xe("root",{elementType:$ye,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:_,className:$(I.root,p),ref:o}),[L,j]=xe("backdrop",{elementType:jye,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:_,className:I.backdrop}),[X,H]=xe("paper",{elementType:zye,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:_,className:I.paper,additionalProps:{elevation:24,role:g,"aria-describedby":i,"aria-labelledby":P,"aria-modal":l,tabIndex:-1,[bg]:""}}),[Z,ie]=xe("container",{elementType:Uye,externalForwardedProps:E,ownerState:_,className:I.container}),[q,ee]=xe("transition",{elementType:fs,externalForwardedProps:E,ownerState:_,additionalProps:{appear:!0,in:b,timeout:v,role:"presentation"}});return(0,xg.jsx)(D,{closeAfterTransition:!0,slots:{backdrop:L},slotProps:{backdrop:{transitionDuration:v,...j}},onClose:h,open:b,onClick:S,...N,...k,children:(0,xg.jsx)(q,{...ee,children:(0,xg.jsx)(Z,{onMouseDown:R,...ie,children:(0,xg.jsx)(X,{as:y,...H,children:(0,xg.jsx)(m1.Provider,{value:M,children:c})})})})})}),Mm=Wye;var K8=w(B(),1);function g2(e){return K("MuiDialogContent",e)}var Hye=Q("MuiDialogContent",["root","dividers"]),G8=Hye;function b2(e){return K("MuiDialogTitle",e)}var Yye=Q("MuiDialogTitle",["root"]),y1=Yye;var X8=w(J(),1),qye=e=>{let{classes:t,dividers:o}=e;return G({root:["root",o&&"dividers"]},g2,t)},Gye=A("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.dividers&&t.dividers]}})(de(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${y1.root} + &`]:{paddingTop:0}}}]}))),Kye=K8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiDialogContent"}),{className:n,dividers:s=!1,...i}=r,a={...r,dividers:s},l=qye(a);return(0,X8.jsx)(Gye,{className:$(l.root,n),ownerState:a,ref:o,...i})}),Om=Kye;var h1=w(B(),1);var Q8=w(J(),1),Xye=e=>{let{classes:t}=e;return G({root:["root"]},b2,t)},Qye=A($e,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Zye=h1.forwardRef(function(t,o){let r=ce({props:t,name:"MuiDialogTitle"}),{className:n,id:s,...i}=r,a=r,l=Xye(a),{titleId:c=s}=h1.useContext(m1);return(0,Q8.jsx)(Qye,{component:"h2",className:$(l.root,n),ownerState:a,ref:o,variant:"h6",id:s??c,...i})}),pP=Zye;function Jye({model:e,view:t}){let[o]=e.useState("close_on_click"),[r]=e.useState("full_screen"),[n,s]=e.useState("open"),[i]=e.useState("title"),[a]=e.useState("scroll"),[l]=e.useState("show_close_button"),[c]=e.useState("sx"),[p]=e.useState("title_variant"),[u]=e.useState("width_option"),f=e.get_child("objects");return si.createElement(Mm,{container:t.container,fullScreen:r,fullWidth:t.model.sizing_mode==="stretch_width"||t.model.sizing_mode==="stretch_both",maxWidth:u,open:n,onClose:()=>o&&s(!1),scroll:a,sx:c},(i||l)&&si.createElement(Be,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"}},i&&si.createElement(pP,{variant:p},fe(i)),l&&si.createElement(Qe,{"aria-label":"close",onClick:()=>s(!1),size:"small",sx:i?{alignSelf:"start"}:{ml:"auto"}},si.createElement(i1,null))),si.createElement(Om,{sx:{display:"flex",flexDirection:"column",p:"0 1em 0.5em"}},f))}function ehe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return si.createElement("div",{style:{display:"contents",position:"relative"}},si.createElement(Jye,{...e}),t&&si.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},si.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function the(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),si.createElement(ve,{theme:t},si.createElement(Ce,null),si.createElement(ehe,{...e}),o.length?si.createElement("div",{class:"attached"},o):null)}var Z8={render:the};var Mc=w(B());var J8=w(B(),1);function T2(e){return K("MuiDivider",e)}var ohe=Q("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","vertical","withChildren","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),uP=ohe;var x2=w(J(),1),rhe=e=>{let{absolute:t,children:o,classes:r,flexItem:n,orientation:s,textAlign:i,variant:a}=e;return G({root:["root",t&&"absolute",a,s==="vertical"&&"vertical",n&&"flexItem",o&&"withChildren",i==="right"&&s!=="vertical"&&"textAlignRight",i==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},T2,r)},nhe=A("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.absolute&&t.absolute,t[o.variant],o.orientation==="vertical"&&t.vertical,o.flexItem&&t.flexItem,o.children&&t.withChildren,o.textAlign==="right"&&o.orientation!=="vertical"&&t.textAlignRight,o.textAlign==="left"&&o.orientation!=="vertical"&&t.textAlignLeft]}})(de(({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:{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%"}}}]}))),she=A("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.wrapper,o.orientation==="vertical"&&t.wrapperVertical]}})(de(({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)`}}]}))),ihe=J8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiDivider"}),{absolute:n=!1,children:s,className:i,orientation:a="horizontal",component:l=s||a==="vertical"?"div":"hr",flexItem:c=!1,role:p=l!=="hr"?"separator":void 0,textAlign:u="center",variant:f="fullWidth",...d}=r,m={...r,absolute:n,component:l,flexItem:c,orientation:a,role:p,textAlign:u,variant:f},h=rhe(m);return(0,x2.jsx)(nhe,{as:l,className:$(h.root,i),role:p,ref:o,ownerState:m,"aria-orientation":p==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...d,children:s?(0,x2.jsx)(she,{className:h.wrapper,ownerState:m,children:s}):null})}),Wo=ihe;function ahe({model:e}){let[t]=e.useState("orientation"),[o]=e.useState("variant"),[r]=e.useState("sx"),n=e.get_child("objects");return Mc.createElement(Wo,{orientation:t,variant:o,sx:r},n.length>0?n:null)}function lhe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Mc.createElement("div",{style:{display:"contents",position:"relative"}},Mc.createElement(ahe,{...e}),t&&Mc.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Mc.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function che(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Mc.createElement(ve,{theme:t},Mc.createElement(Ce,null),Mc.createElement(lhe,{...e}),o.length?Mc.createElement("div",{class:"attached"},o):null)}var e6={render:che};var Qo=w(B());var Zp=w(B(),1);var ll=w(B(),1);var t6=w(J(),1),phe={visibility:"hidden"},uhe={};function dhe(e){return typeof e=="string"&&/^translate\(.+,\s*.+\)$/.test(e)}function fhe(e,t,o,r=uhe){let{resetInlineTransform:n=!0}=r,s=o&&o.getBoundingClientRect(),i=xn(t),a,l;if(n){let u=t.style.transform,f=t.style.transition;t.style.transition="",t.style.transform="",a=t.getBoundingClientRect(),l=i.getComputedStyle(t).getPropertyValue("transform"),t.style.transform=u,t.style.transition=f}else a=t.getBoundingClientRect(),l=i.getComputedStyle(t).getPropertyValue("transform");let{offsetX:c,offsetY:p}=u$(l);return e==="left"?s?`translateX(${s.right+c-a.left}px)`:`translateX(${i.innerWidth+c-a.left}px)`:e==="right"?s?`translateX(-${a.right-s.left-c}px)`:`translateX(-${a.left+a.width-c}px)`:e==="up"?s?`translateY(${s.bottom+p-a.top}px)`:`translateY(${i.innerHeight+p-a.top}px)`:s?`translateY(-${a.top-s.top+a.height-p}px)`:`translateY(-${a.top+a.height-p}px)`}function mhe(e){return typeof e=="function"?e():e}function g1(e,t,o,r){let n=mhe(o),s=fhe(e,t,n,r);s&&(t.style.transform=s)}var yhe=ll.forwardRef(function(t,o){let r=me(),n={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,container:c,disablePrefersReducedMotion:p=!1,direction:u="down",easing:f=n,in:d,onEnter:m,onEntered:h,onEntering:b,onExit:y,onExited:g,onExiting:T,style:x,timeout:C=s,...v}=t,k=Pn(r.motion.reducedMotion,p),_=ll.useRef(null),I=ll.useRef(!1),O=Wt(ln(l),_,o),R=uo(_,(j,X)=>{g1(u,j,c),k.shouldReduceMotion||Tc(j),m&&m(j,X)}),S=uo(_,(j,X)=>{let H=os({timeout:C,style:x,easing:f},{mode:"enter"}),Z=k.getTransitionTiming({duration:H.duration,delay:H.delay});j.style.transition=r.transitions.create("transform",{duration:Z.duration,easing:H.easing,delay:Z.delay}),j.style.transform="none",b&&b(j,X)}),P=uo(_,h),M=uo(_,T),E=uo(_,j=>{let X=os({timeout:C,style:x,easing:f},{mode:"exit"}),H=k.getTransitionTiming({duration:X.duration,delay:X.delay});j.style.transition=r.transitions.create("transform",{duration:H.duration,easing:X.easing,delay:H.delay});let Z=dhe(j.style.transform);I.current=Z,g1(u,j,c,{resetInlineTransform:!Z}),y&&y(j)}),D=uo(_,j=>{I.current=!1,j.style.transition="",g&&g(j)}),N=i?j=>{i(_.current,j)}:void 0,L=ll.useCallback(()=>{_.current&&g1(u,_.current,c)},[u,c]);return ll.useEffect(()=>{if(d||u==="down"||u==="right")return;let j=vc(()=>{_.current&&g1(u,_.current,c)}),X=xn(_.current);return X.addEventListener("resize",j),()=>{j.clear(),X.removeEventListener("resize",j)}},[u,d,c]),ll.useEffect(()=>{!d&&!I.current&&L()},[d,L]),(0,t6.jsx)(Sc,{nodeRef:_,onEnter:R,onEntered:P,onEntering:S,onExit:E,onExited:D,onExiting:M,addEndListener:N,appear:a,in:d,reduceMotion:k.shouldReduceMotion,timeout:C,...v,children:(j,{ownerState:X,...H})=>{let Z;return j==="exited"&&!d?Z=x||l.props.style?{visibility:"hidden",...x,...l.props.style}:phe:x&&l.props.style?Z={...x,...l.props.style}:Z=x||l.props.style,ll.cloneElement(l,{ref:O,style:Z,...H})}})}),Nd=yhe;function P2(e){return K("MuiDrawer",e)}var hhe=Q("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","modal"]),o6=hhe;var vg=w(J(),1),r6=(e,t)=>{let{ownerState:o}=e;return[t.root,(o.variant==="permanent"||o.variant==="persistent")&&t.docked,o.variant==="temporary"&&t.modal]},ghe=e=>{let{classes:t,anchor:o,variant:r}=e,n={root:["root",`anchor${Te(o)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper"]};return G(n,P2,t)},bhe=A(Qp,{name:"MuiDrawer",slot:"Root",overridesResolver:r6})(de(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),The=A("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:r6})({flex:"0 0 auto"}),xhe=A(oo,{name:"MuiDrawer",slot:"Paper"})(de(({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}`}}]}))),n6={left:"right",right:"left",top:"down",bottom:"up"};function Jp(e){return["left","right"].includes(e)}function Sg({direction:e},t){return e==="rtl"&&Jp(t)?n6[t]:t}var Phe=Zp.forwardRef(function(t,o){let r=ce({props:t,name:"MuiDrawer"}),n=me(),s=zt(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{anchor:a="left",children:l,className:c,elevation:p=16,hideBackdrop:u=!1,ModalProps:f={},onClose:d,open:m=!1,transitionDuration:h=i,variant:b="temporary",slots:y={},slotProps:g={},...T}=r,x=Zp.useRef(!1),C=Zp.useRef(null),v=Wt(o,C);Zp.useEffect(()=>{x.current=!0},[]);let k=Zp.useCallback(()=>C.current,[]),_=Sg({direction:s?"rtl":"ltr"},a),O={...r,anchor:a,elevation:p,open:m,variant:b,...T},R=ghe(O),S={slots:y,slotProps:{...g,backdrop:vi(g.backdrop,{transitionDuration:h})}},[P,M]=xe("root",{ref:v,elementType:bhe,className:$(R.root,R.modal,c),shouldForwardComponentProp:!0,ownerState:O,externalForwardedProps:{...S,...T,...f},additionalProps:{closeAfterTransition:!0,open:m,onClose:d,hideBackdrop:u,slots:{backdrop:S.slots.backdrop},slotProps:{backdrop:S.slotProps.backdrop}}}),[E,D]=xe("paper",{elementType:xhe,shouldForwardComponentProp:!0,className:R.paper,ownerState:O,externalForwardedProps:S,additionalProps:{elevation:b==="temporary"?p:0,square:!0,...b==="temporary"&&{role:"dialog","aria-modal":"true",[bg]:"",tabIndex:-1}}}),[N,L]=xe("docked",{elementType:The,ref:v,className:$(R.root,R.docked,c),ownerState:O,externalForwardedProps:S,additionalProps:T}),[j,X]=xe("transition",{elementType:Nd,ownerState:O,externalForwardedProps:S,additionalProps:{in:m,direction:n6[_],timeout:h,appear:x.current,...b==="temporary"&&(y.transition==null||y.transition===Nd)&&{container:k}}}),H=(0,vg.jsx)(E,{...D,children:l});if(b==="permanent")return(0,vg.jsx)(N,{...L,children:H});let Z=(0,vg.jsx)(j,{...X,children:H});return b==="persistent"?(0,vg.jsx)(N,{...L,children:Z}):(0,vg.jsx)(P,{...M,children:Z})}),ga=Phe;var Gl=24,Ad=48,vhe={left:{open:"chevron_left",closed:"chevron_right"},right:{open:"chevron_right",closed:"chevron_left"},top:{open:"expand_less",closed:"expand_more"},bottom:{open:"expand_more",closed:"expand_less"}};function v2(e,t){if(e==="left"||e==="right")switch(t){case"start":return{top:`${Ad}px`};case"end":return{bottom:`${Ad}px`};default:return{top:"50%",transform:"translateY(-50%)"}}else switch(t){case"start":return{left:`${Ad}px`};case"end":return{right:`${Ad}px`};default:return{left:"50%",transform:"translateX(-50%)"}}}function b1({anchor:e,open:t,dockPosition:o,attached:r,inline:n,onClick:s,icon:i}){let a=e==="left"||e==="right",l=i||vhe[e][t?"open":"closed"],c=n?{}:r?{[e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top"]:`-${Gl+1}px`,...v2(e,o)}:{[e]:0,...v2(e,o)},p={position:n?"relative":"absolute",...c,width:a?`${Gl}px`:`${Ad}px`,height:a?`${Ad}px`:`${Gl}px`,...n&&a?{height:"100%"}:{},...n&&!a?{width:"100%"}:{},minWidth:0,minHeight:0,padding:0,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1,borderRadius:(()=>{switch(e){case"left":return"0 4px 4px 0";case"right":return"4px 0 0 4px";case"top":return"0 0 4px 4px";case"bottom":return"4px 4px 0 0"}})()};return Qo.createElement(oo,{elevation:2,sx:p,onClick:s,role:"button","aria-label":t?"Close drawer":"Open drawer"},pt(l,null,null,"1.2rem"))}function She({model:e,view:t}){let[o]=e.useState("anchor"),[r]=e.useState("dock_icon"),[n]=e.useState("dock_position"),[s]=e.useState("inline"),[i,a]=e.useState("open"),[l]=e.useState("size"),[c]=e.useState("sx"),[p]=e.useState("variant"),u=e.get_child("objects"),f=p==="docked",d=o==="left"||o==="right",m;if(["top","bottom"].includes(o)?(m={height:`${l}px`},!s&&!["temporary","docked"].includes(p)&&(t.el.style.height=`${i?l:0}px`)):(m={width:`${l}px`},!s&&!["temporary","docked"].includes(p)&&(t.el.style.width=`${i?l:0}px`)),Qo.useEffect(()=>{let b=()=>{u.map((y,g)=>{jt(t.get_child_view(e.objects[g]),"column")})};return e.on("lifecycle:update_layout",b),()=>e.off("lifecycle:update_layout",b)},[]),Qo.useEffect(()=>{s&&(f?d?(t.el.style.width=i?`${l+Gl}px`:"0px",t.el.style.height="100%",t.el.style.overflow="visible"):(t.el.style.height=i?`${l+Gl}px`:"0px",t.el.style.width="100%",t.el.style.overflow="visible"):d?(t.el.style.width=`${i?l:0}px`,t.el.style.height="100%"):(t.el.style.height=`${i?l:0}px`,t.el.style.width="100%"))},[s,f,i,l,d]),f){if(s){let g={position:"relative",[d?"width":"height"]:i?`${l+Gl}px`:"0px",[d?"height":"width"]:"100%",transition:"width 225ms cubic-bezier(0, 0, 0.2, 1), height 225ms cubic-bezier(0, 0, 0.2, 1)",overflow:"visible",pointerEvents:"none",flexShrink:0},T={position:"relative",width:"100%",height:"100%",pointerEvents:"auto"},x={position:"absolute",[o==="left"?"right":o==="right"?"left":o==="top"?"bottom":"top"]:`-${Gl}px`,...v2(o,n),width:d?`${Gl}px`:`${Ad}px`,height:d?`${Ad}px`:`${Gl}px`,pointerEvents:"auto",zIndex:1200};return Qo.createElement("div",{style:g},Qo.createElement("div",{style:T},Qo.createElement(ga,{anchor:o,open:i,onClose:()=>a(!1),slotProps:{paper:{sx:[m,{overflow:"visible"},c||{}]}},variant:"persistent",sx:{"& .MuiDrawer-root":{position:"absolute"},"& .MuiPaper-root":{position:"absolute"}}},u.map((C,v)=>(jt(t.get_child_view(e.objects[v]),"column"),C)),Qo.createElement(b1,{anchor:o,open:i,dockPosition:n,attached:!0,onClick:()=>a(!1)})),!i&&Qo.createElement("div",{style:x},Qo.createElement(b1,{anchor:o,open:!1,dockPosition:n,inline:!0,attached:!1,onClick:()=>a(!0)}))))}let b={position:"fixed",top:0,[o]:0,[d?"width":"height"]:i?`${l+Gl}px`:`${Gl}px`,[d?"height":"width"]:"100%",zIndex:1200,pointerEvents:"none"},y={position:"relative",[d?"width":"height"]:"100%",[d?"height":"width"]:"100%",pointerEvents:"auto"};return Qo.createElement("div",{style:b},Qo.createElement("div",{style:y},Qo.createElement(ga,{anchor:o,open:i,onClose:()=>a(!1),slotProps:{paper:{sx:[m,{overflow:"visible"},c||{}]}},variant:"persistent"},u.map((g,T)=>(jt(t.get_child_view(e.objects[T]),"column"),g)),Qo.createElement(b1,{anchor:o,open:i,dockPosition:n,attached:!0,onClick:()=>a(!1),icon:r})),!i&&Qo.createElement(b1,{anchor:o,open:!1,dockPosition:n,attached:!1,onClick:()=>a(!0),icon:r})))}let h={paper:{sx:[m,c||{}]}};return s?Qo.createElement("div",{style:{position:"relative",overflow:"hidden",[d?"height":"width"]:"100%"}},Qo.createElement(ga,{anchor:o,open:i,onClose:()=>a(!1),slotProps:h,variant:p==="temporary"?"persistent":p,sx:{"& .MuiDrawer-root":{position:"absolute"},"& .MuiPaper-root":{position:"absolute"}}},u.map((b,y)=>(jt(t.get_child_view(e.objects[y]),"column"),b)))):Qo.createElement(ga,{anchor:o,open:i,onClose:()=>a(!1),slotProps:h,variant:p},u.map((b,y)=>(jt(t.get_child_view(e.objects[y]),"column"),b)))}function Che(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Qo.createElement("div",{style:{display:"contents",position:"relative"}},Qo.createElement(She,{...e}),t&&Qo.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Qo.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function whe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Qo.createElement(ve,{theme:t},Qo.createElement(Ce,null),Qo.createElement(Che,{...e}),o.length?Qo.createElement("div",{class:"attached"},o):null)}var s6={render:whe};var At=w(B());var khe={minHeight:"100%",display:"flex",position:"relative",alignSelf:"stretch",boxSizing:"border-box",minWidth:0};function Rhe({model:e,view:t,el:o}){let[r]=e.useState("sx"),[n]=e.useState("scroll_button_threshold"),[s]=e.useState("scroll_index"),[i,a]=e.useState("scroll_position"),[l]=e.useState("view_latest"),[c,p]=e.useState("visible_children"),u=e.get_child("objects"),f=e.esm_constants.direction,d=At.useRef(null),m=At.useRef(!1),[h,b]=At.useState(0),[y,g]=At.useState(!1),T=At.useRef(new Map),x=At.useRef(new Set(c||[])),C=At.useRef(!l),v=At.useRef(null),k=At.useRef(!1),_=At.useRef(!1),I=At.useRef(null),O=At.useRef(new Map);o.style.width="100%";let R=At.useCallback(q=>{fC(q,t.model.data.scroll_button_threshold,g)},[]),S=At.useCallback((q=null)=>mC(d.current,m,a,R,q),[]),P=At.useCallback(q=>{let ee=e.objects[e.objects.length-1],z=ee?T.current.get(ee.id):null;return hC(q,z)},[]),M=At.useCallback(()=>{let q=e.objects[e.objects.length-1],ee=q?[q.id]:[];x.current=new Set(ee),p(ee)},[]),E=At.useCallback((q=d.current)=>{if(!q)return;let ee=Math.max(q.offsetWidth-q.clientWidth,0);b(z=>z===ee?z:ee)},[]),D=At.useCallback(q=>{if(!q){d.current=null;return}let ee=q.getRootNode(),z=ee instanceof ShadowRoot?ee.host:null;d.current=q.closest(".scroll-vertical, .scrollable-vertical, .scrollable")??z?.closest(".scroll-vertical, .scrollable-vertical, .scrollable")??z??q,E(d.current)},[]),{startScrollLatestSettlement:N,stopScrollLatestSettlement:L,scrollSettledCallbackRef:j}=gC({boxRef:d,pendingScrollLatestRef:k,topAnchorRef:v,scrollToLatest:S,latestChildAtBottom:P,onDefaultSettled:M,layoutUpdatedRef:_}),X=At.useCallback(()=>{k.current=!0,v.current=null},[]),H=At.useCallback(q=>{let ee=d.current;if(!ee||q===null||q<0)return;let z=T.current.get(e.objects[q]?.id);z&&yC(ee,z,a)},[]),Z=At.useCallback(q=>{let ee=q.scrollTop;for(let z of e.objects){let re=T.current.get(z.id);if(!re)continue;let Y=re.offsetTop-q.offsetTop;if(Y+re.offsetHeight>ee+1){v.current={id:z.id,viewportOffset:Y-ee};return}}v.current=null},[]);At.useEffect(()=>{let q=d.current;if(!q)return;let ee=()=>{m.current||(a(Math.round(q.scrollTop)),R(q),Z(q))};return q.addEventListener("scroll",ee),R(q),E(q),Z(q),()=>q.removeEventListener("scroll",ee)},[]),At.useEffect(()=>{let q=d.current;!q||m.current||Math.abs(q.scrollTop-i)<=1||(m.current=!0,q.scrollTo({top:i,behavior:"instant"}),m.current=!1,R(q))},[]),At.useEffect(()=>{H(s)},[s]),At.useEffect(()=>{let q=ee=>{ee?.type==="scroll_to"?H(ee.index):ee?.type==="scroll_latest"&&S(ee.scroll_limit??null)&&N()};return e.on("msg:custom",q),()=>e.off("msg:custom",q)},[]),At.useEffect(()=>{if(!l){C.current=!0;return}if(C.current)return;let q=()=>{C.current=!0,M()},ee=requestAnimationFrame(()=>{N(q)});return()=>cancelAnimationFrame(ee)},[l]),At.useEffect(()=>{let q=()=>{_.current=!0,E(),u.map((ee,z)=>{jt(t.get_child_view(e.objects[z]),f)}),l&&!C.current?N(()=>{C.current=!0,M()}):k.current&&S()};return e.on("lifecycle:update_layout",q),()=>e.off("lifecycle:update_layout",q)},[]),At.useEffect(()=>{let q=d.current;if(!q)return;let ee=new IntersectionObserver(z=>{if(k.current)return;let re=!1,Y=new Set(x.current);for(let ne of z){let te=ne.target.getAttribute("data-feed-child-id");te&&(ne.isIntersecting?Y.has(te)||(Y.add(te),re=!0):Y.has(te)&&(Y.delete(te),re=!0))}if(!re||(x.current=Y,!C.current))return;let W=e.objects.map(ne=>ne.id).filter(ne=>Y.has(ne));p(W)},{root:q,threshold:.01});return I.current=ee,()=>{L();for(let z of O.current.values())ee.unobserve(z);O.current.clear(),ee.disconnect(),I.current=null}},[]),At.useEffect(()=>{let q=I.current;if(!q)return;let ee=T.current,z=!1,re=new Set(x.current);for(let[Y,W]of O.current){let ne=ee.get(Y);(!ne||ne!==W)&&(q.unobserve(W),O.current.delete(Y),re.delete(Y)&&(z=!0))}for(let[Y,W]of ee)O.current.get(Y)!==W&&(q.observe(W),O.current.set(Y,W))},[u]),At.useLayoutEffect(()=>{let q=d.current;if(!q)return;if(E(q),R(q),k.current){N(j.current);return}let ee=v.current;if(!ee)return;let z=T.current.get(ee.id);if(!z)return;let re=z.offsetTop-q.offsetTop,Y=Math.round(re-ee.viewportOffset);Math.abs(q.scrollTop-Y)<=1||(m.current=!0,q.scrollTo({top:Y,behavior:"instant"}),a(Math.round(q.scrollTop)),m.current=!1,R(q))},[u]);let ie=At.useMemo(()=>[khe,{flexDirection:f,width:h?`calc(100% - ${h}px)`:"100%"},{"& > div":{flex:"0 0 auto",maxHeight:"unset"}},r||{}],[f,h,r]);return At.createElement(Be,{ref:D,sx:ie},u.map((q,ee)=>{let z=e.objects[ee],re=z?.id??`${ee}`;return jt(t.get_child_view(z),f),At.createElement("div",{key:re,"data-feed-child-id":re,ref:Y=>{Y?T.current.set(re,Y):T.current.delete(re)}},q)}),n>0&&At.createElement("div",{role:"button",tabIndex:0,"aria-label":"Scroll to latest",className:`scroll-button${y?" visible":""}`,onClick:()=>{X(),S(),e.send_event("click",{})},onKeyDown:q=>{(q.key==="Enter"||q.key===" ")&&(q.preventDefault(),X(),S(),e.send_event("click",{}))},style:{position:"sticky",top:"auto",bottom:"0.8rem",alignSelf:"flex-end",marginRight:"0.8rem",zIndex:1,cursor:"pointer",display:y?"inline-flex":"none"}}))}function Ihe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return At.createElement("div",{style:{display:"contents",position:"relative"}},At.createElement(Rhe,{...e}),t&&At.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},At.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function _he(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),At.createElement(ve,{theme:t},At.createElement(Ce,null),At.createElement(Ihe,{...e}),o.length?At.createElement("div",{class:"attached"},o):null)}var i6={render:_he};var _i=w(B());var Ehe=OS({createStyledComponent:A("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>ce({props:e,name:"MuiGrid"}),useTheme:me}),Oc=Ehe;function Mhe(e){return K("MuiGrid",e)}var Ohe=[0,1,2,3,4,5,6,7,8,9,10],Dhe=["row-reverse","row"],Nhe=["nowrap","wrap-reverse","wrap"],dP=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ahe=Q("MuiGrid",["root","container",...Ohe.map(e=>`spacing-xs-${e}`),...Dhe.map(e=>`direction-xs-${e}`),...Nhe.map(e=>`wrap-xs-${e}`),...dP.map(e=>`grid-xs-${e}`),...dP.map(e=>`grid-sm-${e}`),...dP.map(e=>`grid-md-${e}`),...dP.map(e=>`grid-lg-${e}`),...dP.map(e=>`grid-xl-${e}`)]),a6=Ahe;var l6={height:"100%",width:"100%"};function Fhe({model:e,view:t}){let[o]=e.useState("columns"),[r]=e.useState("direction"),[n]=e.useState("column_spacing"),[s]=e.useState("row_spacing"),[i]=e.useState("size"),[a]=e.useState("sx"),[l]=e.useState("objects"),[c]=e.useState("container"),[p]=e.useState("spacing"),u=e.get_child("objects"),f=_i.useMemo(()=>a?[l6,a]:l6,[a]);return t.parent?.model?.class_name==="Grid"?_i.createElement("div",{style:{display:"contents"}},u):_i.createElement(Oc,{container:c,columns:o,direction:r,columnSpacing:n,rowSpacing:s,size:i,spacing:p,sx:f},l.map((d,m)=>{let h=u[m];return d.class_name==="Grid"?_i.createElement(Oc,{columns:d.data.columns,columnSpacing:d.data.column_spacing,direction:d.data.direction,rowSpacing:d.data.row_spacing,size:d.data.size,spacing:d.data.spacing},h):h}))}function Lhe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return _i.createElement("div",{style:{display:"contents",position:"relative"}},_i.createElement(Fhe,{...e}),t&&_i.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},_i.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Bhe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),_i.createElement(ve,{theme:t},_i.createElement(Ce,null),_i.createElement(Lhe,{...e}),o.length?_i.createElement("div",{class:"attached"},o):null)}var c6={render:Bhe};var Ei=w(B());var jhe={height:"100%",width:"100%",display:"flex"};function Vhe({model:e,view:t}){let[o]=e.useState("direction"),[r]=e.useState("elevation"),[n]=e.useState("square"),[s]=e.useState("sx"),[i]=e.useState("variant"),a=e.get_child("objects");Ei.useEffect(()=>{let c=()=>{a.map((p,u)=>{jt(t.get_child_view(e.objects[u]),"column")})};return e.on("lifecycle:update_layout",c),()=>e.off("lifecycle:update_layout",c)},[]);let l=Ei.useMemo(()=>[jhe,{flexDirection:o},s||{}],[o,s]);return Ei.createElement(oo,{elevation:r,square:n,sx:l,variant:i},a.map((c,p)=>(jt(t.get_child_view(e.objects[p]),"column"),c)))}function $he(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Ei.createElement("div",{style:{display:"contents",position:"relative"}},Ei.createElement(Vhe,{...e}),t&&Ei.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Ei.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Uhe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Ei.createElement(ve,{theme:t},Ei.createElement(Ce,null),Ei.createElement($he,{...e}),o.length?Ei.createElement("div",{class:"attached"},o):null)}var p6={render:Uhe};var cl=w(B());var ys=w(B(),1);function S2(e){return K("MuiPopover",e)}var zhe=Q("MuiPopover",["root","paper"]),u6=zhe;var x1=w(J(),1);function C2(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function w2(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function d6(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function T1(e){return typeof e=="function"?e():e}var Whe=e=>{let{classes:t}=e;return G({root:["root"],paper:["paper"]},S2,t)},f6=A(Qp,{name:"MuiPopover",slot:"Root"})({}),P1=A(oo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Hhe=ys.forwardRef(function(t,o){let r=ce({props:t,name:"MuiPopover"}),{action:n,anchorEl:s,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:p,container:u,disableAutoFocus:f=!1,elevation:d=8,marginThreshold:m=16,open:h,slots:b={},slotProps:y={},transformOrigin:g={vertical:"top",horizontal:"left"},transitionDuration:T="auto",disableScrollLock:x=!1,...C}=r,v=ys.useRef(),k={...r,anchorOrigin:i,anchorReference:l,elevation:d,marginThreshold:m,transformOrigin:g,transitionDuration:T},_=Whe(k),I=ys.useCallback(()=>{if(l==="anchorPosition")return a;let Y=T1(s),ne=(Y&&Y.nodeType===1?Y:kr(v.current).body).getBoundingClientRect();return{top:ne.top+C2(ne,i.vertical),left:ne.left+w2(ne,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),O=ys.useCallback(Y=>({vertical:C2(Y,g.vertical),horizontal:w2(Y,g.horizontal)}),[g.horizontal,g.vertical]),R=ys.useCallback(Y=>{let W={width:Y.offsetWidth,height:Y.offsetHeight},ne=O(W);if(l==="none")return{top:null,left:null,transformOrigin:d6(ne)};let te=I(),U=te.top-ne.vertical,ue=te.left-ne.horizontal,V=U+W.height,pe=ue+W.width,se=xn(T1(s)),ye=se.innerHeight-m,le=se.innerWidth-m;if(m!=null&&U<m){let ge=U-m;U-=ge,ne.vertical+=ge}else if(m!=null&&V>ye){let ge=V-ye;U-=ge,ne.vertical+=ge}if(m!=null&&ue<m){let ge=ue-m;ue-=ge,ne.horizontal+=ge}else if(pe>le){let ge=pe-le;ue-=ge,ne.horizontal+=ge}return{top:`${Math.round(U)}px`,left:`${Math.round(ue)}px`,transformOrigin:d6(ne)}},[s,l,I,O,m]),[S,P]=ys.useState(h),M=ys.useCallback(()=>{let Y=v.current;if(!Y)return;let W=R(Y);W.top!=null&&Y.style.setProperty("top",W.top),W.left!=null&&(Y.style.left=W.left),Y.style.transformOrigin=W.transformOrigin,P(!0)},[R]);ys.useEffect(()=>(x&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[s,x,M]);let E=()=>{M()},D=()=>{P(!1)};ys.useEffect(()=>{h&&M()}),ys.useImperativeHandle(n,()=>h?{updatePosition:()=>{M()}}:null,[h,M]),ys.useEffect(()=>{if(!h)return;let Y=vc(()=>{M()}),W=xn(T1(s));return W.addEventListener("resize",Y),()=>{Y.clear(),W.removeEventListener("resize",Y)}},[s,h,M]);let N=T,L={slots:b,slotProps:y},[j,X]=xe("transition",{elementType:Js,externalForwardedProps:L,ownerState:k,getSlotProps:Y=>({...Y,onEntering:(W,ne)=>{Y.onEntering?.(W,ne),E()},onExited:W=>{Y.onExited?.(W),D()}}),additionalProps:{appear:!0,in:h}});T==="auto"&&!j.muiSupportAuto&&(N=void 0);let H=u||(s?kr(T1(s)).body:void 0),[Z,{slots:ie,slotProps:q,...ee}]=xe("root",{ref:o,elementType:f6,externalForwardedProps:{...L,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:vi(typeof y.backdrop=="function"?y.backdrop(k):y.backdrop,{invisible:!0})},container:H,open:h},ownerState:k,className:$(_.root,p)}),[z,re]=xe("paper",{ref:v,className:_.paper,elementType:P1,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:S?void 0:{opacity:0}},ownerState:k});return(0,x1.jsx)(Z,{...ee,...!Ha(Z)&&{slots:ie,slotProps:q,disableAutoFocus:f,disableScrollLock:x},children:(0,x1.jsx)(j,{...X,timeout:N,children:(0,x1.jsx)(z,{...re,children:c})})})}),eu=Hhe;function Yhe({model:e,view:t},o){let[r]=e.useState("anchor_origin"),[n]=e.useState("anchor_position"),[s]=e.useState("close_on_click"),[i]=e.useState("elevation"),[a]=e.useState("enforce_focus"),[l]=e.useState("hide_backdrop"),[c,p]=e.useState("open"),[u]=e.useState("sx"),[f]=e.useState("transform_origin"),d=e.get_child("objects"),m=t.parent?.child_views.includes(t)?t.parent.el:null;return cl.useEffect(()=>{let h=()=>{d.map((b,y)=>{jt(t.get_child_view(e.objects[y]),"column")})};return e.on("lifecycle:update_layout",h),()=>e.off("lifecycle:update_layout",h)},[]),cl.createElement(eu,{anchorEl:m,anchorOrigin:r,anchorPosition:n?{left:n[1],top:n[0]}:void 0,anchorReference:n==null?"anchorEl":"anchorPosition",container:t.container,disableEnforceFocus:!a,elevation:i,marginThreshold:0,hideBackdrop:l,onClose:()=>s&&p(!1),open:c,sx:u,transformOrigin:f??void 0},d)}function qhe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return cl.createElement("div",{style:{display:"contents",position:"relative"}},cl.createElement(Yhe,{...e}),t&&cl.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},cl.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Ghe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),cl.createElement(ve,{theme:t},cl.createElement(Ce,null),cl.createElement(qhe,{...e}),o.length?cl.createElement("div",{class:"attached"},o):null)}var m6={render:Ghe};var Or=w(B());var No=w(B(),1);function Khe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function k2(e,t,o,r={},n=()=>{}){let{ease:s=Khe,duration:i=300}=r,a=null,l=t[e],c=!1,p=()=>{c=!0},u=f=>{if(c){n(new Error("Animation cancelled"));return}a===null&&(a=f);let d=Math.min(1,(f-a)/i);if(t[e]=s(d)*(o-l)+l,d>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(u)};return l===o?(n(new Error("Element already at target position")),p):(requestAnimationFrame(u),p)}var fP=w(B(),1);var y6=w(J(),1),Xhe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll",pointerEvents:"none"};function R2(e){let{onChange:t,...o}=e,r=fP.useRef(),n=fP.useRef(null),s=()=>{r.current=n.current.offsetHeight-n.current.clientHeight};return an(()=>{let i=vc(()=>{let l=r.current;s(),l!==r.current&&t(r.current)}),a=xn(n.current);return a.addEventListener("resize",i),()=>{i.clear(),a.removeEventListener("resize",i)}},[t]),fP.useEffect(()=>{s(),t(r.current)},[t]),(0,y6.jsx)("div",{style:Xhe,...o,ref:n})}var b6=w(B(),1);var h6=w(J(),1),v1=be((0,h6.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft");var g6=w(J(),1),S1=be((0,g6.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function I2(e){return K("MuiTabScrollButton",e)}var Qhe=Q("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),C1=Qhe;var w1=w(J(),1),Zhe=e=>{let{classes:t,orientation:o,disabled:r}=e;return G({root:["root",o,r&&"disabled"]},I2,t)},Jhe=A(Qt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${C1.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),ege=b6.forwardRef(function(t,o){let r=ce({props:t,name:"MuiTabScrollButton"}),{className:n,slots:s={},slotProps:i={},direction:a,orientation:l,disabled:c,...p}=r,{nativeButton:u,...f}=p,d=zt(),m={isRtl:d,...r},h=Zhe(m),b=s.StartScrollButtonIcon??v1,y=s.EndScrollButtonIcon??S1,g=Je({elementType:b,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),T=Je({elementType:y,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return(0,w1.jsx)(Jhe,{component:"div",className:$(h.root,n),ref:o,role:null,ownerState:m,tabIndex:null,...f,style:{...f.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:a==="left"?(0,w1.jsx)(b,{...g}):(0,w1.jsx)(y,{...T})})}),mP=ege;function _2(e){return K("MuiTabs",e)}var tge=Q("MuiTabs",["root","vertical","list","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Fd=tge;var k1=w(B(),1),Dc=k1.createContext(void 0);function Dm(){let e=k1.useContext(Dc);if(e===void 0)throw new Error("MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.");return e}var Ur=w(B(),1);var oge=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","Home","End"];function tu(e){let{activeItemId:t,getDefaultActiveItemId:o,orientation:r,isRtl:n=!1,isItemFocusable:s=Cg,wrap:i=!0}=e,[a,l]=Ur.useState(t),[c,p]=Ur.useState(t),u=a;t!==c&&(p(t),t!==void 0&&t!==a&&(u=t,l(t)));let f=Ur.useRef(null),d=Ur.useRef(new Map),[m,h]=Ur.useState(0),b=Ur.useMemo(()=>E2(d.current),[m]),y=T6(u,b,s,o),g=Ur.useRef(y);g.current=y;let T=Ur.useCallback(()=>{let S=E2(d.current),P=T6(g.current,S,s,o);return C6(S,P)},[o,s]),x=Ur.useCallback(()=>d.current,[]),C=Ae(S=>{let P=d.current.get(S.id);eC(P??null,S)||(d.current.set(S.id,S),h(M=>M+1))}),v=Ae(S=>{d.current.delete(S)&&h(P=>P+1)}),k=Ae(S=>{l(S)}),_=Ur.useCallback(S=>g.current===S,[]),I=Ur.useCallback((S,P,M,E)=>{let D=R1(d.current),N=v6(D,S,P,M,E??s);return N?(N.element?.focus(),l(N.id),N):null},[s]),O=Ur.useCallback((S,P,M)=>({onFocus:N=>{P?.(N);let L=R1(d.current),j=k6(L,N.target);j!==-1&&l(L[j].id)},onKeyDown:N=>{if(M?.(N),N.defaultPrevented||N.altKey||N.shiftKey||N.ctrlKey||N.metaKey||!oge.includes(N.key))return;let L=r==="horizontal"?"ArrowLeft":"ArrowUp",j=r==="horizontal"?"ArrowRight":"ArrowDown";r==="horizontal"&&n&&(L="ArrowRight",j="ArrowLeft");let X=R1(d.current),H=Nf(Kt(f.current)),Z=H===f.current,ie=x6(X,H,g.current),q="next";switch(N.key){case L:q="previous",N.preventDefault(),Z&&(ie=X.length);break;case j:N.preventDefault(),Z&&(ie=-1);break;case"Home":N.preventDefault(),ie=-1;break;case"End":N.preventDefault(),q="previous",ie=X.length;break;default:return}I(ie,q,i)},ref:ige(S,N=>{f.current=N})}),[I,n,r,i]),R=Ur.useCallback(S=>{let P=R1(d.current),M=Nf(Kt(f.current)),D=M===f.current?-1:x6(P,M,g.current);return I(D,"next",!0,S)?.id??null},[I]);return Ur.useMemo(()=>({activeItemId:y,focusNext:R,getActiveItem:T,getContainerProps:O,getItemMap:x,isItemActive:_,registerItem:C,setActiveItemId:k,unregisterItem:v}),[y,R,T,O,x,_,C,k,v])}function ou(e){let t=Dm(),{activeItemId:o,registerItem:r,unregisterItem:n}=t,s=Ur.useRef(null),i=Ur.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),a=Ur.useRef(i);a.current=i;let l=Ur.useCallback(p=>{if(s.current=p,p==null){queueMicrotask(()=>{s.current==null&&n(e.id)});return}r({...a.current,element:p})},[e.id,r,n]),c=_t(e.ref,l);return Ct(()=>{s.current&&r({...i,element:s.current})},[i,r]),Ct(()=>{let p=e.id;return()=>{n(p)}},[e.id,n]),{ref:c,tabIndex:o===e.id?0:-1}}function T6(e,t,o,r){return e!=null?rge(e,t,o):nge(t,o,r)}function rge(e,t,o){let r=w6(t,e);return r===-1?S6(t,o):o(t[r])?t[r].id:v6(t,r,"next",!1,o)?.id??null}function nge(e,t,o){let r=o?.(e);if(r!=null){let n=C6(e,r);if(n&&t(n))return n.id}return S6(e,t)}function x6(e,t,o){if(t){let r=k6(e,t);if(r!==-1)return r}return w6(e,o)}function v6(e,t,o,r,n){let s=e.length-1;if(s===-1)return null;let i=!1,a=P6(t,s,o,r),l=a;for(;a!==-1;){if(a===l){if(i)return null;i=!0}let c=e[a];if(!c||!n(c))a=P6(a,s,o,r);else return c}return null}function S6(e,t){return e.find(o=>t(o))?.id??null}function C6(e,t){return t==null?null:e.find(o=>o.id===t)??null}function w6(e,t){return t==null?-1:e.findIndex(o=>o.id===t)}function k6(e,t){return t?e.findIndex(o=>o.element===t||o.element?.contains(t)):-1}function E2(e){let t=Array.from(e.values());if(t.every(n=>n.element==null))return t;let o=t.filter(M2).sort((n,s)=>sge(n.element,s.element)),r=t.filter(n=>!M2(n));return[...o,...r]}function R1(e){return E2(e).filter(M2)}function P6(e,t,o,r=!0){return o==="next"?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function Cg(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute("disabled")&&e.element.getAttribute("aria-disabled")!=="true"&&e.element.hasAttribute("tabindex"):!1}function M2(e){return e.element!=null&&e.element.isConnected}function sge(e,t){if(e===t)return 0;let o=e.compareDocumentPosition(t);return o&Node.DOCUMENT_POSITION_FOLLOWING||o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS?1:0}function ige(...e){return t=>{e.forEach(o=>{Nl(o??null,t)})}}var Nc=w(J(),1),age=e=>{let{vertical:t,fixed:o,hideScrollbar:r,scrollableX:n,scrollableY:s,centered:i,scrollButtonsHideMobile:a,classes:l}=e;return G({root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",r&&"hideScrollbar",n&&"scrollableX",s&&"scrollableY"],list:["list",t&&"vertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},_2,l)},lge=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[{[`& .${Fd.scrollButtons}`]:t.scrollButtons},{[`& .${Fd.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})(de(({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:{[`& .${Fd.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),cge=A("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.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"}}]}),pge=A("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.list,o.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),uge=A("span",{name:"MuiTabs",slot:"Indicator"})(de(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",...Ge(e),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}}]}))),dge=A(R2)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),R6={};var fge=No.forwardRef(function(t,o){let r=ce({props:t,name:"MuiTabs"}),n=me(),s=zt(),i=Pn(n.motion.reducedMotion,!1),{"aria-label":a,"aria-labelledby":l,action:c,centered:p=!1,children:u,className:f,component:d="div",allowScrollButtonsMobile:m=!1,indicatorColor:h="primary",onChange:b,orientation:y="horizontal",scrollButtons:g="auto",selectionFollowsFocus:T,slots:x={},slotProps:C={},textColor:v="primary",value:k,variant:_="standard",visibleScrollbar:I=!1,...O}=r,R=_==="scrollable",S=y==="vertical",P=S?"scrollTop":"scrollLeft",M=S?"top":"left",E=S?"bottom":"right",D=S?"clientHeight":"clientWidth",N=S?"height":"width",L={...r,component:d,allowScrollButtonsMobile:m,indicatorColor:h,orientation:y,vertical:S,scrollButtons:g,textColor:v,variant:_,visibleScrollbar:I,fixed:!R,hideScrollbar:R&&!I,scrollableX:R&&!S,scrollableY:R&&S,centered:p&&!R,scrollButtonsHideMobile:!m},j=age(L),X=Je({elementType:x.startScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:L}),H=Je({elementType:x.endScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:L}),[Z,ie]=No.useState(!1),[q,ee]=No.useState(R6),[z,re]=No.useState(!1),[Y,W]=No.useState(!1),[ne,te]=No.useState(!1),U=k===!1?null:k,[ue,V]=No.useState(!1),[pe,se]=No.useState({overflow:"hidden",scrollbarWidth:0}),ye=new Map,le=No.useRef(null),ge=No.useRef(null),ae={slots:x,slotProps:C},oe=()=>{let ft=le.current,it;if(ft){let vt=ft.getBoundingClientRect();it={clientWidth:ft.clientWidth,scrollLeft:ft.scrollLeft,scrollTop:ft.scrollTop,scrollWidth:ft.scrollWidth,top:vt.top,bottom:vt.bottom,left:vt.left,right:vt.right}}let xt;if(ft&&k!==!1){let vt=ge.current.children;if(vt.length>0){let ko=vt[ye.get(k)];xt=ko?ko.getBoundingClientRect():null}}return{tabsMeta:it,tabMeta:xt}},he=Oo(()=>{let{tabsMeta:ft,tabMeta:it}=oe(),xt=0,vt;S?(vt="top",it&&ft&&(xt=it.top-ft.top+ft.scrollTop)):(vt=s?"right":"left",it&&ft&&(xt=(s?-1:1)*(it[vt]-ft[vt]+ft.scrollLeft)));let ko={[vt]:xt,[N]:it?it[N]:0};if(typeof q[vt]!="number"||typeof q[N]!="number")ee(ko);else{let hi=Math.abs(q[vt]-ko[vt]),Ws=Math.abs(q[N]-ko[N]);(hi>=1||Ws>=1)&&ee(ko)}}),Ie=(ft,{animation:it=!0}={})=>{it&&!i.shouldReduceMotion?k2(P,le.current,ft,{duration:n.transitions.duration.standard}):le.current[P]=ft},Se=ft=>{let it=le.current[P];S?it+=ft:it+=ft*(s?-1:1),Ie(it)},ot=()=>{let ft=le.current[D],it=0,xt=Array.from(ge.current.children);for(let vt=0;vt<xt.length;vt+=1){let ko=xt[vt];if(it+ko[D]>ft){vt===0&&(it=ft);break}it+=ko[D]}return it},Fe=()=>{Se(-1*ot())},Le=()=>{Se(ot())},[qe,{onChange:Mt,...Pe}]=xe("scrollbar",{className:$(j.scrollableX,j.hideScrollbar),elementType:dge,shouldForwardComponentProp:!0,externalForwardedProps:ae,ownerState:L}),Ee=No.useCallback(ft=>{Mt?.(ft),se({overflow:null,scrollbarWidth:ft})},[Mt]),[je,rt]=xe("scrollButtons",{className:j.scrollButtons,elementType:mP,externalForwardedProps:ae,ownerState:L,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:x.startScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon},slotProps:{startScrollButtonIcon:X,endScrollButtonIcon:H}}}),st=()=>{let ft={};ft.scrollbarSizeListener=R?(0,Nc.jsx)(qe,{...Pe,onChange:Ee}):null;let xt=R&&(g==="auto"&&(z||Y)||g===!0);return ft.scrollButtonStart=xt?(0,Nc.jsx)(je,{direction:s?"right":"left",onClick:Fe,disabled:!z,...rt}):null,ft.scrollButtonEnd=xt?(0,Nc.jsx)(je,{direction:s?"left":"right",onClick:Le,disabled:!Y,...rt}):null,ft},He=Oo(ft=>{let{tabsMeta:it,tabMeta:xt}=oe();if(!(!xt||!it)){if(xt[M]<it[M]){let vt=it[P]+(xt[M]-it[M]);Ie(vt,{animation:ft})}else if(xt[E]>it[E]){let vt=it[P]+(xt[E]-it[E]);Ie(vt,{animation:ft})}}}),mt=Oo(()=>{R&&g!==!1&&te(!ne)});No.useEffect(()=>{let ft=vc(()=>{le.current&&he()}),it,xt=hi=>{hi.forEach(Ws=>{Ws.removedNodes.forEach(Sl=>{it?.unobserve(Sl)}),Ws.addedNodes.forEach(Sl=>{it?.observe(Sl)})}),ft(),mt()},vt=xn(le.current);vt.addEventListener("resize",ft);let ko;return typeof ResizeObserver<"u"&&(it=new ResizeObserver(ft),Array.from(ge.current.children).forEach(hi=>{it.observe(hi)})),typeof MutationObserver<"u"&&(ko=new MutationObserver(xt),ko.observe(ge.current,{childList:!0})),()=>{ft.clear(),vt.removeEventListener("resize",ft),ko?.disconnect(),it?.disconnect()}},[he,mt]),No.useEffect(()=>{let ft=Array.from(ge.current.children),it=ft.length;if(typeof IntersectionObserver<"u"&&it>0&&R&&g!==!1){let xt=ft[0],vt=ft[it-1],ko={root:le.current,threshold:.99},hi=dt=>{re(!dt[0].isIntersecting)},Ws=new IntersectionObserver(hi,ko);Ws.observe(xt);let Sl=dt=>{W(!dt[0].isIntersecting)},ze=new IntersectionObserver(Sl,ko);return ze.observe(vt),()=>{Ws.disconnect(),ze.disconnect()}}},[R,g,ne,u?.length]),No.useEffect(()=>{ie(!0)},[]),No.useEffect(()=>{he()}),No.useEffect(()=>{He(R6!==q)},[He,q]),No.useImperativeHandle(c,()=>({updateIndicator:he,updateScrollButtons:mt}),[he,mt]);let[at,no]=xe("indicator",{className:j.indicator,elementType:uge,externalForwardedProps:ae,ownerState:L,additionalProps:{style:q}}),tt=(0,Nc.jsx)(at,{...no}),Re=tu({activeItemId:ue?void 0:U,orientation:y,isRtl:s}),Ve=Re.getContainerProps(),Ke=No.Children.toArray(u).filter(No.isValidElement).map((ft,it)=>{let xt=ft.props.value===void 0?it:ft.props.value;return ye.set(xt,it),{child:ft,index:it,childValue:xt}}).map(({child:ft,childValue:it})=>{let xt=it===k;return No.cloneElement(ft,{fullWidth:_==="fullWidth",indicator:xt&&!Z&&tt,selected:xt,selectionFollowsFocus:T,onChange:b,textColor:v,value:it})}),lt=st(),[Go,bn]=xe("root",{ref:o,className:$(j.root,f),elementType:lge,externalForwardedProps:{...ae,...O,component:d},ownerState:L}),[ho,Po]=xe("scroller",{ref:le,className:j.scroller,elementType:cge,externalForwardedProps:ae,ownerState:L,additionalProps:{style:{overflow:pe.overflow,[S?`margin${s?"Left":"Right"}`:"marginBottom"]:I?void 0:-pe.scrollbarWidth}}}),wr=Wt(Ve.ref,ge),pp=ft=>{let it=ge.current;Yr(kr(it))?.getAttribute("role")==="tab"&&Ve.onKeyDown(ft)},[Na,up]=xe("list",{ref:wr,className:j.list,elementType:pge,externalForwardedProps:ae,ownerState:L,getSlotProps:ft=>({...ft,onBlur:it=>{Bs(it.currentTarget,it.relatedTarget)||V(!1),ft.onBlur?.(it)},onKeyDown:it=>{pp(it),ft.onKeyDown?.(it)},onFocus:it=>{V(!0),Ve.onFocus(it),ft.onFocus?.(it)}})});return(0,Nc.jsxs)(Go,{...bn,children:[lt.scrollButtonStart,lt.scrollbarSizeListener,(0,Nc.jsxs)(ho,{...Po,children:[(0,Nc.jsx)(Na,{"aria-label":a,"aria-labelledby":l,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...up,children:(0,Nc.jsx)(Dc.Provider,{value:Re,children:Ke})}),Z&&tt]}),lt.scrollButtonEnd]})}),ru=fge;var nu=w(B(),1);function O2(e){return K("MuiTab",e)}var mge=Q("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","icon"]),Mi=mge;var I1=w(J(),1),yge=e=>{let{classes:t,textColor:o,fullWidth:r,wrapped:n,icon:s,label:i,selected:a,disabled:l}=e,c={root:["root",s&&i&&"labelIcon",`textColor${Te(o)}`,r&&"fullWidth",n&&"wrapped",a&&"selected",l&&"disabled"],icon:["icon"]};return G(c,O2,t)},hge=A(Qt,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${Te(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped,{[`& .${Mi.icon}`]:t.icon}]}})(de(({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,...e.focusVisible&&Wa(3),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:o})=>t.icon&&t.label&&o==="top",style:{[`& > .${Mi.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:o})=>t.icon&&t.label&&o==="bottom",style:{[`& > .${Mi.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:o})=>t.icon&&t.label&&o==="start",style:{[`& > .${Mi.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:o})=>t.icon&&t.label&&o==="end",style:{[`& > .${Mi.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Mi.selected}`]:{opacity:1},...e.focusVisible&&{[`&.${ss.focusVisible}`]:{opacity:1}},[`&.${Mi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Mi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Mi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Mi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Mi.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)}}]}))),gge=nu.forwardRef(function(t,o){let r=ce({props:t,name:"MuiTab"}),{className:n,disabled:s=!1,disableFocusRipple:i=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:p,label:u,onChange:f,onClick:d,onFocus:m,selected:h,selectionFollowsFocus:b,textColor:y="inherit",value:g,wrapped:T=!1,...x}=r,C=Dm(),v=ou({id:g,ref:o,disabled:s,selected:h}),_=C.getItemMap().size===0&&h?0:v.tabIndex,I={...r,disabled:s,disableFocusRipple:i,selected:h,icon:!!l,iconPosition:c,label:!!u,fullWidth:a,textColor:y,wrapped:T},O=yge(I),R=l&&u&&nu.isValidElement(l)?nu.cloneElement(l,{className:$(O.icon,l.props.className)}):l,S=M=>{!h&&f&&f(M,g),d&&d(M)},P=M=>{b&&!h&&f&&f(M,g),m&&m(M)};return(0,I1.jsxs)(hge,{internalNativeButton:!0,focusRipple:!i,className:$(O.root,n),ref:v.ref,role:"tab","aria-selected":h,disabled:s,onClick:S,onFocus:P,tabIndex:_,ownerState:I,...x,children:[c==="top"||c==="start"?(0,I1.jsxs)(nu.Fragment,{children:[R,u]}):(0,I1.jsxs)(nu.Fragment,{children:[u,R]}),p]})}),Kl=gge;var bge={transition:"height 0.3s"},Tge={display:"flex",alignItems:"center"},I6={display:"inline-flex",alignItems:"center",gap:"0.25em"},xge={ml:1,cursor:"pointer","&:hover":{opacity:.7}},Pge={height:"100%",maxWidth:"100%",position:"relative"},vge={flex:1,minWidth:0,display:"flex",flexDirection:"column",overflow:"auto",position:"relative",width:"100%",opacity:1};function Sge({model:e,view:t}){let[o,r]=e.useState("active"),[n]=e.useState("centered"),[s]=e.useState("closable"),[i]=e.useState("color"),[a]=e.useState("disabled"),[l]=e.useState("tabs_location"),[c]=e.useState("_names"),[p]=e.useState("sx"),[u]=e.useState("wrapped"),f=e.get_child("_headers"),d=e.get_child("objects"),m=me(),h=(O,R)=>{r(R)},b=l==="above"||l==="below"?"horizontal":"vertical",y=m.palette[i]||m.palette.primary,g=Array.isArray(a)?a:[],T=Number.isInteger(o)&&o>=0&&o<d.length?o:0,x=Or.useMemo(()=>({...Pge,display:d.length===0?"none":"flex",flexDirection:l==="left"||l==="right"?"row":"column"}),[d.length,l]),C=Or.useMemo(()=>[vge,{minHeight:0},{transition:m.transitions.create(["opacity","min-height"],{duration:m.transitions.duration.short,easing:m.transitions.easing.easeInOut})}],[m.transitions]),v=Or.useCallback((O,R)=>{O.stopPropagation();let S=t.model.data.objects[R].id,P=o;R<o?P=o-1:R===o&&o>=d.length-1&&(P=Math.max(0,d.length-2)),P!==o&&r(P),e.send_msg({type:"close",id:S})},[o,d.length,r,e,t.model.data]),k=Or.useMemo(()=>c.map((O,R)=>Or.createElement(Kl,{key:R,disabled:g.includes(R),label:s?Or.createElement(Be,{sx:Tge},O?Or.createElement("span",{style:I6},_p(O)):f[R],Or.createElement(Be,{component:"span",sx:xge,onClick:S=>v(S,R)},"\u2715")):O?Or.createElement("span",{style:I6},_p(O)):f[R],wrapped:u})),[c,g,s,f,v,u]),_=Or.createElement(ru,{centered:n,indicatorColor:i,textColor:i,value:o,onChange:h,orientation:b,scrollButtons:"auto",slotProps:{indicator:{sx:{backgroundColor:y.main,...l==="right"&&{left:0,right:"auto",width:3},...l==="bottom"&&{top:0,bottom:"auto",height:3}}}},sx:bge,variant:"scrollable"},k),I=d.length===0?null:jt(t.get_child_view(e.objects[T]),"column")||d[T];return Or.createElement(Be,{className:"MuiTabsPanel",sx:{...x,...p}},(l==="left"||l==="above")&&_,Or.createElement(Be,{sx:C},I),(l==="right"||l==="below")&&_)}function Cge(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Or.createElement("div",{style:{display:"contents",position:"relative"}},Or.createElement(Sge,{...e}),t&&Or.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Or.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function wge(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Or.createElement(ve,{theme:t},Or.createElement(Ce,null),Or.createElement(Cge,{...e}),o.length?Or.createElement("div",{class:"attached"},o):null)}var _6={render:wge};var hs=w(B());var nt=w(B()),Y6=w(Pm());function E6(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=E6(e[t]))&&(r&&(r+=" "),r+=o);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function kge(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=E6(e))&&(r&&(r+=" "),r+=t);return r}var Ld=kge;var Rge={data:""},Ige=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Rge};var _ge=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ege=/\/\*[^]*?\*\/| +/g,M6=/\n+/g,Nm=(e,t)=>{let o="",r="",n="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?o=s+" "+i+";":r+=s[1]=="f"?Nm(i,s):s+"{"+Nm(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=Nm(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):i!=null&&(s=s[1]=="-"?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=Nm.p?Nm.p(s,i):s+":"+i+";")}return o+(t&&n?t+"{"+n+"}":n)+r},Bd={},O6=e=>{if(typeof e=="object"){let t="";for(let o in e)t+=o+O6(e[o]);return t}return e},Mge=(e,t,o,r,n)=>{let s=O6(e),i=Bd[s]||(Bd[s]=(l=>{let c=0,p=11;for(;c<l.length;)p=101*p+l.charCodeAt(c++)>>>0;return"go"+p})(s));if(!Bd[i]){let l=s!==e?e:(c=>{let p,u,f=[{}];for(;p=_ge.exec(c.replace(Ege,""));)p[4]?f.shift():p[3]?(u=p[3].replace(M6," ").trim(),f.unshift(f[0][u]=f[0][u]||{})):f[0][p[1]]=p[2].replace(M6," ").trim();return f[0]})(e);Bd[i]=Nm(n?{["@keyframes "+i]:l}:l,o?"":"."+i)}let a=o&&Bd.g;return o&&(Bd.g=Bd[i]),((l,c,p,u)=>{u?c.data=c.data.replace(u,l):c.data.indexOf(l)===-1&&(c.data=p?l+c.data:c.data+l)})(Bd[i],t,r,a),i},Oge=(e,t,o)=>e.reduce((r,n,s)=>{let i=t[s];if(i&&i.call){let a=i(o),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=l?"."+l:a&&typeof a=="object"?a.props?"":Nm(a,""):a===!1?"":a}return r+n+(i??"")},"");function _1(e){let t=this||{},o=e.call?e(t.p):e;return Mge(o.unshift?o.raw?Oge(o,[].slice.call(arguments,1),t.p):o.reduce((r,n)=>Object.assign(r,n&&n.call?n(t.p):n),{}):o,Ige(t.target),t.g,t.o,t.k)}var Jht=_1.bind({g:1}),egt=_1.bind({k:1});function D6(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q6(e,t,o){return t&&D6(e.prototype,t),o&&D6(e,o),e}function Ho(){return Ho=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ho.apply(this,arguments)}function G6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function TP(e,t){if(e==null)return{};var o={},r=Object.keys(e),n,s;for(s=0;s<r.length;s++)n=r[s],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function N6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var A6=function(){return""},K6=nt.default.createContext({enqueueSnackbar:A6,closeSnackbar:A6}),Am={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},F6=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},$2=function(t){return""+F6(t.vertical)+F6(t.horizontal)},E1=function(t){return!!t||t===0},M1="unmounted",wg="exited",kg="entering",yP="entered",L6="exiting",U2=(function(e){G6(t,e);function t(r){var n;n=e.call(this,r)||this;var s=r.appear,i;return n.appearStatus=null,r.in?s?(i=wg,n.appearStatus=kg):i=yP:r.unmountOnExit||r.mountOnEnter?i=M1:i=wg,n.state={status:i},n.nextCallback=null,n}t.getDerivedStateFromProps=function(n,s){var i=n.in;return i&&s.status===M1?{status:wg}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(n){var s=null;if(n!==this.props){var i=this.state.status;this.props.in?i!==kg&&i!==yP&&(s=kg):(i===kg||i===yP)&&(s=L6)}this.updateStatus(!1,s)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var n=this.props.timeout,s=n,i=n;return n!=null&&typeof n!="number"&&typeof n!="string"&&(i=n.exit,s=n.enter),{exit:i,enter:s}},o.updateStatus=function(n,s){n===void 0&&(n=!1),s!==null?(this.cancelNextCallback(),s===kg?this.performEnter(n):this.performExit()):this.props.unmountOnExit&&this.state.status===wg&&this.setState({status:M1})},o.performEnter=function(n){var s=this,i=this.props.enter,a=n,l=this.getTimeouts();if(!n&&!i){this.safeSetState({status:yP},function(){s.props.onEntered&&s.props.onEntered(s.node,a)});return}this.props.onEnter&&this.props.onEnter(this.node,a),this.safeSetState({status:kg},function(){s.props.onEntering&&s.props.onEntering(s.node,a),s.onTransitionEnd(l.enter,function(){s.safeSetState({status:yP},function(){s.props.onEntered&&s.props.onEntered(s.node,a)})})})},o.performExit=function(){var n=this,s=this.props.exit,i=this.getTimeouts();if(!s){this.safeSetState({status:wg},function(){n.props.onExited&&n.props.onExited(n.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:L6},function(){n.props.onExiting&&n.props.onExiting(n.node),n.onTransitionEnd(i.exit,function(){n.safeSetState({status:wg},function(){n.props.onExited&&n.props.onExited(n.node)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(n,s){s=this.setNextCallback(s),this.setState(n,s)},o.setNextCallback=function(n){var s=this,i=!0;return this.nextCallback=function(){i&&(i=!1,s.nextCallback=null,n())},this.nextCallback.cancel=function(){i=!1},this.nextCallback},o.onTransitionEnd=function(n,s){this.setNextCallback(s);var i=n==null&&!this.props.addEndListener;if(!this.node||i){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),n!=null&&setTimeout(this.nextCallback,n)},o.render=function(){var n=this.state.status;if(n===M1)return null;var s=this.props,i=s.children,a=TP(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i(n,a)},q6(t,[{key:"node",get:function(){var n,s=(n=this.props.nodeRef)===null||n===void 0?void 0:n.current;if(!s)throw new Error("notistack - Custom snackbar is not refForwarding");return s}}]),t})(nt.default.Component);function Rg(){}U2.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rg,onEntering:Rg,onEntered:Rg,onExit:Rg,onExiting:Rg,onExited:Rg};function B6(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function j2(e,t){return(0,nt.useMemo)(function(){return e==null&&t==null?null:function(o){B6(e,o),B6(t,o)}},[e,t])}function F1(e){var t=e.timeout,o=e.style,r=o===void 0?{}:o,n=e.mode;return{duration:typeof t=="object"?t[n]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var V2={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},X6=function(t){t.scrollTop=t.scrollTop},j6=function(t){return Math.round(t)+"ms"};function Ig(e,t){e===void 0&&(e=["all"]);var o=t||{},r=o.duration,n=r===void 0?300:r,s=o.easing,i=s===void 0?V2.easeInOut:s,a=o.delay,l=a===void 0?0:a,c=Array.isArray(e)?e:[e];return c.map(function(p){var u=typeof n=="string"?n:j6(n),f=typeof l=="string"?l:j6(l);return p+" "+u+" "+i+" "+f}).join(",")}function Dge(e){return e&&e.ownerDocument||document}function Q6(e){var t=Dge(e);return t.defaultView||window}function Nge(e,t){t===void 0&&(t=166);var o;function r(){for(var n=this,s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];var l=function(){e.apply(n,i)};clearTimeout(o),o=setTimeout(l,t)}return r.clear=function(){clearTimeout(o)},r}function Age(e,t){var o=t.getBoundingClientRect(),r=Q6(t),n;if(t.fakeTransform)n=t.fakeTransform;else{var s=r.getComputedStyle(t);n=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var i=0,a=0;if(n&&n!=="none"&&typeof n=="string"){var l=n.split("(")[1].split(")")[0].split(",");i=parseInt(l[4],10),a=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+i-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-i)+"px)";case"up":return"translateY("+(r.innerHeight+a-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-a)+"px)"}}function O1(e,t){if(t){var o=Age(e,t);o&&(t.style.webkitTransform=o,t.style.transform=o)}}var Z6=(0,nt.forwardRef)(function(e,t){var o=e.children,r=e.direction,n=r===void 0?"down":r,s=e.in,i=e.style,a=e.timeout,l=a===void 0?0:a,c=e.onEnter,p=e.onEntered,u=e.onExit,f=e.onExited,d=TP(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=(0,nt.useRef)(null),h=j2(o.ref,m),b=j2(h,t),y=function(k,_){O1(n,k),X6(k),c&&c(k,_)},g=function(k){var _=i?.transitionTimingFunction||V2.easeOut,I=F1({timeout:l,mode:"enter",style:Ho({},i,{transitionTimingFunction:_})});k.style.webkitTransition=Ig("-webkit-transform",I),k.style.transition=Ig("transform",I),k.style.webkitTransform="none",k.style.transform="none"},T=function(k){var _=i?.transitionTimingFunction||V2.sharp,I=F1({timeout:l,mode:"exit",style:Ho({},i,{transitionTimingFunction:_})});k.style.webkitTransition=Ig("-webkit-transform",I),k.style.transition=Ig("transform",I),O1(n,k),u&&u(k)},x=function(k){k.style.webkitTransition="",k.style.transition="",f&&f(k)},C=(0,nt.useCallback)(function(){m.current&&O1(n,m.current)},[n]);return(0,nt.useEffect)(function(){if(!(s||n==="down"||n==="right")){var v=Nge(function(){m.current&&O1(n,m.current)}),k=Q6(m.current);return k.addEventListener("resize",v),function(){v.clear(),k.removeEventListener("resize",v)}}},[n,s]),(0,nt.useEffect)(function(){s||C()},[s,C]),(0,nt.createElement)(U2,Object.assign({appear:!0,nodeRef:m,onEnter:y,onEntered:p,onEntering:g,onExit:T,onExited:x,in:s,timeout:l},d),function(v,k){return(0,nt.cloneElement)(o,Ho({ref:b,style:Ho({visibility:v==="exited"&&!s?"hidden":void 0},i,{},o.props.style)},k))})});Z6.displayName="Slide";var L1=function(t){return nt.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},Fge=function(){return nt.default.createElement(L1,null,nt.default.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
248
|
+
`,xce=Zs.forwardRef(function(t,o){let r=ce({props:t,name:"MuiTouchRipple"}),n=me(),s=Pn(n.motion.reducedMotion,!1),{center:i=!1,classes:a=kC,className:l,...c}=r,[p,u]=Zs.useState({items:kU,order:kU}),f=p.items,d=Zs.useRef(0),m=Zs.useRef(null),h=Zs.useRef(!1);mh(()=>(h.current=!0,()=>{h.current=!1})),Zs.useEffect(()=>{m.current&&(m.current(),m.current=null)},[f]);let b=Zs.useRef(!1),y=ur(),g=Zs.useRef(null),T=Zs.useRef(null),x=Oo(R=>{h.current&&u(S=>{let P=S.items.filter(E=>E.key!==R),M=fM(S.order.filter(E=>E!==R),P.filter(E=>!E.exiting).map(E=>E.key));return{items:P,order:M}})}),C=Oo(R=>{let{pulsate:S,rippleX:P,rippleY:M,rippleSize:E,cb:D}=R,N=d.current;d.current+=1,u(L=>{let j=[...L.items,{key:N,pulsate:S,rippleX:P,rippleY:M,rippleSize:E,exiting:!1}];return{items:j,order:fM(L.order,j.filter(X=>!X.exiting).map(X=>X.key))}}),m.current=D}),v=Oo((R=kC,S=kC,P=dce)=>{let{pulsate:M=!1,center:E=i||S.pulsate,fakeElement:D=!1}=S;if(R?.type==="mousedown"&&b.current){b.current=!1;return}R?.type==="touchstart"&&(b.current=!0);let N=D?null:T.current,{rippleX:L,rippleY:j,rippleSize:X}=fce({event:R,element:N,center:E});R?.touches?g.current===null&&(g.current=()=>{C({pulsate:M,rippleX:L,rippleY:j,rippleSize:X,cb:P})},y.start(uce,()=>{g.current&&(g.current(),g.current=null)})):C({pulsate:M,rippleX:L,rippleY:j,rippleSize:X,cb:P})}),k=Oo(()=>{v(kC,{pulsate:!0})}),_=Oo((R,S)=>{if(y.clear(),R?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{_(R,S)});return}g.current=null,u(P=>{let M=P.items.findIndex(D=>!D.exiting);if(M===-1)return P;let E=P.items.slice();return E[M]={...E[M],exiting:!0},{items:E,order:fM(P.order,E.filter(D=>!D.exiting).map(D=>D.key))}}),m.current=S});Zs.useImperativeHandle(o,()=>({pulsate:k,start:v,stop:_}),[k,v,_]);let I=new Map(f.map(R=>[R.key,R])),O=p.order.map(R=>I.get(R)).filter(Boolean);return(0,mM.jsx)(bce,{className:$(jn.root,a.root,l),ref:T,...c,children:O.map(R=>(0,mM.jsx)(Tce,{classes:{ripple:$(a.ripple,jn.ripple),rippleVisible:$(a.rippleVisible,jn.rippleVisible),ripplePulsate:$(a.ripplePulsate,jn.ripplePulsate),child:$(a.child,jn.child),childLeaving:$(a.childLeaving,jn.childLeaving),childPulsate:$(a.childPulsate,jn.childPulsate)},timeout:s.shouldReduceMotion?0:yM,pulsate:R.pulsate,rippleX:R.rippleX,rippleY:R.rippleY,rippleSize:R.rippleSize,in:!R.exiting,onExited:()=>x(R.key)},R.key))})}),RU=xce;function hM(e){return K("MuiButtonBase",e)}var Pce=Q("MuiButtonBase",["root","disabled","focusVisible"]),ss=Pce;var RC=w(J(),1),vce=e=>{let{disabled:t,focusVisible:o,focusVisibleClassName:r,suppressFocusVisible:n,classes:s}=e,a=G({root:["root",t&&"disabled",o&&!n&&"focusVisible"]},hM,s);return o&&!n&&r&&(a.root+=` ${r}`),a},Sce=A("button",{name:"MuiButtonBase",slot:"Root"})(de(({theme:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ss.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"},variants:[{props:{internalDisabledThemeFocusVisible:!1},style:e.focusVisible&&{...Ks,[`&.${ss.focusVisible}`]:e.focusVisible}}]}))),Cce=sd.forwardRef(function(t,o){let r=ce({props:t,name:"MuiButtonBase"}),{action:n,centerRipple:s=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:p=!1,disableTouchRipple:u=!1,focusRipple:f=!1,focusVisibleClassName:d,focusableWhenDisabled:m,suppressFocusVisible:h=!1,internalNativeButton:b,internalDisabledThemeFocusVisible:y=!1,LinkComponent:g="a",nativeButton:T,onBlur:x,onClick:C,onContextMenu:v,onDragLeave:k,onFocus:_,onFocusVisible:I,onKeyDown:O,onKeyUp:R,onMouseDown:S,onMouseLeave:P,onMouseUp:M,onTouchEnd:E,onTouchMove:D,onTouchStart:N,tabIndex:L=0,TouchRippleProps:j,touchRippleRef:X,type:H,...Z}=r,ie=!!(Z.href||Z.to),q=!!Z.formAction,ee=l;ee==="button"&&ie&&(ee=g);let z=typeof ee=="string"?ee==="button":b??!1,re=T??z,Y=wC(),W=Wt(Y.ref,X),[ne,te]=sd.useState(!1);(c||h)&&ne&&te(!1);let U=Oo(He=>{f&&!He.repeat&&ne&&He.key===" "&&Y.stop(He,()=>{Y.start(He)})}),ue=Oo(He=>{f&&He.key===" "&&ne&&!He.defaultPrevented&&Y.stop(He,()=>{Y.pulsate(He)})}),{getButtonProps:V,rootRef:pe}=pM({nativeButton:re,nativeButtonProp:T,internalNativeButton:z,allowInferredHostMismatch:ie||typeof ee=="string",disabled:c,type:H,hasFormAction:q,tabIndex:L,onBeforeKeyDown:U,onBeforeKeyUp:ue}),{onClick:se,onKeyDown:ye,onKeyUp:le,...ge}=V({onClick:C,onKeyDown:O,onKeyUp:R});sd.useImperativeHandle(n,()=>({focusVisible:()=>{te(!0),pe.current.focus()}}),[pe]);let ae=Y.shouldMount&&!p&&!c;sd.useEffect(()=>{ne&&f&&!p&&Y.pulsate()},[p,f,ne,Y]);let oe=Ep(Y,"start",S,u),he=Ep(Y,"stop",v,u),Ie=Ep(Y,"stop",k,u),Se=Ep(Y,"stop",M,u),ot=Ep(Y,"stop",He=>{ne&&He.preventDefault(),P&&P(He)},u),Fe=Ep(Y,"start",N,u),Le=Ep(Y,"stop",E,u),qe=Ep(Y,"stop",D,u),Mt=Ep(Y,"stop",He=>{rs(He.target)||te(!1),x&&x(He)},!1),Pe=Oo(He=>{pe.current||(pe.current=He.currentTarget),!h&&rs(He.target)&&(te(!0),I&&I(He)),_&&_(He)}),Ee={};ie&&(Ee.tabIndex=c?-1:L,c&&(Ee["aria-disabled"]=c),Ee.type=H);let je=Wt(o,pe),rt={...r,centerRipple:s,component:l,disabled:c,disableRipple:p,disableTouchRipple:u,focusRipple:f,suppressFocusVisible:h,tabIndex:L,focusVisible:ne,internalDisabledThemeFocusVisible:y},st=vce(rt);return(0,RC.jsxs)(Sce,{as:ee,className:$(st.root,a),ownerState:rt,onBlur:Mt,onClick:se,onContextMenu:he,onFocus:Pe,onKeyDown:ye,onKeyUp:le,onMouseDown:oe,onMouseLeave:ot,onMouseUp:Se,onDragLeave:Ie,onTouchEnd:Le,onTouchMove:qe,onTouchStart:Fe,ref:je,...ie?Ee:ge,...Z,children:[i,ae?(0,RC.jsx)(RU,{ref:W,center:s,...j}):null]})});function Ep(e,t,o,r=!1){return Oo(n=>(o&&o(n),r||e[t](n),!0))}var Qt=Cce;function gM(e){return K("MuiIconButton",e)}var wce=Q("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),GT=wce;var wh=w(J(),1),kce=e=>{let{classes:t,disabled:o,color:r,edge:n,size:s,loading:i}=e,a={root:["root",i&&"loading",o&&"disabled",r!=="default"&&`color${Te(r)}`,n&&`edge${Te(n)}`,`size${Te(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return G(a,gM,t)},Rce=A(Qt,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.loading&&t.loading,o.color!=="default"&&t[`color${Te(o.color)}`],o.edge&&t[`edge${Te(o.edge)}`],t[`size${Te(o.size)}`]]}})(de(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,...Ge(e,"background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||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}}]})),de(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(bt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||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)}}],[`&.${GT.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${GT.loading}`]:{color:"transparent"}}))),Ice=A("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"}}]})),_ce=IC.forwardRef(function(t,o){let r=ce({props:t,name:"MuiIconButton"}),{edge:n=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:p="medium",id:u,loading:f=null,loadingIndicator:d,...m}=r,h=Bn(u),b=d??(0,wh.jsx)(_e,{"aria-labelledby":h,color:"inherit",size:16}),y={...r,edge:n,color:a,disabled:l,disableFocusRipple:c,loading:f,loadingIndicator:b,size:p},g=kce(y);return(0,wh.jsxs)(Rce,{id:f?h:u,className:$(g.root,i),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:l||f,ref:o,...m,ownerState:y,children:[typeof f=="boolean"&&(0,wh.jsx)("span",{className:g.loadingWrapper,style:{display:"contents"},children:(0,wh.jsx)(Ice,{className:g.loadingIndicator,ownerState:y,children:f&&b})}),s]})}),Qe=_ce;var Vn=w(B(),1);var kh=w(B(),1);var vn=w(B(),1);var IU=w(B()),Mp=IU.default.createContext(null);var _U=w(J(),1);function Ece(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e=="number")return{appear:e,enter:e,exit:e};let t=e.enter,o=e.exit;return{appear:e.appear!==void 0?e.appear:t,enter:t,exit:o}}function Mce(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=Ece(e.timeout);return e.currentStatus==="entering"?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function Oce(e){let{in:t=!1,appear:o=!1,enter:r=!0,exit:n=!0,mountOnEnter:s=!1,unmountOnExit:i=!1,timeout:a,addEndListener:l,reduceMotion:c=!1,getAutoTimeout:p,nodeRef:u,onEnter:f,onEntering:d,onEntered:m,onExit:h,onExiting:b,onExited:y,children:g,...T}=e,x=vn.useContext(Mp),C=x&&!x.isMounting?r:o,[v,k]=vn.useState(()=>t?C?"exited":"entered":s||i?"unmounted":"exited"),_=vn.useRef(v);_.current=v,t&&v==="unmounted"&&(_.current="exited",k("exited"));let I=vn.useRef(t&&C),O=vn.useRef(!1),R=vn.useRef(null),S=vn.useRef(v),P=vn.useRef(!1),M=vn.useRef(c),E=sC({timeout:a,addEndListener:l,reduceMotion:c,getAutoTimeout:p,onEnter:f,onEntering:d,onEntered:m,onExit:h,onExiting:b,onExited:y,enter:r,exit:n,mountOnEnter:s,unmountOnExit:i,nodeRef:u,parentGroup:x}),D=vn.useCallback(()=>{R.current!==null&&(R.current.cancel(),R.current=null)},[]),N=vn.useCallback(Z=>{let ie=!0,q=()=>{ie&&(ie=!1,R.current=null,Z())};return q.cancel=()=>{ie=!1},R.current=q,q},[]),L=vn.useCallback((Z,ie)=>{let q,ee=()=>{q!==void 0&&(clearTimeout(q),q=void 0)},z=N(()=>{ee(),_.current=Z,k(Z)}),re=z.cancel;z.cancel=()=>{ee(),re()};let Y=E.current.nodeRef.current,W=E.current.addEndListener,ne=E.current.getAutoTimeout!==void 0,te=E.current.getAutoTimeout?.(),U=Mce({currentStatus:ie,isAppearing:P.current,timeout:E.current.timeout,autoTimeout:te}),ue=M.current,V=U??(ue&&ne?0:null),pe=se=>{q=setTimeout(z,se)};if(!Y){pe(0);return}if(W){V!=null&&pe(ue?0:V),W.length>=2?W(Y,z):W(z);return}pe(ue?0:U??0)},[N,E]),j=vn.useCallback(Z=>{let ie=E.current,q=ie.parentGroup?ie.parentGroup.isMounting:Z;if(P.current=q,!Z&&!ie.enter){_.current="entered",k("entered");return}M.current=ie.reduceMotion,ie.onEnter?.(q),_.current="entering",k("entering")},[E]),X=vn.useCallback(()=>{let Z=E.current;if(!Z.exit){_.current="exited",k("exited");return}M.current=Z.reduceMotion,Z.onExit?.(),_.current="exiting",k("exiting")},[E]),H=vn.useCallback((Z,ie)=>{if(D(),ie==="entering"){let q=E.current;if(q.mountOnEnter||q.unmountOnExit){let ee=q.nodeRef.current;ee&&Tc(ee)}j(Z)}else X()},[D,j,X,E]);return Ct(()=>(O.current=!0,I.current&&(I.current=!1,H(!0,"entering")),()=>{O.current=!1,D()}),[D,H]),Ct(()=>{if(!O.current)return;let Z=_.current;t?Z!=="entering"&&Z!=="entered"&&H(!1,"entering"):Z==="entering"||Z==="entered"?H(!1,"exiting"):Z==="exited"&&i&&(_.current="unmounted",k("unmounted"))},[t,v,i,H]),Ct(()=>{if(v==="unmounted"||S.current==="unmounted"){S.current=v;return}let ie=S.current!==v;ie&&(S.current=v);let q=E.current;v==="entering"?(ie&&q.onEntering?.(P.current),R.current===null&&_.current===v&&L("entered","entering")):v==="exiting"?(ie&&q.onExiting?.(),R.current===null&&_.current===v&&L("exited","exiting")):v==="entered"&&ie?q.onEntered?.(P.current):v==="exited"&&ie&&q.onExited?.()},[E,L,v]),v==="unmounted"?null:(0,_U.jsx)(Mp.Provider,{value:null,children:g(v,T)})}var Sc=Oce;var EU=w(J(),1),Dce={entering:{transform:"none"},entered:{transform:"none"},exiting:{transform:"scale(0)"},exited:{transform:"scale(0)"}},Nce={transform:"scale(0)",visibility:"hidden"},Ace=kh.forwardRef(function(t,o){let r=me(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,disablePrefersReducedMotion:l=!1,easing:c,in:p,onEnter:u,onEntered:f,onEntering:d,onExit:m,onExited:h,onExiting:b,style:y,timeout:g=n,...T}=t,x=Pn(r.motion.reducedMotion,l),C=kh.useRef(null),v=Wt(C,ln(a),o),k=uo(C,d),_=uo(C,(M,E)=>{x.shouldReduceMotion||Tc(M);let D=os({style:y,timeout:g,easing:c},{mode:"enter"}),N=x.getTransitionTiming({duration:D.duration,delay:D.delay});M.style.transition=r.transitions.create("transform",{duration:N.duration,easing:D.easing,delay:N.delay}),u&&u(M,E)}),I=uo(C,f),O=uo(C,b),R=uo(C,M=>{let E=os({style:y,timeout:g,easing:c},{mode:"exit"}),D=x.getTransitionTiming({duration:E.duration,delay:E.delay});M.style.transition=r.transitions.create("transform",{duration:D.duration,easing:E.easing,delay:D.delay}),m&&m(M)}),S=uo(C,M=>{M.style.transition="",h&&h(M)});return(0,EU.jsx)(Sc,{appear:i,in:p,nodeRef:C,onEnter:_,onEntered:I,onEntering:k,onExit:R,onExited:S,onExiting:O,addEndListener:s?M=>{s(C.current,M)}:void 0,reduceMotion:x.shouldReduceMotion,timeout:g,...T,children:(M,{ownerState:E,...D})=>{let N=dh(M,p,Dce,Nce,y,a.props.style);return kh.cloneElement(a,{style:N,ref:v,...D})}})}),Gf=Ace;var MU=w(B(),1);function bM(e){return K("MuiFab",e)}var Fce=Q("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),KT=Fce;var OU=w(J(),1),Lce=e=>{let{color:t,variant:o,classes:r,size:n}=e,s={root:["root",o,`size${Te(n)}`,t==="inherit"?"colorInherit":t]},i=G(s,bM,r);return{...r,...i}},Bce=A(Qt,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Ht(e)||e==="classes",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant],t[`size${Te(o.size)}`],o.color==="inherit"&&t.colorInherit,t[Te(o.size)],t[o.color]]}})(de(({theme:e})=>({...e.typography.button,minHeight:36,...Ge(e,["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${KT.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),de(({theme:e})=>({variants:[...Object.entries(e.palette).filter(bt(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),de(({theme:e})=>({[`&.${KT.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),jce=MU.forwardRef(function(t,o){let r=ce({props:t,name:"MuiFab"}),{children:n,className:s,color:i="default",component:a="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:p,size:u="large",variant:f="circular",...d}=r,m={...r,color:i,component:a,disabled:l,disableFocusRipple:c,size:u,variant:f},h=Lce(m),{root:b,...y}=h;return(0,OU.jsx)(Bce,{className:$(h.root,s),component:a,internalNativeButton:!0,disabled:l,focusRipple:!c,focusVisibleClassName:$(h.focusVisible,p),ownerState:m,ref:o,...d,classes:y,children:n})}),Op=jce;function TM(e){return K("MuiSpeedDial",e)}var Vce=Q("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]),Kf=Vce;function xe(e,t){let{className:o,elementType:r,ownerState:n,externalForwardedProps:s,internalForwardedProps:i,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:p={[e]:void 0},slotProps:u={[e]:void 0},...f}=s,d=p[e]||r,m=dr(u[e],n),{props:{component:h,...b},internalRef:y}=UT({className:o,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:m}),g=_t(y,m?.ref,t.ref),T=e==="root"?h||c:h,x=$T(d,{...e==="root"&&!c&&!p[e]&&i,...e!=="root"&&!p[e]&&i,...b,...T&&!a&&{as:T},...T&&a&&{component:T},ref:g},n);return[d,x]}var Rh=w(J(),1),$ce=e=>{let{classes:t,open:o,direction:r}=e,n={root:["root",`direction${Te(r)}`],fab:["fab"],actions:["actions",!o&&"actionsClosed"]};return G(n,TM,t)};function XT(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}var id=32,_C=16,Uce=A("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[`direction${Te(o.direction)}`]]}})(de(({theme:e})=>({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none",variants:[{props:{direction:"up"},style:{flexDirection:"column-reverse",[`& .${Kf.actions}`]:{flexDirection:"column-reverse",marginBottom:-id,paddingBottom:_C+id}}},{props:{direction:"down"},style:{flexDirection:"column",[`& .${Kf.actions}`]:{flexDirection:"column",marginTop:-id,paddingTop:_C+id}}},{props:{direction:"left"},style:{flexDirection:"row-reverse",[`& .${Kf.actions}`]:{flexDirection:"row-reverse",marginRight:-id,paddingRight:_C+id}}},{props:{direction:"right"},style:{flexDirection:"row",[`& .${Kf.actions}`]:{flexDirection:"row",marginLeft:-id,paddingLeft:_C+id}}}]}))),zce=A(Op,{name:"MuiSpeedDial",slot:"Fab"})({pointerEvents:"auto"}),Wce=A("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.actions,!o.open&&t.actionsClosed]}})(de(({theme:e})=>({display:"flex",pointerEvents:"auto",variants:[{props:({ownerState:t})=>!t.open,style:{transition:"top 0s linear 0.2s",...Xs(e),pointerEvents:"none"}}]}))),Hce=Vn.forwardRef(function(t,o){let r=ce({props:t,name:"MuiSpeedDial"}),n=me(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{ariaLabel:i,FabProps:{ref:a,...l}={},children:c,className:p,direction:u="up",hidden:f=!1,icon:d,onBlur:m,onClose:h,onFocus:b,onKeyDown:y,onMouseEnter:g,onMouseLeave:T,onOpen:x,open:C,openIcon:v,slots:k={},slotProps:_={},transitionDuration:I=s,...O}=r,[R,S]=ns({controlled:C,default:!1,name:"SpeedDial",state:"open"}),P={...r,open:R,direction:u},M=$ce(P),E=ur(),D=Vn.useRef(0),N=Vn.useRef(),L=Vn.useRef([]);L.current=[L.current[0]];let j=Vn.useCallback(V=>{L.current[0]=V},[]),X=Wt(a,j),H=(V,pe)=>se=>{L.current[V+1]=se,pe&&pe(se)},Z=V=>{y&&y(V);let pe=V.key.replace("Arrow","").toLowerCase(),{current:se=pe}=N;if(V.key==="Escape"){S(!1),L.current[0].focus(),h&&h(V,"escapeKeyDown");return}if(XT(pe)===XT(se)&&XT(pe)!==void 0){V.preventDefault();let ye=pe===se?1:-1,le=Ti(D.current+ye,0,L.current.length-1);L.current[le].focus(),D.current=le,N.current=se}};Vn.useEffect(()=>{R||(D.current=0,N.current=void 0)},[R]);let ie=V=>{V.type==="mouseleave"&&T&&T(V),V.type==="blur"&&m&&m(V),E.clear(),V.type==="blur"?E.start(0,()=>{S(!1),h&&h(V,"blur")}):(S(!1),h&&h(V,"mouseLeave"))},q=V=>{l.onClick&&l.onClick(V),E.clear(),R?(S(!1),h&&h(V,"toggle")):(S(!0),x&&x(V,"toggle"))},ee=V=>{V.type==="mouseenter"&&g&&g(V),V.type==="focus"&&b&&b(V),E.clear(),R||E.start(0,()=>{S(!0),x&&x(V,{focus:"focus",mouseenter:"mouseEnter"}[V.type])})},z=i.replace(/^[^a-z]+|[^\w:.-]+/gi,""),re=Vn.Children.toArray(c).filter(V=>Vn.isValidElement(V)),Y=re.map((V,pe)=>{let{slotProps:se={}}=V.props,{fab:{ref:ye,...le}={},...ge}=se,ae=XT(u)==="vertical"?"left":"top";return Vn.cloneElement(V,{slotProps:{...ge,fab:{...le,ref:H(pe,ye)},tooltip:typeof ge.tooltip=="function"?oe=>({placement:ae,...ge.tooltip(oe)}):{placement:ae,...ge.tooltip}},delay:30*(R?pe:re.length-pe),open:R,id:`${z}-action-${pe}`})}),W={slots:k,slotProps:_},[ne,te]=xe("root",{elementType:Uce,externalForwardedProps:{...W,...O},ownerState:P,ref:o,className:$(M.root,p),additionalProps:{role:"presentation"},getSlotProps:V=>({...V,onKeyDown:pe=>{V.onKeyDown?.(pe),Z(pe)},onBlur:pe=>{V.onBlur?.(pe),ie(pe)},onFocus:pe=>{V.onFocus?.(pe),ee(pe)},onMouseEnter:pe=>{V.onMouseEnter?.(pe),ee(pe)},onMouseLeave:pe=>{V.onMouseLeave?.(pe),ie(pe)}})}),[U,ue]=xe("transition",{elementType:Gf,externalForwardedProps:W,ownerState:P});return(0,Rh.jsxs)(ne,{...te,children:[(0,Rh.jsx)(U,{in:!f,timeout:I,unmountOnExit:!0,...ue,children:(0,Rh.jsx)(zce,{color:"primary","aria-label":i,"aria-haspopup":"true","aria-expanded":R,"aria-controls":`${z}-actions`,...l,onClick:q,className:$(M.fab,l.className),ref:X,ownerState:P,children:Vn.isValidElement(d)&&Ka(d,["SpeedDialIcon"])?Vn.cloneElement(d,{open:R}):d})}),(0,Rh.jsx)(Wce,{id:`${z}-actions`,role:"menu","aria-orientation":XT(u),className:$(M.actions,!R&&M.actionsClosed),ownerState:P,children:Y})]})}),Xf=Hce;var cg=w(B(),1);var Mr=w(B(),1);var Qf=w(B(),1);var DU=w(J(),1);function QT(e){return`scale(${e}, ${e**2})`}var Yce={entering:{opacity:1,transform:QT(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:QT(.75)},exited:{opacity:0,transform:QT(.75)}},qce={opacity:0,transform:QT(.75),visibility:"hidden"},xM=Qf.forwardRef(function(t,o){let{addEndListener:r,appear:n=!0,children:s,disablePrefersReducedMotion:i=!1,easing:a,in:l,onEnter:c,onEntered:p,onEntering:u,onExit:f,onExited:d,onExiting:m,style:h,timeout:b="auto",...y}=t,g=Qf.useRef(null),T=me(),x=Pn(T.motion.reducedMotion,i),C=Qf.useRef(null),v=Wt(C,ln(s),o),k=uo(C,u),_=uo(C,(M,E)=>{x.shouldReduceMotion||Tc(M);let{duration:D,delay:N,easing:L}=os({style:h,timeout:b,easing:a},{mode:"enter"}),j;b==="auto"&&!x.shouldReduceMotion?(j=T.transitions.getAutoHeightDuration(M.clientHeight),g.current=j):(j=D,g.current=null);let X=x.getTransitionTiming({duration:j,delay:N});M.style.transition=[T.transitions.create("opacity",{duration:X.duration,delay:X.delay}),T.transitions.create("transform",{duration:typeof X.duration=="string"?X.duration:X.duration*.666,delay:X.delay,easing:L})].join(","),c&&c(M,E)}),I=uo(C,p),O=uo(C,m),R=uo(C,M=>{let{duration:E,delay:D,easing:N}=os({style:h,timeout:b,easing:a},{mode:"exit"}),L;b==="auto"&&!x.shouldReduceMotion?(L=T.transitions.getAutoHeightDuration(M.clientHeight),g.current=L):(L=E,g.current=null);let j=x.getTransitionTiming({duration:L,delay:D});M.style.transition=[T.transitions.create("opacity",{duration:j.duration,delay:j.delay}),T.transitions.create("transform",{duration:typeof j.duration=="string"?j.duration:j.duration*.666,delay:j.delay||(typeof j.duration=="string"?j.duration:j.duration*.333),easing:N})].join(","),M.style.opacity=0,M.style.transform=QT(.75),f&&f(M)}),S=uo(C,M=>{M.style.transition="",d&&d(M)});return(0,DU.jsx)(Sc,{appear:n,in:l,nodeRef:C,onEnter:_,onEntered:I,onEntering:k,onExit:R,onExited:S,onExiting:O,addEndListener:r?M=>{r(C.current,M)}:void 0,getAutoTimeout:b==="auto"?()=>g.current:void 0,reduceMotion:x.shouldReduceMotion,timeout:b==="auto"?null:b,...y,children:(M,{ownerState:E,...D})=>{let N=dh(M,l,Yce,qce,h,s.props.style);return Qf.cloneElement(s,{style:N,ref:v,...D})}})});xM&&(xM.muiSupportAuto=!0);var Js=xM;var SW=w(B(),1);var Ls=w(B(),1);var Vr="top",Sn="bottom",cn="right",Kr="left",EC="auto",ad=[Vr,Sn,cn,Kr],Dp="start",Zf="end",NU="clippingParents",MC="viewport",Ih="popper",AU="reference",PM=ad.reduce(function(e,t){return e.concat([t+"-"+Dp,t+"-"+Zf])},[]),OC=[].concat(ad,[EC]).reduce(function(e,t){return e.concat([t,t+"-"+Dp,t+"-"+Zf])},[]),Gce="beforeRead",Kce="read",Xce="afterRead",Qce="beforeMain",Zce="main",Jce="afterMain",epe="beforeWrite",tpe="write",ope="afterWrite",FU=[Gce,Kce,Xce,Qce,Zce,Jce,epe,tpe,ope];function $n(e){return e?(e.nodeName||"").toLowerCase():null}function Pr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xa(e){var t=Pr(e).Element;return e instanceof t||e instanceof Element}function Cn(e){var t=Pr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _h(e){if(typeof ShadowRoot>"u")return!1;var t=Pr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rpe(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},n=t.attributes[o]||{},s=t.elements[o];!Cn(s)||!$n(s)||(Object.assign(s.style,r),Object.keys(n).forEach(function(i){var a=n[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function npe(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var n=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),a=i.reduce(function(l,c){return l[c]="",l},{});!Cn(n)||!$n(n)||(Object.assign(n.style,a),Object.keys(s).forEach(function(l){n.removeAttribute(l)}))})}}var LU={name:"applyStyles",enabled:!0,phase:"write",fn:rpe,effect:npe,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Ll=Math.max,Jf=Math.min,Np=Math.round;function Eh(){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 ZT(){return!/^((?!chrome|android).)*safari/i.test(Eh())}function Qa(e,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var r=e.getBoundingClientRect(),n=1,s=1;t&&Cn(e)&&(n=e.offsetWidth>0&&Np(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Np(r.height)/e.offsetHeight||1);var i=Xa(e)?Pr(e):window,a=i.visualViewport,l=!ZT()&&o,c=(r.left+(l&&a?a.offsetLeft:0))/n,p=(r.top+(l&&a?a.offsetTop:0))/s,u=r.width/n,f=r.height/s;return{width:u,height:f,top:p,right:c+u,bottom:p+f,left:c,x:c,y:p}}function em(e){var t=Qa(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function JT(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&_h(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ei(e){return Pr(e).getComputedStyle(e)}function vM(e){return["table","td","th"].indexOf($n(e))>=0}function is(e){return((Xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ap(e){return $n(e)==="html"?e:e.assignedSlot||e.parentNode||(_h(e)?e.host:null)||is(e)}function BU(e){return!Cn(e)||ei(e).position==="fixed"?null:e.offsetParent}function spe(e){var t=/firefox/i.test(Eh()),o=/Trident/i.test(Eh());if(o&&Cn(e)){var r=ei(e);if(r.position==="fixed")return null}var n=Ap(e);for(_h(n)&&(n=n.host);Cn(n)&&["html","body"].indexOf($n(n))<0;){var s=ei(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function Bl(e){for(var t=Pr(e),o=BU(e);o&&vM(o)&&ei(o).position==="static";)o=BU(o);return o&&($n(o)==="html"||$n(o)==="body"&&ei(o).position==="static")?t:o||spe(e)||t}function tm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function om(e,t,o){return Ll(e,Jf(t,o))}function jU(e,t,o){var r=om(e,t,o);return r>o?o:r}function ex(){return{top:0,right:0,bottom:0,left:0}}function tx(e){return Object.assign({},ex(),e)}function ox(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var ipe=function(t,o){return t=typeof t=="function"?t(Object.assign({},o.rects,{placement:o.placement})):t,tx(typeof t!="number"?t:ox(t,ad))};function ape(e){var t,o=e.state,r=e.name,n=e.options,s=o.elements.arrow,i=o.modifiersData.popperOffsets,a=Un(o.placement),l=tm(a),c=[Kr,cn].indexOf(a)>=0,p=c?"height":"width";if(!(!s||!i)){var u=ipe(n.padding,o),f=em(s),d=l==="y"?Vr:Kr,m=l==="y"?Sn:cn,h=o.rects.reference[p]+o.rects.reference[l]-i[l]-o.rects.popper[p],b=i[l]-o.rects.reference[l],y=Bl(s),g=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,T=h/2-b/2,x=u[d],C=g-f[p]-u[m],v=g/2-f[p]/2+T,k=om(x,v,C),_=l;o.modifiersData[r]=(t={},t[_]=k,t.centerOffset=k-v,t)}}function lpe(e){var t=e.state,o=e.options,r=o.element,n=r===void 0?"[data-popper-arrow]":r;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||JT(t.elements.popper,n)&&(t.elements.arrow=n))}var VU={name:"arrow",enabled:!0,phase:"main",fn:ape,effect:lpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Za(e){return e.split("-")[1]}var cpe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ppe(e,t){var o=e.x,r=e.y,n=t.devicePixelRatio||1;return{x:Np(o*n)/n||0,y:Np(r*n)/n||0}}function $U(e){var t,o=e.popper,r=e.popperRect,n=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,p=e.roundOffsets,u=e.isFixed,f=i.x,d=f===void 0?0:f,m=i.y,h=m===void 0?0:m,b=typeof p=="function"?p({x:d,y:h}):{x:d,y:h};d=b.x,h=b.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),T=Kr,x=Vr,C=window;if(c){var v=Bl(o),k="clientHeight",_="clientWidth";if(v===Pr(o)&&(v=is(o),ei(v).position!=="static"&&a==="absolute"&&(k="scrollHeight",_="scrollWidth")),v=v,n===Vr||(n===Kr||n===cn)&&s===Zf){x=Sn;var I=u&&v===C&&C.visualViewport?C.visualViewport.height:v[k];h-=I-r.height,h*=l?1:-1}if(n===Kr||(n===Vr||n===Sn)&&s===Zf){T=cn;var O=u&&v===C&&C.visualViewport?C.visualViewport.width:v[_];d-=O-r.width,d*=l?1:-1}}var R=Object.assign({position:a},c&&cpe),S=p===!0?ppe({x:d,y:h},Pr(o)):{x:d,y:h};if(d=S.x,h=S.y,l){var P;return Object.assign({},R,(P={},P[x]=g?"0":"",P[T]=y?"0":"",P.transform=(C.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",P))}return Object.assign({},R,(t={},t[x]=g?h+"px":"",t[T]=y?d+"px":"",t.transform="",t))}function upe(e){var t=e.state,o=e.options,r=o.gpuAcceleration,n=r===void 0?!0:r,s=o.adaptive,i=s===void 0?!0:s,a=o.roundOffsets,l=a===void 0?!0:a,c={placement:Un(t.placement),variation:Za(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$U(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$U(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})}var UU={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:upe,data:{}};var DC={passive:!0};function dpe(e){var t=e.state,o=e.instance,r=e.options,n=r.scroll,s=n===void 0?!0:n,i=r.resize,a=i===void 0?!0:i,l=Pr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(p){p.addEventListener("scroll",o.update,DC)}),a&&l.addEventListener("resize",o.update,DC),function(){s&&c.forEach(function(p){p.removeEventListener("scroll",o.update,DC)}),a&&l.removeEventListener("resize",o.update,DC)}}var zU={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dpe,data:{}};var fpe={left:"right",right:"left",bottom:"top",top:"bottom"};function Mh(e){return e.replace(/left|right|bottom|top/g,function(t){return fpe[t]})}var mpe={start:"end",end:"start"};function NC(e){return e.replace(/start|end/g,function(t){return mpe[t]})}function rm(e){var t=Pr(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function nm(e){return Qa(is(e)).left+rm(e).scrollLeft}function SM(e,t){var o=Pr(e),r=is(e),n=o.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(n){s=n.width,i=n.height;var c=ZT();(c||!c&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:s,height:i,x:a+nm(e),y:l}}function CM(e){var t,o=is(e),r=rm(e),n=(t=e.ownerDocument)==null?void 0:t.body,s=Ll(o.scrollWidth,o.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=Ll(o.scrollHeight,o.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-r.scrollLeft+nm(e),l=-r.scrollTop;return ei(n||o).direction==="rtl"&&(a+=Ll(o.clientWidth,n?n.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function sm(e){var t=ei(e),o=t.overflow,r=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+n+r)}function AC(e){return["html","body","#document"].indexOf($n(e))>=0?e.ownerDocument.body:Cn(e)&&sm(e)?e:AC(Ap(e))}function ld(e,t){var o;t===void 0&&(t=[]);var r=AC(e),n=r===((o=e.ownerDocument)==null?void 0:o.body),s=Pr(r),i=n?[s].concat(s.visualViewport||[],sm(r)?r:[]):r,a=t.concat(i);return n?a:a.concat(ld(Ap(i)))}function Oh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ype(e,t){var o=Qa(e,!1,t==="fixed");return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function WU(e,t,o){return t===MC?Oh(SM(e,o)):Xa(t)?ype(t,o):Oh(CM(is(e)))}function hpe(e){var t=ld(Ap(e)),o=["absolute","fixed"].indexOf(ei(e).position)>=0,r=o&&Cn(e)?Bl(e):e;return Xa(r)?t.filter(function(n){return Xa(n)&&JT(n,r)&&$n(n)!=="body"}):[]}function wM(e,t,o,r){var n=t==="clippingParents"?hpe(e):[].concat(t),s=[].concat(n,[o]),i=s[0],a=s.reduce(function(l,c){var p=WU(e,c,r);return l.top=Ll(p.top,l.top),l.right=Jf(p.right,l.right),l.bottom=Jf(p.bottom,l.bottom),l.left=Ll(p.left,l.left),l},WU(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rx(e){var t=e.reference,o=e.element,r=e.placement,n=r?Un(r):null,s=r?Za(r):null,i=t.x+t.width/2-o.width/2,a=t.y+t.height/2-o.height/2,l;switch(n){case Vr:l={x:i,y:t.y-o.height};break;case Sn:l={x:i,y:t.y+t.height};break;case cn:l={x:t.x+t.width,y:a};break;case Kr:l={x:t.x-o.width,y:a};break;default:l={x:t.x,y:t.y}}var c=n?tm(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(s){case Dp:l[c]=l[c]-(t[p]/2-o[p]/2);break;case Zf:l[c]=l[c]+(t[p]/2-o[p]/2);break;default:}}return l}function jl(e,t){t===void 0&&(t={});var o=t,r=o.placement,n=r===void 0?e.placement:r,s=o.strategy,i=s===void 0?e.strategy:s,a=o.boundary,l=a===void 0?NU:a,c=o.rootBoundary,p=c===void 0?MC:c,u=o.elementContext,f=u===void 0?Ih:u,d=o.altBoundary,m=d===void 0?!1:d,h=o.padding,b=h===void 0?0:h,y=tx(typeof b!="number"?b:ox(b,ad)),g=f===Ih?AU:Ih,T=e.rects.popper,x=e.elements[m?g:f],C=wM(Xa(x)?x:x.contextElement||is(e.elements.popper),l,p,i),v=Qa(e.elements.reference),k=rx({reference:v,element:T,strategy:"absolute",placement:n}),_=Oh(Object.assign({},T,k)),I=f===Ih?_:v,O={top:C.top-I.top+y.top,bottom:I.bottom-C.bottom+y.bottom,left:C.left-I.left+y.left,right:I.right-C.right+y.right},R=e.modifiersData.offset;if(f===Ih&&R){var S=R[n];Object.keys(O).forEach(function(P){var M=[cn,Sn].indexOf(P)>=0?1:-1,E=[Vr,Sn].indexOf(P)>=0?"y":"x";O[P]+=S[E]*M})}return O}function kM(e,t){t===void 0&&(t={});var o=t,r=o.placement,n=o.boundary,s=o.rootBoundary,i=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,c=l===void 0?OC:l,p=Za(r),u=p?a?PM:PM.filter(function(m){return Za(m)===p}):ad,f=u.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=u);var d=f.reduce(function(m,h){return m[h]=jl(e,{placement:h,boundary:n,rootBoundary:s,padding:i})[Un(h)],m},{});return Object.keys(d).sort(function(m,h){return d[m]-d[h]})}function gpe(e){if(Un(e)===EC)return[];var t=Mh(e);return[NC(e),t,NC(t)]}function bpe(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var n=o.mainAxis,s=n===void 0?!0:n,i=o.altAxis,a=i===void 0?!0:i,l=o.fallbackPlacements,c=o.padding,p=o.boundary,u=o.rootBoundary,f=o.altBoundary,d=o.flipVariations,m=d===void 0?!0:d,h=o.allowedAutoPlacements,b=t.options.placement,y=Un(b),g=y===b,T=l||(g||!m?[Mh(b)]:gpe(b)),x=[b].concat(T).reduce(function(q,ee){return q.concat(Un(ee)===EC?kM(t,{placement:ee,boundary:p,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:h}):ee)},[]),C=t.rects.reference,v=t.rects.popper,k=new Map,_=!0,I=x[0],O=0;O<x.length;O++){var R=x[O],S=Un(R),P=Za(R)===Dp,M=[Vr,Sn].indexOf(S)>=0,E=M?"width":"height",D=jl(t,{placement:R,boundary:p,rootBoundary:u,altBoundary:f,padding:c}),N=M?P?cn:Kr:P?Sn:Vr;C[E]>v[E]&&(N=Mh(N));var L=Mh(N),j=[];if(s&&j.push(D[S]<=0),a&&j.push(D[N]<=0,D[L]<=0),j.every(function(q){return q})){I=R,_=!1;break}k.set(R,j)}if(_)for(var X=m?3:1,H=function(ee){var z=x.find(function(re){var Y=k.get(re);if(Y)return Y.slice(0,ee).every(function(W){return W})});if(z)return I=z,"break"},Z=X;Z>0;Z--){var ie=H(Z);if(ie==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}var HU={name:"flip",enabled:!0,phase:"main",fn:bpe,requiresIfExists:["offset"],data:{_skip:!1}};function YU(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function qU(e){return[Vr,cn,Sn,Kr].some(function(t){return e[t]>=0})}function Tpe(e){var t=e.state,o=e.name,r=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,i=jl(t,{elementContext:"reference"}),a=jl(t,{altBoundary:!0}),l=YU(i,r),c=YU(a,n,s),p=qU(l),u=qU(c);t.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}var GU={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tpe};function xpe(e,t,o){var r=Un(e),n=[Kr,Vr].indexOf(r)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,i=s[0],a=s[1];return i=i||0,a=(a||0)*n,[Kr,cn].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function Ppe(e){var t=e.state,o=e.options,r=e.name,n=o.offset,s=n===void 0?[0,0]:n,i=OC.reduce(function(p,u){return p[u]=xpe(u,t.rects,s),p},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}var KU={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ppe};function vpe(e){var t=e.state,o=e.name;t.modifiersData[o]=rx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var XU={name:"popperOffsets",enabled:!0,phase:"read",fn:vpe,data:{}};function RM(e){return e==="x"?"y":"x"}function Spe(e){var t=e.state,o=e.options,r=e.name,n=o.mainAxis,s=n===void 0?!0:n,i=o.altAxis,a=i===void 0?!1:i,l=o.boundary,c=o.rootBoundary,p=o.altBoundary,u=o.padding,f=o.tether,d=f===void 0?!0:f,m=o.tetherOffset,h=m===void 0?0:m,b=jl(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:p}),y=Un(t.placement),g=Za(t.placement),T=!g,x=tm(y),C=RM(x),v=t.modifiersData.popperOffsets,k=t.rects.reference,_=t.rects.popper,I=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(v){if(s){var P,M=x==="y"?Vr:Kr,E=x==="y"?Sn:cn,D=x==="y"?"height":"width",N=v[x],L=N+b[M],j=N-b[E],X=d?-_[D]/2:0,H=g===Dp?k[D]:_[D],Z=g===Dp?-_[D]:-k[D],ie=t.elements.arrow,q=d&&ie?em(ie):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ex(),z=ee[M],re=ee[E],Y=om(0,k[D],q[D]),W=T?k[D]/2-X-Y-z-O.mainAxis:H-Y-z-O.mainAxis,ne=T?-k[D]/2+X+Y+re+O.mainAxis:Z+Y+re+O.mainAxis,te=t.elements.arrow&&Bl(t.elements.arrow),U=te?x==="y"?te.clientTop||0:te.clientLeft||0:0,ue=(P=R?.[x])!=null?P:0,V=N+W-ue-U,pe=N+ne-ue,se=om(d?Jf(L,V):L,N,d?Ll(j,pe):j);v[x]=se,S[x]=se-N}if(a){var ye,le=x==="x"?Vr:Kr,ge=x==="x"?Sn:cn,ae=v[C],oe=C==="y"?"height":"width",he=ae+b[le],Ie=ae-b[ge],Se=[Vr,Kr].indexOf(y)!==-1,ot=(ye=R?.[C])!=null?ye:0,Fe=Se?he:ae-k[oe]-_[oe]-ot+O.altAxis,Le=Se?ae+k[oe]+_[oe]-ot-O.altAxis:Ie,qe=d&&Se?jU(Fe,ae,Le):om(d?Fe:he,ae,d?Le:Ie);v[C]=qe,S[C]=qe-ae}t.modifiersData[r]=S}}var QU={name:"preventOverflow",enabled:!0,phase:"main",fn:Spe,requiresIfExists:["offset"]};function IM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _M(e){return e===Pr(e)||!Cn(e)?rm(e):IM(e)}function Cpe(e){var t=e.getBoundingClientRect(),o=Np(t.width)/e.offsetWidth||1,r=Np(t.height)/e.offsetHeight||1;return o!==1||r!==1}function EM(e,t,o){o===void 0&&(o=!1);var r=Cn(t),n=Cn(t)&&Cpe(t),s=is(t),i=Qa(e,n,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!o)&&(($n(t)!=="body"||sm(s))&&(a=_M(t)),Cn(t)?(l=Qa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=nm(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function wpe(e){var t=new Map,o=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function n(s){o.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!o.has(a)){var l=t.get(a);l&&n(l)}}),r.push(s)}return e.forEach(function(s){o.has(s.name)||n(s)}),r}function MM(e){var t=wpe(e);return FU.reduce(function(o,r){return o.concat(t.filter(function(n){return n.phase===r}))},[])}function OM(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function DM(e){var t=e.reduce(function(o,r){var n=o[r.name];return o[r.name]=n?Object.assign({},n,r,{options:Object.assign({},n.options,r.options),data:Object.assign({},n.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var ZU={placement:"bottom",modifiers:[],strategy:"absolute"};function JU(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ez(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,r=o===void 0?[]:o,n=t.defaultOptions,s=n===void 0?ZU:n;return function(a,l,c){c===void 0&&(c=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ZU,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},u=[],f=!1,d={state:p,setOptions:function(y){var g=typeof y=="function"?y(p.options):y;h(),p.options=Object.assign({},s,p.options,g),p.scrollParents={reference:Xa(a)?ld(a):a.contextElement?ld(a.contextElement):[],popper:ld(l)};var T=MM(DM([].concat(r,p.options.modifiers)));return p.orderedModifiers=T.filter(function(x){return x.enabled}),m(),d.update()},forceUpdate:function(){if(!f){var y=p.elements,g=y.reference,T=y.popper;if(JU(g,T)){p.rects={reference:EM(g,Bl(T),p.options.strategy==="fixed"),popper:em(T)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(O){return p.modifiersData[O.name]=Object.assign({},O.data)});for(var x=0;x<p.orderedModifiers.length;x++){if(p.reset===!0){p.reset=!1,x=-1;continue}var C=p.orderedModifiers[x],v=C.fn,k=C.options,_=k===void 0?{}:k,I=C.name;typeof v=="function"&&(p=v({state:p,options:_,name:I,instance:d})||p)}}}},update:OM(function(){return new Promise(function(b){d.forceUpdate(),b(p)})}),destroy:function(){h(),f=!0}};if(!JU(a,l))return d;d.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function m(){p.orderedModifiers.forEach(function(b){var y=b.name,g=b.options,T=g===void 0?{}:g,x=b.effect;if(typeof x=="function"){var C=x({state:p,name:y,instance:d,options:T}),v=function(){};u.push(C||v)}})}function h(){u.forEach(function(b){return b()}),u=[]}return d}}var kpe=[zU,XU,UU,LU,KU,HU,QU,VU,GU],NM=ez({defaultModifiers:kpe});var Yp=w(B(),1),TW=w(Pm(),1);function _de(e){return typeof e=="function"?e():e}var Ede=Yp.forwardRef(function(t,o){let{children:r,container:n,disablePortal:s=!1}=t,[i,a]=Yp.useState(null),l=_t(Yp.isValidElement(r)?ln(r):null,o);return Ct(()=>{s||a(_de(n)||document.body)},[n,s]),Ct(()=>{if(i&&!s)return Nl(o,i),()=>{Nl(o,null)}},[o,i,s]),s?Yp.isValidElement(r)?Yp.cloneElement(r,{ref:l}):r:i&&TW.createPortal(r,i)}),vm=Ede;function GD(e){return K("MuiPopper",e)}var Mde=Q("MuiPopper",["root"]),xW=Mde;var t1=w(J(),1);function Ode(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 PW(e){return typeof e=="function"?e():e}function Dde(e){return e.nodeType!==void 0}var Nde=e=>{let{classes:t}=e;return G({root:["root"]},GD,t)},Ade={},Fde=Ls.forwardRef(function(t,o){let{anchorEl:r,children:n,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:p,popperRef:u,slotProps:f={},slots:d={},TransitionProps:m,ownerState:h,...b}=t,y=Ls.useRef(null),g=_t(y,o),T=Ls.useRef(null),x=_t(T,u),C=Ls.useRef(x);Ct(()=>{C.current=x},[x]),Ls.useImperativeHandle(u,()=>T.current,[]);let v=Ode(c,s),[k,_]=Ls.useState(v),I=Ls.useMemo(()=>PW(r),[r]);Ls.useEffect(()=>{T.current&&T.current.forceUpdate()}),Ct(()=>{if(!I||!l)return;let M=L=>{_(L.placement)},E=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{M(L)}}];a!=null&&(E=E.concat(a)),p&&p.modifiers!=null&&(E=E.concat(p.modifiers));let D=NM(I,y.current,{placement:v,...p,modifiers:E});C.current(D);let N=y.current;return()=>{if(N){let{style:L}=N,j=L.position,X=L.top,H=L.left,Z=L.transform;D.destroy(),L.position=j,L.top=X,L.left=H,L.transform=Z}else D.destroy();C.current(null)}},[I,i,a,l,p,v]);let O={placement:k};m!==null&&(O.TransitionProps=m);let R=Nde(t),S=d.root??"div",P=Je({elementType:S,externalSlotProps:f.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:R.root});return(0,t1.jsx)(S,{...P,children:typeof n=="function"?n(O):n})}),Lde=Ls.forwardRef(function(t,o){let{anchorEl:r,children:n,container:s,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:p,placement:u="bottom",popperOptions:f=Ade,popperRef:d,style:m,transition:h=!1,slotProps:b={},slots:y={},...g}=t,[T,x]=Ls.useState(!0),C=()=>{x(!1)},v=()=>{x(!0)};if(!l&&!p&&(!h||T))return null;let k;if(s)k=s;else if(r){let O=PW(r);k=O&&Dde(O)?Kt(O).body:Kt(null).body}let _=!p&&l&&(!h||T)?"none":void 0,I=h?{in:p,onEnter:C,onExited:v}:void 0;return(0,t1.jsx)(vm,{disablePortal:a,container:k,children:(0,t1.jsx)(Fde,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:o,open:h?!T:p,placement:u,popperOptions:f,popperRef:d,slotProps:b,slots:y,...g,style:{position:"fixed",top:0,left:0,display:_,...m},TransitionProps:I,children:n})})}),vW=Lde;var CW=w(J(),1),Bde=A(vW,{name:"MuiPopper",slot:"Root"})({}),jde=SW.forwardRef(function(t,o){let r=zt(),n=ce({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,container:a,disablePortal:l,keepMounted:c,modifiers:p,open:u,placement:f,popperOptions:d,popperRef:m,transition:h,slots:b,slotProps:y,...g}=n,T={anchorEl:s,container:a,disablePortal:l,keepMounted:c,modifiers:p,open:u,placement:f,popperOptions:d,popperRef:m,transition:h,...g};return(0,CW.jsx)(Bde,{as:i,direction:r?"rtl":"ltr",slots:b,slotProps:y,...T,ref:o})}),ps=jde;function KD(e){return K("MuiTooltip",e)}var Vde=Q("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ni=Vde;var Ed=w(J(),1);function $de(e){return Math.round(e*1e5)/1e5}var Ude=e=>{let{classes:t,disableInteractive:o,arrow:r,touch:n,placement:s}=e,i={popper:["popper",!o&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",n&&"touch",`tooltipPlacement${Te(s.split("-")[0])}`],arrow:["arrow"]};return G(i,KD,t)},zde=A(ps,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.popper,!o.disableInteractive&&t.popperInteractive,o.arrow&&t.popperArrow,!o.open&&t.popperClose]}})(de(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t,open:o})=>o&&!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${ni.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ni.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ni.arrow}`]:{height:"1em",width:"0.71em",insetInlineStart:0,marginInlineStart:"-0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${ni.arrow}`]:{height:"1em",width:"0.71em",insetInlineEnd:0,marginInlineEnd:"-0.71em","&::before":{transformOrigin:"0 0"}}}}]}))),Wde=A("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.tooltip,o.touch&&t.touch,o.arrow&&t.tooltipArrow,t[`tooltipPlacement${Te(o.placement.split("-")[0])}`]]}})(de(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(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,[`.${ni.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center",marginInlineEnd:"14px"},[`.${ni.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center",marginInlineStart:"14px"},[`.${ni.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${ni.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",marginBlock:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${$de(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>t.touch,style:{[`.${ni.popper}[data-popper-placement*="left"] &`]:{marginInlineEnd:"24px"},[`.${ni.popper}[data-popper-placement*="right"] &`]:{marginInlineStart:"24px"},[`.${ni.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"},[`.${ni.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Hde=A("span",{name:"MuiTooltip",slot:"Arrow"})(de(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),o1=!1,wW=new yh,Kx={x:0,y:0};function r1(e,t){return(o,...r)=>{t&&t(o,...r),e(o,...r)}}var Yde=Mr.forwardRef(function(t,o){let r=ce({props:t,name:"MuiTooltip"}),{arrow:n=!1,children:s,classes:i,describeChild:a=!1,disableFocusListener:l=!1,disableHoverListener:c=!1,disableInteractive:p=!1,disableTouchListener:u=!1,enterDelay:f=100,enterNextDelay:d=0,enterTouchDelay:m=700,followCursor:h=!1,id:b,leaveDelay:y=0,leaveTouchDelay:g=1500,onClose:T,onOpen:x,open:C,placement:v="bottom",slotProps:k={},slots:_={},title:I,...O}=r,R=Mr.isValidElement(s)?s:(0,Ed.jsx)("span",{children:s}),S=me(),[P,M]=Mr.useState(),[E,D]=Mr.useState(null),N=Mr.useRef(!1),L=Mr.useRef(!1),j=p||h,X=ur(),H=ur(),Z=ur(),ie=ur(),[q,ee]=ns({controlled:C,default:!1,name:"Tooltip",state:"open"}),z=q,{current:re}=Mr.useRef(C!==void 0),Y=Bn(b),W=Mr.useRef(),ne=Oo(()=>{W.current!==void 0&&(document.body.style.WebkitUserSelect=W.current,W.current=void 0),ie.clear()});Mr.useEffect(()=>ne,[ne]);let te=Ke=>{wW.clear(),o1=!0,ee(!0),x&&!z&&x(Ke)},U=Oo(Ke=>{L.current=!1,wW.start(800+y,()=>{o1=!1}),ee(!1),T&&z&&T(Ke),X.start(S.transitions.duration.shortest,()=>{N.current=!1})}),ue=Ke=>{N.current&&Ke.type!=="touchstart"||(P&&P.removeAttribute("title"),H.clear(),Z.clear(),f||o1&&d?H.start(o1?d:f,()=>{te(Ke)}):te(Ke))},V=Ke=>{if(P?.disabled&&!re){if(z&&!L.current)return;L.current=!0}else L.current=!1;ue(Ke)},pe=Ke=>{P?.disabled&&!re&&!L.current||ue(Ke)},se=Ke=>{H.clear(),Z.start(y,()=>{U(Ke)})},[,ye]=Mr.useState(!1),le=Ke=>{let lt=Ke?.target??P;if(!lt||lt.disabled||!rs(lt)){ye(!1);let Go=Ke??new Event("blur");!Ke&<&&(Object.defineProperty(Go,"target",{value:lt}),Object.defineProperty(Go,"currentTarget",{value:lt})),se(Go)}},ge=Ke=>{if(P||M(Ke.currentTarget),L.current=!1,rs(Ke.target)){let lt=Go=>{Go.target.disabled&&le(Go),Go.target.removeEventListener("blur",lt)};Ke.target.addEventListener("blur",lt),ye(!0),ue(Ke)}},ae=Ke=>{N.current=!0;let lt=R.props;lt.onTouchStart&<.onTouchStart(Ke)},oe=Ke=>{ae(Ke),Z.clear(),X.clear(),ne(),W.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ie.start(m,()=>{document.body.style.WebkitUserSelect=W.current,V(Ke)})},he=Ke=>{R.props.onTouchEnd&&R.props.onTouchEnd(Ke),ne(),Z.start(g,()=>{U(Ke)})};Mr.useEffect(()=>{if(!z)return;function Ke(lt){lt.key==="Escape"&&U(lt)}return document.addEventListener("keydown",Ke),()=>{document.removeEventListener("keydown",Ke)}},[U,z]);let Ie=Wt(ln(R),M,o);!I&&I!==0&&(z=!1);let Se=Mr.useRef(),ot=Ke=>{let lt=R.props;lt.onMouseMove&<.onMouseMove(Ke),Kx={x:Ke.clientX,y:Ke.clientY},Se.current&&Se.current.update()},Fe={},Le=typeof I=="string";a?(Fe.title=!z&&Le&&!c?I:null,Fe["aria-describedby"]=z?Y:null):(Fe["aria-label"]=Le?I:null,Fe["aria-labelledby"]=z&&!Le?Y:null);let qe={...Fe,...O,...R.props,className:$(O.className,R.props.className),onTouchStart:ae,ref:Ie,...h?{onMouseMove:ot}:{}},Mt={};u||(qe.onTouchStart=oe,qe.onTouchEnd=he),c||(qe.onMouseOver=r1(V,qe.onMouseOver),qe.onMouseLeave=r1(se,qe.onMouseLeave),j||(Mt.onMouseOver=pe,Mt.onMouseLeave=se)),l||(qe.onFocus=r1(ge,qe.onFocus),qe.onBlur=r1(le,qe.onBlur),j||(Mt.onFocus=ge,Mt.onBlur=le));let Pe={...r,arrow:n,disableInteractive:j,placement:v,touch:N.current},Ee=typeof k.popper=="function"?k.popper(Pe):k.popper,je=Mr.useMemo(()=>{let Ke=[{name:"arrow",enabled:!!E,options:{element:E,padding:4}}];return Ee?.popperOptions?.modifiers&&(Ke=Ke.concat(Ee.popperOptions.modifiers)),{...Ee?.popperOptions,modifiers:Ke}},[E,Ee?.popperOptions]),rt=Ude(Pe),st={slots:_,slotProps:{arrow:k.arrow,popper:Ee,tooltip:k.tooltip,transition:k.transition}},[He,mt]=xe("popper",{elementType:zde,externalForwardedProps:st,ownerState:Pe,className:rt.popper}),[at,no]=xe("transition",{elementType:Js,externalForwardedProps:st,ownerState:Pe}),[tt,Re]=xe("tooltip",{elementType:Wde,className:rt.tooltip,externalForwardedProps:st,ownerState:Pe}),[Ve,ut]=xe("arrow",{elementType:Hde,className:rt.arrow,externalForwardedProps:st,ownerState:Pe,ref:D});return(0,Ed.jsxs)(Mr.Fragment,{children:[Mr.cloneElement(R,qe),(0,Ed.jsx)(He,{as:ps,placement:v,anchorEl:h?{getBoundingClientRect:()=>({top:Kx.y,left:Kx.x,right:Kx.x,bottom:Kx.y,width:0,height:0})}:P,popperRef:Se,open:P?z:!1,id:Y,transition:!0,...Mt,...mt,popperOptions:je,children:({TransitionProps:Ke})=>(0,Ed.jsx)(at,{timeout:S.transitions.duration.shorter,...Ke,...no,children:(0,Ed.jsxs)(tt,{...Re,children:[I,n?(0,Ed.jsx)(Ve,{...ut}):null]})})})]})}),ht=Yde;function XD(e){return K("MuiSpeedDialAction",e)}var qde=Q("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),Sm=qde;var lg=w(J(),1),Gde=e=>{let{open:t,tooltipPlacement:o,classes:r}=e,n={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${Te(o)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return G(n,XD,r)},Kde=A(Op,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.fab,!o.open&&t.fabClosed]}})(de(({theme:e})=>({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:za(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,...Xs(e),opacity:1,variants:[{props:({ownerState:t})=>!t.open,style:{opacity:0,transform:"scale(0)"}}]}))),Xde=A("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.staticTooltip,!o.open&&t.staticTooltipClosed,t[`tooltipPlacement${Te(o.tooltipPlacement)}`]]}})(de(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",[`& .${Sm.staticTooltipLabel}`]:{...Ge(e,["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},variants:[{props:({ownerState:t})=>!t.open,style:{[`& .${Sm.staticTooltipLabel}`]:{opacity:0,transform:"scale(0.5)"}}},{props:{tooltipPlacement:"left"},style:{[`& .${Sm.staticTooltipLabel}`]:{transformOrigin:"100% 50%",right:"100%",marginRight:8}}},{props:{tooltipPlacement:"right"},style:{[`& .${Sm.staticTooltipLabel}`]:{transformOrigin:"0% 50%",left:"100%",marginLeft:8}}}]}))),Qde=A("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel"})(de(({theme:e})=>({position:"absolute",...e.typography.body1,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}))),Zde=cg.forwardRef(function(t,o){let r=ce({props:t,name:"MuiSpeedDialAction"}),{className:n,delay:s=0,icon:i,id:a,open:l,slots:c={},slotProps:p={},...u}=r,f=me(),d=Pn(f.motion.reducedMotion,!1),m=typeof p.tooltip=="function"?p.tooltip(r):p.tooltip??{},h=m.placement??"left",b={...r,tooltipPlacement:h},y=Gde(b),g={slots:c,slotProps:p},[T,x]=cg.useState(m.open??!1),C=()=>{x(!1)},v=()=>{x(!0)},_={transitionDelay:d.getTransitionTiming({duration:0,delay:`${s}ms`}).delay},[I,O]=xe("fab",{elementType:Kde,externalForwardedProps:g,ownerState:b,shouldForwardComponentProp:!0,className:$(y.fab,n),additionalProps:{style:_,tabIndex:-1,role:"menuitem",size:"small"}}),[R,S]=xe("tooltip",{elementType:ht,externalForwardedProps:g,shouldForwardComponentProp:!0,ref:o,additionalProps:{id:a},ownerState:b,getSlotProps:L=>({...L,onClose:j=>{L.onClose?.(j),C()},onOpen:j=>{L.onOpen?.(j),v()}})}),[P,M]=xe("staticTooltip",{elementType:Xde,externalForwardedProps:g,ownerState:b,ref:o,className:y.staticTooltip,additionalProps:{id:a}}),[E,D]=xe("staticTooltipLabel",{elementType:Qde,externalForwardedProps:g,ownerState:b,className:y.staticTooltipLabel,additionalProps:{style:_,id:`${a}-label`}}),N=(0,lg.jsx)(I,{...O,children:i});return S.open?(0,lg.jsxs)(P,{...M,...u,children:[(0,lg.jsx)(E,{...D,children:S.title}),cg.cloneElement(N,{"aria-labelledby":`${a}-label`})]}):(!l&&T&&x(!1),(0,lg.jsx)(R,{...S,title:S.title,open:l&&T,placement:S.placement,classes:S.classes,...u,children:N}))}),Md=Zde;var kW=w(J(),1),RW=be((0,kW.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");var IW=w(J(),1),_W=be((0,IW.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var pg=w(B(),1);var EW=w(J(),1),MW=be((0,EW.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function QD(e){return K("MuiSpeedDialIcon",e)}var Jde=Q("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),ua=Jde;var n1=w(J(),1),efe=e=>{let{classes:t,open:o,openIcon:r}=e;return G({root:["root"],icon:["icon",o&&"iconOpen",r&&o&&"iconWithOpenIconOpen"],openIcon:["openIcon",o&&"openIconOpen"]},QD,t)},tfe=A("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[{[`& .${ua.icon}`]:t.icon},{[`& .${ua.icon}`]:o.open&&t.iconOpen},{[`& .${ua.icon}`]:o.open&&o.openIcon&&t.iconWithOpenIconOpen},{[`& .${ua.openIcon}`]:t.openIcon},{[`& .${ua.openIcon}`]:o.open&&t.openIconOpen},t.root]}})(de(({theme:e})=>({height:24,[`& .${ua.icon}`]:{...Ge(e,["transform","opacity"],{duration:e.transitions.duration.short})},[`& .${ua.openIcon}`]:{position:"absolute",...Ge(e,["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},variants:[{props:({ownerState:t})=>t.open,style:{[`& .${ua.icon}`]:{transform:"rotate(45deg)"},[`& .${ua.openIcon}`]:{transform:"rotate(0deg)",opacity:1}}},{props:({ownerState:t})=>t.open&&t.openIcon,style:{[`& .${ua.icon}`]:{opacity:0}}}]}))),OW=pg.forwardRef(function(t,o){let r=ce({props:t,name:"MuiSpeedDialIcon"}),{className:n,icon:s,open:i,openIcon:a,...l}=r,c=r,p=efe(c);function u(f,d){return pg.isValidElement(f)?pg.cloneElement(f,{className:d}):f}return(0,n1.jsxs)(tfe,{className:$(p.root,n),ref:o,ownerState:c,...l,children:[a?u(a,p.openIcon):null,s?u(s,p.icon):(0,n1.jsx)(MW,{className:p.icon})]})});OW.muiName="SpeedDialIcon";var Cm=OW;var s1=w(B(),1);var Xx=w(J(),1),DW,ofe=A("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ht})({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%"}),rfe=A("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ht})(de(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",...Ge(e,"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,...Ge(e,"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%",...Ge(e,"max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function ZD(e){let{children:t,classes:o,className:r,label:n,notched:s,...i}=e,a=n!=null&&n!=="",l={...e,notched:s,withLabel:a};return(0,Xx.jsx)(ofe,{"aria-hidden":!0,className:r,ownerState:l,...i,children:(0,Xx.jsx)(rfe,{ownerState:l,children:a?(0,Xx.jsx)("span",{children:n}):DW||(DW=(0,Xx.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"}))})})}function Qx(e){return K("MuiSelect",e)}var nfe=Q("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","nativeInput","error"]),il=nfe;var Zx=w(J(),1),sfe=e=>{let{classes:t}=e,r=G({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},LE,t);return{...t,...r}},ife=A(jf,{shouldForwardProp:e=>Ht(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Lf})(de(({theme:e})=>{let 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 .${jr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${jr.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${jr.focused} .${jr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(bt()).map(([o])=>({props:{color:o},style:{[`&.${jr.focused} .${jr.notchedOutline}`]:{borderColor:(e.vars||e).palette[o].main}}})),{props:{},style:{[`&.${jr.error} .${jr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${jr.disabled} .${jr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:14}},{props:({ownerState:o})=>o.endAdornment,style:{"--_trailingPad":"14px",paddingRight:"var(--_trailingPad)",[`&.${il.root}`]:{"--_trailingPad":"0px"}}},{props:({ownerState:o})=>o.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:o,size:r})=>o.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),afe=A(ZD,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(de(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),lfe=A(Vf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Bf})(de(({theme:e})=>({padding:"16.5px 14px","&:-webkit-autofill":{...!e.vars&&{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&&e.applyStyles("dark",{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}}]}))),NW=s1.forwardRef(function(t,o){let r=ce({props:t,name:"MuiOutlinedInput"}),{fullWidth:n=!1,inputComponent:s="input",label:i,multiline:a=!1,notched:l,slots:c={},slotProps:p={},type:u="text",...f}=r,d=sfe(r),[m,h]=Ln({props:r,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:h,fullWidth:n,hiddenLabel:m.hiddenLabel,multiline:a,size:m.size,type:u},y=c.root??ife,g=c.input??lfe,[T,x]=xe("notchedOutline",{elementType:afe,className:d.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:c,slotProps:p},additionalProps:{label:i!=null&&i!==""&&m.required?(0,Zx.jsxs)(s1.Fragment,{children:[i,"\u2009","*"]}):i}});return(0,Zx.jsx)(Ol,{slots:{root:y,input:g},slotProps:p,renderSuffix:C=>(0,Zx.jsx)(T,{...x,notched:typeof l<"u"?l:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:n,inputComponent:s,multiline:a,ref:o,type:u,...f,classes:{...d,notchedOutline:null}})});NW.muiName="Input";var da=NW;var fa=w(B(),1);var AW=w(J(),1),FW=be((0,AW.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function JD(e){return K("MuiChip",e)}var cfe=Q("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","deletable","outlined","filled","avatar","icon","label","deleteIcon","focusVisible"]),To=cfe;var Jx=w(J(),1),pfe=e=>{let{classes:t,disabled:o,size:r,color:n,onDelete:s,clickable:i,variant:a}=e,l={root:["root",a,o&&"disabled",`size${Te(r)}`,`color${Te(n)}`,i&&"clickable",s&&"deletable"],label:["label"],avatar:["avatar"],icon:["icon"],deleteIcon:["deleteIcon"]};return G(l,JD,t)},ufe=A("div",{name:"MuiChip",slot:"Root",shouldForwardProp:e=>Ht(e)&&e!=="focusableWhenDisabled"&&e!=="skipFocusWhenDisabled",overridesResolver:(e,t)=>{let{ownerState:o}=e,{color:r,clickable:n,onDelete:s,size:i,variant:a}=o;return[{[`& .${To.avatar}`]:t.avatar},{[`& .${To.icon}`]:t.icon},{[`& .${To.deleteIcon}`]:t.deleteIcon},t.root,t[`size${Te(i)}`],t[`color${Te(r)}`],n&&t.clickable,s&&t.deletable,t[a]]}})(de(({theme:e})=>{let 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,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",...Ge(e,["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${To.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${To.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${To.icon}`]:{marginLeft:5,marginRight:-6},[`& .${To.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:"primary"},style:{[`& .${To.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:"secondary"},style:{[`& .${To.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:"small"},style:{height:24,[`& .${To.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${To.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${To.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(bt(["contrastText"])).map(([o])=>({props:{color:o},style:{backgroundColor:(e.vars||e).palette[o].main,color:(e.vars||e).palette[o].contrastText,[`& .${To.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[o].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o].contrastText}}}})),{props:o=>o.iconColor===o.color,style:{[`& .${To.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:o=>o.iconColor===o.color&&o.color!=="default",style:{[`& .${To.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:!e.focusVisible&&{[`&.${To.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(bt(["dark"])).map(([o])=>({props:{color:o,onDelete:!0},style:!e.focusVisible&&{[`&.${To.focusVisible}`]:{background:(e.vars||e).palette[o].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},...!e.focusVisible&&{[`&.${To.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(bt(["dark"])).map(([o])=>({props:{color:o,clickable:!0},style:{"&:hover":{backgroundColor:(e.vars||e).palette[o].dark},...!e.focusVisible&&{[`&.${To.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o].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]}`,[`&.${To.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},...!e.focusVisible&&{[`&.${To.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`& .${To.avatar}`]:{marginLeft:4},[`& .${To.icon}`]:{marginLeft:4},[`& .${To.deleteIcon}`]:{marginRight:5}}},{props:{size:"small",variant:"outlined"},style:{[`& .${To.avatar}`]:{marginLeft:2},[`& .${To.icon}`]:{marginLeft:2},[`& .${To.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(bt()).map(([o])=>({props:{variant:"outlined",color:o},style:{color:(e.vars||e).palette[o].main,border:`1px solid ${e.alpha((e.vars||e).palette[o].main,.7)}`,[`&.${To.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)},...!e.focusVisible&&{[`&.${To.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.focusOpacity)}},[`& .${To.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[o].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o].main}}}}))]}})),dfe=A("span",{name:"MuiChip",slot:"Label"})({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 LW(e){return e.key==="Backspace"||e.key==="Delete"}var ffe=fa.forwardRef(function(t,o){let r=ce({props:t,name:"MuiChip"}),{avatar:n,className:s,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:p=!1,icon:u,label:f,onClick:d,onDelete:m,onKeyDown:h,onKeyUp:b,size:y="medium",variant:g="filled",tabIndex:T,skipFocusWhenDisabled:x=!1,slots:C={},slotProps:v={},...k}=r,{nativeButton:_,...I}=k,O=fa.useRef(null),R=Wt(O,o),S=Y=>{Y.stopPropagation(),m(Y)},P=Y=>{Y.currentTarget===Y.target&&LW(Y)&&Y.preventDefault(),h&&h(Y)},M=Y=>{Y.currentTarget===Y.target&&m&&LW(Y)&&m(Y),b&&b(Y)},E=i!==!1&&d?!0:i,D=E||m?Qt:l||"div",N={...r,component:D,disabled:p,size:y,color:a,iconColor:fa.isValidElement(u)&&u.props.color||a,onDelete:!!m,clickable:E,variant:g},L=pfe(N),j=D===Qt?{component:l||"div",internalNativeButton:!1,focusVisibleClassName:L.focusVisible,...m&&{disableRipple:!0},..._!==void 0&&{nativeButton:_}}:{},X=null;m&&(X=c&&fa.isValidElement(c)?fa.cloneElement(c,{className:$(c.props.className,L.deleteIcon),onClick:S}):(0,Jx.jsx)(FW,{className:L.deleteIcon,onClick:S}));let H=null;n&&fa.isValidElement(n)&&(H=fa.cloneElement(n,{className:$(L.avatar,n.props.className)}));let Z=null;u&&fa.isValidElement(u)&&(Z=fa.cloneElement(u,{className:$(L.icon,u.props.className)}));let ie={slots:C,slotProps:v},[q,ee]=xe("root",{elementType:ufe,externalForwardedProps:{...ie,...I},ownerState:N,shouldForwardComponentProp:!0,ref:R,className:$(L.root,s),additionalProps:{disabled:E&&p?!0:void 0,tabIndex:x&&p?-1:T,...j},getSlotProps:Y=>({...Y,onClick:W=>{Y.onClick?.(W),d?.(W)},onKeyDown:W=>{Y.onKeyDown?.(W),P(W)},onKeyUp:W=>{Y.onKeyUp?.(W),M(W)}})}),[z,re]=xe("label",{elementType:dfe,externalForwardedProps:ie,ownerState:N,className:L.label});return(0,Jx.jsxs)(q,{as:D,...ee,children:[H||Z,(0,Jx.jsx)(z,{...re,children:f}),X]})}),us=ffe;var BW=w(J(),1),i1=be((0,BW.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var jW=w(J(),1),e2=be((0,jW.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFile");var VW={"image/":"image","image/jpeg":"image","image/png":"image","image/gif":"gif_box","image/svg+xml":"image","image/webp":"image","application/pdf":"picture_as_pdf","application/msword":"description","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"description","application/vnd.ms-excel":"table_chart","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"table_chart","application/vnd.ms-powerpoint":"slideshow","application/vnd.openxmlformats-officedocument.presentationml.presentation":"slideshow","text/":"article","text/plain":"article","text/html":"html","text/css":"css","text/javascript":"javascript","text/csv":"table_chart","text/markdown":"article","audio/":"audio_file","audio/mpeg":"audio_file","audio/wav":"audio_file","audio/ogg":"audio_file","video/":"video_file","video/mp4":"video_file","video/webm":"video_file","video/ogg":"video_file","application/zip":"folder_zip","application/x-rar-compressed":"folder_zip","application/x-7z-compressed":"folder_zip","application/x-tar":"folder_zip","application/gzip":"folder_zip","application/json":"code","application/xml":"code","text/xml":"code",default:"insert_drive_file"},mfe=e=>kt.createElement(Be,{sx:{position:"relative",display:"inline-block",width:40,height:40}},kt.createElement(_e,{size:40,thickness:4,sx:{color:`${e.color}.main`,animationDuration:"1s",strokeLinecap:"round"},value:e.progress,variant:e.progress==null?"indeterminate":"determinate"}),kt.createElement(Be,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"white",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",width:25,height:25}},kt.createElement(_W,{color:e.color,sx:{fontSize:24}}))),yfe=A("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"100%",overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:"100%",opacity:0,cursor:"pointer",zIndex:1});function hfe(e){if(e===0)return"0 B";let t=1024,o=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**r).toFixed(2))} ${o[r]}`}var gfe=kt.forwardRef(({filePreview:e,footerObjects:t,...o},r)=>{let n=kt.useRef(null);return kt.useImperativeHandle(r,()=>({focus:()=>n?.current?.focus(),blur:()=>n?.current?.blur(),value:n?.current?.value})),kt.createElement(Be,{sx:{alignSelf:"center",width:"100%"}},e,kt.createElement(Df,{ref:n,...o,style:{...o.style,border:"none",outline:"none",resize:"none",background:"transparent",fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",width:"100%",boxSizing:"border-box",paddingTop:"0.5rem",paddingBottom:"0.5rem"}}),t&&t.length>0&&kt.createElement(Be,{sx:{display:"flex",flexDirection:"row",flexWrap:"nowrap",gap:1,pt:0,pb:0,mb:-1,alignItems:"center",width:"100%",maxWidth:"calc(100% - 16px)",overflowX:"auto","&::-webkit-scrollbar":{height:"1px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(0,0,0,0.2)",borderRadius:"1px"}}},t))});function bfe({model:e,view:t}){let[o]=e.useState("accept"),[r]=e.useState("actions"),[n]=e.useState("auto_grow"),[s]=e.useState("color"),[i]=e.useState("disabled"),[a]=e.useState("disabled_enter"),[l]=e.useState("enable_upload"),[c]=e.useState("enter_sends"),[p]=e.useState("error_state"),[u,f]=e.useState("loading"),[d]=e.useState("max_rows"),[m]=e.useState("label"),[h]=e.useState("placeholder"),[b]=e.useState("rows"),[y]=e.useState("sx"),[g,T]=e.useState("value_input"),[x]=e.useState("variant"),[C,v]=kt.useState(!1),k=kt.useRef(null),_=e.get_child("footer_objects"),I=co(h),[O,R]=kt.useState(void 0),[S,P]=kt.useState([]),[M,E]=e.useState("pending_uploads"),D=kt.useRef(null),N=kt.useRef(S);kt.useEffect(()=>{N.current=S,E(S.length)},[S]),kt.useEffect(()=>{e.on("msg:custom",te=>{te.status==="finished"?D.current=te:te.type==="sync"?X():te.type==="focus"&&setTimeout(()=>{t.container.querySelector("textarea")?.focus()},0)}),e.on("lifecycle:update_layout",()=>{_.map((te,U)=>{jt(t.get_child_view(e.footer_objects[U]),"row")})})},[]),e.on("remove",()=>{D.current={status:"removed"}});let L=te=>te.key==="Enter"&&(c&&!(te.ctrlKey||te.shiftKey)||!c&&(te.ctrlKey||te.shiftKey)),j={sx:{width:"100%",height:"100%",...y}};n?j={minRows:b}:j={rows:b};let X=async()=>{let te=N.current;if(te.length){let U=te;o&&(U=Array.from(te).filter(V=>td(V,o)));let ue=await qT(U,e,e.max_file_size,e.max_total_file_size,e.chunk_size||10*1024*1024,R,D);P([]),N.current=[],R(void 0)}},H=async()=>{if(!i){if(S.length){let te=S;o&&(te=Array.from(S).filter(ue=>td(ue,o)));let U=await qT(te,e,e.max_file_size,e.max_total_file_size,e.chunk_size||10*1024*1024,R,D)}e.send_msg({type:"input",value:g}),await tM(D),P([]),N.current=[],T(""),R(void 0)}},Z=()=>{e.send_msg({type:"action",action:"stop"})},ie=te=>{te.preventDefault(),te.stopPropagation(),te.dataTransfer.types&&te.dataTransfer.types.includes("Files")&&v(!0)},q=te=>{te.preventDefault(),te.stopPropagation(),v(!1)},ee=te=>{te.preventDefault(),te.stopPropagation(),te.dataTransfer.types&&te.dataTransfer.types.includes("Files")?te.dataTransfer.dropEffect="copy":te.dataTransfer.dropEffect="none"},z=te=>{if(te.preventDefault(),te.stopPropagation(),v(!1),i)return;let U=Array.from(te.dataTransfer.files),ue=U;o&&(ue=U.filter(pe=>td(pe,o)));let V=[...S,...ue];P(V),N.current=V},re=te=>{let U=[...S];U.splice(te,1),P(U),N.current=U},Y=()=>kt.createElement(Be,{sx:{display:"flex",flexWrap:"wrap",gap:.5,p:1,pb:.5,width:"100%",minHeight:"32px",maxHeight:"60px",overflowY:"auto",alignItems:"center",borderBottom:1,borderColor:"divider",backgroundColor:"background.paper"}},S.map((te,U)=>kt.createElement(us,{key:`${te.name}-${U}`,icon:kt.createElement(Gr,null,Object.entries(VW).find(([ue,V])=>te.type.startsWith(ue))?.[1]||VW.default),label:kt.createElement($e,{variant:"caption",noWrap:!0,sx:{maxWidth:"150px"}},te.name," (",hfe(te.size),")"),onDelete:()=>re(U),deleteIcon:kt.createElement(i1,null),size:"small",color:s,variant:"outlined",sx:{height:"24px",mb:"8px"}}))),W=kt.useRef(null);kt.useEffect(()=>{setTimeout(()=>{t.container.querySelector("textarea")?.focus()},0)},[]);let ne=kt.useRef(u);return kt.useEffect(()=>{ne.current&&!u&&setTimeout(()=>{t.container.querySelector("textarea")?.focus()},0),ne.current=u},[u]),kt.createElement(Be,{sx:{display:"flex",flexDirection:"column",width:"100%",height:"100%",gap:1}},kt.createElement(Be,{sx:{position:"relative",width:"100%",height:"100%",...C&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.1)",border:"2px dashed",borderColor:`${s}.main`,borderRadius:1,zIndex:2}}},onDragEnter:ie,onDragLeave:q,onDragOver:ee,onDrop:z},l&&kt.createElement(yfe,{ref:k,type:"file",multiple:!0,accept:o,onChange:te=>{if(te.target.files&&te.target.files.length>0){let U=Array.from(te.target.files),ue=U;o&&(ue=U.filter(pe=>td(pe,o)));let V=[...S,...ue];P(V),N.current=V}}}),kt.createElement(da,{multiline:!0,color:s,disabled:i,inputComponent:gfe,value:g,slotProps:{root:{ref:W,onChange:te=>T(te.target.value),onKeyDown:te=>{L(te)&&(te.preventDefault(),H())},value:g},input:{filePreview:l&&S.length>0?kt.createElement(Y,null):null,footerObjects:_.map((te,U)=>(jt(t.get_child_view(e.footer_objects[U]),"row"),te)),maxRows:d,placeholder:I,...j}},placeholder:I,startAdornment:Object.keys(r).length>0?kt.createElement(tr,{position:"start",sx:{alignItems:"end",maxHeight:"35px",mr:"4px",alignSelf:"center"}},kt.createElement(Xf,{ariaLabel:"Actions",disabled:i,size:"small",FabProps:{size:"small",sx:{width:"35px",height:"35px",minHeight:"35px"}},icon:kt.createElement(Cm,{color:s}),sx:{zIndex:1e3,ml:"-4px"}},l&&kt.createElement(Md,{icon:kt.createElement(e2,null),slotProps:{popper:{container:t.container},tooltip:{title:"Attach files"}},onClick:()=>k.current?.click()}),Object.keys(r).map(te=>kt.createElement(Md,{key:te,icon:kt.createElement(Gr,null,r[te].icon),slotProps:{popper:{container:t.container},tooltip:{title:fe(r[te].label||te)}},onClick:()=>e.send_msg({type:"action",action:te})})))):l?kt.createElement(Qe,{color:"primary",disabled:i,onClick:()=>k.current?.click()},kt.createElement(e2,null)):null,endAdornment:kt.createElement(tr,{onClick:()=>a||u?Z():H(),position:"end",sx:{mb:"2px",ml:"-4px",alignSelf:"center"}},kt.createElement(Qe,{color:"primary",disabled:i},a||u||O!==void 0?kt.createElement(mfe,{color:s,progress:O}):kt.createElement(RW,null))),error:p,label:co(m),variant:x,fullWidth:!0,sx:{...j.sx,p:"8px",alignItems:"end",position:"relative",zIndex:0,width:"100%",".MuiInputBase-root":{alignItems:"flex-start",padding:Object.keys(r).length>0||l?"8px":"8px 8px 8px 16px"}}})))}function Tfe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),kt.createElement(ve,{theme:t},kt.createElement(Ce,null),kt.createElement(bfe,{...e}),o.length?kt.createElement("div",{class:"attached"},o):null)}var $W={render:Tfe};var ro=w(B());var ug=w(B(),1);var UW=w(J(),1),zW=be((0,UW.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function t2(e){return K("MuiAvatar",e)}var xfe=Q("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),a1=xfe;var l1=w(J(),1),Pfe=e=>{let{classes:t,variant:o,colorDefault:r}=e;return G({root:["root",o,r&&"colorDefault"],img:["img"],fallback:["fallback"]},t2,t)},vfe=A("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant],o.colorDefault&&t.colorDefault]}})(de(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,"@media (forced-colors: active)":{boxSizing:"border-box",border:"1px solid ButtonBorder"},...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),Sfe=A("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Cfe=A(zW,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function wfe(e,t,o,r){let[n,s]=ug.useState(!1);return ug.useEffect(()=>{if(!e&&!t)return;s(!1);let i=!0,a=new Image;return a.onload=()=>{i&&s("loaded")},a.onerror=()=>{i&&s("error")},a.crossOrigin=o,a.referrerPolicy=r,a.src=e,t&&(a.srcset=t),()=>{i=!1}},[o,r,e,t]),n}var kfe=ug.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAvatar"}),{alt:n,children:s,className:i,component:a="div",slots:l={},slotProps:c={},sizes:p,src:u,srcSet:f,variant:d="circular",...m}=r,h=null,b={...r,component:a,variant:d},{crossOrigin:y,referrerPolicy:g}=(typeof c.img=="function"?c.img(b):c.img)??{},T=wfe(u,f,y,g),x=u||f,C=x&&T!=="error";b.colorDefault=!C,delete b.ownerState;let v=Pfe(b),k={slots:l,slotProps:c},[_,I]=xe("root",{ref:o,className:$(v.root,i),elementType:vfe,externalForwardedProps:{...k,component:a,...m},ownerState:b}),[O,R]=xe("img",{className:v.img,elementType:Sfe,externalForwardedProps:k,additionalProps:{alt:n,src:u,srcSet:f,sizes:p},ownerState:b}),[S,P]=xe("fallback",{className:v.fallback,elementType:Cfe,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:b});return C?h=(0,l1.jsx)(O,{...R}):s||s===0?h=s:x&&n?h=n[0]:h=(0,l1.jsx)(S,{...P}),(0,l1.jsx)(_,{...I,children:h})}),Rn=kfe;var HW=w(B(),1);function o2(e){return K("MuiPaper",e)}var Rfe=Q("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),WW=Rfe;var YW=w(J(),1),Ife=e=>{let{square:t,elevation:o,variant:r,classes:n}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${o}`]};return G(s,o2,n)},_fe=A("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant],!o.square&&t.rounded,o.variant==="elevation"&&t[`elevation${o.elevation}`]]}})(de(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...Ge(e,"box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Efe=HW.forwardRef(function(t,o){let r=ce({props:t,name:"MuiPaper"}),n=me(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...p}=r,u={...r,component:i,elevation:a,square:l,variant:c},f=Ife(u);return(0,YW.jsx)(_fe,{as:i,ownerState:u,className:$(f.root,s),ref:o,...p,style:{...c==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[a],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[a]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${_l("#fff",Cp(a))}, ${_l("#fff",Cp(a))})`}},...p.style}})}),oo=Efe;var Mfe=DS({createStyledComponent:A("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>ce({props:e,name:"MuiStack"})}),Od=Mfe;var Ofe=Q("MuiStack",["root"]),qW=Ofe;var GW=w(J(),1),KW=be((0,GW.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var XW=w(J(),1),QW=be((0,XW.jsx)("path",{d:"M3 10h11v2H3zm0-2h11V6H3zm0 8h7v-2H3zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71-5.3 5.3V21h2.12l5.3-5.3z"}),"EditNote");function Dfe(){return ro.createElement(Be,{sx:{margin:"1em 0.5em 0 0",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px",width:"90px"}},ro.createElement(Be,{component:"span",sx:{width:12,height:12,borderRadius:"50%",backgroundColor:"text.disabled",animation:"grow 2.4s ease-in-out infinite, fade 2.4s ease-in-out infinite","@keyframes grow":{"0%, 100%":{transform:"scale(0)"},"50%":{transform:"scale(1)"}},"@keyframes fade":{"0%, 100%":{opacity:.3},"50%":{opacity:1}}}}),ro.createElement(Be,{component:"span",sx:{width:12,height:12,borderRadius:"50%",backgroundColor:"text.disabled",animation:"grow 2.4s ease-in-out infinite, fade 2.4s ease-in-out infinite",animationDelay:"0.6s"}}),ro.createElement(Be,{component:"span",sx:{width:12,height:12,borderRadius:"50%",backgroundColor:"text.disabled",animation:"grow 2.4s ease-in-out infinite, fade 2.4s ease-in-out infinite",animationDelay:"1.2s"}}),ro.createElement(Be,{component:"span",sx:{width:12,height:12,borderRadius:"50%",backgroundColor:"text.disabled",animation:"grow 2.4s ease-in-out infinite, fade 2.4s ease-in-out infinite",animationDelay:"1.8s"}}))}function Nfe(e){return/[\p{Emoji}]/u.test(e)}function Afe({model:e,view:t}){let[o]=e.useState("placement"),[r]=e.useState("elevation"),[n]=e.useState("user"),[s]=e.useState("show_avatar"),[i]=e.useState("show_edit_icon"),[a]=e.useState("show_user"),[l]=e.useState("show_timestamp"),[c]=e.useState("show_reaction_icons"),[p]=e.useState("show_copy_icon"),[u]=e.useState("reaction_icons"),[f]=e.useState("reactions"),[d]=e.useState("_internal_state.avatar"),[m]=e.useState("_internal_state.timestamp"),h=e.get_child("_object_panel"),b=e.get_child("header_objects"),y=e.get_child("footer_objects");e.on("msg:custom",R=>{navigator.clipboard.writeText(R.text)});let g=s&&d.type==="text"&&d.text=="PLACEHOLDER",T=g?ro.createElement(Dfe,null):ro.createElement(Rn,{src:d.type==="image"?d.src:null,sx:{margin:o==="left"?"1em 0.5em 0 0":"1em 0 0 0.5em",bgcolor:"background.paper",color:"text.primary",boxShadow:3}},d.type!=="image"&&(d.type=="text"?Nfe(d.text)?d.text:[...d.text][0]:(()=>{let R=Al(d.icon);return ro.createElement(Gr,{baseClassName:R.baseClassName},R.iconName)})())),x=t.model.data._object_panel,C=x.sizing_mode&&(x.sizing_mode.includes("width")||x.sizing_mode.includes("both")),v=ro.useRef(null),[k,_]=ro.useState(!1);ro.useEffect(()=>{if(!v.current)return;let R=new MutationObserver(()=>{_(!!v.current?.querySelector(".edit-area"))});return R.observe(v.current,{childList:!0,subtree:!0}),()=>R.disconnect()},[]);let I=ro.useRef(null),O=ro.useRef(!1);return ro.useEffect(()=>{let R=t.el;for(;R;){if(R.scrollHeight>R.clientHeight+1){let E=getComputedStyle(R);if(E.overflowY==="auto"||E.overflowY==="scroll"){I.current=R;break}}if(R.parentElement)R=R.parentElement;else{let E=R.getRootNode();R=E instanceof ShadowRoot?E.host:null}}let S=I.current;if(!S)return;let P=S.scrollTop,M=()=>{let E=S.scrollTop,D=S.scrollHeight-E-S.clientHeight;E<P?O.current=!0:D<50&&(O.current=!1),P=E};return S.addEventListener("scroll",M),()=>S.removeEventListener("scroll",M)},[]),ro.useEffect(()=>{if(!v.current||t.parent?.model.type!="panel.models.feed.Feed")return;let R=null,S=new ResizeObserver(()=>{clearTimeout(R),R=setTimeout(()=>t.invalidate_layout(),50),O.current||requestAnimationFrame(()=>{let P=I.current;P&&(P.scrollTop=P.scrollHeight)})});return S.observe(v.current),()=>{S.disconnect(),clearTimeout(R)}},[]),ro.createElement(Be,{sx:{flexDirection:"row",display:"flex",maxWidth:"100%"}},o==="left"&&T,!g&&ro.createElement(Od,{direction:"column",spacing:0,sx:{flexGrow:1,maxWidth:"calc(100% - 60px)",alignItems:o==="left"?"flex-start":"flex-end"}},a&&ro.createElement($e,{variant:"caption"},fe(n)),ro.createElement(Od,{direction:"column",spacing:0},b),ro.createElement(oo,{ref:v,elevation:r,sx:{bgcolor:"background.paper",width:C||k?"100%":"fit-content"}},h),ro.createElement(Od,{direction:"column",spacing:0},y),ro.createElement(Od,{direction:"row",spacing:0,sx:{position:"relative",zIndex:1}},i&&ro.createElement(Qe,{disableRipple:!0,size:"small",sx:{padding:"0 0.1em"},onClick:()=>{e.send_msg("edit")}},ro.createElement(QW,{sx:{width:"0.8em"},color:"lightgray"})),p&&ro.createElement(Qe,{disableRipple:!0,size:"small",sx:{padding:"0 0.1em"},onClick:()=>{e.send_msg("copy")}},ro.createElement(KW,{sx:{width:"0.5em"},color:"lightgray"})),c&&f.map(R=>ro.createElement(Qe,{key:`reaction-${R}`,disableRipple:!0,size:"small",sx:{padding:"0 0.1em"},onClick:()=>{e.send_msg(R)}},(()=>{let S=u[R]||R,P=Al(S);return ro.createElement(Gr,{baseClassName:P.baseClassName,sx:{width:"0.5em"}},P.iconName)})()))),l&&ro.createElement($e,{variant:"caption",color:"text.secondary"},m)),o==="right"&&T)}function Ffe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return ro.createElement("div",{style:{display:"contents",position:"relative"}},ro.createElement(Afe,{...e}),t&&ro.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},ro.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Lfe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),ro.createElement(ve,{theme:t},ro.createElement(Ce,null),ro.createElement(Ffe,{...e}),o.length?ro.createElement("div",{class:"attached"},o):null)}var ZW={render:Lfe};var In=w(B());var e8=w(B(),1);function r2(e){return K("MuiCard",e)}var Bfe=Q("MuiCard",["root"]),JW=Bfe;var t8=w(J(),1),jfe=e=>{let{classes:t}=e;return G({root:["root"]},r2,t)},Vfe=A(oo,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),$fe=e8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiCard"}),{className:n,raised:s=!1,...i}=r,a={...r,raised:s},l=jfe(a);return(0,t8.jsx)(Vfe,{className:$(l.root,n),elevation:s?8:void 0,ref:o,ownerState:a,...i})}),qp=$fe;var r8=w(B(),1);function n2(e){return K("MuiCardContent",e)}var Ufe=Q("MuiCardContent",["root"]),o8=Ufe;var n8=w(J(),1),zfe=e=>{let{classes:t}=e;return G({root:["root"]},n2,t)},Wfe=A("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Hfe=r8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiCardContent"}),{className:n,component:s="div",...i}=r,a={...r,component:s},l=zfe(a);return(0,n8.jsx)(Wfe,{as:s,className:$(l.root,n),ownerState:a,ref:o,...i})}),wm=Hfe;var s8=w(B(),1);function s2(e){return K("MuiCardHeader",e)}var Yfe=Q("MuiCardHeader",["root","avatar","action","content","title","subheader"]),km=Yfe;var Dd=w(J(),1),qfe=e=>{let{classes:t}=e;return G({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},s2,t)},Gfe=A("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${km.title}`]:t.title},{[`& .${km.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),Kfe=A("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),Xfe=A("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Qfe=A("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${od.root}:where(& .${km.title})`]:{display:"block"},[`.${od.root}:where(& .${km.subheader})`]:{display:"block"}}),Zfe=s8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiCardHeader"}),{action:n,avatar:s,component:i="div",disableTypography:a=!1,subheader:l,title:c,slots:p={},slotProps:u={},...f}=r,d={...r,component:i,disableTypography:a},m=qfe(d),h={slots:p,slotProps:u},b=c,[y,g]=xe("title",{className:m.title,elementType:$e,externalForwardedProps:h,ownerState:d,additionalProps:{variant:s?"body2":"h5",component:"span"}});b!=null&&b.type!==$e&&!a&&(b=(0,Dd.jsx)(y,{...g,children:b}));let T=l,[x,C]=xe("subheader",{className:m.subheader,elementType:$e,externalForwardedProps:h,ownerState:d,additionalProps:{variant:s?"body2":"body1",color:"textSecondary",component:"span"}});T!=null&&T.type!==$e&&!a&&(T=(0,Dd.jsx)(x,{...C,children:T}));let[v,k]=xe("root",{ref:o,className:m.root,elementType:Gfe,externalForwardedProps:{...h,...f,component:i},ownerState:d}),[_,I]=xe("avatar",{className:m.avatar,elementType:Kfe,externalForwardedProps:h,ownerState:d}),[O,R]=xe("content",{className:m.content,elementType:Qfe,externalForwardedProps:h,ownerState:d}),[S,P]=xe("action",{className:m.action,elementType:Xfe,externalForwardedProps:h,ownerState:d});return(0,Dd.jsxs)(v,{...k,children:[s&&(0,Dd.jsx)(_,{...I,children:s}),(0,Dd.jsxs)(O,{...R,children:[b,T]}),n&&(0,Dd.jsx)(S,{...P,children:n})]})}),Gp=Zfe;var dg=w(B(),1);function i2(e){return K("MuiCollapse",e)}var Jfe=Q("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),i8=Jfe;var eP=w(J(),1),a8={},eme=e=>{let{orientation:t,classes:o}=e;return G({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},i2,o)},tme=A("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.orientation],o.state==="entered"&&t.entered,o.state==="exited"&&!o.in&&o.collapsedSize==="0px"&&t.hidden]}})(de(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),ome=A("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),rme=A("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),a2=dg.forwardRef(function(t,o){let r=ce({props:t,name:"MuiCollapse"}),{addEndListener:n,children:s,className:i,collapsedSize:a="0px",component:l,disablePrefersReducedMotion:c=!1,easing:p,in:u,onEnter:f,onEntered:d,onEntering:m,onExit:h,onExited:b,onExiting:y,orientation:g="vertical",slots:T=a8,slotProps:x=a8,style:C,timeout:v=ih.standard,TransitionComponent:k=Sc,..._}=r,I={...r,orientation:g,collapsedSize:a},O=eme(I),R=me(),S=dg.useRef(null),P=dg.useRef(null),M=typeof a=="number"?`${a}px`:a,E=g==="horizontal",D=E?"width":"height",N=Pn(R.motion.reducedMotion,c),L=dg.useRef(null),j=Wt(o,L),X=()=>S.current?S.current[E?"clientWidth":"clientHeight"]:0,H=uo(L,(pe,se)=>{S.current&&E&&(S.current.style.position="absolute"),pe.style[D]=M,f&&f(pe,se)}),Z=uo(L,(pe,se)=>{let ye=X();S.current&&E&&(S.current.style.position="");let{duration:le,easing:ge}=os({style:C,timeout:v,easing:p},{mode:"enter"});if(v==="auto"&&!N.shouldReduceMotion){let oe=R.transitions.getAutoHeightDuration(ye);P.current=oe}else P.current=null;let ae=N.getTransitionTiming({duration:P.current??le,delay:void 0});pe.style.transitionDuration=typeof ae.duration=="string"?ae.duration:`${ae.duration}ms`,pe.style[D]=`${ye}px`,pe.style.transitionTimingFunction=ge,m&&m(pe,se)}),ie=uo(L,(pe,se)=>{pe.style[D]="auto",d&&d(pe,se)}),q=uo(L,pe=>{pe.style[D]=`${X()}px`,h&&h(pe)}),ee=uo(L,b),z=uo(L,pe=>{let se=X(),{duration:ye,easing:le}=os({style:C,timeout:v,easing:p},{mode:"exit"});if(v==="auto"&&!N.shouldReduceMotion){let ae=R.transitions.getAutoHeightDuration(se);P.current=ae}else P.current=null;let ge=N.getTransitionTiming({duration:P.current??ye,delay:void 0});pe.style.transitionDuration=typeof ge.duration=="string"?ge.duration:`${ge.duration}ms`,pe.style[D]=M,pe.style.transitionTimingFunction=le,y&&y(pe)}),re=n?pe=>{n(L.current,pe)}:void 0,Y={slots:T,slotProps:x,component:l},[W,ne]=xe("root",{ref:j,className:$(O.root,i),elementType:tme,externalForwardedProps:Y,ownerState:I,additionalProps:{style:{[E?"minWidth":"minHeight"]:M,...C}}}),[te,U]=xe("wrapper",{ref:S,className:O.wrapper,elementType:ome,externalForwardedProps:Y,ownerState:I}),[ue,V]=xe("wrapperInner",{className:O.wrapperInner,elementType:rme,externalForwardedProps:Y,ownerState:I});return(0,eP.jsx)(k,{in:u,onEnter:H,onEntered:ie,onEntering:Z,onExit:q,onExited:ee,onExiting:z,addEndListener:re,getAutoTimeout:v==="auto"?()=>P.current:void 0,reduceMotion:N.shouldReduceMotion,nodeRef:L,timeout:v==="auto"?null:v,..._,children:(pe,{ownerState:se,...ye})=>{let le={...I,state:pe};return(0,eP.jsx)(W,{...ne,className:$(ne.className,{entered:O.entered,exited:!u&&M==="0px"&&O.hidden}[pe]),ownerState:le,...ye,children:(0,eP.jsx)(te,{...U,ownerState:le,children:(0,eP.jsx)(ue,{...V,ownerState:le,children:s})})})}})});a2&&(a2.muiSupportAuto=!0);var nr=a2;var l8=w(J(),1),ma=be((0,l8.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");var nme={failed:"red",success:"green",pending:"transparent",running:"gold",completed:"green"},sme=A(e=>{let{expand:t,...o}=e;return In.createElement(Qe,{...o})})(({theme:e})=>({marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),variants:[{props:({expand:t})=>!t,style:{transform:"rotate(0deg)"}},{props:({expand:t})=>!!t,style:{transform:"rotate(180deg)"}}]}));function ime({model:e,view:t}){let[o]=e.useState("collapsible"),[r,n]=e.useState("collapsed"),[s]=e.useState("hide_header"),[i]=e.useState("elevation"),[a]=e.useState("title"),[l]=e.useState("outlined"),[c]=e.useState("raised"),[p]=e.useState("sx"),u=e.get_child("header"),f=e.get_child("objects"),[d]=e.useState("status");return e.header&&jt(t.get_child_view(e.header),"row"),In.createElement(qp,{raised:c,elevation:i,variant:l?"outlined":"elevation",sx:{display:"flex",flexDirection:"column",width:"100%",height:"100%",...p}},In.createElement(Gp,{action:o&&In.createElement(sme,{expand:!r,onClick:()=>n(!r),"aria-expanded":!r,"aria-label":"show more"},In.createElement(ma,null)),avatar:In.createElement(Be,{sx:{display:"flex",alignItems:"center",mr:2}},In.createElement(Be,{sx:{width:15,height:15,borderRadius:"50%",border:"1px solid",borderColor:"black",bgcolor:nme[d]}})),sx:{display:"flex",minWidth:0,padding:"0.5em 0.5em 0.5em 1em","& .MuiCardHeader-content":{minWidth:0},"& .MuiCardHeader-title .step-header":{minWidth:0}},title:e.header?u:In.createElement($e,{variant:"h3"},fe(a))}),In.createElement(nr,{in:!r,timeout:"auto",unmountOnExit:!0,sx:{flexGrow:1,height:"100%",width:"100%","& .MuiCollapse-wrapper":{height:"100% !important"}}},In.createElement(wm,{sx:{height:"100%",width:"100%",display:"flex",flexDirection:"column",padding:"0 8px 0 16px","&:last-child":{pb:"0px"}}},f)))}function ame(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return In.createElement("div",{style:{display:"contents",position:"relative"}},In.createElement(ime,{...e}),t&&In.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},In.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function lme(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),In.createElement(ve,{theme:t},In.createElement(Ce,null),In.createElement(ame,{...e}),o.length?In.createElement("div",{class:"attached"},o):null)}var c8={render:lme};var ds=w(B());var Kp=w(B(),1);var p8=w(B(),1),cme=p8.createContext({}),c1=cme;function l2(e){return K("MuiAccordion",e)}var pme=Q("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),Rm=pme;var Im=w(J(),1),ume=e=>{let{classes:t,square:o,expanded:r,disabled:n,disableGutters:s}=e;return G({root:["root",!o&&"rounded",r&&"expanded",n&&"disabled",!s&&"gutters"],heading:["heading"],region:["region"]},l2,t)},dme=A(oo,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[{[`& .${Rm.region}`]:t.region},t.root,!o.square&&t.rounded,!o.disableGutters&&t.gutters]}})(de(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{position:"relative",...Ge(e,["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,...Ge(e,["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${Rm.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Rm.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),de(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${Rm.expanded}`]:{margin:"16px 0"}}}]}))),fme=A("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),mme=A("div",{name:"MuiAccordion",slot:"Region"})({}),yme=Kp.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAccordion"}),{children:n,className:s,defaultExpanded:i=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:p,slots:u={},slotProps:f={},...d}=r,[m,h]=ns({controlled:c,default:i,name:"Accordion",state:"expanded"}),b=Kp.useCallback(E=>{h(!m),p&&p(E,!m)},[m,p,h]),[y,...g]=Kp.Children.toArray(n),T=Kp.useMemo(()=>({expanded:m,disabled:a,disableGutters:l,toggle:b}),[m,a,l,b]),x={...r,disabled:a,disableGutters:l,expanded:m},C=ume(x),v={slots:u,slotProps:f},[k,_]=xe("root",{elementType:dme,externalForwardedProps:{...v,...d},className:$(C.root,s),shouldForwardComponentProp:!0,ownerState:x,ref:o}),[I,O]=xe("heading",{elementType:fme,externalForwardedProps:v,className:C.heading,ownerState:x}),[R,S]=xe("transition",{elementType:nr,externalForwardedProps:v,ownerState:x}),[P,M]=xe("region",{elementType:mme,externalForwardedProps:v,ownerState:x,className:C.region,additionalProps:{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region"}});return(0,Im.jsxs)(k,{..._,children:[(0,Im.jsx)(I,{...O,children:(0,Im.jsx)(c1.Provider,{value:T,children:y})}),(0,Im.jsx)(R,{in:m,timeout:"auto",...S,children:(0,Im.jsx)(P,{...M,children:g})})]})}),tP=yme;var p1=w(B(),1);var oP=w(J(),1),hme=e=>{let{classes:t,expanded:o,disabled:r,disableGutters:n}=e;return G({root:["root",o&&"expanded",r&&"disabled",!n&&"gutters"],focusVisible:["focusVisible"],content:["content",o&&"expanded"],expandIconWrapper:["expandIconWrapper",o&&"expanded"]},vE,t)},gme=A(Qt,{name:"MuiAccordionSummary",slot:"Root"})(de(({theme:e})=>({display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),...Ge(e,["min-height","background-color"],{duration:e.transitions.duration.shortest}),...!e.focusVisible&&{[`&.${El.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${El.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${El.disabled})`]:{cursor:"pointer"},variants:[{props:t=>!t.disableGutters,style:{[`&.${El.expanded}`]:{minHeight:64}}}]}))),bme=A("span",{name:"MuiAccordionSummary",slot:"Content"})(de(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{...Ge(e,["margin"],{duration:e.transitions.duration.shortest}),[`&.${El.expanded}`]:{margin:"20px 0"}}}]}))),Tme=A("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(de(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",...Ge(e,"transform",{duration:e.transitions.duration.shortest}),[`&.${El.expanded}`]:{transform:"rotate(180deg)"}}))),xme=p1.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAccordionSummary"}),{children:n,className:s,expandIcon:i,focusVisibleClassName:a,onClick:l,slots:c,slotProps:p,...u}=r,{disabled:f=!1,disableGutters:d,expanded:m,toggle:h}=p1.useContext(c1),b=O=>{h&&h(O),l&&l(O)},y={...r,expanded:m,disabled:f,disableGutters:d},g=hme(y),T={slots:c,slotProps:p},[x,C]=xe("root",{ref:o,shouldForwardComponentProp:!0,className:$(g.root,s),elementType:gme,externalForwardedProps:{...T,...u},ownerState:y,additionalProps:{focusRipple:!1,disableRipple:!0,internalNativeButton:!0,disabled:f,"aria-expanded":m,focusVisibleClassName:$(g.focusVisible,a)},getSlotProps:O=>({...O,onClick:R=>{O.onClick?.(R),b(R)}})}),[v,k]=xe("content",{className:g.content,elementType:bme,externalForwardedProps:T,ownerState:y}),[_,I]=xe("expandIconWrapper",{className:g.expandIconWrapper,elementType:Tme,externalForwardedProps:T,ownerState:y});return(0,oP.jsxs)(x,{...C,children:[(0,oP.jsx)(v,{...k,children:n}),i&&(0,oP.jsx)(_,{...I,children:i})]})}),rP=xme;var d8=w(B(),1);function c2(e){return K("MuiAccordionDetails",e)}var Pme=Q("MuiAccordionDetails",["root"]),u8=Pme;var f8=w(J(),1),vme=e=>{let{classes:t}=e;return G({root:["root"]},c2,t)},Sme=A("div",{name:"MuiAccordionDetails",slot:"Root"})(de(({theme:e})=>({padding:e.spacing(1,2,2)}))),Cme=d8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAccordionDetails"}),{className:n,...s}=r,i=r,a=vme(i);return(0,f8.jsx)(Sme,{className:$(a.root,n),ref:o,ownerState:i,...s})}),nP=Cme;function wme({model:e}){let[t,o]=e.useState("active"),[r]=e.useState("active_header_background"),[n]=e.useState("active_header_color"),[s]=e.useState("disabled"),[i]=e.useState("disable_gutters"),[a]=e.useState("elevation"),[l]=e.useState("header_background"),[c]=e.useState("header_color"),[p]=e.useState("_names"),[u]=e.useState("toggle"),[f]=e.useState("sx"),[d]=e.useState("square"),[m]=e.useState("title_variant"),[h]=e.useState("variant"),b=e.get_child("_headers"),y=e.get_child("objects"),g=T=>()=>{let x;t.includes(T)?x=t.filter(C=>C!=T):u?x=[T]:(x=[...t],x.push(T)),o(x)};return ds.createElement(ds.Fragment,null,y.map((T,x)=>ds.createElement(tP,{defaultExpanded:t.includes(x),disabled:s.includes(x),disableGutters:i,elevation:a,expanded:t.includes(x),key:`accordion-${x}`,square:d,sx:f,variant:h},ds.createElement(rP,{expandIcon:ds.createElement(ma,null),onClick:g(x),sx:{backgroundColor:t.includes(x)&&r||l,color:t.includes(x)&&n||c,"& .MuiAccordionSummary-content.Mui-expanded":{mt:1,mb:1}}},p[x]?ds.createElement($e,{className:"title",variant:m,sx:{display:"inline-flex",alignItems:"center",gap:"0.25em"}},_p(p[x])):b[x]),ds.createElement(nP,{sx:{pb:1,pl:1,pr:1}},T))))}function kme(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return ds.createElement("div",{style:{display:"contents",position:"relative"}},ds.createElement(wme,{...e}),t&&ds.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},ds.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Rme(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),ds.createElement(ve,{theme:t},ds.createElement(Ce,null),ds.createElement(kme,{...e}),o.length?ds.createElement("div",{class:"attached"},o):null)}var m8={render:Rme};var ha=w(B());var w8=w(B(),1);function p2(e){return K("MuiAlert",e)}var Ime=Q("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","outlined","standard"]),sP=Ime;var y8=w(J(),1),h8=be((0,y8.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined");var g8=w(J(),1),b8=be((0,g8.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");var T8=w(J(),1),x8=be((0,T8.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");var P8=w(J(),1),v8=be((0,P8.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var S8=w(J(),1),u1=be((0,S8.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var ya=w(J(),1),_me=e=>{let{variant:t,color:o,severity:r,classes:n}=e,s={root:["root",`color${Te(o||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return G(s,p2,n)},Eme=A(oo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[o.variant]]}})(de(({theme:e})=>{let t=e.palette.mode==="light"?e.darken:e.lighten,o=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(bt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:o(e.palette[r].light,.9),[`& .${sP.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(bt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${sP.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(bt(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{...e.focusVisible&&rh(`0 0 0 4px ${(e.vars||e).palette.background.default}`),fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),Mme=A("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Ome=A("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Dme=A("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),C8={success:(0,ya.jsx)(h8,{fontSize:"inherit"}),warning:(0,ya.jsx)(b8,{fontSize:"inherit"}),error:(0,ya.jsx)(x8,{fontSize:"inherit"}),info:(0,ya.jsx)(v8,{fontSize:"inherit"})},Nme=w8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAlert"}),{action:n,children:s,className:i,closeText:a="Close",color:l,icon:c,iconMapping:p=C8,onClose:u,role:f="alert",severity:d="success",slotProps:m={},slots:h={},variant:b="standard",...y}=r,g={...r,color:l,severity:d,variant:b,colorSeverity:l||d},T=_me(g),x={slots:h,slotProps:m},[C,v]=xe("root",{ref:o,shouldForwardComponentProp:!0,className:$(T.root,i),elementType:Eme,externalForwardedProps:{...x,...y},ownerState:g,additionalProps:{role:f,elevation:0}}),[k,_]=xe("icon",{className:T.icon,elementType:Mme,externalForwardedProps:x,ownerState:g}),[I,O]=xe("message",{className:T.message,elementType:Ome,externalForwardedProps:x,ownerState:g}),[R,S]=xe("action",{className:T.action,elementType:Dme,externalForwardedProps:x,ownerState:g}),[P,M]=xe("closeButton",{elementType:Qe,externalForwardedProps:x,ownerState:g}),[E,D]=xe("closeIcon",{elementType:u1,externalForwardedProps:x,ownerState:g});return(0,ya.jsxs)(C,{...v,children:[c!==!1?(0,ya.jsx)(k,{..._,children:c||p[d]||C8[d]}):null,(0,ya.jsx)(I,{...O,children:s}),n!=null?(0,ya.jsx)(R,{...S,children:n}):null,n==null&&u?(0,ya.jsx)(R,{...S,children:(0,ya.jsx)(P,{size:"small","aria-label":a,title:a,color:"inherit",onClick:u,...M,children:(0,ya.jsx)(E,{fontSize:"small",...D})})}):null]})}),_m=Nme;var R8=w(B(),1);function u2(e){return K("MuiAlertTitle",e)}var Ame=Q("MuiAlertTitle",["root"]),k8=Ame;var I8=w(J(),1),Fme=e=>{let{classes:t}=e;return G({root:["root"]},u2,t)},Lme=A($e,{name:"MuiAlertTitle",slot:"Root"})(de(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Bme=R8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiAlertTitle"}),{className:n,...s}=r,i=r,a=Fme(i);return(0,I8.jsx)(Lme,{gutterBottom:!0,component:"div",ownerState:i,ref:o,className:$(a.root,n),...s})}),iP=Bme;function jme(e){return new DOMParser().parseFromString(e,"text/html").documentElement.textContent}function Vme({model:e}){let[t,o]=e.useState("closed"),[r]=e.useState("closeable"),[n]=e.useState("severity"),[s]=e.useState("title"),[i]=e.useState("object"),[a]=e.useState("variant"),[l]=e.useState("sx"),c=e.get_child("objects"),p={};r&&(p.onClose=()=>{o(!0)});let f={...{"& .MuiAlert-icon":{paddingBottom:0},"& .MuiAlert-message":{paddingBottom:0},"& .MuiAlert-action":{paddingBottom:0}},...l};return ha.createElement(nr,{in:!t},ha.createElement(_m,{severity:n,variant:a,...p,sx:f},ha.createElement(iP,null,fe(s)),ha.createElement("span",{dangerouslySetInnerHTML:{__html:jme(i)}}),c))}function $me(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return ha.createElement("div",{style:{display:"contents",position:"relative"}},ha.createElement(Vme,{...e}),t&&ha.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},ha.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Ume(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),ha.createElement(ve,{theme:t},ha.createElement(Ce,null),ha.createElement($me,{...e}),o.length?ha.createElement("div",{class:"attached"},o):null)}var _8={render:Ume};var Ec=w(B());var O8=w(B(),1);var fg=w(B(),1);var E8=w(J(),1),zme={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Wme={opacity:0,visibility:"hidden"},Hme=fg.forwardRef(function(t,o){let r=me(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,disablePrefersReducedMotion:l=!1,easing:c,in:p,onEnter:u,onEntered:f,onEntering:d,onExit:m,onExited:h,onExiting:b,style:y,timeout:g=n,...T}=t,x=Pn(r.motion.reducedMotion,l),C=fg.useRef(null),v=Wt(C,ln(a),o),k=uo(C,d),_=uo(C,(M,E)=>{x.shouldReduceMotion||Tc(M);let D=os({style:y,timeout:g,easing:c},{mode:"enter"}),N=x.getTransitionTiming({duration:D.duration,delay:D.delay});M.style.transition=r.transitions.create("opacity",{duration:N.duration,easing:D.easing,delay:N.delay}),u&&u(M,E)}),I=uo(C,f),O=uo(C,b),R=uo(C,M=>{let E=os({style:y,timeout:g,easing:c},{mode:"exit"}),D=x.getTransitionTiming({duration:E.duration,delay:E.delay});M.style.transition=r.transitions.create("opacity",{duration:D.duration,easing:E.easing,delay:D.delay}),m&&m(M)}),S=uo(C,M=>{M.style.transition="",h&&h(M)});return(0,E8.jsx)(Sc,{appear:i,in:p,nodeRef:C,onEnter:_,onEntered:I,onEntering:k,onExit:R,onExited:S,onExiting:O,addEndListener:s?M=>{s(C.current,M)}:void 0,reduceMotion:x.shouldReduceMotion,timeout:g,...T,children:(M,{ownerState:E,...D})=>{let N=dh(M,p,zme,Wme,y,a.props.style);return fg.cloneElement(a,{style:N,ref:v,...D})}})}),fs=Hme;function d2(e){return K("MuiBackdrop",e)}var Yme=Q("MuiBackdrop",["root","invisible"]),M8=Yme;var f2=w(J(),1),qme=e=>{let{classes:t,invisible:o}=e;return G({root:["root",o&&"invisible"]},d2,t)},Gme=A("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.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"}}]}),Kme=O8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiBackdrop"}),{children:n,className:s,component:i="div",invisible:a=!1,open:l,slotProps:c={},slots:p={},transitionDuration:u,...f}=r,d={...r,component:i,invisible:a},m=qme(d),h={component:i,slots:p,slotProps:c},[b,y]=xe("root",{elementType:Gme,externalForwardedProps:h,className:$(m.root,s),ownerState:d}),[g,T]=xe("transition",{elementType:fs,externalForwardedProps:h,ownerState:d});return(0,f2.jsx)(g,{in:l,timeout:u,...f,...T,children:(0,f2.jsx)(b,{...y,ref:o,children:n})})}),Xp=Kme;var D8={zIndex:e=>e.zIndex.drawer+1};function Xme({model:e,view:t}){let[o]=e.useState("open"),[r]=e.useState("sx"),n=e.get_child("objects");return Ec.createElement(Xp,{open:o,sx:r?[D8,r]:D8},n)}function Qme(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Ec.createElement("div",{style:{display:"contents",position:"relative"}},Ec.createElement(Xme,{...e}),t&&Ec.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Ec.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Zme(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Ec.createElement(ve,{theme:t},Ec.createElement(Ce,null),Ec.createElement(Qme,{...e}),o.length?Ec.createElement("div",{class:"attached"},o):null)}var N8={render:Zme};var Qr=w(B());var Jme={display:"flex",flexDirection:"column",width:"100%",height:"100%"},eye=A(e=>{let{expand:t,...o}=e;return Qr.createElement(Qe,{...o})})(({theme:e})=>({marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),variants:[{props:({expand:t})=>!t,style:{transform:"rotate(0deg)"}},{props:({expand:t})=>!!t,style:{transform:"rotate(180deg)"}}]}));function tye({model:e,view:t}){let[o]=e.useState("collapsible"),[r,n]=e.useState("collapsed"),[s]=e.useState("elevation"),[i]=e.useState("header_color"),[a]=e.useState("header_css_classes"),[l]=e.useState("header_background"),[c]=e.useState("hide_header"),[p]=e.useState("raised"),[u]=e.useState("square"),[f]=e.useState("sx"),[d]=e.useState("title"),[m]=e.useState("title_css_classes"),[h]=e.useState("title_variant"),[b]=e.useState("variant"),y=e.get_child("header"),g=e.get_child("objects"),T=c||!e.header&&(!d||d.trim()===""),x=g.length===0;Qr.useEffect(()=>{let v=()=>{g.map((k,_)=>{jt(t.get_child_view(e.objects[_]),"column")})};return e.on("lifecycle:update_layout",v),()=>e.off("lifecycle:update_layout",v)},[]);let C=Qr.useMemo(()=>[Jme,f||{}],[f]);return e.header&&jt(t.get_child_view(e.header),"row"),Qr.createElement(qp,{elevation:s,square:u,raised:p,variant:b,sx:C},!T&&Qr.createElement(Gp,{action:o&&Qr.createElement(eye,{expand:!r,onClick:()=>n(!r),"aria-expanded":!r,"aria-label":"show more"},Qr.createElement(ma,null)),classes:a,title:e.header?y:Qr.createElement($e,{classes:m,sx:{display:"inline-flex",alignItems:"center",gap:"0.25em",fontSize:"1.15rem",fontWeight:500},variant:h},_p(d)),sx:{backgroundColor:l,color:i,display:"flex",minWidth:0,p:"12px 16px","& .MuiCardHeader-content":{minWidth:0}}}),Qr.createElement(nr,{in:!r,timeout:"auto",unmountOnExit:!0,sx:{flexGrow:1,height:"100%",width:"100%","& .MuiCollapse-wrapper":{height:"100% !important"}}},!x&&Qr.createElement(wm,{sx:{height:"100%",width:"100%",display:"flex",flexDirection:"column",p:T?"16px 16px 12px 16px":"0px 16px 12px 16px","&:last-child":{pb:"12px"}}},g.map((v,k)=>(jt(t.get_child_view(e.objects[k]),"column"),v)))))}function oye(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Qr.createElement("div",{style:{display:"contents",position:"relative"}},Qr.createElement(tye,{...e}),t&&Qr.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Qr.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function rye(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Qr.createElement(ve,{theme:t},Qr.createElement(Ce,null),Qr.createElement(oye,{...e}),o.length?Qr.createElement("div",{class:"attached"},o):null)}var A8={render:rye};var xo=w(B());var nye={height:"100%",width:"100%",display:"flex",position:"relative"};function sye({model:e,view:t}){let o=e.esm_constants.direction,r=o==="column",[n]=e.useState("sx"),s=0,i=0,a=null,l=0,c=!1,p;if(r){let[I]=e.useState("auto_scroll_limit"),[O]=e.useState("scroll_button_threshold"),[R]=e.useState("scroll_index"),[S,P]=e.useState("scroll_position"),[M]=e.useState("view_latest");s=I===void 0?0:I,i=O===void 0?0:O,a=R===void 0?null:R,l=S===void 0?0:S,c=M===void 0?!1:M,p=P}let u=e.get_child("objects"),f=xo.useRef(null),d=xo.useRef(!1),m=xo.useRef(!1),h=xo.useRef(!1),b=xo.useRef(u.length),[y,g]=xo.useState(!1),T=()=>!1,x=()=>{},C=()=>{},v=r&&(!!c||s>0||i>0||l>0||a!==null);if(r){let I=xo.useCallback(P=>{if(!r||!v||i<=0){g(!1);return}fC(P,i,g)},[v,i]),O=xo.useCallback(P=>{let M=f.current;if(!M||P===null||P<0)return;let E=M.children.item(P);E&&yC(M,E,p)},[p]);T=xo.useCallback((P=null)=>mC(f.current,d,p,I,P),[p,I]);let R=xo.useCallback(P=>hC(P,P.children.item(u.length-1)),[u.length]),S=gC({boxRef:f,pendingScrollLatestRef:m,scrollToLatest:T,latestChildAtBottom:R,layoutUpdatedRef:h});x=S.startScrollLatestSettlement,C=S.stopScrollLatestSettlement,xo.useEffect(()=>{let P=f.current;if(!v||!P)return;let M=()=>{d.current||(p(Math.round(P.scrollTop)),I(P))};return P.addEventListener("scroll",M),I(P),()=>{P.removeEventListener("scroll",M)}},[v,p,I]),xo.useEffect(()=>{let P=f.current;!v||!P||d.current||Math.abs(P.scrollTop-l)<=1||(d.current=!0,P.scrollTo({top:l,behavior:"instant"}),d.current=!1,I(P))},[v,l,I]),xo.useEffect(()=>{v&&O(a)},[v,a,O]),xo.useEffect(()=>{let P=M=>{M?.type==="scroll_to"&&O(M.index)};return e.on("msg:custom",P),()=>e.off("msg:custom",P)},[e,O]),xo.useEffect(()=>{let P=f.current;if(!v||!P){b.current=u.length;return}c&&b.current===u.length?x(null,!0):u.length>b.current&&s>0&&T(s),b.current=u.length},[v,u.length,s,T,x,c])}let k={};if(o==="flex"){let[I]=e.useState("align_items"),[O]=e.useState("justify_content"),[R]=e.useState("gap"),[S]=e.useState("flex_wrap"),[P]=e.useState("flex_direction");k={alignItems:I,justifyContent:O,gap:R,flexWrap:S,flexDirection:P}}xo.useEffect(()=>{let I=()=>{h.current=!0,u.map((O,R)=>{jt(t.get_child_view(e.objects[R]),o)}),m.current&&T()};return e.on("lifecycle:update_layout",I),()=>{C?.(),e.off("lifecycle:update_layout",I)}},[]);let _=xo.useMemo(()=>[nye,{flexDirection:o},v?{overflowY:"auto"}:{},k,n||{}],[o,v,k,n]);return xo.createElement(Be,{ref:f,sx:_},u.map((I,O)=>(jt(t.get_child_view(e.objects[O]),o),I)),v&&i>0&&xo.createElement("div",{role:"button",tabIndex:0,"aria-label":"Scroll to latest",className:`scroll-button${y?" visible":""}`,onClick:()=>{x(),e.send_event("click",{})},onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),x(),e.send_event("click",{}))},style:{position:"sticky",top:"auto",bottom:"0.8rem",alignSelf:"flex-end",marginRight:"0.8rem",zIndex:1,cursor:"pointer",display:y?"inline-flex":"none"}}))}function iye(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return xo.createElement("div",{style:{display:"contents",position:"relative"}},xo.createElement(sye,{...e}),t&&xo.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},xo.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function aye(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),xo.createElement(ve,{theme:t},xo.createElement(Ce,null),xo.createElement(iye,{...e}),o.length?xo.createElement("div",{class:"attached"},o):null)}var mg={render:aye};var Ii=w(B());var lye=_S({createStyledComponent:A("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,t[`maxWidth${Te(String(o.maxWidth))}`],o.fixed&&t.fixed,o.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ce({props:e,name:"MuiContainer"})}),aP=lye;function cye(e){return K("MuiContainer",e)}var pye=Q("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]),F8=pye;var uye={height:"100%",width:"100%",display:"flex",flexDirection:"column"};function dye({model:e,view:t}){let[o]=e.useState("disable_gutters"),[r]=e.useState("fixed"),[n]=e.useState("width_option"),[s]=e.useState("sx"),i=e.get_child("objects");Ii.useEffect(()=>{let l=()=>{i.map((c,p)=>{jt(t.get_child_view(e.objects[p]),"column")})};return e.on("lifecycle:update_layout",l),()=>e.off("lifecycle:update_layout",l)},[]);let a=Ii.useMemo(()=>[uye,{minHeight:e.min_height},s||{}],[e.min_height,s]);return Ii.createElement(aP,{disableGutters:o,fixed:r,maxWidth:n||void 0,sx:a},i.map((l,c)=>(jt(t.get_child_view(e.objects[c]),"column"),l)))}function fye(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Ii.createElement("div",{style:{display:"contents",position:"relative"}},Ii.createElement(dye,{...e}),t&&Ii.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Ii.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function mye(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Ii.createElement(ve,{theme:t},Ii.createElement(Ce,null),Ii.createElement(fye,{...e}),o.length?Ii.createElement("div",{class:"attached"},o):null)}var L8={render:mye};var zo=w(B());var B8=w(J(),1),yg=be((0,B8.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var yye={display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"hidden"},rpt=A(Qe,{shouldForwardProp:e=>e!=="expand"})(({theme:e,expand:t})=>({padding:"2px",margin:"0 2px",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),...t&&{transform:"rotate(180deg)"}})),j8=A(Qe,{shouldForwardProp:e=>e!=="expand"})(({theme:e,expand:t})=>({padding:"2px",margin:"0 2px",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),...t&&{transform:"rotate(180deg)"}}));function hye({model:e,view:t,el:o}){let[r,n]=e.useState("collapsed"),[s,i]=e.useState("fully_expanded"),[a]=e.useState("header_color"),[l]=e.useState("header_css_classes"),[c]=e.useState("header_background"),[p]=e.useState("hide_header"),[u]=e.useState("square"),[f]=e.useState("sx"),[d]=e.useState("title"),[m]=e.useState("title_css_classes"),[h]=e.useState("scrollable_height"),b=e.get_child("header"),y=e.get_child("objects"),g=me(),T=p||!e.header&&(!d||d.trim()===""),x=y.length===0,C=!r,v=C&&s,k=e.objects.some(D=>D.sizing_mode==="stretch_both"||D.sizing_mode==="stretch_height"),_=zo.useRef(!1),I=()=>{if(e.height!=null){let D=v?`${e.height}px`:"auto";t.el.style.height=o.style.height=D}};_.current||(I(),_.current=!0),zo.useEffect(()=>{I()},[C,v]),zo.useEffect(()=>{let D=()=>{y.map((N,L)=>{jt(t.get_child_view(e.objects[L]),"column")})};return e.on("lifecycle:update_layout",D),()=>e.off("lifecycle:update_layout",D)},[]),e.header&&jt(t.get_child_view(e.header),"row");let O=()=>{n(!r),r||i(!1)},R=D=>{D.stopPropagation(),i(!s)},P=g.palette.mode==="dark"?g.palette.grey[900]:g.palette.grey[50],M=c||P,E=zo.useMemo(()=>[yye,{minHeight:e.min_height?`${e.min_height}px`:0,border:`1px solid ${g.palette.divider}`,borderRadius:u?0:"4px"},f||{}],[e.min_height,g.palette.divider,u,f]);return zo.createElement(Be,{className:"details",sx:E},!T&&zo.createElement(Be,{className:l?.length?`details-header ${l.join(" ")}`:"details-header",onClick:O,sx:{display:"flex",alignItems:"center",padding:"4px 8px",cursor:"pointer",backgroundColor:M,color:a||g.palette.text.primary,minHeight:"28px",fontSize:"1rem",userSelect:"none"}},zo.createElement(yg,{sx:{fontSize:"16px",marginRight:"4px",transform:C?"rotate(90deg)":"rotate(0deg)",transition:g.transitions.create("transform",{duration:g.transitions.duration.shortest})}}),e.header?b:zo.createElement($e,{classes:m,sx:{display:"inline-flex",alignItems:"center",gap:"0.25em",fontSize:"1rem",fontWeight:400,flex:1,margin:0,padding:0}},_p(d)),v&&zo.createElement(j8,{expand:!0,onClick:D=>{D.stopPropagation(),R(D)},"aria-label":"collapse to scrollable",size:"small",sx:{ml:"auto"}},zo.createElement(ma,{sx:{fontSize:"16px"}}))),zo.createElement(nr,{in:C,timeout:"auto",unmountOnExit:!0,sx:{flexGrow:1,width:"100%","& .MuiCollapse-wrapper":{height:v||k?"100% !important":"auto"}}},!x&&zo.createElement(Be,{className:"details-content",sx:{display:"flex",flexDirection:"column",height:v?"100%":"auto",maxHeight:v?"none":`${h}px`,minHeight:k&&!v&&h?`${h}px`:"none",overflowY:v?"visible":"auto",overflowX:"hidden"}},zo.createElement(Be,{sx:{display:"flex",flexDirection:"column",flex:1}},y.map((D,N)=>(jt(t.get_child_view(e.objects[N]),"column"),D))))),C&&!v&&zo.createElement(Be,{className:"details-expand-button",sx:{display:"flex",justifyContent:"center",alignItems:"center",padding:"4px",borderTop:`1px solid ${g.palette.divider}`,backgroundColor:P,position:"sticky",bottom:0}},zo.createElement(j8,{expand:!1,onClick:R,"aria-label":"expand fully",size:"small"},zo.createElement(ma,{sx:{fontSize:"16px"}}))))}function gye(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return zo.createElement("div",{style:{display:"contents",position:"relative"}},zo.createElement(hye,{...e}),t&&zo.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},zo.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function bye(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),zo.createElement(ve,{theme:t},zo.createElement(Ce,null),zo.createElement(gye,{...e}),o.length?zo.createElement("div",{class:"attached"},o):null)}var V8={render:bye};var si=w(B());var Pg=w(B(),1);function Tye(e){let t=Kt(e);return e===t.body||e===t.documentElement?Ya(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function hg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $8(e){return parseFloat(Ya(e).getComputedStyle(e).paddingRight)||0}function xye(e){let o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||r}function U8(e,t,o,r,n){let s=[t,o,...r];[].forEach.call(e.children,i=>{let a=!s.includes(i),l=!xye(i);a&&l&&hg(i,n)})}function Pye(e,t){let o=[],r=e.container;if(!t.disableScrollLock){let s;if(r.parentNode instanceof DocumentFragment)s=Kt(r).body;else{let i=r.parentElement,a=Ya(r);s=i?.nodeName==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}if(Tye(s)){let i=hh(Ya(s));o.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${$8(s)+i}px`;let a=Kt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{o.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${$8(l)+i}px`})}o.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{o.forEach(({value:s,el:i,property:a})=>{s?i.style.setProperty(a,s):i.style.removeProperty(a)})}}function vye(e){let t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}var gg=class{constructor(){this.modals=[],this.containers=[]}add(t,o){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&hg(t.modalRef,!1);let n=vye(o);U8(o,t.mount,t.modalRef,n,!0);let s=this.containers.findIndex(i=>i.container===o);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:n}),r)}mount(t,o){let r=this.containers.findIndex(s=>s.modals.includes(t)),n=this.containers[r];n.restore||(n.restore=Pye(n,o))}remove(t,o=!0){let r=this.modals.indexOf(t);if(r===-1)return r;let n=this.containers.findIndex(i=>i.modals.includes(t)),s=this.containers[n];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&hg(t.modalRef,o),U8(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(n,1);else{let i=s.modals[s.modals.length-1];i.modalRef&&hg(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}};var f1=w(B(),1);var ms=w(B(),1);var Bs=na;var bg="data-mui-focusable";function m2(e){return e?e.hasAttribute(bg)?e:e.querySelector(`[${bg}]`):null}var lP=w(J(),1),Sye=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function z8(e){let 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 Cye(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;let t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`),o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function wye(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Cye(e))}function kye(e){let t=[],o=[];return Array.from(e.querySelectorAll(Sye)).forEach((r,n)=>{let s=z8(r);s===-1||!wye(r)||(s===0?t.push(r):o.push({documentOrder:n,tabIndex:s,node:r}))}),o.sort((r,n)=>r.tabIndex===n.tabIndex?r.documentOrder-n.documentOrder:r.tabIndex-n.tabIndex).map(r=>r.node).concat(t)}function Rye(){return!0}function Iye(e){let{children:t,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:n=!1,getTabbable:s=kye,isEnabled:i=Rye,open:a}=e,l=ms.useRef(!1),c=ms.useRef(null),p=ms.useRef(null),u=ms.useRef(null),f=ms.useRef(null),d=ms.useRef(!1),m=ms.useRef(null),h=_t(ln(t),m),b=ms.useRef(null);ms.useEffect(()=>{!a||!m.current||(d.current=!o)},[o,a]),ms.useEffect(()=>{if(l.current=!1,!a||!m.current)return;let T=Kt(m.current),x=Yr(T),C=m2(m.current)??m.current;return Bs(m.current,x)||(C.hasAttribute("tabIndex")||C.setAttribute("tabIndex","-1"),d.current&&C.focus()),()=>{!n&&u.current&&(l.current=!0,u.current.focus(),u.current=null)}},[a]),ms.useEffect(()=>{if(!a||!m.current)return;let T=Kt(m.current),x=k=>{if(b.current=k,r||!i()||k.key!=="Tab")return;let _=m.current,I=Yr(T);if(_===null)return;let O=m2(_);if(I===_||I===O){let S=s(_);if(S.length===0)return;k.preventDefault(),k.shiftKey?S[S.length-1].focus():S[0].focus();return}if(Bs(_,I)){let S=s(_),P=S.indexOf(I);if(P===-1||!S.some(D=>z8(D)>0))return;k.preventDefault();let E=0;k.shiftKey?E=P<=0?S.length-1:P-1:E=P===S.length-1?0:P+1,S[E].focus()}},C=()=>{let k=m.current;if(k===null)return;let _=Yr(T);if(!T.hasFocus()||!i()||l.current){l.current=!1;return}if(Bs(k,_)||r&&_!==c.current&&_!==p.current)return;if(_!==f.current)f.current=null;else if(f.current!==null)return;if(!d.current)return;let I=[];if((_===c.current||_===p.current)&&(I=s(m.current)),I.length>0){let O=!!(b.current?.shiftKey&&b.current?.key==="Tab"),R=I[0],S=I[I.length-1];typeof R!="string"&&typeof S!="string"&&(O?S.focus():R.focus())}else k.focus()};T.addEventListener("focusin",C),T.addEventListener("keydown",x,!0);let v=setInterval(()=>{let k=Yr(T);k&&k.tagName==="BODY"&&C()},50);return()=>{clearInterval(v),T.removeEventListener("focusin",C),T.removeEventListener("keydown",x,!0)}},[o,r,n,i,a,s]);let y=T=>{u.current===null&&(u.current=T.relatedTarget),d.current=!0,f.current=T.target;let x=t.props.onFocus;x&&x(T)},g=T=>{u.current===null&&(u.current=T.relatedTarget),d.current=!0};return(0,lP.jsxs)(ms.Fragment,{children:[(0,lP.jsx)("div",{tabIndex:a?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),ms.cloneElement(t,{ref:h,onFocus:y}),(0,lP.jsx)("div",{tabIndex:a?0:-1,onFocus:g,ref:p,"data-testid":"sentinelEnd"})]})}var Em=Iye;var al=w(B(),1);function _ye(e){return typeof e=="function"?e():e}function Eye(e){return e?e.props.hasOwnProperty("in"):!1}var W8=()=>{},d1=new gg;function Mye(e){let{container:t,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:n,onTransitionExited:s,children:i,onClose:a,open:l,rootRef:c}=e,p=al.useRef({}),u=al.useRef(null),f=al.useRef(null),d=al.useRef(null),m=_t(d,c),[h,b]=al.useState(!l),y=Eye(i),g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);let T=()=>Kt(u.current),x=()=>(p.current.modalRef=d.current,p.current.mount=u.current,p.current),C=()=>{d1.mount(x(),{disableScrollLock:o}),d.current&&(d.current.scrollTop=0)},v=Ae(()=>{let D=_ye(t)||T().body;d1.add(x(),D),d.current&&C()}),k=()=>d1.isTopModal(x()),_=Ae(D=>{u.current=D,D&&(f.current=D,l&&k()?C():d.current&&hg(d.current,g))}),I=al.useCallback(()=>{d1.remove(x(),g)},[g]);al.useEffect(()=>()=>{I()},[I]),al.useEffect(()=>{l?v():(!y||!r)&&I()},[l,I,y,r,v]);let O=D=>N=>{D.onKeyDown?.(N),!(N.key!=="Escape"||N.which===229||!k())&&(N.stopPropagation(),a&&a(N,"escapeKeyDown"))},R=D=>N=>{D.onClick?.(N),N.target===N.currentTarget&&a&&a(N,"backdropClick")},S=(D={})=>{let N=Tr(e);delete N.onTransitionEnter,delete N.onTransitionExited;let L={...N,...D};return{role:"presentation",...L,onKeyDown:O(L),ref:m}},P=(D={})=>{let N=D;return{"aria-hidden":!0,...N,onClick:R(N),open:l}},M=()=>{let D=()=>{b(!1),n&&n()},N=()=>{b(!0),s&&s(),r&&I()};return{onEnter:Uf(D,i?.props.onEnter??W8),onExited:Uf(N,i?.props.onExited??W8)}},E=!l&&y&&!h?f.current??t:t;return{getRootProps:S,getBackdropProps:P,getTransitionProps:M,rootRef:m,portalRef:_,portalContainer:E,isTopModal:k,exited:h,hasTransition:y}}var H8=Mye;function y2(e){return K("MuiModal",e)}var Oye=Q("MuiModal",["root","hidden","backdrop"]),Y8=Oye;var Tg=w(J(),1),Dye=e=>{let{open:t,exited:o,classes:r}=e;return G({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},y2,r)},Nye=A("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(de(({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"}}]}))),Aye=A(Xp,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Fye=f1.forwardRef(function(t,o){let r=ce({name:"MuiModal",props:t}),{classes:n,className:s,closeAfterTransition:i=!1,children:a,container:l,component:c,disableAutoFocus:p=!1,disableEnforceFocus:u=!1,disablePortal:f=!1,disableRestoreFocus:d=!1,disableScrollLock:m=!1,hideBackdrop:h=!1,keepMounted:b=!1,onClose:y,onTransitionEnter:g,onTransitionExited:T,open:x,slotProps:C={},slots:v={},theme:k,..._}=r,I={...r,closeAfterTransition:i,disableAutoFocus:p,disableEnforceFocus:u,disablePortal:f,disableRestoreFocus:d,disableScrollLock:m,hideBackdrop:h,keepMounted:b},{getRootProps:O,getBackdropProps:R,getTransitionProps:S,portalRef:P,portalContainer:M,isTopModal:E,exited:D,hasTransition:N}=H8({...I,rootRef:o}),L={...I,exited:D},j=Dye(L),X={};if(a.props.tabIndex===void 0&&(X.tabIndex="-1"),N){let{onEnter:z,onExited:re}=S();X.onEnter=z,X.onExited=re}let H={slots:v,slotProps:C},[Z,ie]=xe("root",{ref:o,elementType:Nye,externalForwardedProps:{...H,..._,component:c},getSlotProps:O,ownerState:L,className:$(s,j?.root,!L.open&&L.exited&&j?.hidden)}),[q,ee]=xe("backdrop",{elementType:Aye,externalForwardedProps:H,shouldForwardComponentProp:!0,getSlotProps:z=>R({...z,onClick:re=>{z?.onClick&&z.onClick(re)}}),className:j?.backdrop,ownerState:L});return!b&&!x&&(!N||D)?null:(0,Tg.jsx)(vm,{ref:P,container:M,disablePortal:f,children:(0,Tg.jsxs)(Z,{...ie,children:[h?null:(0,Tg.jsx)(q,{...ee}),(0,Tg.jsx)(Em,{disableEnforceFocus:u,disableAutoFocus:p,disableRestoreFocus:d,isEnabled:E,open:x,children:f1.cloneElement(a,X)})]})})}),Qp=Fye;function h2(e){return K("MuiDialog",e)}var Lye=Q("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cP=Lye;var q8=w(B(),1),Bye=q8.createContext({}),m1=Bye;var xg=w(J(),1),jye=A(Xp,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),Vye=e=>{let{classes:t,scroll:o,maxWidth:r,fullWidth:n,fullScreen:s}=e,i={root:["root"],backdrop:["backdrop"],container:["container",`scroll${Te(o)}`],paper:["paper",`paperWidth${Te(String(r))}`,n&&"paperFullWidth",s&&"paperFullScreen"]};return G(i,h2,t)},$ye=A(Qp,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Uye=A("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.container,t[`scroll${Te(o.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),zye=A(oo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.paper,t[`paperWidth${Te(String(o.maxWidth))}`],o.fullWidth&&t.paperFullWidth,o.fullScreen&&t.paperFullScreen]}})(de(({theme:e})=>({margin:32,position:"relative",overflowY:"auto",outline:0,"@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:"xs",scroll:"body"},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t,scroll:"body"},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0}},{props:({ownerState:t})=>t.fullScreen&&t.scroll==="body",style:{margin:0,maxWidth:"100%"}}]}))),Wye=Pg.forwardRef(function(t,o){let r=ce({props:t,name:"MuiDialog"}),n=me(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,"aria-modal":l=!0,children:c,className:p,fullScreen:u=!1,fullWidth:f=!1,maxWidth:d="sm",onClick:m,onClose:h,open:b,PaperComponent:y=oo,role:g="dialog",scroll:T="paper",slots:x={},slotProps:C={},transitionDuration:v=s,...k}=r,_={...r,fullScreen:u,fullWidth:f,maxWidth:d,scroll:T},I=Vye(_),O=Pg.useRef(),R=z=>{O.current=z.target===z.currentTarget},S=z=>{m&&m(z),O.current&&(O.current=null,h&&h(z,"backdropClick"))},P=pr(a),M=Pg.useMemo(()=>({titleId:P}),[P]),E={slots:x,slotProps:C},[D,N]=xe("root",{elementType:$ye,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:_,className:$(I.root,p),ref:o}),[L,j]=xe("backdrop",{elementType:jye,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:_,className:I.backdrop}),[X,H]=xe("paper",{elementType:zye,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:_,className:I.paper,additionalProps:{elevation:24,role:g,"aria-describedby":i,"aria-labelledby":P,"aria-modal":l,tabIndex:-1,[bg]:""}}),[Z,ie]=xe("container",{elementType:Uye,externalForwardedProps:E,ownerState:_,className:I.container}),[q,ee]=xe("transition",{elementType:fs,externalForwardedProps:E,ownerState:_,additionalProps:{appear:!0,in:b,timeout:v,role:"presentation"}});return(0,xg.jsx)(D,{closeAfterTransition:!0,slots:{backdrop:L},slotProps:{backdrop:{transitionDuration:v,...j}},onClose:h,open:b,onClick:S,...N,...k,children:(0,xg.jsx)(q,{...ee,children:(0,xg.jsx)(Z,{onMouseDown:R,...ie,children:(0,xg.jsx)(X,{as:y,...H,children:(0,xg.jsx)(m1.Provider,{value:M,children:c})})})})})}),Mm=Wye;var K8=w(B(),1);function g2(e){return K("MuiDialogContent",e)}var Hye=Q("MuiDialogContent",["root","dividers"]),G8=Hye;function b2(e){return K("MuiDialogTitle",e)}var Yye=Q("MuiDialogTitle",["root"]),y1=Yye;var X8=w(J(),1),qye=e=>{let{classes:t,dividers:o}=e;return G({root:["root",o&&"dividers"]},g2,t)},Gye=A("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.dividers&&t.dividers]}})(de(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${y1.root} + &`]:{paddingTop:0}}}]}))),Kye=K8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiDialogContent"}),{className:n,dividers:s=!1,...i}=r,a={...r,dividers:s},l=qye(a);return(0,X8.jsx)(Gye,{className:$(l.root,n),ownerState:a,ref:o,...i})}),Om=Kye;var h1=w(B(),1);var Q8=w(J(),1),Xye=e=>{let{classes:t}=e;return G({root:["root"]},b2,t)},Qye=A($e,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Zye=h1.forwardRef(function(t,o){let r=ce({props:t,name:"MuiDialogTitle"}),{className:n,id:s,...i}=r,a=r,l=Xye(a),{titleId:c=s}=h1.useContext(m1);return(0,Q8.jsx)(Qye,{component:"h2",className:$(l.root,n),ownerState:a,ref:o,variant:"h6",id:s??c,...i})}),pP=Zye;function Jye({model:e,view:t}){let[o]=e.useState("close_on_click"),[r]=e.useState("full_screen"),[n,s]=e.useState("open"),[i]=e.useState("title"),[a]=e.useState("scroll"),[l]=e.useState("show_close_button"),[c]=e.useState("sx"),[p]=e.useState("title_variant"),[u]=e.useState("width_option"),f=e.get_child("objects");return si.createElement(Mm,{container:t.container,fullScreen:r,fullWidth:t.model.sizing_mode==="stretch_width"||t.model.sizing_mode==="stretch_both",maxWidth:u,open:n,onClose:()=>o&&s(!1),scroll:a,sx:c},(i||l)&&si.createElement(Be,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"}},i&&si.createElement(pP,{variant:p},fe(i)),l&&si.createElement(Qe,{"aria-label":"close",onClick:()=>s(!1),size:"small",sx:i?{alignSelf:"start"}:{ml:"auto"}},si.createElement(i1,null))),si.createElement(Om,{sx:{display:"flex",flexDirection:"column",p:"0 1em 0.5em"}},f))}function ehe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return si.createElement("div",{style:{display:"contents",position:"relative"}},si.createElement(Jye,{...e}),t&&si.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},si.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function the(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),si.createElement(ve,{theme:t},si.createElement(Ce,null),si.createElement(ehe,{...e}),o.length?si.createElement("div",{class:"attached"},o):null)}var Z8={render:the};var Mc=w(B());var J8=w(B(),1);function T2(e){return K("MuiDivider",e)}var ohe=Q("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","vertical","withChildren","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),uP=ohe;var x2=w(J(),1),rhe=e=>{let{absolute:t,children:o,classes:r,flexItem:n,orientation:s,textAlign:i,variant:a}=e;return G({root:["root",t&&"absolute",a,s==="vertical"&&"vertical",n&&"flexItem",o&&"withChildren",i==="right"&&s!=="vertical"&&"textAlignRight",i==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},T2,r)},nhe=A("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.absolute&&t.absolute,t[o.variant],o.orientation==="vertical"&&t.vertical,o.flexItem&&t.flexItem,o.children&&t.withChildren,o.textAlign==="right"&&o.orientation!=="vertical"&&t.textAlignRight,o.textAlign==="left"&&o.orientation!=="vertical"&&t.textAlignLeft]}})(de(({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:{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%"}}}]}))),she=A("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.wrapper,o.orientation==="vertical"&&t.wrapperVertical]}})(de(({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)`}}]}))),ihe=J8.forwardRef(function(t,o){let r=ce({props:t,name:"MuiDivider"}),{absolute:n=!1,children:s,className:i,orientation:a="horizontal",component:l=s||a==="vertical"?"div":"hr",flexItem:c=!1,role:p=l!=="hr"?"separator":void 0,textAlign:u="center",variant:f="fullWidth",...d}=r,m={...r,absolute:n,component:l,flexItem:c,orientation:a,role:p,textAlign:u,variant:f},h=rhe(m);return(0,x2.jsx)(nhe,{as:l,className:$(h.root,i),role:p,ref:o,ownerState:m,"aria-orientation":p==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...d,children:s?(0,x2.jsx)(she,{className:h.wrapper,ownerState:m,children:s}):null})}),Wo=ihe;function ahe({model:e}){let[t]=e.useState("orientation"),[o]=e.useState("variant"),[r]=e.useState("sx"),n=e.get_child("objects");return Mc.createElement(Wo,{orientation:t,variant:o,sx:r},n.length>0?n:null)}function lhe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Mc.createElement("div",{style:{display:"contents",position:"relative"}},Mc.createElement(ahe,{...e}),t&&Mc.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Mc.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function che(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Mc.createElement(ve,{theme:t},Mc.createElement(Ce,null),Mc.createElement(lhe,{...e}),o.length?Mc.createElement("div",{class:"attached"},o):null)}var e6={render:che};var Qo=w(B());var Zp=w(B(),1);var ll=w(B(),1);var t6=w(J(),1),phe={visibility:"hidden"},uhe={};function dhe(e){return typeof e=="string"&&/^translate\(.+,\s*.+\)$/.test(e)}function fhe(e,t,o,r=uhe){let{resetInlineTransform:n=!0}=r,s=o&&o.getBoundingClientRect(),i=xn(t),a,l;if(n){let u=t.style.transform,f=t.style.transition;t.style.transition="",t.style.transform="",a=t.getBoundingClientRect(),l=i.getComputedStyle(t).getPropertyValue("transform"),t.style.transform=u,t.style.transition=f}else a=t.getBoundingClientRect(),l=i.getComputedStyle(t).getPropertyValue("transform");let{offsetX:c,offsetY:p}=u$(l);return e==="left"?s?`translateX(${s.right+c-a.left}px)`:`translateX(${i.innerWidth+c-a.left}px)`:e==="right"?s?`translateX(-${a.right-s.left-c}px)`:`translateX(-${a.left+a.width-c}px)`:e==="up"?s?`translateY(${s.bottom+p-a.top}px)`:`translateY(${i.innerHeight+p-a.top}px)`:s?`translateY(-${a.top-s.top+a.height-p}px)`:`translateY(-${a.top+a.height-p}px)`}function mhe(e){return typeof e=="function"?e():e}function g1(e,t,o,r){let n=mhe(o),s=fhe(e,t,n,r);s&&(t.style.transform=s)}var yhe=ll.forwardRef(function(t,o){let r=me(),n={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,container:c,disablePrefersReducedMotion:p=!1,direction:u="down",easing:f=n,in:d,onEnter:m,onEntered:h,onEntering:b,onExit:y,onExited:g,onExiting:T,style:x,timeout:C=s,...v}=t,k=Pn(r.motion.reducedMotion,p),_=ll.useRef(null),I=ll.useRef(!1),O=Wt(ln(l),_,o),R=uo(_,(j,X)=>{g1(u,j,c),k.shouldReduceMotion||Tc(j),m&&m(j,X)}),S=uo(_,(j,X)=>{let H=os({timeout:C,style:x,easing:f},{mode:"enter"}),Z=k.getTransitionTiming({duration:H.duration,delay:H.delay});j.style.transition=r.transitions.create("transform",{duration:Z.duration,easing:H.easing,delay:Z.delay}),j.style.transform="none",b&&b(j,X)}),P=uo(_,h),M=uo(_,T),E=uo(_,j=>{let X=os({timeout:C,style:x,easing:f},{mode:"exit"}),H=k.getTransitionTiming({duration:X.duration,delay:X.delay});j.style.transition=r.transitions.create("transform",{duration:H.duration,easing:X.easing,delay:H.delay});let Z=dhe(j.style.transform);I.current=Z,g1(u,j,c,{resetInlineTransform:!Z}),y&&y(j)}),D=uo(_,j=>{I.current=!1,j.style.transition="",g&&g(j)}),N=i?j=>{i(_.current,j)}:void 0,L=ll.useCallback(()=>{_.current&&g1(u,_.current,c)},[u,c]);return ll.useEffect(()=>{if(d||u==="down"||u==="right")return;let j=vc(()=>{_.current&&g1(u,_.current,c)}),X=xn(_.current);return X.addEventListener("resize",j),()=>{j.clear(),X.removeEventListener("resize",j)}},[u,d,c]),ll.useEffect(()=>{!d&&!I.current&&L()},[d,L]),(0,t6.jsx)(Sc,{nodeRef:_,onEnter:R,onEntered:P,onEntering:S,onExit:E,onExited:D,onExiting:M,addEndListener:N,appear:a,in:d,reduceMotion:k.shouldReduceMotion,timeout:C,...v,children:(j,{ownerState:X,...H})=>{let Z;return j==="exited"&&!d?Z=x||l.props.style?{visibility:"hidden",...x,...l.props.style}:phe:x&&l.props.style?Z={...x,...l.props.style}:Z=x||l.props.style,ll.cloneElement(l,{ref:O,style:Z,...H})}})}),Nd=yhe;function P2(e){return K("MuiDrawer",e)}var hhe=Q("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","modal"]),o6=hhe;var vg=w(J(),1),r6=(e,t)=>{let{ownerState:o}=e;return[t.root,(o.variant==="permanent"||o.variant==="persistent")&&t.docked,o.variant==="temporary"&&t.modal]},ghe=e=>{let{classes:t,anchor:o,variant:r}=e,n={root:["root",`anchor${Te(o)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper"]};return G(n,P2,t)},bhe=A(Qp,{name:"MuiDrawer",slot:"Root",overridesResolver:r6})(de(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),The=A("div",{shouldForwardProp:Ht,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:r6})({flex:"0 0 auto"}),xhe=A(oo,{name:"MuiDrawer",slot:"Paper"})(de(({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}`}}]}))),n6={left:"right",right:"left",top:"down",bottom:"up"};function Jp(e){return["left","right"].includes(e)}function Sg({direction:e},t){return e==="rtl"&&Jp(t)?n6[t]:t}var Phe=Zp.forwardRef(function(t,o){let r=ce({props:t,name:"MuiDrawer"}),n=me(),s=zt(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{anchor:a="left",children:l,className:c,elevation:p=16,hideBackdrop:u=!1,ModalProps:f={},onClose:d,open:m=!1,transitionDuration:h=i,variant:b="temporary",slots:y={},slotProps:g={},...T}=r,x=Zp.useRef(!1),C=Zp.useRef(null),v=Wt(o,C);Zp.useEffect(()=>{x.current=!0},[]);let k=Zp.useCallback(()=>C.current,[]),_=Sg({direction:s?"rtl":"ltr"},a),O={...r,anchor:a,elevation:p,open:m,variant:b,...T},R=ghe(O),S={slots:y,slotProps:{...g,backdrop:vi(g.backdrop,{transitionDuration:h})}},[P,M]=xe("root",{ref:v,elementType:bhe,className:$(R.root,R.modal,c),shouldForwardComponentProp:!0,ownerState:O,externalForwardedProps:{...S,...T,...f},additionalProps:{closeAfterTransition:!0,open:m,onClose:d,hideBackdrop:u,slots:{backdrop:S.slots.backdrop},slotProps:{backdrop:S.slotProps.backdrop}}}),[E,D]=xe("paper",{elementType:xhe,shouldForwardComponentProp:!0,className:R.paper,ownerState:O,externalForwardedProps:S,additionalProps:{elevation:b==="temporary"?p:0,square:!0,...b==="temporary"&&{role:"dialog","aria-modal":"true",[bg]:"",tabIndex:-1}}}),[N,L]=xe("docked",{elementType:The,ref:v,className:$(R.root,R.docked,c),ownerState:O,externalForwardedProps:S,additionalProps:T}),[j,X]=xe("transition",{elementType:Nd,ownerState:O,externalForwardedProps:S,additionalProps:{in:m,direction:n6[_],timeout:h,appear:x.current,...b==="temporary"&&(y.transition==null||y.transition===Nd)&&{container:k}}}),H=(0,vg.jsx)(E,{...D,children:l});if(b==="permanent")return(0,vg.jsx)(N,{...L,children:H});let Z=(0,vg.jsx)(j,{...X,children:H});return b==="persistent"?(0,vg.jsx)(N,{...L,children:Z}):(0,vg.jsx)(P,{...M,children:Z})}),ga=Phe;var Gl=24,Ad=48,vhe={left:{open:"chevron_left",closed:"chevron_right"},right:{open:"chevron_right",closed:"chevron_left"},top:{open:"expand_less",closed:"expand_more"},bottom:{open:"expand_more",closed:"expand_less"}};function v2(e,t){if(e==="left"||e==="right")switch(t){case"start":return{top:`${Ad}px`};case"end":return{bottom:`${Ad}px`};default:return{top:"50%",transform:"translateY(-50%)"}}else switch(t){case"start":return{left:`${Ad}px`};case"end":return{right:`${Ad}px`};default:return{left:"50%",transform:"translateX(-50%)"}}}function b1({anchor:e,open:t,dockPosition:o,attached:r,inline:n,onClick:s,icon:i}){let a=e==="left"||e==="right",l=i||vhe[e][t?"open":"closed"],c=n?{}:r?{[e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top"]:`-${Gl+1}px`,...v2(e,o)}:{[e]:0,...v2(e,o)},p={position:n?"relative":"absolute",...c,width:a?`${Gl}px`:`${Ad}px`,height:a?`${Ad}px`:`${Gl}px`,...n&&a?{height:"100%"}:{},...n&&!a?{width:"100%"}:{},minWidth:0,minHeight:0,padding:0,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1,borderRadius:(()=>{switch(e){case"left":return"0 4px 4px 0";case"right":return"4px 0 0 4px";case"top":return"0 0 4px 4px";case"bottom":return"4px 4px 0 0"}})()};return Qo.createElement(oo,{elevation:2,sx:p,onClick:s,role:"button","aria-label":t?"Close drawer":"Open drawer"},pt(l,null,null,"1.2rem"))}function She({model:e,view:t}){let[o]=e.useState("anchor"),[r]=e.useState("dock_icon"),[n]=e.useState("dock_position"),[s]=e.useState("inline"),[i,a]=e.useState("open"),[l]=e.useState("size"),[c]=e.useState("sx"),[p]=e.useState("variant"),u=e.get_child("objects"),f=p==="docked",d=o==="left"||o==="right",m;if(["top","bottom"].includes(o)?(m={height:`${l}px`},!s&&!["temporary","docked"].includes(p)&&(t.el.style.height=`${i?l:0}px`)):(m={width:`${l}px`},!s&&!["temporary","docked"].includes(p)&&(t.el.style.width=`${i?l:0}px`)),Qo.useEffect(()=>{let b=()=>{u.map((y,g)=>{jt(t.get_child_view(e.objects[g]),"column")})};return e.on("lifecycle:update_layout",b),()=>e.off("lifecycle:update_layout",b)},[]),Qo.useEffect(()=>{s&&(f?d?(t.el.style.width=i?`${l+Gl}px`:"0px",t.el.style.height="100%",t.el.style.overflow="visible"):(t.el.style.height=i?`${l+Gl}px`:"0px",t.el.style.width="100%",t.el.style.overflow="visible"):d?(t.el.style.width=`${i?l:0}px`,t.el.style.height="100%"):(t.el.style.height=`${i?l:0}px`,t.el.style.width="100%"))},[s,f,i,l,d]),f){if(s){let g={position:"relative",[d?"width":"height"]:i?`${l+Gl}px`:"0px",[d?"height":"width"]:"100%",transition:"width 225ms cubic-bezier(0, 0, 0.2, 1), height 225ms cubic-bezier(0, 0, 0.2, 1)",overflow:"visible",pointerEvents:"none",flexShrink:0},T={position:"relative",width:"100%",height:"100%",pointerEvents:"auto"},x={position:"absolute",[o==="left"?"right":o==="right"?"left":o==="top"?"bottom":"top"]:`-${Gl}px`,...v2(o,n),width:d?`${Gl}px`:`${Ad}px`,height:d?`${Ad}px`:`${Gl}px`,pointerEvents:"auto",zIndex:1200};return Qo.createElement("div",{style:g},Qo.createElement("div",{style:T},Qo.createElement(ga,{anchor:o,open:i,onClose:()=>a(!1),slotProps:{paper:{sx:[m,{overflow:"visible"},c||{}]}},variant:"persistent",sx:{"& .MuiDrawer-root":{position:"absolute"},"& .MuiPaper-root":{position:"absolute"}}},u.map((C,v)=>(jt(t.get_child_view(e.objects[v]),"column"),C)),Qo.createElement(b1,{anchor:o,open:i,dockPosition:n,attached:!0,onClick:()=>a(!1)})),!i&&Qo.createElement("div",{style:x},Qo.createElement(b1,{anchor:o,open:!1,dockPosition:n,inline:!0,attached:!1,onClick:()=>a(!0)}))))}let b={position:"fixed",top:0,[o]:0,[d?"width":"height"]:i?`${l+Gl}px`:`${Gl}px`,[d?"height":"width"]:"100%",zIndex:1200,pointerEvents:"none"},y={position:"relative",[d?"width":"height"]:"100%",[d?"height":"width"]:"100%",pointerEvents:"auto"};return Qo.createElement("div",{style:b},Qo.createElement("div",{style:y},Qo.createElement(ga,{anchor:o,open:i,onClose:()=>a(!1),slotProps:{paper:{sx:[m,{overflow:"visible"},c||{}]}},variant:"persistent"},u.map((g,T)=>(jt(t.get_child_view(e.objects[T]),"column"),g)),Qo.createElement(b1,{anchor:o,open:i,dockPosition:n,attached:!0,onClick:()=>a(!1),icon:r})),!i&&Qo.createElement(b1,{anchor:o,open:!1,dockPosition:n,attached:!1,onClick:()=>a(!0),icon:r})))}let h={paper:{sx:[m,c||{}]}};return s?Qo.createElement("div",{style:{position:"relative",overflow:"hidden",[d?"height":"width"]:"100%"}},Qo.createElement(ga,{anchor:o,open:i,onClose:()=>a(!1),slotProps:h,variant:p==="temporary"?"persistent":p,sx:{"& .MuiDrawer-root":{position:"absolute"},"& .MuiPaper-root":{position:"absolute"}}},u.map((b,y)=>(jt(t.get_child_view(e.objects[y]),"column"),b)))):Qo.createElement(ga,{anchor:o,open:i,onClose:()=>a(!1),slotProps:h,variant:p},u.map((b,y)=>(jt(t.get_child_view(e.objects[y]),"column"),b)))}function Che(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Qo.createElement("div",{style:{display:"contents",position:"relative"}},Qo.createElement(She,{...e}),t&&Qo.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Qo.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function whe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Qo.createElement(ve,{theme:t},Qo.createElement(Ce,null),Qo.createElement(Che,{...e}),o.length?Qo.createElement("div",{class:"attached"},o):null)}var s6={render:whe};var At=w(B());var khe={minHeight:"100%",display:"flex",position:"relative",alignSelf:"stretch",boxSizing:"border-box",minWidth:0};function Rhe({model:e,view:t,el:o}){let[r]=e.useState("sx"),[n]=e.useState("scroll_button_threshold"),[s]=e.useState("scroll_index"),[i,a]=e.useState("scroll_position"),[l]=e.useState("view_latest"),[c,p]=e.useState("visible_children"),u=e.get_child("objects"),f=e.esm_constants.direction,d=At.useRef(null),m=At.useRef(!1),[h,b]=At.useState(0),[y,g]=At.useState(!1),T=At.useRef(new Map),x=At.useRef(new Set(c||[])),C=At.useRef(!l),v=At.useRef(null),k=At.useRef(!1),_=At.useRef(!1),I=At.useRef(null),O=At.useRef(new Map);o.style.width="100%";let R=At.useCallback(q=>{fC(q,t.model.data.scroll_button_threshold,g)},[]),S=At.useCallback((q=null)=>mC(d.current,m,a,R,q),[]),P=At.useCallback(q=>{let ee=e.objects[e.objects.length-1],z=ee?T.current.get(ee.id):null;return hC(q,z)},[]),M=At.useCallback(()=>{let q=e.objects[e.objects.length-1],ee=q?[q.id]:[];x.current=new Set(ee),p(ee)},[]),E=At.useCallback((q=d.current)=>{if(!q)return;let ee=Math.max(q.offsetWidth-q.clientWidth,0);b(z=>z===ee?z:ee)},[]),D=At.useCallback(q=>{if(!q){d.current=null;return}let ee=q.getRootNode(),z=ee instanceof ShadowRoot?ee.host:null;d.current=q.closest(".scroll-vertical, .scrollable-vertical, .scrollable")??z?.closest(".scroll-vertical, .scrollable-vertical, .scrollable")??z??q,E(d.current)},[]),{startScrollLatestSettlement:N,stopScrollLatestSettlement:L,scrollSettledCallbackRef:j}=gC({boxRef:d,pendingScrollLatestRef:k,topAnchorRef:v,scrollToLatest:S,latestChildAtBottom:P,onDefaultSettled:M,layoutUpdatedRef:_}),X=At.useCallback(()=>{k.current=!0,v.current=null},[]),H=At.useCallback(q=>{let ee=d.current;if(!ee||q===null||q<0)return;let z=T.current.get(e.objects[q]?.id);z&&yC(ee,z,a)},[]),Z=At.useCallback(q=>{let ee=q.scrollTop;for(let z of e.objects){let re=T.current.get(z.id);if(!re)continue;let Y=re.offsetTop-q.offsetTop;if(Y+re.offsetHeight>ee+1){v.current={id:z.id,viewportOffset:Y-ee};return}}v.current=null},[]);At.useEffect(()=>{let q=d.current;if(!q)return;let ee=()=>{m.current||(a(Math.round(q.scrollTop)),R(q),Z(q))};return q.addEventListener("scroll",ee),R(q),E(q),Z(q),()=>q.removeEventListener("scroll",ee)},[]),At.useEffect(()=>{let q=d.current;!q||m.current||Math.abs(q.scrollTop-i)<=1||(m.current=!0,q.scrollTo({top:i,behavior:"instant"}),m.current=!1,R(q))},[]),At.useEffect(()=>{H(s)},[s]),At.useEffect(()=>{let q=ee=>{ee?.type==="scroll_to"?H(ee.index):ee?.type==="scroll_latest"&&S(ee.scroll_limit??null)&&N()};return e.on("msg:custom",q),()=>e.off("msg:custom",q)},[]),At.useEffect(()=>{if(!l){C.current=!0;return}if(C.current)return;let q=()=>{C.current=!0,M()},ee=requestAnimationFrame(()=>{N(q)});return()=>cancelAnimationFrame(ee)},[l]),At.useEffect(()=>{let q=()=>{_.current=!0,E(),u.map((ee,z)=>{jt(t.get_child_view(e.objects[z]),f)}),l&&!C.current?N(()=>{C.current=!0,M()}):k.current&&S()};return e.on("lifecycle:update_layout",q),()=>e.off("lifecycle:update_layout",q)},[]),At.useEffect(()=>{let q=d.current;if(!q)return;let ee=new IntersectionObserver(z=>{if(k.current)return;let re=!1,Y=new Set(x.current);for(let ne of z){let te=ne.target.getAttribute("data-feed-child-id");te&&(ne.isIntersecting?Y.has(te)||(Y.add(te),re=!0):Y.has(te)&&(Y.delete(te),re=!0))}if(!re||(x.current=Y,!C.current))return;let W=e.objects.map(ne=>ne.id).filter(ne=>Y.has(ne));p(W)},{root:q,threshold:.01});return I.current=ee,()=>{L();for(let z of O.current.values())ee.unobserve(z);O.current.clear(),ee.disconnect(),I.current=null}},[]),At.useEffect(()=>{let q=I.current;if(!q)return;let ee=T.current,z=!1,re=new Set(x.current);for(let[Y,W]of O.current){let ne=ee.get(Y);(!ne||ne!==W)&&(q.unobserve(W),O.current.delete(Y),re.delete(Y)&&(z=!0))}for(let[Y,W]of ee)O.current.get(Y)!==W&&(q.observe(W),O.current.set(Y,W))},[u]),At.useLayoutEffect(()=>{let q=d.current;if(!q)return;if(E(q),R(q),k.current){N(j.current);return}let ee=v.current;if(!ee)return;let z=T.current.get(ee.id);if(!z)return;let re=z.offsetTop-q.offsetTop,Y=Math.round(re-ee.viewportOffset);Math.abs(q.scrollTop-Y)<=1||(m.current=!0,q.scrollTo({top:Y,behavior:"instant"}),a(Math.round(q.scrollTop)),m.current=!1,R(q))},[u]);let ie=At.useMemo(()=>[khe,{flexDirection:f,width:h?`calc(100% - ${h}px)`:"100%"},{"& > div":{flex:"0 0 auto",maxHeight:"unset"}},r||{}],[f,h,r]);return At.createElement(Be,{ref:D,sx:ie},u.map((q,ee)=>{let z=e.objects[ee],re=z?.id??`${ee}`;return jt(t.get_child_view(z),f),At.createElement("div",{key:re,"data-feed-child-id":re,ref:Y=>{Y?T.current.set(re,Y):T.current.delete(re)}},q)}),n>0&&At.createElement("div",{role:"button",tabIndex:0,"aria-label":"Scroll to latest",className:`scroll-button${y?" visible":""}`,onClick:()=>{X(),S(),e.send_event("click",{})},onKeyDown:q=>{(q.key==="Enter"||q.key===" ")&&(q.preventDefault(),X(),S(),e.send_event("click",{}))},style:{position:"sticky",top:"auto",bottom:"0.8rem",alignSelf:"flex-end",marginRight:"0.8rem",zIndex:1,cursor:"pointer",display:y?"inline-flex":"none"}}))}function Ihe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return At.createElement("div",{style:{display:"contents",position:"relative"}},At.createElement(Rhe,{...e}),t&&At.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},At.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function _he(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),At.createElement(ve,{theme:t},At.createElement(Ce,null),At.createElement(Ihe,{...e}),o.length?At.createElement("div",{class:"attached"},o):null)}var i6={render:_he};var _i=w(B());var Ehe=OS({createStyledComponent:A("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>ce({props:e,name:"MuiGrid"}),useTheme:me}),Oc=Ehe;function Mhe(e){return K("MuiGrid",e)}var Ohe=[0,1,2,3,4,5,6,7,8,9,10],Dhe=["row-reverse","row"],Nhe=["nowrap","wrap-reverse","wrap"],dP=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ahe=Q("MuiGrid",["root","container",...Ohe.map(e=>`spacing-xs-${e}`),...Dhe.map(e=>`direction-xs-${e}`),...Nhe.map(e=>`wrap-xs-${e}`),...dP.map(e=>`grid-xs-${e}`),...dP.map(e=>`grid-sm-${e}`),...dP.map(e=>`grid-md-${e}`),...dP.map(e=>`grid-lg-${e}`),...dP.map(e=>`grid-xl-${e}`)]),a6=Ahe;var l6={height:"100%",width:"100%"};function Fhe({model:e,view:t}){let[o]=e.useState("columns"),[r]=e.useState("direction"),[n]=e.useState("column_spacing"),[s]=e.useState("row_spacing"),[i]=e.useState("size"),[a]=e.useState("sx"),[l]=e.useState("objects"),[c]=e.useState("container"),[p]=e.useState("spacing"),u=e.get_child("objects"),f=_i.useMemo(()=>a?[l6,a]:l6,[a]);return t.parent?.model?.class_name==="Grid"?_i.createElement("div",{style:{display:"contents"}},u):_i.createElement(Oc,{container:c,columns:o,direction:r,columnSpacing:n,rowSpacing:s,size:i,spacing:p,sx:f},l.map((d,m)=>{let h=u[m];return d.class_name==="Grid"?_i.createElement(Oc,{columns:d.data.columns,columnSpacing:d.data.column_spacing,direction:d.data.direction,rowSpacing:d.data.row_spacing,size:d.data.size,spacing:d.data.spacing},h):h}))}function Lhe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return _i.createElement("div",{style:{display:"contents",position:"relative"}},_i.createElement(Fhe,{...e}),t&&_i.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},_i.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Bhe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),_i.createElement(ve,{theme:t},_i.createElement(Ce,null),_i.createElement(Lhe,{...e}),o.length?_i.createElement("div",{class:"attached"},o):null)}var c6={render:Bhe};var Ei=w(B());var jhe={height:"100%",width:"100%",display:"flex"};function Vhe({model:e,view:t}){let[o]=e.useState("direction"),[r]=e.useState("elevation"),[n]=e.useState("square"),[s]=e.useState("sx"),[i]=e.useState("variant"),a=e.get_child("objects");Ei.useEffect(()=>{let c=()=>{a.map((p,u)=>{jt(t.get_child_view(e.objects[u]),"column")})};return e.on("lifecycle:update_layout",c),()=>e.off("lifecycle:update_layout",c)},[]);let l=Ei.useMemo(()=>[jhe,{flexDirection:o},s||{}],[o,s]);return Ei.createElement(oo,{elevation:r,square:n,sx:l,variant:i},a.map((c,p)=>(jt(t.get_child_view(e.objects[p]),"column"),c)))}function $he(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Ei.createElement("div",{style:{display:"contents",position:"relative"}},Ei.createElement(Vhe,{...e}),t&&Ei.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Ei.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Uhe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Ei.createElement(ve,{theme:t},Ei.createElement(Ce,null),Ei.createElement($he,{...e}),o.length?Ei.createElement("div",{class:"attached"},o):null)}var p6={render:Uhe};var cl=w(B());var ys=w(B(),1);function S2(e){return K("MuiPopover",e)}var zhe=Q("MuiPopover",["root","paper"]),u6=zhe;var x1=w(J(),1);function C2(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function w2(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function d6(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function T1(e){return typeof e=="function"?e():e}var Whe=e=>{let{classes:t}=e;return G({root:["root"],paper:["paper"]},S2,t)},f6=A(Qp,{name:"MuiPopover",slot:"Root"})({}),P1=A(oo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Hhe=ys.forwardRef(function(t,o){let r=ce({props:t,name:"MuiPopover"}),{action:n,anchorEl:s,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:p,container:u,disableAutoFocus:f=!1,elevation:d=8,marginThreshold:m=16,open:h,slots:b={},slotProps:y={},transformOrigin:g={vertical:"top",horizontal:"left"},transitionDuration:T="auto",disableScrollLock:x=!1,...C}=r,v=ys.useRef(),k={...r,anchorOrigin:i,anchorReference:l,elevation:d,marginThreshold:m,transformOrigin:g,transitionDuration:T},_=Whe(k),I=ys.useCallback(()=>{if(l==="anchorPosition")return a;let Y=T1(s),ne=(Y&&Y.nodeType===1?Y:kr(v.current).body).getBoundingClientRect();return{top:ne.top+C2(ne,i.vertical),left:ne.left+w2(ne,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),O=ys.useCallback(Y=>({vertical:C2(Y,g.vertical),horizontal:w2(Y,g.horizontal)}),[g.horizontal,g.vertical]),R=ys.useCallback(Y=>{let W={width:Y.offsetWidth,height:Y.offsetHeight},ne=O(W);if(l==="none")return{top:null,left:null,transformOrigin:d6(ne)};let te=I(),U=te.top-ne.vertical,ue=te.left-ne.horizontal,V=U+W.height,pe=ue+W.width,se=xn(T1(s)),ye=se.innerHeight-m,le=se.innerWidth-m;if(m!=null&&U<m){let ge=U-m;U-=ge,ne.vertical+=ge}else if(m!=null&&V>ye){let ge=V-ye;U-=ge,ne.vertical+=ge}if(m!=null&&ue<m){let ge=ue-m;ue-=ge,ne.horizontal+=ge}else if(pe>le){let ge=pe-le;ue-=ge,ne.horizontal+=ge}return{top:`${Math.round(U)}px`,left:`${Math.round(ue)}px`,transformOrigin:d6(ne)}},[s,l,I,O,m]),[S,P]=ys.useState(h),M=ys.useCallback(()=>{let Y=v.current;if(!Y)return;let W=R(Y);W.top!=null&&Y.style.setProperty("top",W.top),W.left!=null&&(Y.style.left=W.left),Y.style.transformOrigin=W.transformOrigin,P(!0)},[R]);ys.useEffect(()=>(x&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[s,x,M]);let E=()=>{M()},D=()=>{P(!1)};ys.useEffect(()=>{h&&M()}),ys.useImperativeHandle(n,()=>h?{updatePosition:()=>{M()}}:null,[h,M]),ys.useEffect(()=>{if(!h)return;let Y=vc(()=>{M()}),W=xn(T1(s));return W.addEventListener("resize",Y),()=>{Y.clear(),W.removeEventListener("resize",Y)}},[s,h,M]);let N=T,L={slots:b,slotProps:y},[j,X]=xe("transition",{elementType:Js,externalForwardedProps:L,ownerState:k,getSlotProps:Y=>({...Y,onEntering:(W,ne)=>{Y.onEntering?.(W,ne),E()},onExited:W=>{Y.onExited?.(W),D()}}),additionalProps:{appear:!0,in:h}});T==="auto"&&!j.muiSupportAuto&&(N=void 0);let H=u||(s?kr(T1(s)).body:void 0),[Z,{slots:ie,slotProps:q,...ee}]=xe("root",{ref:o,elementType:f6,externalForwardedProps:{...L,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:vi(typeof y.backdrop=="function"?y.backdrop(k):y.backdrop,{invisible:!0})},container:H,open:h},ownerState:k,className:$(_.root,p)}),[z,re]=xe("paper",{ref:v,className:_.paper,elementType:P1,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:S?void 0:{opacity:0}},ownerState:k});return(0,x1.jsx)(Z,{...ee,...!Ha(Z)&&{slots:ie,slotProps:q,disableAutoFocus:f,disableScrollLock:x},children:(0,x1.jsx)(j,{...X,timeout:N,children:(0,x1.jsx)(z,{...re,children:c})})})}),eu=Hhe;function Yhe({model:e,view:t},o){let[r]=e.useState("anchor_origin"),[n]=e.useState("anchor_position"),[s]=e.useState("close_on_click"),[i]=e.useState("elevation"),[a]=e.useState("enforce_focus"),[l]=e.useState("hide_backdrop"),[c,p]=e.useState("open"),[u]=e.useState("sx"),[f]=e.useState("transform_origin"),d=e.get_child("objects"),m=t.parent?.child_views.includes(t)?t.parent.el:null;return cl.useEffect(()=>{let h=()=>{d.map((b,y)=>{jt(t.get_child_view(e.objects[y]),"column")})};return e.on("lifecycle:update_layout",h),()=>e.off("lifecycle:update_layout",h)},[]),cl.createElement(eu,{anchorEl:m,anchorOrigin:r,anchorPosition:n?{left:n[1],top:n[0]}:void 0,anchorReference:n==null?"anchorEl":"anchorPosition",container:t.container,disableEnforceFocus:!a,elevation:i,marginThreshold:0,hideBackdrop:l,onClose:()=>s&&p(!1),open:c,sx:u,transformOrigin:f??void 0},d)}function qhe(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return cl.createElement("div",{style:{display:"contents",position:"relative"}},cl.createElement(Yhe,{...e}),t&&cl.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},cl.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function Ghe(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),cl.createElement(ve,{theme:t},cl.createElement(Ce,null),cl.createElement(qhe,{...e}),o.length?cl.createElement("div",{class:"attached"},o):null)}var m6={render:Ghe};var Or=w(B());var No=w(B(),1);function Khe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function k2(e,t,o,r={},n=()=>{}){let{ease:s=Khe,duration:i=300}=r,a=null,l=t[e],c=!1,p=()=>{c=!0},u=f=>{if(c){n(new Error("Animation cancelled"));return}a===null&&(a=f);let d=Math.min(1,(f-a)/i);if(t[e]=s(d)*(o-l)+l,d>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(u)};return l===o?(n(new Error("Element already at target position")),p):(requestAnimationFrame(u),p)}var fP=w(B(),1);var y6=w(J(),1),Xhe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll",pointerEvents:"none"};function R2(e){let{onChange:t,...o}=e,r=fP.useRef(),n=fP.useRef(null),s=()=>{r.current=n.current.offsetHeight-n.current.clientHeight};return an(()=>{let i=vc(()=>{let l=r.current;s(),l!==r.current&&t(r.current)}),a=xn(n.current);return a.addEventListener("resize",i),()=>{i.clear(),a.removeEventListener("resize",i)}},[t]),fP.useEffect(()=>{s(),t(r.current)},[t]),(0,y6.jsx)("div",{style:Xhe,...o,ref:n})}var b6=w(B(),1);var h6=w(J(),1),v1=be((0,h6.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft");var g6=w(J(),1),S1=be((0,g6.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function I2(e){return K("MuiTabScrollButton",e)}var Qhe=Q("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),C1=Qhe;var w1=w(J(),1),Zhe=e=>{let{classes:t,orientation:o,disabled:r}=e;return G({root:["root",o,r&&"disabled"]},I2,t)},Jhe=A(Qt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${C1.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),ege=b6.forwardRef(function(t,o){let r=ce({props:t,name:"MuiTabScrollButton"}),{className:n,slots:s={},slotProps:i={},direction:a,orientation:l,disabled:c,...p}=r,{nativeButton:u,...f}=p,d=zt(),m={isRtl:d,...r},h=Zhe(m),b=s.StartScrollButtonIcon??v1,y=s.EndScrollButtonIcon??S1,g=Je({elementType:b,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),T=Je({elementType:y,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return(0,w1.jsx)(Jhe,{component:"div",className:$(h.root,n),ref:o,role:null,ownerState:m,tabIndex:null,...f,style:{...f.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:a==="left"?(0,w1.jsx)(b,{...g}):(0,w1.jsx)(y,{...T})})}),mP=ege;function _2(e){return K("MuiTabs",e)}var tge=Q("MuiTabs",["root","vertical","list","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Fd=tge;var k1=w(B(),1),Dc=k1.createContext(void 0);function Dm(){let e=k1.useContext(Dc);if(e===void 0)throw new Error("MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.");return e}var Ur=w(B(),1);var oge=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","Home","End"];function tu(e){let{activeItemId:t,getDefaultActiveItemId:o,orientation:r,isRtl:n=!1,isItemFocusable:s=Cg,wrap:i=!0}=e,[a,l]=Ur.useState(t),[c,p]=Ur.useState(t),u=a;t!==c&&(p(t),t!==void 0&&t!==a&&(u=t,l(t)));let f=Ur.useRef(null),d=Ur.useRef(new Map),[m,h]=Ur.useState(0),b=Ur.useMemo(()=>E2(d.current),[m]),y=T6(u,b,s,o),g=Ur.useRef(y);g.current=y;let T=Ur.useCallback(()=>{let S=E2(d.current),P=T6(g.current,S,s,o);return C6(S,P)},[o,s]),x=Ur.useCallback(()=>d.current,[]),C=Ae(S=>{let P=d.current.get(S.id);eC(P??null,S)||(d.current.set(S.id,S),h(M=>M+1))}),v=Ae(S=>{d.current.delete(S)&&h(P=>P+1)}),k=Ae(S=>{l(S)}),_=Ur.useCallback(S=>g.current===S,[]),I=Ur.useCallback((S,P,M,E)=>{let D=R1(d.current),N=v6(D,S,P,M,E??s);return N?(N.element?.focus(),l(N.id),N):null},[s]),O=Ur.useCallback((S,P,M)=>({onFocus:N=>{P?.(N);let L=R1(d.current),j=k6(L,N.target);j!==-1&&l(L[j].id)},onKeyDown:N=>{if(M?.(N),N.defaultPrevented||N.altKey||N.shiftKey||N.ctrlKey||N.metaKey||!oge.includes(N.key))return;let L=r==="horizontal"?"ArrowLeft":"ArrowUp",j=r==="horizontal"?"ArrowRight":"ArrowDown";r==="horizontal"&&n&&(L="ArrowRight",j="ArrowLeft");let X=R1(d.current),H=Nf(Kt(f.current)),Z=H===f.current,ie=x6(X,H,g.current),q="next";switch(N.key){case L:q="previous",N.preventDefault(),Z&&(ie=X.length);break;case j:N.preventDefault(),Z&&(ie=-1);break;case"Home":N.preventDefault(),ie=-1;break;case"End":N.preventDefault(),q="previous",ie=X.length;break;default:return}I(ie,q,i)},ref:ige(S,N=>{f.current=N})}),[I,n,r,i]),R=Ur.useCallback(S=>{let P=R1(d.current),M=Nf(Kt(f.current)),D=M===f.current?-1:x6(P,M,g.current);return I(D,"next",!0,S)?.id??null},[I]);return Ur.useMemo(()=>({activeItemId:y,focusNext:R,getActiveItem:T,getContainerProps:O,getItemMap:x,isItemActive:_,registerItem:C,setActiveItemId:k,unregisterItem:v}),[y,R,T,O,x,_,C,k,v])}function ou(e){let t=Dm(),{activeItemId:o,registerItem:r,unregisterItem:n}=t,s=Ur.useRef(null),i=Ur.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),a=Ur.useRef(i);a.current=i;let l=Ur.useCallback(p=>{if(s.current=p,p==null){queueMicrotask(()=>{s.current==null&&n(e.id)});return}r({...a.current,element:p})},[e.id,r,n]),c=_t(e.ref,l);return Ct(()=>{s.current&&r({...i,element:s.current})},[i,r]),Ct(()=>{let p=e.id;return()=>{n(p)}},[e.id,n]),{ref:c,tabIndex:o===e.id?0:-1}}function T6(e,t,o,r){return e!=null?rge(e,t,o):nge(t,o,r)}function rge(e,t,o){let r=w6(t,e);return r===-1?S6(t,o):o(t[r])?t[r].id:v6(t,r,"next",!1,o)?.id??null}function nge(e,t,o){let r=o?.(e);if(r!=null){let n=C6(e,r);if(n&&t(n))return n.id}return S6(e,t)}function x6(e,t,o){if(t){let r=k6(e,t);if(r!==-1)return r}return w6(e,o)}function v6(e,t,o,r,n){let s=e.length-1;if(s===-1)return null;let i=!1,a=P6(t,s,o,r),l=a;for(;a!==-1;){if(a===l){if(i)return null;i=!0}let c=e[a];if(!c||!n(c))a=P6(a,s,o,r);else return c}return null}function S6(e,t){return e.find(o=>t(o))?.id??null}function C6(e,t){return t==null?null:e.find(o=>o.id===t)??null}function w6(e,t){return t==null?-1:e.findIndex(o=>o.id===t)}function k6(e,t){return t?e.findIndex(o=>o.element===t||o.element?.contains(t)):-1}function E2(e){let t=Array.from(e.values());if(t.every(n=>n.element==null))return t;let o=t.filter(M2).sort((n,s)=>sge(n.element,s.element)),r=t.filter(n=>!M2(n));return[...o,...r]}function R1(e){return E2(e).filter(M2)}function P6(e,t,o,r=!0){return o==="next"?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function Cg(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute("disabled")&&e.element.getAttribute("aria-disabled")!=="true"&&e.element.hasAttribute("tabindex"):!1}function M2(e){return e.element!=null&&e.element.isConnected}function sge(e,t){if(e===t)return 0;let o=e.compareDocumentPosition(t);return o&Node.DOCUMENT_POSITION_FOLLOWING||o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS?1:0}function ige(...e){return t=>{e.forEach(o=>{Nl(o??null,t)})}}var Nc=w(J(),1),age=e=>{let{vertical:t,fixed:o,hideScrollbar:r,scrollableX:n,scrollableY:s,centered:i,scrollButtonsHideMobile:a,classes:l}=e;return G({root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",r&&"hideScrollbar",n&&"scrollableX",s&&"scrollableY"],list:["list",t&&"vertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},_2,l)},lge=A("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[{[`& .${Fd.scrollButtons}`]:t.scrollButtons},{[`& .${Fd.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})(de(({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:{[`& .${Fd.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),cge=A("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.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"}}]}),pge=A("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.list,o.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),uge=A("span",{name:"MuiTabs",slot:"Indicator"})(de(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",...Ge(e),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}}]}))),dge=A(R2)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),R6={};var fge=No.forwardRef(function(t,o){let r=ce({props:t,name:"MuiTabs"}),n=me(),s=zt(),i=Pn(n.motion.reducedMotion,!1),{"aria-label":a,"aria-labelledby":l,action:c,centered:p=!1,children:u,className:f,component:d="div",allowScrollButtonsMobile:m=!1,indicatorColor:h="primary",onChange:b,orientation:y="horizontal",scrollButtons:g="auto",selectionFollowsFocus:T,slots:x={},slotProps:C={},textColor:v="primary",value:k,variant:_="standard",visibleScrollbar:I=!1,...O}=r,R=_==="scrollable",S=y==="vertical",P=S?"scrollTop":"scrollLeft",M=S?"top":"left",E=S?"bottom":"right",D=S?"clientHeight":"clientWidth",N=S?"height":"width",L={...r,component:d,allowScrollButtonsMobile:m,indicatorColor:h,orientation:y,vertical:S,scrollButtons:g,textColor:v,variant:_,visibleScrollbar:I,fixed:!R,hideScrollbar:R&&!I,scrollableX:R&&!S,scrollableY:R&&S,centered:p&&!R,scrollButtonsHideMobile:!m},j=age(L),X=Je({elementType:x.startScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:L}),H=Je({elementType:x.endScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:L}),[Z,ie]=No.useState(!1),[q,ee]=No.useState(R6),[z,re]=No.useState(!1),[Y,W]=No.useState(!1),[ne,te]=No.useState(!1),U=k===!1?null:k,[ue,V]=No.useState(!1),[pe,se]=No.useState({overflow:"hidden",scrollbarWidth:0}),ye=new Map,le=No.useRef(null),ge=No.useRef(null),ae={slots:x,slotProps:C},oe=()=>{let ft=le.current,it;if(ft){let vt=ft.getBoundingClientRect();it={clientWidth:ft.clientWidth,scrollLeft:ft.scrollLeft,scrollTop:ft.scrollTop,scrollWidth:ft.scrollWidth,top:vt.top,bottom:vt.bottom,left:vt.left,right:vt.right}}let xt;if(ft&&k!==!1){let vt=ge.current.children;if(vt.length>0){let ko=vt[ye.get(k)];xt=ko?ko.getBoundingClientRect():null}}return{tabsMeta:it,tabMeta:xt}},he=Oo(()=>{let{tabsMeta:ft,tabMeta:it}=oe(),xt=0,vt;S?(vt="top",it&&ft&&(xt=it.top-ft.top+ft.scrollTop)):(vt=s?"right":"left",it&&ft&&(xt=(s?-1:1)*(it[vt]-ft[vt]+ft.scrollLeft)));let ko={[vt]:xt,[N]:it?it[N]:0};if(typeof q[vt]!="number"||typeof q[N]!="number")ee(ko);else{let hi=Math.abs(q[vt]-ko[vt]),Ws=Math.abs(q[N]-ko[N]);(hi>=1||Ws>=1)&&ee(ko)}}),Ie=(ft,{animation:it=!0}={})=>{it&&!i.shouldReduceMotion?k2(P,le.current,ft,{duration:n.transitions.duration.standard}):le.current[P]=ft},Se=ft=>{let it=le.current[P];S?it+=ft:it+=ft*(s?-1:1),Ie(it)},ot=()=>{let ft=le.current[D],it=0,xt=Array.from(ge.current.children);for(let vt=0;vt<xt.length;vt+=1){let ko=xt[vt];if(it+ko[D]>ft){vt===0&&(it=ft);break}it+=ko[D]}return it},Fe=()=>{Se(-1*ot())},Le=()=>{Se(ot())},[qe,{onChange:Mt,...Pe}]=xe("scrollbar",{className:$(j.scrollableX,j.hideScrollbar),elementType:dge,shouldForwardComponentProp:!0,externalForwardedProps:ae,ownerState:L}),Ee=No.useCallback(ft=>{Mt?.(ft),se({overflow:null,scrollbarWidth:ft})},[Mt]),[je,rt]=xe("scrollButtons",{className:j.scrollButtons,elementType:mP,externalForwardedProps:ae,ownerState:L,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:x.startScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon},slotProps:{startScrollButtonIcon:X,endScrollButtonIcon:H}}}),st=()=>{let ft={};ft.scrollbarSizeListener=R?(0,Nc.jsx)(qe,{...Pe,onChange:Ee}):null;let xt=R&&(g==="auto"&&(z||Y)||g===!0);return ft.scrollButtonStart=xt?(0,Nc.jsx)(je,{direction:s?"right":"left",onClick:Fe,disabled:!z,...rt}):null,ft.scrollButtonEnd=xt?(0,Nc.jsx)(je,{direction:s?"left":"right",onClick:Le,disabled:!Y,...rt}):null,ft},He=Oo(ft=>{let{tabsMeta:it,tabMeta:xt}=oe();if(!(!xt||!it)){if(xt[M]<it[M]){let vt=it[P]+(xt[M]-it[M]);Ie(vt,{animation:ft})}else if(xt[E]>it[E]){let vt=it[P]+(xt[E]-it[E]);Ie(vt,{animation:ft})}}}),mt=Oo(()=>{R&&g!==!1&&te(!ne)});No.useEffect(()=>{let ft=vc(()=>{le.current&&he()}),it,xt=hi=>{hi.forEach(Ws=>{Ws.removedNodes.forEach(Sl=>{it?.unobserve(Sl)}),Ws.addedNodes.forEach(Sl=>{it?.observe(Sl)})}),ft(),mt()},vt=xn(le.current);vt.addEventListener("resize",ft);let ko;return typeof ResizeObserver<"u"&&(it=new ResizeObserver(ft),Array.from(ge.current.children).forEach(hi=>{it.observe(hi)})),typeof MutationObserver<"u"&&(ko=new MutationObserver(xt),ko.observe(ge.current,{childList:!0})),()=>{ft.clear(),vt.removeEventListener("resize",ft),ko?.disconnect(),it?.disconnect()}},[he,mt]),No.useEffect(()=>{let ft=Array.from(ge.current.children),it=ft.length;if(typeof IntersectionObserver<"u"&&it>0&&R&&g!==!1){let xt=ft[0],vt=ft[it-1],ko={root:le.current,threshold:.99},hi=dt=>{re(!dt[0].isIntersecting)},Ws=new IntersectionObserver(hi,ko);Ws.observe(xt);let Sl=dt=>{W(!dt[0].isIntersecting)},ze=new IntersectionObserver(Sl,ko);return ze.observe(vt),()=>{Ws.disconnect(),ze.disconnect()}}},[R,g,ne,u?.length]),No.useEffect(()=>{ie(!0)},[]),No.useEffect(()=>{he()}),No.useEffect(()=>{He(R6!==q)},[He,q]),No.useImperativeHandle(c,()=>({updateIndicator:he,updateScrollButtons:mt}),[he,mt]);let[at,no]=xe("indicator",{className:j.indicator,elementType:uge,externalForwardedProps:ae,ownerState:L,additionalProps:{style:q}}),tt=(0,Nc.jsx)(at,{...no}),Re=tu({activeItemId:ue?void 0:U,orientation:y,isRtl:s}),Ve=Re.getContainerProps(),Ke=No.Children.toArray(u).filter(No.isValidElement).map((ft,it)=>{let xt=ft.props.value===void 0?it:ft.props.value;return ye.set(xt,it),{child:ft,index:it,childValue:xt}}).map(({child:ft,childValue:it})=>{let xt=it===k;return No.cloneElement(ft,{fullWidth:_==="fullWidth",indicator:xt&&!Z&&tt,selected:xt,selectionFollowsFocus:T,onChange:b,textColor:v,value:it})}),lt=st(),[Go,bn]=xe("root",{ref:o,className:$(j.root,f),elementType:lge,externalForwardedProps:{...ae,...O,component:d},ownerState:L}),[ho,Po]=xe("scroller",{ref:le,className:j.scroller,elementType:cge,externalForwardedProps:ae,ownerState:L,additionalProps:{style:{overflow:pe.overflow,[S?`margin${s?"Left":"Right"}`:"marginBottom"]:I?void 0:-pe.scrollbarWidth}}}),wr=Wt(Ve.ref,ge),pp=ft=>{let it=ge.current;Yr(kr(it))?.getAttribute("role")==="tab"&&Ve.onKeyDown(ft)},[Na,up]=xe("list",{ref:wr,className:j.list,elementType:pge,externalForwardedProps:ae,ownerState:L,getSlotProps:ft=>({...ft,onBlur:it=>{Bs(it.currentTarget,it.relatedTarget)||V(!1),ft.onBlur?.(it)},onKeyDown:it=>{pp(it),ft.onKeyDown?.(it)},onFocus:it=>{V(!0),Ve.onFocus(it),ft.onFocus?.(it)}})});return(0,Nc.jsxs)(Go,{...bn,children:[lt.scrollButtonStart,lt.scrollbarSizeListener,(0,Nc.jsxs)(ho,{...Po,children:[(0,Nc.jsx)(Na,{"aria-label":a,"aria-labelledby":l,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...up,children:(0,Nc.jsx)(Dc.Provider,{value:Re,children:Ke})}),Z&&tt]}),lt.scrollButtonEnd]})}),ru=fge;var nu=w(B(),1);function O2(e){return K("MuiTab",e)}var mge=Q("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","icon"]),Mi=mge;var I1=w(J(),1),yge=e=>{let{classes:t,textColor:o,fullWidth:r,wrapped:n,icon:s,label:i,selected:a,disabled:l}=e,c={root:["root",s&&i&&"labelIcon",`textColor${Te(o)}`,r&&"fullWidth",n&&"wrapped",a&&"selected",l&&"disabled"],icon:["icon"]};return G(c,O2,t)},hge=A(Qt,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${Te(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped,{[`& .${Mi.icon}`]:t.icon}]}})(de(({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,...e.focusVisible&&Wa(3),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:o})=>t.icon&&t.label&&o==="top",style:{[`& > .${Mi.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:o})=>t.icon&&t.label&&o==="bottom",style:{[`& > .${Mi.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:o})=>t.icon&&t.label&&o==="start",style:{[`& > .${Mi.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:o})=>t.icon&&t.label&&o==="end",style:{[`& > .${Mi.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Mi.selected}`]:{opacity:1},...e.focusVisible&&{[`&.${ss.focusVisible}`]:{opacity:1}},[`&.${Mi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Mi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Mi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Mi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Mi.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)}}]}))),gge=nu.forwardRef(function(t,o){let r=ce({props:t,name:"MuiTab"}),{className:n,disabled:s=!1,disableFocusRipple:i=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:p,label:u,onChange:f,onClick:d,onFocus:m,selected:h,selectionFollowsFocus:b,textColor:y="inherit",value:g,wrapped:T=!1,...x}=r,C=Dm(),v=ou({id:g,ref:o,disabled:s,selected:h}),_=C.getItemMap().size===0&&h?0:v.tabIndex,I={...r,disabled:s,disableFocusRipple:i,selected:h,icon:!!l,iconPosition:c,label:!!u,fullWidth:a,textColor:y,wrapped:T},O=yge(I),R=l&&u&&nu.isValidElement(l)?nu.cloneElement(l,{className:$(O.icon,l.props.className)}):l,S=M=>{!h&&f&&f(M,g),d&&d(M)},P=M=>{b&&!h&&f&&f(M,g),m&&m(M)};return(0,I1.jsxs)(hge,{internalNativeButton:!0,focusRipple:!i,className:$(O.root,n),ref:v.ref,role:"tab","aria-selected":h,disabled:s,onClick:S,onFocus:P,tabIndex:_,ownerState:I,...x,children:[c==="top"||c==="start"?(0,I1.jsxs)(nu.Fragment,{children:[R,u]}):(0,I1.jsxs)(nu.Fragment,{children:[u,R]}),p]})}),Kl=gge;var bge={transition:"height 0.3s"},Tge={display:"flex",alignItems:"center"},I6={display:"inline-flex",alignItems:"center",gap:"0.25em"},xge={ml:1,cursor:"pointer","&:hover":{opacity:.7}},Pge={height:"100%",maxWidth:"100%",position:"relative"},vge={flex:1,minWidth:0,display:"flex",flexDirection:"column",overflow:"auto",position:"relative",width:"100%",opacity:1};function Sge({model:e,view:t}){let[o,r]=e.useState("active"),[n]=e.useState("centered"),[s]=e.useState("closable"),[i]=e.useState("color"),[a]=e.useState("disabled"),[l]=e.useState("tabs_location"),[c]=e.useState("_names"),[p]=e.useState("sx"),[u]=e.useState("wrapped"),f=e.get_child("_headers"),d=e.get_child("objects"),m=me(),h=(O,R)=>{r(R)},b=l==="above"||l==="below"?"horizontal":"vertical",y=m.palette[i]||m.palette.primary,g=Array.isArray(a)?a:[],T=Number.isInteger(o)&&o>=0&&o<d.length?o:0,x=Or.useMemo(()=>({...Pge,display:d.length===0?"none":"flex",flexDirection:l==="left"||l==="right"?"row":"column"}),[d.length,l]),C=Or.useMemo(()=>[vge,{minHeight:0},{transition:m.transitions.create(["opacity","min-height"],{duration:m.transitions.duration.short,easing:m.transitions.easing.easeInOut})}],[m.transitions]),v=Or.useCallback((O,R)=>{O.stopPropagation();let S=t.model.data.objects[R].id,P=o;R<o?P=o-1:R===o&&o>=d.length-1&&(P=Math.max(0,d.length-2)),P!==o&&r(P),e.send_msg({type:"close",id:S})},[o,d.length,r,e,t.model.data]),k=Or.useMemo(()=>c.map((O,R)=>Or.createElement(Kl,{key:R,disabled:g.includes(R),label:s?Or.createElement(Be,{sx:Tge},O?Or.createElement("span",{style:I6},_p(O)):f[R],Or.createElement(Be,{component:"span",sx:xge,onClick:S=>v(S,R)},"\u2715")):O?Or.createElement("span",{style:I6},_p(O)):f[R],wrapped:u})),[c,g,s,f,v,u]),_=Or.createElement(ru,{centered:n,indicatorColor:i,textColor:i,value:o,onChange:h,orientation:b,scrollButtons:"auto",slotProps:{indicator:{sx:{backgroundColor:y.main,...l==="right"&&{left:0,right:"auto",width:3},...l==="bottom"&&{top:0,bottom:"auto",height:3}}}},sx:bge,variant:"scrollable"},k),I=d.length===0?null:jt(t.get_child_view(e.objects[T]),"column")||d[T];return Or.createElement(Be,{className:"MuiTabsPanel",sx:{...x,...p}},(l==="left"||l==="above")&&_,Or.createElement(Be,{sx:C},I),(l==="right"||l==="below")&&_)}function Cge(e){let[t]=e.model.useState("loading"),o=e.model.esm_constants.loading_inset||0,r=me(),n=r.palette.mode==="dark"?"rgba(18, 18, 18, 0.7)":"rgba(255, 255, 255, 0.5)";return Or.createElement("div",{style:{display:"contents",position:"relative"}},Or.createElement(Sge,{...e}),t&&Or.createElement("div",{style:{position:"absolute",inset:o,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:n,zIndex:r.zIndex.modal-1}},Or.createElement(_e,{color:"primary",sx:{p:"8px"}})))}function wge(e){let t=ke(e),o="attached"in e.view.model.data.properties?e.model.get_child("attached"):[];return e.view.is_root&&document.documentElement.getAttribute("data-theme-managed")==="false"&&we(e.model,e.view,t),Or.createElement(ve,{theme:t},Or.createElement(Ce,null),Or.createElement(Cge,{...e}),o.length?Or.createElement("div",{class:"attached"},o):null)}var _6={render:wge};var hs=w(B());var nt=w(B()),Y6=w(Pm());function E6(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=E6(e[t]))&&(r&&(r+=" "),r+=o);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function kge(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=E6(e))&&(r&&(r+=" "),r+=t);return r}var Ld=kge;var Rge={data:""},Ige=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Rge};var _ge=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ege=/\/\*[^]*?\*\/| +/g,M6=/\n+/g,Nm=(e,t)=>{let o="",r="",n="";for(let s in e){let i=e[s];s[0]=="@"?s[1]=="i"?o=s+" "+i+";":r+=s[1]=="f"?Nm(i,s):s+"{"+Nm(i,s[1]=="k"?"":t)+"}":typeof i=="object"?r+=Nm(i,t?t.replace(/([^,])+/g,a=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):i!=null&&(s=s[1]=="-"?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=Nm.p?Nm.p(s,i):s+":"+i+";")}return o+(t&&n?t+"{"+n+"}":n)+r},Bd={},O6=e=>{if(typeof e=="object"){let t="";for(let o in e)t+=o+O6(e[o]);return t}return e},Mge=(e,t,o,r,n)=>{let s=O6(e),i=Bd[s]||(Bd[s]=(l=>{let c=0,p=11;for(;c<l.length;)p=101*p+l.charCodeAt(c++)>>>0;return"go"+p})(s));if(!Bd[i]){let l=s!==e?e:(c=>{let p,u,f=[{}];for(;p=_ge.exec(c.replace(Ege,""));)p[4]?f.shift():p[3]?(u=p[3].replace(M6," ").trim(),f.unshift(f[0][u]=f[0][u]||{})):f[0][p[1]]=p[2].replace(M6," ").trim();return f[0]})(e);Bd[i]=Nm(n?{["@keyframes "+i]:l}:l,o?"":"."+i)}let a=o&&Bd.g;return o&&(Bd.g=Bd[i]),((l,c,p,u)=>{u?c.data=c.data.replace(u,l):c.data.indexOf(l)===-1&&(c.data=p?l+c.data:c.data+l)})(Bd[i],t,r,a),i},Oge=(e,t,o)=>e.reduce((r,n,s)=>{let i=t[s];if(i&&i.call){let a=i(o),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;i=l?"."+l:a&&typeof a=="object"?a.props?"":Nm(a,""):a===!1?"":a}return r+n+(i??"")},"");function _1(e){let t=this||{},o=e.call?e(t.p):e;return Mge(o.unshift?o.raw?Oge(o,[].slice.call(arguments,1),t.p):o.reduce((r,n)=>Object.assign(r,n&&n.call?n(t.p):n),{}):o,Ige(t.target),t.g,t.o,t.k)}var Jht=_1.bind({g:1}),egt=_1.bind({k:1});function D6(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q6(e,t,o){return t&&D6(e.prototype,t),o&&D6(e,o),e}function Ho(){return Ho=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ho.apply(this,arguments)}function G6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function TP(e,t){if(e==null)return{};var o={},r=Object.keys(e),n,s;for(s=0;s<r.length;s++)n=r[s],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function N6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var A6=function(){return""},K6=nt.default.createContext({enqueueSnackbar:A6,closeSnackbar:A6}),Am={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},F6=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},$2=function(t){return""+F6(t.vertical)+F6(t.horizontal)},E1=function(t){return!!t||t===0},M1="unmounted",wg="exited",kg="entering",yP="entered",L6="exiting",U2=(function(e){G6(t,e);function t(r){var n;n=e.call(this,r)||this;var s=r.appear,i;return n.appearStatus=null,r.in?s?(i=wg,n.appearStatus=kg):i=yP:r.unmountOnExit||r.mountOnEnter?i=M1:i=wg,n.state={status:i},n.nextCallback=null,n}t.getDerivedStateFromProps=function(n,s){var i=n.in;return i&&s.status===M1?{status:wg}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(n){var s=null;if(n!==this.props){var i=this.state.status;this.props.in?i!==kg&&i!==yP&&(s=kg):(i===kg||i===yP)&&(s=L6)}this.updateStatus(!1,s)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var n=this.props.timeout,s=n,i=n;return n!=null&&typeof n!="number"&&typeof n!="string"&&(i=n.exit,s=n.enter),{exit:i,enter:s}},o.updateStatus=function(n,s){n===void 0&&(n=!1),s!==null?(this.cancelNextCallback(),s===kg?this.performEnter(n):this.performExit()):this.props.unmountOnExit&&this.state.status===wg&&this.setState({status:M1})},o.performEnter=function(n){var s=this,i=this.props.enter,a=n,l=this.getTimeouts();if(!n&&!i){this.safeSetState({status:yP},function(){s.props.onEntered&&s.props.onEntered(s.node,a)});return}this.props.onEnter&&this.props.onEnter(this.node,a),this.safeSetState({status:kg},function(){s.props.onEntering&&s.props.onEntering(s.node,a),s.onTransitionEnd(l.enter,function(){s.safeSetState({status:yP},function(){s.props.onEntered&&s.props.onEntered(s.node,a)})})})},o.performExit=function(){var n=this,s=this.props.exit,i=this.getTimeouts();if(!s){this.safeSetState({status:wg},function(){n.props.onExited&&n.props.onExited(n.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:L6},function(){n.props.onExiting&&n.props.onExiting(n.node),n.onTransitionEnd(i.exit,function(){n.safeSetState({status:wg},function(){n.props.onExited&&n.props.onExited(n.node)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(n,s){s=this.setNextCallback(s),this.setState(n,s)},o.setNextCallback=function(n){var s=this,i=!0;return this.nextCallback=function(){i&&(i=!1,s.nextCallback=null,n())},this.nextCallback.cancel=function(){i=!1},this.nextCallback},o.onTransitionEnd=function(n,s){this.setNextCallback(s);var i=n==null&&!this.props.addEndListener;if(!this.node||i){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),n!=null&&setTimeout(this.nextCallback,n)},o.render=function(){var n=this.state.status;if(n===M1)return null;var s=this.props,i=s.children,a=TP(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i(n,a)},q6(t,[{key:"node",get:function(){var n,s=(n=this.props.nodeRef)===null||n===void 0?void 0:n.current;if(!s)throw new Error("notistack - Custom snackbar is not refForwarding");return s}}]),t})(nt.default.Component);function Rg(){}U2.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rg,onEntering:Rg,onEntered:Rg,onExit:Rg,onExiting:Rg,onExited:Rg};function B6(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function j2(e,t){return(0,nt.useMemo)(function(){return e==null&&t==null?null:function(o){B6(e,o),B6(t,o)}},[e,t])}function F1(e){var t=e.timeout,o=e.style,r=o===void 0?{}:o,n=e.mode;return{duration:typeof t=="object"?t[n]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var V2={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},X6=function(t){t.scrollTop=t.scrollTop},j6=function(t){return Math.round(t)+"ms"};function Ig(e,t){e===void 0&&(e=["all"]);var o=t||{},r=o.duration,n=r===void 0?300:r,s=o.easing,i=s===void 0?V2.easeInOut:s,a=o.delay,l=a===void 0?0:a,c=Array.isArray(e)?e:[e];return c.map(function(p){var u=typeof n=="string"?n:j6(n),f=typeof l=="string"?l:j6(l);return p+" "+u+" "+i+" "+f}).join(",")}function Dge(e){return e&&e.ownerDocument||document}function Q6(e){var t=Dge(e);return t.defaultView||window}function Nge(e,t){t===void 0&&(t=166);var o;function r(){for(var n=this,s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];var l=function(){e.apply(n,i)};clearTimeout(o),o=setTimeout(l,t)}return r.clear=function(){clearTimeout(o)},r}function Age(e,t){var o=t.getBoundingClientRect(),r=Q6(t),n;if(t.fakeTransform)n=t.fakeTransform;else{var s=r.getComputedStyle(t);n=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var i=0,a=0;if(n&&n!=="none"&&typeof n=="string"){var l=n.split("(")[1].split(")")[0].split(",");i=parseInt(l[4],10),a=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+i-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-i)+"px)";case"up":return"translateY("+(r.innerHeight+a-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-a)+"px)"}}function O1(e,t){if(t){var o=Age(e,t);o&&(t.style.webkitTransform=o,t.style.transform=o)}}var Z6=(0,nt.forwardRef)(function(e,t){var o=e.children,r=e.direction,n=r===void 0?"down":r,s=e.in,i=e.style,a=e.timeout,l=a===void 0?0:a,c=e.onEnter,p=e.onEntered,u=e.onExit,f=e.onExited,d=TP(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=(0,nt.useRef)(null),h=j2(o.ref,m),b=j2(h,t),y=function(k,_){O1(n,k),X6(k),c&&c(k,_)},g=function(k){var _=i?.transitionTimingFunction||V2.easeOut,I=F1({timeout:l,mode:"enter",style:Ho({},i,{transitionTimingFunction:_})});k.style.webkitTransition=Ig("-webkit-transform",I),k.style.transition=Ig("transform",I),k.style.webkitTransform="none",k.style.transform="none"},T=function(k){var _=i?.transitionTimingFunction||V2.sharp,I=F1({timeout:l,mode:"exit",style:Ho({},i,{transitionTimingFunction:_})});k.style.webkitTransition=Ig("-webkit-transform",I),k.style.transition=Ig("transform",I),O1(n,k),u&&u(k)},x=function(k){k.style.webkitTransition="",k.style.transition="",f&&f(k)},C=(0,nt.useCallback)(function(){m.current&&O1(n,m.current)},[n]);return(0,nt.useEffect)(function(){if(!(s||n==="down"||n==="right")){var v=Nge(function(){m.current&&O1(n,m.current)}),k=Q6(m.current);return k.addEventListener("resize",v),function(){v.clear(),k.removeEventListener("resize",v)}}},[n,s]),(0,nt.useEffect)(function(){s||C()},[s,C]),(0,nt.createElement)(U2,Object.assign({appear:!0,nodeRef:m,onEnter:y,onEntered:p,onEntering:g,onExit:T,onExited:x,in:s,timeout:l},d),function(v,k){return(0,nt.cloneElement)(o,Ho({ref:b,style:Ho({visibility:v==="exited"&&!s?"hidden":void 0},i,{},o.props.style)},k))})});Z6.displayName="Slide";var L1=function(t){return nt.default.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},Fge=function(){return nt.default.createElement(L1,null,nt.default.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
249
249
|
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},Lge=function(){return nt.default.createElement(L1,null,nt.default.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Bge=function(){return nt.default.createElement(L1,null,nt.default.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
250
250
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
251
251
|
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},jge=function(){return nt.default.createElement(L1,null,nt.default.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|