!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aaefd2cc-db88-4208-b837-d3ec01e7b11a",e._sentryDebugIdIdentifier="sentry-dbid-aaefd2cc-db88-4208-b837-d3ec01e7b11a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6426],{9850:function(e,t,s){var r=s(18874);e.exports=function(e){return r(e,5)}},58586:function(e,t,s){"use strict";s.d(t,{N:function(){return useInfiniteQuery}});var r=s(36370),i=s(91578),n=s(54388);let InfiniteQueryObserver=class InfiniteQueryObserver extends i.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,n.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,n.Gm)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var s,r,i,u,o,a;let{state:l}=e,h=super.createResult(e,t),{isFetching:c,isRefetching:d}=h,f=c&&(null==(s=l.fetchMeta)?void 0:null==(r=s.fetchMore)?void 0:r.direction)==="forward",b=c&&(null==(i=l.fetchMeta)?void 0:null==(u=i.fetchMore)?void 0:u.direction)==="backward";return{...h,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.Qy)(t,null==(o=l.data)?void 0:o.pages),hasPreviousPage:(0,n.ZF)(t,null==(a=l.data)?void 0:a.pages),isFetchingNextPage:f,isFetchingPreviousPage:b,isRefetching:d&&!f&&!b}}};var u=s(28281);function useInfiniteQuery(e,t,s){let i=(0,r._v)(e,t,s);return(0,u.r)(i,InfiniteQueryObserver)}},62350:function(e,t,s){"use strict";s.d(t,{D:function(){return useMutation}});var r=s(2784),i=s(36370),n=s(96278),u=s(3709),o=s(22436);let MutationObserver=class MutationObserver extends o.l{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let s=this.options;this.options=this.client.defaultMutationOptions(e),(0,i.VS)(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,n.R)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){u.V.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,s,r,i,n,u,o,a;e.onSuccess?(null==(t=(s=this.mutateOptions).onSuccess)||t.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(n=(u=this.mutateOptions).onError)||n.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(o=(a=this.mutateOptions).onSettled)||o.call(a,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}};var a=s(29930),l=s(55830),h=s(99189);function useMutation(e,t,s){let n=(0,i.lV)(e,t,s),o=(0,l.NL)({context:n.context}),[c]=r.useState(()=>new MutationObserver(o,n));r.useEffect(()=>{c.setOptions(n)},[c,n]);let d=(0,a.$)(r.useCallback(e=>c.subscribe(u.V.batchCalls(e)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),f=r.useCallback((e,t)=>{c.mutate(e,t).catch(noop)},[c]);if(d.error&&(0,h.L)(c.options.useErrorBoundary,[d.error]))throw d.error;return{...d,mutate:f,mutateAsync:d.mutate}}function noop(){}},52308:function(e,t,s){"use strict";s.d(t,{h:function(){return useQueries}});var r=s(2784),i=s(36370),n=s(3709),u=s(91578),o=s(22436);let QueriesObserver=class QueriesObserver extends o.l{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(e=>{e.destroy()})}setQueries(e,t){this.queries=e,n.V.batch(()=>{let e=this.observers,s=this.findMatchingObservers(this.queries);s.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions,t));let r=s.map(e=>e.observer),n=Object.fromEntries(r.map(e=>[e.options.queryHash,e])),u=r.map(e=>e.getCurrentResult()),o=r.some((t,s)=>t!==e[s]);(e.length!==r.length||o)&&(this.observers=r,this.observersMap=n,this.result=u,this.hasListeners()&&((0,i.e5)(e,r).forEach(e=>{e.destroy()}),(0,i.e5)(r,e).forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(e=>e.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions))}findMatchingObservers(e){let t=this.observers,s=new Map(t.map(e=>[e.options.queryHash,e])),r=e.map(e=>this.client.defaultQueryOptions(e)),i=r.flatMap(e=>{let t=s.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]}),n=new Set(i.map(e=>e.defaultedQueryOptions.queryHash)),o=r.filter(e=>!n.has(e.queryHash)),a=new Set(i.map(e=>e.observer)),l=t.filter(e=>!a.has(e)),getObserver=e=>{let t=this.client.defaultQueryOptions(e),s=this.observersMap[t.queryHash];return null!=s?s:new u.z(this.client,t)},h=o.map((e,t)=>{if(e.keepPreviousData){let s=l[t];if(void 0!==s)return{defaultedQueryOptions:e,observer:s}}return{defaultedQueryOptions:e,observer:getObserver(e)}});return i.concat(h).sort((e,t)=>r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions))}onUpdate(e,t){let s=this.observers.indexOf(e);-1!==s&&(this.result=(0,i.Rc)(this.result,s,t),this.notify())}notify(){n.V.batch(()=>{this.listeners.forEach(({listener:e})=>{e(this.result)})})}};var a=s(29930),l=s(55830),h=s(62257),c=s(92985),d=s(8879),f=s(87167);function useQueries({queries:e,context:t}){let s=(0,l.NL)({context:t}),i=(0,h.S)(),u=(0,c._)(),o=r.useMemo(()=>e.map(e=>{let t=s.defaultQueryOptions(e);return t._optimisticResults=i?"isRestoring":"optimistic",t}),[e,s,i]);o.forEach(e=>{(0,f.Fb)(e),(0,d.pf)(e,u)}),(0,d.JN)(u);let[b]=r.useState(()=>new QueriesObserver(s,o)),p=b.getOptimisticResult(o);(0,a.$)(r.useCallback(e=>i?()=>void 0:b.subscribe(n.V.batchCalls(e)),[b,i]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),r.useEffect(()=>{b.setQueries(o,{listeners:!1})},[o,b]);let v=p.some((e,t)=>(0,f.SB)(o[t],e,i)),g=v?p.flatMap((e,t)=>{let s=o[t],r=b.getObservers()[t];if(s&&r){if((0,f.SB)(s,e,i))return(0,f.j8)(s,r,u);(0,f.Z$)(e,i)&&(0,f.j8)(s,r,u)}return[]}):[];if(g.length>0)throw Promise.all(g);let y=b.getQueries(),O=p.find((e,t)=>{var s,r;return(0,d.KJ)({result:e,errorResetBoundary:u,useErrorBoundary:null!=(s=null==(r=o[t])?void 0:r.useErrorBoundary)&&s,query:y[t]})});if(null!=O&&O.error)throw O.error;return p}},76817:function(e,t,s){"use strict";s.d(t,{YD:function(){return useInView}});var r=s(2784),i=Object.defineProperty,n=new Map,u=new WeakMap,o=0,a=void 0;function useInView({threshold:e,delay:t,trackVisibility:s,rootMargin:i,root:l,triggerOnce:h,skip:c,initialInView:d,fallbackInView:f,onChange:b}={}){var p;let[v,g]=r.useState(null),y=r.useRef(),[O,m]=r.useState({inView:!!d,entry:void 0});y.current=b,r.useEffect(()=>{let r;if(!c&&v)return r=function(e,t,s={},r=a){if(void 0===window.IntersectionObserver&&void 0!==r){let i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof s.threshold?s.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:l,elements:h}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var s;return`${t}_${"root"===t?(s=e.root)?(u.has(s)||(o+=1,u.set(s,o.toString())),u.get(s)):"0":e[t]}`}).toString(),s=n.get(t);if(!s){let r;let i=new Map,u=new IntersectionObserver(t=>{t.forEach(t=>{var s;let n=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=n),null==(s=i.get(t.target))||s.forEach(e=>{e(n,t)})})},e);r=u.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),s={id:t,observer:u,elements:i},n.set(t,s)}return s}(s),c=h.get(e)||[];return h.has(e)||h.set(e,c),c.push(t),l.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(h.delete(e),l.unobserve(e)),0===h.size&&(l.disconnect(),n.delete(i))}}(v,(e,t)=>{m({inView:e,entry:t}),y.current&&y.current(e,t),t.isIntersecting&&h&&r&&(r(),r=void 0)},{root:l,rootMargin:i,threshold:e,trackVisibility:s,delay:t},f),()=>{r&&r()}},[Array.isArray(e)?e.toString():e,v,l,i,h,c,s,f,t]);let R=null==(p=O.entry)?void 0:p.target,M=r.useRef();v||!R||h||c||M.current===R||(M.current=R,m({inView:!!d,entry:void 0}));let w=[g,O.inView,O.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}r.Component}}]);