"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6536],{21676:function(e,t,n){/**
 * @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 r=n(12115),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=r.useState,o=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=u({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return a(function(){i.value=n,i.getSnapshot=t,s(i)&&c({inst:i})},[e,n,t]),o(function(){return s(i)&&c({inst:i}),e(function(){s(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},56447:function(e,t,n){e.exports=n(21676)},44043:function(e,t,n){n.d(t,{BE:function(){return H},Es:function(){return k},Ht:function(){return Q},Tk:function(){return U},Tn:function(){return l},X3:function(){return V},ZH:function(){return u},aw:function(){return G},b0:function(){return a},bZ:function(){return b},bu:function(){return x},dO:function(){return S},iX:function(){return J},lK:function(){return D},lg:function(){return F},mF:function(){return I},mf:function(){return L},qm:function(){return z},qv:function(){return o},r9:function(){return y},rL:function(){return s},sb:function(){return W}});var r=n(12115);let i=()=>{},u=i(),o=Object,a=e=>e===u,l=e=>"function"==typeof e,s=(e,t)=>({...e,...t}),c=e=>l(e.then),f=new WeakMap,d=0,E=e=>{let t,n;let r=typeof e,i=e&&e.constructor,u=i==Date;if(o(e)!==e||u||i==RegExp)t=u?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=f.get(e))return t;if(t=++d+"~",f.set(e,t),i==Array){for(n=0,t="@";n<e.length;n++)t+=E(e[n])+",";f.set(e,t)}if(i==o){t="#";let r=o.keys(e).sort();for(;!a(n=r.pop());)a(e[n])||(t+=n+":"+E(e[n])+",");f.set(e,t)}}return t},b=new WeakMap,g={},v={},w="undefined",h=typeof window!=w,p=typeof document!=w,_=()=>h&&typeof window.requestAnimationFrame!=w,y=(e,t)=>{let n=b.get(e);return[()=>!a(t)&&e.get(t)||g,r=>{if(!a(t)){let i=e.get(t);t in v||(v[t]=i),n[5](t,s(i,r),i||g)}},n[6],()=>!a(t)&&t in v?v[t]:!a(t)&&e.get(t)||g]},m=!0,[T,R]=h&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],O={initFocus:e=>(p&&document.addEventListener("visibilitychange",e),T("focus",e),()=>{p&&document.removeEventListener("visibilitychange",e),R("focus",e)}),initReconnect:e=>{let t=()=>{m=!0,e()},n=()=>{m=!1};return T("online",t),T("offline",n),()=>{R("online",t),R("offline",n)}}},S=!r.useId,V=!h||"Deno"in window,L=e=>_()?window.requestAnimationFrame(e):setTimeout(e,1),k=V?r.useEffect:r.useLayoutEffect,C="undefined"!=typeof navigator&&navigator.connection,N=!V&&C&&(["slow-2g","2g"].includes(C.effectiveType)||C.saveData),D=e=>{if(l(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?E(e):"",t]},A=0,F=()=>++A;var x={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function I(...e){let[t,n,r,i]=e,o=s({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),f=o.populateCache,d=o.rollbackOnError,E=o.optimisticData,g=e=>"function"==typeof d?d(e):!1!==d,v=o.throwOnError;if(l(n)){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(w))}return w(n);async function w(n){let i;let[s]=D(n);if(!s)return;let[d,w]=y(t,s),[h,p,_,m]=b.get(t),T=()=>{let e=h[s];return(l(o.revalidate)?o.revalidate(d().data,n):!1!==o.revalidate)&&(delete _[s],delete m[s],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return T();let R=r,O=F();p[s]=[O,0];let S=!a(E),V=d(),L=V.data,k=V._c,C=a(k)?L:k;if(S&&w({data:E=l(E)?E(C,L):E,_c:C}),l(R))try{R=R(C)}catch(e){i=e}if(R&&c(R)){if(R=await R.catch(e=>{i=e}),O!==p[s][0]){if(i)throw i;return R}i&&S&&g(i)&&(f=!0,w({data:C,_c:u}))}if(f&&!i&&(l(f)?w({data:f(R,C),error:u,_c:u}):w({data:R,error:u,_c:u})),p[s][1]=F(),Promise.resolve(T()).then(()=>{w({_c:u})}),i){if(v)throw i;return}return R}}let M=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},P=(e,t)=>{if(!b.has(e)){let n=s(O,t),r={},o=I.bind(u,e),a=i,l={},c=(e,t)=>{let n=l[e]||[];return l[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,r)=>{e.set(t,n);let i=l[t];if(i)for(let e of i)e(n,r)},d=()=>{if(!b.has(e)&&(b.set(e,[r,{},{},{},o,f,c]),!V)){let t=n.initFocus(setTimeout.bind(u,M.bind(u,r,0))),i=n.initReconnect(setTimeout.bind(u,M.bind(u,r,1)));a=()=>{t&&t(),i&&i(),b.delete(e)}}};return d(),[e,o,d,a]}return[e,b.get(e)[4]]},[q,U]=P(new Map),W=s({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:(e,t,n,r,i)=>{let u=n.errorRetryCount,o=i.retryCount,l=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;(a(u)||!(o>u))&&setTimeout(r,l,i)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:N?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:N?5e3:3e3,compare:(e,t)=>E(e)==E(t),isPaused:()=>!1,cache:q,mutate:U,fallback:{}},{isOnline:()=>m,isVisible:()=>{let e=p&&document.visibilityState;return a(e)||"hidden"!==e}}),j=(e,t)=>{let n=s(e,t);if(t){let{use:r,fallback:i}=e,{use:u,fallback:o}=t;r&&u&&(n.use=r.concat(u)),i&&o&&(n.fallback=s(i,o))}return n},Z=(0,r.createContext)({}),H=e=>{let{value:t}=e,n=(0,r.useContext)(Z),i=l(t),o=(0,r.useMemo)(()=>i?t(n):t,[i,n,t]),a=(0,r.useMemo)(()=>i?o:j(n,o),[i,n,o]),c=o&&o.provider,f=(0,r.useRef)(u);c&&!f.current&&(f.current=P(c(a.cache||q),o));let d=f.current;return d&&(a.cache=d[0],a.mutate=d[1]),k(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,r.createElement)(Z.Provider,s(e,{value:a}))},X=h&&window.__SWR_DEVTOOLS_USE__,$=X?window.__SWR_DEVTOOLS_USE__:[],B=e=>l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],J=()=>s(W,(0,r.useContext)(Z)),K=$.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let[r]=D(t),[,,,i]=b.get(q);if(r.startsWith("$inf$"))return n(...e);let u=i[r];return a(u)?n(...e):(delete i[r],u)});return e(t,i,r)}),z=e=>function(...t){let n=J(),[r,i,u]=B(t),o=j(n,u),a=e,{use:l}=o,s=(l||[]).concat(K);for(let e=s.length;e--;)a=s[e](a);return a(r,i||o.fetcher||null,o)},G=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Q=(e,t)=>(...n)=>{let[r,i,u]=B(n),o=(u.use||[]).concat(t);return e(r,i,{...u,use:o})};X&&(window.__SWR_DEVTOOLS_REACT__=r)},76536:function(e,t,n){n.d(t,{Ay:function(){return s},BE:function(){return l},Tk:function(){return u.Tk}});var r=n(12115),i=n(56447),u=n(44043);let o=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),a={dedupe:!0},l=u.qv.defineProperty(u.BE,"defaultValue",{value:u.sb}),s=(0,u.qm)((e,t,n)=>{let{cache:l,compare:s,suspense:c,fallbackData:f,revalidateOnMount:d,revalidateIfStale:E,refreshInterval:b,refreshWhenHidden:g,refreshWhenOffline:v,keepPreviousData:w}=n,[h,p,_,y]=u.bZ.get(l),[m,T]=(0,u.lK)(e),R=(0,r.useRef)(!1),O=(0,r.useRef)(!1),S=(0,r.useRef)(m),V=(0,r.useRef)(t),L=(0,r.useRef)(n),k=()=>L.current,C=()=>k().isVisible()&&k().isOnline(),[N,D,A,F]=(0,u.r9)(l,m),x=(0,r.useRef)({}).current,I=(0,u.b0)(f)?n.fallback[m]:f,M=(e,t)=>{for(let n in x)if("data"===n){if(!s(e[n],t[n])&&(!(0,u.b0)(e[n])||!s($,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},P=(0,r.useMemo)(()=>{let e=!!m&&!!t&&((0,u.b0)(d)?!k().isPaused()&&!c&&(!!(0,u.b0)(E)||E):d),n=t=>{let n=(0,u.rL)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=N(),i=F(),o=n(r),a=r===i?o:n(i),l=o;return[()=>{let e=n(N());return M(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>a]},[l,m]),q=(0,i.useSyncExternalStore)((0,r.useCallback)(e=>A(m,(t,n)=>{M(n,t)||e()}),[l,m]),P[0],P[1]),U=!R.current,W=h[m]&&h[m].length>0,j=q.data,Z=(0,u.b0)(j)?I:j,H=q.error,X=(0,r.useRef)(Z),$=w?(0,u.b0)(j)?X.current:j:Z,B=(!W||!!(0,u.b0)(H))&&(U&&!(0,u.b0)(d)?d:!k().isPaused()&&(c?!(0,u.b0)(Z)&&E:(0,u.b0)(Z)||E)),J=!!(m&&t&&U&&B),K=(0,u.b0)(q.isValidating)?J:q.isValidating,z=(0,u.b0)(q.isLoading)?J:q.isLoading,G=(0,r.useCallback)(async e=>{let t,r;let i=V.current;if(!m||!i||O.current||k().isPaused())return!1;let o=!0,a=e||{},l=!_[m]||!a.dedupe,c=()=>u.dO?!O.current&&m===S.current&&R.current:m===S.current,f={isValidating:!1,isLoading:!1},d=()=>{D(f)},E=()=>{let e=_[m];e&&e[1]===r&&delete _[m]},b={isValidating:!0};(0,u.b0)(N().data)&&(b.isLoading=!0);try{if(l&&(D(b),n.loadingTimeout&&(0,u.b0)(N().data)&&setTimeout(()=>{o&&c()&&k().onLoadingSlow(m,n)},n.loadingTimeout),_[m]=[i(T),(0,u.lg)()]),[t,r]=_[m],t=await t,l&&setTimeout(E,n.dedupingInterval),!_[m]||_[m][1]!==r)return l&&c()&&k().onDiscarded(m),!1;f.error=u.ZH;let e=p[m];if(!(0,u.b0)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return d(),l&&c()&&k().onDiscarded(m),!1;let a=N().data;f.data=s(a,t)?a:t,l&&c()&&k().onSuccess(t,m,n)}catch(n){E();let e=k(),{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,l&&c()&&(e.onError(n,m,e),(!0===t||(0,u.Tn)(t)&&t(n))&&(!k().revalidateOnFocus||!k().revalidateOnReconnect||C())&&e.onErrorRetry(n,m,e,e=>{let t=h[m];t&&t[0]&&t[0](u.bu.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,d(),!0},[m,l]),Q=(0,r.useCallback)((...e)=>(0,u.mF)(l,S.current,...e),[]);if((0,u.Es)(()=>{V.current=t,L.current=n,(0,u.b0)(j)||(X.current=j)}),(0,u.Es)(()=>{if(!m)return;let e=G.bind(u.ZH,a),t=0,n=(0,u.aw)(m,h,(n,r={})=>{if(n==u.bu.FOCUS_EVENT){let n=Date.now();k().revalidateOnFocus&&n>t&&C()&&(t=n+k().focusThrottleInterval,e())}else if(n==u.bu.RECONNECT_EVENT)k().revalidateOnReconnect&&C()&&e();else if(n==u.bu.MUTATE_EVENT)return G();else if(n==u.bu.ERROR_REVALIDATE_EVENT)return G(r)});return O.current=!1,S.current=m,R.current=!0,D({_k:T}),B&&((0,u.b0)(Z)||u.X3?e():(0,u.mf)(e)),()=>{O.current=!0,n()}},[m]),(0,u.Es)(()=>{let e;function t(){let t=(0,u.Tn)(b)?b(N().data):b;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!N().error&&(g||k().isVisible())&&(v||k().isOnline())?G(a).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[b,g,v,m]),(0,r.useDebugValue)($),c&&(0,u.b0)(Z)&&m){if(!u.dO&&u.X3)throw Error("Fallback data is required when using suspense in SSR.");V.current=t,L.current=n,O.current=!1;let e=y[m];if((0,u.b0)(e)||o(Q(e)),(0,u.b0)(H)){let e=G(a);(0,u.b0)($)||(e.status="fulfilled",e.value=!0),o(e)}else throw H}return{mutate:Q,get data(){return x.data=!0,$},get error(){return x.error=!0,H},get isValidating(){return x.isValidating=!0,K},get isLoading(){return x.isLoading=!0,z}}})}}]);