(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1665],{84834:function(t,e,r){"use strict";var n,o=r(57708),i=function(){function t(t,e){if("function"!=typeof t)throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but got: "+t+".");this._batchLoadFn=t,this._maxBatchSize=function(t){if(!(!t||!1!==t.batch))return 1;var e=t&&t.maxBatchSize;if(void 0===e)return 1/0;if("number"!=typeof e||e<1)throw TypeError("maxBatchSize must be a positive number: "+e);return e}(e),this._batchScheduleFn=function(t){var e=t&&t.batchScheduleFn;if(void 0===e)return s;if("function"!=typeof e)throw TypeError("batchScheduleFn must be a function: "+e);return e}(e),this._cacheKeyFn=function(t){var e=t&&t.cacheKeyFn;if(void 0===e)return function(t){return t};if("function"!=typeof e)throw TypeError("cacheKeyFn must be a function: "+e);return e}(e),this._cacheMap=function(t){if(!(!t||!1!==t.cache))return null;var e=t&&t.cacheMap;if(void 0===e)return new Map;if(null!==e){var r=["get","set","delete","clear"].filter(function(t){return e&&"function"!=typeof e[t]});if(0!==r.length)throw TypeError("Custom cacheMap missing methods: "+r.join(", "))}return e}(e),this._batch=null,this.name=e&&e.name?e.name:null}var e=t.prototype;return e.load=function(t){if(null==t)throw TypeError("The loader.load() function must be called with a value, but got: "+String(t)+".");var e=function(t){var e=t._batch;if(null!==e&&!e.hasDispatched&&e.keys.length<t._maxBatchSize)return e;var r={hasDispatched:!1,keys:[],callbacks:[]};return t._batch=r,t._batchScheduleFn(function(){(function(t,e){var r;if(e.hasDispatched=!0,0===e.keys.length){u(e);return}try{r=t._batchLoadFn(e.keys)}catch(r){return a(t,e,TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function errored synchronously: "+String(r)+"."))}if(!r||"function"!=typeof r.then)return a(t,e,TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise: "+String(r)+"."));r.then(function(t){if(!c(t))throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array: "+String(t)+".");if(t.length!==e.keys.length)throw TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.\n\nKeys:\n"+String(e.keys)+"\n\nValues:\n"+String(t));u(e);for(var r=0;r<e.callbacks.length;r++){var n=t[r];n instanceof Error?e.callbacks[r].reject(n):e.callbacks[r].resolve(n)}}).catch(function(r){a(t,e,r)})})(t,r)}),r}(this),r=this._cacheMap,n=this._cacheKeyFn(t);if(r){var o=r.get(n);if(o){var i=e.cacheHits||(e.cacheHits=[]);return new Promise(function(t){i.push(function(){t(o)})})}}e.keys.push(t);var s=new Promise(function(t,r){e.callbacks.push({resolve:t,reject:r})});return r&&r.set(n,s),s},e.loadMany=function(t){if(!c(t))throw TypeError("The loader.loadMany() function must be called with Array<key> but got: "+t+".");for(var e=[],r=0;r<t.length;r++)e.push(this.load(t[r]).catch(function(t){return t}));return Promise.all(e)},e.clear=function(t){var e=this._cacheMap;if(e){var r=this._cacheKeyFn(t);e.delete(r)}return this},e.clearAll=function(){var t=this._cacheMap;return t&&t.clear(),this},e.prime=function(t,e){var r=this._cacheMap;if(r){var n,o=this._cacheKeyFn(t);void 0===r.get(o)&&(e instanceof Error?(n=Promise.reject(e)).catch(function(){}):n=Promise.resolve(e),r.set(o,n))}return this},t}(),s="object"==typeof o&&"function"==typeof o.nextTick?function(t){n||(n=Promise.resolve()),n.then(function(){o.nextTick(t)})}:"function"==typeof setImmediate?function(t){setImmediate(t)}:function(t){setTimeout(t)};function a(t,e,r){u(e);for(var n=0;n<e.keys.length;n++)t.clear(e.keys[n]),e.callbacks[n].reject(r)}function u(t){if(t.cacheHits)for(var e=0;e<t.cacheHits.length;e++)t.cacheHits[e]()}function c(t){return"object"==typeof t&&null!==t&&"number"==typeof t.length&&(0===t.length||t.length>0&&Object.prototype.hasOwnProperty.call(t,t.length-1))}t.exports=i},57708:function(t,e,r){"use strict";var n,o;t.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(13928)},13928:function(t){!function(){var e={229:function(t){var e,r,n,o=t.exports={};function i(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u=[],c=!1,l=-1;function h(){c&&n&&(c=!1,n.length?u=n.concat(u):l=-1,u.length&&p())}function p(){if(!c){var t=a(h);c=!0;for(var e=u.length;e;){for(n=u,u=[];++l<e;)n&&n[l].run();l=-1,e=u.length}n=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function d(){}o.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new f(t,e)),1!==u.length||c||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(t){return[]},o.binding=function(t){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}},s=!0;try{e[t](i,i.exports,n),s=!1}finally{s&&delete r[t]}return i.exports}n.ab="//";var o=n(229);t.exports=o}()},74542:function(t,e,r){"use strict";var n=r(7653),o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},i=function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s={Pixel:"Pixel",Percent:"Percent"},a={unit:s.Percent,value:.8};function u(t){return"number"==typeof t?{unit:s.Percent,value:100*t}:"string"==typeof t?t.match(/^(\d*(\.\d+)?)px$/)?{unit:s.Pixel,value:parseFloat(t)}:t.match(/^(\d*(\.\d+)?)%$/)?{unit:s.Percent,value:parseFloat(t)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),a):(console.warn("scrollThreshold should be string or number"),a)}var c=function(t){function e(e){var r=t.call(this,e)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:"string"==typeof r.props.scrollableTarget?document.getElementById(r.props.scrollableTarget):(null===r.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n        happen because the element may not have been added to DOM yet.\n        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n      "),null)},r.onStart=function(t){!r.lastScrollTop&&(r.dragging=!0,t instanceof MouseEvent?r.startY=t.pageY:t instanceof TouchEvent&&(r.startY=t.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(t){r.dragging&&(t instanceof MouseEvent?r.currentY=t.pageY:t instanceof TouchEvent&&(r.currentY=t.touches[0].pageY),r.currentY<r.startY||(r.currentY-r.startY>=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),r.currentY-r.startY>1.5*r.maxPullDownDistance||!r._infScroll||(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(t){"function"==typeof r.props.onScroll&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(t)},0);var e=r.props.height||r._scrollableNode?t.target:document.documentElement.scrollTop?document.documentElement:document.body;r.actionTriggered||((r.props.inverse?r.isElementAtTop(e,r.props.scrollThreshold):r.isElementAtBottom(e,r.props.scrollThreshold))&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=e.scrollTop)},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:e.dataLength},r.throttledOnScrollListener=(function(t,e,r,n){var o,i=!1,s=0;function a(){o&&clearTimeout(o)}function u(){var u=this,c=Date.now()-s,l=arguments;function h(){s=Date.now(),r.apply(u,l)}i||(n&&!o&&h(),a(),void 0===n&&c>t?h():!0!==e&&(o=setTimeout(n?function(){o=void 0}:h,void 0===n?t-c:t)))}return"boolean"!=typeof e&&(n=r,r=e,e=void 0),u.cancel=function(){a(),i=!0},u})(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return!function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.componentDidMount=function(){if(void 0===this.props.dataLength)throw Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'')},e.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},e.prototype.componentDidUpdate=function(t){this.props.dataLength!==t.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},e.getDerivedStateFromProps=function(t,e){return t.dataLength!==e.prevDataLength?i(i({},e),{prevDataLength:t.dataLength}):null},e.prototype.isElementAtTop=function(t,e){void 0===e&&(e=.8);var r=t===document.body||t===document.documentElement?window.screen.availHeight:t.clientHeight,n=u(e);return n.unit===s.Pixel?t.scrollTop<=n.value+r-t.scrollHeight+1:t.scrollTop<=n.value/100+r-t.scrollHeight+1},e.prototype.isElementAtBottom=function(t,e){void 0===e&&(e=.8);var r=t===document.body||t===document.documentElement?window.screen.availHeight:t.clientHeight,n=u(e);return n.unit===s.Pixel?t.scrollTop+r>=t.scrollHeight-n.value:t.scrollTop+r>=n.value/100*t.scrollHeight},e.prototype.render=function(){var t=this,e=i({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),r=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),o=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return n.createElement("div",{style:o,className:"infinite-scroll-component__outerdiv"},n.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(e){return t._infScroll=e},style:e},this.props.pullDownToRefresh&&n.createElement("div",{style:{position:"relative"},ref:function(e){return t._pullDown=e}},n.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!r&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},e}(n.Component);e.Z=c},72301:function(t,e,r){"use strict";t.exports=r(7653)},9997:function(t,e,r){"use strict";r.d(e,{K:function(){return a}});var n=r(72301),o=r(77912),i=r(43399),s=o.aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function a(){(0,i.kG)(!0,45);var t=n.createContext[s];return t||(Object.defineProperty(n.createContext,s,{value:t=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}},51710:function(t,e,r){"use strict";r.d(e,{I:function(){return o}});var n=Symbol.for("apollo.hook.wrappers");function o(t,e,r){var o=r.queryManager,i=o&&o[n],s=i&&i[t];return s?s(e):e}},8814:function(t,e,r){"use strict";r.d(e,{x:function(){return s}});var n=r(43399),o=r(72301),i=r(9997);function s(t){var e=o.useContext((0,i.K)()),r=t||e.client;return(0,n.kG)(!!r,49),r}},85259:function(t,e,r){"use strict";r.d(e,{J:function(){return h}});var n=r(38247),o=r(72301),i=r(62102),s=r(70460),a=r(8814),u=r(59794),c=r(51710),l={};function h(t){return(0,c.I)("useFragment",p,(0,a.x)(t.client))(t)}function p(t){var e,r,s,c,h,p=(0,a.x)(t.client).cache,d=(e=function(){var e=t.fragment,r=t.fragmentName,o=t.from,i=t.optimistic,s=(0,n._T)(t,["fragment","fragmentName","from","optimistic"]);return(0,n.pi)((0,n.pi)({},s),{returnPartialData:!0,id:"string"==typeof o?o:p.identify(o),query:p.getFragmentDoc(e,r),optimistic:void 0===i||i})},r=[t],(s=o.useRef()).current&&(0,i.D)(s.current.deps,r)||(s.current={value:e(),deps:r}),s.current.value),v=(c=function(){return f(p.diff(d))},(h=o.useRef(l)).current===l&&(h.current=c()),h);o.useMemo(function(){v.current=f(p.diff(d))},[d,p]);var y=o.useCallback(function(){return v.current},[]);return(0,u.$)(o.useCallback(function(t){var e=0,r=p.watch((0,n.pi)((0,n.pi)({},d),{immediate:!0,callback:function(r){(0,i.D)(r.result,v.current.data)||(v.current=f(r),clearTimeout(e),e=setTimeout(t))}}));return function(){r(),clearTimeout(e)}},[p,d]),y,y)}function f(t){var e={data:t.result,complete:!!t.complete};return t.missing&&(e.missing=(0,s.bw)(t.missing.map(function(t){return t.missing}))),e}},87279:function(t,e,r){"use strict";r.d(e,{a:function(){return w}});var n=r(38247),o=r(43399),i=r(72301),s=r(59794),a=r(62102),u=r(26138),c=r(9997),l=r(46710),h=r(48720),p=r(88613),f=r(8814),d=r(68282),v=r(77912),y=r(86751),m=r(36895),g=r(51710),b=Object.prototype.hasOwnProperty;function w(t,e){return void 0===e&&(e=Object.create(null)),(0,g.I)("useQuery",T,(0,f.x)(e&&e.client))(t,e)}function T(t,e){var r,n,o;return(r=(0,f.x)(e.client),(n=i.useRef()).current&&r===n.current.client&&t===n.current.query||(n.current=new k(r,t,n.current)),(o=n.current).forceUpdateState=i.useReducer(function(t){return t+1},0)[1],o).useQuery(e)}var k=function(){function t(t,e,r){var n=this;this.client=t,this.query=e,this.forceUpdate=function(){return n.forceUpdateState()},this.ssrDisabledResult=(0,d.J)({loading:!0,data:void 0,error:void 0,networkStatus:h.Ie.loading}),this.skipStandbyResult=(0,d.J)({loading:!1,data:void 0,error:void 0,networkStatus:h.Ie.ready}),this.toQueryResultCache=new(v.mr?WeakMap:Map),(0,p.Vp)(e,p.n_.Query);var o=r&&r.result,i=o&&o.data;i&&(this.previousData=i)}return t.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&o.kG.warn(51)},t.prototype.executeQuery=function(t){var e,r=this;t.query&&Object.assign(this,{query:t.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=t);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(e=this.result)||void 0===e?void 0:e.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise(function(t){var e;n.subscribe({next:function(t){e=t},error:function(){t(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){t(r.toQueryResult(e))}})})},t.prototype.useQuery=function(t){var e=this;this.renderPromises=i.useContext((0,c.K)()).renderPromises,this.useOptions(t);var r=this.useObservableQuery(),n=(0,s.$)(i.useCallback(function(t){if(e.renderPromises)return function(){};e.forceUpdate=t;var n=function(){var t=e.result,n=r.getCurrentResult();t&&t.loading===n.loading&&t.networkStatus===n.networkStatus&&(0,a.D)(t.data,n.data)||e.setResult(n)},o=function(t){if(i.unsubscribe(),i=r.resubscribeAfterError(n,o),!b.call(t,"graphQLErrors"))throw t;var s=e.result;(!s||s&&s.loading||!(0,a.D)(t,s.error))&&e.setResult({data:s&&s.data,error:t,loading:!1,networkStatus:h.Ie.error})},i=r.subscribe(n,o);return function(){setTimeout(function(){return i.unsubscribe()}),e.forceUpdate=function(){return e.forceUpdateState()}}},[r,this.renderPromises,this.client.disableNetworkFetches]),function(){return e.getCurrentResult()},function(){return e.getCurrentResult()});return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},t.prototype.useOptions=function(e){var r,n=this.createWatchQueryOptions(this.queryHookOptions=e),o=this.watchQueryOptions;!(0,a.D)(n,o)&&(this.watchQueryOptions=n,o&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=e.onCompleted||t.prototype.onCompleted,this.onError=e.onError||t.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&!1===this.queryHookOptions.ssr&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},t.prototype.getObsQueryOptions=function(){var t=[],e=this.client.defaultOptions.watchQuery;return e&&t.push(e),this.queryHookOptions.defaultOptions&&t.push(this.queryHookOptions.defaultOptions),t.push((0,y.o)(this.observable&&this.observable.options,this.watchQueryOptions)),t.reduce(u.J)},t.prototype.createWatchQueryOptions=function(t){void 0===t&&(t={});var e,r=t.skip,o=Object.assign((t.ssr,t.onCompleted,t.onError,t.defaultOptions,(0,n._T)(t,["skip","ssr","onCompleted","onError","defaultOptions"])),{query:this.query});if(this.renderPromises&&("network-only"===o.fetchPolicy||"cache-and-network"===o.fetchPolicy)&&(o.fetchPolicy="cache-first"),o.variables||(o.variables={}),r){var i=o.fetchPolicy,s=void 0===i?this.getDefaultFetchPolicy():i,a=o.initialFetchPolicy;Object.assign(o,{initialFetchPolicy:void 0===a?s:a,fetchPolicy:"standby"})}else o.fetchPolicy||(o.fetchPolicy=(null===(e=this.observable)||void 0===e?void 0:e.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return o},t.prototype.getDefaultFetchPolicy=function(){var t,e;return(null===(t=this.queryHookOptions.defaultOptions)||void 0===t?void 0:t.fetchPolicy)||(null===(e=this.client.defaultOptions.watchQuery)||void 0===e?void 0:e.fetchPolicy)||"cache-first"},t.prototype.onCompleted=function(t){},t.prototype.onError=function(t){},t.prototype.useObservableQuery=function(){var t=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=i.useMemo(function(){return{refetch:t.refetch.bind(t),reobserve:t.reobserve.bind(t),fetchMore:t.fetchMore.bind(t),updateQuery:t.updateQuery.bind(t),startPolling:t.startPolling.bind(t),stopPolling:t.stopPolling.bind(t),subscribeToMore:t.subscribeToMore.bind(t)}},[t]);var e=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&e&&(this.renderPromises.registerSSRObservable(t),t.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(t)),t},t.prototype.setResult=function(t){var e=this.result;e&&e.data&&(this.previousData=e.data),this.result=t,this.forceUpdate(),this.handleErrorOrCompleted(t,e)},t.prototype.handleErrorOrCompleted=function(t,e){var r=this;if(!t.loading){var n=this.toApolloError(t);Promise.resolve().then(function(){n?r.onError(n):t.data&&(null==e?void 0:e.networkStatus)!==t.networkStatus&&t.networkStatus===h.Ie.ready&&r.onCompleted(t.data)}).catch(function(t){!1!==globalThis.__DEV__&&o.kG.warn(t)})}},t.prototype.toApolloError=function(t){return(0,m.O)(t.errors)?new l.cA({graphQLErrors:t.errors}):t.error},t.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},t.prototype.toQueryResult=function(t){var e=this.toQueryResultCache.get(t);if(e)return e;var r=t.data,o=(t.partial,(0,n._T)(t,["data","partial"]));return this.toQueryResultCache.set(t,e=(0,n.pi)((0,n.pi)((0,n.pi)({data:r},o),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!e.error&&(0,m.O)(t.errors)&&(e.error=new l.cA({graphQLErrors:t.errors})),e},t.prototype.unsafeHandlePartialRefetch=function(t){t.partial&&this.queryHookOptions.partialRefetch&&!t.loading&&(!t.data||0===Object.keys(t.data).length)&&"cache-only"!==this.observable.options.fetchPolicy&&(Object.assign(t,{loading:!0,networkStatus:h.Ie.refetch}),this.observable.refetch())},t}()},59794:function(t,e,r){"use strict";r.d(e,{$:function(){return u}});var n,o=r(43399),i=r(72301),s=r(77912),a=!1,u=(n||(n=r.t(i,2))).useSyncExternalStore||function(t,e,r){var n=e();!1===globalThis.__DEV__||a||n===e()||(a=!0,!1!==globalThis.__DEV__&&o.kG.error(58));var u=i.useState({inst:{value:n,getSnapshot:e}}),l=u[0].inst,h=u[1];return s.JC?i.useLayoutEffect(function(){Object.assign(l,{value:n,getSnapshot:e}),c(l)&&h({inst:l})},[t,n,e]):Object.assign(l,{value:n,getSnapshot:e}),i.useEffect(function(){return c(l)&&h({inst:l}),t(function(){c(l)&&h({inst:l})})},[t]),n};function c(t){var e=t.value,r=t.getSnapshot;try{return e!==r()}catch(t){return!0}}},88613:function(t,e,r){"use strict";r.d(e,{Vp:function(){return p},n_:function(){return o}});var n,o,i,s=r(43399),a=r(67496),u=r(75594),c=r(67584);function l(t){var e;switch(t){case o.Query:e="Query";break;case o.Mutation:e="Mutation";break;case o.Subscription:e="Subscription"}return e}function h(t){i||(i=new a.s(u.Q.parser||1e3));var e,r,n=i.get(t);if(n)return n;(0,s.kG)(!!t&&!!t.kind,59,t);for(var c=[],l=[],h=[],p=[],f=0,d=t.definitions;f<d.length;f++){var v=d[f];if("FragmentDefinition"===v.kind){c.push(v);continue}if("OperationDefinition"===v.kind)switch(v.operation){case"query":l.push(v);break;case"mutation":h.push(v);break;case"subscription":p.push(v)}}(0,s.kG)(!c.length||l.length||h.length||p.length,60),(0,s.kG)(l.length+h.length+p.length<=1,61,t,l.length,p.length,h.length),r=l.length?o.Query:o.Mutation,l.length||h.length||(r=o.Subscription);var y=l.length?l:h.length?h:p;(0,s.kG)(1===y.length,62,t,y.length);var m=y[0];e=m.variableDefinitions||[];var g={name:m.name&&"Name"===m.name.kind?m.name.value:"data",type:r,variables:e};return i.set(t,g),g}function p(t,e){var r=h(t),n=l(e),o=l(r.type);(0,s.kG)(r.type===e,63,n,n,o)}(n=o||(o={}))[n.Query=0]="Query",n[n.Mutation=1]="Mutation",n[n.Subscription=2]="Subscription",h.resetCache=function(){i=void 0},!1!==globalThis.__DEV__&&(0,c.zP)("parser",function(){return i?i.size:0})}}]);