1import{R as g,r as f}from"./react.B-3k8uP_.js";import{r as Pn}from"./react-dom.BN6VrI28.js";import{c as M}from"./clsx.CH7BE6MN.js";import{u as Rn}from"./goober.ayqgXLwz.js";function _n(r,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}}function Cn(r,e,o){return e&&_n(r.prototype,e),r}function m(){return m=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},m.apply(this,arguments)}function yn(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}function z(r,e){if(r==null)return{};var o={},i=Object.keys(r),n,t;for(t=0;t<i.length;t++)n=i[t],!(e.indexOf(n)>=0)&&(o[n]=r[n]);return o}function dn(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}var fn=function(){return""},wn=g.createContext({enqueueSnackbar:fn,closeSnackbar:fn}),N={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},vn=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},cn=function(e){return""+vn(e.vertical)+vn(e.horizontal)},F=function(e){return!!e||e===0},B="unmounted",P="exited",R="entering",V="entered",pn="exiting",ln=function(r){yn(e,r);function e(i){var n;n=r.call(this,i)||this;var t=i.appear,a;return n.appearStatus=null,i.in?t?(a=P,n.appearStatus=R):a=V:i.unmountOnExit||i.mountOnEnter?a=B:a=P,n.state={status:a},n.nextCallback=null,n}e.getDerivedStateFromProps=function(n,t){var a=n.in;return a&&t.status===B?{status:P}:null};var o=e.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(n){var t=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==R&&a!==V&&(t=R):(a===R||a===V)&&(t=pn)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var n=this.props.timeout,t=n,a=n;return n!=null&&typeof n!="number"&&typeof n!="string"&&(a=n.exit,t=n.enter),{exit:a,enter:t}},o.updateStatus=function(n,t){n===void 0&&(n=!1),t!==null?(this.cancelNextCallback(),t===R?this.performEnter(n):this.performExit()):this.props.unmountOnExit&&this.state.status===P&&this.setState({status:B})},o.performEnter=function(n){var t=this,a=this.props.enter,s=n,u=this.getTimeouts();if(!n&&!a){this.safeSetState({status:V},function(){t.props.onEntered&&t.props.onEntered(t.node,s)});return}this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:R},function(){t.props.onEntering&&t.props.onEntering(t.node,s),t.onTransitionEnd(u.enter,function(){t.safeSetState({status:V},function(){t.props.onEntered&&t.props.onEntered(t.node,s)})})})},o.performExit=function(){var n=this,t=this.props.exit,a=this.getTimeouts();if(!t){this.safeSetState({status:P},function(){n.props.onExited&&n.props.onExited(n.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:pn},function(){n.props.onExiting&&n.props.onExiting(n.node),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:P},function(){n.props.onExited&&n.props.onExited(n.node)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(n,t){t=this.setNextCallback(t),this.setState(n,t)},o.setNextCallback=function(n){var t=this,a=!0;return this.nextCallback=function(){a&&(a=!1,t.nextCallback=null,n())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},o.onTransitionEnd=function(n,t){this.setNextCallback(t);var a=n==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),n!=null&&setTimeout(this.nextCallback,n)},o.render=function(){var n=this.state.status;if(n===B)return null;var t=this.props,a=t.children,s=z(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(n,s)},Cn(e,[{key:"node",get:function(){var n,t=(n=this.props.nodeRef)===null||n===void 0?void 0:n.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),e}(g.Component);function _(){}ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
1:!0,exit:!0,onEnter:_,onEntering:_,onEntered:_,onExit:_,onExiting:_,onExited:_};function hn(r,e){typeof r=="function"?r(e):r&&(r.current=e)}function sn(r,e){return f.useMemo(function(){return r==null&&e==null?null:function(o){hn(r,o),hn(e,o)}},[r,e])}function Z(r){var e=r.timeout,o=r.style,i=o===void 0?{}:o,n=r.mode;return{duration:typeof e=="object"?e[n]||0:e,easing:i.transitionTimingFunction,delay:i.transitionDelay}}var un={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Tn=function(e){e.scrollTop=e.scrollTop},mn=function(e){return Math.round(e)+"ms"};function W(r,e){r===void 0&&(r=["all"]);var o=e||{},i=o.duration,n=i===void 0?300:i,t=o.easing,a=t===void 0?un.easeInOut:t,s=o.delay,u=s===void 0?0:s,d=Array.isArray(r)?r:[r];return d.map(function(l){var v=typeof n=="string"?n:mn(n),h=typeof u=="string"?u:mn(u);return l+" "+v+" "+a+" "+h}).join(",")}function Wn(r){return r&&r.ownerDocument||document}function Dn(r){var e=Wn(r);return e.defaultView||window}function Hn(r,e){e===void 0&&(e=166);var o;function i(){for(var n=this,t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];var u=function(){r.apply(n,a)};clearTimeout(o),o=setTimeout(u,e)}return i.clear=function(){clearTimeout(o)},i}function Vn(r,e){var o=e.getBoundingClientRect(),i=Dn(e),n;if(e.fakeTransform)n=e.fakeTransform;else{var t=i.getComputedStyle(e);n=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("transform")}var a=0,s=0;if(n&&n!=="none"&&typeof n=="string"){var u=n.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),s=parseInt(u[5],10)}switch(r){case"left":return"translateX("+(i.innerWidth+a-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-a)+"px)";case"up":return"translateY("+(i.innerHeight+s-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-s)+"px)"}}function X(r,e){if(e){var o=Vn(r,e);o&&(e.style.webkitTransform=o,e.style.transform=o)}}var Ln=f.forwardRef(function(r,e){var o=r.children,i=r.direction,n=i===void 0?"down":i,t=r.in,a=r.style,s=r.timeout,u=s===void 0?0:s,d=r.onEnter,l=r.onEntered,v=r.onExit,h=r.onExited,C=z(r,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),c=f.useRef(null),p=sn(o.ref,c),x=sn(p,e),k=function(E,D){X(n,E),Tn(E),d&&d(E,D)},S=function(E){var D=(a==null?void 0:a.transitionTimingFunction)||un.easeOut,L=Z({timeout:u,mode:"enter",style:m({},a,{transitionTimingFunction:D})});E.style.webkitTransition=W("-webkit-transform",L),E.style.transition=W("transform",L),E.style.webkitTransform="none",E.style.transform="none"},b=function(E){var D=(a==null?void 0:a.transitionTimingFunction)||un.sharp,L=Z({timeout:u,mode:"exit",style:m({},a,{transitionTimingFunction:D})});E.style.webkitTransition=W("-webkit-transform",L),E.style.transition=W("transform",L),X(n,E),v&&v(E)},T=function(E){E.style.webkitTransition="",E.style.transition="",h&&h(E)},y=f.useCallback(function(){c.current&&X(n,c.current)},[n]);return f.useEffect(function(){if(!(t||n==="down"||n==="right")){var w=Hn(function(){c.current&&X(n,c.current)}),E=Dn(c.current);return E.addEventListener("resize",w),function(){w.clear(),E.removeEventListener("resize",w)}}},[n,t]),f.useEffect(function(){t||y()},[t,y]),f.createElement(ln,Object.assign({appear:!0,nodeRef:c,onEnter:k,onEntered:l,onEntering:S,onExit:b,onExited:T,in:t,timeout:u},C),function(w,E){return f.cloneElement(o,m({ref:x,style:m({visibility:w==="exited"&&!t?"hidden":void 0},a,{},o.props.style)},E))})});Ln.displayName="Slide";var Q=function(e){return g.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},An=function(){return g.createElement(Q,null,g.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 2 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},$n=function(){return g.createElement(Q,null,g.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},qn=function(){return g.createElement(Q,null,g.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 3 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, 4 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},zn=function(){return g.createElement(Q,null,g.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 5 0 22,12A10,10 0 0,0 12,2Z`}))},jn={default:void 0,success:g.createElement(An,null),warning:g.createElement($n,null),error:g.createElement(qn,null),info:g.createElement(zn,null)},I={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:jn,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:Ln,transitionDuration:{enter:225,exit:195}},Fn=function(e,o){var i=function(t){return typeof t=="number"||t===null};return i(e)?e:i(o)?o:I.autoHideDuration},Bn=function(e,o){var i=function(t,a){return a.some(function(s){return typeof t===s})};return i(e,["string","number"])?e:i(e,["object"])?m({},I.transitionDuration,{},i(o,["object"])&&o,{},e):i(o,["string","number"])?o:i(o,["object"])?m({},I.transitionDuration,{},o):I.transitionDuration},Xn=function(e,o){return function(i,n){return n===void 0&&(n=!1),n?m({},I[i],{},o[i],{},e[i]):i==="autoHideDuration"?Fn(e.autoHideDuration,o.autoHideDuration):i==="transitionDuration"?Bn(e.transitionDuration,o.transitionDuration):e[i]||o[i]||I[i]}};function j(r){return Object.entries(r).reduce(function(e,o){var i,n=o[0],t=o[1];return m({},e,(i={},i[n]=Rn(t),i))},{})}var H={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(e){return"notistack-MuiContent-"+e}},En=j({root:{height:0},entered:{height:"auto"}}),nn="0px",en=175,On=f.forwardRef(function(r,e){var o=r.children,i=r.in,n=r.onExited,t=f.useRef(null),a=f.useRef(null),s=sn(e,a),u=function(){return t.current?t.current.clientHeight:0},d=function(p){p.style.height=nn},l=function(p){var x=u(),k=Z({timeout:en,mode:"enter"}),S=k.duration,b=k.easing;p.style.transitionDuration=typeof S=="string"?S:S+"ms",p.style.height=x+"px",p.style.transitionTimingFunction=b||""},v=function(p){p.style.height="auto"},h=function(p){p.style.height=u()+"px"},C=function(p){Tn(p);var x=Z({timeout:en,mode:"exit"}),k=x.duration,S=x.easing;p.style.transitionDuration=typeof k=="string"?k:k+"ms",p.style.height=nn,p.style.transitionTimingFunction=S||""};return f.createElement(ln,{in:i,unmountOnExit:!0,onEnter:d,onEntered:v,onEntering:l,onExit:h,onExited:n,onExiting:C,nodeRef:a,timeout:en},function(c,p){return f.createElement("div",Object.assign({ref:s,className:M(En.root,c==="entered"&&En.entered),style:m({pointerEvents:"all",overflow:"hidden",minHeight:nn,transition:W("height")},c==="entered"&&{overflow:"visible"},{},c==="exited"&&!i&&{visibility:"hidden"})},p),f.createElement("div",{ref:t,className:H.CollapseWrapper,style:{display:"flex",width:"100%"}},o))})});On.displayName="Collapse";
5var gn={right:"left",left:"right",bottom:"up",top:"down"},Kn=function(e){return e.horizontal!=="center"?gn[e.horizontal]:gn[e.vertical]},Un=function(e){return"anchorOrigin"+cn(e)},Gn=function(e){e===void 0&&(e={});var o={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(i){return!o[i]}).reduce(function(i,n){var t;return m({},i,(t={},t[n]=e[n],t))},{})},Zn=function(){};function q(r,e){return r.reduce(function(o,i){return i==null?o:function(){for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];var u=[].concat(a);e&&u.indexOf(e)===-1&&u.push(e),o.apply(this,u),i.apply(this,u)}},Zn)}var Qn=typeof window<"u"?f.useLayoutEffect:f.useEffect;function xn(r){var e=f.useRef(r);return Qn(function(){e.current=r}),f.useCallback(function(){return e.current.apply(void 0,arguments)},[])}var Nn=f.forwardRef(function(r,e){var o=r.children,i=r.className,n=r.autoHideDuration,t=r.disableWindowBlurListener,a=t===void 0?!1:t,s=r.onClose,u=r.id,d=r.open,l=r.SnackbarProps,v=l===void 0?{}:l,h=f.useRef(),C=xn(function(){s&&s.apply(void 0,arguments)}),c=xn(function(b){!s||b==null||(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){C(null,"timeout",u)},b))});f.useEffect(function(){return d&&c(n),function(){h.current&&clearTimeout(h.current)}},[d,n,c]);var p=function(){h.current&&clearTimeout(h.current)},x=f.useCallback(function(){n!=null&&c(n*.5)},[n,c]),k=function(T){v.onMouseEnter&&v.onMouseEnter(T),p()},S=function(T){v.onMouseLeave&&v.onMouseLeave(T),x()};return f.useEffect(function(){if(!a&&d)return window.addEventListener("focus",x),window.addEventListener("blur",p),function(){window.removeEventListener("focus",x),window.removeEventListener("blur",p)}},[a,x,d]),f.createElement("div",Object.assign({ref:e},v,{className:M(H.Snackbar,i),onMouseEnter:k,onMouseLeave:S}),o)});Nn.displayName="Snackbar";var tn,Yn=j({root:(tn={display:"flex",flexWrap:"wrap",flexGrow:1},tn[N.upSm]={flexGrow:"initial",minWidth:"288px"},tn)}),In=f.forwardRef(function(r,e){var o=r.className,i=z(r,["className"]);return g.createElement("div",Object.assign({ref:e,className:M(Yn.root,o)},i))});In.displayName="SnackbarContent";var A=j({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),bn="notistack-snackbar",Mn=f.forwardRef(function(r,e){var o=r.id,i=r.message,n=r.action,t=r.iconVariant,a=r.variant,s=r.hideIconVariant,u=r.style,d=r.className,l=t[a],v=n;return typeof v=="function"&&(v=v(o)),g.createElement(In,{ref:e,role:"alert","aria-describedby":bn,style:u,className:M(H.MuiContent,H.MuiContentVariant(a),A.root,A[a],d,!s&&l&&A.lessPadding)},g.createElement("div",{id:bn,className:A.message},s?null:l,i),v&&g.createElement("div",{className:A.action},v))});Mn.displayName="MaterialDesignContent";var Jn=f.memo(Mn),ne=j({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),ee=function(e){var o=f.useRef(),i=f.useState(!0),n=i[0],t=i[1],a=q([e.snack.onClose,e.onClose]),s=function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)},u=f.useCallback(function(){o.current=setTimeout(function(){t(function(L){return!L})},125)},[]);f.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var d=e.snack,l=e.classes,v=e.Component,h=v===void 0?Jn:v,C=f.useMemo(function(){return Gn(l)},[l]),c=d.open,p=d.SnackbarProps,x=d.TransitionComponent,k=d.TransitionProps,S=d.transitionDuration,b=d.disableWindowBlurListener,T=d.content,y=z(d,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),w=m({direction:Kn(y.anchorOrigin),timeout:S},k),E=T;typeof E=="function"&&(E=E(y.id,y.message));var D=["onEnter","onEntered","onExit","onExited"].reduce(function(L,Y){var J;return m({},L,(J={},J[Y]=q([e.snack[Y],e[Y]],y.id),J))},{});return g.createElement(On,{in:n,onExited:D.onExited},g.createElement(Nn,{open:c,id:y.id,disableWindowBlurListener:b,autoHideDuration:y.autoHideDuration,className:M(ne.wrappedRoot,C.root,C[Un(y.anchorOrigin)]),SnackbarProps:p,onClose:a},g.createElement(x,Object.assign({},w,{appear:!0,in:c,onExit:D.onExit,onExited:u,onEnter:D.onEnter,onEntered:q([D.onEntered,s],y.id)}),E||g.createElement(h,Object.assign({},y)))))},$,rn,K,U,an,O={view:{default:20},snackbar:{default:6,dense:2}}
5,kn="."+H.CollapseWrapper,on=16,G=j({root:($={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:W(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},$[kn]={padding:O.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},$.maxWidth="calc(100% - "+O.view.default*2+"px)",$[N.downXs]={width:"100%",maxWidth:"calc(100% - "+on*2+"px)"},$),rootDense:(rn={},rn[kn]={padding:O.snackbar.dense+"px 0px"},rn),top:{top:O.view.default-O.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:O.view.default-O.snackbar.default+"px",flexDirection:"column-reverse"},left:(K={left:O.view.default+"px"},K[N.upSm]={alignItems:"flex-start"},K[N.downXs]={left:on+"px"},K),right:(U={right:O.view.default+"px"},U[N.upSm]={alignItems:"flex-end"},U[N.downXs]={right:on+"px"},U),center:(an={left:"50%",transform:"translateX(-50%)"},an[N.upSm]={alignItems:"center"},an)}),te=function(e){var o=e.classes,i=o===void 0?{}:o,n=e.anchorOrigin,t=e.dense,a=e.children,s=M(H.SnackbarContainer,G[n.vertical],G[n.horizontal],G.root,i.containerRoot,i["containerAnchorOrigin"+cn(n)],t&&G.rootDense);return g.createElement("div",{className:s},a)},re=f.memo(te),Sn=function(e){var o=typeof e=="string"||f.isValidElement(e);return!o},ue=function(r){yn(e,r);function e(i){var n;return n=r.call(this,i)||this,n.enqueueSnackbar=function(t,a){if(a===void 0&&(a={}),t==null)throw new Error("enqueueSnackbar called with invalid argument");var s=Sn(t)?t:a,u=Sn(t)?t.message:t,d=s.key,l=s.preventDuplicate,v=z(s,["key","preventDuplicate"]),h=F(d),C=h?d:new Date().getTime()+Math.random(),c=Xn(v,n.props),p=m({id:C},v,{message:u,open:!0,entered:!1,requestClose:!1,persist:c("persist"),action:c("action"),content:c("content"),variant:c("variant"),anchorOrigin:c("anchorOrigin"),disableWindowBlurListener:c("disableWindowBlurListener"),autoHideDuration:c("autoHideDuration"),hideIconVariant:c("hideIconVariant"),TransitionComponent:c("TransitionComponent"),transitionDuration:c("transitionDuration"),TransitionProps:c("TransitionProps",!0),iconVariant:c("iconVariant",!0),style:c("style",!0),SnackbarProps:c("SnackbarProps",!0),className:M(n.props.className,v.className)});return p.persist&&(p.autoHideDuration=void 0),n.setState(function(x){if(l===void 0&&n.props.preventDuplicate||l){var k=function(y){return h?y.id===C:y.message===u},S=x.queue.findIndex(k)>-1,b=x.snacks.findIndex(k)>-1;if(S||b)return x}return n.handleDisplaySnack(m({},x,{queue:[].concat(x.queue,[p])}))}),C},n.handleDisplaySnack=function(t){var a=t.snacks;return a.length>=n.maxSnack?n.handleDismissOldest(t):n.processQueue(t)},n.processQueue=function(t){var a=t.queue,s=t.snacks;return a.length>0?m({},t,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):t},n.handleDismissOldest=function(t){if(t.snacks.some(function(l){return!l.open||l.requestClose}))return t;var a=!1,s=!1,u=t.snacks.reduce(function(l,v){return l+(v.open&&v.persist?1:0)},0);u===n.maxSnack&&(s=!0);var d=t.snacks.map(function(l){return!a&&(!l.persist||s)?(a=!0,l.entered?(l.onClose&&l.onClose(null,"maxsnack",l.id),n.props.onClose&&n.props.onClose(null,"maxsnack",l.id),m({},l,{open:!1})):m({},l,{requestClose:!0})):m({},l)});return m({},t,{snacks:d})},n.handleEnteredSnack=function(t,a,s){if(!F(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState(function(u){var d=u.snacks;return{snacks:d.map(function(l){return l.id===s?m({},l,{entered:!0}):m({},l)})}})},n.handleCloseSnack=function(t,a,s){n.props.onClose&&n.props.onClose(t,a,s);var u=s===void 0;n.setState(function(d){var l=d.snacks,v=d.queue;return{snacks:l.map(function(h){return!u&&h.id!==s?m({},h):h.entered?m({},h,{open:!1}):m({},h,{requestClose:!0})}),queue:v.filter(function(h){return h.id!==s})}})},n.closeSnackbar=function(t){var a=n.state.snacks.find(function(s){return s.id===t});F(t)&&a&&a.onClose&&a.onClose(null,"instructed",t),n.handleCloseSnack(null,"instructed",t)},n.handleExitedSnack=function(t,a){if(!F(a))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState(function(s){var u=n.processQueue(m({},s,{snacks:s.snacks.filter(function(d){return d.id!==a})}));return u.queue.length===0?u:n.handleDismissOldest(u)})},n.enqueueSnackbar,n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(dn(n)),closeSnackbar:n.closeSnackbar.bind(dn(n))}},n}var o=e.prototype;return o.render=function(){var n=this,t=this.state.contextValue,a=this.props,s=a.domRoot,u=a.children,d=a.dense,l=d===void 0?!1:d,v=a.Components,h=v===void 0?{}:v,C=a.classes,c=this.state.snacks.reduce(function(x,k){var S,b=cn(k.anch
5orOrigin),T=x[b]||[];return m({},x,(S={},S[b]=[].concat(T,[k]),S))},{}),p=Object.keys(c).map(function(x){var k=c[x],S=k[0];return g.createElement(re,{key:x,dense:l,anchorOrigin:S.anchorOrigin,classes:C},k.map(function(b){return g.createElement(ee,{key:b.id,snack:b,classes:C,Component:h[b.variant],onClose:n.handleCloseSnack,onEnter:n.props.onEnter,onExit:n.props.onExit,onExited:q([n.handleExitedSnack,n.props.onExited],b.id),onEntered:q([n.handleEnteredSnack,n.props.onEntered],b.id)})}))});return g.createElement(wn.Provider,{value:t},u,s?Pn.createPortal(p,s):p)},Cn(e,[{key:"maxSnack",get:function(){return this.props.maxSnack||I.maxSnack}}]),e}(f.Component),ce=function(){return f.useContext(wn)};export{ue as S,ce as u}; 6//# sourceMappingURL=notistack.DtukjUhS.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.