"use strict";(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[3795],{rBCA:function(e,t,n){n.d(t,{A:function(){return p}});var r=n("+9dH"),i=n("+OUp"),o=n("fezH"),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,o.A)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),l=n("q5MD"),c=n("eVQB"),u=n("54pO"),d=n("xLBD"),testOmitPropsOnComponent=function(e){return"theme"!==e},getDefaultShouldForwardProp=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?s:testOmitPropsOnComponent},composeShouldForwardProps=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Insertion=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)(function(){return(0,c.sk)(t,n,r)}),null},p=(function createStyled(e,t){var n,o,a=e.__emotion_real===e,s=a&&e.__emotion_base||e;void 0!==t&&(n=t.label,o=t.target);var d=composeShouldForwardProps(e,t,a),p=d||getDefaultShouldForwardProp(s),f=!p("as");return function(){var m=arguments,h=a&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==n&&h.push("label:"+n+";"),null==m[0]||void 0===m[0].raw)h.push.apply(h,m);else{h.push(m[0][0]);for(var g=m.length,_=1;_{let t=Object.keys(e);return t.length?"?"+t.map(t=>`${t}=${e[t]}`).join("&"):""},formatUrlWithPageParam=(e,t=1,n="page")=>{let[r,i]=e.split("?"),o=new URLSearchParams(i||""),a={};return o.forEach((e,t)=>{e&&(a[t]=e)}),Number(t)>1?a[n]=String(t):delete a[n],r+makeParams(a)},toggleNoScroll=e=>{"undefined"!=typeof window&&(document.documentElement.style.overflow=e?"hidden":"")},r={BREAK_POINT_SMALL_MOBILE:480,BREAK_POINT_MOBILE:768,BREAK_POINT_TABLET:1024,BREAK_POINT_PC:1159,BREAK_POINT_LGPC:1440},i={LG:1160},o={smbDown:`@media (max-width: ${r.BREAK_POINT_SMALL_MOBILE-1}px)`,smbUp:`@media (min-width: ${r.BREAK_POINT_SMALL_MOBILE}px)`,mbDown:`@media (max-width: ${r.BREAK_POINT_MOBILE-1}px)`,mbOnly:`@media (min-width: ${r.BREAK_POINT_SMALL_MOBILE}px) and (max-width: ${r.BREAK_POINT_MOBILE-1}px)`,mbUp:`@media (min-width: ${r.BREAK_POINT_MOBILE}px)`,tdDown:`@media (max-width: ${r.BREAK_POINT_TABLET-1}px)`,tdOnly:`@media (min-width: ${r.BREAK_POINT_MOBILE}px) and (max-width: ${r.BREAK_POINT_TABLET-1}px)`,tdUp:`@media (min-width: ${r.BREAK_POINT_TABLET}px)`,pcUp:`@media (min-width: ${r.BREAK_POINT_PC}px)`,pcOnly:`@media (min-width: ${r.BREAK_POINT_TABLET}px) and (max-width: ${r.BREAK_POINT_PC-1}px)`,pcDown:`@media (max-width: ${r.BREAK_POINT_PC-1}px)`,lgPcUp:`@media (min-width: ${r.BREAK_POINT_LGPC}px)`,lgPcOnly:`@media (min-width: ${r.BREAK_POINT_PC}px) and (max-width: ${r.BREAK_POINT_LGPC-1}px)`,lgPcDown:`@media (max-width: ${r.BREAK_POINT_LGPC-1}px)`,mbToPC:`@media (min-width: ${r.BREAK_POINT_MOBILE}px) and (max-width: ${r.BREAK_POINT_PC-1}px)`},getBoundariesFromMediaQueryKey=e=>{switch(e){case"smbDown":return[0,r.BREAK_POINT_SMALL_MOBILE-1];case"smbUp":return[r.BREAK_POINT_SMALL_MOBILE,0];case"mbDown":return[0,r.BREAK_POINT_MOBILE-1];case"mbOnly":return[r.BREAK_POINT_SMALL_MOBILE,r.BREAK_POINT_MOBILE-1];case"mbUp":return[r.BREAK_POINT_MOBILE,0];case"tdDown":return[0,r.BREAK_POINT_TABLET-1];case"tdOnly":return[r.BREAK_POINT_MOBILE,r.BREAK_POINT_TABLET-1];case"tdUp":return[r.BREAK_POINT_TABLET,0];case"pcUp":return[r.BREAK_POINT_PC,0];case"pcOnly":return[r.BREAK_POINT_TABLET,r.BREAK_POINT_PC-1];case"pcDown":return[0,r.BREAK_POINT_PC-1];case"lgPcUp":return[r.BREAK_POINT_LGPC,0];case"lgPcOnly":return[r.BREAK_POINT_PC,r.BREAK_POINT_LGPC-1];case"lgPcDown":return[0,r.BREAK_POINT_LGPC-1];case"mbToPC":return[r.BREAK_POINT_MOBILE,r.BREAK_POINT_PC-1]}},getPopupWrapperDom=()=>{if("undefined"==typeof document)return null;let e="hhg-comp-popup-wrapper";if(!document.querySelector("#"+e)){let t=document.createElement("div");t.id=e,document.body.appendChild(t)}return document.querySelector("#"+e)},getWrapperDomWithSelector=(e,t)=>{if("undefined"==typeof document)return null;if(!e.querySelector(`[data-wrapper-selector="${t}"]`)){let e=document.createElement("div");e.setAttribute("data-wrapper-selector",t),document.body.appendChild(e)}return e.querySelector(`[data-wrapper-selector="${t}"]`)},startCase=e=>e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}),safeEncodeURI=e=>decodeURI(e)!==e?e:encodeURI(e),convertDay=e=>{if(!e)return{years:0,months:0,weeks:0};let t=parseInt(`${e/365}`),n=parseInt(`${e/30}`),r=parseInt(`${e/7}`);return{years:t,months:n,weeks:r}},sleep=e=>new Promise(t=>setTimeout(t,e))},"4lv7":function(e,t,n){n.d(t,{C:function(){return useDidUpdate}});var r=n("+OUp");function useDidUpdate(e,t){let n=(0,r.useRef)(!1);(0,r.useEffect)(()=>()=>{n.current=!1},[]),(0,r.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}},T2a8:function(e,t,n){n.d(t,{U:function(){return useMediaQuery}});var r=n("+OUp");function useMediaQuery(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[i,o]=(0,r.useState)(n?t:"boolean"==typeof t?t:!!("undefined"!=typeof window&&"matchMedia"in window)&&window.matchMedia(e).matches),a=(0,r.useRef)();return(0,r.useEffect)(()=>{if("matchMedia"in window)return a.current=window.matchMedia(e),o(a.current.matches),function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(n){return e.addListener(t),()=>e.removeListener(t)}}(a.current,e=>o(e.matches))},[e]),i}},Degs:function(e,t,n){n.d(t,{I:function(){return useReducedMotion}});var r=n("T2a8");function useReducedMotion(e,t){return(0,r.U)("(prefers-reduced-motion: reduce)",e,t)}},GTxp:function(e,t,n){n.d(t,{z:function(){return randomId}});function randomId(){return`mantine-${Math.random().toString(36).slice(2,11)}`}},jj4h:function(e,t,n){n.d(t,{$:function(){return Notifications}});var r=n("+OUp"),i=n.n(r),o=n("Nlia");function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}var a=n("xzYA"),s=n.n(a),l={disabled:!1},c=i().createContext(null),u="unmounted",d="exited",p="entering",f="entered",m="exiting",h=function(e){function Transition(t,n){r=e.call(this,t,n)||this;var r,i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=d,r.appearStatus=p):i=f:i=t.unmountOnExit||t.mountOnEnter?u:d,r.state={status:i},r.nextCallback=null,r}_inheritsLoose(Transition,e),Transition.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:d}:null};var t=Transition.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==f&&(t=p):(n===p||n===f)&&(t=m)}this.updateStatus(!1,t)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},t.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===p?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:u})},t.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[s().findDOMNode(this),r],o=i[0],a=i[1],c=this.getTimeouts(),u=r?c.appear:c.enter;if(!e&&!n||l.disabled){this.safeSetState({status:f},function(){t.props.onEntered(o)});return}this.props.onEnter(o,a),this.safeSetState({status:p},function(){t.props.onEntering(o,a),t.onTransitionEnd(u,function(){t.safeSetState({status:f},function(){t.props.onEntered(o,a)})})})},t.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s().findDOMNode(this);if(!t||l.disabled){this.safeSetState({status:d},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:m},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(r)})})})},t.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},t.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)},t.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i().createElement(c.Provider,{value:null},"function"==typeof n?n(e,r):i().cloneElement(i().Children.only(n),r))},Transition}(i().Component);function noop(){}h.contextType=c,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},h.UNMOUNTED=u,h.EXITED=d,h.ENTERING=p,h.ENTERED=f,h.EXITING=m;var g=n("+9dH");function getChildMapping(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=t&&(0,r.isValidElement)(e)?t(e):e}),n}function getProp(e,t,n){return null!=n[t]?n[t]:e.props[t]}var _=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},y=function(e){function TransitionGroup(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}_inheritsLoose(TransitionGroup,e);var t=TransitionGroup.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},TransitionGroup.getDerivedStateFromProps=function(e,t){var n,i,o=t.children,a=t.handleExited;return{children:t.firstRender?getChildMapping(e.children,function(t){return(0,r.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:getProp(t,"appear",e),enter:getProp(t,"enter",e),exit:getProp(t,"exit",e)})}):(Object.keys(i=function(e,t){function getValueForKey(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var n,r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a={};for(var s in t){if(r[s])for(n=0;n(e+1)%1e6;var b=n("Degs"),P=n("4lv7"),x=n("0Woy"),get_position_styles=function([e,t],n){let r={};return"top"===e&&(r.top=n),"bottom"===e&&(r.bottom=n),"left"===t&&(r.left=n),"right"===t&&(r.right=n),"center"===t&&(r.left="50%",r.transform="translateX(-50%)"),r},O=Object.defineProperty,v=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))w.call(t,n)&&__defNormalProp(e,n,t[n]);if(v)for(var n of v(t))T.call(t,n)&&__defNormalProp(e,n,t[n]);return e};let N={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},C={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};var get_notification_state_styles=function({state:e,maxHeight:t,positioning:n,transitionDuration:r}){let[i,o]=n,a="center"===o?`${i}-center`:o,s={opacity:0,maxHeight:t,transform:N[a],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},l={opacity:1,transform:C[a]},c={opacity:0,maxHeight:0,transform:N[a]};return __spreadValues(__spreadValues({},s),{entering:l,entered:l,exiting:c,exited:c}[e])},I=Object.defineProperty,R=Object.defineProperties,k=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,NotificationContainer_defNormalProp=(e,t,n)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NotificationContainer_spreadValues=(e,t)=>{for(var n in t||(t={}))S.call(t,n)&&NotificationContainer_defNormalProp(e,n,t[n]);if(A)for(var n of A(t))L.call(t,n)&&NotificationContainer_defNormalProp(e,n,t[n]);return e},__spreadProps=(e,t)=>R(e,k(t)),__objRest=(e,t)=>{var n={};for(var r in e)S.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&A)for(var r of A(e))0>t.indexOf(r)&&L.call(e,r)&&(n[r]=e[r]);return n};function NotificationContainer(e){var{notification:t,autoClose:n,onHide:o,innerRef:a}=e,s=__objRest(e,["notification","autoClose","onHide","innerRef"]);let{autoClose:l,message:c}=t,u=__objRest(t,["autoClose","message"]),d="number"==typeof l?l:!1!==l&&!1!==n&&n,p=(0,r.useRef)(),handleHide=()=>{o(t.id),window.clearTimeout(p.current)},cancelDelayedHide=()=>{clearTimeout(p.current)},handleDelayedHide=()=>{"number"==typeof d&&(p.current=window.setTimeout(handleHide,d))};return(0,r.useEffect)(()=>{"function"==typeof t.onOpen&&t.onOpen(t)},[]),(0,r.useEffect)(()=>(handleDelayedHide(),cancelDelayedHide),[n,t.autoClose]),i().createElement(E.Notification,__spreadProps(NotificationContainer_spreadValues(NotificationContainer_spreadValues({},u),s),{onClose:handleHide,onMouseEnter:cancelDelayedHide,onMouseLeave:handleDelayedHide,ref:a}),c)}NotificationContainer.displayName="@mantine/notifications/NotificationContainer";var B=(0,E.createStyles)((e,{zIndex:t})=>({notifications:{width:`calc(100% - ${e.spacing.md} * 2)`,boxSizing:"border-box",position:"fixed",zIndex:t},notification:{"&:not(:first-of-type)":{marginTop:e.spacing.sm}}})),M=n("GTxp"),D=Object.defineProperty,K=Object.defineProperties,j=Object.getOwnPropertyDescriptors,$=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,use_notifications_state_defNormalProp=(e,t,n)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,use_notifications_state_spreadValues=(e,t)=>{for(var n in t||(t={}))U.call(t,n)&&use_notifications_state_defNormalProp(e,n,t[n]);if($)for(var n of $(t))V.call(t,n)&&use_notifications_state_defNormalProp(e,n,t[n]);return e},use_notifications_state_spreadProps=(e,t)=>K(e,j(t)),use_notifications_state=function({limit:e}){let{state:t,queue:n,update:i,cleanQueue:o}=function({initialValues:e=[],limit:t}){let[{state:n,queue:i},o]=(0,r.useState)({state:e.slice(0,t),queue:e.slice(t)});return{state:n,queue:i,add:(...e)=>o(n=>{let r=[...n.state,...n.queue,...e];return{state:r.slice(0,t),queue:r.slice(t)}}),update:e=>o(n=>{let r=e([...n.state,...n.queue]);return{state:r.slice(0,t),queue:r.slice(t)}}),cleanQueue:()=>o(e=>({state:e.state,queue:[]}))}}({initialValues:[],limit:e});return{notifications:t,queue:n,showNotification:e=>{let t=e.id||(0,M.z)();return i(n=>e.id&&n.some(t=>t.id===e.id)?n:[...n,use_notifications_state_spreadProps(use_notifications_state_spreadValues({},e),{id:t})]),t},updateNotification:e=>i(t=>{let n=t.findIndex(t=>t.id===e.id);if(-1===n)return t;let r=[...t];return r[n]=e,r}),hideNotification:e=>i(t=>t.filter(t=>t.id!==e||("function"==typeof t.onClose&&t.onClose(t),!1))),cleanQueue:o,clean:()=>i(()=>[])}},H=Object.defineProperty,F=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,Notifications_defNormalProp=(e,t,n)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Notifications_spreadValues=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&Notifications_defNormalProp(e,n,t[n]);if(F)for(var n of F(t))q.call(t,n)&&Notifications_defNormalProp(e,n,t[n]);return e},Notifications_objRest=(e,t)=>{var n={};for(var r in e)W.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&F)for(var r of F(e))0>t.indexOf(r)&&q.call(e,r)&&(n[r]=e[r]);return n};let z=["top-left","top-right","top-center","bottom-left","bottom-right","bottom-center"],Notifications=e=>{var{className:t,position:n="bottom-right",autoClose:o=4e3,transitionDuration:a=250,containerWidth:s=(0,E.rem)(440),notificationMaxHeight:l=(0,E.rem)(200),limit:c=5,zIndex:u=(0,E.getDefaultZIndex)("overlay"),style:d,children:p,target:f}=e,m=Notifications_objRest(e,["className","position","autoClose","transitionDuration","containerWidth","notificationMaxHeight","limit","zIndex","style","children","target"]);let g=function(){let[,e]=(0,r.useReducer)(reducer,0);return e}(),_=(0,r.useRef)({}),O=(0,r.useRef)(0),{notifications:v,showNotification:w,updateNotification:T,hideNotification:N,clean:C,cleanQueue:I}=use_notifications_state({limit:c}),{classes:R,cx:k,theme:A}=B({zIndex:u}),S=(0,b.I)(),L=!!A.respectReducedMotion&&S,M=L?1:a,D=(z.includes(n)?n:"bottom-right").split("-");(0,P.C)(()=>{v.length>O.current&&setTimeout(()=>g(),0),O.current=v.length},[v]),(0,x.ZK)({show:w,hide:N,update:T,clean:C,cleanQueue:I});let K=v.map(e=>i().createElement(h,{key:e.id,timeout:M,onEnter:()=>_.current[e.id].offsetHeight,nodeRef:{current:_.current[e.id]}},t=>i().createElement(NotificationContainer,{innerRef:t=>{_.current[e.id]=t},notification:e,onHide:N,className:R.notification,autoClose:o,sx:[Notifications_spreadValues({},get_notification_state_styles({state:t,positioning:D,transitionDuration:M,maxHeight:l})),...Array.isArray(e.sx)?e.sx:[e.sx]]})));return i().createElement(E.Portal,{target:f},i().createElement(E.Box,Notifications_spreadValues({className:k(R.notifications,t),style:d,sx:Notifications_spreadValues({maxWidth:s},get_position_styles(D,A.spacing.md))},m),i().createElement(y,null,K)))};Notifications.displayName="@mantine/notifications/Notifications",Notifications.show=x.$e.show,Notifications.hide=x.$e.hide,Notifications.update=x.$e.update,Notifications.clean=x.$e.clean,Notifications.cleanQueue=x.$e.cleanQueue},"0Woy":function(e,t,n){n.d(t,{$e:function(){return f},ZK:function(){return a}});var r,i=n("+OUp");let o="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,[a,s]=(r="mantine-notifications",[function(e){let t=Object.keys(e).reduce((t,n)=>(t[`${r}:${n}`]=t=>e[n](t.detail),t),{});o(()=>(Object.keys(t).forEach(e=>{window.removeEventListener(e,t[e]),window.addEventListener(e,t[e])}),()=>Object.keys(t).forEach(e=>{window.removeEventListener(e,t[e])})),[t])},function(e){return(...t)=>{var n,i;return n=`${r}:${String(e)}`,i=t[0],void window.dispatchEvent(new CustomEvent(n,{detail:i}))}}]),l=s("show"),c=s("hide"),u=s("clean"),d=s("cleanQueue"),p=s("update"),f={show:l,hide:c,clean:u,cleanQueue:d,update:p}},Nlia:function(e,t,n){n.d(t,{A:function(){return _objectWithoutPropertiesLoose}});function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}}}]);