"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[251],{3222:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return g}});let i=n(1024),r=n(8533),o=r._(n(2265)),s=n(4887),u=i._(n(2912)),a=n(2301),l=n(7709),c=n(9469);n(7873);let f=n(2706),d=i._(n(5033)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/checkout/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function p(e,t,n,i,r,o){let s=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===s)return;e["data-loaded-src"]=s;let u="decode"in e?e.decode():Promise.resolve();u.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===t&&r(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,r=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}})}function m(e){let[t,n]=o.version.split("."),i=parseInt(t,10),r=parseInt(n,10);return i>18||18===i&&r>=3?{fetchPriority:e}:{fetchpriority:e}}let y=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:i,sizes:r,height:s,width:u,decoding:a,className:l,style:c,fetchPriority:f,placeholder:d,loading:h,unoptimized:y,fill:v,onLoadRef:g,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:C,onLoad:_,onError:S,...E}=e;return o.default.createElement("img",{...E,...m(f),loading:h,width:u,height:s,decoding:a,"data-nimg":v?"fill":"1",className:l,style:c,sizes:r,srcSet:i,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(S&&(e.src=e.src),e.complete&&p(e,d,g,b,w,y))},[n,d,g,b,w,S,y,t]),onLoad:e=>{let t=e.currentTarget;p(t,d,g,b,w,y)},onError:e=>{C(!0),"blur"===d&&w(!0),S&&S(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,i={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t?((0,s.preload)(n.src,i),null):o.default.createElement(u.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...i}))}let g=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(f.RouterContext),i=(0,o.useContext)(c.ImageConfigContext),r=(0,o.useMemo)(()=>{let e=h||i||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[i]),{onLoad:s,onLoadingComplete:u}=e,p=(0,o.useRef)(s);(0,o.useEffect)(()=>{p.current=s},[s]);let m=(0,o.useRef)(u);(0,o.useEffect)(()=>{m.current=u},[u]);let[g,b]=(0,o.useState)(!1),[w,C]=(0,o.useState)(!1),{props:_,meta:S}=(0,a.getImgProps)(e,{defaultLoader:d.default,imgConf:r,blurComplete:g,showAltText:w});return o.default.createElement(o.default.Fragment,null,o.default.createElement(y,{..._,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:C,ref:t}),S.priority?o.default.createElement(v,{isAppRouter:!n,imgAttributes:_}):null)});("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)},7555:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return o}});let i=n(1024),r=i._(n(2265)),o=r.default.createContext({})},8551:function(e,t){function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:i=!1}=void 0===e?{}:e;return t||n&&i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},2301:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return u}}),n(7873);let i=n(9540),r=n(7709);function o(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u(e,t){var n;let u,a,l,{src:c,sizes:f,unoptimized:d=!1,priority:h=!1,loading:p,className:m,quality:y,width:v,height:g,fill:b=!1,style:w,onLoad:C,onLoadingComplete:_,placeholder:S="empty",blurDataURL:E,fetchPriority:O,layout:P,objectFit:x,objectPosition:j,lazyBoundary:k,lazyRoot:M,...R}=e,{imgConf:F,showAltText:z,blurComplete:A,defaultLoader:I}=t,L=F||r.imageConfigDefault;if("allSizes"in L)u=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);u={...L,allSizes:e,deviceSizes:t}}let T=R.loader||I;delete R.loader,delete R.srcSet;let N="__next_img_default"in T;if(N){if("custom"===u.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=T;T=t=>{let{config:n,...i}=t;return e(i)}}if(P){"fill"===P&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[P];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[P];t&&!f&&(f=t)}let D="",G=s(v),U=s(g);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(a=e.blurWidth,l=e.blurHeight,E=E||e.blurDataURL,D=e.src,!b){if(G||U){if(G&&!U){let t=G/e.width;U=Math.round(e.height*t)}else if(!G&&U){let t=U/e.height;G=Math.round(e.width*t)}}else G=e.width,U=e.height}}let K=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:D)||c.startsWith("data:")||c.startsWith("blob:"))&&(d=!0,K=!1),u.unoptimized&&(d=!0),N&&c.endsWith(".svg")&&!u.dangerouslyAllowSVG&&(d=!0),h&&(O="high");let q=s(y),B=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:x,objectPosition:j}:{},z?{}:{color:"transparent"},w),V="blur"===S&&E&&!A?{backgroundSize:B.objectFit||"cover",backgroundPosition:B.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,i.getImageBlurSvg)({widthInt:G,heightInt:U,blurWidth:a,blurHeight:l,blurDataURL:E,objectFit:B.objectFit})+'")'}:{},H=function(e){let{config:t,src:n,unoptimized:i,width:r,quality:o,sizes:s,loader:u}=e;if(i)return{src:n,srcSet:void 0,sizes:void 0};let{widths:a,kind:l}=function(e,t,n){let{deviceSizes:i,allSizes:r}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let i;i=e.exec(n);i)t.push(parseInt(i[2]));if(t.length){let e=.01*Math.min(...t);return{widths:r.filter(t=>t>=i[0]*e),kind:"w"}}return{widths:r,kind:"w"}}if("number"!=typeof t)return{widths:i,kind:"w"};let o=[...new Set([t,2*t].map(e=>r.find(t=>t>=e)||r[r.length-1]))];return{widths:o,kind:"x"}}(t,r,s),c=a.length-1;return{sizes:s||"w"!==l?s:"100vw",srcSet:a.map((e,i)=>u({config:t,src:n,quality:o,width:e})+" "+("w"===l?e:i+1)+l).join(", "),src:u({config:t,src:n,quality:o,width:a[c]})}}({config:u,src:c,unoptimized:d,width:G,quality:q,sizes:f,loader:T}),W={...R,loading:K?"lazy":p,fetchPriority:O,width:G,height:U,decoding:"async",className:m,style:{...B,...V},sizes:H.sizes,srcSet:H.srcSet,src:H.src},Q={unoptimized:d,priority:h,placeholder:S,fill:b};return{props:W,meta:Q}}},2912:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return c},default:function(){return p}});let i=n(1024),r=n(8533),o=r._(n(2265)),s=i._(n(2378)),u=n(7555),a=n(1330),l=n(8551);function c(e){void 0===e&&(e=!1);let t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(7873);let d=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(c(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,i={};return r=>{let o=!0,s=!1;if(r.key&&"number"!=typeof r.key&&r.key.indexOf("$")>0){s=!0;let t=r.key.slice(r.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(r.type){case"title":case"base":t.has(r.type)?o=!1:t.add(r.type);break;case"meta":for(let e=0,t=d.length;e{let i=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:i})})}let p=function(e){let{children:t}=e,n=(0,o.useContext)(u.AmpStateContext),i=(0,o.useContext)(a.HeadManagerContext);return o.default.createElement(s.default,{reduceComponentsToState:h,headManager:i,inAmpMode:(0,l.isInAmpMode)(n)},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)},9540:function(e,t){function n(e){let{widthInt:t,heightInt:n,blurWidth:i,blurHeight:r,blurDataURL:o,objectFit:s}=e,u=i?40*i:t,a=r?40*r:n,l=u&&a?"viewBox='0 0 "+u+" "+a+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+l+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(l?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},9469:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let i=n(1024),r=i._(n(2265)),o=n(7709),s=r.default.createContext(o.imageConfigDefault)},7709:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return i}});let n=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},5033:function(e,t){function n(e){let{config:t,src:n,width:i,quality:r}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+(r||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}}),n.__next_img_default=!0;let i=n},2706:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return o}});let i=n(1024),r=i._(n(2265)),o=r.default.createContext(null)},2378:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let i=n(8533),r=i._(n(2265)),o=r.useLayoutEffect,s=r.useEffect;function u(e){let{headManager:t,reduceComponentsToState:n}=e;function i(){if(t&&t.mountedInstances){let i=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(i,e))}}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},7873:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},622:function(e,t,n){/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=n(2265),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,u=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var i,o={},l=null,c=null;for(i in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,i)&&!a.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===o[i]&&(o[i]=t[i]);return{$$typeof:r,type:e,key:l,ref:c,props:o,_owner:u.current}}t.Fragment=o,t.jsx=l,t.jsxs=l},7437:function(e,t,n){e.exports=n(622)},8202:function(e,t,n){n.d(t,{j:function(){return s}});var i=n(9492),r=n(6504);class o extends i.l{constructor(){super(),this.setup=e=>{if(!r.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let s=new o},8810:function(e,t,n){n.d(t,{_:function(){return i}});let i=console},172:function(e,t,n){n.d(t,{R:function(){return a},m:function(){return u}});var i=n(8810),r=n(7156),o=n(1909),s=n(3238);class u extends o.F{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||i._,this.observers=[],this.state=e.state||a(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,i,r,o,u,a,l,c,f,d,h,p,m,y,v,g,b,w;let C="loading"===this.state.status;try{if(!C){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(l=(c=this.mutationCache.config).onMutate)?void 0:l.call(c,this.state.variables,this));let e=await (null==(f=(d=this.options).onMutate)?void 0:f.call(d,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let h=await (()=>{var e;return this.retryer=(0,s.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,h,this.state.variables,this.state.context,this)),await (null==(n=(i=this.options).onSuccess)?void 0:n.call(i,h,this.state.variables,this.state.context)),await (null==(r=(o=this.mutationCache.config).onSettled)?void 0:r.call(o,h,null,this.state.variables,this.state.context,this)),await (null==(u=(a=this.options).onSettled)?void 0:u.call(a,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{throw await (null==(h=(p=this.mutationCache.config).onError)?void 0:h.call(p,e,this.state.variables,this.state.context,this)),await (null==(m=(y=this.options).onError)?void 0:m.call(y,e,this.state.variables,this.state.context)),await (null==(v=(g=this.mutationCache.config).onSettled)?void 0:v.call(g,void 0,e,this.state.variables,this.state.context,this)),await (null==(b=(w=this.options).onSettled)?void 0:b.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,s.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),r.V.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},7156:function(e,t,n){n.d(t,{V:function(){return r}});var i=n(6504);let r=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=r=>{t?e.push(r):(0,i.A4)(()=>{n(r)})},s=()=>{let t=e;e=[],t.length&&(0,i.A4)(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||s()}return n},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}()},3864:function(e,t,n){n.d(t,{N:function(){return u}});var i=n(9492),r=n(6504);let o=["online","offline"];class s extends i.l{constructor(){super(),this.setup=e=>{if(!r.sk&&window.addEventListener){let t=()=>e();return o.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{o.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let u=new s},1909:function(e,t,n){n.d(t,{F:function(){return r}});var i=n(6504);class r{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:i.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},3238:function(e,t,n){n.d(t,{DV:function(){return l},Kw:function(){return u},Mz:function(){return c}});var i=n(8202),r=n(3864),o=n(6504);function s(e){return Math.min(1e3*2**e,3e4)}function u(e){return(null!=e?e:"online")!=="online"||r.N.isOnline()}class a{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function l(e){return e instanceof a}function c(e){let t,n,l,c=!1,f=0,d=!1,h=new Promise((e,t)=>{n=e,l=t}),p=()=>!i.j.isFocused()||"always"!==e.networkMode&&!r.N.isOnline(),m=i=>{d||(d=!0,null==e.onSuccess||e.onSuccess(i),null==t||t(),n(i))},y=n=>{d||(d=!0,null==e.onError||e.onError(n),null==t||t(),l(n))},v=()=>new Promise(n=>{t=e=>{let t=d||!p();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,d||null==e.onContinue||e.onContinue()}),g=()=>{let t;if(!d){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{var n,i;if(d)return;let r=null!=(n=e.retry)?n:3,u=null!=(i=e.retryDelay)?i:s,a="function"==typeof u?u(f,t):u,l=!0===r||"number"==typeof r&&f{if(p())return v()}).then(()=>{c?y(t):g()})})}};return u(e.networkMode)?g():v().then(g),{promise:h,cancel:t=>{d||(y(new a(t)),null==e.abort||e.abort())},continue:()=>{let e=null==t?void 0:t();return e?h:Promise.resolve()},cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1}}}},9492:function(e,t,n){n.d(t,{l:function(){return i}});class i{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},6504:function(e,t,n){n.d(t,{A4:function(){return S},G9:function(){return E},Gh:function(){return _},I6:function(){return c},Kp:function(){return u},PN:function(){return s},Rm:function(){return h},SE:function(){return o},VS:function(){return v},X7:function(){return d},ZT:function(){return r},_v:function(){return a},_x:function(){return f},lV:function(){return l},oE:function(){return O},sk:function(){return i},to:function(){return m},yF:function(){return p}});let i="undefined"==typeof window||"Deno"in window;function r(){}function o(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function a(e,t,n){return C(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function l(e,t,n){return C(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function c(e,t,n){return C(e)?[{...t,queryKey:e},n]:[e||{},t]}function f(e,t){let{type:n="all",exact:i,fetchStatus:r,predicate:o,queryKey:s,stale:u}=e;if(C(s)){if(i){if(t.queryHash!==h(s,t.options))return!1}else{if(!y(t.queryKey,s))return!1}}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(void 0===r||r===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:n,fetching:i,predicate:r,mutationKey:o}=e;if(C(o)){if(!t.options.mutationKey)return!1;if(n){if(p(t.options.mutationKey)!==p(o))return!1}else{if(!y(t.options.mutationKey,o))return!1}}return("boolean"!=typeof i||"loading"===t.state.status===i)&&(!r||!!r(t))}function h(e,t){let n=(null==t?void 0:t.queryKeyHashFn)||p;return n(e)}function p(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function m(e,t){return y(e,t)}function y(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!y(e[n],t[n]))}function v(e,t){if(e&&!t||t&&!e)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!w(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(w(n)&&n.hasOwnProperty("isPrototypeOf"))}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function C(e){return Array.isArray(e)}function _(e){return new Promise(t=>{setTimeout(t,e)})}function S(e){_(0).then(e)}function E(){if("function"==typeof AbortController)return new AbortController}function O(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let i=g(t)&&g(n);if(i||b(t)&&b(n)){let r=i?t.length:Object.keys(t).length,o=i?n:Object.keys(n),s=o.length,u=i?[]:{},a=0;for(let r=0;r{let t=i.useContext(s(e,i.useContext(o)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},a=({client:e,children:t,context:n,contextSharing:r=!1})=>{i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let u=s(n,r);return i.createElement(o.Provider,{value:!n&&r},i.createElement(u.Provider,{value:e},t))}}}]);