1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[887],{6252:function(t,e,r){r.d(e,{x:function(){return useApolloClient}});var n=r(8287),o=r(7294),s=r(5317);function useApolloClient(t){var e=o.useContext((0,s.K)()),r=t||e.client;return(0,n.kG)(!!r,49),r}},7887:function(t,e,r){r.d(e,{a:function(){return useQuery}});var n=r(7582),o=r(8287),s=r(7294),i=r.t(s,2),a=r(320),u=!1,l=i.useSyncExternalStore||function(t,e,r){var n=e();!1===globalThis.__DEV__||u||n===e()||(u=!0,!1!==globalThis.__DEV__&&o.kG.error(58));var i=s.useState({inst:{value:n,getSnapshot:e}}),l=i[0].inst,h=i[1];return a.JC?s.useLayoutEffect(function(){Object.assign(l,{value:n,getSnapshot:e}),checkIfSnapshotChanged(l)&&h({inst:l})},[t,n,e]):Object.assign(l,{value:n,getSnapshot:e}),s.useEffect(function(){return checkIfSnapshotChanged(l)&&h({inst:l}),t(function(){checkIfSnapshotChanged(l)&&h({inst:l})})},[t]),n};function checkIfSnapshotChanged(t){var e=t.value,r=t.getSnapshot;try{return e!==r()}catch(t){return!0}}var h=r(20),c=r(4012),p=r(5317),d=r(990),f=r(1644),y=r(4692),b=r(6252),v=r(8702),g=r(3712),k=r(1436),O=Object.prototype.hasOwnProperty;function useQuery(t,e){var r,n,o;return void 0===e&&(e=Object.create(null)),(r=(0,b.x)(e.client),(n=s.useRef()).current&&r===n.current.client&&t===n.current.query||(n.current=new S(r,t,n.current)),(o=n.current).forceUpdateState=s.useReducer(function(t){return t+1},0)[1],o).useQuery(e)}var S=function(){function InternalState(t,e,r){var n=this;this.client=t,this.query=e,this.forceUpdate=function(){return n.forceUpdateState()},this.ssrDisabledResult=(0,v.J)({loading:!0,data:void 0,error:void 0,networkStatus:f.Ie.loading}),this.skipStandbyResult=(0,v.J)({loading:!1,data:void 0,error:void 0,networkStatus:f.Ie.ready}),this.toQueryResultCache=new(a.mr?WeakMap:Map),(0,y.Vp)(e,y.n_.Query);var o=r&&r.result,s=o&&o.data;s&&(this.previousData=s)}return InternalState.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&o.kG.warn(50)},InternalState.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))}})})},InternalState.prototype.useQuery=function(t){var e=this;this.renderPromises=s.useContext((0,p.K)()).renderPromises,this.useOptions(t);var r=this.useObservableQuery(),n=l(s.useCallback(function(t){if(e.renderPromises)return function(){};e.forceUpdate=t;var onNext=function(){var t=e.result,n=r.getCurrentResult();t&&t.loading===n.loading&&t.networkStatus===n.networkStatus&&(0,h.D)(t.data,n.data)||e.setResult(n)},onError=function(t){if(n.unsubscribe(),n=r.resubscribeAfterError(onNext,onError),!O.call(t,"graphQLErrors"))throw t;var o=e.result;(!o||o&&o.loading||!(0,h.D)(t,o.error))&&e.setResult({data:o&&o.data,error:t,loading:!1,networkStatus:f.Ie.error})},n=r.subscribe(onNext,onError);return function(){setTimeout(function(){return n.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)},InternalState.prototype.useOptions=function(t){var e,r=this.createWatchQueryOptions(this.queryHookOptions=t),n=this.watchQueryOptions;!(0,h.D)(r,n)&&(this.watchQueryOptions=r,n&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(e=this.result)||void 0===e?void 0:e.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||InternalState.prototype.onCompleted,this.onError=t.onError||InternalState.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)},InternalState.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,g.o)(this.observable&&this.observable.options,this.watchQueryOptions)),t.reduce(c.J)},InternalState.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 s=o.fetchPolicy,i=void 0===s?this.getDefaultFetchPolicy():s,a=o.initialFetchPolicy;Object.assign(o,{initialFetchPolicy:void 0===a?i:a,fetchPolicy:"standby"})}else o.fetchPolicy||(o.fetchPolicy=(null===(e=this.observable)||void 0===e?void 0:e.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return o},InternalState.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)||"cac
1he-first"},InternalState.prototype.onCompleted=function(t){},InternalState.prototype.onError=function(t){},InternalState.prototype.useObservableQuery=function(){var t=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=s.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},InternalState.prototype.setResult=function(t){var e=this.result;e&&e.data&&(this.previousData=e.data),this.result=t,this.forceUpdate(),this.handleErrorOrCompleted(t,e)},InternalState.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===f.Ie.ready&&r.onCompleted(t.data)}).catch(function(t){!1!==globalThis.__DEV__&&o.kG.warn(t)})}},InternalState.prototype.toApolloError=function(t){return(0,k.O)(t.errors)?new d.cA({graphQLErrors:t.errors}):t.error},InternalState.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},InternalState.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,k.O)(t.errors)&&(e.error=new d.cA({graphQLErrors:t.errors})),e},InternalState.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:f.Ie.refetch}),this.observable.refetch())},InternalState}()},4692:function(t,e,r){r.d(e,{Vp:function(){return verifyDocumentType},n_:function(){return o}});var n,o,s=r(8287);(n=o||(o={}))[n.Query=0]="Query",n[n.Mutation=1]="Mutation",n[n.Subscription=2]="Subscription";var i=new Map;function operationName(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 verifyDocumentType(t,e){var r=function(t){var e,r,n=i.get(t);if(n)return n;(0,s.kG)(!!t&&!!t.kind,59,t);for(var a=[],u=[],l=[],h=[],c=0,p=t.definitions;c<p.length;c++){var d=p[c];if("FragmentDefinition"===d.kind){a.push(d);continue}if("OperationDefinition"===d.kind)switch(d.operation){case"query":u.push(d);break;case"mutation":l.push(d);break;case"subscription":h.push(d)}}(0,s.kG)(!a.length||u.length||l.length||h.length,60),(0,s.kG)(u.length+l.length+h.length<=1,61,t,u.length,h.length,l.length),r=u.length?o.Query:o.Mutation,u.length||l.length||(r=o.Subscription);var f=u.length?u:l.length?l:h;(0,s.kG)(1===f.length,62,t,f.length);var y=f[0];e=y.variableDefinitions||[];var b={name:y.name&&"Name"===y.name.kind?y.name.value:"data",type:r,variables:e};return i.set(t,b),b}(t),n=operationName(e),a=operationName(r.type);(0,s.kG)(r.type===e,63,n,n,a)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.