"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8927],{33575:function(t,e,n){n.d(e,{N9:function(){return u},Gy:function(){return r}});var i=n(67294);const o="undefined"!==typeof window?i.useLayoutEffect:i.useEffect;const[r,a]=(s="mantine-notifications",[function(t){const e=Object.keys(t).reduce(((e,n)=>(e[`${s}:${n}`]=e=>t[n](e.detail),e)),{});o((()=>(Object.keys(e).forEach((t=>{window.removeEventListener(t,e[t]),window.addEventListener(t,e[t])})),()=>Object.keys(e).forEach((t=>{window.removeEventListener(t,e[t])})))),[e])},function(t){return(...e)=>{return n=`${s}:${String(t)}`,i=e[0],void window.dispatchEvent(new CustomEvent(n,{detail:i}));var n,i}}]);var s;const u={show:a("show"),hide:a("hide"),clean:a("clean"),cleanQueue:a("cleanQueue"),update:a("update")}},8927:function(t,e,n){n.r(e),n.d(e,{AppMantineProvider:function(){return Nt}});var i=n(26042),o=n(69396),r=n(85893),a=n(31582),s=n(67294),u=n(63366),l=n(75068),c=n(73935),p=!1,d=s.createContext(null),f="unmounted",h="exited",m="entering",v="entered",E="exiting",x=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var o,r=n&&!n.isMounting?e.enter:e.appear;return i.appearStatus=null,e.in?r?(o=h,i.appearStatus=m):o=v:o=e.unmountOnExit||e.mountOnEnter?f:h,i.state={status:o},i.nextCallback=null,i}(0,l.Z)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===f?{status:h}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==m&&n!==v&&(e=m):n!==m&&n!==v||(e=E)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,i=this.props.timeout;return t=e=n=i,null!=i&&"number"!==typeof i&&(t=i.exit,e=i.enter,n=void 0!==i.appear?i.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),e===m?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===h&&this.setState({status:f})},n.performEnter=function(t){var e=this,n=this.props.enter,i=this.context?this.context.isMounting:t,o=this.props.nodeRef?[i]:[c.findDOMNode(this),i],r=o[0],a=o[1],s=this.getTimeouts(),u=i?s.appear:s.enter;!t&&!n||p?this.safeSetState({status:v},(function(){e.props.onEntered(r)})):(this.props.onEnter(r,a),this.safeSetState({status:m},(function(){e.props.onEntering(r,a),e.onTransitionEnd(u,(function(){e.safeSetState({status:v},(function(){e.props.onEntered(r,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:c.findDOMNode(this);e&&!p?(this.props.onExit(i),this.safeSetState({status:E},(function(){t.props.onExiting(i),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:h},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:h},(function(){t.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,e.nextCallback=null,t(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:c.findDOMNode(this),i=null==t&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=o[0],a=o[1];this.props.addEndListener(r,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===f)return null;var e=this.props,n=e.children,i=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,(0,u.Z)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(d.Provider,{value:null},"function"===typeof n?n(t,i):s.cloneElement(s.Children.only(n),i))},e}(s.Component);function b(){}x.contextType=d,x.propTypes={},x.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:b,onEntering:b,onEntered:b,onExit:b,onExiting:b,onExited:b},x.UNMOUNTED=f,x.EXITED=h,x.ENTERING=m,x.ENTERED=v,x.EXITING=E;var y=x,g=n(87462);function O(t,e){var n=Object.create(null);return t&&s.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,s.isValidElement)(t)?e(t):t}(t)})),n}function w(t,e,n){return null!=n[e]?n[e]:t.props[e]}function C(t,e,n){var i=O(t.children),o=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var i,o=Object.create(null),r=[];for(var a in t)a in e?r.length&&(o[a]=r,r=[]):r.push(a);var s={};for(var u in e){if(o[u])for(i=0;i(t+1)%1e6;var M=n(73524),I=n(37048),Z=n(33575);var q=function([t,e],n){const i={};return"top"===t&&(i.top=n),"bottom"===t&&(i.bottom=n),"left"===e&&(i.left=n),"right"===e&&(i.right=n),"center"===e&&(i.left="50%",i.transform="translateX(-50%)"),i},H=Object.defineProperty,L=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,V=(t,e,n)=>e in t?H(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$=(t,e)=>{for(var n in e||(e={}))z.call(e,n)&&V(t,n,e[n]);if(L)for(var n of L(e))Q.call(e,n)&&V(t,n,e[n]);return t};const X={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},F={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};var U=function({state:t,maxHeight:e,positioning:n,transitionDuration:i}){const[o,r]=n,a="center"===r?`${o}-center`:r,s={opacity:1,transform:F[a]},u={opacity:0,maxHeight:0,transform:X[a]},l={entering:s,entered:s,exiting:u,exited:u};return $($({},{opacity:0,maxHeight:e,transform:X[a],transitionDuration:`${i}ms, ${i}ms, ${i}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"}),l[t])},W=n(12593);var Y=function(t,e){return"number"===typeof e?e:!1!==e&&!1!==t&&t},G=Object.defineProperty,_=Object.defineProperties,A=Object.getOwnPropertyDescriptors,J=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,tt=(t,e,n)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,et=(t,e)=>{for(var n in e||(e={}))B.call(e,n)&&tt(t,n,e[n]);if(J)for(var n of J(e))K.call(e,n)&&tt(t,n,e[n]);return t},nt=(t,e)=>{var n={};for(var i in t)B.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&J)for(var i of J(t))e.indexOf(i)<0&&K.call(t,i)&&(n[i]=t[i]);return n};function it(t){var e=t,{notification:n,autoClose:i,onHide:o,innerRef:r}=e,a=nt(e,["notification","autoClose","onHide","innerRef"]);const u=n,{autoClose:l,message:c}=u,p=nt(u,["autoClose","message"]),d=Y(i,l),f=(0,s.useRef)(),h=()=>{o(n.id),window.clearTimeout(f.current)},m=()=>{clearTimeout(f.current)},v=()=>{"number"===typeof d&&(f.current=window.setTimeout(h,d))};return(0,s.useEffect)((()=>{"function"===typeof n.onOpen&&n.onOpen(n)}),[]),(0,s.useEffect)((()=>(v(),m)),[i,n.autoClose]),s.createElement(W.P,(E=et(et({},p),a),_(E,A({onClose:h,onMouseEnter:m,onMouseLeave:v,ref:r}))),c);var E}it.displayName="@mantine/notifications/NotificationContainer";var ot=it,rt=(0,n(56817).k)(((t,{zIndex:e})=>({notifications:{width:`calc(100% - ${t.spacing.md} * 2)`,boxSizing:"border-box",position:"fixed",zIndex:e},notification:{"&:not(:first-of-type)":{marginTop:t.spacing.sm}}})));var at=n(89058),st=Object.defineProperty,ut=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,ft=(t,e,n)=>e in t?st(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ht=(t,e)=>{for(var n in e||(e={}))pt.call(e,n)&&ft(t,n,e[n]);if(ct)for(var n of ct(e))dt.call(e,n)&&ft(t,n,e[n]);return t};var mt=function({limit:t}){const{state:e,queue:n,update:i,cleanQueue:o}=function({initialValues:t=[],limit:e}){const[{state:n,queue:i},o]=(0,s.useState)({state:t.slice(0,e),queue:t.slice(e)});return{state:n,queue:i,add:(...t)=>o((n=>{const i=[...n.state,...n.queue,...t];return{state:i.slice(0,e),queue:i.slice(e)}})),update:t=>o((n=>{const i=t([...n.state,...n.queue]);return{state:i.slice(0,e),queue:i.slice(e)}})),cleanQueue:()=>o((t=>({state:t.state,queue:[]})))}}({initialValues:[],limit:t});return{notifications:e,queue:n,showNotification:t=>{const e=t.id||(0,at.k)();return i((n=>{return t.id&&n.some((e=>e.id===t.id))?n:[...n,(i=ht({},t),o={id:e},ut(i,lt(o)))];var i,o})),e},updateNotification:t=>i((e=>{const n=e.findIndex((e=>e.id===t.id));if(-1===n)return e;const i=[...e];return i[n]=t,i})),hideNotification:t=>i((e=>e.filter((e=>e.id!==t||("function"===typeof e.onClose&&e.onClose(e),!1))))),cleanQueue:o,clean:()=>i((()=>[]))}},vt=Object.defineProperty,Et=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,yt=(t,e,n)=>e in t?vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,gt=(t,e)=>{for(var n in e||(e={}))xt.call(e,n)&&yt(t,n,e[n]);if(Et)for(var n of Et(e))bt.call(e,n)&&yt(t,n,e[n]);return t};const Ot=["top-left","top-right","top-center","bottom-left","bottom-right","bottom-center"],wt=t=>{var e=t,{className:n,position:i="bottom-right",autoClose:o=4e3,transitionDuration:r=250,containerWidth:a=(0,j.h)(440),notificationMaxHeight:u=(0,j.h)(200),limit:l=5,zIndex:c=(0,P.w)("overlay"),style:p,children:d,target:f}=e,h=((t,e)=>{var n={};for(var i in t)xt.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&Et)for(var i of Et(t))e.indexOf(i)<0&&bt.call(t,i)&&(n[i]=t[i]);return n})(e,["className","position","autoClose","transitionDuration","containerWidth","notificationMaxHeight","limit","zIndex","style","children","target"]);const m=function(){const[,t]=(0,s.useReducer)(D,0);return t}(),v=(0,s.useRef)({}),E=(0,s.useRef)(0),{notifications:x,showNotification:b,updateNotification:g,hideNotification:O,clean:w,cleanQueue:C}=mt({limit:l}),{classes:N,cx:k,theme:H}=rt({zIndex:c}),L=(0,M.J)(),z=!!H.respectReducedMotion&&L?1:r,Q=(Ot.includes(i)?i:"bottom-right").split("-");(0,I.l)((()=>{x.length>E.current&&setTimeout((()=>m()),0),E.current=x.length}),[x]),(0,Z.Gy)({show:b,hide:O,update:g,clean:w,cleanQueue:C});const V=x.map((t=>s.createElement(y,{key:t.id,timeout:z,onEnter:()=>v.current[t.id].offsetHeight,nodeRef:{current:v.current[t.id]}},(e=>s.createElement(ot,{innerRef:e=>{v.current[t.id]=e},notification:t,onHide:O,className:N.notification,autoClose:o,sx:[gt({},U({state:e,positioning:Q,transitionDuration:z,maxHeight:u})),...Array.isArray(t.sx)?t.sx:[t.sx]]})))));return s.createElement(T.h,{target:f},s.createElement(R.x,gt({className:k(N.notifications,n),style:p,sx:gt({maxWidth:a},q(Q,H.spacing.md))},h),s.createElement(S,null,V)))};wt.displayName="@mantine/notifications/Notifications",wt.show=Z.N9.show,wt.hide=Z.N9.hide,wt.update=Z.N9.update,wt.clean=Z.N9.clean,wt.cleanQueue=Z.N9.cleanQueue;var Ct=n(23875),Nt=function(t){var e=t.children,n=t.customComponentTheme,s=(0,Ct.h)().locale,u=(0,a.mJ)(s,"hb"),l=n&&JSON.parse(n),c={};return Object.keys(l||{}).map((function(t){var e,n,r,a,s,p,d;c[t]=(0,o.Z)((0,i.Z)({},null===(e=u.components)||void 0===e?void 0:e[t]),{styles:(0,i.Z)({},null===(n=u.components)||void 0===n||null===(r=n[t])||void 0===r?void 0:r.styles,null===l||void 0===l||null===(a=l[t])||void 0===a?void 0:a.styles),defaultProps:(0,i.Z)({},null===(s=u.components)||void 0===s||null===(p=s[t])||void 0===p?void 0:p.defaultProps,null===l||void 0===l||null===(d=l[t])||void 0===d?void 0:d.defaultProps)})})),(0,r.jsxs)(a.Me,{locale:s,emotionCache:a.Yi,template:"hb",theme:(0,o.Z)((0,i.Z)({},u),{colors:(0,i.Z)({},u.colors,(null===l||void 0===l?void 0:l.colors)||{}),components:(0,i.Z)({},u.components,c)}),children:[(0,r.jsx)(wt,{position:"top-right",zIndex:2077,autoClose:5e3}),e]})}}}]);