From b86f80b8b0697a97729ddb7a88faa3a60948b812 Mon Sep 17 00:00:00 2001 From: valery Date: Wed, 27 Mar 2024 16:01:45 +0100 Subject: [PATCH] try to fix static images load --- experiment_example_static/bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experiment_example_static/bundle.js b/experiment_example_static/bundle.js index df6787e0..d6c2abd4 100644 --- a/experiment_example_static/bundle.js +++ b/experiment_example_static/bundle.js @@ -72,7 +72,7 @@ animation-iteration-count: infinite; animation-delay: 200ms; } -`),it.rippleVisible,pt,550,(({theme:e})=>e.transitions.easing.easeInOut),it.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),it.child,it.childLeaving,gt,550,(({theme:e})=>e.transitions.easing.easeInOut),it.childPulsate,mt,(({theme:e})=>e.transitions.easing.easeInOut)),xt=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:s}=r,i=(0,L.Z)(r,ct),[c,u]=n.useState([]),_=n.useRef(0),l=n.useRef(null);n.useEffect((()=>{l.current&&(l.current(),l.current=null)}),[c]);const d=n.useRef(!1),y=n.useRef(null),p=n.useRef(null),g=n.useRef(null);n.useEffect((()=>()=>{clearTimeout(y.current)}),[]);const m=n.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:a,cb:s}=e;u((e=>[...e,(0,J.jsx)(ft,{classes:{ripple:(0,B.Z)(o.ripple,it.ripple),rippleVisible:(0,B.Z)(o.rippleVisible,it.rippleVisible),ripplePulsate:(0,B.Z)(o.ripplePulsate,it.ripplePulsate),child:(0,B.Z)(o.child,it.child),childLeaving:(0,B.Z)(o.childLeaving,it.childLeaving),childPulsate:(0,B.Z)(o.childPulsate,it.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:a},_.current)])),_.current+=1,l.current=s}),[o]),h=n.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:n=!1,center:o=a||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const i=s?null:g.current,c=i?i.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,_,l;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(c.width/2),_=Math.round(c.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-c.left),_=Math.round(r-c.top)}if(o)l=Math.sqrt((2*c.width**2+c.height**2)/3),l%2==0&&(l+=1);else{const e=2*Math.max(Math.abs((i?i.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((i?i.clientHeight:0)-_),_)+2;l=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{m({pulsate:n,rippleX:u,rippleY:_,rippleSize:l,cb:r})},y.current=setTimeout((()=>{p.current&&(p.current(),p.current=null)}),80)):m({pulsate:n,rippleX:u,rippleY:_,rippleSize:l,cb:r})}),[a,m]),f=n.useCallback((()=>{h({},{pulsate:!0})}),[h]),x=n.useCallback(((e,t)=>{if(clearTimeout(y.current),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void(y.current=setTimeout((()=>{x(e,t)})));p.current=null,u((e=>e.length>0?e.slice(1):e)),l.current=t}),[]);return n.useImperativeHandle(t,(()=>({pulsate:f,start:h,stop:x})),[f,h,x]),(0,J.jsx)(ht,(0,D.Z)({className:(0,B.Z)(it.root,o.root,s),ref:g},i,{children:(0,J.jsx)(Qe,{component:null,exit:!0,children:c})}))})),vt=xt;function wt(e){return(0,Y.Z)("MuiButtonBase",e)}const bt=(0,G.Z)("MuiButtonBase",["root","disabled","focusVisible"]),St=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],kt=(0,H.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bt.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Et=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:s,className:i,component:c="button",disabled:u=!1,disableRipple:_=!1,disableTouchRipple:l=!1,focusRipple:d=!1,LinkComponent:y="a",onBlur:p,onClick:g,onContextMenu:m,onDragLeave:h,onFocus:f,onFocusVisible:x,onKeyDown:v,onKeyUp:w,onMouseDown:b,onMouseLeave:S,onMouseUp:k,onTouchEnd:E,onTouchMove:T,onTouchStart:I,tabIndex:C=0,TouchRippleProps:O,touchRippleRef:P,type:z}=r,A=(0,L.Z)(r,St),R=n.useRef(null),M=n.useRef(null),N=(0,je.Z)(M,P),{isFocusVisibleRef:F,onFocus:Z,onBlur:j,ref:U}=(0,$e.Z)(),[$,V]=n.useState(!1);u&&$&&V(!1),n.useImperativeHandle(a,(()=>({focusVisible:()=>{V(!0),R.current.focus()}})),[]);const[H,K]=n.useState(!1);n.useEffect((()=>{K(!0)}),[]);const G=H&&!_&&!u;function Y(e,t,r=l){return(0,Ue.Z)((n=>(t&&t(n),!r&&M.current&&M.current[e](n),!0)))}n.useEffect((()=>{$&&d&&!_&&H&&M.current.pulsate()}),[_,d,$,H]);const Q=Y("start",b),X=Y("stop",m),ee=Y("stop",h),te=Y("stop",k),re=Y("stop",(e=>{$&&e.preventDefault(),S&&S(e)})),ne=Y("start",I),ae=Y("stop",E),oe=Y("stop",T),se=Y("stop",(e=>{j(e),!1===F.current&&V(!1),p&&p(e)}),!1),ie=(0,Ue.Z)((e=>{R.current||(R.current=e.currentTarget),Z(e),!0===F.current&&(V(!0),x&&x(e)),f&&f(e)})),ce=()=>{const e=R.current;return c&&"button"!==c&&!("A"===e.tagName&&e.href)},ue=n.useRef(!1),_e=(0,Ue.Z)((e=>{d&&!ue.current&&$&&M.current&&" "===e.key&&(ue.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ce()&&" "===e.key&&e.preventDefault(),v&&v(e),e.target===e.currentTarget&&ce()&&"Enter"===e.key&&!u&&(e.preventDefault(),g&&g(e))})),le=(0,Ue.Z)((e=>{d&&" "===e.key&&M.current&&$&&!e.defaultPrevented&&(ue.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),w&&w(e),g&&e.target===e.currentTarget&&ce()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let de=c;"button"===de&&(A.href||A.to)&&(de=y);const ye={};"button"===de?(ye.type=void 0===z?"button":z,ye.disabled=u):(A.href||A.to||(ye.role="button"),u&&(ye["aria-disabled"]=u));const pe=(0,je.Z)(t,U,R),ge=(0,D.Z)({},r,{centerRipple:o,component:c,disabled:u,disableRipple:_,disableTouchRipple:l,focusRipple:d,tabIndex:C,focusVisible:$}),me=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,o={root:["root",t&&"disabled",r&&"focusVisible"]},s=(0,W.Z)(o,wt,a);return r&&n&&(s.root+=` ${n}`),s})(ge);return(0,J.jsxs)(kt,(0,D.Z)({as:de,className:(0,B.Z)(me.root,i),ownerState:ge,onBlur:se,onClick:g,onContextMenu:X,onFocus:ie,onKeyDown:_e,onKeyUp:le,onMouseDown:Q,onMouseLeave:re,onMouseUp:te,onDragLeave:ee,onTouchEnd:ae,onTouchMove:oe,onTouchStart:ne,ref:pe,tabIndex:u?-1:C,type:z},ye,A,{children:[s,G?(0,J.jsx)(vt,(0,D.Z)({ref:N,center:o},O)):null]}))}));function Tt(e){return(0,Y.Z)("MuiButton",e)}const It=(0,G.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ct=n.createContext({}),Ot=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Pt=e=>(0,D.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),zt=(0,H.ZP)(Et,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,K.Z)(r.color)}`],t[`size${(0,K.Z)(r.size)}`],t[`${r.variant}Size${(0,K.Z)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;return(0,D.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,D.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,_e.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,_e.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,_e.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,D.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${It.focusVisible}`]:(0,D.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${It.disabled}`]:(0,D.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,_e.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${It.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${It.disabled}`]:{boxShadow:"none"}})),At=(0,H.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${(0,K.Z)(r.size)}`]]}})((({ownerState:e})=>(0,D.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Pt(e)))),Rt=(0,H.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${(0,K.Z)(r.size)}`]]}})((({ownerState:e})=>(0,D.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Pt(e)))),Mt=n.forwardRef((function(e,t){const r=n.useContext(Ct),a=(0,Ze.Z)(r,e),o=(0,q.Z)({props:a,name:"MuiButton"}),{children:s,color:i="primary",component:c="button",className:u,disabled:_=!1,disableElevation:l=!1,disableFocusRipple:d=!1,endIcon:y,focusVisibleClassName:p,fullWidth:g=!1,size:m="medium",startIcon:h,type:f,variant:x="text"}=o,v=(0,L.Z)(o,Ot),w=(0,D.Z)({},o,{color:i,component:c,disabled:_,disableElevation:l,disableFocusRipple:d,fullWidth:g,size:m,type:f,variant:x}),b=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:s}=e,i={root:["root",o,`${o}${(0,K.Z)(t)}`,`size${(0,K.Z)(a)}`,`${o}Size${(0,K.Z)(a)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,K.Z)(a)}`],endIcon:["endIcon",`iconSize${(0,K.Z)(a)}`]},c=(0,W.Z)(i,Tt,s);return(0,D.Z)({},s,c)})(w),S=h&&(0,J.jsx)(At,{className:b.startIcon,ownerState:w,children:h}),k=y&&(0,J.jsx)(Rt,{className:b.endIcon,ownerState:w,children:y});return(0,J.jsxs)(zt,(0,D.Z)({ownerState:w,className:(0,B.Z)(r.className,b.root,u),component:c,disabled:_,focusRipple:!d,focusVisibleClassName:(0,B.Z)(b.focusVisible,p),ref:t,type:f},v,{classes:b,children:[S,s,k]}))}));var Nt=r(7036),Ft=r(4510);function Lt(e){return(0,Y.Z)("MuiCardMedia",e)}(0,G.Z)("MuiCardMedia",["root","media","img"]);const Dt=["children","className","component","image","src","style"],Bt=(0,H.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{isMediaComponent:n,isImageComponent:a}=r;return[t.root,n&&t.media,a&&t.img]}})((({ownerState:e})=>(0,D.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),Zt=["video","audio","picture","iframe","img"],jt=["picture","img"],Ut=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiCardMedia"}),{children:n,className:a,component:o="div",image:s,src:i,style:c}=r,u=(0,L.Z)(r,Dt),_=-1!==Zt.indexOf(o),l=!_&&s?(0,D.Z)({backgroundImage:`url("${s}")`},c):c,d=(0,D.Z)({},r,{component:o,isMediaComponent:_,isImageComponent:-1!==jt.indexOf(o)}),y=(e=>{const{classes:t,isMediaComponent:r,isImageComponent:n}=e,a={root:["root",r&&"media",n&&"img"]};return(0,W.Z)(a,Lt,t)})(d);return(0,J.jsx)(Bt,(0,D.Z)({className:(0,B.Z)(y.root,a),as:o,role:!_&&s?"img":void 0,ref:t,style:l,ownerState:d,src:_?s||i:void 0},u,{children:n}))})),$t={welcome:[""],practice_rounds:["Well done! Next, you will practice with two more complex networks. Try to maximize the number of points for each network -- remember that, later, they count towards your bonus payment!"],written_strategy_start:["Please think about how you approached the task and write down the strategy you used in trying to maximize points."],learning_selection:["Now, you have the opportunity to learn from the solutions submitted by a previous player. Think of them like a teacher.","This “learning phase” is intended to prepare you for the next stage, where your moves through the networks will be recorded for future players to learn from."],pre_social_learning:["In this learning stage, there will be four networks. For each network, the following will happen:","First, you will see a demonstration by the selected player.","Second, you will repeat the moves from the demonstration on the same network. Here, you can earn points by correctly repeating the demonstrated moves. These points will be converted into a bonus payment for you.","Third, you will have to solve the same network. However, this time, the number of points you earn will depend not on correctly repeating the demonstrated moves, but solely on the moves you choose to make. Your moves could be the same as the demonstrated ones, or different. These points will also be converted into a bonus payment for you."],pre_social_learning_gen0:["Now the main task begins. You will have to navigate through four different networks.","All points you collect will be converted into your bonus payment. Try to maximize your points!"],demonstration:["Well done! You now enter the final part of the experiment, the “teaching phase”.","You will navigate through four different networks. Your solution might be shown to other players to learn from. Note that every point you earn in the networks will be converted into a bonus payment for you. Additionally, you will receive more bonus payment if future players, who learn from your moves during this teaching phase, perform well.","So remember what you have learned and try to maximise your bonus payment!"],written_strategy:["Please write down your strategy in solving the task."],consent_decline:["You have declined to participate in the experiment. Thank you for your time. Please return the study on Prolific."]},Vt=r.p+"net_practice_example.png",Wt=function(e){var t=e.endTrial,r=e.instructionType;return n.createElement(Be,{container:!0,spacing:4},n.createElement(Be,{item:!0,xs:12},n.createElement(ue,{sx:{width:"90%",maxWidth:"600px"},m:"auto",style:{maxHeight:"80vh",overflow:"auto"},p:3},"welcome"===r&&n.createElement(Ht,null),"welcome"!==r&&$t[r].map((function(e,t){return n.createElement(ne,{key:t,variant:"body1",align:"justify",paragraph:!0},e)})),n.createElement(Be,{item:!0,xs:12,textAlign:"center",p:2},n.createElement(Mt,{variant:"contained",color:"success",onClick:function(){return t({moves:[]})},startIcon:n.createElement(Nt.Z,null)},"️ Continue")))))};var Ht=function(){return n.createElement(n.Fragment,null,n.createElement(ne,{gutterBottom:!0,variant:"h5",align:"center"},"Welcome to the experiment!"),n.createElement(Be,{container:!0,direction:"column"},n.createElement(Be,{container:!0,direction:"row"},n.createElement(Be,{item:!0,xs:6},n.createElement(ne,{variant:"body1",align:"justify",paragraph:!0},"Our experiment involves networks like the one depicted on the right. Depending on the moves you choose to navigate through the networks, you can earn more or less points. These points will be converted into bonus payments -- so your decisions in this experiment will have real financial consequences for you."),n.createElement(ne,{variant:"body1",align:"justify",paragraph:!0},"We will now explain the network task in more detail.")),n.createElement(Be,{item:!0,xs:6},n.createElement(Ut,{component:"img",image:Vt,style:{maxWidth:"400px"},alt:"Example network"})))))};const qt=function(e){var t=e.onDisagreeRedirect,r=e.endTrial,a=(0,n.useState)(!1),o=a[0],s=a[1];return n.createElement(n.Fragment,null," ",o?n.createElement(Wt,{endTrial:function(){window.open(t,"_self")},instructionType:"consent_decline"}):n.createElement(Be,{container:!0,spacing:4},n.createElement(Be,{item:!0,xs:12},n.createElement(ge,{sx:{p:5,margin:"auto",width:"75%",maxWidth:800,flexGrow:1},style:{maxHeight:"80vh",overflow:"auto",paddingTop:"20px"}},n.createElement(ne,{variant:"h4",gutterBottom:!0,align:"center"},"Study Information and Statement of Informed Consent"),n.createElement(ne,{component:"span",align:"justify"},"Thank you for your interest in participating in our “Reward Network” study. Please take your time to read this text carefully. If you have any questions, we are happy to answer them (simply contact us on Prolific). By clicking “I consent”, you agree that you have read the information presented and that you are willing to participate in the study."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"1. Aim of the study"),"In the “Reward Network” study, we want to investigate how different “generations” of problem solvers will approach a strategic task and potentially improve on their payoff. Most of the players in the study are humans, but in some rare cases, they can also be robots. In the beginning of the task, you might get the option to learn from previous solutions, and your own solutions can be passed on to subsequent generations of human participants later."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"2. Procedure and content of the study"),"To do this, we will ask you to observe different networks and traverse through them by clicking on adjacent nodes, associated with positive or negative rewards."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"3. Are there any risks involved?"),"There are no risks involved and no sensitive data will be collected."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"4. What will happen to the information and data collected?"),"This study is a research project of the Max Planck Institute (MPI) for Human Development. The data collected will be used for research purposes only. Your Prolific ID will be stored separately from the study data. The study data will be stored under an individual code number so that it cannot be linked to you during the analysis. The code number is stored on a separate code list in a secure location, and can only be accessed by a limited number of individuals working on the project. The code list is the only link between your Prolific ID and your study data. After completion of the study, the code list will be deleted, and it will no longer be possible to link the study data to you. The study data (but not Prolific ID) may be shared with cooperation partners for collaborative analysis. The study data may also be made publicly accessible via research data bases or scientific publications (typically via the Internet). This makes it possible for other researchers to check or replicate the results of the study and enhances the quality of scientific research. The study data may also be used for new research questions going beyond the purposes of this particular study. Please note that once study data are publicly accessible, its further distribution by others cannot be ruled out, and that this is beyond the area of influence or responsibility of the MPI for Human Development. Therefore, as a matter of principle, study data are only transferred or made publicly accessible without personal contact data. Data in which persons are identifiable can be made publicly accessible only if the participant agrees to this use by signing a separate consent form."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"5. Participation is voluntary"),"Participation in this study is voluntary. You may withdraw from the study at any time without giving any reason and without any negative consequences. You may also withdraw your consent to data processing and usage at any time with effect for the future and without negative consequences. To do this, you can contact us on Prolific or contact Levin Brinkmann at brinkmann@mpib-berlin.mpg.de. Please note that once the code list has been deleted (see Section 4), it is no longer possible to link your contact data to your study data."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"6. Consent"),"This document has informed you about participation in the “Reward Network” study. The study will take approximately 15 minutes. You will receive compensation of £2.25 for your participation in the study, plus a bonus (£0.70 on average) that is dependent on your own performance and the performance of participants who learned from your solutions in the task. The study has to be completed within 30 minutes and no bonus will be paid if you do not complete the study within this time frame. If you decide to terminate your participation before the end of the study, you will receive no compensation."),n.createElement(ne,{variant:"h6",gutterBottom:!0},"I have read and understood the conditions outlined above, and had the opportunity to clarify open questions."),n.createElement(Be,{item:!0,xs:12,textAlign:"center",p:2},n.createElement(Mt,{variant:"contained",color:"success",onClick:function(){return r({moves:[]})},startIcon:n.createElement(Nt.Z,null)},"️ I consent to participate in the study and agree to the collection, storage, and use of my data as described above.")),n.createElement(Be,{item:!0,xs:12,textAlign:"center",p:2},n.createElement(Mt,{variant:"contained",color:"error",onClick:function(){localStorage.clear(),s(!0)},startIcon:n.createElement(Ft.Z,null)},"️ I do NOT consent to participate in the study.")))))," ")};var Kt=r(7579),Gt=r(1387),Yt=r(67),Qt=r(8290),Jt=r(7596),Xt=r(6600);const er=["onChange","maxRows","minRows","style","value"];function tr(e,t){return parseInt(e[t],10)||0}const rr={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function nr(e){return null==e||0===Object.keys(e).length}const ar=n.forwardRef((function(e,t){const{onChange:r,maxRows:a,minRows:s=1,style:i,value:c}=e,u=(0,L.Z)(e,er),{current:_}=n.useRef(null!=c),l=n.useRef(null),d=(0,Yt.Z)(t,l),y=n.useRef(null),p=n.useRef(0),[g,m]=n.useState({}),h=n.useCallback((()=>{const t=l.current,r=(0,Qt.Z)(t).getComputedStyle(t);if("0px"===r.width)return{};const n=y.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const o=r["box-sizing"],i=tr(r,"padding-bottom")+tr(r,"padding-top"),c=tr(r,"border-bottom-width")+tr(r,"border-top-width"),u=n.scrollHeight;n.value="x";const _=n.scrollHeight;let d=u;return s&&(d=Math.max(Number(s)*_,d)),a&&(d=Math.min(Number(a)*_,d)),d=Math.max(d,_),{outerHeightStyle:d+("border-box"===o?i+c:0),overflow:Math.abs(d-u)<=1}}),[a,s,e.placeholder]),f=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},x=n.useCallback((()=>{const e=h();nr(e)||m((t=>f(t,e)))}),[h]);return n.useEffect((()=>{const e=(0,Jt.Z)((()=>{p.current=0,l.current&&(()=>{const e=h();nr(e)||(0,o.flushSync)((()=>{m((t=>f(t,e)))}))})()})),t=(0,Qt.Z)(l.current);let r;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(e),r.observe(l.current)),()=>{e.clear(),t.removeEventListener("resize",e),r&&r.disconnect()}})),(0,Xt.Z)((()=>{x()})),n.useEffect((()=>{p.current=0}),[c]),(0,J.jsxs)(n.Fragment,{children:[(0,J.jsx)("textarea",(0,D.Z)({value:c,onChange:e=>{p.current=0,_||x(),r&&r(e)},ref:d,rows:s,style:(0,D.Z)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":null},i)},u)),(0,J.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:(0,D.Z)({},rr,i,{padding:0})})]})})),or=function(e){return"string"==typeof e};function sr({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const ir=n.createContext(void 0);function cr(){return n.useContext(ir)}var ur=r(8974);function _r(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return(0,J.jsx)(at,{styles:n})}const lr=function(e){return(0,J.jsx)(_r,(0,D.Z)({},e,{defaultTheme:Ie.Z}))};function dr(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function yr(e,t=!1){return e&&(dr(e.value)&&""!==e.value||t&&dr(e.defaultValue)&&""!==e.defaultValue)}function pr(e){return(0,Y.Z)("MuiInputBase",e)}const gr=(0,G.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),mr=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],hr=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${(0,K.Z)(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},fr=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},xr=(0,H.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:hr})((({theme:e,ownerState:t})=>(0,D.Z)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${gr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,D.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),vr=(0,H.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fr})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=(0,D.Z)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,D.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${gr.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${gr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),wr=(0,J.jsx)(lr,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),br=n.forwardRef((function(e,t){var r;const a=(0,q.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:i,className:c,components:u={},componentsProps:_={},defaultValue:l,disabled:d,disableInjectingGlobalStyles:y,endAdornment:p,fullWidth:g=!1,id:m,inputComponent:h="input",inputProps:f={},inputRef:x,maxRows:v,minRows:w,multiline:b=!1,name:S,onBlur:k,onChange:E,onClick:T,onFocus:I,onKeyDown:C,onKeyUp:O,placeholder:P,readOnly:z,renderSuffix:A,rows:R,slotProps:M={},slots:N={},startAdornment:F,type:Z="text",value:j}=a,U=(0,L.Z)(a,mr),$=null!=f.value?f.value:j,{current:V}=n.useRef(null!=$),H=n.useRef(),G=n.useCallback((e=>{}),[]),Y=(0,je.Z)(H,x,f.ref,G),[Q,X]=n.useState(!1),ee=cr(),te=sr({props:a,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=ee?ee.focused:Q,n.useEffect((()=>{!ee&&d&&Q&&(X(!1),k&&k())}),[ee,d,Q,k]);const re=ee&&ee.onFilled,ne=ee&&ee.onEmpty,ae=n.useCallback((e=>{yr(e)?re&&re():ne&&ne()}),[re,ne]);(0,ur.Z)((()=>{V&&ae({value:$})}),[$,ae,V]),n.useEffect((()=>{ae(H.current)}),[]);let oe=h,se=f;b&&"input"===oe&&(se=R?(0,D.Z)({type:void 0,minRows:R,maxRows:R},se):(0,D.Z)({type:void 0,maxRows:v,minRows:w},se),oe=ar),n.useEffect((()=>{ee&&ee.setAdornedStart(Boolean(F))}),[ee,F]);const ie=(0,D.Z)({},a,{color:te.color||"primary",disabled:te.disabled,endAdornment:p,error:te.error,focused:te.focused,formControl:ee,fullWidth:g,hiddenLabel:te.hiddenLabel,multiline:b,size:te.size,startAdornment:F,type:Z}),ce=(e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:s,formControl:i,fullWidth:c,hiddenLabel:u,multiline:_,readOnly:l,size:d,startAdornment:y,type:p}=e,g={root:["root",`color${(0,K.Z)(r)}`,n&&"disabled",a&&"error",c&&"fullWidth",s&&"focused",i&&"formControl","small"===d&&"sizeSmall",_&&"multiline",y&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",l&&"readOnly"],input:["input",n&&"disabled","search"===p&&"inputTypeSearch",_&&"inputMultiline","small"===d&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",o&&"inputAdornedEnd",l&&"readOnly"]};return(0,W.Z)(g,pr,t)})(ie),ue=N.root||u.Root||xr,_e=M.root||_.root||{},le=N.input||u.Input||vr;return se=(0,D.Z)({},se,null!=(r=M.input)?r:_.input),(0,J.jsxs)(n.Fragment,{children:[!y&&wr,(0,J.jsxs)(ue,(0,D.Z)({},_e,!or(ue)&&{ownerState:(0,D.Z)({},ie,_e.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),T&&T(e)}},U,{className:(0,B.Z)(ce.root,_e.className,c),children:[F,(0,J.jsx)(ir.Provider,{value:null,children:(0,J.jsx)(le,(0,D.Z)({ownerState:ie,"aria-invalid":te.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:l,disabled:te.disabled,id:m,onAnimationStart:e=>{ae("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:S,placeholder:P,readOnly:z,required:te.required,rows:R,value:$,onKeyDown:C,onKeyUp:O,type:Z},se,!or(le)&&{as:oe,ownerState:(0,D.Z)({},ie,se.ownerState)},{ref:Y,className:(0,B.Z)(ce.input,se.className),onBlur:e=>{k&&k(e),f.onBlur&&f.onBlur(e),ee&&ee.onBlur?ee.onBlur(e):X(!1)},onChange:(e,...t)=>{if(!V){const t=e.target||H.current;if(null==t)throw new Error((0,Gt.Z)(1));ae({value:t.value})}f.onChange&&f.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{te.disabled?e.stopPropagation():(I&&I(e),f.onFocus&&f.onFocus(e),ee&&ee.onFocus?ee.onFocus(e):X(!0))}}))}),p,A?A((0,D.Z)({},te,{startAdornment:F})):null]}))]})})),Sr=br;function kr(e){return(0,Y.Z)("MuiInput",e)}const Er=(0,D.Z)({},gr,(0,G.Z)("MuiInput",["root","underline","input"])),Tr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Ir=(0,H.ZP)(xr,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...hr(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,D.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Cr=(0,H.ZP)(vr,{name:"MuiInput",slot:"Input",overridesResolver:fr})({}),Or=n.forwardRef((function(e,t){var r,n,a,o;const s=(0,q.Z)({props:e,name:"MuiInput"}),{disableUnderline:i,components:c={},componentsProps:u,fullWidth:_=!1,inputComponent:l="input",multiline:d=!1,slotProps:y,slots:p={},type:g="text"}=s,m=(0,L.Z)(s,Tr),h=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},a=(0,W.Z)(n,kr,t);return(0,D.Z)({},t,a)})(s),f={root:{ownerState:{disableUnderline:i}}},x=(null!=y?y:u)?(0,Z.Z)(null!=y?y:u,f):f,v=null!=(r=null!=(n=p.root)?n:c.Root)?r:Ir,w=null!=(a=null!=(o=p.input)?o:c.Input)?a:Cr;return(0,J.jsx)(Sr,(0,D.Z)({slots:{root:v,input:w},slotProps:x,fullWidth:_,inputComponent:l,multiline:d,ref:t,type:g},m,{classes:h}))}));Or.muiName="Input";const Pr=Or;function zr(e){return(0,Y.Z)("MuiFilledInput",e)}const Ar=(0,D.Z)({},gr,(0,G.Z)("MuiFilledInput",["root","underline","input"])),Rr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Mr=(0,H.ZP)(xr,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...hr(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,D.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Ar.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Ar.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ar.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ar.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ar.disabled}, .${Ar.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ar.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,D.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Nr=(0,H.ZP)(vr,{name:"MuiFilledInput",slot:"Input",overridesResolver:fr})((({theme:e,ownerState:t})=>(0,D.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),Fr=n.forwardRef((function(e,t){var r,n,a,o;const s=(0,q.Z)({props:e,name:"MuiFilledInput"}),{components:i={},componentsProps:c,fullWidth:u=!1,inputComponent:_="input",multiline:l=!1,slotProps:d,slots:y={},type:p="text"}=s,g=(0,L.Z)(s,Rr),m=(0,D.Z)({},s,{fullWidth:u,inputComponent:_,multiline:l,type:p}),h=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},a=(0,W.Z)(n,zr,t);return(0,D.Z)({},t,a)})(s),f={root:{ownerState:m},input:{ownerState:m}},x=(null!=d?d:c)?(0,Z.Z)(null!=d?d:c,f):f,v=null!=(r=null!=(n=y.root)?n:i.Root)?r:Mr,w=null!=(a=null!=(o=y.input)?o:i.Input)?a:Nr;return(0,J.jsx)(Sr,(0,D.Z)({slots:{root:v,input:w},componentsProps:x,fullWidth:u,inputComponent:_,multiline:l,ref:t,type:p},g,{classes:h}))}));Fr.muiName="Input";const Lr=Fr;var Dr;const Br=["children","classes","className","label","notched"],Zr=(0,H.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),jr=(0,H.ZP)("legend")((({ownerState:e,theme:t})=>(0,D.Z)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,D.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function Ur(e){return(0,Y.Z)("MuiOutlinedInput",e)}const $r=(0,D.Z)({},gr,(0,G.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),Vr=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Wr=(0,H.ZP)(xr,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:hr})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,D.Z)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$r.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${$r.focused} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$r.error} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$r.disabled} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,D.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Hr=(0,H.ZP)((function(e){const{className:t,label:r,notched:n}=e,a=(0,L.Z)(e,Br),o=null!=r&&""!==r,s=(0,D.Z)({},e,{notched:n,withLabel:o});return(0,J.jsx)(Zr,(0,D.Z)({"aria-hidden":!0,className:t,ownerState:s},a,{children:(0,J.jsx)(jr,{ownerState:s,children:o?(0,J.jsx)("span",{children:r}):Dr||(Dr=(0,J.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),qr=(0,H.ZP)(vr,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fr})((({theme:e,ownerState:t})=>(0,D.Z)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),Kr=n.forwardRef((function(e,t){var r,a,o,s,i;const c=(0,q.Z)({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:_=!1,inputComponent:l="input",label:d,multiline:y=!1,notched:p,slots:g={},type:m="text"}=c,h=(0,L.Z)(c,Vr),f=(e=>{const{classes:t}=e,r=(0,W.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ur,t);return(0,D.Z)({},t,r)})(c),x=cr(),v=sr({props:c,muiFormControl:x,states:["required"]}),w=(0,D.Z)({},c,{color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:x,fullWidth:_,hiddenLabel:v.hiddenLabel,multiline:y,size:v.size,type:m}),b=null!=(r=null!=(a=g.root)?a:u.Root)?r:Wr,S=null!=(o=null!=(s=g.input)?s:u.Input)?o:qr;return(0,J.jsx)(Sr,(0,D.Z)({slots:{root:b,input:S},renderSuffix:e=>(0,J.jsx)(Hr,{ownerState:w,className:f.notchedOutline,label:null!=d&&""!==d&&v.required?i||(i=(0,J.jsxs)(n.Fragment,{children:[d," ","*"]})):d,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:_,inputComponent:l,multiline:y,ref:t,type:m},h,{classes:(0,D.Z)({},f,{notchedOutline:null})}))}));Kr.muiName="Input";const Gr=Kr;function Yr(e){return(0,Y.Z)("MuiFormLabel",e)}const Qr=(0,G.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Jr=["children","className","color","component","disabled","error","filled","focused","required"],Xr=(0,H.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,D.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,D.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Qr.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Qr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qr.error}`]:{color:(e.vars||e).palette.error.main}}))),en=(0,H.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Qr.error}`]:{color:(e.vars||e).palette.error.main}}))),tn=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiFormLabel"}),{children:n,className:a,component:o="label"}=r,s=(0,L.Z)(r,Jr),i=sr({props:r,muiFormControl:cr(),states:["color","required","focused","disabled","error","filled"]}),c=(0,D.Z)({},r,{color:i.color||"primary",component:o,disabled:i.disabled,error:i.error,filled:i.filled,focused:i.focused,required:i.required}),u=(e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:s,required:i}=e,c={root:["root",`color${(0,K.Z)(r)}`,a&&"disabled",o&&"error",s&&"filled",n&&"focused",i&&"required"],asterisk:["asterisk",o&&"error"]};return(0,W.Z)(c,Yr,t)})(c);return(0,J.jsxs)(Xr,(0,D.Z)({as:o,ownerState:c,className:(0,B.Z)(u.root,a),ref:t},s,{children:[n,i.required&&(0,J.jsxs)(en,{ownerState:c,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));function rn(e){return(0,Y.Z)("MuiInputLabel",e)}(0,G.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const nn=["disableAnimation","margin","shrink","variant","className"],an=(0,H.ZP)(tn,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qr.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})((({theme:e,ownerState:t})=>(0,D.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,D.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,D.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,D.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),on=n.forwardRef((function(e,t){const r=(0,q.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:a,className:o}=r,s=(0,L.Z)(r,nn),i=cr();let c=a;void 0===c&&i&&(c=i.filled||i.focused||i.adornedStart);const u=sr({props:r,muiFormControl:i,states:["size","variant","required"]}),_=(0,D.Z)({},r,{disableAnimation:n,formControl:i,shrink:c,size:u.size,variant:u.variant,required:u.required}),l=(e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:s,required:i}=e,c={root:["root",r&&"formControl",!o&&"animated",a&&"shrink","small"===n&&"sizeSmall",s],asterisk:[i&&"asterisk"]},u=(0,W.Z)(c,rn,t);return(0,D.Z)({},t,u)})(_);return(0,J.jsx)(an,(0,D.Z)({"data-shrink":c,ownerState:_,ref:t,className:(0,B.Z)(l.root,o)},s,{classes:l}))}));var sn=r(8502);function cn(e){return(0,Y.Z)("MuiFormControl",e)}(0,G.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const un=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_n=(0,H.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,D.Z)({},t.root,t[`margin${(0,K.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,D.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),ln=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiFormControl"}),{children:a,className:o,color:s="primary",component:i="div",disabled:c=!1,error:u=!1,focused:_,fullWidth:l=!1,hiddenLabel:d=!1,margin:y="none",required:p=!1,size:g="medium",variant:m="outlined"}=r,h=(0,L.Z)(r,un),f=(0,D.Z)({},r,{color:s,component:i,disabled:c,error:u,fullWidth:l,hiddenLabel:d,margin:y,required:p,size:g,variant:m}),x=(e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root","none"!==r&&`margin${(0,K.Z)(r)}`,n&&"fullWidth"]};return(0,W.Z)(a,cn,t)})(f),[v,w]=n.useState((()=>{let e=!1;return a&&n.Children.forEach(a,(t=>{if(!(0,sn.Z)(t,["Input","Select"]))return;const r=(0,sn.Z)(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[b,S]=n.useState((()=>{let e=!1;return a&&n.Children.forEach(a,(t=>{(0,sn.Z)(t,["Input","Select"])&&yr(t.props,!0)&&(e=!0)})),e})),[k,E]=n.useState(!1);c&&k&&E(!1);const T=void 0===_||c?k:_;let I;const C=n.useMemo((()=>({adornedStart:v,setAdornedStart:w,color:s,disabled:c,error:u,filled:b,focused:T,fullWidth:l,hiddenLabel:d,size:g,onBlur:()=>{E(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{E(!0)},registerEffect:I,required:p,variant:m})),[v,s,c,u,b,T,l,d,I,p,g,m]);return(0,J.jsx)(ir.Provider,{value:C,children:(0,J.jsx)(_n,(0,D.Z)({as:i,ownerState:f,className:(0,B.Z)(x.root,o),ref:t},h,{children:a}))})}));function dn(e){return(0,Y.Z)("MuiFormHelperText",e)}const yn=(0,G.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var pn;const gn=["children","className","component","disabled","error","filled","focused","margin","required","variant"],mn=(0,H.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${(0,K.Z)(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,D.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yn.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),hn=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiFormHelperText"}),{children:n,className:a,component:o="p"}=r,s=(0,L.Z)(r,gn),i=sr({props:r,muiFormControl:cr(),states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,D.Z)({},r,{component:o,contained:"filled"===i.variant||"outlined"===i.variant,variant:i.variant,size:i.size,disabled:i.disabled,error:i.error,filled:i.filled,focused:i.focused,required:i.required}),u=(e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:s,focused:i,required:c}=e,u={root:["root",a&&"disabled",o&&"error",n&&`size${(0,K.Z)(n)}`,r&&"contained",i&&"focused",s&&"filled",c&&"required"]};return(0,W.Z)(u,dn,t)})(c);return(0,J.jsx)(mn,(0,D.Z)({as:o,ownerState:c,className:(0,B.Z)(u.root,a),ref:t},s,{children:" "===n?pn||(pn=(0,J.jsx)("span",{className:"notranslate",children:"​"})):n}))}));r(9864);var fn=r(8038);const xn=n.createContext({});function vn(e){return(0,Y.Z)("MuiList",e)}(0,G.Z)("MuiList",["root","padding","dense","subheader"]);const wn=["children","className","component","dense","disablePadding","subheader"],bn=(0,H.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>(0,D.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Sn=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiList"}),{children:a,className:o,component:s="ul",dense:i=!1,disablePadding:c=!1,subheader:u}=r,_=(0,L.Z)(r,wn),l=n.useMemo((()=>({dense:i})),[i]),d=(0,D.Z)({},r,{component:s,dense:i,disablePadding:c}),y=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e,o={root:["root",!r&&"padding",n&&"dense",a&&"subheader"]};return(0,W.Z)(o,vn,t)})(d);return(0,J.jsx)(xn.Provider,{value:l,children:(0,J.jsxs)(bn,(0,D.Z)({as:s,className:(0,B.Z)(y.root,o),ref:t,ownerState:d},_,{children:[u,a]}))})}));function kn(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const En=kn,Tn=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function In(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Cn(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function On(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Pn(e,t,r,n,a,o){let s=!1,i=a(e,t,!!t&&r);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const t=!n&&(i.disabled||"true"===i.getAttribute("aria-disabled"));if(i.hasAttribute("tabindex")&&On(i,o)&&!t)return i.focus(),!0;i=a(e,i,r)}return!1}const zn=n.forwardRef((function(e,t){const{actions:r,autoFocus:a=!1,autoFocusItem:o=!1,children:s,className:i,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:_,variant:l="selectedMenu"}=e,d=(0,L.Z)(e,Tn),y=n.useRef(null),p=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,ur.Z)((()=>{a&&y.current.focus()}),[a]),n.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!y.current.style.width;if(e.clientHeight{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===l&&e.props.selected||-1===m)&&(m=t))}));const h=n.Children.map(s,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===l&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,J.jsx)(Sn,(0,D.Z)({role:"menu",ref:g,className:i,onKeyDown:e=>{const t=y.current,r=e.key,n=(0,fn.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Pn(t,n,u,c,In);else if("ArrowUp"===r)e.preventDefault(),Pn(t,n,u,c,Cn);else if("Home"===r)e.preventDefault(),Pn(t,null,u,c,In);else if("End"===r)e.preventDefault(),Pn(t,null,u,c,Cn);else if(1===r.length){const a=p.current,o=r.toLowerCase(),s=performance.now();a.keys.length>0&&(s-a.lastTime>500?(a.keys=[],a.repeating=!0,a.previousKeyMatched=!0):a.repeating&&o!==a.keys[0]&&(a.repeating=!1)),a.lastTime=s,a.keys.push(o);const i=n&&!a.repeating&&On(n,a);a.previousKeyMatched&&(i||Pn(t,n,!1,c,In,a))?e.preventDefault():a.previousKeyMatched=!1}_&&_(e)},tabIndex:a?0:-1},d,{children:h}))}));var An=r(7144),Rn=r(5340);var Mn="unmounted",Nn="exited",Fn="entering",Ln="entered",Dn="exiting",Bn=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var a,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(a=Nn,n.appearStatus=Fn):a=Ln:a=t.unmountOnExit||t.mountOnEnter?Mn:Nn,n.state={status:a},n.nextCallback=null,n}(0,Ve.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Mn?{status:Nn}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Fn&&r!==Ln&&(t=Fn):r!==Fn&&r!==Ln||(t=Dn)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Fn){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nn&&this.setState({status:Mn})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,a=this.props.nodeRef?[n]:[o.findDOMNode(this),n],s=a[0],i=a[1],c=this.getTimeouts(),u=n?c.appear:c.enter;e||r?(this.props.onEnter(s,i),this.safeSetState({status:Fn},(function(){t.props.onEntering(s,i),t.onTransitionEnd(u,(function(){t.safeSetState({status:Ln},(function(){t.props.onEntered(s,i)}))}))}))):this.safeSetState({status:Ln},(function(){t.props.onEntered(s)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:o.findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:Dn},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Nn},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Nn},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],s=a[0],i=a[1];this.props.addEndListener(s,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Mn)return null;var t=this.props,r=t.children,a=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,L.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return n.createElement(We.Provider,{value:null},"function"==typeof r?r(e,a):n.cloneElement(n.Children.only(r),a))},t}(n.Component);function Zn(){}Bn.contextType=We,Bn.propTypes={},Bn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zn,onEntering:Zn,onEntered:Zn,onExit:Zn,onExiting:Zn,onExited:Zn},Bn.UNMOUNTED=Mn,Bn.EXITED=Nn,Bn.ENTERING=Fn,Bn.ENTERED=Ln,Bn.EXITING=Dn;const jn=Bn,Un=e=>e.scrollTop;function $n(e,t){var r,n;const{timeout:a,easing:o,style:s={}}=e;return{duration:null!=(r=s.transitionDuration)?r:"number"==typeof a?a:a[t.mode]||0,easing:null!=(n=s.transitionTimingFunction)?n:"object"==typeof o?o[t.mode]:o,delay:s.transitionDelay}}const Vn=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Wn(e){return`scale(${e}, ${e**2})`}const Hn={entering:{opacity:1,transform:Wn(1)},entered:{opacity:1,transform:"none"}},qn="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Kn=n.forwardRef((function(e,t){const{addEndListener:r,appear:a=!0,children:o,easing:s,in:i,onEnter:c,onEntered:u,onEntering:_,onExit:l,onExited:d,onExiting:y,style:p,timeout:g="auto",TransitionComponent:m=jn}=e,h=(0,L.Z)(e,Vn),f=n.useRef(),x=n.useRef(),v=Ce(),w=n.useRef(null),b=(0,je.Z)(w,o.ref,t),S=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},k=S(_),E=S(((e,t)=>{Un(e);const{duration:r,delay:n,easing:a}=$n({style:p,timeout:g,easing:s},{mode:"enter"});let o;"auto"===g?(o=v.transitions.getAutoHeightDuration(e.clientHeight),x.current=o):o=r,e.style.transition=[v.transitions.create("opacity",{duration:o,delay:n}),v.transitions.create("transform",{duration:qn?o:.666*o,delay:n,easing:a})].join(","),c&&c(e,t)})),T=S(u),I=S(y),C=S((e=>{const{duration:t,delay:r,easing:n}=$n({style:p,timeout:g,easing:s},{mode:"exit"});let a;"auto"===g?(a=v.transitions.getAutoHeightDuration(e.clientHeight),x.current=a):a=t,e.style.transition=[v.transitions.create("opacity",{duration:a,delay:r}),v.transitions.create("transform",{duration:qn?a:.666*a,delay:qn?r:r||.333*a,easing:n})].join(","),e.style.opacity=0,e.style.transform=Wn(.75),l&&l(e)})),O=S(d);return n.useEffect((()=>()=>{clearTimeout(f.current)}),[]),(0,J.jsx)(m,(0,D.Z)({appear:a,in:i,nodeRef:w,onEnter:E,onEntered:T,onEntering:k,onExit:C,onExited:O,onExiting:I,addEndListener:e=>{"auto"===g&&(f.current=setTimeout(e,x.current||0)),r&&r(w.current,e)},timeout:"auto"===g?null:g},h,{children:(e,t)=>n.cloneElement(o,(0,D.Z)({style:(0,D.Z)({opacity:0,transform:Wn(.75),visibility:"exited"!==e||i?void 0:"hidden"},Hn[e],p,o.props.style),ref:b},t))}))}));Kn.muiSupportAuto=!0;const Gn=Kn;var Yn=r(7094),Qn=r(3633),Jn=r(9064),Xn=r(7960);const ea=n.forwardRef((function(e,t){const{children:r,container:a,disablePortal:s=!1}=e,[i,c]=n.useState(null),u=(0,Yt.Z)(n.isValidElement(r)?r.ref:null,t);if((0,Xt.Z)((()=>{s||c(function(e){return"function"==typeof e?e():e}(a)||document.body)}),[a,s]),(0,Xt.Z)((()=>{if(i&&!s)return(0,Xn.Z)(t,i),()=>{(0,Xn.Z)(t,null)}}),[t,i,s]),s){if(n.isValidElement(r)){const e={ref:u};return n.cloneElement(r,e)}return(0,J.jsx)(n.Fragment,{children:r})}return(0,J.jsx)(n.Fragment,{children:i?o.createPortal(r,i):i})}));function ta(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ra(e){return parseInt((0,Qt.Z)(e).getComputedStyle(e).paddingRight,10)||0}function na(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&ta(e,a)}))}function aa(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}const oa=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sa(e){const t=[],r=[];return Array.from(e.querySelectorAll(oa)).forEach(((e,n)=>{const a=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==a&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===a?t.push(e):r.push({documentOrder:n,tabIndex:a,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function ia(){return!0}const ca=function(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:a=!1,disableRestoreFocus:o=!1,getTabbable:s=sa,isEnabled:i=ia,open:c}=e,u=n.useRef(!1),_=n.useRef(null),l=n.useRef(null),d=n.useRef(null),y=n.useRef(null),p=n.useRef(!1),g=n.useRef(null),m=(0,Yt.Z)(t.ref,g),h=n.useRef(null);n.useEffect((()=>{c&&g.current&&(p.current=!r)}),[r,c]),n.useEffect((()=>{if(!c||!g.current)return;const e=(0,Yn.Z)(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),p.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}}),[c]),n.useEffect((()=>{if(!c||!g.current)return;const e=(0,Yn.Z)(g.current),t=t=>{const{current:r}=g;if(null!==r)if(e.hasFocus()&&!a&&i()&&!u.current){if(!r.contains(e.activeElement)){if(t&&y.current!==t.target||e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(!p.current)return;let a=[];if(e.activeElement!==_.current&&e.activeElement!==l.current||(a=s(g.current)),a.length>0){var n,o;const e=Boolean((null==(n=h.current)?void 0:n.shiftKey)&&"Tab"===(null==(o=h.current)?void 0:o.key)),t=a[0],r=a[a.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else r.focus()}}else u.current=!1},r=t=>{h.current=t,!a&&i()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(u.current=!0,l.current&&l.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",r,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",t),e.removeEventListener("keydown",r,!0)}}),[r,a,o,i,c,s]);const f=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return(0,J.jsxs)(n.Fragment,{children:[(0,J.jsx)("div",{tabIndex:c?0:-1,onFocus:f,ref:_,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,y.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,J.jsx)("div",{tabIndex:c?0:-1,onFocus:f,ref:l,"data-testid":"sentinelEnd"})]})};function ua(e){return(0,Y.Z)("MuiModal",e)}function _a(e,t,r){return void 0===e||or(e)?t:(0,D.Z)({},t,{ownerState:(0,D.Z)({},t.ownerState,r)})}function la(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}function da(e,t){return"function"==typeof e?e(t):e}(0,G.Z)("MuiModal",["root","hidden"]);const ya=["elementType","externalSlotProps","ownerState"];function pa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a}=e,o=(0,L.Z)(e,ya),s=da(n,a),{props:i,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const e=(0,B.Z)(null==a?void 0:a.className,null==n?void 0:n.className,o,null==r?void 0:r.className),t=(0,D.Z)({},null==r?void 0:r.style,null==a?void 0:a.style,null==n?void 0:n.style),s=(0,D.Z)({},r,a,n);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}((0,D.Z)({},a,n)),i=la(n),c=la(a),u=t(s),_=(0,B.Z)(null==u?void 0:u.className,null==r?void 0:r.className,o,null==a?void 0:a.className,null==n?void 0:n.className),l=(0,D.Z)({},null==u?void 0:u.style,null==r?void 0:r.style,null==a?void 0:a.style,null==n?void 0:n.style),d=(0,D.Z)({},u,r,c,i);return _.length>0&&(d.className=_),Object.keys(l).length>0&&(d.style=l),{props:d,internalRef:u.ref}}((0,D.Z)({},o,{externalSlotProps:s})),u=(0,Yt.Z)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return _a(r,(0,D.Z)({},i,{ref:u}),a)}const ga=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],ma=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&ta(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);na(t,e.mount,e.modalRef,n,!0);const a=aa(this.containers,(e=>e.container===t));return-1!==a?(this.containers[a].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=aa(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Yn.Z)(e);return t.body===e?(0,Qt.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=kn((0,Yn.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ra(n)+e}px`;const t=(0,Yn.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ra(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,Yn.Z)(n).body;else{const t=n.parentElement,r=(0,Qt.Z)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=aa(this.containers,(t=>-1!==t.modals.indexOf(e))),a=this.containers[n];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(r,1),0===a.modals.length)a.restore&&a.restore(),e.modalRef&&ta(e.modalRef,t),na(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=a.modals[a.modals.length-1];e.modalRef&&ta(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},ha=n.forwardRef((function(e,t){var r,a;const{children:o,classes:s,closeAfterTransition:i=!1,component:c,container:u,disableAutoFocus:_=!1,disableEnforceFocus:l=!1,disableEscapeKeyDown:d=!1,disablePortal:y=!1,disableRestoreFocus:p=!1,disableScrollLock:g=!1,hideBackdrop:m=!1,keepMounted:h=!1,manager:f=ma,onBackdropClick:x,onClose:v,onKeyDown:w,open:b,onTransitionEnter:S,onTransitionExited:k,slotProps:E={},slots:T={}}=e,I=(0,L.Z)(e,ga),[C,O]=n.useState(!b),P=n.useRef({}),z=n.useRef(null),A=n.useRef(null),R=(0,Yt.Z)(A,t),M=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),N=null==(r=e["aria-hidden"])||r,F=()=>(P.current.modalRef=A.current,P.current.mountNode=z.current,P.current),B=()=>{f.mount(F(),{disableScrollLock:g}),A.current&&(A.current.scrollTop=0)},Z=(0,Qn.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(u)||(0,Yn.Z)(z.current).body;f.add(F(),e),A.current&&B()})),j=n.useCallback((()=>f.isTopModal(F())),[f]),U=(0,Qn.Z)((e=>{z.current=e,e&&A.current&&(b&&j()?B():ta(A.current,N))})),$=n.useCallback((()=>{f.remove(F(),N)}),[f,N]);n.useEffect((()=>()=>{$()}),[$]),n.useEffect((()=>{b?Z():M&&i||$()}),[b,$,M,i,Z]);const V=(0,D.Z)({},e,{classes:s,closeAfterTransition:i,disableAutoFocus:_,disableEnforceFocus:l,disableEscapeKeyDown:d,disablePortal:y,disableRestoreFocus:p,disableScrollLock:g,exited:C,hideBackdrop:m,keepMounted:h}),H=(e=>{const{open:t,exited:r,classes:n}=e,a={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,W.Z)(a,ua,n)})(V),q={};void 0===o.props.tabIndex&&(q.tabIndex="-1"),M&&(q.onEnter=(0,Jn.Z)((()=>{O(!1),S&&S()}),o.props.onEnter),q.onExited=(0,Jn.Z)((()=>{O(!0),k&&k(),i&&$()}),o.props.onExited));const K=null!=(a=null!=c?c:T.root)?a:"div",G=pa({elementType:K,externalSlotProps:E.root,externalForwardedProps:I,additionalProps:{ref:R,role:"presentation",onKeyDown:e=>{w&&w(e),"Escape"===e.key&&j()&&(d||(e.stopPropagation(),v&&v(e,"escapeKeyDown")))}},className:H.root,ownerState:V}),Y=T.backdrop,Q=pa({elementType:Y,externalSlotProps:E.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(x&&x(e),v&&v(e,"backdropClick"))},open:b},className:H.backdrop,ownerState:V});return h||b||M&&!C?(0,J.jsx)(ea,{ref:U,container:u,disablePortal:y,children:(0,J.jsxs)(K,(0,D.Z)({},G,{children:[!m&&Y?(0,J.jsx)(Y,(0,D.Z)({},Q)):null,(0,J.jsx)(ca,{disableEnforceFocus:l,disableAutoFocus:_,disableRestoreFocus:p,isEnabled:j,open:b,children:n.cloneElement(o,q)})]}))}):null})),fa=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xa={entering:{opacity:1},entered:{opacity:1}},va=n.forwardRef((function(e,t){const r=Ce(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:i,easing:c,in:u,onEnter:_,onEntered:l,onEntering:d,onExit:y,onExited:p,onExiting:g,style:m,timeout:h=a,TransitionComponent:f=jn}=e,x=(0,L.Z)(e,fa),v=n.useRef(null),w=(0,je.Z)(v,i.ref,t),b=e=>t=>{if(e){const r=v.current;void 0===t?e(r):e(r,t)}},S=b(d),k=b(((e,t)=>{Un(e);const n=$n({style:m,timeout:h,easing:c},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),_&&_(e,t)})),E=b(l),T=b(g),I=b((e=>{const t=$n({style:m,timeout:h,easing:c},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),y&&y(e)})),C=b(p);return(0,J.jsx)(f,(0,D.Z)({appear:s,in:u,nodeRef:v,onEnter:k,onEntered:E,onEntering:S,onExit:I,onExited:C,onExiting:T,addEndListener:e=>{o&&o(v.current,e)},timeout:h},x,{children:(e,t)=>n.cloneElement(i,(0,D.Z)({style:(0,D.Z)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},xa[e],m,i.props.style),ref:w},t))}))}));function wa(e){return(0,Y.Z)("MuiBackdrop",e)}(0,G.Z)("MuiBackdrop",["root","invisible"]);const ba=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],Sa=(0,H.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>(0,D.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),ka=n.forwardRef((function(e,t){var r,n,a;const o=(0,q.Z)({props:e,name:"MuiBackdrop"}),{children:s,component:i="div",components:c={},componentsProps:u={},className:_,invisible:l=!1,open:d,slotProps:y={},slots:p={},transitionDuration:g,TransitionComponent:m=va}=o,h=(0,L.Z)(o,ba),f=(0,D.Z)({},o,{component:i,invisible:l}),x=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,W.Z)(n,wa,t)})(f),v=null!=(r=y.root)?r:u.root;return(0,J.jsx)(m,(0,D.Z)({in:d,timeout:g},h,{children:(0,J.jsx)(Sa,(0,D.Z)({"aria-hidden":!0},v,{as:null!=(n=null!=(a=p.root)?a:c.Root)?n:i,className:(0,B.Z)(x.root,_,null==v?void 0:v.className),ownerState:(0,D.Z)({},f,null==v?void 0:v.ownerState),classes:x,ref:t,children:s}))}))})),Ea=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],Ta=(0,H.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,D.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ia=(0,H.ZP)(ka,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ca=n.forwardRef((function(e,t){var r,a,o,s,i,c;const u=(0,q.Z)({name:"MuiModal",props:e}),{BackdropComponent:_=Ia,BackdropProps:l,closeAfterTransition:d=!1,children:y,component:p,components:g={},componentsProps:m={},disableAutoFocus:h=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:x=!1,disablePortal:v=!1,disableRestoreFocus:w=!1,disableScrollLock:b=!1,hideBackdrop:S=!1,keepMounted:k=!1,slotProps:E,slots:T,theme:I}=u,C=(0,L.Z)(u,Ea),[O,P]=n.useState(!0),z={closeAfterTransition:d,disableAutoFocus:h,disableEnforceFocus:f,disableEscapeKeyDown:x,disablePortal:v,disableRestoreFocus:w,disableScrollLock:b,hideBackdrop:S,keepMounted:k},A=(0,D.Z)({},u,z,{exited:O}),R=(e=>e.classes)(A),M=null!=(r=null!=(a=null==T?void 0:T.root)?a:g.Root)?r:Ta,N=null!=(o=null!=(s=null==T?void 0:T.backdrop)?s:g.Backdrop)?o:_,F=null!=(i=null==E?void 0:E.root)?i:m.root,B=null!=(c=null==E?void 0:E.backdrop)?c:m.backdrop;return(0,J.jsx)(ha,(0,D.Z)({slots:{root:M,backdrop:N},slotProps:{root:()=>(0,D.Z)({},da(F,A),!or(M)&&{as:p,theme:I}),backdrop:()=>(0,D.Z)({},l,da(B,A))},onTransitionEnter:()=>P(!1),onTransitionExited:()=>P(!0),ref:t},C,{classes:R},z,{children:y}))}));function Oa(e){return(0,Y.Z)("MuiPopover",e)}(0,G.Z)("MuiPopover",["root","paper"]);const Pa=["onEntering"],za=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Aa(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ra(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Ma(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Na(e){return"function"==typeof e?e():e}const Fa=(0,H.ZP)(Ca,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),La=(0,H.ZP)(ge,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Da=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiPopover"}),{action:a,anchorEl:o,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:c="anchorEl",children:u,className:_,container:l,elevation:d=8,marginThreshold:y=16,open:p,PaperProps:g={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:h=Gn,transitionDuration:f="auto",TransitionProps:{onEntering:x}={}}=r,v=(0,L.Z)(r.TransitionProps,Pa),w=(0,L.Z)(r,za),b=n.useRef(),S=(0,je.Z)(b,g.ref),k=(0,D.Z)({},r,{anchorOrigin:s,anchorReference:c,elevation:d,marginThreshold:y,PaperProps:g,transformOrigin:m,TransitionComponent:h,transitionDuration:f,TransitionProps:v}),E=(e=>{const{classes:t}=e;return(0,W.Z)({root:["root"],paper:["paper"]},Oa,t)})(k),T=n.useCallback((()=>{if("anchorPosition"===c)return i;const e=Na(o),t=(e&&1===e.nodeType?e:(0,fn.Z)(b.current).body).getBoundingClientRect();return{top:t.top+Aa(t,s.vertical),left:t.left+Ra(t,s.horizontal)}}),[o,s.horizontal,s.vertical,i,c]),I=n.useCallback((e=>({vertical:Aa(e,m.vertical),horizontal:Ra(e,m.horizontal)})),[m.horizontal,m.vertical]),C=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=I(t);if("none"===c)return{top:null,left:null,transformOrigin:Ma(r)};const n=T();let a=n.top-r.vertical,s=n.left-r.horizontal;const i=a+t.height,u=s+t.width,_=(0,Rn.Z)(Na(o)),l=_.innerHeight-y,d=_.innerWidth-y;if(al){const e=i-l;a-=e,r.vertical+=e}if(sd){const e=u-d;s-=e,r.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(s)}px`,transformOrigin:Ma(r)}}),[o,c,T,I,y]),[O,P]=n.useState(p),z=n.useCallback((()=>{const e=b.current;if(!e)return;const t=C(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[C]);n.useEffect((()=>{p&&z()})),n.useImperativeHandle(a,(()=>p?{updatePosition:()=>{z()}}:null),[p,z]),n.useEffect((()=>{if(!p)return;const e=(0,An.Z)((()=>{z()})),t=(0,Rn.Z)(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,p,z]);let A=f;"auto"!==f||h.muiSupportAuto||(A=void 0);const R=l||(o?(0,fn.Z)(Na(o)).body:void 0);return(0,J.jsx)(Fa,(0,D.Z)({BackdropProps:{invisible:!0},className:(0,B.Z)(E.root,_),container:R,open:p,ref:t,ownerState:k},w,{children:(0,J.jsx)(h,(0,D.Z)({appear:!0,in:p,onEntering:(e,t)=>{x&&x(e,t),z()},onExited:()=>{P(!1)},timeout:A},v,{children:(0,J.jsx)(La,(0,D.Z)({elevation:d},g,{ref:S,className:(0,B.Z)(E.paper,g.className)},O?void 0:{style:(0,D.Z)({},g.style,{opacity:0})},{ownerState:k,children:u}))}))}))})),Ba=Da;function Za(e){return(0,Y.Z)("MuiMenu",e)}(0,G.Z)("MuiMenu",["root","paper","list"]);const ja=["onEntering"],Ua=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],$a={vertical:"top",horizontal:"right"},Va={vertical:"top",horizontal:"left"},Wa=(0,H.ZP)(Ba,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ha=(0,H.ZP)(ge,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qa=(0,H.ZP)(zn,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ka=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:o,disableAutoFocusItem:s=!1,MenuListProps:i={},onClose:c,open:u,PaperProps:_={},PopoverClasses:l,transitionDuration:d="auto",TransitionProps:{onEntering:y}={},variant:p="selectedMenu"}=r,g=(0,L.Z)(r.TransitionProps,ja),m=(0,L.Z)(r,Ua),h=Ce(),f="rtl"===h.direction,x=(0,D.Z)({},r,{autoFocus:a,disableAutoFocusItem:s,MenuListProps:i,onEntering:y,PaperProps:_,transitionDuration:d,TransitionProps:g,variant:p}),v=(e=>{const{classes:t}=e;return(0,W.Z)({root:["root"],paper:["paper"],list:["list"]},Za,t)})(x),w=a&&!s&&u,b=n.useRef(null);let S=-1;return n.Children.map(o,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===S)&&(S=t))})),(0,J.jsx)(Wa,(0,D.Z)({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:f?"right":"left"},transformOrigin:f?$a:Va,PaperProps:(0,D.Z)({component:Ha},_,{classes:(0,D.Z)({},_.classes,{root:v.paper})}),className:v.root,open:u,ref:t,transitionDuration:d,TransitionProps:(0,D.Z)({onEntering:(e,t)=>{b.current&&b.current.adjustStyleForScrollbar(e,h),y&&y(e,t)}},g),ownerState:x},m,{classes:l,children:(0,J.jsx)(qa,(0,D.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:b,autoFocus:a&&(-1===S||s),autoFocusItem:w,variant:p},i,{className:(0,B.Z)(v.list,i.className),children:o}))}))}));function Ga(e){return(0,Y.Z)("MuiNativeSelect",e)}const Ya=(0,G.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Qa=["className","disabled","IconComponent","inputRef","variant"],Ja=({ownerState:e,theme:t})=>(0,D.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,D.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Ya.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Xa=(0,H.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:H.FO,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],{[`&.${Ya.multiple}`]:t.multiple}]}})(Ja),eo=({ownerState:e,theme:t})=>(0,D.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Ya.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),to=(0,H.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${(0,K.Z)(r.variant)}`],r.open&&t.iconOpen]}})(eo),ro=n.forwardRef((function(e,t){const{className:r,disabled:a,IconComponent:o,inputRef:s,variant:i="standard"}=e,c=(0,L.Z)(e,Qa),u=(0,D.Z)({},e,{disabled:a,variant:i}),_=(e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o}=e,s={select:["select",r,n&&"disabled",a&&"multiple"],icon:["icon",`icon${(0,K.Z)(r)}`,o&&"iconOpen",n&&"disabled"]};return(0,W.Z)(s,Ga,t)})(u);return(0,J.jsxs)(n.Fragment,{children:[(0,J.jsx)(Xa,(0,D.Z)({ownerState:u,className:(0,B.Z)(_.select,r),disabled:a,ref:s||t},c)),e.multiple?null:(0,J.jsx)(to,{as:o,ownerState:u,className:_.icon})]})}));var no=r(2893);function ao(e){return(0,Y.Z)("MuiSelect",e)}const oo=(0,G.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var so;const io=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],co=(0,H.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${oo.select}`]:t.select},{[`&.${oo.select}`]:t[r.variant]},{[`&.${oo.multiple}`]:t.multiple}]}})(Ja,{[`&.${oo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),uo=(0,H.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${(0,K.Z)(r.variant)}`],r.open&&t.iconOpen]}})(eo),_o=(0,H.ZP)("input",{shouldForwardProp:e=>(0,H.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lo(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yo(e){return null==e||"string"==typeof e&&!e.trim()}const po=n.forwardRef((function(e,t){const{"aria-describedby":r,"aria-label":a,autoFocus:o,autoWidth:s,children:i,className:c,defaultOpen:u,defaultValue:_,disabled:l,displayEmpty:d,IconComponent:y,inputRef:p,labelId:g,MenuProps:m={},multiple:h,name:f,onBlur:x,onChange:v,onClose:w,onFocus:b,onOpen:S,open:k,readOnly:E,renderValue:T,SelectDisplayProps:I={},tabIndex:C,value:O,variant:P="standard"}=e,z=(0,L.Z)(e,io),[A,R]=(0,no.Z)({controlled:O,default:_,name:"Select"}),[M,N]=(0,no.Z)({controlled:k,default:u,name:"Select"}),F=n.useRef(null),Z=n.useRef(null),[j,U]=n.useState(null),{current:$}=n.useRef(null!=k),[V,H]=n.useState(),q=(0,je.Z)(t,p),G=n.useCallback((e=>{Z.current=e,e&&U(e)}),[]),Y=null==j?void 0:j.parentNode;n.useImperativeHandle(q,(()=>({focus:()=>{Z.current.focus()},node:F.current,value:A})),[A]),n.useEffect((()=>{u&&M&&j&&!$&&(H(s?null:Y.clientWidth),Z.current.focus())}),[j,s]),n.useEffect((()=>{o&&Z.current.focus()}),[o]),n.useEffect((()=>{if(!g)return;const e=(0,fn.Z)(Z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&Z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Q=(e,t)=>{e?S&&S(t):w&&w(t),$||(H(s?null:Y.clientWidth),N(e))},X=n.Children.toArray(i),ee=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(h){r=Array.isArray(A)?A.slice():[];const t=A.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),A!==r&&(R(r),v)){const n=t.nativeEvent||t,a=new n.constructor(n.type,n);Object.defineProperty(a,"target",{writable:!0,value:{value:r,name:f}}),v(a,e)}h||Q(!1,t)}},te=null!==j&&M;let re,ne;delete z["aria-invalid"];const ae=[];let oe=!1,se=!1;(yr({value:A})||d)&&(T?re=T(A):oe=!0);const ie=X.map(((e,t,r)=>{var a,o,s,i;if(!n.isValidElement(e))return null;let c;if(h){if(!Array.isArray(A))throw new Error((0,Gt.Z)(2));c=A.some((t=>lo(t,e.props.value))),c&&oe&&ae.push(e.props.children)}else c=lo(A,e.props.value),c&&oe&&(ne=e.props.children);return c&&(se=!0),void 0===e.props.value?n.cloneElement(e,{"aria-readonly":!0,role:"option"}):n.cloneElement(e,{"aria-selected":c?"true":"false",onClick:ee(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===(null==(a=r[0])||null==(o=a.props)?void 0:o.value)||!0===(null==(s=r[0])||null==(i=s.props)?void 0:i.disabled)?(()=>{if(A)return c;const t=r.find((e=>{var t;return void 0!==(null==e||null==(t=e.props)?void 0:t.value)&&!0!==e.props.disabled}));return e===t||c})():c,value:void 0,"data-value":e.props.value})}));oe&&(re=h?0===ae.length?null:ae.reduce(((e,t,r)=>(e.push(t),r{const{classes:t,variant:r,disabled:n,multiple:a,open:o}=e,s={select:["select",r,n&&"disabled",a&&"multiple"],icon:["icon",`icon${(0,K.Z)(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,W.Z)(s,ao,t)})(le);return(0,J.jsxs)(n.Fragment,{children:[(0,J.jsx)(co,(0,D.Z)({ref:G,tabIndex:ce,role:"button","aria-disabled":l?"true":void 0,"aria-expanded":te?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[g,_e].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{E||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Q(!0,e))},onMouseDown:l||E?null:e=>{0===e.button&&(e.preventDefault(),Z.current.focus(),Q(!0,e))},onBlur:e=>{!te&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:A,name:f}}),x(e))},onFocus:b},I,{ownerState:le,className:(0,B.Z)(I.className,de.select,c),id:_e,children:yo(re)?so||(so=(0,J.jsx)("span",{className:"notranslate",children:"​"})):re})),(0,J.jsx)(_o,(0,D.Z)({value:Array.isArray(A)?A.join(","):A,name:f,ref:F,"aria-hidden":!0,onChange:e=>{const t=X.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const r=X[t];R(r.props.value),v&&v(e,r)},tabIndex:-1,disabled:l,className:de.nativeInput,autoFocus:o,ownerState:le},z)),(0,J.jsx)(uo,{as:y,className:de.icon,ownerState:le}),(0,J.jsx)(Ka,(0,D.Z)({id:`menu-${f||""}`,anchorEl:Y,open:te,onClose:e=>{Q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},m,{MenuListProps:(0,D.Z)({"aria-labelledby":g,role:"listbox",disableListWrap:!0},m.MenuListProps),PaperProps:(0,D.Z)({},m.PaperProps,{style:(0,D.Z)({minWidth:ue},null!=m.PaperProps?m.PaperProps.style:null)}),children:ie}))]})})),go=po;var mo=r(5949);const ho=(0,mo.Z)((0,J.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var fo,xo;const vo=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],wo={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,H.FO)(e)&&"variant"!==e,slot:"Root"},bo=(0,H.ZP)(Pr,wo)(""),So=(0,H.ZP)(Gr,wo)(""),ko=(0,H.ZP)(Lr,wo)(""),Eo=n.forwardRef((function(e,t){const r=(0,q.Z)({name:"MuiSelect",props:e}),{autoWidth:a=!1,children:o,classes:s={},className:i,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:_=ho,id:l,input:d,inputProps:y,label:p,labelId:g,MenuProps:m,multiple:h=!1,native:f=!1,onClose:x,onOpen:v,open:w,renderValue:b,SelectDisplayProps:S,variant:k="outlined"}=r,E=(0,L.Z)(r,vo),T=f?ro:go,I=sr({props:r,muiFormControl:cr(),states:["variant"]}).variant||k,C=d||{standard:fo||(fo=(0,J.jsx)(bo,{})),outlined:(0,J.jsx)(So,{label:p}),filled:xo||(xo=(0,J.jsx)(ko,{}))}[I],O=(e=>{const{classes:t}=e;return t})((0,D.Z)({},r,{variant:I,classes:s})),P=(0,je.Z)(t,C.ref);return(0,J.jsx)(n.Fragment,{children:n.cloneElement(C,(0,D.Z)({inputComponent:T,inputProps:(0,D.Z)({children:o,IconComponent:_,variant:I,type:void 0,multiple:h},f?{id:l}:{autoWidth:a,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:m,onClose:x,onOpen:v,open:w,renderValue:b,SelectDisplayProps:(0,D.Z)({id:l},S)},y,{classes:y?(0,Z.Z)(O,y.classes):O},d?d.props.inputProps:{})},h&&f&&"outlined"===I?{notched:!0}:{},{ref:P,className:(0,B.Z)(C.props.className,i)},!d&&{variant:I},E))})}));Eo.muiName="Select";const To=Eo;function Io(e){return(0,Y.Z)("MuiTextField",e)}(0,G.Z)("MuiTextField",["root"]);const Co=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Oo={standard:Pr,filled:Lr,outlined:Gr},Po=(0,H.ZP)(ln,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zo=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:a=!1,children:o,className:s,color:i="primary",defaultValue:c,disabled:u=!1,error:_=!1,FormHelperTextProps:l,fullWidth:d=!1,helperText:y,id:p,InputLabelProps:g,inputProps:m,InputProps:h,inputRef:f,label:x,maxRows:v,minRows:w,multiline:b=!1,name:S,onBlur:k,onChange:E,onFocus:T,placeholder:I,required:C=!1,rows:O,select:P=!1,SelectProps:z,type:A,value:R,variant:M="outlined"}=r,N=(0,L.Z)(r,Co),F=(0,D.Z)({},r,{autoFocus:a,color:i,disabled:u,error:_,fullWidth:d,multiline:b,required:C,select:P,variant:M}),Z=(e=>{const{classes:t}=e;return(0,W.Z)({root:["root"]},Io,t)})(F),j={};"outlined"===M&&(g&&void 0!==g.shrink&&(j.notched=g.shrink),j.label=x),P&&(z&&z.native||(j.id=void 0),j["aria-describedby"]=void 0);const U=(0,Kt.Z)(p),$=y&&U?`${U}-helper-text`:void 0,V=x&&U?`${U}-label`:void 0,H=Oo[M],K=(0,J.jsx)(H,(0,D.Z)({"aria-describedby":$,autoComplete:n,autoFocus:a,defaultValue:c,fullWidth:d,multiline:b,name:S,rows:O,maxRows:v,minRows:w,type:A,value:R,id:U,inputRef:f,onBlur:k,onChange:E,onFocus:T,placeholder:I,inputProps:m},j,h));return(0,J.jsxs)(Po,(0,D.Z)({className:(0,B.Z)(Z.root,s),disabled:u,error:_,fullWidth:d,ref:t,required:C,color:i,variant:M,ownerState:F},N,{children:[null!=x&&""!==x&&(0,J.jsx)(on,(0,D.Z)({htmlFor:U,id:V},g,{children:x})),P?(0,J.jsx)(To,(0,D.Z)({"aria-describedby":$,id:U,labelId:V,value:R,input:K},z,{children:o})):K,y&&(0,J.jsx)(hn,(0,D.Z)({id:$},l,{children:y}))]}))})),Ao=function(e){var t=e.endTrial,r=(e.type,n.useState("")),a=r[0],o=r[1];return n.createElement(ge,{sx:{p:2,margin:"auto",maxWidth:550,flexGrow:1}},n.createElement(Be,{sx:{flexGrow:1},direction:"column",container:!0,spacing:4},n.createElement(Be,{item:!0,style:{textAlign:"center"}},n.createElement(ne,{variant:"h5",component:"div"},"Please think about a strategy for the network task that maximizes points. What did you observe as successful?")),n.createElement(Be,{item:!0,style:{margin:8}},n.createElement(zo,{multiline:!0,fullWidth:!0,margin:"normal",rows:6,helperText:"Please enter between 20 and 200 characters",value:a,onChange:function(e){e.target.value.length<=200&&o(e.target.value)}})),n.createElement(Be,{item:!0,style:{textAlign:"center"}},a.length<20?n.createElement(Mt,{variant:"contained",color:"primary",disabled:!0},"Continue"):n.createElement(Mt,{onClick:function(){t({strategy:a})},variant:"contained",color:"primary"},"Continue"))))};function Ro(e){return(0,Y.Z)("MuiFormGroup",e)}(0,G.Z)("MuiFormGroup",["root","row","error"]);const Mo=["className","row"],No=(0,H.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>(0,D.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),Fo=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiFormGroup"}),{className:n,row:a=!1}=r,o=(0,L.Z)(r,Mo),s=sr({props:r,muiFormControl:cr(),states:["error"]}),i=(0,D.Z)({},r,{row:a,error:s.error}),c=(e=>{const{classes:t,row:r,error:n}=e,a={root:["root",r&&"row",n&&"error"]};return(0,W.Z)(a,Ro,t)})(i);return(0,J.jsx)(No,(0,D.Z)({className:(0,B.Z)(c.root,n),ownerState:i,ref:t},o))})),Lo=n.createContext(void 0);var Do=r(7909);const Bo=["actions","children","defaultValue","name","onChange","value"],Zo=n.forwardRef((function(e,t){const{actions:r,children:a,defaultValue:o,name:s,onChange:i,value:c}=e,u=(0,L.Z)(e,Bo),_=n.useRef(null),[l,d]=(0,no.Z)({controlled:c,default:o,name:"RadioGroup"});n.useImperativeHandle(r,(()=>({focus:()=>{let e=_.current.querySelector("input:not(:disabled):checked");e||(e=_.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const y=(0,je.Z)(t,_),p=(0,Do.Z)(s),g=n.useMemo((()=>({name:p,onChange(e){d(e.target.value),i&&i(e,e.target.value)},value:l})),[p,i,d,l]);return(0,J.jsx)(Lo.Provider,{value:g,children:(0,J.jsx)(Fo,(0,D.Z)({role:"radiogroup",ref:y},u,{children:a}))})}));function jo(e){return(0,Y.Z)("MuiFormControlLabel",e)}const Uo=(0,G.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),$o=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],Vo=(0,H.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Uo.label}`]:t.label},t.root,t[`labelPlacement${(0,K.Z)(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,D.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Uo.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Uo.label}`]:{[`&.${Uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Wo=n.forwardRef((function(e,t){var r;const a=(0,q.Z)({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:i,disabled:c,disableTypography:u,label:_,labelPlacement:l="end",slotProps:d={}}=a,y=(0,L.Z)(a,$o),p=cr();let g=c;void 0===g&&void 0!==i.props.disabled&&(g=i.props.disabled),void 0===g&&p&&(g=p.disabled);const m={disabled:g};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===i.props[e]&&void 0!==a[e]&&(m[e]=a[e])}));const h=sr({props:a,muiFormControl:p,states:["error"]}),f=(0,D.Z)({},a,{disabled:g,labelPlacement:l,error:h.error}),x=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:a}=e,o={root:["root",r&&"disabled",`labelPlacement${(0,K.Z)(n)}`,a&&"error"],label:["label",r&&"disabled"]};return(0,W.Z)(o,jo,t)})(f),v=null!=(r=d.typography)?r:s.typography;let w=_;return null==w||w.type===ne||u||(w=(0,J.jsx)(ne,(0,D.Z)({component:"span"},v,{className:(0,B.Z)(x.label,null==v?void 0:v.className),children:w}))),(0,J.jsxs)(Vo,(0,D.Z)({className:(0,B.Z)(x.root,o),ownerState:f,ref:t},y,{children:[n.cloneElement(i,m),w]}))}));function Ho(e){return(0,Y.Z)("PrivateSwitchBase",e)}(0,G.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qo=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ko=(0,H.ZP)(Et)((({ownerState:e})=>(0,D.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Go=(0,H.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Yo=n.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:a,className:o,defaultChecked:s,disabled:i,disableFocusRipple:c=!1,edge:u=!1,icon:_,id:l,inputProps:d,inputRef:y,name:p,onBlur:g,onChange:m,onFocus:h,readOnly:f,required:x=!1,tabIndex:v,type:w,value:b}=e,S=(0,L.Z)(e,qo),[k,E]=(0,no.Z)({controlled:n,default:Boolean(s),name:"SwitchBase",state:"checked"}),T=cr();let I=i;T&&void 0===I&&(I=T.disabled);const C="checkbox"===w||"radio"===w,O=(0,D.Z)({},e,{checked:k,disabled:I,disableFocusRipple:c,edge:u}),P=(e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${(0,K.Z)(a)}`],input:["input"]};return(0,W.Z)(o,Ho,t)})(O);return(0,J.jsxs)(Ko,(0,D.Z)({component:"span",className:(0,B.Z)(P.root,o),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{h&&h(e),T&&T.onFocus&&T.onFocus(e)},onBlur:e=>{g&&g(e),T&&T.onBlur&&T.onBlur(e)},ownerState:O,ref:t},S,{children:[(0,J.jsx)(Go,(0,D.Z)({autoFocus:r,checked:n,defaultChecked:s,className:P.input,disabled:I,id:C&&l,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),m&&m(e,t)},readOnly:f,ref:y,required:x,ownerState:O,tabIndex:v,type:w},"checkbox"===w&&void 0===b?{}:{value:b},d)),k?a:_]}))})),Qo=(0,mo.Z)((0,J.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Jo=(0,mo.Z)((0,J.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Xo=(0,H.ZP)("span")({position:"relative",display:"flex"}),es=(0,H.ZP)(Qo)({transform:"scale(1)"}),ts=(0,H.ZP)(Jo)((({theme:e,ownerState:t})=>(0,D.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}))),rs=function(e){const{checked:t=!1,classes:r={},fontSize:n}=e,a=(0,D.Z)({},e,{checked:t});return(0,J.jsxs)(Xo,{className:r.root,ownerState:a,children:[(0,J.jsx)(es,{fontSize:n,className:r.background,ownerState:a}),(0,J.jsx)(ts,{fontSize:n,className:r.dot,ownerState:a})]})};var ns=r(7450);function as(e){return(0,Y.Z)("MuiRadio",e)}const os=(0,G.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),ss=["checked","checkedIcon","color","icon","name","onChange","size","className"],is=(0,H.ZP)(Yo,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${(0,K.Z)(r.color)}`]]}})((({theme:e,ownerState:t})=>(0,D.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,_e.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${os.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${os.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),cs=(0,J.jsx)(rs,{checked:!0}),us=(0,J.jsx)(rs,{}),_s=n.forwardRef((function(e,t){var r,a;const o=(0,q.Z)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:i=cs,color:c="primary",icon:u=us,name:_,onChange:l,size:d="medium",className:y}=o,p=(0,L.Z)(o,ss),g=(0,D.Z)({},o,{color:c,size:d}),m=(e=>{const{classes:t,color:r}=e,n={root:["root",`color${(0,K.Z)(r)}`]};return(0,D.Z)({},t,(0,W.Z)(n,as,t))})(g),h=n.useContext(Lo);let f=s;const x=(0,ns.Z)(l,h&&h.onChange);let v=_;var w,b;return h&&(void 0===f&&(w=h.value,f="object"==typeof(b=o.value)&&null!==b?w===b:String(w)===String(b)),void 0===v&&(v=h.name)),(0,J.jsx)(is,(0,D.Z)({type:"radio",icon:n.cloneElement(u,{fontSize:null!=(r=us.props.fontSize)?r:d}),checkedIcon:n.cloneElement(i,{fontSize:null!=(a=cs.props.fontSize)?a:d}),ownerState:g,classes:m,name:v,checked:f,onChange:x,ref:t,className:(0,B.Z)(m.root,y)},p))}));var ls=function(){return ls=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,D.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,_e.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,D.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,D.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,D.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Es=(0,H.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,D.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Ts=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:a,className:o,component:s=(a?"div":"hr"),flexItem:i=!1,light:c=!1,orientation:u="horizontal",role:_=("hr"!==s?"separator":void 0),textAlign:l="center",variant:d="fullWidth"}=r,y=(0,L.Z)(r,Ss),p=(0,D.Z)({},r,{absolute:n,component:s,flexItem:i,light:c,orientation:u,role:_,textAlign:l,variant:d}),g=(e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:s,textAlign:i,variant:c}=e,u={root:["root",t&&"absolute",c,o&&"light","vertical"===s&&"vertical",a&&"flexItem",r&&"withChildren",r&&"vertical"===s&&"withChildrenVertical","right"===i&&"vertical"!==s&&"textAlignRight","left"===i&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,W.Z)(u,bs,n)})(p);return(0,J.jsx)(ks,(0,D.Z)({as:s,className:(0,B.Z)(g.root,o),role:_,ref:t,ownerState:p},y,{children:a?(0,J.jsx)(Es,{className:g.wrapper,ownerState:p,children:a}):null}))}));function Is(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Cs(e){return e instanceof Is(e).Element||e instanceof Element}function Os(e){return e instanceof Is(e).HTMLElement||e instanceof HTMLElement}function Ps(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Is(e).ShadowRoot||e instanceof ShadowRoot)}var zs=Math.max,As=Math.min,Rs=Math.round;function Ms(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ns(){return!/^((?!chrome|android).)*safari/i.test(Ms())}function Fs(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Os(e)&&(a=e.offsetWidth>0&&Rs(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Rs(n.height)/e.offsetHeight||1);var s=(Cs(e)?Is(e):window).visualViewport,i=!Ns()&&r,c=(n.left+(i&&s?s.offsetLeft:0))/a,u=(n.top+(i&&s?s.offsetTop:0))/o,_=n.width/a,l=n.height/o;return{width:_,height:l,top:u,right:c+_,bottom:u+l,left:c,x:c,y:u}}function Ls(e){var t=Is(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ds(e){return e?(e.nodeName||"").toLowerCase():null}function Bs(e){return((Cs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zs(e){return Fs(Bs(e)).left+Ls(e).scrollLeft}function js(e){return Is(e).getComputedStyle(e)}function Us(e){var t=js(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function $s(e,t,r){void 0===r&&(r=!1);var n,a,o=Os(t),s=Os(t)&&function(e){var t=e.getBoundingClientRect(),r=Rs(t.width)/e.offsetWidth||1,n=Rs(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),i=Bs(t),c=Fs(e,s,r),u={scrollLeft:0,scrollTop:0},_={x:0,y:0};return(o||!o&&!r)&&(("body"!==Ds(t)||Us(i))&&(u=(n=t)!==Is(n)&&Os(n)?{scrollLeft:(a=n).scrollLeft,scrollTop:a.scrollTop}:Ls(n)),Os(t)?((_=Fs(t,!0)).x+=t.clientLeft,_.y+=t.clientTop):i&&(_.x=Zs(i))),{x:c.left+u.scrollLeft-_.x,y:c.top+u.scrollTop-_.y,width:c.width,height:c.height}}function Vs(e){var t=Fs(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Ws(e){return"html"===Ds(e)?e:e.assignedSlot||e.parentNode||(Ps(e)?e.host:null)||Bs(e)}function Hs(e){return["html","body","#document"].indexOf(Ds(e))>=0?e.ownerDocument.body:Os(e)&&Us(e)?e:Hs(Ws(e))}function qs(e,t){var r;void 0===t&&(t=[]);var n=Hs(e),a=n===(null==(r=e.ownerDocument)?void 0:r.body),o=Is(n),s=a?[o].concat(o.visualViewport||[],Us(n)?n:[]):n,i=t.concat(s);return a?i:i.concat(qs(Ws(s)))}function Ks(e){return["table","td","th"].indexOf(Ds(e))>=0}function Gs(e){return Os(e)&&"fixed"!==js(e).position?e.offsetParent:null}function Ys(e){for(var t=Is(e),r=Gs(e);r&&Ks(r)&&"static"===js(r).position;)r=Gs(r);return r&&("html"===Ds(r)||"body"===Ds(r)&&"static"===js(r).position)?t:r||function(e){var t=/firefox/i.test(Ms());if(/Trident/i.test(Ms())&&Os(e)&&"fixed"===js(e).position)return null;var r=Ws(e);for(Ps(r)&&(r=r.host);Os(r)&&["html","body"].indexOf(Ds(r))<0;){var n=js(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var Qs="top",Js="bottom",Xs="right",ei="left",ti="auto",ri=[Qs,Js,Xs,ei],ni="start",ai="end",oi="clippingParents",si="viewport",ii="popper",ci="reference",ui=ri.reduce((function(e,t){return e.concat([t+"-"+ni,t+"-"+ai])}),[]),_i=[].concat(ri,[ti]).reduce((function(e,t){return e.concat([t,t+"-"+ni,t+"-"+ai])}),[]),li=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function di(e){var t=new Map,r=new Set,n=[];function a(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&a(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||a(e)})),n}var yi={placement:"bottom",modifiers:[],strategy:"absolute"};function pi(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function wi(e){var t,r=e.reference,n=e.element,a=e.placement,o=a?fi(a):null,s=a?xi(a):null,i=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(o){case Qs:t={x:i,y:r.y-n.height};break;case Js:t={x:i,y:r.y+r.height};break;case Xs:t={x:r.x+r.width,y:c};break;case ei:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var u=o?vi(o):null;if(null!=u){var _="y"===u?"height":"width";switch(s){case ni:t[u]=t[u]-(r[_]/2-n[_]/2);break;case ai:t[u]=t[u]+(r[_]/2-n[_]/2)}}return t}var bi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Si(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,i=e.position,c=e.gpuAcceleration,u=e.adaptive,_=e.roundOffsets,l=e.isFixed,d=s.x,y=void 0===d?0:d,p=s.y,g=void 0===p?0:p,m="function"==typeof _?_({x:y,y:g}):{x:y,y:g};y=m.x,g=m.y;var h=s.hasOwnProperty("x"),f=s.hasOwnProperty("y"),x=ei,v=Qs,w=window;if(u){var b=Ys(r),S="clientHeight",k="clientWidth";b===Is(r)&&"static"!==js(b=Bs(r)).position&&"absolute"===i&&(S="scrollHeight",k="scrollWidth"),(a===Qs||(a===ei||a===Xs)&&o===ai)&&(v=Js,g-=(l&&b===w&&w.visualViewport?w.visualViewport.height:b[S])-n.height,g*=c?1:-1),a!==ei&&(a!==Qs&&a!==Js||o!==ai)||(x=Xs,y-=(l&&b===w&&w.visualViewport?w.visualViewport.width:b[k])-n.width,y*=c?1:-1)}var E,T=Object.assign({position:i},u&&bi),I=!0===_?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:Rs(t*n)/n||0,y:Rs(r*n)/n||0}}({x:y,y:g}):{x:y,y:g};return y=I.x,g=I.y,c?Object.assign({},T,((E={})[v]=f?"0":"",E[x]=h?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",E)):Object.assign({},T,((t={})[v]=f?g+"px":"",t[x]=h?y+"px":"",t.transform="",t))}var ki={left:"right",right:"left",bottom:"top",top:"bottom"};function Ei(e){return e.replace(/left|right|bottom|top/g,(function(e){return ki[e]}))}var Ti={start:"end",end:"start"};function Ii(e){return e.replace(/start|end/g,(function(e){return Ti[e]}))}function Ci(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ps(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Oi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pi(e,t,r){return t===si?Oi(function(e,t){var r=Is(e),n=Bs(e),a=r.visualViewport,o=n.clientWidth,s=n.clientHeight,i=0,c=0;if(a){o=a.width,s=a.height;var u=Ns();(u||!u&&"fixed"===t)&&(i=a.offsetLeft,c=a.offsetTop)}return{width:o,height:s,x:i+Zs(e),y:c}}(e,r)):Cs(t)?function(e,t){var r=Fs(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Oi(function(e){var t,r=Bs(e),n=Ls(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=zs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=zs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-n.scrollLeft+Zs(e),c=-n.scrollTop;return"rtl"===js(a||r).direction&&(i+=zs(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:i,y:c}}(Bs(e)))}function zi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ai(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Ri(e,t){void 0===t&&(t={});var r=t,n=r.placement,a=void 0===n?e.placement:n,o=r.strategy,s=void 0===o?e.strategy:o,i=r.boundary,c=void 0===i?oi:i,u=r.rootBoundary,_=void 0===u?si:u,l=r.elementContext,d=void 0===l?ii:l,y=r.altBoundary,p=void 0!==y&&y,g=r.padding,m=void 0===g?0:g,h=zi("number"!=typeof m?m:Ai(m,ri)),f=d===ii?ci:ii,x=e.rects.popper,v=e.elements[p?f:d],w=function(e,t,r,n){var a="clippingParents"===t?function(e){var t=qs(Ws(e)),r=["absolute","fixed"].indexOf(js(e).position)>=0&&Os(e)?Ys(e):e;return Cs(r)?t.filter((function(e){return Cs(e)&&Ci(e,r)&&"body"!==Ds(e)})):[]}(e):[].concat(t),o=[].concat(a,[r]),s=o[0],i=o.reduce((function(t,r){var a=Pi(e,r,n);return t.top=zs(a.top,t.top),t.right=As(a.right,t.right),t.bottom=As(a.bottom,t.bottom),t.left=zs(a.left,t.left),t}),Pi(e,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(Cs(v)?v:v.contextElement||Bs(e.elements.popper),c,_,s),b=Fs(e.elements.reference),S=wi({reference:b,element:x,strategy:"absolute",placement:a}),k=Oi(Object.assign({},x,S)),E=d===ii?k:b,T={top:w.top-E.top+h.top,bottom:E.bottom-w.bottom+h.bottom,left:w.left-E.left+h.left,right:E.right-w.right+h.right},I=e.modifiersData.offset;if(d===ii&&I){var C=I[a];Object.keys(T).forEach((function(e){var t=[Xs,Js].indexOf(e)>=0?1:-1,r=[Qs,Js].indexOf(e)>=0?"y":"x";T[e]+=C[r]*t}))}return T}const Mi={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=void 0===a||a,s=r.altAxis,i=void 0===s||s,c=r.fallbackPlacements,u=r.padding,_=r.boundary,l=r.rootBoundary,d=r.altBoundary,y=r.flipVariations,p=void 0===y||y,g=r.allowedAutoPlacements,m=t.options.placement,h=fi(m),f=c||(h!==m&&p?function(e){if(fi(e)===ti)return[];var t=Ei(e);return[Ii(e),t,Ii(t)]}(m):[Ei(m)]),x=[m].concat(f).reduce((function(e,r){return e.concat(fi(r)===ti?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,i=r.flipVariations,c=r.allowedAutoPlacements,u=void 0===c?_i:c,_=xi(n),l=_?i?ui:ui.filter((function(e){return xi(e)===_})):ri,d=l.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=l);var y=d.reduce((function(t,r){return t[r]=Ri(e,{placement:r,boundary:a,rootBoundary:o,padding:s})[fi(r)],t}),{});return Object.keys(y).sort((function(e,t){return y[e]-y[t]}))}(t,{placement:r,boundary:_,rootBoundary:l,padding:u,flipVariations:p,allowedAutoPlacements:g}):r)}),[]),v=t.rects.reference,w=t.rects.popper,b=new Map,S=!0,k=x[0],E=0;E=0,P=O?"width":"height",z=Ri(t,{placement:T,boundary:_,rootBoundary:l,altBoundary:d,padding:u}),A=O?C?Xs:ei:C?Js:Qs;v[P]>w[P]&&(A=Ei(A));var R=Ei(A),M=[];if(o&&M.push(z[I]<=0),i&&M.push(z[A]<=0,z[R]<=0),M.every((function(e){return e}))){k=T,S=!1;break}b.set(T,M)}if(S)for(var N=function(e){var t=x.find((function(t){var r=b.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},F=p?3:1;F>0&&"break"!==N(F);F--);t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ni(e,t,r){return zs(e,As(t,r))}function Fi(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Li(e){return[Qs,Xs,Js,ei].some((function(t){return e[t]>=0}))}var Di=gi({defaultModifiers:[hi,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=wi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=void 0===n||n,o=r.adaptive,s=void 0===o||o,i=r.roundOffsets,c=void 0===i||i,u={placement:fi(t.placement),variation:xi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Si(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Si(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},a=t.elements[e];Os(a)&&Ds(a)&&(Object.assign(a.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Os(n)&&Ds(n)&&(Object.assign(n.style,o),Object.keys(a).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=void 0===a?[0,0]:a,s=_i.reduce((function(e,r){return e[r]=function(e,t,r){var n=fi(e),a=[ei,Qs].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=o[0],i=o[1];return s=s||0,i=(i||0)*a,[ei,Xs].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}(r,t.rects,o),e}),{}),i=s[t.placement],c=i.x,u=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}},Mi,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=void 0===a||a,s=r.altAxis,i=void 0!==s&&s,c=r.boundary,u=r.rootBoundary,_=r.altBoundary,l=r.padding,d=r.tether,y=void 0===d||d,p=r.tetherOffset,g=void 0===p?0:p,m=Ri(t,{boundary:c,rootBoundary:u,padding:l,altBoundary:_}),h=fi(t.placement),f=xi(t.placement),x=!f,v=vi(h),w="x"===v?"y":"x",b=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,E="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,T="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(b){if(o){var O,P="y"===v?Qs:ei,z="y"===v?Js:Xs,A="y"===v?"height":"width",R=b[v],M=R+m[P],N=R-m[z],F=y?-k[A]/2:0,L=f===ni?S[A]:k[A],D=f===ni?-k[A]:-S[A],B=t.elements.arrow,Z=y&&B?Vs(B):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=j[P],$=j[z],V=Ni(0,S[A],Z[A]),W=x?S[A]/2-F-V-U-T.mainAxis:L-V-U-T.mainAxis,H=x?-S[A]/2+F+V+$+T.mainAxis:D+V+$+T.mainAxis,q=t.elements.arrow&&Ys(t.elements.arrow),K=q?"y"===v?q.clientTop||0:q.clientLeft||0:0,G=null!=(O=null==I?void 0:I[v])?O:0,Y=R+H-G,Q=Ni(y?As(M,R+W-G-K):M,R,y?zs(N,Y):N);b[v]=Q,C[v]=Q-R}if(i){var J,X="x"===v?Qs:ei,ee="x"===v?Js:Xs,te=b[w],re="y"===w?"height":"width",ne=te+m[X],ae=te-m[ee],oe=-1!==[Qs,ei].indexOf(h),se=null!=(J=null==I?void 0:I[w])?J:0,ie=oe?ne:te-S[re]-k[re]-se+T.altAxis,ce=oe?te+S[re]+k[re]-se-T.altAxis:ae,ue=y&&oe?function(e,t,r){var n=Ni(e,t,r);return n>r?r:n}(ie,te,ce):Ni(y?ie:ne,te,y?ce:ae);b[w]=ue,C[w]=ue-te}t.modifiersData[n]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,i=fi(r.placement),c=vi(i),u=[ei,Xs].indexOf(i)>=0?"height":"width";if(o&&s){var _=function(e,t){return zi("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ai(e,ri))}(a.padding,r),l=Vs(o),d="y"===c?Qs:ei,y="y"===c?Js:Xs,p=r.rects.reference[u]+r.rects.reference[c]-s[c]-r.rects.popper[u],g=s[c]-r.rects.reference[c],m=Ys(o),h=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,f=p/2-g/2,x=_[d],v=h-l[u]-_[y],w=h/2-l[u]/2+f,b=Ni(x,w,v),S=c;r.modifiersData[n]=((t={})[S]=b,t.centerOffset=b-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Ci(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ri(t,{elementContext:"reference"}),i=Ri(t,{altBoundary:!0}),c=Fi(s,n),u=Fi(i,a,o),_=Li(c),l=Li(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:_,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":_,"data-popper-escaped":l})}}]});function Bi(e){return(0,Y.Z)("MuiPopperUnstyled",e)}(0,G.Z)("MuiPopperUnstyled",["root"]);const Zi=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],ji=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ui(e){return"function"==typeof e?e():e}const $i={},Vi=n.forwardRef((function(e,t){var r;const{anchorEl:a,children:o,component:s,direction:i,disablePortal:c,modifiers:u,open:_,ownerState:l,placement:d,popperOptions:y,popperRef:p,slotProps:g={},slots:m={},TransitionProps:h}=e,f=(0,L.Z)(e,Zi),x=n.useRef(null),v=(0,Yt.Z)(x,t),w=n.useRef(null),b=(0,Yt.Z)(w,p),S=n.useRef(b);(0,Xt.Z)((()=>{S.current=b}),[b]),n.useImperativeHandle(p,(()=>w.current),[]);const k=function(e,t){if("ltr"===t)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}}(d,i),[E,T]=n.useState(k),[I,C]=n.useState(Ui(a));n.useEffect((()=>{w.current&&w.current.forceUpdate()})),n.useEffect((()=>{a&&C(Ui(a))}),[a]),(0,Xt.Z)((()=>{if(!I||!_)return;let e=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{T(e.placement)}}];null!=u&&(e=e.concat(u)),y&&null!=y.modifiers&&(e=e.concat(y.modifiers));const t=Di(I,x.current,(0,D.Z)({placement:k},y,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[I,c,u,_,y,k]);const O={placement:E};null!==h&&(O.TransitionProps=h);const P=(0,W.Z)({root:["root"]},Bi,{}),z=null!=(r=null!=s?s:m.root)?r:"div",A=pa({elementType:z,externalSlotProps:g.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:v},ownerState:(0,D.Z)({},e,l),className:P.root});return(0,J.jsx)(z,(0,D.Z)({},A,{children:"function"==typeof o?o(O):o}))})),Wi=n.forwardRef((function(e,t){const{anchorEl:r,children:a,container:o,direction:s="ltr",disablePortal:i=!1,keepMounted:c=!1,modifiers:u,open:_,placement:l="bottom",popperOptions:d=$i,popperRef:y,style:p,transition:g=!1,slotProps:m={},slots:h={}}=e,f=(0,L.Z)(e,ji),[x,v]=n.useState(!0);if(!c&&!_&&(!g||x))return null;let w;if(o)w=o;else if(r){const e=Ui(r);w=e&&void 0!==e.nodeType?(0,Yn.Z)(e).body:(0,Yn.Z)(null).body}const b=_||!c||g&&!x?void 0:"none",S=g?{in:_,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:void 0;return(0,J.jsx)(ea,{disablePortal:i,container:w,children:(0,J.jsx)(Vi,(0,D.Z)({anchorEl:r,direction:s,disablePortal:i,modifiers:u,ref:t,open:g?!x:_,placement:l,popperOptions:d,popperRef:y,slotProps:m,slots:h},f,{style:(0,D.Z)({position:"fixed",top:0,left:0,display:b},p),TransitionProps:S,children:a}))})}));var Hi=r(7103);const qi=["components","componentsProps","slots","slotProps"],Ki=(0,H.ZP)(Wi,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gi=n.forwardRef((function(e,t){var r;const n=(0,Hi.Z)(),a=(0,q.Z)({props:e,name:"MuiPopper"}),{components:o,componentsProps:s,slots:i,slotProps:c}=a,u=(0,L.Z)(a,qi),_=null!=(r=null==i?void 0:i.root)?r:null==o?void 0:o.Root;return(0,J.jsx)(Ki,(0,D.Z)({direction:null==n?void 0:n.direction,slots:{root:_},slotProps:null!=c?c:s},u,{ref:t}))}));function Yi(e){return(0,Y.Z)("MuiTooltip",e)}const Qi=(0,G.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ji=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],Xi=(0,H.ZP)(Gi,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((({theme:e,ownerState:t,open:r})=>(0,D.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Qi.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qi.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qi.arrow}`]:(0,D.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Qi.arrow}`]:(0,D.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),ec=(0,H.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,K.Z)(r.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,D.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,_e.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${Qi.popper}[data-popper-placement*="left"] &`]:(0,D.Z)({transformOrigin:"right center"},t.isRtl?(0,D.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,D.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Qi.popper}[data-popper-placement*="right"] &`]:(0,D.Z)({transformOrigin:"left center"},t.isRtl?(0,D.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,D.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Qi.popper}[data-popper-placement*="top"] &`]:(0,D.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Qi.popper}[data-popper-placement*="bottom"] &`]:(0,D.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),tc=(0,H.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,_e.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let rc=!1,nc=null,ac={x:0,y:0};function oc(e,t){return r=>{t&&t(r),e(r)}}const sc=n.forwardRef((function(e,t){var r,a,o,s,i,c,u,_,l,d,y,p,g,m,h,f,x,v,w;const b=(0,q.Z)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:k,components:E={},componentsProps:T={},describeChild:I=!1,disableFocusListener:C=!1,disableHoverListener:O=!1,disableInteractive:P=!1,disableTouchListener:z=!1,enterDelay:A=100,enterNextDelay:R=0,enterTouchDelay:M=700,followCursor:N=!1,id:F,leaveDelay:Z=0,leaveTouchDelay:j=1500,onClose:U,onOpen:$,open:V,placement:H="bottom",PopperComponent:G,PopperProps:Y={},slotProps:Q={},slots:X={},title:ee,TransitionComponent:te=Gn,TransitionProps:re}=b,ne=(0,L.Z)(b,Ji),ae=Ce(),oe="rtl"===ae.direction,[se,ie]=n.useState(),[ce,ue]=n.useState(null),_e=n.useRef(!1),le=P||N,de=n.useRef(),ye=n.useRef(),pe=n.useRef(),ge=n.useRef(),[me,he]=(0,no.Z)({controlled:V,default:!1,name:"Tooltip",state:"open"});let fe=me;const xe=(0,Do.Z)(F),ve=n.useRef(),we=n.useCallback((()=>{void 0!==ve.current&&(document.body.style.WebkitUserSelect=ve.current,ve.current=void 0),clearTimeout(ge.current)}),[]);n.useEffect((()=>()=>{clearTimeout(de.current),clearTimeout(ye.current),clearTimeout(pe.current),we()}),[we]);const be=e=>{clearTimeout(nc),rc=!0,he(!0),$&&!fe&&$(e)},Se=(0,Ue.Z)((e=>{clearTimeout(nc),nc=setTimeout((()=>{rc=!1}),800+Z),he(!1),U&&fe&&U(e),clearTimeout(de.current),de.current=setTimeout((()=>{_e.current=!1}),ae.transitions.duration.shortest)})),ke=e=>{_e.current&&"touchstart"!==e.type||(se&&se.removeAttribute("title"),clearTimeout(ye.current),clearTimeout(pe.current),A||rc&&R?ye.current=setTimeout((()=>{be(e)}),rc?R:A):be(e))},Ee=e=>{clearTimeout(ye.current),clearTimeout(pe.current),pe.current=setTimeout((()=>{Se(e)}),Z)},{isFocusVisibleRef:Te,onBlur:Ie,onFocus:Oe,ref:Pe}=(0,$e.Z)(),[,ze]=n.useState(!1),Ae=e=>{Ie(e),!1===Te.current&&(ze(!1),Ee(e))},Re=e=>{se||ie(e.currentTarget),Oe(e),!0===Te.current&&(ze(!0),ke(e))},Me=e=>{_e.current=!0;const t=k.props;t.onTouchStart&&t.onTouchStart(e)},Ne=ke,Fe=Ee;n.useEffect((()=>{if(fe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Se(e)}}),[Se,fe]);const Le=(0,je.Z)(k.ref,Pe,ie,t);ee||0===ee||(fe=!1);const De=n.useRef(),Be={},Ze="string"==typeof ee;I?(Be.title=fe||!Ze||O?null:ee,Be["aria-describedby"]=fe?xe:null):(Be["aria-label"]=Ze?ee:null,Be["aria-labelledby"]=fe&&!Ze?xe:null);const Ve=(0,D.Z)({},Be,ne,k.props,{className:(0,B.Z)(ne.className,k.props.className),onTouchStart:Me,ref:Le},N?{onMouseMove:e=>{const t=k.props;t.onMouseMove&&t.onMouseMove(e),ac={x:e.clientX,y:e.clientY},De.current&&De.current.update()}}:{}),We={};z||(Ve.onTouchStart=e=>{Me(e),clearTimeout(pe.current),clearTimeout(de.current),we(),ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ge.current=setTimeout((()=>{document.body.style.WebkitUserSelect=ve.current,ke(e)}),M)},Ve.onTouchEnd=e=>{k.props.onTouchEnd&&k.props.onTouchEnd(e),we(),clearTimeout(pe.current),pe.current=setTimeout((()=>{Se(e)}),j)}),O||(Ve.onMouseOver=oc(Ne,Ve.onMouseOver),Ve.onMouseLeave=oc(Fe,Ve.onMouseLeave),le||(We.onMouseOver=Ne,We.onMouseLeave=Fe)),C||(Ve.onFocus=oc(Re,Ve.onFocus),Ve.onBlur=oc(Ae,Ve.onBlur),le||(We.onFocus=Re,We.onBlur=Ae));const He=n.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ce),options:{element:ce,padding:4}}];return null!=(e=Y.popperOptions)&&e.modifiers&&(t=t.concat(Y.popperOptions.modifiers)),(0,D.Z)({},Y.popperOptions,{modifiers:t})}),[ce,Y]),qe=(0,D.Z)({},b,{isRtl:oe,arrow:S,disableInteractive:le,placement:H,PopperComponentProp:G,touch:_e.current}),Ke=(e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${(0,K.Z)(o.split("-")[0])}`],arrow:["arrow"]};return(0,W.Z)(s,Yi,t)})(qe),Ge=null!=(r=null!=(a=X.popper)?a:E.Popper)?r:Xi,Ye=null!=(o=null!=(s=null!=(i=X.transition)?i:E.Transition)?s:te)?o:Gn,Qe=null!=(c=null!=(u=X.tooltip)?u:E.Tooltip)?c:ec,Je=null!=(_=null!=(l=X.arrow)?l:E.Arrow)?_:tc,Xe=_a(Ge,(0,D.Z)({},Y,null!=(d=Q.popper)?d:T.popper,{className:(0,B.Z)(Ke.popper,null==Y?void 0:Y.className,null==(y=null!=(p=Q.popper)?p:T.popper)?void 0:y.className)}),qe),et=_a(Ye,(0,D.Z)({},re,null!=(g=Q.transition)?g:T.transition),qe),tt=_a(Qe,(0,D.Z)({},null!=(m=Q.tooltip)?m:T.tooltip,{className:(0,B.Z)(Ke.tooltip,null==(h=null!=(f=Q.tooltip)?f:T.tooltip)?void 0:h.className)}),qe),rt=_a(Je,(0,D.Z)({},null!=(x=Q.arrow)?x:T.arrow,{className:(0,B.Z)(Ke.arrow,null==(v=null!=(w=Q.arrow)?w:T.arrow)?void 0:v.className)}),qe);return(0,J.jsxs)(n.Fragment,{children:[n.cloneElement(k,Ve),(0,J.jsx)(Ge,(0,D.Z)({as:null!=G?G:Gi,placement:H,anchorEl:N?{getBoundingClientRect:()=>({top:ac.y,left:ac.x,right:ac.x,bottom:ac.y,width:0,height:0})}:se,popperRef:De,open:!!se&&fe,id:xe,transition:!0},We,Xe,{popperOptions:He,children:({TransitionProps:e})=>(0,J.jsx)(Ye,(0,D.Z)({timeout:ae.transitions.duration.shorter},e,et,{children:(0,J.jsxs)(Qe,(0,D.Z)({},tt,{children:[ee,S?(0,J.jsx)(Je,(0,D.Z)({},rt,{ref:ue})):null]}))}))}))]})}));var ic=[{id:"start",title:"Start",text:"Each network consists of circles that will be connected by arrows of different colour.",tip:"Click OK"},{id:"practice_node",title:"Circle",text:"You start at the grey circle.",tip:"Click a node"},{id:"general_edge",title:"ArrowGeneral",text:"From there, you can follow any outgoing arrow. The arrow colours indicate how many points you will lose or gain with a move.",tip:"Click OK"},{id:"practice_edge",title:"Arrow",text:"Your goal is to move along the arrows to earn points.
Now click on the next node.",tip:"Click a node"},{id:"general_points",title:"Score & Step",text:"You always make 10 moves per network. Your goal is to collect the maximum number of points in these 10 moves.",tip:"Current step and cumulative score"},{id:"practice_linear_solution",title:"Your Solution",text:"As you proceed in the network, your progress is noted here.
Now continue to move through the network.",tip:"Your Solution"},{id:"practice_multi_edge",title:"Your Choice",text:"Like here, there will be two or more possible moves per circle in the later networks.
Please continue by selecting one of the possibilities.",tip:"Click a node"},{id:"practice_timer",title:"Time Constraint",text:"In the actual experiment, you will have limited time to solve each network. If you run out of time, you will receive -50 points for each missing move.",tip:"Time Constraint"},{id:"practice_step_score",title:"Current Network Score",text:"Your point-count for the current network will be displayed here. The total score is displayed in the upper right corner.",tip:"Cumulative score"},{id:"practice_total_score",title:"Total Score",text:"Your total point-count will be displayed here, once the main task starts.",tip:"Total Score"},{id:"social_learning_selection_player",title:"Player Selection",text:"Select a player to learn from. Scores displayed are the average scores obtained during the players’ experiments.",tip:"Select a player"},{id:"social_learning_observation_comment",title:"Player Comment",text:"The player might have provided their strategy for you here (or not, if the box is empty).",tip:"Player comment"},{id:"social_learning_observation_animation",title:"Player Solution Animation",text:"You can now watch their chosen path once. The animation will start in 4 seconds.",tip:"Player solution animation"}];const cc=r.p+"rewards.png",uc=function(e){var t=e.children,r=e.isTutorial,a=void 0!==r&&r,o=e.isShowTip,s=void 0===o||o,i=e.placement,c=void 0===i?"bottom":i,u=e.arrow,_=void 0===u||u,l=e.showTitle,d=void 0!==l&&l,y=(0,n.useState)(a),p=y[0],g=y[1];(0,n.useEffect)((function(){g(a)}),[a]);var m=ic.filter((function(t){return t.id===e.tutorialId}))[0],h=m.title,f=m.text,x=m.tip,v=function(){g(!1),e.onTutorialClose()},w=function(t,r){return n.createElement(ue,{sx:{textAlign:"center"}},d&&n.createElement(n.Fragment,null,n.createElement(ne,{color:"inherit",variant:"h6",sx:{m:1}},t),n.createElement(Ts,null)),n.createElement(ne,{color:"inherit",sx:{m:1},dangerouslySetInnerHTML:{__html:r}}),"ArrowGeneral"==t&&n.createElement(Ut,{component:"img",image:cc,alt:"You earn or lose points depending on the color of the arrow."}),e.onTutorialClose&&n.createElement(n.Fragment,null,n.createElement(Mt,{sx:{m:1},variant:"contained",color:"secondary",onClick:v},"Ok")))};return f&&h&&x?a?(console.log(w(h,f),c,_,p,h,f,x),n.createElement(sc,{title:w(h,f),placement:c,arrow:_,open:p},t)):s?n.createElement(sc,{title:x,placement:c,arrow:_},t):t:t},_c=function(e){var t=e.showTutorial,r=void 0!==t&&t,a=e.strokeColor,o=void 0===a?"black":a,s=(0,n.useState)(!1),i=s[0],c=s[1];(0,n.useEffect)((function(){i&&setTimeout((function(){c(!1)}),400)}),[i]);var u=4===e.nodeInx?"practice_multi_edge":"practice_node";return n.createElement(uc,{tutorialId:u,isTutorial:r,isShowTip:!1,onTutorialClose:e.onTutorialClose,placement:"left"},n.createElement(vs,{status:e.status,fontSize:e.Radius,onClick:function(){e.onNodeClick(e.nodeInx),"normal"!==e.status||e.isValidMove||c(!0)},wrongClick:i,nextNodeColor:e.nextNodeColor},n.createElement("circle",{cx:e.x,cy:e.y,r:e.Radius,key:"circle",stroke:o}),n.createElement("text",{x:e.x,y:e.y+.35*e.Radius,textAnchor:"middle",key:"state-name"},e.Text.slice(0,1))))};let lc=Ic();const dc=e=>Sc(e,lc);let yc=Ic();dc.write=e=>Sc(e,yc);let pc=Ic();dc.onStart=e=>Sc(e,pc);let gc=Ic();dc.onFrame=e=>Sc(e,gc);let mc=Ic();dc.onFinish=e=>Sc(e,mc);let hc=[];dc.setTimeout=(e,t)=>{let r=dc.now()+t,n=()=>{let e=hc.findIndex((e=>e.cancel==n));~e&&hc.splice(e,1),wc-=~e?1:0},a={time:r,handler:e,cancel:n};return hc.splice(fc(r),0,a),wc+=1,kc(),a};let fc=e=>~(~hc.findIndex((t=>t.time>e))||~hc.length);dc.cancel=e=>{pc.delete(e),gc.delete(e),mc.delete(e),lc.delete(e),yc.delete(e)},dc.sync=e=>{bc=!0,dc.batchedUpdates(e),bc=!1},dc.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,dc.onStart(r)}return n.handler=e,n.cancel=()=>{pc.delete(r),t=null},n};let xc="undefined"!=typeof window?window.requestAnimationFrame:()=>{};dc.use=e=>xc=e,dc.now="undefined"!=typeof performance?()=>performance.now():Date.now,dc.batchedUpdates=e=>e(),dc.catch=console.error,dc.frameLoop="always",dc.advance=()=>{"demand"!==dc.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Tc()};let vc=-1,wc=0,bc=!1;function Sc(e,t){bc?(t.delete(e),e(0)):(t.add(e),kc())}function kc(){vc<0&&(vc=0,"demand"!==dc.frameLoop&&xc(Ec))}function Ec(){~vc&&(xc(Ec),dc.batchedUpdates(Tc))}function Tc(){let e=vc;vc=dc.now();let t=fc(vc);t&&(Cc(hc.splice(0,t),(e=>e.handler())),wc-=t),wc?(pc.flush(),lc.flush(e?Math.min(64,vc-e):16.667),gc.flush(),yc.flush(),mc.flush()):vc=-1}function Ic(){let e=new Set,t=e;return{add(r){wc+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(wc-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,wc-=t.size,Cc(t,(t=>t(r)&&e.add(t))),wc+=e.size,t=e)}}}function Cc(e,t){e.forEach((e=>{try{t(e)}catch(e){dc.catch(e)}}))}function Oc(){}const Pc={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function zc(e,t){if(Pc.arr(e)){if(!Pc.arr(t)||e.length!==t.length)return!1;for(let r=0;re.forEach(t);function Rc(e,t,r){if(Pc.arr(e))for(let n=0;nPc.und(e)?[]:Pc.arr(e)?e:[e];function Nc(e,t){if(e.size){const r=Array.from(e);e.clear(),Ac(r,t)}}const Fc=(e,...t)=>Nc(e,(e=>e(...t))),Lc=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Dc,Bc,Zc=null,jc=!1,Uc=Oc;var $c=Object.freeze({__proto__:null,get createStringInterpolator(){return Dc},get to(){return Bc},get colors(){return Zc},get skipAnimation(){return jc},get willAdvance(){return Uc},assign:e=>{e.to&&(Bc=e.to),e.now&&(dc.now=e.now),void 0!==e.colors&&(Zc=e.colors),null!=e.skipAnimation&&(jc=e.skipAnimation),e.createStringInterpolator&&(Dc=e.createStringInterpolator),e.requestAnimationFrame&&dc.use(e.requestAnimationFrame),e.batchedUpdates&&(dc.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Uc=e.willAdvance),e.frameLoop&&(dc.frameLoop=e.frameLoop)}});const Vc=new Set;let Wc=[],Hc=[],qc=0;const Kc={get idle(){return!Vc.size&&!Wc.length},start(e){qc>e.priority?(Vc.add(e),dc.onStart(Gc)):(Yc(e),dc(Jc))},advance:Jc,sort(e){if(qc)dc.onFrame((()=>Kc.sort(e)));else{const t=Wc.indexOf(e);~t&&(Wc.splice(t,1),Qc(e))}},clear(){Wc=[],Vc.clear()}};function Gc(){Vc.forEach(Yc),Vc.clear(),dc(Jc)}function Yc(e){Wc.includes(e)||Qc(e)}function Qc(e){Wc.splice(function(t,r){const n=t.findIndex((t=>t.priority>e.priority));return n<0?t.length:n}(Wc),0,e)}function Jc(e){const t=Hc;for(let r=0;r0}const Xc="[-+]?\\d*\\.?\\d+",eu=Xc+"%";function tu(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const ru=new RegExp("rgb"+tu(Xc,Xc,Xc)),nu=new RegExp("rgba"+tu(Xc,Xc,Xc,Xc)),au=new RegExp("hsl"+tu(Xc,eu,eu)),ou=new RegExp("hsla"+tu(Xc,eu,eu,Xc)),su=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,iu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,cu=/^#([0-9a-fA-F]{6})$/,uu=/^#([0-9a-fA-F]{8})$/;function _u(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function lu(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n,o=_u(a,n,e+1/3),s=_u(a,n,e),i=_u(a,n,e-1/3);return Math.round(255*o)<<24|Math.round(255*s)<<16|Math.round(255*i)<<8}function du(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function yu(e){return(parseFloat(e)%360+360)%360/360}function pu(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function gu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function mu(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=cu.exec(e))?parseInt(t[1]+"ff",16)>>>0:Zc&&void 0!==Zc[e]?Zc[e]:(t=ru.exec(e))?(du(t[1])<<24|du(t[2])<<16|du(t[3])<<8|255)>>>0:(t=nu.exec(e))?(du(t[1])<<24|du(t[2])<<16|du(t[3])<<8|pu(t[4]))>>>0:(t=su.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=uu.exec(e))?parseInt(t[1],16)>>>0:(t=iu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=au.exec(e))?(255|lu(yu(t[1]),gu(t[2]),gu(t[3])))>>>0:(t=ou.exec(e))?(lu(yu(t[1]),gu(t[2]),gu(t[3]))|pu(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const hu=(e,t,r)=>{if(Pc.fun(e))return e;if(Pc.arr(e))return hu({range:e,output:t,extrapolate:r});if(Pc.str(e.output[0]))return Dc(e);const n=e,a=n.output,o=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",i=n.extrapolateRight||n.extrapolate||"extend",c=n.easing||(e=>e);return e=>{const t=function(e,t){for(var r=1;r=e);++r);return r-1}(e,o);return function(e,t,r,n,a,o,s,i,c){let u=c?c(e):e;if(ur){if("identity"===i)return u;"clamp"===i&&(u=r)}return n===a?n:t===r?e<=t?n:a:(t===-1/0?u=-u:r===1/0?u-=t:u=(u-t)/(r-t),u=o(u),n===-1/0?u=-u:a===1/0?u+=n:u=u*(a-n)+n,u)}(e,o[t],o[t+1],a[t],a[t+1],c,s,i,n.map)}},fu=1.70158,xu=1.525*fu,vu=fu+1,wu=2*Math.PI/3,bu=2*Math.PI/4.5,Su=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},ku={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>vu*e*e*e-fu*e*e,easeOutBack:e=>1+vu*Math.pow(e-1,3)+fu*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-xu)/2:(Math.pow(2*e-2,2)*((xu+1)*(2*e-2)+xu)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*wu),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*wu)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*bu)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*bu)/2+1,easeInBounce:e=>1-Su(1-e),easeOutBounce:Su,easeInOutBounce:e=>e<.5?(1-Su(1-2*e))/2:(1+Su(2*e-1))/2,steps:(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e;return 0,1,a=("end"===t?Math.floor(n):Math.ceil(n))/e,Math.min(Math.max(a,0),1);var a}};function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;tBoolean(e&&e[Tu]),Ou=e=>e&&e[Tu]?e[Tu]():e,Pu=e=>e[Iu]||null;function zu(e,t){let r=e[Iu];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Au{constructor(e){if(this[Tu]=void 0,this[Iu]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Ru(this,e)}}const Ru=(e,t)=>Fu(e,Tu,t);function Mu(e,t){if(e[Tu]){let r=e[Iu];r||Fu(e,Iu,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Nu(e,t){let r=e[Iu];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[Iu]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const Fu=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Lu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Du=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Bu=new RegExp(`(${Lu.source})(%|[a-z]+)`,"i"),Zu=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ju=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Uu=e=>{const[t,r]=$u(e);if(!t||Lc())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(r)||e}return r&&ju.test(r)?Uu(r):r||e},$u=e=>{const t=ju.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let Vu;const Wu=(e,t,r,n,a)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`,Hu=e=>{Vu||(Vu=Zc?new RegExp(`(${Object.keys(Zc).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ou(e).replace(ju,Uu).replace(Du,mu).replace(Vu,mu))),r=t.map((e=>e.match(Lu).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),a=n.map((t=>hu(Eu({},e,{output:t}))));return e=>{var r;const n=!Bu.test(t[0])&&(null==(r=t.find((e=>Bu.test(e))))?void 0:r.replace(Lu,""));let o=0;return t[0].replace(Lu,(()=>`${a[o++](e)}${n||""}`)).replace(Zu,Wu)}},qu="react-spring: ",Ku=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${qu}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},Gu=Ku(console.warn),Yu=Ku(console.warn);function Qu(e){return Pc.str(e)&&("#"==e[0]||/\d/.test(e)||!Lc()&&ju.test(e)||e in(Zc||{}))}new WeakMap,new Set,new WeakMap,new WeakMap,new WeakMap;const Ju=Lc()?n.useEffect:n.useLayoutEffect,Xu=()=>{const e=(0,n.useRef)(!1);return Ju((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function e_(){const e=(0,n.useState)()[1],t=Xu();return()=>{t.current&&e(Math.random())}}const t_=e=>(0,n.useEffect)(e,r_),r_=[];function n_(e){const t=(0,n.useRef)();return(0,n.useEffect)((()=>{t.current=e})),t.current}const a_=Symbol.for("Animated:node"),o_=e=>e&&e[a_],s_=(e,t)=>{return r=e,n=a_,a=t,Object.defineProperty(r,n,{value:a,writable:!0,configurable:!0});var r,n,a},i_=e=>e&&e[a_]&&e[a_].getPayload();class c_{constructor(){this.payload=void 0,s_(this,this)}getPayload(){return this.payload||[]}}class u_ extends c_{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,Pc.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new u_(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Pc.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Pc.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class __ extends u_{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=hu({output:[e,e]})}static create(e){return new __(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Pc.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=hu({output:[this.getValue(),e]})),this._value=0,super.reset()}}const l_={dependencies:null};class d_ extends c_{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Rc(this.source,((r,n)=>{var a;(a=r)&&a[a_]===a?t[n]=r.getValue(e):Cu(r)?t[n]=Ou(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ac(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Rc(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){l_.dependencies&&Cu(e)&&l_.dependencies.add(e);const t=i_(e);t&&Ac(t,(e=>this.add(e)))}}class y_ extends d_{constructor(e){super(e)}static create(e){return new y_(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(p_)),!0)}}function p_(e){return(Qu(e)?__:u_).create(e)}function g_(e){const t=o_(e);return t?t.constructor:Pc.arr(e)?y_:Qu(e)?__:u_}function m_(){return m_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const r=!Pc.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,n.forwardRef)(((a,o)=>{const s=(0,n.useRef)(null),i=r&&(0,n.useCallback)((e=>{s.current=function(e,t){return e&&(Pc.fun(e)?e(t):e.current=t),t}(o,e)}),[o]),[c,u]=function(e,t){const r=new Set;return l_.dependencies=r,e.style&&(e=m_({},e,{style:t.createAnimatedStyle(e.style)})),e=new d_(e),l_.dependencies=null,[e,r]}(a,t),_=e_(),l=()=>{const e=s.current;r&&!e||!1===(!!e&&t.applyAnimatedValues(e,c.getValue(!0)))&&_()},d=new f_(l,u),y=(0,n.useRef)();Ju((()=>(y.current=d,Ac(u,(e=>Mu(e,d))),()=>{y.current&&(Ac(y.current.deps,(e=>Nu(e,y.current))),dc.cancel(y.current.update))}))),(0,n.useEffect)(l,[]),t_((()=>()=>{const e=y.current;Ac(e.deps,(t=>Nu(t,e)))}));const p=t.getComponentProps(c.getValue());return n.createElement(e,m_({},p,{ref:i}))}))};class f_{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&dc.write(this.update)}}const x_=Symbol.for("AnimatedComponent"),v_=e=>Pc.str(e)?e:e&&Pc.str(e.displayName)?e.displayName:Pc.fun(e)&&e.name||null;function w_(){return w_=Object.assign?Object.assign.bind():function(e){for(var t=1;t!0===e||!!(t&&e&&(Pc.fun(e)?e(t):Mc(e).includes(t))),k_=(e,t)=>Pc.obj(e)?t&&e[t]:e,E_=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,T_=e=>e,I_=(e,t=T_)=>{let r=C_;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const a of r){const r=t(e[a],a);Pc.und(r)||(n[a]=r)}return n},C_=["config","onProps","onStart","onChange","onPause","onResume","onRest"],O_={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function P_(e){const t=function(e){const t={};let r=0;if(Rc(e,((e,n)=>{O_[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return Rc(e,((e,n)=>n in t||(r[n]=e))),r}return w_({},e)}function z_(e){return e=Ou(e),Pc.arr(e)?e.map(z_):Qu(e)?$c.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function A_(e){return Pc.fun(e)||Pc.arr(e)&&Pc.obj(e[0])}const R_=w_({},{tension:170,friction:26},{mass:1,damping:1,easing:ku.linear,clamp:!1});class M_{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,R_)}}function N_(e,t){if(Pc.und(t.decay)){const r=!Pc.und(t.tension)||!Pc.und(t.friction);!r&&Pc.und(t.frequency)&&Pc.und(t.damping)&&Pc.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const F_=[];class L_{constructor(){this.changed=!1,this.values=F_,this.toValues=null,this.fromValues=F_,this.to=void 0,this.from=void 0,this.config=new M_,this.immediate=!1}}function D_(e,{key:t,props:r,defaultProps:n,state:a,actions:o}){return new Promise(((s,i)=>{var c;let u,_,l=S_(null!=(c=r.cancel)?c:null==n?void 0:n.cancel,t);if(l)p();else{Pc.und(r.pause)||(a.paused=S_(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=a.paused||S_(e,t)),u=b_(r.delay||0,t),e?(a.resumeQueue.add(y),o.pause()):(o.resume(),y())}function d(){a.resumeQueue.add(y),a.timeouts.delete(_),_.cancel(),u=_.time-dc.now()}function y(){u>0&&!$c.skipAnimation?(a.delayed=!0,_=dc.setTimeout(p,u),a.pauseQueue.add(d),a.timeouts.add(_)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(_),e<=(a.cancelId||0)&&(l=!0);try{o.start(w_({},r,{callId:e,cancel:l}),s)}catch(e){i(e)}}}))}const B_=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?U_(e.get()):t.every((e=>e.noop))?Z_(e.get()):j_(e.get(),t.every((e=>e.finished))),Z_=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),j_=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),U_=e=>({value:e,cancelled:!0,finished:!1});function $_(e,t,r,n){const{callId:a,parentId:o,onRest:s}=t,{asyncTo:i,promise:c}=r;return o||e!==i||t.reset?r.promise=(async()=>{r.asyncId=a,r.asyncTo=e;const u=I_(t,((e,t)=>"onRest"===t?void 0:e));let _,l;const d=new Promise(((e,t)=>(_=e,l=t))),y=e=>{const t=a<=(r.cancelId||0)&&U_(n)||a!==r.asyncId&&j_(n,!1);if(t)throw e.result=t,l(e),e},p=(e,t)=>{const o=new W_,s=new H_;return(async()=>{if($c.skipAnimation)throw V_(r),s.result=j_(n,!1),l(s),s;y(o);const i=Pc.obj(e)?w_({},e):w_({},t,{to:e});i.parentId=a,Rc(u,((e,t)=>{Pc.und(i[t])&&(i[t]=e)}));const c=await n.start(i);return y(o),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),c})()};let g;if($c.skipAnimation)return V_(r),j_(n,!1);try{let t;t=Pc.arr(e)?(async e=>{for(const t of e)await p(t)})(e):Promise.resolve(e(p,n.stop.bind(n))),await Promise.all([t.then(_),d]),g=j_(n.get(),!0,!1)}catch(e){if(e instanceof W_)g=e.result;else{if(!(e instanceof H_))throw e;g=e.result}}finally{a==r.asyncId&&(r.asyncId=o,r.asyncTo=o?i:void 0,r.promise=o?c:void 0)}return Pc.fun(s)&&dc.batchedUpdates((()=>{s(g,n,n.item)})),g})():c}function V_(e,t){Nc(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class W_ extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class H_ extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const q_=e=>e instanceof G_;let K_=1;class G_ extends Au{constructor(...e){super(...e),this.id=K_++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=o_(this);return e&&e.getValue()}to(...e){return $c.to(this,e)}interpolate(...e){return Gu(`${qu}The "interpolate" function is deprecated in v9 (use "to" instead)`),$c.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){zu(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Kc.sort(this),zu(this,{type:"priority",parent:this,priority:e})}}const Y_=Symbol.for("SpringPhase"),Q_=e=>(1&e[Y_])>0,J_=e=>(2&e[Y_])>0,X_=e=>(4&e[Y_])>0,el=(e,t)=>t?e[Y_]|=3:e[Y_]&=-3,tl=(e,t)=>t?e[Y_]|=4:e[Y_]&=-5;class rl extends G_{constructor(e,t){if(super(),this.key=void 0,this.animation=new L_,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Pc.und(e)||!Pc.und(t)){const r=Pc.obj(e)?w_({},e):w_({},t,{from:e});Pc.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(J_(this)||this._state.asyncTo)||X_(this)}get goal(){return Ou(this.animation.to)}get velocity(){const e=o_(this);return e instanceof u_?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Q_(this)}get isAnimating(){return J_(this)}get isPaused(){return X_(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:a,toValues:o}=n;const s=i_(n.to);!s&&Cu(n.to)&&(o=Mc(Ou(n.to))),n.values.forEach(((i,c)=>{if(i.done)return;const u=i.constructor==__?1:s?s[c].lastPosition:o[c];let _=n.immediate,l=u;if(!_){if(l=i.lastPosition,a.tension<=0)return void(i.done=!0);let t=i.elapsedTime+=e;const r=n.fromValues[c],o=null!=i.v0?i.v0:i.v0=Pc.arr(a.velocity)?a.velocity[c]:a.velocity;let s;const d=a.precision||(r==u?.005:Math.min(1,.001*Math.abs(u-r)));if(Pc.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,n=Math.exp(-(1-e)*t);l=r+o/(1-e)*(1-n),_=Math.abs(i.lastPosition-l)<=d,s=o*n}else{s=null==i.lastVelocity?o:i.lastVelocity;const t=a.restVelocity||d/10,n=a.clamp?0:a.bounce,c=!Pc.und(n),y=r==u?i.v0>0:rt,p||(_=Math.abs(u-l)<=d,!_));++e)c&&(g=l==u||l>u==y,g&&(s=-s*n,l=u)),s+=(1e-6*-a.tension*(l-u)+.001*-a.friction*s)/a.mass*m,l+=s*m}else{let n=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,i.durationProgress>0&&(i.elapsedTime=a.duration*i.durationProgress,t=i.elapsedTime+=e)),n=(a.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,i.durationProgress=n),l=r+a.easing(n)*(u-r),s=(l-i.lastPosition)/e,_=1==n}i.lastVelocity=s,Number.isNaN(l)&&(console.warn("Got NaN while animating:",this),_=!0)}s&&!s[c].done&&(_=!1),_?i.done=!0:t=!1,i.setValue(l,a.round)&&(r=!0)}));const i=o_(this),c=i.getValue();if(t){const e=Ou(n.to);c===e&&!r||a.decay?r&&a.decay&&this._onChange(c):(i.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(c)}set(e){return dc.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(J_(this)){const{to:e,config:t}=this.animation;dc.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return Pc.und(e)?(r=this.queue||[],this.queue=[]):r=[Pc.obj(e)?e:w_({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>B_(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),V_(this._state,e&&this._lastCallId),dc.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=Pc.obj(r)?r[t]:r,(null==r||A_(r))&&(r=void 0),n=Pc.obj(n)?n[t]:n,null==n&&(n=void 0);const a={to:r,from:n};return Q_(this)||(e.reverse&&([r,n]=[n,r]),n=Ou(n),Pc.und(n)?o_(this)||this._set(r):this._set(n)),a}_update(e,t){let r=w_({},e);const{key:n,defaultProps:a}=this;r.default&&Object.assign(a,I_(r,((e,t)=>/^on/.test(t)?k_(e,n):e))),ul(this,r,"onProps"),_l(this,"onProps",r,this);const o=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return D_(++this._lastCallId,{key:n,props:r,defaultProps:a,state:s,actions:{pause:()=>{X_(this)||(tl(this,!0),Fc(s.pauseQueue),_l(this,"onPause",j_(this,nl(this,this.animation.to)),this))},resume:()=>{X_(this)&&(tl(this,!1),J_(this)&&this._resume(),Fc(s.resumeQueue),_l(this,"onResume",j_(this,nl(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=al(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(U_(this));const n=!Pc.und(e.to),a=!Pc.und(e.from);if(n||a){if(!(t.callId>this._lastToId))return r(U_(this));this._lastToId=t.callId}const{key:o,defaultProps:s,animation:i}=this,{to:c,from:u}=i;let{to:_=c,from:l=u}=e;!a||n||t.default&&!Pc.und(_)||(_=l),t.reverse&&([_,l]=[l,_]);const d=!zc(l,u);d&&(i.from=l),l=Ou(l);const y=!zc(_,c);y&&this._focus(_);const p=A_(t.to),{config:g}=i,{decay:m,velocity:h}=g;(n||a)&&(g.velocity=0),t.config&&!p&&function(e,t,r){r&&(N_(r=w_({},r),t),t=w_({},r,t)),N_(e,t),Object.assign(e,t);for(const t in R_)null==e[t]&&(e[t]=R_[t]);let{mass:n,frequency:a,damping:o}=e;Pc.und(a)||(a<.01&&(a=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/a,2)*n,e.friction=4*Math.PI*o*n/a)}(g,b_(t.config,o),t.config!==s.config?b_(s.config,o):void 0);let f=o_(this);if(!f||Pc.und(_))return r(j_(this,!0));const x=Pc.und(t.reset)?a&&!t.default:!Pc.und(l)&&S_(t.reset,o),v=x?l:this.get(),w=z_(_),b=Pc.num(w)||Pc.arr(w)||Qu(w),S=!p&&(!b||S_(s.immediate||t.immediate,o));if(y){const e=g_(_);if(e!==f.constructor){if(!S)throw Error(`Cannot animate between ${f.constructor.name} and ${e.name}, as the "to" prop suggests`);f=this._set(w)}}const k=f.constructor;let E=Cu(_),T=!1;if(!E){const e=x||!Q_(this)&&d;(y||e)&&(T=zc(z_(v),w),E=!T),(zc(i.immediate,S)||S)&&zc(g.decay,m)&&zc(g.velocity,h)||(E=!0)}if(T&&J_(this)&&(i.changed&&!x?E=!0:E||this._stop(c)),!p&&((E||Cu(c))&&(i.values=f.getPayload(),i.toValues=Cu(_)?null:k==__?[1]:Mc(w)),i.immediate!=S&&(i.immediate=S,S||x||this._set(c)),E)){const{onRest:e}=i;Ac(cl,(e=>ul(this,t,e)));const n=j_(this,nl(this,c));Fc(this._pendingCalls,n),this._pendingCalls.add(r),i.changed&&dc.batchedUpdates((()=>{i.changed=!x,null==e||e(n,this),x?b_(s.onRest,n):null==i.onStart||i.onStart(n,this)}))}x&&this._set(v),p?r($_(t.to,t,this._state,this)):E?this._start():J_(this)&&!y?this._pendingCalls.add(r):r(Z_(v))}_focus(e){const t=this.animation;e!==t.to&&(Pu(this)&&this._detach(),t.to=e,Pu(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Cu(t)&&(Mu(t,this),q_(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Cu(e)&&Nu(e,this)}_set(e,t=!0){const r=Ou(e);if(!Pc.und(r)){const e=o_(this);if(!e||!zc(r,e.getValue())){const n=g_(r);e&&e.constructor==n?e.setValue(r):s_(this,n.create(r)),e&&dc.batchedUpdates((()=>{this._onChange(r,t)}))}}return o_(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,_l(this,"onStart",j_(this,nl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),b_(this.animation.onChange,e,this)),b_(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;o_(this).reset(Ou(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),J_(this)||(el(this,!0),X_(this)||this._resume())}_resume(){$c.skipAnimation?this.finish():Kc.start(this)}_stop(e,t){if(J_(this)){el(this,!1);const r=this.animation;Ac(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),zu(this,{type:"idle",parent:this});const n=t?U_(this.get()):j_(this.get(),nl(this,null!=e?e:r.to));Fc(this._pendingCalls,n),r.changed&&(r.changed=!1,_l(this,"onRest",n,this))}}}function nl(e,t){const r=z_(t);return zc(z_(e.get()),r)}function al(e,t=e.loop,r=e.to){let n=b_(t);if(n){const a=!0!==n&&P_(n),o=(a||e).reverse,s=!a||a.reset;return ol(w_({},e,{loop:t,default:!1,pause:void 0,to:!o||A_(r)?r:void 0,from:s?e.from:void 0,reset:s},a))}}function ol(e){const{to:t,from:r}=e=P_(e),n=new Set;return Pc.obj(t)&&il(t,n),Pc.obj(r)&&il(r,n),e.keys=n.size?Array.from(n):null,e}function sl(e){const t=ol(e);return Pc.und(t.default)&&(t.default=I_(t)),t}function il(e,t){Rc(e,((e,r)=>null!=e&&t.add(r)))}const cl=["onStart","onRest","onChange","onPause","onResume"];function ul(e,t,r){e.animation[r]=t[r]!==E_(t,r)?k_(t[r],e.key):void 0}function _l(e,t,...r){var n,a,o,s;null==(n=(a=e.animation)[t])||n.call(a,...r),null==(o=(s=e.defaultProps)[t])||o.call(s,...r)}const ll=["onStart","onChange","onRest"];let dl=1;class yl{constructor(e,t){this.id=dl++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(w_({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];Pc.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(ol(e)),this}start(e){let{queue:t}=this;return e?t=Mc(e).map(ol):this.queue=[],this._flush?this._flush(this,t):(vl(this,t),pl(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;Ac(Mc(t),(t=>r[t].stop(!!e)))}else V_(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Pc.und(e))this.start({pause:!0});else{const t=this.springs;Ac(Mc(e),(e=>t[e].pause()))}return this}resume(e){if(Pc.und(e))this.start({pause:!1});else{const t=this.springs;Ac(Mc(e),(e=>t[e].resume()))}return this}each(e){Rc(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,a=this._changed.size>0;(n&&!this._started||a&&!this._started)&&(this._started=!0,Nc(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!n&&this._started,s=a||o&&r.size?this.get():null;a&&t.size&&Nc(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),o&&(this._started=!1,Nc(r,(([e,t])=>{t.value=s,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}dc.onFrame(this._onFrame)}}function pl(e,t){return Promise.all(t.map((t=>gl(e,t)))).then((t=>B_(e,t)))}async function gl(e,t,r){const{keys:n,to:a,from:o,loop:s,onRest:i,onResolve:c}=t,u=Pc.obj(t.default)&&t.default;s&&(t.loop=!1),!1===a&&(t.to=null),!1===o&&(t.from=null);const _=Pc.arr(a)||Pc.fun(a)?a:void 0;_?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ac(ll,(r=>{const n=t[r];if(Pc.fun(n)){const a=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=a.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):a.set(n,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[r]=t[r])}}));const l=e._state;t.pause===!l.paused?(l.paused=t.pause,Fc(t.pause?l.pauseQueue:l.resumeQueue)):l.paused&&(t.pause=!0);const d=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),y=!0===t.cancel||!0===E_(t,"cancel");(_||y&&l.asyncId)&&d.push(D_(++e._lastAsyncId,{props:t,state:l,actions:{pause:Oc,resume:Oc,start(t,r){y?(V_(l,e._lastAsyncId),r(U_(e))):(t.onRest=i,r($_(_,t,l,e)))}}})),l.paused&&await new Promise((e=>{l.resumeQueue.add(e)}));const p=B_(e,await Promise.all(d));if(s&&p.finished&&(!r||!p.noop)){const r=al(t,s,a);if(r)return vl(e,[r]),gl(e,r,!0)}return c&&dc.batchedUpdates((()=>c(p,e,e.item))),p}function ml(e,t){const r=w_({},e.springs);return t&&Ac(Mc(t),(e=>{Pc.und(e.keys)&&(e=ol(e)),Pc.obj(e.to)||(e=w_({},e,{to:void 0})),xl(r,e,(e=>fl(e)))})),hl(e,r),r}function hl(e,t){Rc(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,Mu(t,e))}))}function fl(e,t){const r=new rl;return r.key=e,t&&Mu(r,t),r}function xl(e,t,r){t.keys&&Ac(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function vl(e,t){Ac(t,(t=>{xl(e.springs,t,(t=>fl(t,e)))}))}const wl=["children"],bl=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}(e,wl);const a=(0,n.useContext)(Sl),o=r.pause||!!a.pause,s=r.immediate||!!a.immediate;r=function(e,t){const[r]=(0,n.useState)((()=>({inputs:t,result:e()}))),a=(0,n.useRef)(),o=a.current;let s=o;if(s){const r=Boolean(t&&s.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r{a.current=s,o==r&&(r.inputs=r.result=void 0)}),[s]),s.result}((()=>({pause:o,immediate:s})),[o,s]);const{Provider:i}=Sl;return n.createElement(i,{value:r},t)},Sl=(kl=bl,El={},Object.assign(kl,n.createContext(El)),kl.Provider._context=kl,kl.Consumer._context=kl,kl);var kl,El;bl.Provider=Sl.Provider,bl.Consumer=Sl.Consumer;const Tl=()=>{const e=[],t=function(t){Yu(`${qu}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const n=[];return Ac(e,((e,a)=>{if(Pc.und(t))n.push(e.start());else{const o=r(t,e,a);o&&n.push(e.start(o))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return Ac(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ac(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ac(e,(e=>e.set(t)))},t.start=function(t){const r=[];return Ac(e,((e,n)=>{if(Pc.und(t))r.push(e.start());else{const a=this._getProps(t,e,n);a&&r.push(e.start(a))}})),r},t.stop=function(){return Ac(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ac(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return Pc.fun(e)?e(r,t):e};return t._getProps=r,t};function Il(e,t){const r=Pc.fun(e),[[a],o]=function(e,t,r){const a=Pc.fun(t)&&t;a&&!r&&(r=[]);const o=(0,n.useMemo)((()=>a||3==arguments.length?Tl():void 0),[]),s=(0,n.useRef)(0),i=e_(),c=(0,n.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const r=ml(e,t);return s.current>0&&!c.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?pl(e,t):new Promise((n=>{hl(e,r),c.queue.push((()=>{n(pl(e,t))})),i()}))}})),[]),u=(0,n.useRef)([...c.ctrls]),_=[],l=n_(e)||0;function d(e,r){for(let n=e;n{Ac(u.current.slice(e,l),(e=>{(function(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)})(e,o),e.stop(!0)})),u.current.length=e,d(l,e)}),[e]),(0,n.useMemo)((()=>{d(0,Math.min(l,e))}),r);const y=u.current.map(((e,t)=>ml(e,_[t]))),p=(0,n.useContext)(bl),g=n_(p),m=p!==g&&function(e){for(const t in e)return!0;return!1}(p);Ju((()=>{s.current++,c.ctrls=u.current;const{queue:e}=c;e.length&&(c.queue=[],Ac(e,(e=>e()))),Ac(u.current,((e,t)=>{null==o||o.add(e),m&&e.start({default:p});const r=_[t];r&&(function(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),t_((()=>()=>{Ac(c.ctrls,(e=>e.stop(!0)))}));const h=y.map((e=>w_({},e)));return o?[h,o]:h}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[a,o]:a}let Cl;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Cl||(Cl={}));class Ol extends G_{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=hu(...t);const r=this._get(),n=g_(r);s_(this,n.create(r))}advance(e){const t=this._get();zc(t,this.get())||(o_(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&zl(this._active)&&Al(this)}_get(){const e=Pc.arr(this.source)?this.source.map(Ou):Mc(Ou(this.source));return this.calc(...e)}_start(){this.idle&&!zl(this._active)&&(this.idle=!1,Ac(i_(this),(e=>{e.done=!1})),$c.skipAnimation?(dc.batchedUpdates((()=>this.advance())),Al(this)):Kc.start(this))}_attach(){let e=1;Ac(Mc(this.source),(t=>{Cu(t)&&Mu(t,this),q_(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ac(Mc(this.source),(e=>{Cu(e)&&Nu(e,this)})),this._active.clear(),Al(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Mc(this.source).reduce(((e,t)=>Math.max(e,(q_(t)?t.priority:0)+1)),0))}}function Pl(e){return!1!==e.idle}function zl(e){return!e.size||Array.from(e).every(Pl)}function Al(e){e.idle||(e.idle=!0,Ac(i_(e),(e=>{e.done=!0})),zu(e,{type:"idle",parent:e}))}function Rl(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}$c.assign({createStringInterpolator:Hu,to:(e,t)=>new Ol(e,t)}),Kc.advance;const Ml=["style","children","scrollTop","scrollLeft","viewBox"],Nl=/^--/;function Fl(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Nl.test(e)||Dl.hasOwnProperty(e)&&Dl[e]?(""+t).trim():t+"px"}const Ll={};let Dl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Bl=["Webkit","Ms","Moz","O"];Dl=Object.keys(Dl).reduce(((e,t)=>(Bl.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),Dl);const Zl=["x","y","z"],jl=/^(matrix|translate|scale|rotate|skew)/,Ul=/^(translate)/,$l=/^(rotate|skew)/,Vl=(e,t)=>Pc.num(e)&&0!==e?e+t:e,Wl=(e,t)=>Pc.arr(e)?e.every((e=>Wl(e,t))):Pc.num(e)?e===t:parseFloat(e)===t;class Hl extends d_{constructor(e){let{x:t,y:r,z:n}=e,a=Rl(e,Zl);const o=[],s=[];(t||r||n)&&(o.push([t||0,r||0,n||0]),s.push((e=>[`translate3d(${e.map((e=>Vl(e,"px"))).join(",")})`,Wl(e,0)]))),Rc(a,((e,t)=>{if("transform"===t)o.push([e||""]),s.push((e=>[e,""===e]));else if(jl.test(t)){if(delete a[t],Pc.und(e))return;const r=Ul.test(t)?"px":$l.test(t)?"deg":"";o.push(Mc(e)),s.push("rotate3d"===t?([e,t,n,a])=>[`rotate3d(${e},${t},${n},${Vl(a,r)})`,Wl(a,0)]:e=>[`${t}(${e.map((e=>Vl(e,r))).join(",")})`,Wl(e,t.startsWith("scale")?1:0)])}})),o.length&&(a.transform=new ql(o,s)),super(a)}}class ql extends Au{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ac(this.inputs,((r,n)=>{const a=Ou(r[0]),[o,s]=this.transforms[n](Pc.arr(a)?a:r.map(Ou));e+=" "+o,t=t&&s})),t?"none":e}observerAdded(e){1==e&&Ac(this.inputs,(e=>Ac(e,(e=>Cu(e)&&Mu(e,this)))))}observerRemoved(e){0==e&&Ac(this.inputs,(e=>Ac(e,(e=>Cu(e)&&Nu(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),zu(this,e)}}const Kl=["scrollTop","scrollLeft"];$c.assign({batchedUpdates:o.unstable_batchedUpdates,createStringInterpolator:Hu,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const Gl=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new d_(e)),getComponentProps:n=(e=>e)}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=e=>{const t=v_(e)||"Anonymous";return(e=Pc.str(e)?o[e]||(o[e]=h_(e,a)):e[x_]||(e[x_]=h_(e,a))).displayName=`Animated(${t})`,e};return Rc(e,((t,r)=>{Pc.arr(e)&&(r=v_(t)),o[r]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:a,children:o,scrollTop:s,scrollLeft:i,viewBox:c}=n,u=Rl(n,Ml),_=Object.values(u),l=Object.keys(u).map((t=>r||e.hasAttribute(t)?t:Ll[t]||(Ll[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in a)if(a.hasOwnProperty(t)){const r=Fl(t,a[t]);Nl.test(t)?e.style.setProperty(t,r):e.style[t]=r}l.forEach(((t,r)=>{e.setAttribute(t,_[r])})),void 0!==s&&(e.scrollTop=s),void 0!==i&&(e.scrollLeft=i),void 0!==c&&e.setAttribute("viewBox",c)},createAnimatedStyle:e=>new Hl(e),getComponentProps:e=>Rl(e,Kl)}),Yl=Gl.animated;var Ql=(0,hs.Z)("g")(Xl||(Xl=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}(["\n stroke-width: 3px;\n\n & > .colored-stroke {\n stroke: ",";\n fill: none;\n stroke-width: ","px;\n }\n\n & > .colored-fill {\n fill: ",";\n }\n\n & > .edge-text {\n font-size: ","px;\n font-weight: 900;\n }\n\n & > .edge-text-bg {\n fill: none;\n fill-opacity: 1;\n stroke: #ffffff;\n stroke-width: ","px;\n stroke-linecap: butt;\n stroke-linejoin: miter;\n stroke-opacity: 1;\n }\n\n & > .edge-marker {\n font-size: 16px;\n }\n"],["\n stroke-width: 3px;\n\n & > .colored-stroke {\n stroke: ",";\n fill: none;\n stroke-width: ","px;\n }\n\n & > .colored-fill {\n fill: ",";\n }\n\n & > .edge-text {\n font-size: ","px;\n font-weight: 900;\n }\n\n & > .edge-text-bg {\n fill: none;\n fill-opacity: 1;\n stroke: #ffffff;\n stroke-width: ","px;\n stroke-linecap: butt;\n stroke-linejoin: miter;\n stroke-opacity: 1;\n }\n\n & > .edge-marker {\n font-size: 16px;\n }\n"])),(function(e){return e.color}),(function(e){return e.strokeWidth}),(function(e){return e.color}),(function(e){var t=e.strokeWidth;return t>1?10+2*t:10*t}),(function(e){return e.strokeWidth}));const Jl=Ql;var Xl;const ed=function(e){var t,r=e.reward,a=e.edgeWidth,o=void 0===a?1:a,s=e.edgeStyle,i=void 0===s?"normal":s,c=e.showRewardText,u=void 0===c||c,_=e.arc_type,l=e.source_x,d=e.source_y,y=e.arc_x,p=e.arc_y,g=e.target_x,m=e.target_y,h=e.showTutorial,f=void 0!==h&&h,x=e.color,v="edge-".concat(e.idx),w="edge-background-".concat(e.idx),b="marker-arrow-".concat(e.idx),S="marker-arrow-background-".concat(e.idx),k="edge-text-".concat(e.idx),E="edge-text-bg-".concat(e.idx);t="straight"==_?"M ".concat(l," ").concat(d," ").concat(g," ").concat(m):"M ".concat(l," ").concat(d," Q ").concat(y," ").concat(p," ").concat(g," ").concat(m);var T,I={},C=o;switch(i){case"normal":T=null,I={};break;case"dashed":T="4,4",C=1.5*o,I={};break;case"animated":T="4,4",C=1.5*o,I={loop:!0,from:{dashOffset:0},dashOffset:l-g<0||d-m<0?-100:100,delay:0,config:{duration:1e4}};break;case"highlighted":C=1.5*o,T=null,I={}}var O=Il(I).dashOffset;return n.createElement(n.Fragment,null,"#f7f7f7"===x&&n.createElement(Jl,{color:"black",strokeWidth:C+.5},n.createElement(Yl.path,{strokeDashoffset:O?O.to((function(e){return e})):0,className:"colored-stroke",id:w,strokeDasharray:T||null,markerEnd:"url(#".concat(S,")"),markerUnits:"userSpaceOnUse",d:t}),n.createElement("marker",{id:S,markerWidth:"5",markerHeight:"4",className:"colored-fill",refX:"4",refY:"2",orient:"auto"},n.createElement("polygon",{points:"0.4 0, 5.3 2, 0.4 4"}))),n.createElement(uc,{tutorialId:"practice_edge",isTutorial:f,isShowTip:!1,onTutorialClose:e.onTutorialClose,placement:"top"},n.createElement(Jl,{color:x,strokeWidth:C},n.createElement(Yl.path,{strokeDashoffset:O?O.to((function(e){return e})):0,className:"colored-stroke",id:v,strokeDasharray:T||null,markerEnd:"url(#".concat(b,")"),markerUnits:"userSpaceOnUse",d:t}),u?n.createElement(n.Fragment,null,n.createElement("text",{id:E,className:"edge-text-bg edge-text"},n.createElement("textPath",{alignmentBaseline:"text-after-edge",xlinkHref:"#".concat(v),startOffset:"35%"},n.createElement("tspan",{dy:3},r))),n.createElement("text",{id:k,className:"edge-text colored-fill"},n.createElement("textPath",{alignmentBaseline:"text-after-edge",xlinkHref:"#".concat(v),startOffset:"35%"},n.createElement("tspan",{dy:3},r)))):null,n.createElement("marker",{id:b,markerWidth:"5",markerHeight:"4",className:"colored-fill",refX:"4",refY:"2",orient:"auto"},n.createElement("polygon",{points:"0 0, 5 2, 0 4"})))))},td=function(e){var t=e.edges,r=e.nodes,a=e.onNodeClickHandler,o=e.currentNodeId,s=void 0===o?null:o,i=e.possibleMoves,c=void 0===i?[]:i,u=e.allowedMoves,_=void 0===u?[]:u,l=e.size,d=void 0===l?470:l,y=e.nodeSize,p=void 0===y?20:y,g=e.edgeWidth,m=void 0===g?2.5:g,h=e.showRewardText,f=void 0!==h&&h,x=e.showNodeTutorial,v=void 0!==x&&x,w=e.showEdgeTutorial,b=void 0!==w&&w,S=e.blur,k=void 0!==S&&S,E=e.allRewards,T=void 0===E?[-50,0,100,200,400]:E,I=e.colors,C=void 0===I?["#c51b7d","#e9a3c9","#e6f5d0","#a1d76a","#4d9221"]:I,O=e.disableClick,P=void 0!==O&&O,z=function(e){return 2*e+d/2},A=function(e){return 2*e+d/2},R=(0,n.useCallback)((function(e,t){return e?"active":P||k?"disabled":c.includes(t)?"next":"normal"}),[c,P,k]),M=(0,n.useCallback)((function(e){var r,n=null===(r=t.find((function(t){return t.source_num===s&&t.target_num===e})))||void 0===r?void 0:r.reward;return null===n?"#ffffff":C[T.indexOf(n)]}),[t,s,T,C]);return n.createElement("svg",{width:d,height:d},n.createElement("defs",null,n.createElement("filter",{id:"static-network-blur",x:"0",y:"0"},n.createElement("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"7"}))),n.createElement("g",{filter:k?"url(#static-network-blur)":""},n.createElement("g",null,r.map((function(t,r){var o=s===t.node_num;return n.createElement(_c,{x:z(t.x),y:A(t.y),nodeInx:t.node_num,Text:t.display_name,Radius:p,onNodeClick:a,status:R(o,t.node_num),isValidMove:_.includes(t.node_num),key:"node-"+r,showTutorial:v&&o,onTutorialClose:4!=t.node_num?e.onTutorialClose:null,nextNodeColor:M(t.node_num)})}))),n.createElement("g",null,t.slice().sort((function(e,t){var r=e.source_num===s,n=t.source_num===s;return r&&!n?1:!r&&n?-1:0})).map((function(e,t){return n.createElement(ed,{reward:e.reward,edgeWidth:m,edgeStyle:e.edgeStyle,idx:t,showRewardText:f,arc_type:e.arc_type,source_x:z(e.source_x),source_y:A(e.source_y),arc_x:z(e.arc_x),arc_y:A(e.arc_y),target_x:z(e.target_x),target_y:A(e.target_y),key:"edge-"+t,showTutorial:b&&0===t,onTutorialClose:null,color:C[T.indexOf(e.reward)]})})))))};var rd=r(2605);const nd=["component","direction","spacing","divider","children"];function ad(e,t){const r=n.Children.toArray(e).filter(Boolean);return r.reduce(((e,a,o)=>(e.push(a),o[t.root]})((({ownerState:e,theme:t})=>{let r=(0,D.Z)({display:"flex",flexDirection:"column"},(0,Te.k9)({theme:t},(0,Te.P$)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,rd.hB)(t),a=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),o=(0,Te.P$)({values:e.direction,base:a}),s=(0,Te.P$)({values:e.spacing,base:a});"object"==typeof o&&Object.keys(o).forEach(((e,t,r)=>{if(!o[e]){const n=t>0?o[r[t-1]]:"column";o[e]=n}}));const i=(t,r)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${a=r?o[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[a]}`]:(0,rd.NA)(n,t)}};var a};r=(0,Z.Z)(r,(0,Te.k9)({theme:t},s,i))}return r=(0,Te.dt)(t.breakpoints,r),r})),sd=n.forwardRef((function(e,t){const r=V((0,q.Z)({props:e,name:"MuiStack"})),{component:n="div",direction:a="column",spacing:o=0,divider:s,children:i}=r,c=(0,L.Z)(r,nd),u={direction:a,spacing:o};return(0,J.jsx)(od,(0,D.Z)({as:n,ownerState:u,ref:t},c,{children:s?ad(i,s):i}))})),id=sd;var cd=(0,hs.Z)(ge)((function(){return{padding:0,elevation:0,textAlign:"left"}})),ud=function(e){var t=e.children;return n.createElement(cd,{elevation:0},t)};const _d=function(e){var t=e.showComment,r=void 0===t||t,a=e.showTutorialScore,o=void 0!==a&&a,s=e.showTutorialComment,i=void 0!==s&&s,c=(e.showTutorialTotalScore,e.showCumulativePoints),u=void 0===c||c,_=e.showTotalPoints,l=void 0===_||_;return n.createElement(id,{spacing:0,sx:{paddingTop:"20px"}},(u||l)&&n.createElement(n.Fragment,null,u&&n.createElement(ud,null,n.createElement(uc,{tutorialId:"practice_step_score",isTutorial:o,isShowTip:!1,onTutorialClose:e.onTutorialClose,placement:"right"},n.createElement(ne,{variant:"h5",component:"div"},e.cumulativePoints," Points")),n.createElement(ne,{variant:"subtitle1",component:"div"},"on current Network"))),r?n.createElement(ud,null,n.createElement(ne,{gutterBottom:!0,variant:"subtitle1",component:"div"},"Player ",e.id," comment:"),n.createElement(uc,{tutorialId:"social_learning_observation_comment",isTutorial:i,isShowTip:!1,onTutorialClose:e.onTutorialCommentClose,placement:"right"},n.createElement(zo,{id:"outlined-multiline-static",multiline:!0,fullWidth:!0,rows:10,InputProps:{readOnly:!0},defaultValue:e.comment?e.comment:"No comment"}))):null)};var ld=function(){return ld=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?a:" "),n.createElement(_c,{x:u+a*i,y:r.height/2+i/2,nodeInx:s.node_num,Text:s.display_name,Radius:o,onNodeClick:function(){},strokeColor:c?"red":"black",status:a>0?"next":"active",nextNodeColor:a>0&&T(s.node_num,p[a-1]),isValidMove:!1,key:"linear-solution-node-"+a}),n.createElement(dd,ld({},e,{colors:E,allRewards:b,edges:y,moves:p,moveIdx:a,gap:i,nodeRadius:o,onset:u,edgeWidth:l,id:f,size:r})))})),";"))))};function pd(e){return(0,Y.Z)("MuiCircularProgress",e)}(0,G.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gd=["className","color","disableShrink","size","style","thickness","value","variant"];let md,hd,fd,xd,vd=e=>e;const wd=st(md||(md=vd` +`),it.rippleVisible,pt,550,(({theme:e})=>e.transitions.easing.easeInOut),it.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),it.child,it.childLeaving,gt,550,(({theme:e})=>e.transitions.easing.easeInOut),it.childPulsate,mt,(({theme:e})=>e.transitions.easing.easeInOut)),xt=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:s}=r,i=(0,L.Z)(r,ct),[c,u]=n.useState([]),_=n.useRef(0),l=n.useRef(null);n.useEffect((()=>{l.current&&(l.current(),l.current=null)}),[c]);const d=n.useRef(!1),y=n.useRef(null),p=n.useRef(null),g=n.useRef(null);n.useEffect((()=>()=>{clearTimeout(y.current)}),[]);const m=n.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:a,cb:s}=e;u((e=>[...e,(0,J.jsx)(ft,{classes:{ripple:(0,B.Z)(o.ripple,it.ripple),rippleVisible:(0,B.Z)(o.rippleVisible,it.rippleVisible),ripplePulsate:(0,B.Z)(o.ripplePulsate,it.ripplePulsate),child:(0,B.Z)(o.child,it.child),childLeaving:(0,B.Z)(o.childLeaving,it.childLeaving),childPulsate:(0,B.Z)(o.childPulsate,it.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:a},_.current)])),_.current+=1,l.current=s}),[o]),h=n.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:n=!1,center:o=a||t.pulsate,fakeElement:s=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const i=s?null:g.current,c=i?i.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,_,l;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(c.width/2),_=Math.round(c.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-c.left),_=Math.round(r-c.top)}if(o)l=Math.sqrt((2*c.width**2+c.height**2)/3),l%2==0&&(l+=1);else{const e=2*Math.max(Math.abs((i?i.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((i?i.clientHeight:0)-_),_)+2;l=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{m({pulsate:n,rippleX:u,rippleY:_,rippleSize:l,cb:r})},y.current=setTimeout((()=>{p.current&&(p.current(),p.current=null)}),80)):m({pulsate:n,rippleX:u,rippleY:_,rippleSize:l,cb:r})}),[a,m]),f=n.useCallback((()=>{h({},{pulsate:!0})}),[h]),x=n.useCallback(((e,t)=>{if(clearTimeout(y.current),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void(y.current=setTimeout((()=>{x(e,t)})));p.current=null,u((e=>e.length>0?e.slice(1):e)),l.current=t}),[]);return n.useImperativeHandle(t,(()=>({pulsate:f,start:h,stop:x})),[f,h,x]),(0,J.jsx)(ht,(0,D.Z)({className:(0,B.Z)(it.root,o.root,s),ref:g},i,{children:(0,J.jsx)(Qe,{component:null,exit:!0,children:c})}))})),vt=xt;function wt(e){return(0,Y.Z)("MuiButtonBase",e)}const bt=(0,G.Z)("MuiButtonBase",["root","disabled","focusVisible"]),St=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],kt=(0,H.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bt.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Et=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:s,className:i,component:c="button",disabled:u=!1,disableRipple:_=!1,disableTouchRipple:l=!1,focusRipple:d=!1,LinkComponent:y="a",onBlur:p,onClick:g,onContextMenu:m,onDragLeave:h,onFocus:f,onFocusVisible:x,onKeyDown:v,onKeyUp:w,onMouseDown:b,onMouseLeave:S,onMouseUp:k,onTouchEnd:E,onTouchMove:T,onTouchStart:I,tabIndex:C=0,TouchRippleProps:O,touchRippleRef:P,type:z}=r,A=(0,L.Z)(r,St),R=n.useRef(null),M=n.useRef(null),N=(0,je.Z)(M,P),{isFocusVisibleRef:F,onFocus:Z,onBlur:j,ref:U}=(0,$e.Z)(),[$,V]=n.useState(!1);u&&$&&V(!1),n.useImperativeHandle(a,(()=>({focusVisible:()=>{V(!0),R.current.focus()}})),[]);const[H,K]=n.useState(!1);n.useEffect((()=>{K(!0)}),[]);const G=H&&!_&&!u;function Y(e,t,r=l){return(0,Ue.Z)((n=>(t&&t(n),!r&&M.current&&M.current[e](n),!0)))}n.useEffect((()=>{$&&d&&!_&&H&&M.current.pulsate()}),[_,d,$,H]);const Q=Y("start",b),X=Y("stop",m),ee=Y("stop",h),te=Y("stop",k),re=Y("stop",(e=>{$&&e.preventDefault(),S&&S(e)})),ne=Y("start",I),ae=Y("stop",E),oe=Y("stop",T),se=Y("stop",(e=>{j(e),!1===F.current&&V(!1),p&&p(e)}),!1),ie=(0,Ue.Z)((e=>{R.current||(R.current=e.currentTarget),Z(e),!0===F.current&&(V(!0),x&&x(e)),f&&f(e)})),ce=()=>{const e=R.current;return c&&"button"!==c&&!("A"===e.tagName&&e.href)},ue=n.useRef(!1),_e=(0,Ue.Z)((e=>{d&&!ue.current&&$&&M.current&&" "===e.key&&(ue.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ce()&&" "===e.key&&e.preventDefault(),v&&v(e),e.target===e.currentTarget&&ce()&&"Enter"===e.key&&!u&&(e.preventDefault(),g&&g(e))})),le=(0,Ue.Z)((e=>{d&&" "===e.key&&M.current&&$&&!e.defaultPrevented&&(ue.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),w&&w(e),g&&e.target===e.currentTarget&&ce()&&" "===e.key&&!e.defaultPrevented&&g(e)}));let de=c;"button"===de&&(A.href||A.to)&&(de=y);const ye={};"button"===de?(ye.type=void 0===z?"button":z,ye.disabled=u):(A.href||A.to||(ye.role="button"),u&&(ye["aria-disabled"]=u));const pe=(0,je.Z)(t,U,R),ge=(0,D.Z)({},r,{centerRipple:o,component:c,disabled:u,disableRipple:_,disableTouchRipple:l,focusRipple:d,tabIndex:C,focusVisible:$}),me=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,o={root:["root",t&&"disabled",r&&"focusVisible"]},s=(0,W.Z)(o,wt,a);return r&&n&&(s.root+=` ${n}`),s})(ge);return(0,J.jsxs)(kt,(0,D.Z)({as:de,className:(0,B.Z)(me.root,i),ownerState:ge,onBlur:se,onClick:g,onContextMenu:X,onFocus:ie,onKeyDown:_e,onKeyUp:le,onMouseDown:Q,onMouseLeave:re,onMouseUp:te,onDragLeave:ee,onTouchEnd:ae,onTouchMove:oe,onTouchStart:ne,ref:pe,tabIndex:u?-1:C,type:z},ye,A,{children:[s,G?(0,J.jsx)(vt,(0,D.Z)({ref:N,center:o},O)):null]}))}));function Tt(e){return(0,Y.Z)("MuiButton",e)}const It=(0,G.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ct=n.createContext({}),Ot=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Pt=e=>(0,D.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),zt=(0,H.ZP)(Et,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,K.Z)(r.color)}`],t[`size${(0,K.Z)(r.size)}`],t[`${r.variant}Size${(0,K.Z)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;return(0,D.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,D.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,_e.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,_e.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,_e.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,D.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${It.focusVisible}`]:(0,D.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${It.disabled}`]:(0,D.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,_e.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${It.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${It.disabled}`]:{boxShadow:"none"}})),At=(0,H.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${(0,K.Z)(r.size)}`]]}})((({ownerState:e})=>(0,D.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Pt(e)))),Rt=(0,H.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${(0,K.Z)(r.size)}`]]}})((({ownerState:e})=>(0,D.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Pt(e)))),Mt=n.forwardRef((function(e,t){const r=n.useContext(Ct),a=(0,Ze.Z)(r,e),o=(0,q.Z)({props:a,name:"MuiButton"}),{children:s,color:i="primary",component:c="button",className:u,disabled:_=!1,disableElevation:l=!1,disableFocusRipple:d=!1,endIcon:y,focusVisibleClassName:p,fullWidth:g=!1,size:m="medium",startIcon:h,type:f,variant:x="text"}=o,v=(0,L.Z)(o,Ot),w=(0,D.Z)({},o,{color:i,component:c,disabled:_,disableElevation:l,disableFocusRipple:d,fullWidth:g,size:m,type:f,variant:x}),b=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:s}=e,i={root:["root",o,`${o}${(0,K.Z)(t)}`,`size${(0,K.Z)(a)}`,`${o}Size${(0,K.Z)(a)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,K.Z)(a)}`],endIcon:["endIcon",`iconSize${(0,K.Z)(a)}`]},c=(0,W.Z)(i,Tt,s);return(0,D.Z)({},s,c)})(w),S=h&&(0,J.jsx)(At,{className:b.startIcon,ownerState:w,children:h}),k=y&&(0,J.jsx)(Rt,{className:b.endIcon,ownerState:w,children:y});return(0,J.jsxs)(zt,(0,D.Z)({ownerState:w,className:(0,B.Z)(r.className,b.root,u),component:c,disabled:_,focusRipple:!d,focusVisibleClassName:(0,B.Z)(b.focusVisible,p),ref:t,type:f},v,{classes:b,children:[S,s,k]}))}));var Nt=r(7036),Ft=r(4510);function Lt(e){return(0,Y.Z)("MuiCardMedia",e)}(0,G.Z)("MuiCardMedia",["root","media","img"]);const Dt=["children","className","component","image","src","style"],Bt=(0,H.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{isMediaComponent:n,isImageComponent:a}=r;return[t.root,n&&t.media,a&&t.img]}})((({ownerState:e})=>(0,D.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),Zt=["video","audio","picture","iframe","img"],jt=["picture","img"],Ut=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiCardMedia"}),{children:n,className:a,component:o="div",image:s,src:i,style:c}=r,u=(0,L.Z)(r,Dt),_=-1!==Zt.indexOf(o),l=!_&&s?(0,D.Z)({backgroundImage:`url("${s}")`},c):c,d=(0,D.Z)({},r,{component:o,isMediaComponent:_,isImageComponent:-1!==jt.indexOf(o)}),y=(e=>{const{classes:t,isMediaComponent:r,isImageComponent:n}=e,a={root:["root",r&&"media",n&&"img"]};return(0,W.Z)(a,Lt,t)})(d);return(0,J.jsx)(Bt,(0,D.Z)({className:(0,B.Z)(y.root,a),as:o,role:!_&&s?"img":void 0,ref:t,style:l,ownerState:d,src:_?s||i:void 0},u,{children:n}))})),$t={welcome:[""],practice_rounds:["Well done! Next, you will practice with two more complex networks. Try to maximize the number of points for each network -- remember that, later, they count towards your bonus payment!"],written_strategy_start:["Please think about how you approached the task and write down the strategy you used in trying to maximize points."],learning_selection:["Now, you have the opportunity to learn from the solutions submitted by a previous player. Think of them like a teacher.","This “learning phase” is intended to prepare you for the next stage, where your moves through the networks will be recorded for future players to learn from."],pre_social_learning:["In this learning stage, there will be four networks. For each network, the following will happen:","First, you will see a demonstration by the selected player.","Second, you will repeat the moves from the demonstration on the same network. Here, you can earn points by correctly repeating the demonstrated moves. These points will be converted into a bonus payment for you.","Third, you will have to solve the same network. However, this time, the number of points you earn will depend not on correctly repeating the demonstrated moves, but solely on the moves you choose to make. Your moves could be the same as the demonstrated ones, or different. These points will also be converted into a bonus payment for you."],pre_social_learning_gen0:["Now the main task begins. You will have to navigate through four different networks.","All points you collect will be converted into your bonus payment. Try to maximize your points!"],demonstration:["Well done! You now enter the final part of the experiment, the “teaching phase”.","You will navigate through four different networks. Your solution might be shown to other players to learn from. Note that every point you earn in the networks will be converted into a bonus payment for you. Additionally, you will receive more bonus payment if future players, who learn from your moves during this teaching phase, perform well.","So remember what you have learned and try to maximise your bonus payment!"],written_strategy:["Please write down your strategy in solving the task."],consent_decline:["You have declined to participate in the experiment. Thank you for your time. Please return the study on Prolific."]},Vt=r.p+"reward-network-iii/net_practice_example.png",Wt=function(e){var t=e.endTrial,r=e.instructionType;return n.createElement(Be,{container:!0,spacing:4},n.createElement(Be,{item:!0,xs:12},n.createElement(ue,{sx:{width:"90%",maxWidth:"600px"},m:"auto",style:{maxHeight:"80vh",overflow:"auto"},p:3},"welcome"===r&&n.createElement(Ht,null),"welcome"!==r&&$t[r].map((function(e,t){return n.createElement(ne,{key:t,variant:"body1",align:"justify",paragraph:!0},e)})),n.createElement(Be,{item:!0,xs:12,textAlign:"center",p:2},n.createElement(Mt,{variant:"contained",color:"success",onClick:function(){return t({moves:[]})},startIcon:n.createElement(Nt.Z,null)},"️ Continue")))))};var Ht=function(){return n.createElement(n.Fragment,null,n.createElement(ne,{gutterBottom:!0,variant:"h5",align:"center"},"Welcome to the experiment!"),n.createElement(Be,{container:!0,direction:"column"},n.createElement(Be,{container:!0,direction:"row"},n.createElement(Be,{item:!0,xs:6},n.createElement(ne,{variant:"body1",align:"justify",paragraph:!0},"Our experiment involves networks like the one depicted on the right. Depending on the moves you choose to navigate through the networks, you can earn more or less points. These points will be converted into bonus payments -- so your decisions in this experiment will have real financial consequences for you."),n.createElement(ne,{variant:"body1",align:"justify",paragraph:!0},"We will now explain the network task in more detail.")),n.createElement(Be,{item:!0,xs:6},n.createElement(Ut,{component:"img",image:Vt,style:{maxWidth:"400px"},alt:"Example network"})))))};const qt=function(e){var t=e.onDisagreeRedirect,r=e.endTrial,a=(0,n.useState)(!1),o=a[0],s=a[1];return n.createElement(n.Fragment,null," ",o?n.createElement(Wt,{endTrial:function(){window.open(t,"_self")},instructionType:"consent_decline"}):n.createElement(Be,{container:!0,spacing:4},n.createElement(Be,{item:!0,xs:12},n.createElement(ge,{sx:{p:5,margin:"auto",width:"75%",maxWidth:800,flexGrow:1},style:{maxHeight:"80vh",overflow:"auto",paddingTop:"20px"}},n.createElement(ne,{variant:"h4",gutterBottom:!0,align:"center"},"Study Information and Statement of Informed Consent"),n.createElement(ne,{component:"span",align:"justify"},"Thank you for your interest in participating in our “Reward Network” study. Please take your time to read this text carefully. If you have any questions, we are happy to answer them (simply contact us on Prolific). By clicking “I consent”, you agree that you have read the information presented and that you are willing to participate in the study."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"1. Aim of the study"),"In the “Reward Network” study, we want to investigate how different “generations” of problem solvers will approach a strategic task and potentially improve on their payoff. Most of the players in the study are humans, but in some rare cases, they can also be robots. In the beginning of the task, you might get the option to learn from previous solutions, and your own solutions can be passed on to subsequent generations of human participants later."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"2. Procedure and content of the study"),"To do this, we will ask you to observe different networks and traverse through them by clicking on adjacent nodes, associated with positive or negative rewards."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"3. Are there any risks involved?"),"There are no risks involved and no sensitive data will be collected."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"4. What will happen to the information and data collected?"),"This study is a research project of the Max Planck Institute (MPI) for Human Development. The data collected will be used for research purposes only. Your Prolific ID will be stored separately from the study data. The study data will be stored under an individual code number so that it cannot be linked to you during the analysis. The code number is stored on a separate code list in a secure location, and can only be accessed by a limited number of individuals working on the project. The code list is the only link between your Prolific ID and your study data. After completion of the study, the code list will be deleted, and it will no longer be possible to link the study data to you. The study data (but not Prolific ID) may be shared with cooperation partners for collaborative analysis. The study data may also be made publicly accessible via research data bases or scientific publications (typically via the Internet). This makes it possible for other researchers to check or replicate the results of the study and enhances the quality of scientific research. The study data may also be used for new research questions going beyond the purposes of this particular study. Please note that once study data are publicly accessible, its further distribution by others cannot be ruled out, and that this is beyond the area of influence or responsibility of the MPI for Human Development. Therefore, as a matter of principle, study data are only transferred or made publicly accessible without personal contact data. Data in which persons are identifiable can be made publicly accessible only if the participant agrees to this use by signing a separate consent form."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"5. Participation is voluntary"),"Participation in this study is voluntary. You may withdraw from the study at any time without giving any reason and without any negative consequences. You may also withdraw your consent to data processing and usage at any time with effect for the future and without negative consequences. To do this, you can contact us on Prolific or contact Levin Brinkmann at brinkmann@mpib-berlin.mpg.de. Please note that once the code list has been deleted (see Section 4), it is no longer possible to link your contact data to your study data."),n.createElement(ne,{component:"span",align:"justify"},n.createElement(ne,{variant:"h6",gutterBottom:!0},"6. Consent"),"This document has informed you about participation in the “Reward Network” study. The study will take approximately 15 minutes. You will receive compensation of £2.25 for your participation in the study, plus a bonus (£0.70 on average) that is dependent on your own performance and the performance of participants who learned from your solutions in the task. The study has to be completed within 30 minutes and no bonus will be paid if you do not complete the study within this time frame. If you decide to terminate your participation before the end of the study, you will receive no compensation."),n.createElement(ne,{variant:"h6",gutterBottom:!0},"I have read and understood the conditions outlined above, and had the opportunity to clarify open questions."),n.createElement(Be,{item:!0,xs:12,textAlign:"center",p:2},n.createElement(Mt,{variant:"contained",color:"success",onClick:function(){return r({moves:[]})},startIcon:n.createElement(Nt.Z,null)},"️ I consent to participate in the study and agree to the collection, storage, and use of my data as described above.")),n.createElement(Be,{item:!0,xs:12,textAlign:"center",p:2},n.createElement(Mt,{variant:"contained",color:"error",onClick:function(){localStorage.clear(),s(!0)},startIcon:n.createElement(Ft.Z,null)},"️ I do NOT consent to participate in the study.")))))," ")};var Kt=r(7579),Gt=r(1387),Yt=r(67),Qt=r(8290),Jt=r(7596),Xt=r(6600);const er=["onChange","maxRows","minRows","style","value"];function tr(e,t){return parseInt(e[t],10)||0}const rr={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function nr(e){return null==e||0===Object.keys(e).length}const ar=n.forwardRef((function(e,t){const{onChange:r,maxRows:a,minRows:s=1,style:i,value:c}=e,u=(0,L.Z)(e,er),{current:_}=n.useRef(null!=c),l=n.useRef(null),d=(0,Yt.Z)(t,l),y=n.useRef(null),p=n.useRef(0),[g,m]=n.useState({}),h=n.useCallback((()=>{const t=l.current,r=(0,Qt.Z)(t).getComputedStyle(t);if("0px"===r.width)return{};const n=y.current;n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const o=r["box-sizing"],i=tr(r,"padding-bottom")+tr(r,"padding-top"),c=tr(r,"border-bottom-width")+tr(r,"border-top-width"),u=n.scrollHeight;n.value="x";const _=n.scrollHeight;let d=u;return s&&(d=Math.max(Number(s)*_,d)),a&&(d=Math.min(Number(a)*_,d)),d=Math.max(d,_),{outerHeightStyle:d+("border-box"===o?i+c:0),overflow:Math.abs(d-u)<=1}}),[a,s,e.placeholder]),f=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},x=n.useCallback((()=>{const e=h();nr(e)||m((t=>f(t,e)))}),[h]);return n.useEffect((()=>{const e=(0,Jt.Z)((()=>{p.current=0,l.current&&(()=>{const e=h();nr(e)||(0,o.flushSync)((()=>{m((t=>f(t,e)))}))})()})),t=(0,Qt.Z)(l.current);let r;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(e),r.observe(l.current)),()=>{e.clear(),t.removeEventListener("resize",e),r&&r.disconnect()}})),(0,Xt.Z)((()=>{x()})),n.useEffect((()=>{p.current=0}),[c]),(0,J.jsxs)(n.Fragment,{children:[(0,J.jsx)("textarea",(0,D.Z)({value:c,onChange:e=>{p.current=0,_||x(),r&&r(e)},ref:d,rows:s,style:(0,D.Z)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":null},i)},u)),(0,J.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:(0,D.Z)({},rr,i,{padding:0})})]})})),or=function(e){return"string"==typeof e};function sr({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const ir=n.createContext(void 0);function cr(){return n.useContext(ir)}var ur=r(8974);function _r(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return(0,J.jsx)(at,{styles:n})}const lr=function(e){return(0,J.jsx)(_r,(0,D.Z)({},e,{defaultTheme:Ie.Z}))};function dr(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function yr(e,t=!1){return e&&(dr(e.value)&&""!==e.value||t&&dr(e.defaultValue)&&""!==e.defaultValue)}function pr(e){return(0,Y.Z)("MuiInputBase",e)}const gr=(0,G.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),mr=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],hr=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${(0,K.Z)(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},fr=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},xr=(0,H.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:hr})((({theme:e,ownerState:t})=>(0,D.Z)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${gr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,D.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),vr=(0,H.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fr})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=(0,D.Z)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),a={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,D.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${gr.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${gr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),wr=(0,J.jsx)(lr,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),br=n.forwardRef((function(e,t){var r;const a=(0,q.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:i,className:c,components:u={},componentsProps:_={},defaultValue:l,disabled:d,disableInjectingGlobalStyles:y,endAdornment:p,fullWidth:g=!1,id:m,inputComponent:h="input",inputProps:f={},inputRef:x,maxRows:v,minRows:w,multiline:b=!1,name:S,onBlur:k,onChange:E,onClick:T,onFocus:I,onKeyDown:C,onKeyUp:O,placeholder:P,readOnly:z,renderSuffix:A,rows:R,slotProps:M={},slots:N={},startAdornment:F,type:Z="text",value:j}=a,U=(0,L.Z)(a,mr),$=null!=f.value?f.value:j,{current:V}=n.useRef(null!=$),H=n.useRef(),G=n.useCallback((e=>{}),[]),Y=(0,je.Z)(H,x,f.ref,G),[Q,X]=n.useState(!1),ee=cr(),te=sr({props:a,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=ee?ee.focused:Q,n.useEffect((()=>{!ee&&d&&Q&&(X(!1),k&&k())}),[ee,d,Q,k]);const re=ee&&ee.onFilled,ne=ee&&ee.onEmpty,ae=n.useCallback((e=>{yr(e)?re&&re():ne&&ne()}),[re,ne]);(0,ur.Z)((()=>{V&&ae({value:$})}),[$,ae,V]),n.useEffect((()=>{ae(H.current)}),[]);let oe=h,se=f;b&&"input"===oe&&(se=R?(0,D.Z)({type:void 0,minRows:R,maxRows:R},se):(0,D.Z)({type:void 0,maxRows:v,minRows:w},se),oe=ar),n.useEffect((()=>{ee&&ee.setAdornedStart(Boolean(F))}),[ee,F]);const ie=(0,D.Z)({},a,{color:te.color||"primary",disabled:te.disabled,endAdornment:p,error:te.error,focused:te.focused,formControl:ee,fullWidth:g,hiddenLabel:te.hiddenLabel,multiline:b,size:te.size,startAdornment:F,type:Z}),ce=(e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:s,formControl:i,fullWidth:c,hiddenLabel:u,multiline:_,readOnly:l,size:d,startAdornment:y,type:p}=e,g={root:["root",`color${(0,K.Z)(r)}`,n&&"disabled",a&&"error",c&&"fullWidth",s&&"focused",i&&"formControl","small"===d&&"sizeSmall",_&&"multiline",y&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",l&&"readOnly"],input:["input",n&&"disabled","search"===p&&"inputTypeSearch",_&&"inputMultiline","small"===d&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",o&&"inputAdornedEnd",l&&"readOnly"]};return(0,W.Z)(g,pr,t)})(ie),ue=N.root||u.Root||xr,_e=M.root||_.root||{},le=N.input||u.Input||vr;return se=(0,D.Z)({},se,null!=(r=M.input)?r:_.input),(0,J.jsxs)(n.Fragment,{children:[!y&&wr,(0,J.jsxs)(ue,(0,D.Z)({},_e,!or(ue)&&{ownerState:(0,D.Z)({},ie,_e.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),T&&T(e)}},U,{className:(0,B.Z)(ce.root,_e.className,c),children:[F,(0,J.jsx)(ir.Provider,{value:null,children:(0,J.jsx)(le,(0,D.Z)({ownerState:ie,"aria-invalid":te.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:l,disabled:te.disabled,id:m,onAnimationStart:e=>{ae("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:S,placeholder:P,readOnly:z,required:te.required,rows:R,value:$,onKeyDown:C,onKeyUp:O,type:Z},se,!or(le)&&{as:oe,ownerState:(0,D.Z)({},ie,se.ownerState)},{ref:Y,className:(0,B.Z)(ce.input,se.className),onBlur:e=>{k&&k(e),f.onBlur&&f.onBlur(e),ee&&ee.onBlur?ee.onBlur(e):X(!1)},onChange:(e,...t)=>{if(!V){const t=e.target||H.current;if(null==t)throw new Error((0,Gt.Z)(1));ae({value:t.value})}f.onChange&&f.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{te.disabled?e.stopPropagation():(I&&I(e),f.onFocus&&f.onFocus(e),ee&&ee.onFocus?ee.onFocus(e):X(!0))}}))}),p,A?A((0,D.Z)({},te,{startAdornment:F})):null]}))]})})),Sr=br;function kr(e){return(0,Y.Z)("MuiInput",e)}const Er=(0,D.Z)({},gr,(0,G.Z)("MuiInput",["root","underline","input"])),Tr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Ir=(0,H.ZP)(xr,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...hr(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,D.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Cr=(0,H.ZP)(vr,{name:"MuiInput",slot:"Input",overridesResolver:fr})({}),Or=n.forwardRef((function(e,t){var r,n,a,o;const s=(0,q.Z)({props:e,name:"MuiInput"}),{disableUnderline:i,components:c={},componentsProps:u,fullWidth:_=!1,inputComponent:l="input",multiline:d=!1,slotProps:y,slots:p={},type:g="text"}=s,m=(0,L.Z)(s,Tr),h=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},a=(0,W.Z)(n,kr,t);return(0,D.Z)({},t,a)})(s),f={root:{ownerState:{disableUnderline:i}}},x=(null!=y?y:u)?(0,Z.Z)(null!=y?y:u,f):f,v=null!=(r=null!=(n=p.root)?n:c.Root)?r:Ir,w=null!=(a=null!=(o=p.input)?o:c.Input)?a:Cr;return(0,J.jsx)(Sr,(0,D.Z)({slots:{root:v,input:w},slotProps:x,fullWidth:_,inputComponent:l,multiline:d,ref:t,type:g},m,{classes:h}))}));Or.muiName="Input";const Pr=Or;function zr(e){return(0,Y.Z)("MuiFilledInput",e)}const Ar=(0,D.Z)({},gr,(0,G.Z)("MuiFilledInput",["root","underline","input"])),Rr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Mr=(0,H.ZP)(xr,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...hr(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,D.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Ar.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Ar.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ar.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ar.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ar.disabled}, .${Ar.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ar.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,D.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Nr=(0,H.ZP)(vr,{name:"MuiFilledInput",slot:"Input",overridesResolver:fr})((({theme:e,ownerState:t})=>(0,D.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),Fr=n.forwardRef((function(e,t){var r,n,a,o;const s=(0,q.Z)({props:e,name:"MuiFilledInput"}),{components:i={},componentsProps:c,fullWidth:u=!1,inputComponent:_="input",multiline:l=!1,slotProps:d,slots:y={},type:p="text"}=s,g=(0,L.Z)(s,Rr),m=(0,D.Z)({},s,{fullWidth:u,inputComponent:_,multiline:l,type:p}),h=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},a=(0,W.Z)(n,zr,t);return(0,D.Z)({},t,a)})(s),f={root:{ownerState:m},input:{ownerState:m}},x=(null!=d?d:c)?(0,Z.Z)(null!=d?d:c,f):f,v=null!=(r=null!=(n=y.root)?n:i.Root)?r:Mr,w=null!=(a=null!=(o=y.input)?o:i.Input)?a:Nr;return(0,J.jsx)(Sr,(0,D.Z)({slots:{root:v,input:w},componentsProps:x,fullWidth:u,inputComponent:_,multiline:l,ref:t,type:p},g,{classes:h}))}));Fr.muiName="Input";const Lr=Fr;var Dr;const Br=["children","classes","className","label","notched"],Zr=(0,H.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),jr=(0,H.ZP)("legend")((({ownerState:e,theme:t})=>(0,D.Z)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,D.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function Ur(e){return(0,Y.Z)("MuiOutlinedInput",e)}const $r=(0,D.Z)({},gr,(0,G.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),Vr=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Wr=(0,H.ZP)(xr,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:hr})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,D.Z)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$r.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${$r.focused} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$r.error} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$r.disabled} .${$r.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,D.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Hr=(0,H.ZP)((function(e){const{className:t,label:r,notched:n}=e,a=(0,L.Z)(e,Br),o=null!=r&&""!==r,s=(0,D.Z)({},e,{notched:n,withLabel:o});return(0,J.jsx)(Zr,(0,D.Z)({"aria-hidden":!0,className:t,ownerState:s},a,{children:(0,J.jsx)(jr,{ownerState:s,children:o?(0,J.jsx)("span",{children:r}):Dr||(Dr=(0,J.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),qr=(0,H.ZP)(vr,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fr})((({theme:e,ownerState:t})=>(0,D.Z)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),Kr=n.forwardRef((function(e,t){var r,a,o,s,i;const c=(0,q.Z)({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:_=!1,inputComponent:l="input",label:d,multiline:y=!1,notched:p,slots:g={},type:m="text"}=c,h=(0,L.Z)(c,Vr),f=(e=>{const{classes:t}=e,r=(0,W.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ur,t);return(0,D.Z)({},t,r)})(c),x=cr(),v=sr({props:c,muiFormControl:x,states:["required"]}),w=(0,D.Z)({},c,{color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:x,fullWidth:_,hiddenLabel:v.hiddenLabel,multiline:y,size:v.size,type:m}),b=null!=(r=null!=(a=g.root)?a:u.Root)?r:Wr,S=null!=(o=null!=(s=g.input)?s:u.Input)?o:qr;return(0,J.jsx)(Sr,(0,D.Z)({slots:{root:b,input:S},renderSuffix:e=>(0,J.jsx)(Hr,{ownerState:w,className:f.notchedOutline,label:null!=d&&""!==d&&v.required?i||(i=(0,J.jsxs)(n.Fragment,{children:[d," ","*"]})):d,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:_,inputComponent:l,multiline:y,ref:t,type:m},h,{classes:(0,D.Z)({},f,{notchedOutline:null})}))}));Kr.muiName="Input";const Gr=Kr;function Yr(e){return(0,Y.Z)("MuiFormLabel",e)}const Qr=(0,G.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Jr=["children","className","color","component","disabled","error","filled","focused","required"],Xr=(0,H.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,D.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,D.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Qr.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Qr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qr.error}`]:{color:(e.vars||e).palette.error.main}}))),en=(0,H.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Qr.error}`]:{color:(e.vars||e).palette.error.main}}))),tn=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiFormLabel"}),{children:n,className:a,component:o="label"}=r,s=(0,L.Z)(r,Jr),i=sr({props:r,muiFormControl:cr(),states:["color","required","focused","disabled","error","filled"]}),c=(0,D.Z)({},r,{color:i.color||"primary",component:o,disabled:i.disabled,error:i.error,filled:i.filled,focused:i.focused,required:i.required}),u=(e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:s,required:i}=e,c={root:["root",`color${(0,K.Z)(r)}`,a&&"disabled",o&&"error",s&&"filled",n&&"focused",i&&"required"],asterisk:["asterisk",o&&"error"]};return(0,W.Z)(c,Yr,t)})(c);return(0,J.jsxs)(Xr,(0,D.Z)({as:o,ownerState:c,className:(0,B.Z)(u.root,a),ref:t},s,{children:[n,i.required&&(0,J.jsxs)(en,{ownerState:c,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));function rn(e){return(0,Y.Z)("MuiInputLabel",e)}(0,G.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const nn=["disableAnimation","margin","shrink","variant","className"],an=(0,H.ZP)(tn,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Qr.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})((({theme:e,ownerState:t})=>(0,D.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,D.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,D.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,D.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"})))),on=n.forwardRef((function(e,t){const r=(0,q.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:a,className:o}=r,s=(0,L.Z)(r,nn),i=cr();let c=a;void 0===c&&i&&(c=i.filled||i.focused||i.adornedStart);const u=sr({props:r,muiFormControl:i,states:["size","variant","required"]}),_=(0,D.Z)({},r,{disableAnimation:n,formControl:i,shrink:c,size:u.size,variant:u.variant,required:u.required}),l=(e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:s,required:i}=e,c={root:["root",r&&"formControl",!o&&"animated",a&&"shrink","small"===n&&"sizeSmall",s],asterisk:[i&&"asterisk"]},u=(0,W.Z)(c,rn,t);return(0,D.Z)({},t,u)})(_);return(0,J.jsx)(an,(0,D.Z)({"data-shrink":c,ownerState:_,ref:t,className:(0,B.Z)(l.root,o)},s,{classes:l}))}));var sn=r(8502);function cn(e){return(0,Y.Z)("MuiFormControl",e)}(0,G.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const un=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_n=(0,H.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,D.Z)({},t.root,t[`margin${(0,K.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,D.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),ln=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiFormControl"}),{children:a,className:o,color:s="primary",component:i="div",disabled:c=!1,error:u=!1,focused:_,fullWidth:l=!1,hiddenLabel:d=!1,margin:y="none",required:p=!1,size:g="medium",variant:m="outlined"}=r,h=(0,L.Z)(r,un),f=(0,D.Z)({},r,{color:s,component:i,disabled:c,error:u,fullWidth:l,hiddenLabel:d,margin:y,required:p,size:g,variant:m}),x=(e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root","none"!==r&&`margin${(0,K.Z)(r)}`,n&&"fullWidth"]};return(0,W.Z)(a,cn,t)})(f),[v,w]=n.useState((()=>{let e=!1;return a&&n.Children.forEach(a,(t=>{if(!(0,sn.Z)(t,["Input","Select"]))return;const r=(0,sn.Z)(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[b,S]=n.useState((()=>{let e=!1;return a&&n.Children.forEach(a,(t=>{(0,sn.Z)(t,["Input","Select"])&&yr(t.props,!0)&&(e=!0)})),e})),[k,E]=n.useState(!1);c&&k&&E(!1);const T=void 0===_||c?k:_;let I;const C=n.useMemo((()=>({adornedStart:v,setAdornedStart:w,color:s,disabled:c,error:u,filled:b,focused:T,fullWidth:l,hiddenLabel:d,size:g,onBlur:()=>{E(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{E(!0)},registerEffect:I,required:p,variant:m})),[v,s,c,u,b,T,l,d,I,p,g,m]);return(0,J.jsx)(ir.Provider,{value:C,children:(0,J.jsx)(_n,(0,D.Z)({as:i,ownerState:f,className:(0,B.Z)(x.root,o),ref:t},h,{children:a}))})}));function dn(e){return(0,Y.Z)("MuiFormHelperText",e)}const yn=(0,G.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var pn;const gn=["children","className","component","disabled","error","filled","focused","margin","required","variant"],mn=(0,H.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${(0,K.Z)(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,D.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yn.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),hn=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiFormHelperText"}),{children:n,className:a,component:o="p"}=r,s=(0,L.Z)(r,gn),i=sr({props:r,muiFormControl:cr(),states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,D.Z)({},r,{component:o,contained:"filled"===i.variant||"outlined"===i.variant,variant:i.variant,size:i.size,disabled:i.disabled,error:i.error,filled:i.filled,focused:i.focused,required:i.required}),u=(e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:s,focused:i,required:c}=e,u={root:["root",a&&"disabled",o&&"error",n&&`size${(0,K.Z)(n)}`,r&&"contained",i&&"focused",s&&"filled",c&&"required"]};return(0,W.Z)(u,dn,t)})(c);return(0,J.jsx)(mn,(0,D.Z)({as:o,ownerState:c,className:(0,B.Z)(u.root,a),ref:t},s,{children:" "===n?pn||(pn=(0,J.jsx)("span",{className:"notranslate",children:"​"})):n}))}));r(9864);var fn=r(8038);const xn=n.createContext({});function vn(e){return(0,Y.Z)("MuiList",e)}(0,G.Z)("MuiList",["root","padding","dense","subheader"]);const wn=["children","className","component","dense","disablePadding","subheader"],bn=(0,H.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>(0,D.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Sn=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiList"}),{children:a,className:o,component:s="ul",dense:i=!1,disablePadding:c=!1,subheader:u}=r,_=(0,L.Z)(r,wn),l=n.useMemo((()=>({dense:i})),[i]),d=(0,D.Z)({},r,{component:s,dense:i,disablePadding:c}),y=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e,o={root:["root",!r&&"padding",n&&"dense",a&&"subheader"]};return(0,W.Z)(o,vn,t)})(d);return(0,J.jsx)(xn.Provider,{value:l,children:(0,J.jsxs)(bn,(0,D.Z)({as:s,className:(0,B.Z)(y.root,o),ref:t,ownerState:d},_,{children:[u,a]}))})}));function kn(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const En=kn,Tn=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function In(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Cn(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function On(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Pn(e,t,r,n,a,o){let s=!1,i=a(e,t,!!t&&r);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const t=!n&&(i.disabled||"true"===i.getAttribute("aria-disabled"));if(i.hasAttribute("tabindex")&&On(i,o)&&!t)return i.focus(),!0;i=a(e,i,r)}return!1}const zn=n.forwardRef((function(e,t){const{actions:r,autoFocus:a=!1,autoFocusItem:o=!1,children:s,className:i,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:_,variant:l="selectedMenu"}=e,d=(0,L.Z)(e,Tn),y=n.useRef(null),p=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,ur.Z)((()=>{a&&y.current.focus()}),[a]),n.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!y.current.style.width;if(e.clientHeight{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===l&&e.props.selected||-1===m)&&(m=t))}));const h=n.Children.map(s,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===l&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,J.jsx)(Sn,(0,D.Z)({role:"menu",ref:g,className:i,onKeyDown:e=>{const t=y.current,r=e.key,n=(0,fn.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Pn(t,n,u,c,In);else if("ArrowUp"===r)e.preventDefault(),Pn(t,n,u,c,Cn);else if("Home"===r)e.preventDefault(),Pn(t,null,u,c,In);else if("End"===r)e.preventDefault(),Pn(t,null,u,c,Cn);else if(1===r.length){const a=p.current,o=r.toLowerCase(),s=performance.now();a.keys.length>0&&(s-a.lastTime>500?(a.keys=[],a.repeating=!0,a.previousKeyMatched=!0):a.repeating&&o!==a.keys[0]&&(a.repeating=!1)),a.lastTime=s,a.keys.push(o);const i=n&&!a.repeating&&On(n,a);a.previousKeyMatched&&(i||Pn(t,n,!1,c,In,a))?e.preventDefault():a.previousKeyMatched=!1}_&&_(e)},tabIndex:a?0:-1},d,{children:h}))}));var An=r(7144),Rn=r(5340);var Mn="unmounted",Nn="exited",Fn="entering",Ln="entered",Dn="exiting",Bn=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var a,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(a=Nn,n.appearStatus=Fn):a=Ln:a=t.unmountOnExit||t.mountOnEnter?Mn:Nn,n.state={status:a},n.nextCallback=null,n}(0,Ve.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Mn?{status:Nn}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Fn&&r!==Ln&&(t=Fn):r!==Fn&&r!==Ln||(t=Dn)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Fn){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nn&&this.setState({status:Mn})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,a=this.props.nodeRef?[n]:[o.findDOMNode(this),n],s=a[0],i=a[1],c=this.getTimeouts(),u=n?c.appear:c.enter;e||r?(this.props.onEnter(s,i),this.safeSetState({status:Fn},(function(){t.props.onEntering(s,i),t.onTransitionEnd(u,(function(){t.safeSetState({status:Ln},(function(){t.props.onEntered(s,i)}))}))}))):this.safeSetState({status:Ln},(function(){t.props.onEntered(s)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:o.findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:Dn},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Nn},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Nn},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],s=a[0],i=a[1];this.props.addEndListener(s,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Mn)return null;var t=this.props,r=t.children,a=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,L.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return n.createElement(We.Provider,{value:null},"function"==typeof r?r(e,a):n.cloneElement(n.Children.only(r),a))},t}(n.Component);function Zn(){}Bn.contextType=We,Bn.propTypes={},Bn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zn,onEntering:Zn,onEntered:Zn,onExit:Zn,onExiting:Zn,onExited:Zn},Bn.UNMOUNTED=Mn,Bn.EXITED=Nn,Bn.ENTERING=Fn,Bn.ENTERED=Ln,Bn.EXITING=Dn;const jn=Bn,Un=e=>e.scrollTop;function $n(e,t){var r,n;const{timeout:a,easing:o,style:s={}}=e;return{duration:null!=(r=s.transitionDuration)?r:"number"==typeof a?a:a[t.mode]||0,easing:null!=(n=s.transitionTimingFunction)?n:"object"==typeof o?o[t.mode]:o,delay:s.transitionDelay}}const Vn=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Wn(e){return`scale(${e}, ${e**2})`}const Hn={entering:{opacity:1,transform:Wn(1)},entered:{opacity:1,transform:"none"}},qn="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Kn=n.forwardRef((function(e,t){const{addEndListener:r,appear:a=!0,children:o,easing:s,in:i,onEnter:c,onEntered:u,onEntering:_,onExit:l,onExited:d,onExiting:y,style:p,timeout:g="auto",TransitionComponent:m=jn}=e,h=(0,L.Z)(e,Vn),f=n.useRef(),x=n.useRef(),v=Ce(),w=n.useRef(null),b=(0,je.Z)(w,o.ref,t),S=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},k=S(_),E=S(((e,t)=>{Un(e);const{duration:r,delay:n,easing:a}=$n({style:p,timeout:g,easing:s},{mode:"enter"});let o;"auto"===g?(o=v.transitions.getAutoHeightDuration(e.clientHeight),x.current=o):o=r,e.style.transition=[v.transitions.create("opacity",{duration:o,delay:n}),v.transitions.create("transform",{duration:qn?o:.666*o,delay:n,easing:a})].join(","),c&&c(e,t)})),T=S(u),I=S(y),C=S((e=>{const{duration:t,delay:r,easing:n}=$n({style:p,timeout:g,easing:s},{mode:"exit"});let a;"auto"===g?(a=v.transitions.getAutoHeightDuration(e.clientHeight),x.current=a):a=t,e.style.transition=[v.transitions.create("opacity",{duration:a,delay:r}),v.transitions.create("transform",{duration:qn?a:.666*a,delay:qn?r:r||.333*a,easing:n})].join(","),e.style.opacity=0,e.style.transform=Wn(.75),l&&l(e)})),O=S(d);return n.useEffect((()=>()=>{clearTimeout(f.current)}),[]),(0,J.jsx)(m,(0,D.Z)({appear:a,in:i,nodeRef:w,onEnter:E,onEntered:T,onEntering:k,onExit:C,onExited:O,onExiting:I,addEndListener:e=>{"auto"===g&&(f.current=setTimeout(e,x.current||0)),r&&r(w.current,e)},timeout:"auto"===g?null:g},h,{children:(e,t)=>n.cloneElement(o,(0,D.Z)({style:(0,D.Z)({opacity:0,transform:Wn(.75),visibility:"exited"!==e||i?void 0:"hidden"},Hn[e],p,o.props.style),ref:b},t))}))}));Kn.muiSupportAuto=!0;const Gn=Kn;var Yn=r(7094),Qn=r(3633),Jn=r(9064),Xn=r(7960);const ea=n.forwardRef((function(e,t){const{children:r,container:a,disablePortal:s=!1}=e,[i,c]=n.useState(null),u=(0,Yt.Z)(n.isValidElement(r)?r.ref:null,t);if((0,Xt.Z)((()=>{s||c(function(e){return"function"==typeof e?e():e}(a)||document.body)}),[a,s]),(0,Xt.Z)((()=>{if(i&&!s)return(0,Xn.Z)(t,i),()=>{(0,Xn.Z)(t,null)}}),[t,i,s]),s){if(n.isValidElement(r)){const e={ref:u};return n.cloneElement(r,e)}return(0,J.jsx)(n.Fragment,{children:r})}return(0,J.jsx)(n.Fragment,{children:i?o.createPortal(r,i):i})}));function ta(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ra(e){return parseInt((0,Qt.Z)(e).getComputedStyle(e).paddingRight,10)||0}function na(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===o.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&ta(e,a)}))}function aa(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}const oa=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sa(e){const t=[],r=[];return Array.from(e.querySelectorAll(oa)).forEach(((e,n)=>{const a=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==a&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===a?t.push(e):r.push({documentOrder:n,tabIndex:a,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function ia(){return!0}const ca=function(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:a=!1,disableRestoreFocus:o=!1,getTabbable:s=sa,isEnabled:i=ia,open:c}=e,u=n.useRef(!1),_=n.useRef(null),l=n.useRef(null),d=n.useRef(null),y=n.useRef(null),p=n.useRef(!1),g=n.useRef(null),m=(0,Yt.Z)(t.ref,g),h=n.useRef(null);n.useEffect((()=>{c&&g.current&&(p.current=!r)}),[r,c]),n.useEffect((()=>{if(!c||!g.current)return;const e=(0,Yn.Z)(g.current);return g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),p.current&&g.current.focus()),()=>{o||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}}),[c]),n.useEffect((()=>{if(!c||!g.current)return;const e=(0,Yn.Z)(g.current),t=t=>{const{current:r}=g;if(null!==r)if(e.hasFocus()&&!a&&i()&&!u.current){if(!r.contains(e.activeElement)){if(t&&y.current!==t.target||e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(!p.current)return;let a=[];if(e.activeElement!==_.current&&e.activeElement!==l.current||(a=s(g.current)),a.length>0){var n,o;const e=Boolean((null==(n=h.current)?void 0:n.shiftKey)&&"Tab"===(null==(o=h.current)?void 0:o.key)),t=a[0],r=a[a.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else r.focus()}}else u.current=!1},r=t=>{h.current=t,!a&&i()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(u.current=!0,l.current&&l.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",r,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",t),e.removeEventListener("keydown",r,!0)}}),[r,a,o,i,c,s]);const f=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return(0,J.jsxs)(n.Fragment,{children:[(0,J.jsx)("div",{tabIndex:c?0:-1,onFocus:f,ref:_,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,y.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,J.jsx)("div",{tabIndex:c?0:-1,onFocus:f,ref:l,"data-testid":"sentinelEnd"})]})};function ua(e){return(0,Y.Z)("MuiModal",e)}function _a(e,t,r){return void 0===e||or(e)?t:(0,D.Z)({},t,{ownerState:(0,D.Z)({},t.ownerState,r)})}function la(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}function da(e,t){return"function"==typeof e?e(t):e}(0,G.Z)("MuiModal",["root","hidden"]);const ya=["elementType","externalSlotProps","ownerState"];function pa(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a}=e,o=(0,L.Z)(e,ya),s=da(n,a),{props:i,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const e=(0,B.Z)(null==a?void 0:a.className,null==n?void 0:n.className,o,null==r?void 0:r.className),t=(0,D.Z)({},null==r?void 0:r.style,null==a?void 0:a.style,null==n?void 0:n.style),s=(0,D.Z)({},r,a,n);return e.length>0&&(s.className=e),Object.keys(t).length>0&&(s.style=t),{props:s,internalRef:void 0}}const s=function(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}((0,D.Z)({},a,n)),i=la(n),c=la(a),u=t(s),_=(0,B.Z)(null==u?void 0:u.className,null==r?void 0:r.className,o,null==a?void 0:a.className,null==n?void 0:n.className),l=(0,D.Z)({},null==u?void 0:u.style,null==r?void 0:r.style,null==a?void 0:a.style,null==n?void 0:n.style),d=(0,D.Z)({},u,r,c,i);return _.length>0&&(d.className=_),Object.keys(l).length>0&&(d.style=l),{props:d,internalRef:u.ref}}((0,D.Z)({},o,{externalSlotProps:s})),u=(0,Yt.Z)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return _a(r,(0,D.Z)({},i,{ref:u}),a)}const ga=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],ma=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&ta(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);na(t,e.mount,e.modalRef,n,!0);const a=aa(this.containers,(e=>e.container===t));return-1!==a?(this.containers[a].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=aa(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Yn.Z)(e);return t.body===e?(0,Qt.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=kn((0,Yn.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ra(n)+e}px`;const t=(0,Yn.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ra(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,Yn.Z)(n).body;else{const t=n.parentElement,r=(0,Qt.Z)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=aa(this.containers,(t=>-1!==t.modals.indexOf(e))),a=this.containers[n];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(r,1),0===a.modals.length)a.restore&&a.restore(),e.modalRef&&ta(e.modalRef,t),na(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=a.modals[a.modals.length-1];e.modalRef&&ta(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},ha=n.forwardRef((function(e,t){var r,a;const{children:o,classes:s,closeAfterTransition:i=!1,component:c,container:u,disableAutoFocus:_=!1,disableEnforceFocus:l=!1,disableEscapeKeyDown:d=!1,disablePortal:y=!1,disableRestoreFocus:p=!1,disableScrollLock:g=!1,hideBackdrop:m=!1,keepMounted:h=!1,manager:f=ma,onBackdropClick:x,onClose:v,onKeyDown:w,open:b,onTransitionEnter:S,onTransitionExited:k,slotProps:E={},slots:T={}}=e,I=(0,L.Z)(e,ga),[C,O]=n.useState(!b),P=n.useRef({}),z=n.useRef(null),A=n.useRef(null),R=(0,Yt.Z)(A,t),M=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),N=null==(r=e["aria-hidden"])||r,F=()=>(P.current.modalRef=A.current,P.current.mountNode=z.current,P.current),B=()=>{f.mount(F(),{disableScrollLock:g}),A.current&&(A.current.scrollTop=0)},Z=(0,Qn.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(u)||(0,Yn.Z)(z.current).body;f.add(F(),e),A.current&&B()})),j=n.useCallback((()=>f.isTopModal(F())),[f]),U=(0,Qn.Z)((e=>{z.current=e,e&&A.current&&(b&&j()?B():ta(A.current,N))})),$=n.useCallback((()=>{f.remove(F(),N)}),[f,N]);n.useEffect((()=>()=>{$()}),[$]),n.useEffect((()=>{b?Z():M&&i||$()}),[b,$,M,i,Z]);const V=(0,D.Z)({},e,{classes:s,closeAfterTransition:i,disableAutoFocus:_,disableEnforceFocus:l,disableEscapeKeyDown:d,disablePortal:y,disableRestoreFocus:p,disableScrollLock:g,exited:C,hideBackdrop:m,keepMounted:h}),H=(e=>{const{open:t,exited:r,classes:n}=e,a={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,W.Z)(a,ua,n)})(V),q={};void 0===o.props.tabIndex&&(q.tabIndex="-1"),M&&(q.onEnter=(0,Jn.Z)((()=>{O(!1),S&&S()}),o.props.onEnter),q.onExited=(0,Jn.Z)((()=>{O(!0),k&&k(),i&&$()}),o.props.onExited));const K=null!=(a=null!=c?c:T.root)?a:"div",G=pa({elementType:K,externalSlotProps:E.root,externalForwardedProps:I,additionalProps:{ref:R,role:"presentation",onKeyDown:e=>{w&&w(e),"Escape"===e.key&&j()&&(d||(e.stopPropagation(),v&&v(e,"escapeKeyDown")))}},className:H.root,ownerState:V}),Y=T.backdrop,Q=pa({elementType:Y,externalSlotProps:E.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(x&&x(e),v&&v(e,"backdropClick"))},open:b},className:H.backdrop,ownerState:V});return h||b||M&&!C?(0,J.jsx)(ea,{ref:U,container:u,disablePortal:y,children:(0,J.jsxs)(K,(0,D.Z)({},G,{children:[!m&&Y?(0,J.jsx)(Y,(0,D.Z)({},Q)):null,(0,J.jsx)(ca,{disableEnforceFocus:l,disableAutoFocus:_,disableRestoreFocus:p,isEnabled:j,open:b,children:n.cloneElement(o,q)})]}))}):null})),fa=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xa={entering:{opacity:1},entered:{opacity:1}},va=n.forwardRef((function(e,t){const r=Ce(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:i,easing:c,in:u,onEnter:_,onEntered:l,onEntering:d,onExit:y,onExited:p,onExiting:g,style:m,timeout:h=a,TransitionComponent:f=jn}=e,x=(0,L.Z)(e,fa),v=n.useRef(null),w=(0,je.Z)(v,i.ref,t),b=e=>t=>{if(e){const r=v.current;void 0===t?e(r):e(r,t)}},S=b(d),k=b(((e,t)=>{Un(e);const n=$n({style:m,timeout:h,easing:c},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),_&&_(e,t)})),E=b(l),T=b(g),I=b((e=>{const t=$n({style:m,timeout:h,easing:c},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),y&&y(e)})),C=b(p);return(0,J.jsx)(f,(0,D.Z)({appear:s,in:u,nodeRef:v,onEnter:k,onEntered:E,onEntering:S,onExit:I,onExited:C,onExiting:T,addEndListener:e=>{o&&o(v.current,e)},timeout:h},x,{children:(e,t)=>n.cloneElement(i,(0,D.Z)({style:(0,D.Z)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},xa[e],m,i.props.style),ref:w},t))}))}));function wa(e){return(0,Y.Z)("MuiBackdrop",e)}(0,G.Z)("MuiBackdrop",["root","invisible"]);const ba=["children","component","components","componentsProps","className","invisible","open","slotProps","slots","transitionDuration","TransitionComponent"],Sa=(0,H.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>(0,D.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),ka=n.forwardRef((function(e,t){var r,n,a;const o=(0,q.Z)({props:e,name:"MuiBackdrop"}),{children:s,component:i="div",components:c={},componentsProps:u={},className:_,invisible:l=!1,open:d,slotProps:y={},slots:p={},transitionDuration:g,TransitionComponent:m=va}=o,h=(0,L.Z)(o,ba),f=(0,D.Z)({},o,{component:i,invisible:l}),x=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,W.Z)(n,wa,t)})(f),v=null!=(r=y.root)?r:u.root;return(0,J.jsx)(m,(0,D.Z)({in:d,timeout:g},h,{children:(0,J.jsx)(Sa,(0,D.Z)({"aria-hidden":!0},v,{as:null!=(n=null!=(a=p.root)?a:c.Root)?n:i,className:(0,B.Z)(x.root,_,null==v?void 0:v.className),ownerState:(0,D.Z)({},f,null==v?void 0:v.ownerState),classes:x,ref:t,children:s}))}))})),Ea=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],Ta=(0,H.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,D.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ia=(0,H.ZP)(ka,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ca=n.forwardRef((function(e,t){var r,a,o,s,i,c;const u=(0,q.Z)({name:"MuiModal",props:e}),{BackdropComponent:_=Ia,BackdropProps:l,closeAfterTransition:d=!1,children:y,component:p,components:g={},componentsProps:m={},disableAutoFocus:h=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:x=!1,disablePortal:v=!1,disableRestoreFocus:w=!1,disableScrollLock:b=!1,hideBackdrop:S=!1,keepMounted:k=!1,slotProps:E,slots:T,theme:I}=u,C=(0,L.Z)(u,Ea),[O,P]=n.useState(!0),z={closeAfterTransition:d,disableAutoFocus:h,disableEnforceFocus:f,disableEscapeKeyDown:x,disablePortal:v,disableRestoreFocus:w,disableScrollLock:b,hideBackdrop:S,keepMounted:k},A=(0,D.Z)({},u,z,{exited:O}),R=(e=>e.classes)(A),M=null!=(r=null!=(a=null==T?void 0:T.root)?a:g.Root)?r:Ta,N=null!=(o=null!=(s=null==T?void 0:T.backdrop)?s:g.Backdrop)?o:_,F=null!=(i=null==E?void 0:E.root)?i:m.root,B=null!=(c=null==E?void 0:E.backdrop)?c:m.backdrop;return(0,J.jsx)(ha,(0,D.Z)({slots:{root:M,backdrop:N},slotProps:{root:()=>(0,D.Z)({},da(F,A),!or(M)&&{as:p,theme:I}),backdrop:()=>(0,D.Z)({},l,da(B,A))},onTransitionEnter:()=>P(!1),onTransitionExited:()=>P(!0),ref:t},C,{classes:R},z,{children:y}))}));function Oa(e){return(0,Y.Z)("MuiPopover",e)}(0,G.Z)("MuiPopover",["root","paper"]);const Pa=["onEntering"],za=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Aa(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ra(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Ma(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Na(e){return"function"==typeof e?e():e}const Fa=(0,H.ZP)(Ca,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),La=(0,H.ZP)(ge,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Da=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiPopover"}),{action:a,anchorEl:o,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:c="anchorEl",children:u,className:_,container:l,elevation:d=8,marginThreshold:y=16,open:p,PaperProps:g={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:h=Gn,transitionDuration:f="auto",TransitionProps:{onEntering:x}={}}=r,v=(0,L.Z)(r.TransitionProps,Pa),w=(0,L.Z)(r,za),b=n.useRef(),S=(0,je.Z)(b,g.ref),k=(0,D.Z)({},r,{anchorOrigin:s,anchorReference:c,elevation:d,marginThreshold:y,PaperProps:g,transformOrigin:m,TransitionComponent:h,transitionDuration:f,TransitionProps:v}),E=(e=>{const{classes:t}=e;return(0,W.Z)({root:["root"],paper:["paper"]},Oa,t)})(k),T=n.useCallback((()=>{if("anchorPosition"===c)return i;const e=Na(o),t=(e&&1===e.nodeType?e:(0,fn.Z)(b.current).body).getBoundingClientRect();return{top:t.top+Aa(t,s.vertical),left:t.left+Ra(t,s.horizontal)}}),[o,s.horizontal,s.vertical,i,c]),I=n.useCallback((e=>({vertical:Aa(e,m.vertical),horizontal:Ra(e,m.horizontal)})),[m.horizontal,m.vertical]),C=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=I(t);if("none"===c)return{top:null,left:null,transformOrigin:Ma(r)};const n=T();let a=n.top-r.vertical,s=n.left-r.horizontal;const i=a+t.height,u=s+t.width,_=(0,Rn.Z)(Na(o)),l=_.innerHeight-y,d=_.innerWidth-y;if(al){const e=i-l;a-=e,r.vertical+=e}if(sd){const e=u-d;s-=e,r.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(s)}px`,transformOrigin:Ma(r)}}),[o,c,T,I,y]),[O,P]=n.useState(p),z=n.useCallback((()=>{const e=b.current;if(!e)return;const t=C(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[C]);n.useEffect((()=>{p&&z()})),n.useImperativeHandle(a,(()=>p?{updatePosition:()=>{z()}}:null),[p,z]),n.useEffect((()=>{if(!p)return;const e=(0,An.Z)((()=>{z()})),t=(0,Rn.Z)(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,p,z]);let A=f;"auto"!==f||h.muiSupportAuto||(A=void 0);const R=l||(o?(0,fn.Z)(Na(o)).body:void 0);return(0,J.jsx)(Fa,(0,D.Z)({BackdropProps:{invisible:!0},className:(0,B.Z)(E.root,_),container:R,open:p,ref:t,ownerState:k},w,{children:(0,J.jsx)(h,(0,D.Z)({appear:!0,in:p,onEntering:(e,t)=>{x&&x(e,t),z()},onExited:()=>{P(!1)},timeout:A},v,{children:(0,J.jsx)(La,(0,D.Z)({elevation:d},g,{ref:S,className:(0,B.Z)(E.paper,g.className)},O?void 0:{style:(0,D.Z)({},g.style,{opacity:0})},{ownerState:k,children:u}))}))}))})),Ba=Da;function Za(e){return(0,Y.Z)("MuiMenu",e)}(0,G.Z)("MuiMenu",["root","paper","list"]);const ja=["onEntering"],Ua=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],$a={vertical:"top",horizontal:"right"},Va={vertical:"top",horizontal:"left"},Wa=(0,H.ZP)(Ba,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ha=(0,H.ZP)(ge,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),qa=(0,H.ZP)(zn,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ka=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:o,disableAutoFocusItem:s=!1,MenuListProps:i={},onClose:c,open:u,PaperProps:_={},PopoverClasses:l,transitionDuration:d="auto",TransitionProps:{onEntering:y}={},variant:p="selectedMenu"}=r,g=(0,L.Z)(r.TransitionProps,ja),m=(0,L.Z)(r,Ua),h=Ce(),f="rtl"===h.direction,x=(0,D.Z)({},r,{autoFocus:a,disableAutoFocusItem:s,MenuListProps:i,onEntering:y,PaperProps:_,transitionDuration:d,TransitionProps:g,variant:p}),v=(e=>{const{classes:t}=e;return(0,W.Z)({root:["root"],paper:["paper"],list:["list"]},Za,t)})(x),w=a&&!s&&u,b=n.useRef(null);let S=-1;return n.Children.map(o,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===S)&&(S=t))})),(0,J.jsx)(Wa,(0,D.Z)({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:f?"right":"left"},transformOrigin:f?$a:Va,PaperProps:(0,D.Z)({component:Ha},_,{classes:(0,D.Z)({},_.classes,{root:v.paper})}),className:v.root,open:u,ref:t,transitionDuration:d,TransitionProps:(0,D.Z)({onEntering:(e,t)=>{b.current&&b.current.adjustStyleForScrollbar(e,h),y&&y(e,t)}},g),ownerState:x},m,{classes:l,children:(0,J.jsx)(qa,(0,D.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:b,autoFocus:a&&(-1===S||s),autoFocusItem:w,variant:p},i,{className:(0,B.Z)(v.list,i.className),children:o}))}))}));function Ga(e){return(0,Y.Z)("MuiNativeSelect",e)}const Ya=(0,G.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Qa=["className","disabled","IconComponent","inputRef","variant"],Ja=({ownerState:e,theme:t})=>(0,D.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,D.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Ya.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Xa=(0,H.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:H.FO,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],{[`&.${Ya.multiple}`]:t.multiple}]}})(Ja),eo=({ownerState:e,theme:t})=>(0,D.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Ya.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),to=(0,H.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${(0,K.Z)(r.variant)}`],r.open&&t.iconOpen]}})(eo),ro=n.forwardRef((function(e,t){const{className:r,disabled:a,IconComponent:o,inputRef:s,variant:i="standard"}=e,c=(0,L.Z)(e,Qa),u=(0,D.Z)({},e,{disabled:a,variant:i}),_=(e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o}=e,s={select:["select",r,n&&"disabled",a&&"multiple"],icon:["icon",`icon${(0,K.Z)(r)}`,o&&"iconOpen",n&&"disabled"]};return(0,W.Z)(s,Ga,t)})(u);return(0,J.jsxs)(n.Fragment,{children:[(0,J.jsx)(Xa,(0,D.Z)({ownerState:u,className:(0,B.Z)(_.select,r),disabled:a,ref:s||t},c)),e.multiple?null:(0,J.jsx)(to,{as:o,ownerState:u,className:_.icon})]})}));var no=r(2893);function ao(e){return(0,Y.Z)("MuiSelect",e)}const oo=(0,G.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var so;const io=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],co=(0,H.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${oo.select}`]:t.select},{[`&.${oo.select}`]:t[r.variant]},{[`&.${oo.multiple}`]:t.multiple}]}})(Ja,{[`&.${oo.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),uo=(0,H.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${(0,K.Z)(r.variant)}`],r.open&&t.iconOpen]}})(eo),_o=(0,H.ZP)("input",{shouldForwardProp:e=>(0,H.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function lo(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yo(e){return null==e||"string"==typeof e&&!e.trim()}const po=n.forwardRef((function(e,t){const{"aria-describedby":r,"aria-label":a,autoFocus:o,autoWidth:s,children:i,className:c,defaultOpen:u,defaultValue:_,disabled:l,displayEmpty:d,IconComponent:y,inputRef:p,labelId:g,MenuProps:m={},multiple:h,name:f,onBlur:x,onChange:v,onClose:w,onFocus:b,onOpen:S,open:k,readOnly:E,renderValue:T,SelectDisplayProps:I={},tabIndex:C,value:O,variant:P="standard"}=e,z=(0,L.Z)(e,io),[A,R]=(0,no.Z)({controlled:O,default:_,name:"Select"}),[M,N]=(0,no.Z)({controlled:k,default:u,name:"Select"}),F=n.useRef(null),Z=n.useRef(null),[j,U]=n.useState(null),{current:$}=n.useRef(null!=k),[V,H]=n.useState(),q=(0,je.Z)(t,p),G=n.useCallback((e=>{Z.current=e,e&&U(e)}),[]),Y=null==j?void 0:j.parentNode;n.useImperativeHandle(q,(()=>({focus:()=>{Z.current.focus()},node:F.current,value:A})),[A]),n.useEffect((()=>{u&&M&&j&&!$&&(H(s?null:Y.clientWidth),Z.current.focus())}),[j,s]),n.useEffect((()=>{o&&Z.current.focus()}),[o]),n.useEffect((()=>{if(!g)return;const e=(0,fn.Z)(Z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&Z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Q=(e,t)=>{e?S&&S(t):w&&w(t),$||(H(s?null:Y.clientWidth),N(e))},X=n.Children.toArray(i),ee=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(h){r=Array.isArray(A)?A.slice():[];const t=A.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),A!==r&&(R(r),v)){const n=t.nativeEvent||t,a=new n.constructor(n.type,n);Object.defineProperty(a,"target",{writable:!0,value:{value:r,name:f}}),v(a,e)}h||Q(!1,t)}},te=null!==j&&M;let re,ne;delete z["aria-invalid"];const ae=[];let oe=!1,se=!1;(yr({value:A})||d)&&(T?re=T(A):oe=!0);const ie=X.map(((e,t,r)=>{var a,o,s,i;if(!n.isValidElement(e))return null;let c;if(h){if(!Array.isArray(A))throw new Error((0,Gt.Z)(2));c=A.some((t=>lo(t,e.props.value))),c&&oe&&ae.push(e.props.children)}else c=lo(A,e.props.value),c&&oe&&(ne=e.props.children);return c&&(se=!0),void 0===e.props.value?n.cloneElement(e,{"aria-readonly":!0,role:"option"}):n.cloneElement(e,{"aria-selected":c?"true":"false",onClick:ee(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===(null==(a=r[0])||null==(o=a.props)?void 0:o.value)||!0===(null==(s=r[0])||null==(i=s.props)?void 0:i.disabled)?(()=>{if(A)return c;const t=r.find((e=>{var t;return void 0!==(null==e||null==(t=e.props)?void 0:t.value)&&!0!==e.props.disabled}));return e===t||c})():c,value:void 0,"data-value":e.props.value})}));oe&&(re=h?0===ae.length?null:ae.reduce(((e,t,r)=>(e.push(t),r{const{classes:t,variant:r,disabled:n,multiple:a,open:o}=e,s={select:["select",r,n&&"disabled",a&&"multiple"],icon:["icon",`icon${(0,K.Z)(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,W.Z)(s,ao,t)})(le);return(0,J.jsxs)(n.Fragment,{children:[(0,J.jsx)(co,(0,D.Z)({ref:G,tabIndex:ce,role:"button","aria-disabled":l?"true":void 0,"aria-expanded":te?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[g,_e].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{E||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Q(!0,e))},onMouseDown:l||E?null:e=>{0===e.button&&(e.preventDefault(),Z.current.focus(),Q(!0,e))},onBlur:e=>{!te&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:A,name:f}}),x(e))},onFocus:b},I,{ownerState:le,className:(0,B.Z)(I.className,de.select,c),id:_e,children:yo(re)?so||(so=(0,J.jsx)("span",{className:"notranslate",children:"​"})):re})),(0,J.jsx)(_o,(0,D.Z)({value:Array.isArray(A)?A.join(","):A,name:f,ref:F,"aria-hidden":!0,onChange:e=>{const t=X.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const r=X[t];R(r.props.value),v&&v(e,r)},tabIndex:-1,disabled:l,className:de.nativeInput,autoFocus:o,ownerState:le},z)),(0,J.jsx)(uo,{as:y,className:de.icon,ownerState:le}),(0,J.jsx)(Ka,(0,D.Z)({id:`menu-${f||""}`,anchorEl:Y,open:te,onClose:e=>{Q(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},m,{MenuListProps:(0,D.Z)({"aria-labelledby":g,role:"listbox",disableListWrap:!0},m.MenuListProps),PaperProps:(0,D.Z)({},m.PaperProps,{style:(0,D.Z)({minWidth:ue},null!=m.PaperProps?m.PaperProps.style:null)}),children:ie}))]})})),go=po;var mo=r(5949);const ho=(0,mo.Z)((0,J.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var fo,xo;const vo=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],wo={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,H.FO)(e)&&"variant"!==e,slot:"Root"},bo=(0,H.ZP)(Pr,wo)(""),So=(0,H.ZP)(Gr,wo)(""),ko=(0,H.ZP)(Lr,wo)(""),Eo=n.forwardRef((function(e,t){const r=(0,q.Z)({name:"MuiSelect",props:e}),{autoWidth:a=!1,children:o,classes:s={},className:i,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:_=ho,id:l,input:d,inputProps:y,label:p,labelId:g,MenuProps:m,multiple:h=!1,native:f=!1,onClose:x,onOpen:v,open:w,renderValue:b,SelectDisplayProps:S,variant:k="outlined"}=r,E=(0,L.Z)(r,vo),T=f?ro:go,I=sr({props:r,muiFormControl:cr(),states:["variant"]}).variant||k,C=d||{standard:fo||(fo=(0,J.jsx)(bo,{})),outlined:(0,J.jsx)(So,{label:p}),filled:xo||(xo=(0,J.jsx)(ko,{}))}[I],O=(e=>{const{classes:t}=e;return t})((0,D.Z)({},r,{variant:I,classes:s})),P=(0,je.Z)(t,C.ref);return(0,J.jsx)(n.Fragment,{children:n.cloneElement(C,(0,D.Z)({inputComponent:T,inputProps:(0,D.Z)({children:o,IconComponent:_,variant:I,type:void 0,multiple:h},f?{id:l}:{autoWidth:a,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:m,onClose:x,onOpen:v,open:w,renderValue:b,SelectDisplayProps:(0,D.Z)({id:l},S)},y,{classes:y?(0,Z.Z)(O,y.classes):O},d?d.props.inputProps:{})},h&&f&&"outlined"===I?{notched:!0}:{},{ref:P,className:(0,B.Z)(C.props.className,i)},!d&&{variant:I},E))})}));Eo.muiName="Select";const To=Eo;function Io(e){return(0,Y.Z)("MuiTextField",e)}(0,G.Z)("MuiTextField",["root"]);const Co=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Oo={standard:Pr,filled:Lr,outlined:Gr},Po=(0,H.ZP)(ln,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zo=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:a=!1,children:o,className:s,color:i="primary",defaultValue:c,disabled:u=!1,error:_=!1,FormHelperTextProps:l,fullWidth:d=!1,helperText:y,id:p,InputLabelProps:g,inputProps:m,InputProps:h,inputRef:f,label:x,maxRows:v,minRows:w,multiline:b=!1,name:S,onBlur:k,onChange:E,onFocus:T,placeholder:I,required:C=!1,rows:O,select:P=!1,SelectProps:z,type:A,value:R,variant:M="outlined"}=r,N=(0,L.Z)(r,Co),F=(0,D.Z)({},r,{autoFocus:a,color:i,disabled:u,error:_,fullWidth:d,multiline:b,required:C,select:P,variant:M}),Z=(e=>{const{classes:t}=e;return(0,W.Z)({root:["root"]},Io,t)})(F),j={};"outlined"===M&&(g&&void 0!==g.shrink&&(j.notched=g.shrink),j.label=x),P&&(z&&z.native||(j.id=void 0),j["aria-describedby"]=void 0);const U=(0,Kt.Z)(p),$=y&&U?`${U}-helper-text`:void 0,V=x&&U?`${U}-label`:void 0,H=Oo[M],K=(0,J.jsx)(H,(0,D.Z)({"aria-describedby":$,autoComplete:n,autoFocus:a,defaultValue:c,fullWidth:d,multiline:b,name:S,rows:O,maxRows:v,minRows:w,type:A,value:R,id:U,inputRef:f,onBlur:k,onChange:E,onFocus:T,placeholder:I,inputProps:m},j,h));return(0,J.jsxs)(Po,(0,D.Z)({className:(0,B.Z)(Z.root,s),disabled:u,error:_,fullWidth:d,ref:t,required:C,color:i,variant:M,ownerState:F},N,{children:[null!=x&&""!==x&&(0,J.jsx)(on,(0,D.Z)({htmlFor:U,id:V},g,{children:x})),P?(0,J.jsx)(To,(0,D.Z)({"aria-describedby":$,id:U,labelId:V,value:R,input:K},z,{children:o})):K,y&&(0,J.jsx)(hn,(0,D.Z)({id:$},l,{children:y}))]}))})),Ao=function(e){var t=e.endTrial,r=(e.type,n.useState("")),a=r[0],o=r[1];return n.createElement(ge,{sx:{p:2,margin:"auto",maxWidth:550,flexGrow:1}},n.createElement(Be,{sx:{flexGrow:1},direction:"column",container:!0,spacing:4},n.createElement(Be,{item:!0,style:{textAlign:"center"}},n.createElement(ne,{variant:"h5",component:"div"},"Please think about a strategy for the network task that maximizes points. What did you observe as successful?")),n.createElement(Be,{item:!0,style:{margin:8}},n.createElement(zo,{multiline:!0,fullWidth:!0,margin:"normal",rows:6,helperText:"Please enter between 20 and 200 characters",value:a,onChange:function(e){e.target.value.length<=200&&o(e.target.value)}})),n.createElement(Be,{item:!0,style:{textAlign:"center"}},a.length<20?n.createElement(Mt,{variant:"contained",color:"primary",disabled:!0},"Continue"):n.createElement(Mt,{onClick:function(){t({strategy:a})},variant:"contained",color:"primary"},"Continue"))))};function Ro(e){return(0,Y.Z)("MuiFormGroup",e)}(0,G.Z)("MuiFormGroup",["root","row","error"]);const Mo=["className","row"],No=(0,H.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>(0,D.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),Fo=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiFormGroup"}),{className:n,row:a=!1}=r,o=(0,L.Z)(r,Mo),s=sr({props:r,muiFormControl:cr(),states:["error"]}),i=(0,D.Z)({},r,{row:a,error:s.error}),c=(e=>{const{classes:t,row:r,error:n}=e,a={root:["root",r&&"row",n&&"error"]};return(0,W.Z)(a,Ro,t)})(i);return(0,J.jsx)(No,(0,D.Z)({className:(0,B.Z)(c.root,n),ownerState:i,ref:t},o))})),Lo=n.createContext(void 0);var Do=r(7909);const Bo=["actions","children","defaultValue","name","onChange","value"],Zo=n.forwardRef((function(e,t){const{actions:r,children:a,defaultValue:o,name:s,onChange:i,value:c}=e,u=(0,L.Z)(e,Bo),_=n.useRef(null),[l,d]=(0,no.Z)({controlled:c,default:o,name:"RadioGroup"});n.useImperativeHandle(r,(()=>({focus:()=>{let e=_.current.querySelector("input:not(:disabled):checked");e||(e=_.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const y=(0,je.Z)(t,_),p=(0,Do.Z)(s),g=n.useMemo((()=>({name:p,onChange(e){d(e.target.value),i&&i(e,e.target.value)},value:l})),[p,i,d,l]);return(0,J.jsx)(Lo.Provider,{value:g,children:(0,J.jsx)(Fo,(0,D.Z)({role:"radiogroup",ref:y},u,{children:a}))})}));function jo(e){return(0,Y.Z)("MuiFormControlLabel",e)}const Uo=(0,G.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),$o=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],Vo=(0,H.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Uo.label}`]:t.label},t.root,t[`labelPlacement${(0,K.Z)(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,D.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Uo.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Uo.label}`]:{[`&.${Uo.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Wo=n.forwardRef((function(e,t){var r;const a=(0,q.Z)({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:i,disabled:c,disableTypography:u,label:_,labelPlacement:l="end",slotProps:d={}}=a,y=(0,L.Z)(a,$o),p=cr();let g=c;void 0===g&&void 0!==i.props.disabled&&(g=i.props.disabled),void 0===g&&p&&(g=p.disabled);const m={disabled:g};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===i.props[e]&&void 0!==a[e]&&(m[e]=a[e])}));const h=sr({props:a,muiFormControl:p,states:["error"]}),f=(0,D.Z)({},a,{disabled:g,labelPlacement:l,error:h.error}),x=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:a}=e,o={root:["root",r&&"disabled",`labelPlacement${(0,K.Z)(n)}`,a&&"error"],label:["label",r&&"disabled"]};return(0,W.Z)(o,jo,t)})(f),v=null!=(r=d.typography)?r:s.typography;let w=_;return null==w||w.type===ne||u||(w=(0,J.jsx)(ne,(0,D.Z)({component:"span"},v,{className:(0,B.Z)(x.label,null==v?void 0:v.className),children:w}))),(0,J.jsxs)(Vo,(0,D.Z)({className:(0,B.Z)(x.root,o),ownerState:f,ref:t},y,{children:[n.cloneElement(i,m),w]}))}));function Ho(e){return(0,Y.Z)("PrivateSwitchBase",e)}(0,G.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qo=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ko=(0,H.ZP)(Et)((({ownerState:e})=>(0,D.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Go=(0,H.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Yo=n.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:a,className:o,defaultChecked:s,disabled:i,disableFocusRipple:c=!1,edge:u=!1,icon:_,id:l,inputProps:d,inputRef:y,name:p,onBlur:g,onChange:m,onFocus:h,readOnly:f,required:x=!1,tabIndex:v,type:w,value:b}=e,S=(0,L.Z)(e,qo),[k,E]=(0,no.Z)({controlled:n,default:Boolean(s),name:"SwitchBase",state:"checked"}),T=cr();let I=i;T&&void 0===I&&(I=T.disabled);const C="checkbox"===w||"radio"===w,O=(0,D.Z)({},e,{checked:k,disabled:I,disableFocusRipple:c,edge:u}),P=(e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${(0,K.Z)(a)}`],input:["input"]};return(0,W.Z)(o,Ho,t)})(O);return(0,J.jsxs)(Ko,(0,D.Z)({component:"span",className:(0,B.Z)(P.root,o),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{h&&h(e),T&&T.onFocus&&T.onFocus(e)},onBlur:e=>{g&&g(e),T&&T.onBlur&&T.onBlur(e)},ownerState:O,ref:t},S,{children:[(0,J.jsx)(Go,(0,D.Z)({autoFocus:r,checked:n,defaultChecked:s,className:P.input,disabled:I,id:C&&l,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),m&&m(e,t)},readOnly:f,ref:y,required:x,ownerState:O,tabIndex:v,type:w},"checkbox"===w&&void 0===b?{}:{value:b},d)),k?a:_]}))})),Qo=(0,mo.Z)((0,J.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Jo=(0,mo.Z)((0,J.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Xo=(0,H.ZP)("span")({position:"relative",display:"flex"}),es=(0,H.ZP)(Qo)({transform:"scale(1)"}),ts=(0,H.ZP)(Jo)((({theme:e,ownerState:t})=>(0,D.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}))),rs=function(e){const{checked:t=!1,classes:r={},fontSize:n}=e,a=(0,D.Z)({},e,{checked:t});return(0,J.jsxs)(Xo,{className:r.root,ownerState:a,children:[(0,J.jsx)(es,{fontSize:n,className:r.background,ownerState:a}),(0,J.jsx)(ts,{fontSize:n,className:r.dot,ownerState:a})]})};var ns=r(7450);function as(e){return(0,Y.Z)("MuiRadio",e)}const os=(0,G.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),ss=["checked","checkedIcon","color","icon","name","onChange","size","className"],is=(0,H.ZP)(Yo,{shouldForwardProp:e=>(0,H.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${(0,K.Z)(r.color)}`]]}})((({theme:e,ownerState:t})=>(0,D.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,_e.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${os.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${os.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),cs=(0,J.jsx)(rs,{checked:!0}),us=(0,J.jsx)(rs,{}),_s=n.forwardRef((function(e,t){var r,a;const o=(0,q.Z)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:i=cs,color:c="primary",icon:u=us,name:_,onChange:l,size:d="medium",className:y}=o,p=(0,L.Z)(o,ss),g=(0,D.Z)({},o,{color:c,size:d}),m=(e=>{const{classes:t,color:r}=e,n={root:["root",`color${(0,K.Z)(r)}`]};return(0,D.Z)({},t,(0,W.Z)(n,as,t))})(g),h=n.useContext(Lo);let f=s;const x=(0,ns.Z)(l,h&&h.onChange);let v=_;var w,b;return h&&(void 0===f&&(w=h.value,f="object"==typeof(b=o.value)&&null!==b?w===b:String(w)===String(b)),void 0===v&&(v=h.name)),(0,J.jsx)(is,(0,D.Z)({type:"radio",icon:n.cloneElement(u,{fontSize:null!=(r=us.props.fontSize)?r:d}),checkedIcon:n.cloneElement(i,{fontSize:null!=(a=cs.props.fontSize)?a:d}),ownerState:g,classes:m,name:v,checked:f,onChange:x,ref:t,className:(0,B.Z)(m.root,y)},p))}));var ls=function(){return ls=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,D.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,_e.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,D.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,D.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,D.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Es=(0,H.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,D.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Ts=n.forwardRef((function(e,t){const r=(0,q.Z)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:a,className:o,component:s=(a?"div":"hr"),flexItem:i=!1,light:c=!1,orientation:u="horizontal",role:_=("hr"!==s?"separator":void 0),textAlign:l="center",variant:d="fullWidth"}=r,y=(0,L.Z)(r,Ss),p=(0,D.Z)({},r,{absolute:n,component:s,flexItem:i,light:c,orientation:u,role:_,textAlign:l,variant:d}),g=(e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:s,textAlign:i,variant:c}=e,u={root:["root",t&&"absolute",c,o&&"light","vertical"===s&&"vertical",a&&"flexItem",r&&"withChildren",r&&"vertical"===s&&"withChildrenVertical","right"===i&&"vertical"!==s&&"textAlignRight","left"===i&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,W.Z)(u,bs,n)})(p);return(0,J.jsx)(ks,(0,D.Z)({as:s,className:(0,B.Z)(g.root,o),role:_,ref:t,ownerState:p},y,{children:a?(0,J.jsx)(Es,{className:g.wrapper,ownerState:p,children:a}):null}))}));function Is(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Cs(e){return e instanceof Is(e).Element||e instanceof Element}function Os(e){return e instanceof Is(e).HTMLElement||e instanceof HTMLElement}function Ps(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Is(e).ShadowRoot||e instanceof ShadowRoot)}var zs=Math.max,As=Math.min,Rs=Math.round;function Ms(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ns(){return!/^((?!chrome|android).)*safari/i.test(Ms())}function Fs(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Os(e)&&(a=e.offsetWidth>0&&Rs(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Rs(n.height)/e.offsetHeight||1);var s=(Cs(e)?Is(e):window).visualViewport,i=!Ns()&&r,c=(n.left+(i&&s?s.offsetLeft:0))/a,u=(n.top+(i&&s?s.offsetTop:0))/o,_=n.width/a,l=n.height/o;return{width:_,height:l,top:u,right:c+_,bottom:u+l,left:c,x:c,y:u}}function Ls(e){var t=Is(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ds(e){return e?(e.nodeName||"").toLowerCase():null}function Bs(e){return((Cs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zs(e){return Fs(Bs(e)).left+Ls(e).scrollLeft}function js(e){return Is(e).getComputedStyle(e)}function Us(e){var t=js(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function $s(e,t,r){void 0===r&&(r=!1);var n,a,o=Os(t),s=Os(t)&&function(e){var t=e.getBoundingClientRect(),r=Rs(t.width)/e.offsetWidth||1,n=Rs(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),i=Bs(t),c=Fs(e,s,r),u={scrollLeft:0,scrollTop:0},_={x:0,y:0};return(o||!o&&!r)&&(("body"!==Ds(t)||Us(i))&&(u=(n=t)!==Is(n)&&Os(n)?{scrollLeft:(a=n).scrollLeft,scrollTop:a.scrollTop}:Ls(n)),Os(t)?((_=Fs(t,!0)).x+=t.clientLeft,_.y+=t.clientTop):i&&(_.x=Zs(i))),{x:c.left+u.scrollLeft-_.x,y:c.top+u.scrollTop-_.y,width:c.width,height:c.height}}function Vs(e){var t=Fs(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Ws(e){return"html"===Ds(e)?e:e.assignedSlot||e.parentNode||(Ps(e)?e.host:null)||Bs(e)}function Hs(e){return["html","body","#document"].indexOf(Ds(e))>=0?e.ownerDocument.body:Os(e)&&Us(e)?e:Hs(Ws(e))}function qs(e,t){var r;void 0===t&&(t=[]);var n=Hs(e),a=n===(null==(r=e.ownerDocument)?void 0:r.body),o=Is(n),s=a?[o].concat(o.visualViewport||[],Us(n)?n:[]):n,i=t.concat(s);return a?i:i.concat(qs(Ws(s)))}function Ks(e){return["table","td","th"].indexOf(Ds(e))>=0}function Gs(e){return Os(e)&&"fixed"!==js(e).position?e.offsetParent:null}function Ys(e){for(var t=Is(e),r=Gs(e);r&&Ks(r)&&"static"===js(r).position;)r=Gs(r);return r&&("html"===Ds(r)||"body"===Ds(r)&&"static"===js(r).position)?t:r||function(e){var t=/firefox/i.test(Ms());if(/Trident/i.test(Ms())&&Os(e)&&"fixed"===js(e).position)return null;var r=Ws(e);for(Ps(r)&&(r=r.host);Os(r)&&["html","body"].indexOf(Ds(r))<0;){var n=js(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var Qs="top",Js="bottom",Xs="right",ei="left",ti="auto",ri=[Qs,Js,Xs,ei],ni="start",ai="end",oi="clippingParents",si="viewport",ii="popper",ci="reference",ui=ri.reduce((function(e,t){return e.concat([t+"-"+ni,t+"-"+ai])}),[]),_i=[].concat(ri,[ti]).reduce((function(e,t){return e.concat([t,t+"-"+ni,t+"-"+ai])}),[]),li=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function di(e){var t=new Map,r=new Set,n=[];function a(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&a(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||a(e)})),n}var yi={placement:"bottom",modifiers:[],strategy:"absolute"};function pi(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function wi(e){var t,r=e.reference,n=e.element,a=e.placement,o=a?fi(a):null,s=a?xi(a):null,i=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(o){case Qs:t={x:i,y:r.y-n.height};break;case Js:t={x:i,y:r.y+r.height};break;case Xs:t={x:r.x+r.width,y:c};break;case ei:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var u=o?vi(o):null;if(null!=u){var _="y"===u?"height":"width";switch(s){case ni:t[u]=t[u]-(r[_]/2-n[_]/2);break;case ai:t[u]=t[u]+(r[_]/2-n[_]/2)}}return t}var bi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Si(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,i=e.position,c=e.gpuAcceleration,u=e.adaptive,_=e.roundOffsets,l=e.isFixed,d=s.x,y=void 0===d?0:d,p=s.y,g=void 0===p?0:p,m="function"==typeof _?_({x:y,y:g}):{x:y,y:g};y=m.x,g=m.y;var h=s.hasOwnProperty("x"),f=s.hasOwnProperty("y"),x=ei,v=Qs,w=window;if(u){var b=Ys(r),S="clientHeight",k="clientWidth";b===Is(r)&&"static"!==js(b=Bs(r)).position&&"absolute"===i&&(S="scrollHeight",k="scrollWidth"),(a===Qs||(a===ei||a===Xs)&&o===ai)&&(v=Js,g-=(l&&b===w&&w.visualViewport?w.visualViewport.height:b[S])-n.height,g*=c?1:-1),a!==ei&&(a!==Qs&&a!==Js||o!==ai)||(x=Xs,y-=(l&&b===w&&w.visualViewport?w.visualViewport.width:b[k])-n.width,y*=c?1:-1)}var E,T=Object.assign({position:i},u&&bi),I=!0===_?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:Rs(t*n)/n||0,y:Rs(r*n)/n||0}}({x:y,y:g}):{x:y,y:g};return y=I.x,g=I.y,c?Object.assign({},T,((E={})[v]=f?"0":"",E[x]=h?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+y+"px, "+g+"px)":"translate3d("+y+"px, "+g+"px, 0)",E)):Object.assign({},T,((t={})[v]=f?g+"px":"",t[x]=h?y+"px":"",t.transform="",t))}var ki={left:"right",right:"left",bottom:"top",top:"bottom"};function Ei(e){return e.replace(/left|right|bottom|top/g,(function(e){return ki[e]}))}var Ti={start:"end",end:"start"};function Ii(e){return e.replace(/start|end/g,(function(e){return Ti[e]}))}function Ci(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ps(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Oi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pi(e,t,r){return t===si?Oi(function(e,t){var r=Is(e),n=Bs(e),a=r.visualViewport,o=n.clientWidth,s=n.clientHeight,i=0,c=0;if(a){o=a.width,s=a.height;var u=Ns();(u||!u&&"fixed"===t)&&(i=a.offsetLeft,c=a.offsetTop)}return{width:o,height:s,x:i+Zs(e),y:c}}(e,r)):Cs(t)?function(e,t){var r=Fs(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Oi(function(e){var t,r=Bs(e),n=Ls(e),a=null==(t=e.ownerDocument)?void 0:t.body,o=zs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=zs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-n.scrollLeft+Zs(e),c=-n.scrollTop;return"rtl"===js(a||r).direction&&(i+=zs(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:i,y:c}}(Bs(e)))}function zi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ai(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Ri(e,t){void 0===t&&(t={});var r=t,n=r.placement,a=void 0===n?e.placement:n,o=r.strategy,s=void 0===o?e.strategy:o,i=r.boundary,c=void 0===i?oi:i,u=r.rootBoundary,_=void 0===u?si:u,l=r.elementContext,d=void 0===l?ii:l,y=r.altBoundary,p=void 0!==y&&y,g=r.padding,m=void 0===g?0:g,h=zi("number"!=typeof m?m:Ai(m,ri)),f=d===ii?ci:ii,x=e.rects.popper,v=e.elements[p?f:d],w=function(e,t,r,n){var a="clippingParents"===t?function(e){var t=qs(Ws(e)),r=["absolute","fixed"].indexOf(js(e).position)>=0&&Os(e)?Ys(e):e;return Cs(r)?t.filter((function(e){return Cs(e)&&Ci(e,r)&&"body"!==Ds(e)})):[]}(e):[].concat(t),o=[].concat(a,[r]),s=o[0],i=o.reduce((function(t,r){var a=Pi(e,r,n);return t.top=zs(a.top,t.top),t.right=As(a.right,t.right),t.bottom=As(a.bottom,t.bottom),t.left=zs(a.left,t.left),t}),Pi(e,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(Cs(v)?v:v.contextElement||Bs(e.elements.popper),c,_,s),b=Fs(e.elements.reference),S=wi({reference:b,element:x,strategy:"absolute",placement:a}),k=Oi(Object.assign({},x,S)),E=d===ii?k:b,T={top:w.top-E.top+h.top,bottom:E.bottom-w.bottom+h.bottom,left:w.left-E.left+h.left,right:E.right-w.right+h.right},I=e.modifiersData.offset;if(d===ii&&I){var C=I[a];Object.keys(T).forEach((function(e){var t=[Xs,Js].indexOf(e)>=0?1:-1,r=[Qs,Js].indexOf(e)>=0?"y":"x";T[e]+=C[r]*t}))}return T}const Mi={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=void 0===a||a,s=r.altAxis,i=void 0===s||s,c=r.fallbackPlacements,u=r.padding,_=r.boundary,l=r.rootBoundary,d=r.altBoundary,y=r.flipVariations,p=void 0===y||y,g=r.allowedAutoPlacements,m=t.options.placement,h=fi(m),f=c||(h!==m&&p?function(e){if(fi(e)===ti)return[];var t=Ei(e);return[Ii(e),t,Ii(t)]}(m):[Ei(m)]),x=[m].concat(f).reduce((function(e,r){return e.concat(fi(r)===ti?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,i=r.flipVariations,c=r.allowedAutoPlacements,u=void 0===c?_i:c,_=xi(n),l=_?i?ui:ui.filter((function(e){return xi(e)===_})):ri,d=l.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=l);var y=d.reduce((function(t,r){return t[r]=Ri(e,{placement:r,boundary:a,rootBoundary:o,padding:s})[fi(r)],t}),{});return Object.keys(y).sort((function(e,t){return y[e]-y[t]}))}(t,{placement:r,boundary:_,rootBoundary:l,padding:u,flipVariations:p,allowedAutoPlacements:g}):r)}),[]),v=t.rects.reference,w=t.rects.popper,b=new Map,S=!0,k=x[0],E=0;E=0,P=O?"width":"height",z=Ri(t,{placement:T,boundary:_,rootBoundary:l,altBoundary:d,padding:u}),A=O?C?Xs:ei:C?Js:Qs;v[P]>w[P]&&(A=Ei(A));var R=Ei(A),M=[];if(o&&M.push(z[I]<=0),i&&M.push(z[A]<=0,z[R]<=0),M.every((function(e){return e}))){k=T,S=!1;break}b.set(T,M)}if(S)for(var N=function(e){var t=x.find((function(t){var r=b.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},F=p?3:1;F>0&&"break"!==N(F);F--);t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ni(e,t,r){return zs(e,As(t,r))}function Fi(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Li(e){return[Qs,Xs,Js,ei].some((function(t){return e[t]>=0}))}var Di=gi({defaultModifiers:[hi,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=wi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=void 0===n||n,o=r.adaptive,s=void 0===o||o,i=r.roundOffsets,c=void 0===i||i,u={placement:fi(t.placement),variation:xi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Si(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Si(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},a=t.elements[e];Os(a)&&Ds(a)&&(Object.assign(a.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Os(n)&&Ds(n)&&(Object.assign(n.style,o),Object.keys(a).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=void 0===a?[0,0]:a,s=_i.reduce((function(e,r){return e[r]=function(e,t,r){var n=fi(e),a=[ei,Qs].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=o[0],i=o[1];return s=s||0,i=(i||0)*a,[ei,Xs].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}(r,t.rects,o),e}),{}),i=s[t.placement],c=i.x,u=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}},Mi,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=void 0===a||a,s=r.altAxis,i=void 0!==s&&s,c=r.boundary,u=r.rootBoundary,_=r.altBoundary,l=r.padding,d=r.tether,y=void 0===d||d,p=r.tetherOffset,g=void 0===p?0:p,m=Ri(t,{boundary:c,rootBoundary:u,padding:l,altBoundary:_}),h=fi(t.placement),f=xi(t.placement),x=!f,v=vi(h),w="x"===v?"y":"x",b=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,E="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,T="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(b){if(o){var O,P="y"===v?Qs:ei,z="y"===v?Js:Xs,A="y"===v?"height":"width",R=b[v],M=R+m[P],N=R-m[z],F=y?-k[A]/2:0,L=f===ni?S[A]:k[A],D=f===ni?-k[A]:-S[A],B=t.elements.arrow,Z=y&&B?Vs(B):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=j[P],$=j[z],V=Ni(0,S[A],Z[A]),W=x?S[A]/2-F-V-U-T.mainAxis:L-V-U-T.mainAxis,H=x?-S[A]/2+F+V+$+T.mainAxis:D+V+$+T.mainAxis,q=t.elements.arrow&&Ys(t.elements.arrow),K=q?"y"===v?q.clientTop||0:q.clientLeft||0:0,G=null!=(O=null==I?void 0:I[v])?O:0,Y=R+H-G,Q=Ni(y?As(M,R+W-G-K):M,R,y?zs(N,Y):N);b[v]=Q,C[v]=Q-R}if(i){var J,X="x"===v?Qs:ei,ee="x"===v?Js:Xs,te=b[w],re="y"===w?"height":"width",ne=te+m[X],ae=te-m[ee],oe=-1!==[Qs,ei].indexOf(h),se=null!=(J=null==I?void 0:I[w])?J:0,ie=oe?ne:te-S[re]-k[re]-se+T.altAxis,ce=oe?te+S[re]+k[re]-se-T.altAxis:ae,ue=y&&oe?function(e,t,r){var n=Ni(e,t,r);return n>r?r:n}(ie,te,ce):Ni(y?ie:ne,te,y?ce:ae);b[w]=ue,C[w]=ue-te}t.modifiersData[n]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,i=fi(r.placement),c=vi(i),u=[ei,Xs].indexOf(i)>=0?"height":"width";if(o&&s){var _=function(e,t){return zi("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ai(e,ri))}(a.padding,r),l=Vs(o),d="y"===c?Qs:ei,y="y"===c?Js:Xs,p=r.rects.reference[u]+r.rects.reference[c]-s[c]-r.rects.popper[u],g=s[c]-r.rects.reference[c],m=Ys(o),h=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,f=p/2-g/2,x=_[d],v=h-l[u]-_[y],w=h/2-l[u]/2+f,b=Ni(x,w,v),S=c;r.modifiersData[n]=((t={})[S]=b,t.centerOffset=b-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Ci(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Ri(t,{elementContext:"reference"}),i=Ri(t,{altBoundary:!0}),c=Fi(s,n),u=Fi(i,a,o),_=Li(c),l=Li(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:_,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":_,"data-popper-escaped":l})}}]});function Bi(e){return(0,Y.Z)("MuiPopperUnstyled",e)}(0,G.Z)("MuiPopperUnstyled",["root"]);const Zi=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],ji=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ui(e){return"function"==typeof e?e():e}const $i={},Vi=n.forwardRef((function(e,t){var r;const{anchorEl:a,children:o,component:s,direction:i,disablePortal:c,modifiers:u,open:_,ownerState:l,placement:d,popperOptions:y,popperRef:p,slotProps:g={},slots:m={},TransitionProps:h}=e,f=(0,L.Z)(e,Zi),x=n.useRef(null),v=(0,Yt.Z)(x,t),w=n.useRef(null),b=(0,Yt.Z)(w,p),S=n.useRef(b);(0,Xt.Z)((()=>{S.current=b}),[b]),n.useImperativeHandle(p,(()=>w.current),[]);const k=function(e,t){if("ltr"===t)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}}(d,i),[E,T]=n.useState(k),[I,C]=n.useState(Ui(a));n.useEffect((()=>{w.current&&w.current.forceUpdate()})),n.useEffect((()=>{a&&C(Ui(a))}),[a]),(0,Xt.Z)((()=>{if(!I||!_)return;let e=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{T(e.placement)}}];null!=u&&(e=e.concat(u)),y&&null!=y.modifiers&&(e=e.concat(y.modifiers));const t=Di(I,x.current,(0,D.Z)({placement:k},y,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[I,c,u,_,y,k]);const O={placement:E};null!==h&&(O.TransitionProps=h);const P=(0,W.Z)({root:["root"]},Bi,{}),z=null!=(r=null!=s?s:m.root)?r:"div",A=pa({elementType:z,externalSlotProps:g.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:v},ownerState:(0,D.Z)({},e,l),className:P.root});return(0,J.jsx)(z,(0,D.Z)({},A,{children:"function"==typeof o?o(O):o}))})),Wi=n.forwardRef((function(e,t){const{anchorEl:r,children:a,container:o,direction:s="ltr",disablePortal:i=!1,keepMounted:c=!1,modifiers:u,open:_,placement:l="bottom",popperOptions:d=$i,popperRef:y,style:p,transition:g=!1,slotProps:m={},slots:h={}}=e,f=(0,L.Z)(e,ji),[x,v]=n.useState(!0);if(!c&&!_&&(!g||x))return null;let w;if(o)w=o;else if(r){const e=Ui(r);w=e&&void 0!==e.nodeType?(0,Yn.Z)(e).body:(0,Yn.Z)(null).body}const b=_||!c||g&&!x?void 0:"none",S=g?{in:_,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:void 0;return(0,J.jsx)(ea,{disablePortal:i,container:w,children:(0,J.jsx)(Vi,(0,D.Z)({anchorEl:r,direction:s,disablePortal:i,modifiers:u,ref:t,open:g?!x:_,placement:l,popperOptions:d,popperRef:y,slotProps:m,slots:h},f,{style:(0,D.Z)({position:"fixed",top:0,left:0,display:b},p),TransitionProps:S,children:a}))})}));var Hi=r(7103);const qi=["components","componentsProps","slots","slotProps"],Ki=(0,H.ZP)(Wi,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gi=n.forwardRef((function(e,t){var r;const n=(0,Hi.Z)(),a=(0,q.Z)({props:e,name:"MuiPopper"}),{components:o,componentsProps:s,slots:i,slotProps:c}=a,u=(0,L.Z)(a,qi),_=null!=(r=null==i?void 0:i.root)?r:null==o?void 0:o.Root;return(0,J.jsx)(Ki,(0,D.Z)({direction:null==n?void 0:n.direction,slots:{root:_},slotProps:null!=c?c:s},u,{ref:t}))}));function Yi(e){return(0,Y.Z)("MuiTooltip",e)}const Qi=(0,G.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ji=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],Xi=(0,H.ZP)(Gi,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((({theme:e,ownerState:t,open:r})=>(0,D.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Qi.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Qi.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Qi.arrow}`]:(0,D.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Qi.arrow}`]:(0,D.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),ec=(0,H.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,K.Z)(r.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,D.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,_e.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${Qi.popper}[data-popper-placement*="left"] &`]:(0,D.Z)({transformOrigin:"right center"},t.isRtl?(0,D.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,D.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Qi.popper}[data-popper-placement*="right"] &`]:(0,D.Z)({transformOrigin:"left center"},t.isRtl?(0,D.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,D.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Qi.popper}[data-popper-placement*="top"] &`]:(0,D.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Qi.popper}[data-popper-placement*="bottom"] &`]:(0,D.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),tc=(0,H.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,_e.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let rc=!1,nc=null,ac={x:0,y:0};function oc(e,t){return r=>{t&&t(r),e(r)}}const sc=n.forwardRef((function(e,t){var r,a,o,s,i,c,u,_,l,d,y,p,g,m,h,f,x,v,w;const b=(0,q.Z)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:k,components:E={},componentsProps:T={},describeChild:I=!1,disableFocusListener:C=!1,disableHoverListener:O=!1,disableInteractive:P=!1,disableTouchListener:z=!1,enterDelay:A=100,enterNextDelay:R=0,enterTouchDelay:M=700,followCursor:N=!1,id:F,leaveDelay:Z=0,leaveTouchDelay:j=1500,onClose:U,onOpen:$,open:V,placement:H="bottom",PopperComponent:G,PopperProps:Y={},slotProps:Q={},slots:X={},title:ee,TransitionComponent:te=Gn,TransitionProps:re}=b,ne=(0,L.Z)(b,Ji),ae=Ce(),oe="rtl"===ae.direction,[se,ie]=n.useState(),[ce,ue]=n.useState(null),_e=n.useRef(!1),le=P||N,de=n.useRef(),ye=n.useRef(),pe=n.useRef(),ge=n.useRef(),[me,he]=(0,no.Z)({controlled:V,default:!1,name:"Tooltip",state:"open"});let fe=me;const xe=(0,Do.Z)(F),ve=n.useRef(),we=n.useCallback((()=>{void 0!==ve.current&&(document.body.style.WebkitUserSelect=ve.current,ve.current=void 0),clearTimeout(ge.current)}),[]);n.useEffect((()=>()=>{clearTimeout(de.current),clearTimeout(ye.current),clearTimeout(pe.current),we()}),[we]);const be=e=>{clearTimeout(nc),rc=!0,he(!0),$&&!fe&&$(e)},Se=(0,Ue.Z)((e=>{clearTimeout(nc),nc=setTimeout((()=>{rc=!1}),800+Z),he(!1),U&&fe&&U(e),clearTimeout(de.current),de.current=setTimeout((()=>{_e.current=!1}),ae.transitions.duration.shortest)})),ke=e=>{_e.current&&"touchstart"!==e.type||(se&&se.removeAttribute("title"),clearTimeout(ye.current),clearTimeout(pe.current),A||rc&&R?ye.current=setTimeout((()=>{be(e)}),rc?R:A):be(e))},Ee=e=>{clearTimeout(ye.current),clearTimeout(pe.current),pe.current=setTimeout((()=>{Se(e)}),Z)},{isFocusVisibleRef:Te,onBlur:Ie,onFocus:Oe,ref:Pe}=(0,$e.Z)(),[,ze]=n.useState(!1),Ae=e=>{Ie(e),!1===Te.current&&(ze(!1),Ee(e))},Re=e=>{se||ie(e.currentTarget),Oe(e),!0===Te.current&&(ze(!0),ke(e))},Me=e=>{_e.current=!0;const t=k.props;t.onTouchStart&&t.onTouchStart(e)},Ne=ke,Fe=Ee;n.useEffect((()=>{if(fe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Se(e)}}),[Se,fe]);const Le=(0,je.Z)(k.ref,Pe,ie,t);ee||0===ee||(fe=!1);const De=n.useRef(),Be={},Ze="string"==typeof ee;I?(Be.title=fe||!Ze||O?null:ee,Be["aria-describedby"]=fe?xe:null):(Be["aria-label"]=Ze?ee:null,Be["aria-labelledby"]=fe&&!Ze?xe:null);const Ve=(0,D.Z)({},Be,ne,k.props,{className:(0,B.Z)(ne.className,k.props.className),onTouchStart:Me,ref:Le},N?{onMouseMove:e=>{const t=k.props;t.onMouseMove&&t.onMouseMove(e),ac={x:e.clientX,y:e.clientY},De.current&&De.current.update()}}:{}),We={};z||(Ve.onTouchStart=e=>{Me(e),clearTimeout(pe.current),clearTimeout(de.current),we(),ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ge.current=setTimeout((()=>{document.body.style.WebkitUserSelect=ve.current,ke(e)}),M)},Ve.onTouchEnd=e=>{k.props.onTouchEnd&&k.props.onTouchEnd(e),we(),clearTimeout(pe.current),pe.current=setTimeout((()=>{Se(e)}),j)}),O||(Ve.onMouseOver=oc(Ne,Ve.onMouseOver),Ve.onMouseLeave=oc(Fe,Ve.onMouseLeave),le||(We.onMouseOver=Ne,We.onMouseLeave=Fe)),C||(Ve.onFocus=oc(Re,Ve.onFocus),Ve.onBlur=oc(Ae,Ve.onBlur),le||(We.onFocus=Re,We.onBlur=Ae));const He=n.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ce),options:{element:ce,padding:4}}];return null!=(e=Y.popperOptions)&&e.modifiers&&(t=t.concat(Y.popperOptions.modifiers)),(0,D.Z)({},Y.popperOptions,{modifiers:t})}),[ce,Y]),qe=(0,D.Z)({},b,{isRtl:oe,arrow:S,disableInteractive:le,placement:H,PopperComponentProp:G,touch:_e.current}),Ke=(e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${(0,K.Z)(o.split("-")[0])}`],arrow:["arrow"]};return(0,W.Z)(s,Yi,t)})(qe),Ge=null!=(r=null!=(a=X.popper)?a:E.Popper)?r:Xi,Ye=null!=(o=null!=(s=null!=(i=X.transition)?i:E.Transition)?s:te)?o:Gn,Qe=null!=(c=null!=(u=X.tooltip)?u:E.Tooltip)?c:ec,Je=null!=(_=null!=(l=X.arrow)?l:E.Arrow)?_:tc,Xe=_a(Ge,(0,D.Z)({},Y,null!=(d=Q.popper)?d:T.popper,{className:(0,B.Z)(Ke.popper,null==Y?void 0:Y.className,null==(y=null!=(p=Q.popper)?p:T.popper)?void 0:y.className)}),qe),et=_a(Ye,(0,D.Z)({},re,null!=(g=Q.transition)?g:T.transition),qe),tt=_a(Qe,(0,D.Z)({},null!=(m=Q.tooltip)?m:T.tooltip,{className:(0,B.Z)(Ke.tooltip,null==(h=null!=(f=Q.tooltip)?f:T.tooltip)?void 0:h.className)}),qe),rt=_a(Je,(0,D.Z)({},null!=(x=Q.arrow)?x:T.arrow,{className:(0,B.Z)(Ke.arrow,null==(v=null!=(w=Q.arrow)?w:T.arrow)?void 0:v.className)}),qe);return(0,J.jsxs)(n.Fragment,{children:[n.cloneElement(k,Ve),(0,J.jsx)(Ge,(0,D.Z)({as:null!=G?G:Gi,placement:H,anchorEl:N?{getBoundingClientRect:()=>({top:ac.y,left:ac.x,right:ac.x,bottom:ac.y,width:0,height:0})}:se,popperRef:De,open:!!se&&fe,id:xe,transition:!0},We,Xe,{popperOptions:He,children:({TransitionProps:e})=>(0,J.jsx)(Ye,(0,D.Z)({timeout:ae.transitions.duration.shorter},e,et,{children:(0,J.jsxs)(Qe,(0,D.Z)({},tt,{children:[ee,S?(0,J.jsx)(Je,(0,D.Z)({},rt,{ref:ue})):null]}))}))}))]})}));var ic=[{id:"start",title:"Start",text:"Each network consists of circles that will be connected by arrows of different colour.",tip:"Click OK"},{id:"practice_node",title:"Circle",text:"You start at the grey circle.",tip:"Click a node"},{id:"general_edge",title:"ArrowGeneral",text:"From there, you can follow any outgoing arrow. The arrow colours indicate how many points you will lose or gain with a move.",tip:"Click OK"},{id:"practice_edge",title:"Arrow",text:"Your goal is to move along the arrows to earn points.
Now click on the next node.",tip:"Click a node"},{id:"general_points",title:"Score & Step",text:"You always make 10 moves per network. Your goal is to collect the maximum number of points in these 10 moves.",tip:"Current step and cumulative score"},{id:"practice_linear_solution",title:"Your Solution",text:"As you proceed in the network, your progress is noted here.
Now continue to move through the network.",tip:"Your Solution"},{id:"practice_multi_edge",title:"Your Choice",text:"Like here, there will be two or more possible moves per circle in the later networks.
Please continue by selecting one of the possibilities.",tip:"Click a node"},{id:"practice_timer",title:"Time Constraint",text:"In the actual experiment, you will have limited time to solve each network. If you run out of time, you will receive -50 points for each missing move.",tip:"Time Constraint"},{id:"practice_step_score",title:"Current Network Score",text:"Your point-count for the current network will be displayed here. The total score is displayed in the upper right corner.",tip:"Cumulative score"},{id:"practice_total_score",title:"Total Score",text:"Your total point-count will be displayed here, once the main task starts.",tip:"Total Score"},{id:"social_learning_selection_player",title:"Player Selection",text:"Select a player to learn from. Scores displayed are the average scores obtained during the players’ experiments.",tip:"Select a player"},{id:"social_learning_observation_comment",title:"Player Comment",text:"The player might have provided their strategy for you here (or not, if the box is empty).",tip:"Player comment"},{id:"social_learning_observation_animation",title:"Player Solution Animation",text:"You can now watch their chosen path once. The animation will start in 4 seconds.",tip:"Player solution animation"}];const cc=r.p+"reward-network-iii/rewards.png",uc=function(e){var t=e.children,r=e.isTutorial,a=void 0!==r&&r,o=e.isShowTip,s=void 0===o||o,i=e.placement,c=void 0===i?"bottom":i,u=e.arrow,_=void 0===u||u,l=e.showTitle,d=void 0!==l&&l,y=(0,n.useState)(a),p=y[0],g=y[1];(0,n.useEffect)((function(){g(a)}),[a]);var m=ic.filter((function(t){return t.id===e.tutorialId}))[0],h=m.title,f=m.text,x=m.tip,v=function(){g(!1),e.onTutorialClose()},w=function(t,r){return n.createElement(ue,{sx:{textAlign:"center"}},d&&n.createElement(n.Fragment,null,n.createElement(ne,{color:"inherit",variant:"h6",sx:{m:1}},t),n.createElement(Ts,null)),n.createElement(ne,{color:"inherit",sx:{m:1},dangerouslySetInnerHTML:{__html:r}}),"ArrowGeneral"==t&&n.createElement(Ut,{component:"img",image:cc,alt:"You earn or lose points depending on the color of the arrow."}),e.onTutorialClose&&n.createElement(n.Fragment,null,n.createElement(Mt,{sx:{m:1},variant:"contained",color:"secondary",onClick:v},"Ok")))};return f&&h&&x?a?(console.log(w(h,f),c,_,p,h,f,x),n.createElement(sc,{title:w(h,f),placement:c,arrow:_,open:p},t)):s?n.createElement(sc,{title:x,placement:c,arrow:_},t):t:t},_c=function(e){var t=e.showTutorial,r=void 0!==t&&t,a=e.strokeColor,o=void 0===a?"black":a,s=(0,n.useState)(!1),i=s[0],c=s[1];(0,n.useEffect)((function(){i&&setTimeout((function(){c(!1)}),400)}),[i]);var u=4===e.nodeInx?"practice_multi_edge":"practice_node";return n.createElement(uc,{tutorialId:u,isTutorial:r,isShowTip:!1,onTutorialClose:e.onTutorialClose,placement:"left"},n.createElement(vs,{status:e.status,fontSize:e.Radius,onClick:function(){e.onNodeClick(e.nodeInx),"normal"!==e.status||e.isValidMove||c(!0)},wrongClick:i,nextNodeColor:e.nextNodeColor},n.createElement("circle",{cx:e.x,cy:e.y,r:e.Radius,key:"circle",stroke:o}),n.createElement("text",{x:e.x,y:e.y+.35*e.Radius,textAnchor:"middle",key:"state-name"},e.Text.slice(0,1))))};let lc=Ic();const dc=e=>Sc(e,lc);let yc=Ic();dc.write=e=>Sc(e,yc);let pc=Ic();dc.onStart=e=>Sc(e,pc);let gc=Ic();dc.onFrame=e=>Sc(e,gc);let mc=Ic();dc.onFinish=e=>Sc(e,mc);let hc=[];dc.setTimeout=(e,t)=>{let r=dc.now()+t,n=()=>{let e=hc.findIndex((e=>e.cancel==n));~e&&hc.splice(e,1),wc-=~e?1:0},a={time:r,handler:e,cancel:n};return hc.splice(fc(r),0,a),wc+=1,kc(),a};let fc=e=>~(~hc.findIndex((t=>t.time>e))||~hc.length);dc.cancel=e=>{pc.delete(e),gc.delete(e),mc.delete(e),lc.delete(e),yc.delete(e)},dc.sync=e=>{bc=!0,dc.batchedUpdates(e),bc=!1},dc.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,dc.onStart(r)}return n.handler=e,n.cancel=()=>{pc.delete(r),t=null},n};let xc="undefined"!=typeof window?window.requestAnimationFrame:()=>{};dc.use=e=>xc=e,dc.now="undefined"!=typeof performance?()=>performance.now():Date.now,dc.batchedUpdates=e=>e(),dc.catch=console.error,dc.frameLoop="always",dc.advance=()=>{"demand"!==dc.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Tc()};let vc=-1,wc=0,bc=!1;function Sc(e,t){bc?(t.delete(e),e(0)):(t.add(e),kc())}function kc(){vc<0&&(vc=0,"demand"!==dc.frameLoop&&xc(Ec))}function Ec(){~vc&&(xc(Ec),dc.batchedUpdates(Tc))}function Tc(){let e=vc;vc=dc.now();let t=fc(vc);t&&(Cc(hc.splice(0,t),(e=>e.handler())),wc-=t),wc?(pc.flush(),lc.flush(e?Math.min(64,vc-e):16.667),gc.flush(),yc.flush(),mc.flush()):vc=-1}function Ic(){let e=new Set,t=e;return{add(r){wc+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(wc-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,wc-=t.size,Cc(t,(t=>t(r)&&e.add(t))),wc+=e.size,t=e)}}}function Cc(e,t){e.forEach((e=>{try{t(e)}catch(e){dc.catch(e)}}))}function Oc(){}const Pc={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function zc(e,t){if(Pc.arr(e)){if(!Pc.arr(t)||e.length!==t.length)return!1;for(let r=0;re.forEach(t);function Rc(e,t,r){if(Pc.arr(e))for(let n=0;nPc.und(e)?[]:Pc.arr(e)?e:[e];function Nc(e,t){if(e.size){const r=Array.from(e);e.clear(),Ac(r,t)}}const Fc=(e,...t)=>Nc(e,(e=>e(...t))),Lc=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Dc,Bc,Zc=null,jc=!1,Uc=Oc;var $c=Object.freeze({__proto__:null,get createStringInterpolator(){return Dc},get to(){return Bc},get colors(){return Zc},get skipAnimation(){return jc},get willAdvance(){return Uc},assign:e=>{e.to&&(Bc=e.to),e.now&&(dc.now=e.now),void 0!==e.colors&&(Zc=e.colors),null!=e.skipAnimation&&(jc=e.skipAnimation),e.createStringInterpolator&&(Dc=e.createStringInterpolator),e.requestAnimationFrame&&dc.use(e.requestAnimationFrame),e.batchedUpdates&&(dc.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Uc=e.willAdvance),e.frameLoop&&(dc.frameLoop=e.frameLoop)}});const Vc=new Set;let Wc=[],Hc=[],qc=0;const Kc={get idle(){return!Vc.size&&!Wc.length},start(e){qc>e.priority?(Vc.add(e),dc.onStart(Gc)):(Yc(e),dc(Jc))},advance:Jc,sort(e){if(qc)dc.onFrame((()=>Kc.sort(e)));else{const t=Wc.indexOf(e);~t&&(Wc.splice(t,1),Qc(e))}},clear(){Wc=[],Vc.clear()}};function Gc(){Vc.forEach(Yc),Vc.clear(),dc(Jc)}function Yc(e){Wc.includes(e)||Qc(e)}function Qc(e){Wc.splice(function(t,r){const n=t.findIndex((t=>t.priority>e.priority));return n<0?t.length:n}(Wc),0,e)}function Jc(e){const t=Hc;for(let r=0;r0}const Xc="[-+]?\\d*\\.?\\d+",eu=Xc+"%";function tu(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const ru=new RegExp("rgb"+tu(Xc,Xc,Xc)),nu=new RegExp("rgba"+tu(Xc,Xc,Xc,Xc)),au=new RegExp("hsl"+tu(Xc,eu,eu)),ou=new RegExp("hsla"+tu(Xc,eu,eu,Xc)),su=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,iu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,cu=/^#([0-9a-fA-F]{6})$/,uu=/^#([0-9a-fA-F]{8})$/;function _u(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function lu(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n,o=_u(a,n,e+1/3),s=_u(a,n,e),i=_u(a,n,e-1/3);return Math.round(255*o)<<24|Math.round(255*s)<<16|Math.round(255*i)<<8}function du(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function yu(e){return(parseFloat(e)%360+360)%360/360}function pu(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function gu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function mu(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=cu.exec(e))?parseInt(t[1]+"ff",16)>>>0:Zc&&void 0!==Zc[e]?Zc[e]:(t=ru.exec(e))?(du(t[1])<<24|du(t[2])<<16|du(t[3])<<8|255)>>>0:(t=nu.exec(e))?(du(t[1])<<24|du(t[2])<<16|du(t[3])<<8|pu(t[4]))>>>0:(t=su.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=uu.exec(e))?parseInt(t[1],16)>>>0:(t=iu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=au.exec(e))?(255|lu(yu(t[1]),gu(t[2]),gu(t[3])))>>>0:(t=ou.exec(e))?(lu(yu(t[1]),gu(t[2]),gu(t[3]))|pu(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const hu=(e,t,r)=>{if(Pc.fun(e))return e;if(Pc.arr(e))return hu({range:e,output:t,extrapolate:r});if(Pc.str(e.output[0]))return Dc(e);const n=e,a=n.output,o=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",i=n.extrapolateRight||n.extrapolate||"extend",c=n.easing||(e=>e);return e=>{const t=function(e,t){for(var r=1;r=e);++r);return r-1}(e,o);return function(e,t,r,n,a,o,s,i,c){let u=c?c(e):e;if(ur){if("identity"===i)return u;"clamp"===i&&(u=r)}return n===a?n:t===r?e<=t?n:a:(t===-1/0?u=-u:r===1/0?u-=t:u=(u-t)/(r-t),u=o(u),n===-1/0?u=-u:a===1/0?u+=n:u=u*(a-n)+n,u)}(e,o[t],o[t+1],a[t],a[t+1],c,s,i,n.map)}},fu=1.70158,xu=1.525*fu,vu=fu+1,wu=2*Math.PI/3,bu=2*Math.PI/4.5,Su=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},ku={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>vu*e*e*e-fu*e*e,easeOutBack:e=>1+vu*Math.pow(e-1,3)+fu*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-xu)/2:(Math.pow(2*e-2,2)*((xu+1)*(2*e-2)+xu)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*wu),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*wu)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*bu)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*bu)/2+1,easeInBounce:e=>1-Su(1-e),easeOutBounce:Su,easeInOutBounce:e=>e<.5?(1-Su(1-2*e))/2:(1+Su(2*e-1))/2,steps:(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e;return 0,1,a=("end"===t?Math.floor(n):Math.ceil(n))/e,Math.min(Math.max(a,0),1);var a}};function Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;tBoolean(e&&e[Tu]),Ou=e=>e&&e[Tu]?e[Tu]():e,Pu=e=>e[Iu]||null;function zu(e,t){let r=e[Iu];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Au{constructor(e){if(this[Tu]=void 0,this[Iu]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Ru(this,e)}}const Ru=(e,t)=>Fu(e,Tu,t);function Mu(e,t){if(e[Tu]){let r=e[Iu];r||Fu(e,Iu,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Nu(e,t){let r=e[Iu];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[Iu]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const Fu=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Lu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Du=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Bu=new RegExp(`(${Lu.source})(%|[a-z]+)`,"i"),Zu=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ju=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Uu=e=>{const[t,r]=$u(e);if(!t||Lc())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(r)||e}return r&&ju.test(r)?Uu(r):r||e},$u=e=>{const t=ju.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let Vu;const Wu=(e,t,r,n,a)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`,Hu=e=>{Vu||(Vu=Zc?new RegExp(`(${Object.keys(Zc).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ou(e).replace(ju,Uu).replace(Du,mu).replace(Vu,mu))),r=t.map((e=>e.match(Lu).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),a=n.map((t=>hu(Eu({},e,{output:t}))));return e=>{var r;const n=!Bu.test(t[0])&&(null==(r=t.find((e=>Bu.test(e))))?void 0:r.replace(Lu,""));let o=0;return t[0].replace(Lu,(()=>`${a[o++](e)}${n||""}`)).replace(Zu,Wu)}},qu="react-spring: ",Ku=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${qu}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},Gu=Ku(console.warn),Yu=Ku(console.warn);function Qu(e){return Pc.str(e)&&("#"==e[0]||/\d/.test(e)||!Lc()&&ju.test(e)||e in(Zc||{}))}new WeakMap,new Set,new WeakMap,new WeakMap,new WeakMap;const Ju=Lc()?n.useEffect:n.useLayoutEffect,Xu=()=>{const e=(0,n.useRef)(!1);return Ju((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function e_(){const e=(0,n.useState)()[1],t=Xu();return()=>{t.current&&e(Math.random())}}const t_=e=>(0,n.useEffect)(e,r_),r_=[];function n_(e){const t=(0,n.useRef)();return(0,n.useEffect)((()=>{t.current=e})),t.current}const a_=Symbol.for("Animated:node"),o_=e=>e&&e[a_],s_=(e,t)=>{return r=e,n=a_,a=t,Object.defineProperty(r,n,{value:a,writable:!0,configurable:!0});var r,n,a},i_=e=>e&&e[a_]&&e[a_].getPayload();class c_{constructor(){this.payload=void 0,s_(this,this)}getPayload(){return this.payload||[]}}class u_ extends c_{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,Pc.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new u_(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Pc.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Pc.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class __ extends u_{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=hu({output:[e,e]})}static create(e){return new __(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Pc.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=hu({output:[this.getValue(),e]})),this._value=0,super.reset()}}const l_={dependencies:null};class d_ extends c_{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Rc(this.source,((r,n)=>{var a;(a=r)&&a[a_]===a?t[n]=r.getValue(e):Cu(r)?t[n]=Ou(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ac(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Rc(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){l_.dependencies&&Cu(e)&&l_.dependencies.add(e);const t=i_(e);t&&Ac(t,(e=>this.add(e)))}}class y_ extends d_{constructor(e){super(e)}static create(e){return new y_(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(p_)),!0)}}function p_(e){return(Qu(e)?__:u_).create(e)}function g_(e){const t=o_(e);return t?t.constructor:Pc.arr(e)?y_:Qu(e)?__:u_}function m_(){return m_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const r=!Pc.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,n.forwardRef)(((a,o)=>{const s=(0,n.useRef)(null),i=r&&(0,n.useCallback)((e=>{s.current=function(e,t){return e&&(Pc.fun(e)?e(t):e.current=t),t}(o,e)}),[o]),[c,u]=function(e,t){const r=new Set;return l_.dependencies=r,e.style&&(e=m_({},e,{style:t.createAnimatedStyle(e.style)})),e=new d_(e),l_.dependencies=null,[e,r]}(a,t),_=e_(),l=()=>{const e=s.current;r&&!e||!1===(!!e&&t.applyAnimatedValues(e,c.getValue(!0)))&&_()},d=new f_(l,u),y=(0,n.useRef)();Ju((()=>(y.current=d,Ac(u,(e=>Mu(e,d))),()=>{y.current&&(Ac(y.current.deps,(e=>Nu(e,y.current))),dc.cancel(y.current.update))}))),(0,n.useEffect)(l,[]),t_((()=>()=>{const e=y.current;Ac(e.deps,(t=>Nu(t,e)))}));const p=t.getComponentProps(c.getValue());return n.createElement(e,m_({},p,{ref:i}))}))};class f_{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&dc.write(this.update)}}const x_=Symbol.for("AnimatedComponent"),v_=e=>Pc.str(e)?e:e&&Pc.str(e.displayName)?e.displayName:Pc.fun(e)&&e.name||null;function w_(){return w_=Object.assign?Object.assign.bind():function(e){for(var t=1;t!0===e||!!(t&&e&&(Pc.fun(e)?e(t):Mc(e).includes(t))),k_=(e,t)=>Pc.obj(e)?t&&e[t]:e,E_=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,T_=e=>e,I_=(e,t=T_)=>{let r=C_;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const a of r){const r=t(e[a],a);Pc.und(r)||(n[a]=r)}return n},C_=["config","onProps","onStart","onChange","onPause","onResume","onRest"],O_={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function P_(e){const t=function(e){const t={};let r=0;if(Rc(e,((e,n)=>{O_[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return Rc(e,((e,n)=>n in t||(r[n]=e))),r}return w_({},e)}function z_(e){return e=Ou(e),Pc.arr(e)?e.map(z_):Qu(e)?$c.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function A_(e){return Pc.fun(e)||Pc.arr(e)&&Pc.obj(e[0])}const R_=w_({},{tension:170,friction:26},{mass:1,damping:1,easing:ku.linear,clamp:!1});class M_{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,R_)}}function N_(e,t){if(Pc.und(t.decay)){const r=!Pc.und(t.tension)||!Pc.und(t.friction);!r&&Pc.und(t.frequency)&&Pc.und(t.damping)&&Pc.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const F_=[];class L_{constructor(){this.changed=!1,this.values=F_,this.toValues=null,this.fromValues=F_,this.to=void 0,this.from=void 0,this.config=new M_,this.immediate=!1}}function D_(e,{key:t,props:r,defaultProps:n,state:a,actions:o}){return new Promise(((s,i)=>{var c;let u,_,l=S_(null!=(c=r.cancel)?c:null==n?void 0:n.cancel,t);if(l)p();else{Pc.und(r.pause)||(a.paused=S_(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=a.paused||S_(e,t)),u=b_(r.delay||0,t),e?(a.resumeQueue.add(y),o.pause()):(o.resume(),y())}function d(){a.resumeQueue.add(y),a.timeouts.delete(_),_.cancel(),u=_.time-dc.now()}function y(){u>0&&!$c.skipAnimation?(a.delayed=!0,_=dc.setTimeout(p,u),a.pauseQueue.add(d),a.timeouts.add(_)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(_),e<=(a.cancelId||0)&&(l=!0);try{o.start(w_({},r,{callId:e,cancel:l}),s)}catch(e){i(e)}}}))}const B_=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?U_(e.get()):t.every((e=>e.noop))?Z_(e.get()):j_(e.get(),t.every((e=>e.finished))),Z_=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),j_=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),U_=e=>({value:e,cancelled:!0,finished:!1});function $_(e,t,r,n){const{callId:a,parentId:o,onRest:s}=t,{asyncTo:i,promise:c}=r;return o||e!==i||t.reset?r.promise=(async()=>{r.asyncId=a,r.asyncTo=e;const u=I_(t,((e,t)=>"onRest"===t?void 0:e));let _,l;const d=new Promise(((e,t)=>(_=e,l=t))),y=e=>{const t=a<=(r.cancelId||0)&&U_(n)||a!==r.asyncId&&j_(n,!1);if(t)throw e.result=t,l(e),e},p=(e,t)=>{const o=new W_,s=new H_;return(async()=>{if($c.skipAnimation)throw V_(r),s.result=j_(n,!1),l(s),s;y(o);const i=Pc.obj(e)?w_({},e):w_({},t,{to:e});i.parentId=a,Rc(u,((e,t)=>{Pc.und(i[t])&&(i[t]=e)}));const c=await n.start(i);return y(o),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),c})()};let g;if($c.skipAnimation)return V_(r),j_(n,!1);try{let t;t=Pc.arr(e)?(async e=>{for(const t of e)await p(t)})(e):Promise.resolve(e(p,n.stop.bind(n))),await Promise.all([t.then(_),d]),g=j_(n.get(),!0,!1)}catch(e){if(e instanceof W_)g=e.result;else{if(!(e instanceof H_))throw e;g=e.result}}finally{a==r.asyncId&&(r.asyncId=o,r.asyncTo=o?i:void 0,r.promise=o?c:void 0)}return Pc.fun(s)&&dc.batchedUpdates((()=>{s(g,n,n.item)})),g})():c}function V_(e,t){Nc(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class W_ extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class H_ extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const q_=e=>e instanceof G_;let K_=1;class G_ extends Au{constructor(...e){super(...e),this.id=K_++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=o_(this);return e&&e.getValue()}to(...e){return $c.to(this,e)}interpolate(...e){return Gu(`${qu}The "interpolate" function is deprecated in v9 (use "to" instead)`),$c.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){zu(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Kc.sort(this),zu(this,{type:"priority",parent:this,priority:e})}}const Y_=Symbol.for("SpringPhase"),Q_=e=>(1&e[Y_])>0,J_=e=>(2&e[Y_])>0,X_=e=>(4&e[Y_])>0,el=(e,t)=>t?e[Y_]|=3:e[Y_]&=-3,tl=(e,t)=>t?e[Y_]|=4:e[Y_]&=-5;class rl extends G_{constructor(e,t){if(super(),this.key=void 0,this.animation=new L_,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Pc.und(e)||!Pc.und(t)){const r=Pc.obj(e)?w_({},e):w_({},t,{from:e});Pc.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(J_(this)||this._state.asyncTo)||X_(this)}get goal(){return Ou(this.animation.to)}get velocity(){const e=o_(this);return e instanceof u_?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Q_(this)}get isAnimating(){return J_(this)}get isPaused(){return X_(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:a,toValues:o}=n;const s=i_(n.to);!s&&Cu(n.to)&&(o=Mc(Ou(n.to))),n.values.forEach(((i,c)=>{if(i.done)return;const u=i.constructor==__?1:s?s[c].lastPosition:o[c];let _=n.immediate,l=u;if(!_){if(l=i.lastPosition,a.tension<=0)return void(i.done=!0);let t=i.elapsedTime+=e;const r=n.fromValues[c],o=null!=i.v0?i.v0:i.v0=Pc.arr(a.velocity)?a.velocity[c]:a.velocity;let s;const d=a.precision||(r==u?.005:Math.min(1,.001*Math.abs(u-r)));if(Pc.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,n=Math.exp(-(1-e)*t);l=r+o/(1-e)*(1-n),_=Math.abs(i.lastPosition-l)<=d,s=o*n}else{s=null==i.lastVelocity?o:i.lastVelocity;const t=a.restVelocity||d/10,n=a.clamp?0:a.bounce,c=!Pc.und(n),y=r==u?i.v0>0:rt,p||(_=Math.abs(u-l)<=d,!_));++e)c&&(g=l==u||l>u==y,g&&(s=-s*n,l=u)),s+=(1e-6*-a.tension*(l-u)+.001*-a.friction*s)/a.mass*m,l+=s*m}else{let n=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,i.durationProgress>0&&(i.elapsedTime=a.duration*i.durationProgress,t=i.elapsedTime+=e)),n=(a.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,i.durationProgress=n),l=r+a.easing(n)*(u-r),s=(l-i.lastPosition)/e,_=1==n}i.lastVelocity=s,Number.isNaN(l)&&(console.warn("Got NaN while animating:",this),_=!0)}s&&!s[c].done&&(_=!1),_?i.done=!0:t=!1,i.setValue(l,a.round)&&(r=!0)}));const i=o_(this),c=i.getValue();if(t){const e=Ou(n.to);c===e&&!r||a.decay?r&&a.decay&&this._onChange(c):(i.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(c)}set(e){return dc.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(J_(this)){const{to:e,config:t}=this.animation;dc.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return Pc.und(e)?(r=this.queue||[],this.queue=[]):r=[Pc.obj(e)?e:w_({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>B_(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),V_(this._state,e&&this._lastCallId),dc.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=Pc.obj(r)?r[t]:r,(null==r||A_(r))&&(r=void 0),n=Pc.obj(n)?n[t]:n,null==n&&(n=void 0);const a={to:r,from:n};return Q_(this)||(e.reverse&&([r,n]=[n,r]),n=Ou(n),Pc.und(n)?o_(this)||this._set(r):this._set(n)),a}_update(e,t){let r=w_({},e);const{key:n,defaultProps:a}=this;r.default&&Object.assign(a,I_(r,((e,t)=>/^on/.test(t)?k_(e,n):e))),ul(this,r,"onProps"),_l(this,"onProps",r,this);const o=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return D_(++this._lastCallId,{key:n,props:r,defaultProps:a,state:s,actions:{pause:()=>{X_(this)||(tl(this,!0),Fc(s.pauseQueue),_l(this,"onPause",j_(this,nl(this,this.animation.to)),this))},resume:()=>{X_(this)&&(tl(this,!1),J_(this)&&this._resume(),Fc(s.resumeQueue),_l(this,"onResume",j_(this,nl(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=al(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(U_(this));const n=!Pc.und(e.to),a=!Pc.und(e.from);if(n||a){if(!(t.callId>this._lastToId))return r(U_(this));this._lastToId=t.callId}const{key:o,defaultProps:s,animation:i}=this,{to:c,from:u}=i;let{to:_=c,from:l=u}=e;!a||n||t.default&&!Pc.und(_)||(_=l),t.reverse&&([_,l]=[l,_]);const d=!zc(l,u);d&&(i.from=l),l=Ou(l);const y=!zc(_,c);y&&this._focus(_);const p=A_(t.to),{config:g}=i,{decay:m,velocity:h}=g;(n||a)&&(g.velocity=0),t.config&&!p&&function(e,t,r){r&&(N_(r=w_({},r),t),t=w_({},r,t)),N_(e,t),Object.assign(e,t);for(const t in R_)null==e[t]&&(e[t]=R_[t]);let{mass:n,frequency:a,damping:o}=e;Pc.und(a)||(a<.01&&(a=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/a,2)*n,e.friction=4*Math.PI*o*n/a)}(g,b_(t.config,o),t.config!==s.config?b_(s.config,o):void 0);let f=o_(this);if(!f||Pc.und(_))return r(j_(this,!0));const x=Pc.und(t.reset)?a&&!t.default:!Pc.und(l)&&S_(t.reset,o),v=x?l:this.get(),w=z_(_),b=Pc.num(w)||Pc.arr(w)||Qu(w),S=!p&&(!b||S_(s.immediate||t.immediate,o));if(y){const e=g_(_);if(e!==f.constructor){if(!S)throw Error(`Cannot animate between ${f.constructor.name} and ${e.name}, as the "to" prop suggests`);f=this._set(w)}}const k=f.constructor;let E=Cu(_),T=!1;if(!E){const e=x||!Q_(this)&&d;(y||e)&&(T=zc(z_(v),w),E=!T),(zc(i.immediate,S)||S)&&zc(g.decay,m)&&zc(g.velocity,h)||(E=!0)}if(T&&J_(this)&&(i.changed&&!x?E=!0:E||this._stop(c)),!p&&((E||Cu(c))&&(i.values=f.getPayload(),i.toValues=Cu(_)?null:k==__?[1]:Mc(w)),i.immediate!=S&&(i.immediate=S,S||x||this._set(c)),E)){const{onRest:e}=i;Ac(cl,(e=>ul(this,t,e)));const n=j_(this,nl(this,c));Fc(this._pendingCalls,n),this._pendingCalls.add(r),i.changed&&dc.batchedUpdates((()=>{i.changed=!x,null==e||e(n,this),x?b_(s.onRest,n):null==i.onStart||i.onStart(n,this)}))}x&&this._set(v),p?r($_(t.to,t,this._state,this)):E?this._start():J_(this)&&!y?this._pendingCalls.add(r):r(Z_(v))}_focus(e){const t=this.animation;e!==t.to&&(Pu(this)&&this._detach(),t.to=e,Pu(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Cu(t)&&(Mu(t,this),q_(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Cu(e)&&Nu(e,this)}_set(e,t=!0){const r=Ou(e);if(!Pc.und(r)){const e=o_(this);if(!e||!zc(r,e.getValue())){const n=g_(r);e&&e.constructor==n?e.setValue(r):s_(this,n.create(r)),e&&dc.batchedUpdates((()=>{this._onChange(r,t)}))}}return o_(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,_l(this,"onStart",j_(this,nl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),b_(this.animation.onChange,e,this)),b_(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;o_(this).reset(Ou(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),J_(this)||(el(this,!0),X_(this)||this._resume())}_resume(){$c.skipAnimation?this.finish():Kc.start(this)}_stop(e,t){if(J_(this)){el(this,!1);const r=this.animation;Ac(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),zu(this,{type:"idle",parent:this});const n=t?U_(this.get()):j_(this.get(),nl(this,null!=e?e:r.to));Fc(this._pendingCalls,n),r.changed&&(r.changed=!1,_l(this,"onRest",n,this))}}}function nl(e,t){const r=z_(t);return zc(z_(e.get()),r)}function al(e,t=e.loop,r=e.to){let n=b_(t);if(n){const a=!0!==n&&P_(n),o=(a||e).reverse,s=!a||a.reset;return ol(w_({},e,{loop:t,default:!1,pause:void 0,to:!o||A_(r)?r:void 0,from:s?e.from:void 0,reset:s},a))}}function ol(e){const{to:t,from:r}=e=P_(e),n=new Set;return Pc.obj(t)&&il(t,n),Pc.obj(r)&&il(r,n),e.keys=n.size?Array.from(n):null,e}function sl(e){const t=ol(e);return Pc.und(t.default)&&(t.default=I_(t)),t}function il(e,t){Rc(e,((e,r)=>null!=e&&t.add(r)))}const cl=["onStart","onRest","onChange","onPause","onResume"];function ul(e,t,r){e.animation[r]=t[r]!==E_(t,r)?k_(t[r],e.key):void 0}function _l(e,t,...r){var n,a,o,s;null==(n=(a=e.animation)[t])||n.call(a,...r),null==(o=(s=e.defaultProps)[t])||o.call(s,...r)}const ll=["onStart","onChange","onRest"];let dl=1;class yl{constructor(e,t){this.id=dl++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(w_({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];Pc.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(ol(e)),this}start(e){let{queue:t}=this;return e?t=Mc(e).map(ol):this.queue=[],this._flush?this._flush(this,t):(vl(this,t),pl(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;Ac(Mc(t),(t=>r[t].stop(!!e)))}else V_(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Pc.und(e))this.start({pause:!0});else{const t=this.springs;Ac(Mc(e),(e=>t[e].pause()))}return this}resume(e){if(Pc.und(e))this.start({pause:!1});else{const t=this.springs;Ac(Mc(e),(e=>t[e].resume()))}return this}each(e){Rc(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,a=this._changed.size>0;(n&&!this._started||a&&!this._started)&&(this._started=!0,Nc(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!n&&this._started,s=a||o&&r.size?this.get():null;a&&t.size&&Nc(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),o&&(this._started=!1,Nc(r,(([e,t])=>{t.value=s,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}dc.onFrame(this._onFrame)}}function pl(e,t){return Promise.all(t.map((t=>gl(e,t)))).then((t=>B_(e,t)))}async function gl(e,t,r){const{keys:n,to:a,from:o,loop:s,onRest:i,onResolve:c}=t,u=Pc.obj(t.default)&&t.default;s&&(t.loop=!1),!1===a&&(t.to=null),!1===o&&(t.from=null);const _=Pc.arr(a)||Pc.fun(a)?a:void 0;_?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ac(ll,(r=>{const n=t[r];if(Pc.fun(n)){const a=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=a.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):a.set(n,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[r]=t[r])}}));const l=e._state;t.pause===!l.paused?(l.paused=t.pause,Fc(t.pause?l.pauseQueue:l.resumeQueue)):l.paused&&(t.pause=!0);const d=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),y=!0===t.cancel||!0===E_(t,"cancel");(_||y&&l.asyncId)&&d.push(D_(++e._lastAsyncId,{props:t,state:l,actions:{pause:Oc,resume:Oc,start(t,r){y?(V_(l,e._lastAsyncId),r(U_(e))):(t.onRest=i,r($_(_,t,l,e)))}}})),l.paused&&await new Promise((e=>{l.resumeQueue.add(e)}));const p=B_(e,await Promise.all(d));if(s&&p.finished&&(!r||!p.noop)){const r=al(t,s,a);if(r)return vl(e,[r]),gl(e,r,!0)}return c&&dc.batchedUpdates((()=>c(p,e,e.item))),p}function ml(e,t){const r=w_({},e.springs);return t&&Ac(Mc(t),(e=>{Pc.und(e.keys)&&(e=ol(e)),Pc.obj(e.to)||(e=w_({},e,{to:void 0})),xl(r,e,(e=>fl(e)))})),hl(e,r),r}function hl(e,t){Rc(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,Mu(t,e))}))}function fl(e,t){const r=new rl;return r.key=e,t&&Mu(r,t),r}function xl(e,t,r){t.keys&&Ac(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function vl(e,t){Ac(t,(t=>{xl(e.springs,t,(t=>fl(t,e)))}))}const wl=["children"],bl=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}(e,wl);const a=(0,n.useContext)(Sl),o=r.pause||!!a.pause,s=r.immediate||!!a.immediate;r=function(e,t){const[r]=(0,n.useState)((()=>({inputs:t,result:e()}))),a=(0,n.useRef)(),o=a.current;let s=o;if(s){const r=Boolean(t&&s.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r{a.current=s,o==r&&(r.inputs=r.result=void 0)}),[s]),s.result}((()=>({pause:o,immediate:s})),[o,s]);const{Provider:i}=Sl;return n.createElement(i,{value:r},t)},Sl=(kl=bl,El={},Object.assign(kl,n.createContext(El)),kl.Provider._context=kl,kl.Consumer._context=kl,kl);var kl,El;bl.Provider=Sl.Provider,bl.Consumer=Sl.Consumer;const Tl=()=>{const e=[],t=function(t){Yu(`${qu}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const n=[];return Ac(e,((e,a)=>{if(Pc.und(t))n.push(e.start());else{const o=r(t,e,a);o&&n.push(e.start(o))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return Ac(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ac(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ac(e,(e=>e.set(t)))},t.start=function(t){const r=[];return Ac(e,((e,n)=>{if(Pc.und(t))r.push(e.start());else{const a=this._getProps(t,e,n);a&&r.push(e.start(a))}})),r},t.stop=function(){return Ac(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ac(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return Pc.fun(e)?e(r,t):e};return t._getProps=r,t};function Il(e,t){const r=Pc.fun(e),[[a],o]=function(e,t,r){const a=Pc.fun(t)&&t;a&&!r&&(r=[]);const o=(0,n.useMemo)((()=>a||3==arguments.length?Tl():void 0),[]),s=(0,n.useRef)(0),i=e_(),c=(0,n.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const r=ml(e,t);return s.current>0&&!c.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?pl(e,t):new Promise((n=>{hl(e,r),c.queue.push((()=>{n(pl(e,t))})),i()}))}})),[]),u=(0,n.useRef)([...c.ctrls]),_=[],l=n_(e)||0;function d(e,r){for(let n=e;n{Ac(u.current.slice(e,l),(e=>{(function(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)})(e,o),e.stop(!0)})),u.current.length=e,d(l,e)}),[e]),(0,n.useMemo)((()=>{d(0,Math.min(l,e))}),r);const y=u.current.map(((e,t)=>ml(e,_[t]))),p=(0,n.useContext)(bl),g=n_(p),m=p!==g&&function(e){for(const t in e)return!0;return!1}(p);Ju((()=>{s.current++,c.ctrls=u.current;const{queue:e}=c;e.length&&(c.queue=[],Ac(e,(e=>e()))),Ac(u.current,((e,t)=>{null==o||o.add(e),m&&e.start({default:p});const r=_[t];r&&(function(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),t_((()=>()=>{Ac(c.ctrls,(e=>e.stop(!0)))}));const h=y.map((e=>w_({},e)));return o?[h,o]:h}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[a,o]:a}let Cl;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Cl||(Cl={}));class Ol extends G_{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=hu(...t);const r=this._get(),n=g_(r);s_(this,n.create(r))}advance(e){const t=this._get();zc(t,this.get())||(o_(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&zl(this._active)&&Al(this)}_get(){const e=Pc.arr(this.source)?this.source.map(Ou):Mc(Ou(this.source));return this.calc(...e)}_start(){this.idle&&!zl(this._active)&&(this.idle=!1,Ac(i_(this),(e=>{e.done=!1})),$c.skipAnimation?(dc.batchedUpdates((()=>this.advance())),Al(this)):Kc.start(this))}_attach(){let e=1;Ac(Mc(this.source),(t=>{Cu(t)&&Mu(t,this),q_(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ac(Mc(this.source),(e=>{Cu(e)&&Nu(e,this)})),this._active.clear(),Al(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Mc(this.source).reduce(((e,t)=>Math.max(e,(q_(t)?t.priority:0)+1)),0))}}function Pl(e){return!1!==e.idle}function zl(e){return!e.size||Array.from(e).every(Pl)}function Al(e){e.idle||(e.idle=!0,Ac(i_(e),(e=>{e.done=!0})),zu(e,{type:"idle",parent:e}))}function Rl(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n=0||(a[r]=e[r]);return a}$c.assign({createStringInterpolator:Hu,to:(e,t)=>new Ol(e,t)}),Kc.advance;const Ml=["style","children","scrollTop","scrollLeft","viewBox"],Nl=/^--/;function Fl(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Nl.test(e)||Dl.hasOwnProperty(e)&&Dl[e]?(""+t).trim():t+"px"}const Ll={};let Dl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Bl=["Webkit","Ms","Moz","O"];Dl=Object.keys(Dl).reduce(((e,t)=>(Bl.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),Dl);const Zl=["x","y","z"],jl=/^(matrix|translate|scale|rotate|skew)/,Ul=/^(translate)/,$l=/^(rotate|skew)/,Vl=(e,t)=>Pc.num(e)&&0!==e?e+t:e,Wl=(e,t)=>Pc.arr(e)?e.every((e=>Wl(e,t))):Pc.num(e)?e===t:parseFloat(e)===t;class Hl extends d_{constructor(e){let{x:t,y:r,z:n}=e,a=Rl(e,Zl);const o=[],s=[];(t||r||n)&&(o.push([t||0,r||0,n||0]),s.push((e=>[`translate3d(${e.map((e=>Vl(e,"px"))).join(",")})`,Wl(e,0)]))),Rc(a,((e,t)=>{if("transform"===t)o.push([e||""]),s.push((e=>[e,""===e]));else if(jl.test(t)){if(delete a[t],Pc.und(e))return;const r=Ul.test(t)?"px":$l.test(t)?"deg":"";o.push(Mc(e)),s.push("rotate3d"===t?([e,t,n,a])=>[`rotate3d(${e},${t},${n},${Vl(a,r)})`,Wl(a,0)]:e=>[`${t}(${e.map((e=>Vl(e,r))).join(",")})`,Wl(e,t.startsWith("scale")?1:0)])}})),o.length&&(a.transform=new ql(o,s)),super(a)}}class ql extends Au{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ac(this.inputs,((r,n)=>{const a=Ou(r[0]),[o,s]=this.transforms[n](Pc.arr(a)?a:r.map(Ou));e+=" "+o,t=t&&s})),t?"none":e}observerAdded(e){1==e&&Ac(this.inputs,(e=>Ac(e,(e=>Cu(e)&&Mu(e,this)))))}observerRemoved(e){0==e&&Ac(this.inputs,(e=>Ac(e,(e=>Cu(e)&&Nu(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),zu(this,e)}}const Kl=["scrollTop","scrollLeft"];$c.assign({batchedUpdates:o.unstable_batchedUpdates,createStringInterpolator:Hu,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const Gl=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new d_(e)),getComponentProps:n=(e=>e)}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=e=>{const t=v_(e)||"Anonymous";return(e=Pc.str(e)?o[e]||(o[e]=h_(e,a)):e[x_]||(e[x_]=h_(e,a))).displayName=`Animated(${t})`,e};return Rc(e,((t,r)=>{Pc.arr(e)&&(r=v_(t)),o[r]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:a,children:o,scrollTop:s,scrollLeft:i,viewBox:c}=n,u=Rl(n,Ml),_=Object.values(u),l=Object.keys(u).map((t=>r||e.hasAttribute(t)?t:Ll[t]||(Ll[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in a)if(a.hasOwnProperty(t)){const r=Fl(t,a[t]);Nl.test(t)?e.style.setProperty(t,r):e.style[t]=r}l.forEach(((t,r)=>{e.setAttribute(t,_[r])})),void 0!==s&&(e.scrollTop=s),void 0!==i&&(e.scrollLeft=i),void 0!==c&&e.setAttribute("viewBox",c)},createAnimatedStyle:e=>new Hl(e),getComponentProps:e=>Rl(e,Kl)}),Yl=Gl.animated;var Ql=(0,hs.Z)("g")(Xl||(Xl=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}(["\n stroke-width: 3px;\n\n & > .colored-stroke {\n stroke: ",";\n fill: none;\n stroke-width: ","px;\n }\n\n & > .colored-fill {\n fill: ",";\n }\n\n & > .edge-text {\n font-size: ","px;\n font-weight: 900;\n }\n\n & > .edge-text-bg {\n fill: none;\n fill-opacity: 1;\n stroke: #ffffff;\n stroke-width: ","px;\n stroke-linecap: butt;\n stroke-linejoin: miter;\n stroke-opacity: 1;\n }\n\n & > .edge-marker {\n font-size: 16px;\n }\n"],["\n stroke-width: 3px;\n\n & > .colored-stroke {\n stroke: ",";\n fill: none;\n stroke-width: ","px;\n }\n\n & > .colored-fill {\n fill: ",";\n }\n\n & > .edge-text {\n font-size: ","px;\n font-weight: 900;\n }\n\n & > .edge-text-bg {\n fill: none;\n fill-opacity: 1;\n stroke: #ffffff;\n stroke-width: ","px;\n stroke-linecap: butt;\n stroke-linejoin: miter;\n stroke-opacity: 1;\n }\n\n & > .edge-marker {\n font-size: 16px;\n }\n"])),(function(e){return e.color}),(function(e){return e.strokeWidth}),(function(e){return e.color}),(function(e){var t=e.strokeWidth;return t>1?10+2*t:10*t}),(function(e){return e.strokeWidth}));const Jl=Ql;var Xl;const ed=function(e){var t,r=e.reward,a=e.edgeWidth,o=void 0===a?1:a,s=e.edgeStyle,i=void 0===s?"normal":s,c=e.showRewardText,u=void 0===c||c,_=e.arc_type,l=e.source_x,d=e.source_y,y=e.arc_x,p=e.arc_y,g=e.target_x,m=e.target_y,h=e.showTutorial,f=void 0!==h&&h,x=e.color,v="edge-".concat(e.idx),w="edge-background-".concat(e.idx),b="marker-arrow-".concat(e.idx),S="marker-arrow-background-".concat(e.idx),k="edge-text-".concat(e.idx),E="edge-text-bg-".concat(e.idx);t="straight"==_?"M ".concat(l," ").concat(d," ").concat(g," ").concat(m):"M ".concat(l," ").concat(d," Q ").concat(y," ").concat(p," ").concat(g," ").concat(m);var T,I={},C=o;switch(i){case"normal":T=null,I={};break;case"dashed":T="4,4",C=1.5*o,I={};break;case"animated":T="4,4",C=1.5*o,I={loop:!0,from:{dashOffset:0},dashOffset:l-g<0||d-m<0?-100:100,delay:0,config:{duration:1e4}};break;case"highlighted":C=1.5*o,T=null,I={}}var O=Il(I).dashOffset;return n.createElement(n.Fragment,null,"#f7f7f7"===x&&n.createElement(Jl,{color:"black",strokeWidth:C+.5},n.createElement(Yl.path,{strokeDashoffset:O?O.to((function(e){return e})):0,className:"colored-stroke",id:w,strokeDasharray:T||null,markerEnd:"url(#".concat(S,")"),markerUnits:"userSpaceOnUse",d:t}),n.createElement("marker",{id:S,markerWidth:"5",markerHeight:"4",className:"colored-fill",refX:"4",refY:"2",orient:"auto"},n.createElement("polygon",{points:"0.4 0, 5.3 2, 0.4 4"}))),n.createElement(uc,{tutorialId:"practice_edge",isTutorial:f,isShowTip:!1,onTutorialClose:e.onTutorialClose,placement:"top"},n.createElement(Jl,{color:x,strokeWidth:C},n.createElement(Yl.path,{strokeDashoffset:O?O.to((function(e){return e})):0,className:"colored-stroke",id:v,strokeDasharray:T||null,markerEnd:"url(#".concat(b,")"),markerUnits:"userSpaceOnUse",d:t}),u?n.createElement(n.Fragment,null,n.createElement("text",{id:E,className:"edge-text-bg edge-text"},n.createElement("textPath",{alignmentBaseline:"text-after-edge",xlinkHref:"#".concat(v),startOffset:"35%"},n.createElement("tspan",{dy:3},r))),n.createElement("text",{id:k,className:"edge-text colored-fill"},n.createElement("textPath",{alignmentBaseline:"text-after-edge",xlinkHref:"#".concat(v),startOffset:"35%"},n.createElement("tspan",{dy:3},r)))):null,n.createElement("marker",{id:b,markerWidth:"5",markerHeight:"4",className:"colored-fill",refX:"4",refY:"2",orient:"auto"},n.createElement("polygon",{points:"0 0, 5 2, 0 4"})))))},td=function(e){var t=e.edges,r=e.nodes,a=e.onNodeClickHandler,o=e.currentNodeId,s=void 0===o?null:o,i=e.possibleMoves,c=void 0===i?[]:i,u=e.allowedMoves,_=void 0===u?[]:u,l=e.size,d=void 0===l?470:l,y=e.nodeSize,p=void 0===y?20:y,g=e.edgeWidth,m=void 0===g?2.5:g,h=e.showRewardText,f=void 0!==h&&h,x=e.showNodeTutorial,v=void 0!==x&&x,w=e.showEdgeTutorial,b=void 0!==w&&w,S=e.blur,k=void 0!==S&&S,E=e.allRewards,T=void 0===E?[-50,0,100,200,400]:E,I=e.colors,C=void 0===I?["#c51b7d","#e9a3c9","#e6f5d0","#a1d76a","#4d9221"]:I,O=e.disableClick,P=void 0!==O&&O,z=function(e){return 2*e+d/2},A=function(e){return 2*e+d/2},R=(0,n.useCallback)((function(e,t){return e?"active":P||k?"disabled":c.includes(t)?"next":"normal"}),[c,P,k]),M=(0,n.useCallback)((function(e){var r,n=null===(r=t.find((function(t){return t.source_num===s&&t.target_num===e})))||void 0===r?void 0:r.reward;return null===n?"#ffffff":C[T.indexOf(n)]}),[t,s,T,C]);return n.createElement("svg",{width:d,height:d},n.createElement("defs",null,n.createElement("filter",{id:"static-network-blur",x:"0",y:"0"},n.createElement("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"7"}))),n.createElement("g",{filter:k?"url(#static-network-blur)":""},n.createElement("g",null,r.map((function(t,r){var o=s===t.node_num;return n.createElement(_c,{x:z(t.x),y:A(t.y),nodeInx:t.node_num,Text:t.display_name,Radius:p,onNodeClick:a,status:R(o,t.node_num),isValidMove:_.includes(t.node_num),key:"node-"+r,showTutorial:v&&o,onTutorialClose:4!=t.node_num?e.onTutorialClose:null,nextNodeColor:M(t.node_num)})}))),n.createElement("g",null,t.slice().sort((function(e,t){var r=e.source_num===s,n=t.source_num===s;return r&&!n?1:!r&&n?-1:0})).map((function(e,t){return n.createElement(ed,{reward:e.reward,edgeWidth:m,edgeStyle:e.edgeStyle,idx:t,showRewardText:f,arc_type:e.arc_type,source_x:z(e.source_x),source_y:A(e.source_y),arc_x:z(e.arc_x),arc_y:A(e.arc_y),target_x:z(e.target_x),target_y:A(e.target_y),key:"edge-"+t,showTutorial:b&&0===t,onTutorialClose:null,color:C[T.indexOf(e.reward)]})})))))};var rd=r(2605);const nd=["component","direction","spacing","divider","children"];function ad(e,t){const r=n.Children.toArray(e).filter(Boolean);return r.reduce(((e,a,o)=>(e.push(a),o[t.root]})((({ownerState:e,theme:t})=>{let r=(0,D.Z)({display:"flex",flexDirection:"column"},(0,Te.k9)({theme:t},(0,Te.P$)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,rd.hB)(t),a=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),o=(0,Te.P$)({values:e.direction,base:a}),s=(0,Te.P$)({values:e.spacing,base:a});"object"==typeof o&&Object.keys(o).forEach(((e,t,r)=>{if(!o[e]){const n=t>0?o[r[t-1]]:"column";o[e]=n}}));const i=(t,r)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${a=r?o[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[a]}`]:(0,rd.NA)(n,t)}};var a};r=(0,Z.Z)(r,(0,Te.k9)({theme:t},s,i))}return r=(0,Te.dt)(t.breakpoints,r),r})),sd=n.forwardRef((function(e,t){const r=V((0,q.Z)({props:e,name:"MuiStack"})),{component:n="div",direction:a="column",spacing:o=0,divider:s,children:i}=r,c=(0,L.Z)(r,nd),u={direction:a,spacing:o};return(0,J.jsx)(od,(0,D.Z)({as:n,ownerState:u,ref:t},c,{children:s?ad(i,s):i}))})),id=sd;var cd=(0,hs.Z)(ge)((function(){return{padding:0,elevation:0,textAlign:"left"}})),ud=function(e){var t=e.children;return n.createElement(cd,{elevation:0},t)};const _d=function(e){var t=e.showComment,r=void 0===t||t,a=e.showTutorialScore,o=void 0!==a&&a,s=e.showTutorialComment,i=void 0!==s&&s,c=(e.showTutorialTotalScore,e.showCumulativePoints),u=void 0===c||c,_=e.showTotalPoints,l=void 0===_||_;return n.createElement(id,{spacing:0,sx:{paddingTop:"20px"}},(u||l)&&n.createElement(n.Fragment,null,u&&n.createElement(ud,null,n.createElement(uc,{tutorialId:"practice_step_score",isTutorial:o,isShowTip:!1,onTutorialClose:e.onTutorialClose,placement:"right"},n.createElement(ne,{variant:"h5",component:"div"},e.cumulativePoints," Points")),n.createElement(ne,{variant:"subtitle1",component:"div"},"on current Network"))),r?n.createElement(ud,null,n.createElement(ne,{gutterBottom:!0,variant:"subtitle1",component:"div"},"Player ",e.id," comment:"),n.createElement(uc,{tutorialId:"social_learning_observation_comment",isTutorial:i,isShowTip:!1,onTutorialClose:e.onTutorialCommentClose,placement:"right"},n.createElement(zo,{id:"outlined-multiline-static",multiline:!0,fullWidth:!0,rows:10,InputProps:{readOnly:!0},defaultValue:e.comment?e.comment:"No comment"}))):null)};var ld=function(){return ld=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?a:" "),n.createElement(_c,{x:u+a*i,y:r.height/2+i/2,nodeInx:s.node_num,Text:s.display_name,Radius:o,onNodeClick:function(){},strokeColor:c?"red":"black",status:a>0?"next":"active",nextNodeColor:a>0&&T(s.node_num,p[a-1]),isValidMove:!1,key:"linear-solution-node-"+a}),n.createElement(dd,ld({},e,{colors:E,allRewards:b,edges:y,moves:p,moveIdx:a,gap:i,nodeRadius:o,onset:u,edgeWidth:l,id:f,size:r})))})),";"))))};function pd(e){return(0,Y.Z)("MuiCircularProgress",e)}(0,G.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gd=["className","color","disableShrink","size","style","thickness","value","variant"];let md,hd,fd,xd,vd=e=>e;const wd=st(md||(md=vd` 0% { transform: rotate(0deg); }