%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/startup-life/assets/
Upload File :
Create Path :
Current File : /home/opti/public_html/startup-life/assets/Menu-c26e62ae.js

import{r as o,a4 as Ze,j as F,a5 as Je,T as Qe,m as X,_ as p,a6 as et,a7 as tt,V as nt,i as xe,h as Pe,s as Q,l as we,n as se,k as Ie,o as Se,a2 as ot,p as rt}from"./index-5492fbe1.js";import{u as st,F as it}from"./useFormControl-45c447f9.js";import{u as ce}from"./useForkRef-ff55d5c8.js";import{u as ge}from"./TransitionGroupContext-29effe25.js";import{a as ye,T as at,r as lt,g as De,b as ut,o as be,M as ct}from"./Modal-01a2ce69.js";import{i as Le,u as ve}from"./useSlotProps-b42d44e4.js";import"./index-e5978b8b.js";import{u as Ge}from"./useTheme-0dfa0cbc.js";import{P as dt}from"./Paper-26f2abc8.js";function Ve(e,t=166){let n;function r(...s){const u=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(u,t)}return r.clear=()=>{clearTimeout(n)},r}function xn(e,t){var n,r;return o.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}let Oe=0;function pt(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect(()=>{t==null&&(Oe+=1,n(`mui-${Oe}`))},[t]),r}const Ne=Ze["useId".toString()];function Pn(e){if(Ne!==void 0){const t=Ne();return e??t}return pt(e)}function ft(e){return e==null||Object.keys(e).length===0}function mt(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?s=>t(ft(s)?n:s):t;return F.jsx(Je,{styles:r})}function ht({styles:e,themeId:t,defaultTheme:n={}}){const r=Qe(n),s=typeof e=="function"?e(t&&r[t]||r):e;return F.jsx(mt,{styles:s})}const gt=["onChange","maxRows","minRows","style","value"];function he(e){return parseInt(e,10)||0}const yt={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function We(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const bt=o.forwardRef(function(t,n){const{onChange:r,maxRows:s,minRows:u=1,style:y,value:h}=t,g=X(t,gt),{current:v}=o.useRef(h!=null),R=o.useRef(null),S=ce(n,R),T=o.useRef(null),b=o.useRef(0),[W,M]=o.useState({outerHeightStyle:0}),x=o.useCallback(()=>{const i=R.current,d=ye(i).getComputedStyle(i);if(d.width==="0px")return{outerHeightStyle:0};const a=T.current;a.style.width=d.width,a.value=i.value||t.placeholder||"x",a.value.slice(-1)===`
`&&(a.value+=" ");const C=d.boxSizing,z=he(d.paddingBottom)+he(d.paddingTop),D=he(d.borderBottomWidth)+he(d.borderTopWidth),B=a.scrollHeight;a.value="x";const k=a.scrollHeight;let O=B;u&&(O=Math.max(Number(u)*k,O)),s&&(O=Math.min(Number(s)*k,O)),O=Math.max(O,k);const U=O+(C==="border-box"?z+D:0),f=Math.abs(O-B)<=1;return{outerHeightStyle:U,overflow:f}},[s,u,t.placeholder]),m=(i,c)=>{const{outerHeightStyle:d,overflow:a}=c;return b.current<20&&(d>0&&Math.abs((i.outerHeightStyle||0)-d)>1||i.overflow!==a)?(b.current+=1,{overflow:a,outerHeightStyle:d}):i},E=o.useCallback(()=>{const i=x();We(i)||M(c=>m(c,i))},[x]);ge(()=>{const i=()=>{const B=x();We(B)||et.flushSync(()=>{M(k=>m(k,B))})},c=()=>{b.current=0,i()};let d;const a=Ve(c),C=R.current,z=ye(C);z.addEventListener("resize",a);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(c),D.observe(C)),()=>{a.clear(),cancelAnimationFrame(d),z.removeEventListener("resize",a),D&&D.disconnect()}},[x]),ge(()=>{E()}),o.useEffect(()=>{b.current=0},[h]);const l=i=>{b.current=0,v||E(),r&&r(i)};return F.jsxs(o.Fragment,{children:[F.jsx("textarea",p({value:h,onChange:l,ref:S,rows:u,style:p({height:W.outerHeightStyle,overflow:W.overflow?"hidden":void 0},y)},g)),F.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:T,tabIndex:-1,style:p({},yt.shadow,y,{paddingTop:0,paddingBottom:0})})]})});function vt({props:e,states:t,muiFormControl:n}){return t.reduce((r,s)=>(r[s]=e[s],n&&typeof e[s]>"u"&&(r[s]=n[s]),r),{})}function xt(e){return F.jsx(ht,p({},e,{defaultTheme:tt,themeId:nt}))}function Be(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Pt(e,t=!1){return e&&(Be(e.value)&&e.value!==""||t&&Be(e.defaultValue)&&e.defaultValue!=="")}function wn(e){return e.startAdornment}function wt(e){return Pe("MuiInputBase",e)}const St=xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ze=St,Et=["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"],Rt=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ie(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ct=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Tt=e=>{const{classes:t,color:n,disabled:r,error:s,endAdornment:u,focused:y,formControl:h,fullWidth:g,hiddenLabel:v,multiline:R,readOnly:S,size:T,startAdornment:b,type:W}=e,M={root:["root",`color${Ie(n)}`,r&&"disabled",s&&"error",g&&"fullWidth",y&&"focused",h&&"formControl",T&&T!=="medium"&&`size${Ie(T)}`,R&&"multiline",b&&"adornedStart",u&&"adornedEnd",v&&"hiddenLabel",S&&"readOnly"],input:["input",r&&"disabled",W==="search"&&"inputTypeSearch",R&&"inputMultiline",T==="small"&&"inputSizeSmall",v&&"inputHiddenLabel",b&&"inputAdornedStart",u&&"inputAdornedEnd",S&&"readOnly"]};return Se(M,wt,t)},Mt=Q("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rt})(({theme:e,ownerState:t})=>p({},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",[`&.${ze.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&p({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),It=Q("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ct})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=p({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},u=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return p({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ze.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus:-ms-input-placeholder":u,"&:focus::-ms-input-placeholder":u},[`&.${ze.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Lt=F.jsx(xt,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zt=o.forwardRef(function(t,n){var r;const s=we({props:t,name:"MuiInputBase"}),{"aria-describedby":u,autoComplete:y,autoFocus:h,className:g,components:v={},componentsProps:R={},defaultValue:S,disabled:T,disableInjectingGlobalStyles:b,endAdornment:W,fullWidth:M=!1,id:x,inputComponent:m="input",inputProps:E={},inputRef:l,maxRows:i,minRows:c,multiline:d=!1,name:a,onBlur:C,onChange:z,onClick:D,onFocus:B,onKeyDown:k,onKeyUp:O,placeholder:U,readOnly:f,renderSuffix:_,rows:N,slotProps:G={},slots:P={},startAdornment:A,type:ie="text",value:q}=s,Ee=X(s,Et),te=E.value!=null?E.value:q,{current:ne}=o.useRef(te!=null),Y=o.useRef(),ae=o.useCallback(L=>{},[]),de=ce(Y,l,E.ref,ae),[le,oe]=o.useState(!1),I=st(),j=vt({props:s,muiFormControl:I,states:["color","disabled","error","hiddenLabel","size","required","filled"]});j.focused=I?I.focused:le,o.useEffect(()=>{!I&&T&&le&&(oe(!1),C&&C())},[I,T,le,C]);const w=I&&I.onFilled,$=I&&I.onEmpty,H=o.useCallback(L=>{Pt(L)?w&&w():$&&$()},[w,$]);ge(()=>{ne&&H({value:te})},[te,H,ne]);const pe=L=>{if(j.disabled){L.stopPropagation();return}B&&B(L),E.onFocus&&E.onFocus(L),I&&I.onFocus?I.onFocus(L):oe(!0)},Z=L=>{C&&C(L),E.onBlur&&E.onBlur(L),I&&I.onBlur?I.onBlur(L):oe(!1)},J=(L,...$e)=>{if(!ne){const He=L.target||Y.current;if(He==null)throw new Error(ot(1));H({value:He.value})}E.onChange&&E.onChange(L,...$e),z&&z(L,...$e)};o.useEffect(()=>{H(Y.current)},[]);const fe=L=>{Y.current&&L.currentTarget===L.target&&Y.current.focus(),D&&D(L)};let re=m,V=E;d&&re==="input"&&(N?V=p({type:void 0,minRows:N,maxRows:N},V):V=p({type:void 0,maxRows:i,minRows:c},V),re=bt);const me=L=>{H(L.animationName==="mui-auto-fill-cancel"?Y.current:{value:"x"})};o.useEffect(()=>{I&&I.setAdornedStart(!!A)},[I,A]);const ee=p({},s,{color:j.color||"primary",disabled:j.disabled,endAdornment:W,error:j.error,focused:j.focused,formControl:I,fullWidth:M,hiddenLabel:j.hiddenLabel,multiline:d,size:j.size,startAdornment:A,type:ie}),K=Tt(ee),ke=P.root||v.Root||Mt,Re=G.root||R.root||{},Ae=P.input||v.Input||It;return V=p({},V,(r=G.input)!=null?r:R.input),F.jsxs(o.Fragment,{children:[!b&&Lt,F.jsxs(ke,p({},Re,!Le(ke)&&{ownerState:p({},ee,Re.ownerState)},{ref:n,onClick:fe},Ee,{className:se(K.root,Re.className,g,f&&"MuiInputBase-readOnly"),children:[A,F.jsx(it.Provider,{value:null,children:F.jsx(Ae,p({ownerState:ee,"aria-invalid":j.error,"aria-describedby":u,autoComplete:y,autoFocus:h,defaultValue:S,disabled:j.disabled,id:x,onAnimationStart:me,name:a,placeholder:U,readOnly:f,required:j.required,rows:N,value:te,onKeyDown:k,onKeyUp:O,type:ie},V,!Le(Ae)&&{as:re,ownerState:p({},ee,V.ownerState)},{ref:de,className:se(K.input,V.className,f&&"MuiInputBase-readOnly"),onBlur:Z,onChange:J,onFocus:pe}))}),W,_?_(p({},j,{startAdornment:A})):null]}))]})}),Sn=zt,Ft=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fe(e){return`scale(${e}, ${e**2})`}const kt={entering:{opacity:1,transform:Fe(1)},entered:{opacity:1,transform:"none"}},Ce=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),qe=o.forwardRef(function(t,n){const{addEndListener:r,appear:s=!0,children:u,easing:y,in:h,onEnter:g,onEntered:v,onEntering:R,onExit:S,onExited:T,onExiting:b,style:W,timeout:M="auto",TransitionComponent:x=at}=t,m=X(t,Ft),E=o.useRef(),l=o.useRef(),i=Ge(),c=o.useRef(null),d=ce(c,u.ref,n),a=f=>_=>{if(f){const N=c.current;_===void 0?f(N):f(N,_)}},C=a(R),z=a((f,_)=>{lt(f);const{duration:N,delay:G,easing:P}=De({style:W,timeout:M,easing:y},{mode:"enter"});let A;M==="auto"?(A=i.transitions.getAutoHeightDuration(f.clientHeight),l.current=A):A=N,f.style.transition=[i.transitions.create("opacity",{duration:A,delay:G}),i.transitions.create("transform",{duration:Ce?A:A*.666,delay:G,easing:P})].join(","),g&&g(f,_)}),D=a(v),B=a(b),k=a(f=>{const{duration:_,delay:N,easing:G}=De({style:W,timeout:M,easing:y},{mode:"exit"});let P;M==="auto"?(P=i.transitions.getAutoHeightDuration(f.clientHeight),l.current=P):P=_,f.style.transition=[i.transitions.create("opacity",{duration:P,delay:N}),i.transitions.create("transform",{duration:Ce?P:P*.666,delay:Ce?N:N||P*.333,easing:G})].join(","),f.style.opacity=0,f.style.transform=Fe(.75),S&&S(f)}),O=a(T),U=f=>{M==="auto"&&(E.current=setTimeout(f,l.current||0)),r&&r(c.current,f)};return o.useEffect(()=>()=>{clearTimeout(E.current)},[]),F.jsx(x,p({appear:s,in:h,nodeRef:c,onEnter:z,onEntered:D,onEntering:C,onExit:k,onExited:O,onExiting:B,addEndListener:U,timeout:M==="auto"?null:M},m,{children:(f,_)=>o.cloneElement(u,p({style:p({opacity:0,transform:Fe(.75),visibility:f==="exited"&&!h?"hidden":void 0},kt[f],W,u.props.style),ref:d},_))}))});qe.muiSupportAuto=!0;const At=qe,$t=o.createContext({}),Ht=$t;function Dt(e){return Pe("MuiList",e)}xe("MuiList",["root","padding","dense","subheader"]);const Ot=["children","className","component","dense","disablePadding","subheader"],Nt=e=>{const{classes:t,disablePadding:n,dense:r,subheader:s}=e;return Se({root:["root",!n&&"padding",r&&"dense",s&&"subheader"]},Dt,t)},Wt=Q("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>p({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Bt=o.forwardRef(function(t,n){const r=we({props:t,name:"MuiList"}),{children:s,className:u,component:y="ul",dense:h=!1,disablePadding:g=!1,subheader:v}=r,R=X(r,Ot),S=o.useMemo(()=>({dense:h}),[h]),T=p({},r,{component:y,dense:h,disablePadding:g}),b=Nt(T);return F.jsx(Ht.Provider,{value:S,children:F.jsxs(Wt,p({as:y,className:se(b.root,u),ref:n,ownerState:T},R,{children:[v,s]}))})}),_t=Bt,jt=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Te(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _e(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Xe(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function ue(e,t,n,r,s,u){let y=!1,h=s(e,t,t?n:!1);for(;h;){if(h===e.firstChild){if(y)return!1;y=!0}const g=r?!1:h.disabled||h.getAttribute("aria-disabled")==="true";if(!h.hasAttribute("tabindex")||!Xe(h,u)||g)h=s(e,h,n);else return h.focus(),!0}return!1}const Kt=o.forwardRef(function(t,n){const{actions:r,autoFocus:s=!1,autoFocusItem:u=!1,children:y,className:h,disabledItemsFocusable:g=!1,disableListWrap:v=!1,onKeyDown:R,variant:S="selectedMenu"}=t,T=X(t,jt),b=o.useRef(null),W=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ge(()=>{s&&b.current.focus()},[s]),o.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(l,i)=>{const c=!b.current.style.width;if(l.clientHeight<b.current.clientHeight&&c){const d=`${ut(be(l))}px`;b.current.style[i.direction==="rtl"?"paddingLeft":"paddingRight"]=d,b.current.style.width=`calc(100% + ${d})`}return b.current}}),[]);const M=l=>{const i=b.current,c=l.key,d=be(i).activeElement;if(c==="ArrowDown")l.preventDefault(),ue(i,d,v,g,Te);else if(c==="ArrowUp")l.preventDefault(),ue(i,d,v,g,_e);else if(c==="Home")l.preventDefault(),ue(i,null,v,g,Te);else if(c==="End")l.preventDefault(),ue(i,null,v,g,_e);else if(c.length===1){const a=W.current,C=c.toLowerCase(),z=performance.now();a.keys.length>0&&(z-a.lastTime>500?(a.keys=[],a.repeating=!0,a.previousKeyMatched=!0):a.repeating&&C!==a.keys[0]&&(a.repeating=!1)),a.lastTime=z,a.keys.push(C);const D=d&&!a.repeating&&Xe(d,a);a.previousKeyMatched&&(D||ue(i,d,!1,g,Te,a))?l.preventDefault():a.previousKeyMatched=!1}R&&R(l)},x=ce(b,n);let m=-1;o.Children.forEach(y,(l,i)=>{if(!o.isValidElement(l)){m===i&&(m+=1,m>=y.length&&(m=-1));return}l.props.disabled||(S==="selectedMenu"&&l.props.selected||m===-1)&&(m=i),m===i&&(l.props.disabled||l.props.muiSkipListHighlight||l.type.muiSkipListHighlight)&&(m+=1,m>=y.length&&(m=-1))});const E=o.Children.map(y,(l,i)=>{if(i===m){const c={};return u&&(c.autoFocus=!0),l.props.tabIndex===void 0&&S==="selectedMenu"&&(c.tabIndex=0),o.cloneElement(l,c)}return l});return F.jsx(_t,p({role:"menu",ref:x,className:h,onKeyDown:M,tabIndex:s?0:-1},T,{children:E}))}),Ut=Kt;function Gt(e){return Pe("MuiPopover",e)}xe("MuiPopover",["root","paper"]);const Vt=["onEntering"],qt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Xt=["slotProps"];function je(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ke(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ue(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Me(e){return typeof e=="function"?e():e}const Yt=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"]},Gt,t)},Zt=Q(ct,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ye=Q(dt,{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}),Jt=o.forwardRef(function(t,n){var r,s,u;const y=we({props:t,name:"MuiPopover"}),{action:h,anchorEl:g,anchorOrigin:v={vertical:"top",horizontal:"left"},anchorPosition:R,anchorReference:S="anchorEl",children:T,className:b,container:W,elevation:M=8,marginThreshold:x=16,open:m,PaperProps:E={},slots:l,slotProps:i,transformOrigin:c={vertical:"top",horizontal:"left"},TransitionComponent:d=At,transitionDuration:a="auto",TransitionProps:{onEntering:C}={},disableScrollLock:z=!1}=y,D=X(y.TransitionProps,Vt),B=X(y,qt),k=(r=i==null?void 0:i.paper)!=null?r:E,O=o.useRef(),U=ce(O,k.ref),f=p({},y,{anchorOrigin:v,anchorReference:S,elevation:M,marginThreshold:x,externalPaperSlotProps:k,transformOrigin:c,TransitionComponent:d,transitionDuration:a,TransitionProps:D}),_=Yt(f),N=o.useCallback(()=>{if(S==="anchorPosition")return R;const w=Me(g),H=(w&&w.nodeType===1?w:be(O.current).body).getBoundingClientRect();return{top:H.top+je(H,v.vertical),left:H.left+Ke(H,v.horizontal)}},[g,v.horizontal,v.vertical,R,S]),G=o.useCallback(w=>({vertical:je(w,c.vertical),horizontal:Ke(w,c.horizontal)}),[c.horizontal,c.vertical]),P=o.useCallback(w=>{const $={width:w.offsetWidth,height:w.offsetHeight},H=G($);if(S==="none")return{top:null,left:null,transformOrigin:Ue(H)};const pe=N();let Z=pe.top-H.vertical,J=pe.left-H.horizontal;const fe=Z+$.height,re=J+$.width,V=ye(Me(g)),me=V.innerHeight-x,ee=V.innerWidth-x;if(x!==null&&Z<x){const K=Z-x;Z-=K,H.vertical+=K}else if(x!==null&&fe>me){const K=fe-me;Z-=K,H.vertical+=K}if(x!==null&&J<x){const K=J-x;J-=K,H.horizontal+=K}else if(re>ee){const K=re-ee;J-=K,H.horizontal+=K}return{top:`${Math.round(Z)}px`,left:`${Math.round(J)}px`,transformOrigin:Ue(H)}},[g,S,N,G,x]),[A,ie]=o.useState(m),q=o.useCallback(()=>{const w=O.current;if(!w)return;const $=P(w);$.top!==null&&(w.style.top=$.top),$.left!==null&&(w.style.left=$.left),w.style.transformOrigin=$.transformOrigin,ie(!0)},[P]);o.useEffect(()=>(z&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q)),[g,z,q]);const Ee=(w,$)=>{C&&C(w,$),q()},te=()=>{ie(!1)};o.useEffect(()=>{m&&q()}),o.useImperativeHandle(h,()=>m?{updatePosition:()=>{q()}}:null,[m,q]),o.useEffect(()=>{if(!m)return;const w=Ve(()=>{q()}),$=ye(g);return $.addEventListener("resize",w),()=>{w.clear(),$.removeEventListener("resize",w)}},[g,m,q]);let ne=a;a==="auto"&&!d.muiSupportAuto&&(ne=void 0);const Y=W||(g?be(Me(g)).body:void 0),ae=(s=l==null?void 0:l.root)!=null?s:Zt,de=(u=l==null?void 0:l.paper)!=null?u:Ye,le=ve({elementType:de,externalSlotProps:p({},k,{style:A?k.style:p({},k.style,{opacity:0})}),additionalProps:{elevation:M,ref:U},ownerState:f,className:se(_.paper,k==null?void 0:k.className)}),oe=ve({elementType:ae,externalSlotProps:(i==null?void 0:i.root)||{},externalForwardedProps:B,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Y,open:m},ownerState:f,className:se(_.root,b)}),{slotProps:I}=oe,j=X(oe,Xt);return F.jsx(ae,p({},j,!Le(ae)&&{slotProps:I,disableScrollLock:z},{children:F.jsx(d,p({appear:!0,in:m,onEntering:Ee,onExited:te,timeout:ne},D,{children:F.jsx(de,p({},le,{children:T}))}))}))}),Qt=Jt;function en(e){return Pe("MuiMenu",e)}xe("MuiMenu",["root","paper","list"]);const tn=["onEntering"],nn=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],on={vertical:"top",horizontal:"right"},rn={vertical:"top",horizontal:"left"},sn=e=>{const{classes:t}=e;return Se({root:["root"],paper:["paper"],list:["list"]},en,t)},an=Q(Qt,{shouldForwardProp:e=>rt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ln=Q(Ye,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),un=Q(Ut,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),cn=o.forwardRef(function(t,n){var r,s;const u=we({props:t,name:"MuiMenu"}),{autoFocus:y=!0,children:h,className:g,disableAutoFocusItem:v=!1,MenuListProps:R={},onClose:S,open:T,PaperProps:b={},PopoverClasses:W,transitionDuration:M="auto",TransitionProps:{onEntering:x}={},variant:m="selectedMenu",slots:E={},slotProps:l={}}=u,i=X(u.TransitionProps,tn),c=X(u,nn),d=Ge(),a=d.direction==="rtl",C=p({},u,{autoFocus:y,disableAutoFocusItem:v,MenuListProps:R,onEntering:x,PaperProps:b,transitionDuration:M,TransitionProps:i,variant:m}),z=sn(C),D=y&&!v&&T,B=o.useRef(null),k=(P,A)=>{B.current&&B.current.adjustStyleForScrollbar(P,d),x&&x(P,A)},O=P=>{P.key==="Tab"&&(P.preventDefault(),S&&S(P,"tabKeyDown"))};let U=-1;o.Children.map(h,(P,A)=>{o.isValidElement(P)&&(P.props.disabled||(m==="selectedMenu"&&P.props.selected||U===-1)&&(U=A))});const f=(r=E.paper)!=null?r:ln,_=(s=l.paper)!=null?s:b,N=ve({elementType:E.root,externalSlotProps:l.root,ownerState:C,className:[z.root,g]}),G=ve({elementType:f,externalSlotProps:_,ownerState:C,className:z.paper});return F.jsx(an,p({onClose:S,anchorOrigin:{vertical:"bottom",horizontal:a?"right":"left"},transformOrigin:a?on:rn,slots:{paper:f,root:E.root},slotProps:{root:N,paper:G},open:T,ref:n,transitionDuration:M,TransitionProps:p({onEntering:k},i),ownerState:C},c,{classes:W,children:F.jsx(un,p({onKeyDown:O,actions:B,autoFocus:y&&(U===-1||v),autoFocusItem:D,variant:m},R,{className:se(z.list,R.className),children:h}))}))}),En=cn;export{At as G,Sn as I,Ht as L,En as M,bt as T,Mt as a,It as b,Ct as c,xn as d,wn as e,vt as f,Pt as g,Ve as h,ze as i,_t as j,Rt as r,Pn as u};

Zerion Mini Shell 1.0