(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1673],{5627:function(e){e.exports=function(e,t,n){return tn?n:e:et?t:e}},9211:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={update:function(){"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(n.hover=window.matchMedia("(hover: hover)").matches,n.none=window.matchMedia("(hover: none)").matches||window.matchMedia("(hover: on-demand)").matches,n.anyHover=window.matchMedia("(any-hover: hover)").matches,n.anyNone=window.matchMedia("(any-hover: none)").matches||window.matchMedia("(any-hover: on-demand)").matches)}};n.update(),t.default=n},43295:function(e,t,n){"use strict";var o=n(9211),r=h(o),i=n(6435),s=h(i),a=n(9580),u=h(a),c=n(31974),l=h(c);function h(e){return e&&e.__esModule?e:{default:e}}var d={state:{detectHover:r.default,detectPointer:s.default,detectTouchEvents:u.default,detectPassiveEvents:l.default},update:function(){d.state.detectHover.update(),d.state.detectPointer.update(),d.state.detectTouchEvents.update(),d.state.detectPassiveEvents.update(),d.updateOnlyOwnProperties()},updateOnlyOwnProperties:function(){if("undefined"!=typeof window){var e,t,n,o;d.passiveEvents=d.state.detectPassiveEvents.hasSupport||!1,d.hasTouch=d.state.detectTouchEvents.hasSupport||!1,d.deviceType=(e=d.hasTouch,t=d.state.detectHover.anyHover,n=d.state.detectPointer.anyFine,o=d.state,e&&(t||n)?"hybrid":e&&Object.keys(o.detectHover).filter(function(e){return"update"!==e}).every(function(e){return!1===o.detectHover[e]})&&Object.keys(o.detectPointer).filter(function(e){return"update"!==e}).every(function(e){return!1===o.detectPointer[e]})?window.navigator&&/android/.test(window.navigator.userAgent.toLowerCase())?"touchOnly":"hybrid":e?"touchOnly":"mouseOnly"),d.hasMouse="touchOnly"!==d.deviceType,d.primaryInput="mouseOnly"===d.deviceType&&"mouse"||"touchOnly"===d.deviceType&&"touch"||d.state.detectHover.hover&&"mouse"||d.state.detectHover.none&&"touch"||"mouse",/windows/.test(window.navigator.userAgent.toLowerCase())&&/chrome/.test(window.navigator.userAgent.toLowerCase())&&parseInt(/Chrome\/([0-9.]+)/.exec(navigator.userAgent)[1],10)>=59&&d.hasTouch&&(d.deviceType="hybrid",d.hasMouse=!0,d.primaryInput="mouse")}}};d.updateOnlyOwnProperties(),t.Z=d},31974:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),o=function(){};window.addEventListener("testPassiveEventSupport",o,t),window.removeEventListener("testPassiveEventSupport",o,t),n.hasSupport=e}}};n.update(),t.default=n},6435:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={update:function(){"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(n.fine=window.matchMedia("(pointer: fine)").matches,n.coarse=window.matchMedia("(pointer: coarse)").matches,n.none=window.matchMedia("(pointer: none)").matches,n.anyFine=window.matchMedia("(any-pointer: fine)").matches,n.anyCoarse=window.matchMedia("(any-pointer: coarse)").matches,n.anyNone=window.matchMedia("(any-pointer: none)").matches)}};n.update(),t.default=n},9580:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={update:function(){"undefined"!=typeof window&&(n.hasSupport="ontouchstart"in window,n.browserSupportsApi=Boolean(window.TouchEvent))}};n.update(),t.default=n},64063:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var o,r,i,s=i[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},60139:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},73759:function(e){"use strict";var t=function(e){};e.exports=function(e,n,o,r,i,s,a,u){if(t(n),!e){var c;if(void 0===n)c=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[o,r,i,s,a,u],h=0;(c=Error(n.replace(/%s/g,function(){return l[h++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},55299:function(e,t,n){"use strict";/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ var o=n(47798);function r(e){return!0===o(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==r(e)&&"function"==typeof(t=e.constructor)&&!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},47798:function(e){"use strict";/*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},49090:function(e){function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}function n(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,o,r){var i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");"function"==typeof o&&(r=o,o={}),o=o||{},r=r||function(){},s.type=o.type||"text/javascript",s.charset=o.charset||"utf8",s.async=!("async"in o)||!!o.async,s.src=e,o.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(s,o.attrs),o.text&&(s.text=""+o.text),("onload"in s?t:n)(s,r),s.onload||t(s,r),i.appendChild(s)}},90638:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(96856).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=s.default,i=(null==t?void 0:t.suspense)?{}:{loading:function(e){return e.error,e.isLoading,e.pastDelay,null}};if(o(e,Promise)?i.loader=function(){return e}:"function"==typeof e?i.loader=e:"object"==typeof e&&(i=r({},i,e)),(i=r({},i,t)).suspense)throw Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");if(i.suspense&&(delete i.ssr,delete i.loading),i.loadableGenerated&&delete(i=r({},i,i.loadableGenerated)).loadableGenerated,"boolean"==typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,a(n,i);delete i.ssr}return n(i)},t.noSSR=a;var r=n(6495).Z,i=n(92648).Z,s=(i(n(67294)),i(n(14302)));function a(e,t){return delete t.webpack,delete t.modules,e(t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var o=(0,n(92648).Z)(n(67294)).default.createContext(null);t.LoadableContext=o},14302:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(79658).Z,r=n(7222).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(6495).Z,s=(0,n(92648).Z)(n(67294)),a=n(16319),u=n(71849).useSyncExternalStore,c=[],l=[],h=!1;function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(function(e){return n.loading=!1,n.loaded=e,e}).catch(function(e){throw n.loading=!1,n.error=e,e}),n}var f=function(){function e(t,n){o(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return r(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"==typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout(function(){e._update({pastDelay:!0})},n.delay)),"number"==typeof n.timeout&&(this._timeout=setTimeout(function(){e._update({timedOut:!0})},n.timeout))),this._res.promise.then(function(){e._update({}),e._clearTimeouts()}).catch(function(t){e._update({}),e._clearTimeouts()}),this._update({})}},{key:"_update",value:function(e){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(function(e){return e()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function p(e){return function(e,t){var n=function(){if(!p){var t=new f(e,d);p={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return p.promise()},o=function(){n();var e=s.default.useContext(a.LoadableContext);e&&Array.isArray(d.modules)&&d.modules.forEach(function(t){e(t)})},r=function(e,t){o();var n=u(p.subscribe,p.getCurrentValue,p.getCurrentValue);return s.default.useImperativeHandle(t,function(){return{retry:p.retry}},[]),s.default.useMemo(function(){var t;return n.loading||n.error?s.default.createElement(d.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:p.retry}):n.loaded?s.default.createElement((t=n.loaded)&&t.__esModule?t.default:t,e):null},[e,n])},c=function(e,t){return o(),s.default.createElement(d.lazy,i({},e,{ref:t}))},d=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);d.suspense&&(d.lazy=s.default.lazy(d.loader));var p=null;if(!h){var y=d.webpack?d.webpack():d.modules;y&&l.push(function(e){var t=!0,o=!1,r=void 0;try{for(var i,s=y[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var a=i.value;if(-1!==e.indexOf(a))return n()}}catch(u){o=!0,r=u}finally{try{t||null==s.return||s.return()}finally{if(o)throw r}}})}var m=d.suspense?c:r;return m.preload=function(){return n()},m.displayName="LoadableComponent",s.default.forwardRef(m)}(d,e)}function y(e,t){for(var n=[];e.length;){var o=e.pop();n.push(o(t))}return Promise.all(n).then(function(){if(e.length)return y(e,t)})}p.preloadAll=function(){return new Promise(function(e,t){y(c).then(e,t)})},p.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(function(t){var n=function(){return h=!0,t()};y(l,e).then(n,n)})},window.__NEXT_PRELOADREADY=p.preloadReady,t.default=p},5152:function(e,t,n){e.exports=n(90638)},67651:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var o=n(67294),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useState,s=o.useEffect,a=o.useLayoutEffect,u=o.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(o){return!0}}function l(e,t){return t()}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?l:function(e,t){var n=t(),o=i({inst:{value:n,getSnapshot:t}}),r=o[0].inst,l=o[1];return a(function(){r.value=n,r.getSnapshot=t,c(r)&&l({inst:r})},[e,n,t]),s(function(){return c(r)&&l({inst:r}),e(function(){c(r)&&l({inst:r})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:h},71849:function(e,t,n){"use strict";e.exports=n(67651)},47650:function(e,t,n){"use strict";/*! * object.omit * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ var o=n(86212);e.exports=function(e,t,n){if(!o(e))return{};"function"==typeof t&&(n=t,t=[]),"string"==typeof t&&(t=[t]);for(var r="function"==typeof n,i=Object.keys(e),s={},a=0;a * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. */ var o=n(55299);e.exports=function(e){return o(e)||"function"==typeof e||Array.isArray(e)}},76224:function(e,t,n){var o=n(36464);e.exports=function(e){return function t(n){return 0===arguments.length||o(n)?t:e.apply(this,arguments)}}},79002:function(e,t,n){var o=n(76224),r=n(36464);e.exports=function(e){return function t(n,i){switch(arguments.length){case 0:return t;case 1:return r(n)?t:o(function(t){return e(n,t)});default:return r(n)&&r(i)?t:r(n)?o(function(t){return e(t,i)}):r(i)?o(function(t){return e(n,t)}):e(n,i)}}}},36464:function(e){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},87430:function(e,t,n){var o=n(79002)(function(e,t){for(var n=t,o=0;or||n>i}},{key:"getTouchEvent",value:function(e){return e.touches[0]}},{key:"getIsReactComponent",value:function(e){return"function"==typeof e.type}},{key:"shouldDecorateChild",value:function(e){return!!e&&this.getIsReactComponent(e)&&this.props.shouldDecorateChildren}},{key:"decorateChild",value:function(e,t){return(0,u.cloneElement)(e,t)}},{key:"decorateChildren",value:function(e,t){var n=this;return u.Children.map(e,function(e){return n.shouldDecorateChild(e)?n.decorateChild(e,t):e})}},{key:"addEventListeners",value:function(){this.eventListeners.push(y(this.el,"touchstart",this.onTouchStart,{passive:!1}),y(this.el,"touchmove",this.onTouchMove,{passive:!1}),y(this.el,"touchend",this.onTouchEnd),y(this.el,"touchcancel",this.onTouchCancel),y(this.el,"mouseenter",this.onMouseEnter),y(this.el,"mousemove",this.onMouseMove),y(this.el,"mouseleave",this.onMouseLeave))}},{key:"removeEventListeners",value:function(){for(;this.eventListeners.length;)this.eventListeners.pop().removeEventListener()}},{key:"getPassThroughProps",value:function(){var e=Object.keys(this.constructor.propTypes);return d()(this.props,e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,r=t.mapChildProps,s=t.style,a=i()({},r(this.state),this.getPassThroughProps());return u.createElement("div",{className:o,ref:function(t){return e.el=t},style:i()({},s,{WebkitUserSelect:"none"})},this.decorateChildren(n,a))}},{key:"isCoreReady",get:function(){return!!this.core}}]),t}(u.Component);T.displayName="ReactCursorPosition",T.propTypes={children:l().any,className:l().string,hoverDelayInMs:l().number,hoverOffDelayInMs:l().number,isActivatedOnTouch:l().bool,isEnabled:l().bool,mapChildProps:l().func,onActivationChanged:l().func,onPositionChanged:l().func,onDetectedEnvironmentChanged:l().func,pressDuration:l().number,pressMoveThreshold:l().number,shouldDecorateChildren:l().bool,shouldStopTouchMovePropagation:l().bool,style:l().object},T.defaultProps={isActivatedOnTouch:!1,isEnabled:!0,hoverDelayInMs:0,hoverOffDelayInMs:0,mapChildProps:function(e){return e},onActivationChanged:b,onPositionChanged:b,onDetectedEnvironmentChanged:b,pressDuration:500,pressMoveThreshold:5,shouldDecorateChildren:!0,shouldStopTouchMovePropagation:!1};var w=function(){var e=this;this.onPositionChanged=function(){(0,e.props.onPositionChanged)(e.state)}},E=n(73935),S=n(5627),C=n.n(S);function I(e,t){return{x:t.width/e.width,y:t.height/e.height}}function O(e,t){return{x:-((t.width-e.width)*1),y:-((t.height-e.height)*1)}}function M(){return{x:0,y:0}}function x(e,t,n){return{x:C()(e.x,t.x,n.x),y:C()(e.y,t.y,n.y)}}var D=n(53453),A=n.n(D),k={alt:a().string,src:a().string.isRequired,srcSet:a().string,sizes:a().string,onLoad:a().func,onError:a().func},R=a().shape(i()({},k,{width:a().number.isRequired,height:a().number.isRequired})),j=a().shape(i()({},k,{isFluidWidth:a().bool,width:A()(a().number,function(e){return!e.isFluidWidth}),height:A()(a().number,function(e){return!e.isFluidWidth})})),_={mouse:"mouse",touch:"touch"},L={over:"over",beside:"beside"},N=a().oneOf([L.beside,L.over]),z=a().shape({width:a().oneOfType([a().number,a().string]),height:a().oneOfType([a().number,a().string])}),F=a().shape({width:a().number,height:a().number});function U(){}var Q=a().shape({x:a().number.isRequired,y:a().number.isRequired}),Z=n(77803),V=n.n(Z),H={},G=function(){function e(e,t){for(var n=0;nn?n:e>t?e:t};return{x:o(e.x,t.x,n.x),y:o(e.y,t.y,n.y)}},t.normalizePointInRect=function(e,t){return{x:e.x-t.origin.x,y:e.y-t.origin.y}},t.toSize=function(e){return{width:e.x,height:e.y}}},28140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scale=function(e,t){var n,o;return{width:(o=function(e){return e*t})(e.width),height:o(e.height)}},t.diff=function(e,t){return{width:e.width-t.width,height:e.height-t.height}},t.isEqual=function(e,t){return e.width===t.width&&e.height===t.height},t.toPoint=function(e){return{x:e.width,y:e.height}}},5628:function(e,t,n){"use strict";var o,r,i=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s,a=n(45697),u=n(67294),c=n(78146),l=n(28140),h=function(e){return Math.trunc(1e4*e)/1e4};(s=r||(r={})).UNSET="GUESTURE_TYPE_UNSET",s.PAN="GUESTURE_TYPE_PAN",s.PINCH="GUESTURE_TYPE_PINCH";var d=function(e){function t(t){var n=e.call(this,t)||this;return n.transform={zoomFactor:1,translate:c.newOriginPoint()},n.currentGesture=r.UNSET,n.pinchStartZoomFactor=1,n.pinchStartTouchMidpoint=c.newOriginPoint(),n.pinchStartTranslate=c.newOriginPoint(),n.pinchStartTouchPointDist=0,n.panStartPoint=c.newOriginPoint(),n.panStartTranslate=c.newOriginPoint(),n.state={lastSingleTouchPoint:c.newOriginPoint()},n}return i(t,e),t.getTouchesCoordinate=function(e){var t=e.currentTarget.parentNode,n=e.nativeEvent;if(!(t instanceof HTMLElement)||!(n instanceof TouchEvent))return[];for(var o=t.getBoundingClientRect(),r={origin:{x:o.left,y:o.top},size:{width:o.width,height:o.height}},i=n.touches,s=[],a=0;ao?this.zoomContentArea(o):e1&&void 0!==arguments[1]&&arguments[1],n={},o=function(o){t&&l.default[o]?n[o]=function(){for(var t=arguments.length,n=Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=(0,i.default)();if(h||(h=(0,a.default)(r)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=c.default.proxyEvents(r);var s=new Promise(function(n){(void 0===e?"undefined":o(e))==="object"&&e.playVideo instanceof Function?n(e):h.then(function(o){var i=new o.Player(e,t);return r.on("ready",function(){n(i)}),null})}),u=c.default.promisifyPlayer(s,n);return u.on=r.on,u.off=r.off,u},e.exports=t.default},55900:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i=(o=n(49090),o&&o.__esModule?o:{default:o});t.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){t(window.YT);return}var n="http:"===window.location.protocol?"http:":"https:";(0,i.default)(n+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var o=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){o&&o(),t(window.YT)}})},e.exports=t.default},9215:function(e,t,n){var o=n(83454);function r(){var e;try{e=t.storage.debug}catch(n){}return!e&&void 0!==o&&"env"in o&&(e=o.env.DEBUG),e}(t=e.exports=n(55046)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var o="color: "+this.color;e.splice(1,0,o,"color: inherit");var r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))}),e.splice(i,0,o)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(n){}},t.load=r,t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&"renderer"===window.process.type||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(r())},55046:function(e,t,n){var o;function r(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(o||r);e.diff=i,e.prev=o,e.curr=r,o=r;for(var s=Array(arguments.length),a=0;a0)return function(e){if(!((e=String(e)).length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var i=parseFloat(r[1]),s=(r[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return i*o;case"days":case"day":case"d":return i*n;case"hours":case"hour":case"hrs":case"hr":case"h":return i*t;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*i;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(e);if("number"===u&&!1===isNaN(e)){return i.long?(s=e,r(s,n,"day")||r(s,t,"hour")||r(s,6e4,"minute")||r(s,1e3,"second")||s+" ms"):(a=e,a>=n?Math.round(a/n)+"d":a>=t?Math.round(a/t)+"h":a>=6e4?Math.round(a/6e4)+"m":a>=1e3?Math.round(a/1e3)+"s":a+"ms")}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},67848:function(e,t,n){"use strict";n.d(t,{a:function(){return x}});var o=n(32161),r=n(30081),i=n(15761),s=n(33989),a=n(72379);class u extends s.l{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),c(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return l(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),(0,o.VS)(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();let i=this.hasListeners();i&&h(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();let s=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)}getOptimisticResult(e){var t,n,r;let i=this.client.getQueryCache().build(this.client,e),s=this.createResult(i,e);return t=this,n=s,r=e,r.keepPreviousData||(void 0!==r.placeholderData?!n.isPlaceholderData:(0,o.VS)(t.getCurrentResult(),n))||(this.currentResult=s,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),s}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(o.ZT)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),o.sk||this.currentResult.isStale||!(0,o.PN)(this.options.staleTime))return;let e=(0,o.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!o.sk&&!1!==this.options.enabled&&(0,o.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let n=this.currentQuery,r=this.options,i=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,l=e!==n,f=l?e.state:this.currentQueryInitialState,p=l?this.currentResult:this.previousQueryResult,{state:y}=e,{dataUpdatedAt:m,error:v,errorUpdatedAt:g,fetchStatus:b,status:P}=y,T=!1,w=!1,E;if(t._optimisticResults){let S=this.hasListeners(),C=!S&&c(e,t),I=S&&h(e,n,t,r);(C||I)&&(b=(0,a.Kw)(e.options.networkMode)?"fetching":"paused",m||(P="loading")),"isRestoring"===t._optimisticResults&&(b="idle")}if(t.keepPreviousData&&!y.dataUpdatedAt&&null!=p&&p.isSuccess&&"error"!==P)E=p.data,m=p.dataUpdatedAt,P=p.status,T=!0;else if(t.select&&void 0!==y.data){if(i&&y.data===(null==s?void 0:s.data)&&t.select===this.selectFn)E=this.selectResult;else try{this.selectFn=t.select,E=t.select(y.data),E=(0,o.oE)(null==i?void 0:i.data,E,t),this.selectResult=E,this.selectError=null}catch(O){this.selectError=O}}else E=y.data;if(void 0!==t.placeholderData&&void 0===E&&"loading"===P){let M;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==u?void 0:u.placeholderData))M=i.data;else if(M="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==M)try{M=t.select(M),this.selectError=null}catch(x){this.selectError=x}void 0!==M&&(P="success",E=(0,o.oE)(null==i?void 0:i.data,M,t),w=!0)}this.selectError&&(v=this.selectError,E=this.selectResult,g=Date.now(),P="error");let D="fetching"===b,A="loading"===P,k="error"===P,R={status:P,fetchStatus:b,isLoading:A,isSuccess:"success"===P,isError:k,isInitialLoading:A&&D,data:E,dataUpdatedAt:m,error:v,errorUpdatedAt:g,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>f.dataUpdateCount||y.errorUpdateCount>f.errorUpdateCount,isFetching:D,isRefetching:D&&!A,isLoadingError:k&&0===y.dataUpdatedAt,isPaused:"paused"===b,isPlaceholderData:w,isPreviousData:T,isRefetchError:k&&0!==y.dataUpdatedAt,isStale:d(e,t),refetch:this.refetch,remove:this.remove};return R}updateResult(e){let t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,o.VS)(n,t))return;this.currentResult=n;let r={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;let o=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(e=>{let n=this.currentResult[e]!==t[e];return n&&o.has(e)})})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||(0,a.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){r.V.batch(()=>{var t,n,o,r,i,s,a,u;e.onSuccess?(null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(o=(r=this.options).onSettled)||o.call(r,this.currentResult.data,null)):e.onError&&(null==(i=(s=this.options).onError)||i.call(s,this.currentResult.error),null==(a=(u=this.options).onSettled)||a.call(u,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function c(e,t){var n,o;return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&l(e,t,t.refetchOnMount)}function l(e,t,n){if(!1!==t.enabled){let o="function"==typeof n?n(e):n;return"always"===o||!1!==o&&d(e,t)}return!1}function h(e,t,n,o){return!1!==n.enabled&&(e!==t||!1===o.enabled)&&(!n.suspense||"error"!==e.state.status)&&d(e,n)}function d(e,t){return e.isStaleByTime(t.staleTime)}var f=n(67294),p=n(464);let y,m=f.createContext((y=!1,{clearReset(){y=!1},reset(){y=!0},isReset:()=>y})),v=()=>f.useContext(m);var g=n(85945);let b=f.createContext(!1),P=()=>f.useContext(b);b.Provider;var T=n(24798);let w=(e,t)=>{(e.suspense||e.useErrorBoundary)&&!t.isReset()&&(e.retryOnMount=!1)},E=e=>{f.useEffect(()=>{e.clearReset()},[e])},S=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:o})=>e.isError&&!t.isReset()&&!e.isFetching&&(0,T.L)(n,[e.error,o]),C=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},I=(e,t)=>e.isLoading&&e.isFetching&&!t,O=(e,t,n)=>(null==e?void 0:e.suspense)&&I(t,n),M=(e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)});function x(e,t,n){let i=(0,o._v)(e,t,n);return function(e,t){let n=(0,g.NL)({context:e.context}),o=P(),i=v(),s=n.defaultQueryOptions(e);s._optimisticResults=o?"isRestoring":"optimistic",s.onError&&(s.onError=r.V.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=r.V.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=r.V.batchCalls(s.onSettled)),C(s),w(s,i),E(i);let[a]=f.useState(()=>new t(n,s)),u=a.getOptimisticResult(s);if((0,p.$)(f.useCallback(e=>{let t=o?()=>void 0:a.subscribe(r.V.batchCalls(e));return a.updateResult(),t},[a,o]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),f.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),O(s,u,o))throw M(s,a,i);if(S({result:u,errorResetBoundary:i,useErrorBoundary:s.useErrorBoundary,query:a.getCurrentQuery()}))throw u.error;return s.notifyOnChangeProps?u:a.trackResult(u)}(i,u)}}}]);