"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[2872],{83162:(e,r,t)=>{t.d(r,{A:()=>w});var o=t(83673),a=t(6614),s=t(7552),l=t(93878),n=t(60827),c=t(51148),i=t(31049),d=t(74893),p=t(69500);const u=(0,d.A)((0,p.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var v=t(28375),m=t(43045);const f=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],A=(0,c.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],t.colorDefault&&r.colorDefault]}})((({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,a.A)({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:(0,a.A)({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]}))),g=(0,c.Ay)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,r)=>r.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),h=(0,c.Ay)(u,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,r)=>r.fallback})({width:"75%",height:"75%"}),w=s.forwardRef((function(e,r){const t=(0,i.A)({props:e,name:"MuiAvatar"}),{alt:c,children:d,className:u,component:w="div",slots:y={},slotProps:b={},imgProps:S,sizes:k,src:P,srcSet:x,variant:R="circular"}=t,F=(0,o.A)(t,f);let j=null;const C=function({crossOrigin:e,referrerPolicy:r,src:t,srcSet:o}){const[a,l]=s.useState(!1);return s.useEffect((()=>{if(!t&&!o)return;l(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&l("loaded")},s.onerror=()=>{a&&l("error")},s.crossOrigin=e,s.referrerPolicy=r,s.src=t,o&&(s.srcset=o),()=>{a=!1}}),[e,r,t,o]),a}((0,a.A)({},S,{src:P,srcSet:x})),N=P||x,D=N&&"error"!==C,M=(0,a.A)({},t,{colorDefault:!D,component:w,variant:R}),z=(e=>{const{classes:r,variant:t,colorDefault:o}=e,a={root:["root",t,o&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,n.A)(a,v.k,r)})(M),[T,O]=(0,m.A)("img",{className:z.img,elementType:g,externalForwardedProps:{slots:y,slotProps:{img:(0,a.A)({},S,b.img)}},additionalProps:{alt:c,src:P,srcSet:x,sizes:k},ownerState:M});return j=D?(0,p.jsx)(T,(0,a.A)({},O)):d||0===d?d:N&&c?c[0]:(0,p.jsx)(h,{ownerState:M,className:z.fallback}),(0,p.jsx)(A,(0,a.A)({as:w,ownerState:M,className:(0,l.A)(z.root,u),ref:r},F,{children:j}))}))},28375:(e,r,t)=>{t.d(r,{A:()=>l,k:()=>s});var o=t(55549),a=t(9577);function s(e){return(0,a.Ay)("MuiAvatar",e)}const l=(0,o.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"])},42872:(e,r,t)=>{t.r(r),t.d(r,{avatarClasses:()=>a.A,default:()=>o.A,getAvatarUtilityClass:()=>a.k});var o=t(83162),a=t(28375)},43045:(e,r,t)=>{t.d(r,{A:()=>u});var o=t(6614),a=t(83673),s=t(24979),l=t(33445),n=t(34452),c=t(85196);const i=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],d=["component","slots","slotProps"],p=["component"];function u(e,r){const{className:t,elementType:u,ownerState:v,externalForwardedProps:m,getSlotOwnerState:f,internalForwardedProps:A}=r,g=(0,a.A)(r,i),{component:h,slots:w={[e]:void 0},slotProps:y={[e]:void 0}}=m,b=(0,a.A)(m,d),S=w[e]||u,k=(0,l.Y)(y[e],v),P=(0,n.p)((0,o.A)({className:t},g,{externalForwardedProps:"root"===e?b:void 0,externalSlotProps:k})),{props:{component:x},internalRef:R}=P,F=(0,a.A)(P.props,p),j=(0,s.A)(R,null==k?void 0:k.ref,r.ref),C=f?f(F):{},N=(0,o.A)({},v,C),D="root"===e?x||h:x,M=(0,c.X)(S,(0,o.A)({},"root"===e&&!h&&!w[e]&&A,"root"!==e&&!w[e]&&A,F,D&&{as:D},{ref:j}),N);return Object.keys(C).forEach((e=>{delete M[e]})),[S,M]}}}]);
//# sourceMappingURL=2872.322c6878.chunk.js.map