"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[5638],{93989:(e,n,o)=>{o.d(n,{Z:()=>x});var r=o(31461),t=o(7896),a=o(41867),i=o(66184),s=o(92705),c=o(9931),l=o(75693),u=o(90293),d=o(62643),p=o(40234),b=o(51590),m=o(31633),y=o(60183),Z=o(71939);const w={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},h=e=>{let{theme:n,ownerState:o}=e;const r=(e=>w[e]||e)(o.color),t=(0,y.DW)(n,"palette.".concat(r),!1)||o.color,a=(0,y.DW)(n,"palette.".concat(r,"Channel"));return"vars"in n&&a?"rgba(".concat(a," / 0.4)"):(0,Z.Fq)(t,.4)};var v=o(80838);const f=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],k=(0,l.ZP)(b.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:o}=e;return[n.root,n["underline".concat((0,c.Z)(o.underline))],"button"===o.component&&n.button]}})((e=>{let{theme:n,ownerState:o}=e;return(0,t.Z)({},"none"===o.underline&&{textDecoration:"none"},"hover"===o.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===o.underline&&(0,t.Z)({textDecoration:"underline"},"inherit"!==o.color&&{textDecorationColor:h({theme:n,ownerState:o})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===o.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(m.Z.focusVisible)]:{outline:"auto"}})})),x=a.forwardRef((function(e,n){const o=(0,u.Z)({props:e,name:"MuiLink"}),{className:l,color:b="primary",component:y="a",onBlur:Z,onFocus:h,TypographyClasses:x,underline:C="always",variant:g="inherit",sx:S}=o,D=(0,r.Z)(o,f),{isFocusVisibleRef:A,onBlur:F,onFocus:V,ref:L}=(0,d.Z)(),[M,R]=a.useState(!1),j=(0,p.Z)(n,L),B=(0,t.Z)({},o,{color:b,component:y,focusVisible:M,underline:C,variant:g}),N=(e=>{const{classes:n,component:o,focusVisible:r,underline:t}=e,a={root:["root","underline".concat((0,c.Z)(t)),"button"===o&&"button",r&&"focusVisible"]};return(0,s.Z)(a,m.w,n)})(B);return(0,v.jsx)(k,(0,t.Z)({color:b,className:(0,i.Z)(N.root,l),classes:x,component:y,onBlur:e=>{F(e),!1===A.current&&R(!1),Z&&Z(e)},onFocus:e=>{V(e),!0===A.current&&R(!0),h&&h(e)},ref:j,ownerState:B,variant:g,sx:[...Object.keys(w).includes(b)?[]:[{color:b}],...Array.isArray(S)?S:[S]]},D))}))},45638:(e,n,o)=>{o.r(n),o.d(n,{default:()=>r.Z,getLinkUtilityClass:()=>t.w,linkClasses:()=>t.Z});var r=o(93989),t=o(31633)},31633:(e,n,o)=>{o.d(n,{Z:()=>i,w:()=>a});var r=o(70101),t=o(88498);function a(e){return(0,t.Z)("MuiLink",e)}const i=(0,r.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])}}]);
//# sourceMappingURL=5638.567b74a8.chunk.js.map