UNPKG

react-relay

Version:

A framework for building GraphQL-driven React applications.

4 lines • 59.3 kB
/** * Relay v18.2.0 */ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],n):"object"==typeof exports?exports.ReactRelayHooks=n(require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelayHooks=n(e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,n,r,t,a,i,o,l,u,s)=>(()=>{"use strict";var c={888:(e,n,r)=>{var t=r(156),a=r(658).__internal.createRelayContext;e.exports=a(t)},651:(e,n,r)=>{var t=r(158),a=r(828),i=r(428).loadQuery,o=r(187),l=r(696),u=r(529),s=r(242),c=r(899),f=r(115),d=r(951),p=r(617),v=r(876),m=r(874),h=r(750),g=r(50),y=r(746),b=r(658);e.exports={ConnectionHandler:b.ConnectionHandler,applyOptimisticMutation:b.applyOptimisticMutation,commitLocalUpdate:b.commitLocalUpdate,commitMutation:b.commitMutation,graphql:b.graphql,readInlineData:b.readInlineData,requestSubscription:b.requestSubscription,EntryPointContainer:t,RelayEnvironmentProvider:l,ProfilerContext:o,fetchQuery:b.fetchQuery,loadQuery:i,loadEntryPoint:a,useFragment:s,useLazyLoadQuery:c,useEntryPointLoader:u,useQueryLoader:v,useMutation:f,usePaginationFragment:d,usePreloadedQuery:p,useRefetchableFragment:m,useRelayEnvironment:h,useSubscribeToInvalidationState:g,useSubscription:y}},158:(e,n,r)=>{var t=r(187),a=r(750),i=r(156),o=r(156),l=o.useContext,u=o.useEffect,s=r(446);e.exports=function(e){var n=e.entryPointReference,r=e.props;s(!1===n.isDisposed,"<EntryPointContainer>: Expected entryPointReference to not be disposed yet. This is because disposing the entrypoint marks it for future garbage collection, and as such may no longer be present in the Relay store. In the future, this will become a hard error.");var o=n.getComponent,c=n.queries,f=n.entryPoints,d=n.extraProps,p=n.rootModuleID,v=o(),m=l(t),h=a();return u((function(){h.__log({name:"entrypoint.root.consume",profilerContext:m,rootModuleID:p})}),[h,m,p]),i.createElement(v,{entryPoints:f,extraProps:d,props:r,queries:c})}},93:(e,n,r)=>{var t=r(56),a=function(){function e(e){this._capacity=e,this._capacity>0||t(!1,"LRUCache: Unable to create instance of cache with zero or negative capacity."),this._map=new Map}var n=e.prototype;return n.set=function(e,n){if(this._map.delete(e),this._map.set(e,n),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},n.get=function(e){var n=this._map.get(e);return null!=n&&(this._map.delete(e),this._map.set(e,n)),n},n.has=function(e){return this._map.has(e)},n.delete=function(e){this._map.delete(e)},n.size=function(){return this._map.size},n.capacity=function(){return this._capacity-this._map.size},n.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new a(e)}}},187:(e,n,r)=>{var t=r(156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=t},269:(e,n,r)=>{var t=r(275).default,a=t(r(175)),i=t(r(311)),o=r(93),l=r(637),u=r(56),s=r(658).isPromise,c=r(446),f="store-or-network",d="store-and-network",p="function"==typeof WeakMap;function v(e){return void 0!==e.request.node.params.metadata.live}function m(e,n,r,t,a){var i=null!=r?r:v(n)?d:f,o=null!=t?t:e.UNSTABLE_getDefaultRenderPolicy(),l="".concat(i,"-").concat(o,"-").concat(n.request.identifier);return null!=a?"".concat(l,"-").concat(a):l}function h(e,n){var r={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:n,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var g=2e5;function y(e,n,r,t,a,i){var o=v(n),u=t,s=a,c=new l((function(e){var r=e.retain(n);return{dispose:function(){o&&null!=s&&s.unsubscribe(),r.dispose(),i(f)}}})),f={cacheIdentifier:e,id:g++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return u},setValue:function(e){u=e},setNetworkSubscription:function(e){o&&null!=s&&s.unsubscribe(),s=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}var b=function(){function e(e){var n=this;(0,i.default)(this,"_clearCacheEntry",(function(e){n._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var n=e.prototype;return n.prepare=function(e,n,r,t,a,i,o){var l=m(this._environment,e,r,t,i);return this.prepareWithIdentifier(l,e,n,r,t,a,o)},n.prepareWithIdentifier=function(e,n,r,t,i,o,l){var u=this._environment,c=null!=t?t:v(n)?d:f,p=null!=i?i:u.UNSTABLE_getDefaultRenderPolicy(),m=this._cache.get(e),h=null,g=null!=m;null==m&&(m=this._fetchAndSaveQuery(e,n,r,c,p,l,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=h&&h.dispose();var n=null==o?void 0:o.unsubscribe;n&&n(e)}}))),h=m.temporaryRetain(u);var y=m.getValue();if(s(y))throw u.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:g,operation:n,queryAvailability:m.operationAvailability,renderPolicy:p}),y;if(y instanceof Error)throw y;return y},n.retain=function(e,n){var r=this._environment,t=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(t,a,null,e,null),o=i.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:n,resourceID:i.id}),{dispose:function(){o.dispose()}}},n.releaseTemporaryRetain=function(e){var n=this._cache.get(e.cacheIdentifier);null!=n&&n.releaseTemporaryRetain()},n.TESTS_ONLY__getCacheEntry=function(e,n,r,t){var a=m(this._environment,e,n,r,t);return this._cache.get(a)},n._getOrCreateCacheEntry=function(e,n,r,t,a){var i=this._cache.get(e);return null==i&&(i=y(e,n,r,t,a,this._clearCacheEntry),this._cache.set(e,i)),i},n._fetchAndSaveQuery=function(e,n,r,t,i,o,l){var s,f,d=this,p=this._environment,m=p.check(n),g=m.status,b="available"===g,R=b||"partial"===i&&"stale"!==g,k=function(){};switch(t){case"store-only":s=!1,f=!0;break;case"store-or-network":s=!b,f=R;break;case"store-and-network":s=!0,f=R;break;default:s=!0,f=!1}if(f){var E=h(n,e),_=y(e,n,m,E,null,this._clearCacheEntry);this._cache.set(e,_)}if(s){var P,C=h(n,e);r.subscribe({start:function(r){P=r;var t=d._cache.get(e);t&&t.setNetworkSubscription(P);var i=null==l?void 0:l.start;i&&i((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){v(n)&&r.unsubscribe()}}))},next:function(){var r=d._getOrCreateCacheEntry(e,n,m,C,P);r.processedPayloadsCount+=1,r.setValue(C),k();var t=null==l?void 0:l.next;null!=t&&t(p.lookup(n.fragment))},error:function(r){var t=d._getOrCreateCacheEntry(e,n,m,r,P);0===t.processedPayloadsCount?t.setValue(r):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",n.fragment.node.name,String(r.message)),k(),P=null,t.setNetworkSubscription(null);var a=null==l?void 0:l.error;a&&a(r)},complete:function(){k(),P=null;var n=d._cache.get(e);n&&n.setNetworkSubscription(null);var r=null==l?void 0:l.complete;r&&r()},unsubscribe:null==l?void 0:l.unsubscribe});var x=this._cache.get(e);if(!x){var w=new Promise((function(e){k=e}));w.displayName="Relay("+n.fragment.node.name+")",x=y(e,n,m,w,P,this._clearCacheEntry),this._cache.set(e,x)}}else{var S=null==l?void 0:l.complete;S&&S()}var F=this._cache.get(e);return null==F&&u(!1,"Relay: Expected to have cached a result when attempting to fetch query.If you're seeing this, this is likely a bug in Relay."),p.__log({name:"queryresource.fetch",resourceID:F.id,operation:n,profilerContext:o,fetchPolicy:t,renderPolicy:i,queryAvailability:m,shouldFetch:s}),F},e}();function R(e){return new b(e)}var k=p?new WeakMap:new Map;e.exports={createQueryResource:R,getQueryResourceForEnvironment:function(e){var n=k.get(e);if(n)return n;var r=R(e);return k.set(e,r),r},getQueryCacheIdentifier:m}},696:(e,n,r)=>{var t=r(888),a=r(156),i=a.useMemo;e.exports=function(e){var n=e.children,r=e.environment,o=e.getEnvironmentForActor,l=i((function(){return{environment:r,getEnvironmentForActor:o}}),[r,o]);return a.createElement(t.Provider,{value:l},n)}},637:(e,n,r)=>{var t=(0,r(275).default)(r(311)),a=r(446),i=function(){function e(e){var n=this;(0,t.default)(this,"_retainCount",0),(0,t.default)(this,"_retainDisposable",null),(0,t.default)(this,"_releaseTemporaryRetain",null),this._retain=function(r){return n._retainCount++,1===n._retainCount&&(n._retainDisposable=e(r)),{dispose:function(){n._retainCount=Math.max(0,n._retainCount-1),0===n._retainCount&&(null!=n._retainDisposable?(n._retainDisposable.dispose(),n._retainDisposable=null):a(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."))}}}}var n=e.prototype;return n.temporaryRetain=function(e){var n,r=this;if(e.isServer())return{dispose:function(){}};var t=this._retain(e),a=null,i=function(){clearTimeout(a),a=null,r._releaseTemporaryRetain=null,t.dispose()};return a=setTimeout(i,3e5),null===(n=this._releaseTemporaryRetain)||void 0===n||n.call(this),this._releaseTemporaryRetain=i,{dispose:function(){var e;null===(e=r._releaseTemporaryRetain)||void 0===e||e.call(r)}}},n.permanentRetain=function(e){var n=this._retain(e);return this.releaseTemporaryRetain(),n},n.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},n.getRetainCount=function(){return this._retainCount},e}();e.exports=i},62:(e,n,r)=>{var t=r(56),a=r(658),i=a.ConnectionInterface,o=a.getValueAtPath;e.exports=function(e,n,r,a){var l,u,s=i.get(),c=s.EDGES,f=s.PAGE_INFO,d=s.HAS_NEXT_PAGE,p=s.HAS_PREV_PAGE,v=s.END_CURSOR,m=s.START_CURSOR,h=o(r,a);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&t(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",n.name,c,f,h);var g=h[c],y=h[f];if(null==g||null==y)return{cursor:null,hasMore:!1};Array.isArray(g)||t(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",n.name,c,g),"object"!=typeof y&&t(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",n.name,f,y);var b="forward"===e?null!==(l=y[v])&&void 0!==l?l:null:null!==(u=y[m])&&void 0!==u?u:null;return null!==b&&"string"!=typeof b&&t(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",n.name,m,b),{cursor:b,hasMore:"forward"===e?null!=b&&!0===y[d]:null!=b&&!0===y[p]}}},828:(e,n,r)=>{var t=r(428).loadQuery;e.exports=function e(n,r,a){var i=null;null==r.root.getModuleIfRequired()&&(i=r.root.load());var o=r.getPreloadProps(a),l=o.queries,u=o.entryPoints,s=o.extraProps,c={},f={};null!=l&&Object.keys(l).forEach((function(e){var r=l[e];if(null!=r){var a=r.environmentProviderOptions,i=r.options,o=r.parameters,u=r.variables,s=n.getEnvironment(a);c[e]=t(s,o,u,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)}})),null!=u&&Object.keys(u).forEach((function(r){var t=u[r];if(null!=t){var a=t.entryPoint,i=t.entryPointParams;f[r]=e(n,a,i)}}));var d=!1;return{dispose:function(){d||(null!=c&&Object.values(c).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=s?s:null,getComponent:function(){var e,n=r.root.getModuleIfRequired();if(null==n)throw i=null!==(e=i)&&void 0!==e?e:r.root.load();return null!=n.default?n.default:n},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},428:(e,n,r)=>{var t=(0,r(275).default)(r(175)),a=r(56),i=r(658),o=i.__internal.fetchQueryDeduped,l=i.Observable,u=i.PreloadableQueryRegistry,s=i.ReplaySubject,c=i.createOperationDescriptor,f=i.getRequest,d=i.getRequestIdentifier,p=100001;e.exports={loadQuery:function(e,n,r,i,v){var m;p++;var h,g,y,b,R,k,E=null!==(m=null==i?void 0:i.fetchPolicy)&&void 0!==m?m:"store-or-network",_=(0,t.default)((0,t.default)({},null==i?void 0:i.networkCacheConfig),{},{force:!0}),P=!1,C=function(n,r){return P=!0,e.executeWithSource({operation:n,source:r})},x=new s,w=l.create((function(e){return x.subscribe(e)})),S=null,F=!1,I=function(n){F=!0;var t=new s,a="raw-network-request-"+d(n,r),i=o(e,a,(function(){return e.getNetwork().execute(n,r,_)})).subscribe({error:function(e){S=e,t.error(e)},next:function(e){t.next(e)},complete:function(){t.complete()}}).unsubscribe;return g=i,l.create((function(e){var n=t.subscribe(e);return function(){n.unsubscribe(),g()}}))},q=function(n,r){F=!0;var t=o(e,n.request.identifier,r).subscribe({error:function(e){x.error(e)},next:function(e){x.next(e)},complete:function(){x.complete()}});y=t.unsubscribe},D=function(n){var t=c(n,r,_);h=e.retain(t),"store-only"!==E&&("store-or-network"!==E||"available"!==e.check(t).status)&&q(t,(function(){var e=I(n.params);return C(t,e)}))};if("PreloadableConcreteRequest"===n.kind){null===(k=(b=n.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",b.name);var A=u.get(k);if(null!=A)D(A);else{var N="store-only"===E?null:I(b),Q=u.onLoad(k,(function(n){R();var t=c(n,r,_);h=e.retain(t),null!=N&&q(t,(function(){return C(t,N)}))}));R=Q.dispose}}else{var T=f(n);k=null!=(b=T.params).cacheID?b.cacheID:b.id,D(T)}var M=!1,O=!1,L=!1,j=function(){O||(h&&h.dispose(),O=!0)},U=function(){L||(P?y&&y():g&&g(),R&&R(),L=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:v,dispose:function(){M||(j(),U(),M=!0)},releaseQuery:j,cancelNetworkRequest:U,fetchKey:p,id:k,get isDisposed(){return M||O},get networkError(){return S},name:b.name,networkCacheConfig:_,fetchPolicy:E,source:F?w:void 0,variables:r}}}},74:(e,n,r)=>{var t=r(275).default,a=t(r(175)),i=t(r(765)),o=r(269).getQueryResourceForEnvironment,l=r(56),u=r(658),s=u.__internal.fetchQuery,c=u.RelayFeatureFlags,f=u.createOperationDescriptor,d=u.getPendingOperationsForFragment,p=u.getSelector,v=u.getVariablesFromFragment,m=u.handlePotentialSnapshotErrors,h=r(446);function g(e,n,r,t,i){var l=v(n,r),u=(0,a.default)((0,a.default)({},l),{},{id:t.clientEdgeDestinationID}),c=f(t.request,u,null==i?void 0:i.networkCacheConfig);return o(e).prepare(c,s(e,c),null==i?void 0:i.fetchPolicy)}e.exports=function(e,n,r,t,a,o){var u,s,f=p(n,r),v=!0===(null==n||null===(u=n.metadata)||void 0===u?void 0:u.plural);v?null==r||Array.isArray(r)||l(!1,"Relay: Expected fragment pointer%s for fragment `%s` to be an array, instead got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",null!=o?" for key `".concat(o,"`"):"",n.name,typeof r,n.name):Array.isArray(r)&&l(!1,"Relay: Expected fragment pointer%s for fragment `%s` not to be an array, instead got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array.",null!=o?" for key `".concat(o,"`"):"",n.name,typeof r,n.name),null==r||v&&Array.isArray(r)&&0===r.length||null!=f||l(!1,"Relay: Expected to receive an object where `...%s` was spread, but the fragment reference was not found`. This is most likely the result of:\n- Forgetting to spread `%s` in `%s`'s parent's fragment.\n- Conditionally fetching `%s` but unconditionally passing %s prop to `%s`. If the parent fragment only fetches the fragment conditionally - with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` spread - then the fragment reference will not exist. In this case, pass `null` if the conditions for evaluating the fragment are not met (e.g. if the `@include(if)` value is false.)",n.name,n.name,t,n.name,null==o?"a fragment reference":"the `".concat(o,"`"),t);var y,b=function(e,n){return null==n?{kind:"bailout"}:"PluralReaderSelector"===n.kind?0===n.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:n.selectors.map((function(n){return e.lookup(n)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(n),epoch:e.getStore().getEpoch()}}(e,f),R=null;if(!0===(null===(s=n.metadata)||void 0===s?void 0:s.hasClientEdges)){var k=function(e){if("bailout"===e.kind)return null;var n;if("singular"===e.kind)return null!==(n=e.snapshot.missingClientEdges)&&void 0!==n?n:null;var r,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var u,s=(0,i.default)(o.missingClientEdges);try{for(s.s();!(u=s.n()).done;){var c=u.value;t.push(c)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(b);if(null!=k&&k.length){R=[];var E,_=(0,i.default)(k);try{for(_.s();!(E=_.n()).done;){var P=E.value;R.push(g(e,n,r,P,a))}}catch(e){_.e(e)}finally{_.f()}}}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(b)){null==f&&l(!1,"refinement, see invariants above");var C="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,x=d(e,n,C);if(x)throw x.promise;!function(e,n){if("singular"===n.kind)m(e,n.snapshot.errorResponseFields);else if("plural"===n.kind){var r,t=(0,i.default)(n.snapshots);try{for(t.s();!(r=t.n()).done;){var a=r.value;m(e,a.errorResponseFields)}}catch(e){t.e(e)}finally{t.f()}}}(e,b)}return y="bailout"===b.kind?v?[]:null:"singular"===b.kind?b.snapshot.data:b.snapshots.map((function(e){return e.data})),c.LOG_MISSING_RECORDS_IN_PROD,null!=r&&(void 0===y||Array.isArray(y)&&y.length>0&&y.every((function(e){return void 0===e})))&&h(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",n.name,t,t),{data:y,clientEdgeQueries:R}}},529:(e,n,r)=>{var t=(0,r(275).default)(r(765)),a=r(828),i=r(743),o=r(156),l=o.useCallback,u=o.useEffect,s=o.useRef,c=o.useState,f={kind:"NullEntryPointReference"};e.exports=function(e,n,r){var o,d,p,v,m=null!==(o=null==r||null===(d=r.TEST_ONLY__initialEntryPointData)||void 0===d?void 0:d.entryPointReference)&&void 0!==o?o:f,h=null!==(p=null==r||null===(v=r.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==p?p:null,g=i(),y=s(new Set([m])),b=c(m),R=b[0],k=b[1],E=c(h),_=E[0],P=E[1],C=l((function(){if(g.current){var e={kind:"NullEntryPointReference"};y.current.add(e),k(e)}}),[k,g]),x=l((function(r){if(g.current){var t=a(e,n,r);y.current.add(t),k(t),P(r)}}),[e,n,k,g]),w=s(!1);return u((function(){return function(){w.current=!0}}),[]),u((function(){if(!0===w.current)return w.current=!1,void("NullEntryPointReference"!==R.kind&&null!=_&&x(_));var e=y.current;if(g.current){var n,r=(0,t.default)(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a===R)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[R,_,x,g]),u((function(){return function(){var e,n=(0,t.default)(y.current);try{for(n.s();!(e=n.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){n.e(e)}finally{n.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,x,C]}},863:(e,n,r)=>{var t=r(813),a=r(156),i=a.useCallback,o=a.useEffect;e.exports=function(){var e=t(null),n=t(!1),r=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),n.current=!1}),[]),a=i((function(r){e.current=r,n.current=!0}),[]),l=i((function(){e.current=null,n.current=!1}),[]);return o((function(){return r}),[r]),{isFetchingRef:n,startFetch:a,disposeFetch:r,completeFetch:l}}},242:(e,n,r)=>{var t=r(337),a=r(224),i=r(156).useDebugValue,o=r(658).getFragment;e.exports=function(e,n){var r=o(e);a(r,"first argument of useFragment()");var l=t(r,n,"useFragment()");return i({fragment:r.name,data:l}),l}},337:(e,n,r)=>{var t=r(275).default,a=t(r(179)),i=t(r(931)),o=r(658);e.exports=function(e,n,r,t){return o.RelayFeatureFlags.ENABLE_ACTIVITY_COMPATIBILITY?(0,i.default)(e,n,r,t):(0,a.default)(e,n,r,t)}},179:(e,n,r)=>{var t=r(275).default,a=t(r(175)),i=t(r(765)),o=t(r(642)),l=r(269).getQueryResourceForEnvironment,u=r(750),s=r(56),c=r(156),f=c.useDebugValue,d=c.useEffect,p=c.useMemo,v=c.useRef,m=c.useState,h=r(658),g=h.__internal,y=g.fetchQuery,b=g.getPromiseForActiveRequest,R=h.RelayFeatureFlags,k=h.areEqualSelectors,E=h.createOperationDescriptor,_=h.getPendingOperationsForFragment,P=h.getSelector,C=h.getVariablesFromFragment,x=h.handlePotentialSnapshotErrors,w=h.recycleNodesInto,S=r(446);function F(e,n){if("bailout"===n.kind)return null;var r=e.getStore().getEpoch();if(r===n.epoch)return null;if("singular"===n.kind){var t=e.lookup(n.snapshot.selector),a=w(n.snapshot.data,t.data),i={data:a,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,errorResponseFields:t.errorResponseFields};return[a!==n.snapshot.data,{kind:"singular",snapshot:i,epoch:r}]}for(var o=!1,l=[],u=0;u<n.snapshots.length;u++){var c=n.snapshots[u],f=e.lookup(c.selector),d=w(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,errorResponseFields:f.errorResponseFields};d!==c.data&&(o=!0),l.push(p)}return l.length!==n.snapshots.length&&s(!1,"Expected same number of snapshots"),[o,{kind:"plural",snapshots:l,epoch:r}]}function I(e,n,r,t,i){var o=C(n,r),u=(0,a.default)((0,a.default)({},o),{},{id:t.clientEdgeDestinationID}),s=E(t.request,u,null==i?void 0:i.networkCacheConfig);return[l(e).prepare(s,y(e,s),null==i?void 0:i.fetchPolicy),b(e,s.request)]}function q(e,n){return null==n?{kind:"bailout"}:"PluralReaderSelector"===n.kind?{kind:"plural",snapshots:n.selectors.map((function(n){return e.lookup(n)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(n),epoch:e.getStore().getEpoch()}}e.exports=function(e,n,r,t){var a,c,h=p((function(){return P(e,n)}),[e,n]),g=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);g?null==n||Array.isArray(n)||s(!1,"Relay: Expected fragment pointer%s for fragment `%s` to be an array, instead got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,typeof n,e.name):Array.isArray(n)&&s(!1,"Relay: Expected fragment pointer%s for fragment `%s` not to be an array, instead got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array.",e.name,typeof n,e.name),null==n||g&&Array.isArray(n)&&0===n.length||null!=h||s(!1,"Relay: Expected to receive an object where `...%s` was spread, but the fragment reference was not found`. This is most likely the result of:\n- Forgetting to spread `%s` in `%s`'s parent's fragment.\n- Conditionally fetching `%s` but unconditionally passing %s prop to `%s`. If the parent fragment only fetches the fragment conditionally - with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` spread - then the fragment reference will not exist. In this case, pass `null` if the conditions for evaluating the fragment are not met (e.g. if the `@include(if)` value is false.)",e.name,e.name,r,e.name,r);var y=u(),b=m((function(){return q(y,h)})),E=b[0],C=b[1],w=E,D=m(w),A=D[0],N=D[1],Q=A,T=m(h),M=T[0],O=T[1],L=m(y),j=L[0],U=L[1];if(!k(h,M)||y!==j){O(h),U(y);var V=q(y,h);C(V),N(V),w=V,Q=V}var B=v(!1);if(d((function(){B.current=h}),[h]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var W=p((function(){var r,a=function(e){if("bailout"===e.kind)return null;var n;if("singular"===e.kind)return null!==(n=e.snapshot.missingClientEdges)&&void 0!==n?n:null;var r,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var u,s=(0,i.default)(o.missingClientEdges);try{for(s.s();!(u=s.n()).done;){var c=u.value;t.push(c)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(w),o=[];if(null!=a&&a.length){r=[];var l,u=(0,i.default)(a);try{for(u.s();!(l=u.n()).done;){var s=l.value,c=I(y,e,n,s,t),f=c[0],d=c[1];r.push(f),null!=d&&o.push(d)}}catch(e){u.e(e)}finally{u.f()}}return[r,o]}),[w,y,e,n,t]),K=W[0],Y=W[1];if(Y.length)throw Promise.all(Y);d((function(){var e=l(y);if(null!=K&&K.length){var n,r=[],t=(0,i.default)(K);try{for(t.s();!(n=t.n()).done;){var a=n.value;r.push(e.retain(a))}}catch(e){t.e(e)}finally{t.f()}return function(){for(var e=0,n=r;e<n.length;e++)n[e].dispose()}}}),[y,K])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(w)){var G=function(e){if("bailout"===e.kind)return null;var n;if("singular"===e.kind)return null!==(n=e.snapshot.missingLiveResolverFields)&&void 0!==n?n:null;var r,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.missingLiveResolverFields){var l;t=null!==(l=t)&&void 0!==l?l:[];var u,s=(0,i.default)(o.missingLiveResolverFields);try{for(s.s();!(u=s.n()).done;){var c=u.value;t.push(c)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(w);if(null!=G&&G.length>0)throw Promise.all(G.map((function(e){return y.getStore().getLiveResolverPromise(e)})));if(R.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||y!==j||!B.current||!k(B.current,h)){null==h&&s(!1,"refinement, see invariants above");var H="PluralReaderSelector"===h.kind?h.selectors[0].owner:h.owner,z=_(y,e,H);if(z)throw z.promise}}!function(e,n){if("singular"===n.kind)x(e,n.snapshot.errorResponseFields);else if("plural"===n.kind){var r,t=(0,i.default)(n.snapshots);try{for(t.s();!(r=t.n()).done;){var a=r.value;x(e,a.errorResponseFields)}}catch(e){t.e(e)}finally{t.f()}}}(y,w);var X,J=v(!1);if(d((function(){var e=Q,n=F(y,Q);if(null!==n){var r=n[0],t=n[1];r&&C(t),e=t}return function(e,n,r,t){if("bailout"===n.kind)return function(){};if("singular"===n.kind){var a=e.subscribe(n.snapshot,(function(n){r((function(r){if("singular"!==r.kind||r.snapshot.selector!==n.selector){var a=F(e,r);if(null!=a){var i=a[0],o=a[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:i}),t.current=i,i?o:r}return r}return t.current=!0,{kind:"singular",snapshot:n,epoch:e.getStore().getEpoch()}}))}));return function(){a.dispose()}}var l=n.snapshots.map((function(n,a){return e.subscribe(n,(function(n){r((function(r){var i;if("plural"!==r.kind||(null===(i=r.snapshots[a])||void 0===i?void 0:i.selector)!==n.selector){var l=F(e,r);if(null!=l){var u=l[0],s=l[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:u}),t.current=t.current||u,u?s:r}return r}var c=(0,o.default)(r.snapshots);return c[a]=n,t.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}}))}))}));return function(){var e,n=(0,i.default)(l);try{for(n.s();!(e=n.n()).done;)e.value.dispose()}catch(e){n.e(e)}finally{n.f()}}}(y,e,C,J)}),[y,Q]),J.current){var Z=F(y,w);if(null!=Z){var $=Z[0],ee=Z[1];$&&(C(ee),w=ee)}J.current=!1}if(g){var ne=null==n;X=p((function(){return"bailout"===w.kind?ne?null:[]:("plural"!==w.kind&&s(!1,"Expected state to be plural because fragment is plural"),w.snapshots.map((function(e){return e.data})))}),[w,ne])}else"bailout"===w.kind?X=null:("singular"!==w.kind&&s(!1,"Expected state to be singular because fragment is singular"),X=w.snapshot.data);return R.LOG_MISSING_RECORDS_IN_PROD,null!=n&&(void 0===X||Array.isArray(X)&&X.length>0&&X.every((function(e){return void 0===e})))&&S(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),f({fragment:e.name,data:X}),X}},931:(e,n,r)=>{var t=r(275).default,a=t(r(175)),i=t(r(765)),o=t(r(642)),l=r(269).getQueryResourceForEnvironment,u=r(750),s=r(56),c=r(156),f=c.useDebugValue,d=c.useEffect,p=c.useMemo,v=c.useRef,m=c.useState,h=r(658),g=h.__internal,y=g.fetchQuery,b=g.getPromiseForActiveRequest,R=h.RelayFeatureFlags,k=h.areEqualSelectors,E=h.createOperationDescriptor,_=h.getPendingOperationsForFragment,P=h.getSelector,C=h.getVariablesFromFragment,x=h.handlePotentialSnapshotErrors,w=h.recycleNodesInto,S=r(446);function F(e,n){if("bailout"===n.kind)return null;var r=e.getStore().getEpoch();if(r===n.epoch)return null;if("singular"===n.kind){var t=e.lookup(n.snapshot.selector),a=w(n.snapshot.data,t.data),i={data:a,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,errorResponseFields:t.errorResponseFields};return[a!==n.snapshot.data,{kind:"singular",snapshot:i,epoch:r,selector:n.selector,environment:n.environment}]}for(var o=!1,l=[],u=0;u<n.snapshots.length;u++){var c=n.snapshots[u],f=e.lookup(c.selector),d=w(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,errorResponseFields:f.errorResponseFields};d!==c.data&&(o=!0),l.push(p)}return l.length!==n.snapshots.length&&s(!1,"Expected same number of snapshots"),[o,{kind:"plural",snapshots:l,epoch:r,selector:n.selector,environment:n.environment}]}function I(e,n,r,t,i){var o=C(n,r),u=(0,a.default)((0,a.default)({},o),{},{id:t.clientEdgeDestinationID}),s=E(t.request,u,null==i?void 0:i.networkCacheConfig);return[l(e).prepare(s,y(e,s),null==i?void 0:i.fetchPolicy),b(e,s.request)]}function q(e,n,r){if("bailout"===n.kind)return function(){};if("singular"===n.kind){var t=e.subscribe(n.snapshot,(function(t){r((function(r){var a=null;if("singular"!==r.kind||r.snapshot.selector!==t.selector||r.environment!==e){var i=F(r.environment,r);if(null!=i){var o=i[0],l=i[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:o}),a=o?l:r}else a=r}else a={kind:"singular",snapshot:t,epoch:e.getStore().getEpoch(),selector:n.selector,environment:n.environment};return a}))}));return function(){t.dispose()}}var a=n.snapshots.map((function(t,a){return e.subscribe(t,(function(t){r((function(r){var i,l=null;if("plural"!==r.kind||(null===(i=r.snapshots[a])||void 0===i?void 0:i.selector)!==t.selector||r.environment!==e){var u=F(r.environment,r);if(null!=u){var s=u[0],c=u[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:s}),l=s?c:r}else l=r}else{var f=(0,o.default)(r.snapshots);f[a]=t,l={kind:"plural",snapshots:f,epoch:e.getStore().getEpoch(),selector:n.selector,environment:n.environment}}return l}))}))}));return function(){var e,n=(0,i.default)(a);try{for(n.s();!(e=n.n()).done;)e.value.dispose()}catch(e){n.e(e)}finally{n.f()}}}function D(e,n){return null==n?{kind:"bailout",environment:e}:"PluralReaderSelector"===n.kind?{kind:"plural",snapshots:n.selectors.map((function(n){return e.lookup(n)})),epoch:e.getStore().getEpoch(),selector:n,environment:e}:{kind:"singular",snapshot:e.lookup(n),epoch:e.getStore().getEpoch(),selector:n,environment:e}}e.exports=function(e,n,r,t){var a,o,c=p((function(){return P(e,n)}),[e,n]),h=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);h?null==n||Array.isArray(n)||s(!1,"Relay: Expected fragment pointer%s for fragment `%s` to be an array, instead got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,typeof n,e.name):Array.isArray(n)&&s(!1,"Relay: Expected fragment pointer%s for fragment `%s` not to be an array, instead got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array.",e.name,typeof n,e.name),null==n||h&&Array.isArray(n)&&0===n.length||null!=c||s(!1,"Relay: Expected to receive an object where `...%s` was spread, but the fragment reference was not found`. This is most likely the result of:\n- Forgetting to spread `%s` in `%s`'s parent's fragment.\n- Conditionally fetching `%s` but unconditionally passing %s prop to `%s`. If the parent fragment only fetches the fragment conditionally - with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` spread - then the fragment reference will not exist. In this case, pass `null` if the conditions for evaluating the fragment are not met (e.g. if the `@include(if)` value is false.)",e.name,e.name,r,e.name,r);var g=u(),y=m((function(){return D(g,c)})),b=y[0],E=y[1],C=b,w=C.environment;if(!k(c,C.selector)||g!==C.environment){var A=D(g,c);E(A),C=A}var N=v(!1);if(d((function(){N.current=c}),[c]),!0===(null===(o=e.metadata)||void 0===o?void 0:o.hasClientEdges)){var Q=p((function(){var r,a=function(e){if("bailout"===e.kind)return null;var n;if("singular"===e.kind)return null!==(n=e.snapshot.missingClientEdges)&&void 0!==n?n:null;var r,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var u,s=(0,i.default)(o.missingClientEdges);try{for(s.s();!(u=s.n()).done;){var c=u.value;t.push(c)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(C),o=[];if(null!=a&&a.length){r=[];var l,u=(0,i.default)(a);try{for(u.s();!(l=u.n()).done;){var s=l.value,c=I(g,e,n,s,t),f=c[0],d=c[1];r.push(f),null!=d&&o.push(d)}}catch(e){u.e(e)}finally{u.f()}}return[r,o]}),[C,g,e,n,t]),T=Q[0],M=Q[1];if(M.length)throw Promise.all(M);d((function(){var e=l(g);if(null!=T&&T.length){var n,r=[],t=(0,i.default)(T);try{for(t.s();!(n=t.n()).done;){var a=n.value;r.push(e.retain(a))}}catch(e){t.e(e)}finally{t.f()}return function(){for(var e=0,n=r;e<n.length;e++)n[e].dispose()}}}),[g,T])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(C)){var O=function(e){if("bailout"===e.kind)return null;var n;if("singular"===e.kind)return null!==(n=e.snapshot.missingLiveResolverFields)&&void 0!==n?n:null;var r,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.missingLiveResolverFields){var l;t=null!==(l=t)&&void 0!==l?l:[];var u,s=(0,i.default)(o.missingLiveResolverFields);try{for(s.s();!(u=s.n()).done;){var c=u.value;t.push(c)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(C);if(null!=O&&O.length>0)throw Promise.all(O.map((function(e){return g.getStore().getLiveResolverPromise(e)})));if(R.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||g!==w||!N.current||!k(N.current,c)){null==c&&s(!1,"refinement, see invariants above");var L="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,j=_(g,e,L);if(j)throw j.promise}}!function(e,n){if("singular"===n.kind)x(e,n.snapshot.errorResponseFields);else if("plural"===n.kind){var r,t=(0,i.default)(n.snapshots);try{for(t.s();!(r=t.n()).done;){var a=r.value;x(e,a.errorResponseFields)}}catch(e){t.e(e)}finally{t.f()}}}(g,C);var U,V=v(null);if(d((function(){var e=V.current;if(null!=e){if(C.environment===e.environment&&C.selector===e.selector)return;e.dispose()}if("bailout"!==C.kind){var n=C,r=F(C.environment,C);if(null!==r){var t=r[0],a=r[1];if(t)return void E(a);n=a}var i=q(C.environment,n,E);V.current={dispose:i,selector:C.selector,environment:C.environment}}}),[C]),d((function(){if(null==V.current&&"bailout"!==C.kind){var e=q(C.environment,C,E);V.current={dispose:e,selector:C.selector,environment:C.environment}}return function(){var e;null===(e=V.current)||void 0===e||e.dispose(),V.current=null}}),[]),h){var B=null==n;U=p((function(){return"bailout"===C.kind?B?null:[]:("plural"!==C.kind&&s(!1,"Expected state to be plural because fragment is plural"),C.snapshots.map((function(e){return e.data})))}),[C,B])}else"bailout"===C.kind?U=null:("singular"!==C.kind&&s(!1,"Expected state to be singular because fragment is singular"),U=C.snapshot.data);return R.LOG_MISSING_RECORDS_IN_PROD,null!=n&&(void 0===U||Array.isArray(U)&&U.length>0&&U.every((function(e){return void 0===e})))&&S(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),f({fragment:e.name,data:U}),U}},743:(e,n,r)=>{var t=r(156),a=t.useEffect,i=t.useRef;e.exports=function(){var e=i(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},233:(e,n,r)=>{var t=r(750),a=r(56),i=r(156),o=r(658),l=o.__internal.getObservableForActiveRequest,u=o.getSelector,s=i.useEffect,c=i.useState,f=i.useMemo;e.exports=function(e,n){var r=t(),i=f((function(){var t=u(e,n);return null==t?null:("SingularReaderSelector"!==t.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),l(r,t.owner))}),[r,e,n]),o=c(null!=i),d=o[0],p=o[1];return s((function(){var e;if(p(null!=i),null!=i){var n=function(){p(!1)};e=i.subscribe({complete:n,error:n})}return function(){e&&e.unsubscribe()}}),[i]),d}},899:(e,n,r)=>{var t=r(734),a=r(61),i=r(750),o=r(658).__internal.fetchQuery;e.exports=function(e,n,r){var l=i(),u=a(e,n,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return t({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:o(l,u),fetchPolicy:null==r?void 0:r.fetchPolicy,query:u,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},734:(e,n,r)=>{var t=r(187),a=r(269),i=a.getQueryCacheIdentifier,o=a.getQueryResourceForEnvironment,l=r(863),u=r(337),s=r(750),c=r(156),f=c.useContext,d=c.useEffect,p=c.useState,v=c.useRef;e.exports=function(e){var n=e.query,r=e.componentDisplayName,a=e.fetchObservable,c=e.fetchPolicy,m=e.fetchKey,h=e.renderPolicy,g=s(),y=f(t),b=o(g),R=p(0),k=R[0],E=R[1],_=l(),P=_.startFetch,C=_.completeFetch,x="".concat(k,"-").concat(null!=m?m:""),w=i(g,n,c,h,x),S=y.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(w,n,a,c,h,{start:P,complete:C,error:C},y)})),F=v(!1);d((function(){return function(){F.current=!0}}),[]),d((function(){if(!0===F.current)return F.current=!1,void E((function(e){return e+1}));var e=b.retain(S,y);return function(){e.dispose()}}),[g,w]),d((function(){b.releaseTemporaryRetain(S)}));var I=S.fragmentNode,q=S.fragmentRef;return u(I,q,r)}},601:(e,n,r)=>{var t=(0,r(275).default)(r(175)),a=r(62),i=r(863),o=r(743),l=r(233),u=r(607),s=r(750),c=r(56),f=r(156),d=f.useCallback,p=f.useEffect,v=f.useState,m=r(658),h=m.__internal.fetchQuery,g=m.RelayFeatureFlags,y=m.createOperationDescriptor,b=m.getPaginationVariables,R=m.getRefetchMetadata,k=m.getSelector,E=r(446);e.exports=function(e){return g.ENABLE_ACTIVITY_COMPATIBILITY?u(e):function(e){var n=e.direction,r=e.fragmentNode,u=e.fragmentRef,f=e.fragmentIdentifier,m=e.fragmentData,g=e.connectionPathInFragmentData,_=e.paginationRequest,P=e.paginationMetadata,C=e.componentDisplayName,x=e.observer,w=e.onReset,S=s(),F=i(),I=F.isFetchingRef,q=F.startFetch,D=F.disposeFetch,A=F.completeFetch,N=R(r,C).identifierInfo,Q=null!=(null==N?void 0:N.identifierField)&&null!=m&&"object"==typeof m?m[N.identifierField]:null,T=o(),M=v(S),O=M[0],L=M[1],j=v(f),U=j[0],V=j[1],B=l(r,u);S===O&&f===U||(D(),w(),L(S),V(f));var W=a(n,r,m,g),K=W.cursor,Y=W.hasMore;return p((function(){return function(){D()}}),[D]),[d((function(e,a){var i=null==a?void 0:a.onComplete;if(!0!==T.current)return E(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",r.name,C),{dispose:function(){}};var o=k(r,u);if(!0===I.current||null==m||B)return null==o&&E(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",r.name,C,C),i&&i(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&c(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,C);var l=o.owner.variables,s=o.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,t.default)((0,t.default)({},l),s),p=b(n,e,K,d,(0,t.default)({},f),P);null!=N&&("string"!=typeof Q&&E(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",N.identifierField,Q),p[N.identifierQueryVariableName]=Q);var v=y(_,p,{force:!0});return h(S,v).subscribe((0,t.default)((0,t.default)({},x),{},{start:function(e){q(e),x.start&&x.start(e)},complete:function(){A(),x.complete&&x.complete(),i&&i(null)},error:function(e){A(),x.error&&x.error(e),i&&i(e)}})),{dispose:D}}),[S,Q,n,K,q,D,A,I,B,m,r.name,u,C]),Y,D]}(e)}},607:(e,n,r)=>{var t=(0,r(275).default)(r(175)),a=r(62),i=r(743),o=r(233),l=r(750),u=r(56),s=r(156),c=s.useCallback,f=s.useRef,d=s.useState,p=r(658),v=p.__internal.fetchQuery,m=p.createOperationDescriptor,h=p.getPaginationVariables,g=p.getRefetchMetadata,y=p.getSelector,b=r(446);e.exports=function(e){var n=e.direction,r=e.fragmentNode,s=e.fragmentRef,p=e.fragmentIdentifier,R=e.fragmentData,k=e.connectionPathInFragmentData,E=e.paginationRequest,_=e.paginationMetadata,P=e.componentDisplayName,C=e.observer,x=e.onReset,w=l(),S=g(r,P).identifierInfo,F=null!=(null==S?void 0:S.identifierField)&&null!=R&&"object"==typeof R?R[S.identifierField]:null,I=f({kind:"none"}),q=d(w),D=q[0],A=q[1],N=d(p),Q=N[0],T=N[1],M=o(r,s),O=c((function(){"fetching"===I.current.kind&&I.current.subscription.unsubscribe(),I.current={kind:"none"}}),[]);(w!==D||p!==Q)&&(O(),x(),A(w),T(p));var L=a(n,r,R,k),j=L.cursor,U=L.hasMore,V=i();return[c((function(e,a){var i=null==a?void 0:a.onComplete;if(!0!==V.current)return b(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",r.name,P),{dispose:function(){}};var o=y(r,s);if("fetching"===I.current.kind||null==R||M)return null==o&&b(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",r.name,P,P),i&&i(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&u(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,P);var l=o.owner.variables,c=o.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,t.default)((0,t.default)({},l),c),p=h(n,e,j,d,(0,t.default)({},f),_);null!=S&&("string"!=typeof F&&b(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",S.identifierField,F),p[S.identifierQueryVariableName]=F);var g=m(E,p,{force:!0});return v(w,g).subscribe((0,t.default)((0,t.default)({},C),{},{start:function(e){I.current={kind:"fetching",subscription:e},C.start&&C.start(e)},complete:function(){I.current={kind:"none"},C.complete&&C.complete(),i&&i(null)},error:function(e){I.current={kind:"none"},C.complete&&C.complete(),i&&i(e)}})),{dispose:function(){}}}),[w,F,n,j,M,R,r.name,s,P]),U,O]}},61:(e,n,r)=>{var t=r(925),a=r(156),i=r(658),o=i.createOperationDescriptor,l=i.getRequest,u=a.useMemo;e.exports=function(e,n,r){var a=t(n),i=t(r||{});return u((function(){return o(l(e),a,i)}),[e,a,i])}},925:(e,n,r)=>{var t=r(125),a=r(156).useState;e.exports=function(e){var n=a(e),r=n[0],i=n[1];return t(e,r)?r:(i(e),e)}},115:(e,n,r)=>{var t=(0,r(275).default)(r(175)),a=r(743),i=r(750),o=r(156),l=r(658).commitMutation,u=o.useState,s=o.useEffect,c=o.useRef,f=o.useCallback;e.exports=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,r=i(),o=a(),d=c(r),p=c(e),v=c(new Set),m=u(!1),h=m[0],g=m[1],y=f((function(n){d.current===r&&p.current===e&&(v.current.delete(n),o.current&&g(v.current.size>0))}),[r,o,e]);return s((function(){d.current===r&&p.current===e||(v.current=new Set,o.current&&g(!1),d.current=r,p.current=e)}),[r,o,e]),[f((function(a){o.current&&g(!0);var i=n(r,(0,t.default)((0,t.default)({},a),{},{mutation:e,onCompleted:function(e,n){var r;y(i),null===(r=a.onCompleted)||void 0===r||r.call(a,e,n)},onError:function(e){var n;y(i),null===(n=a.onError)||void 0===n||n.call(a,e)},onUnsubscribe:function(){var e;y(i),null===(e=a.onUnsubscribe)||void 0===e||e.call(a)},onNext:function(){var e;null===(e=a.onNext)||void 0===e||e.call(a)}}));return v.current.add(i),i}),[y,n,r,o,e]),h]}},951:(e,n,r)=>{var t=(0,r(275).default)(r(175)),a=r(601),i=r(915),o=r(750),l=r(224),u=r(156),s=u.useCallback,c=u.useDebugValue,f=u.useState,d=r(658),p=d.getFragment,v=d.getFragmentIdentifier,m=d.getPaginationMetadata;function h(e){var n=o(),r=f(!1),i=r[0],l=r[1],u=function(e){var r,t=null===(r=n.getScheduler())||void 0===r?void 0:r.schedule;t?t((function(){l(e)})):l(e)},s={start:function(){return u(!0)},complete:function(){return u(!1)},error:function(){return u(!1)}},c=a((0,t.default)((0,t.default)({},e),{},{observer:s,onReset:function(){return u(!1)}}));return[c[0],c[1],i,c[2]]}e.exports=function(e,n){var r=p(e);l(r,"first argument of usePaginationFragment()");var a="usePaginationFragment()",o=m(r,a),u=o.connectionPathInFragmentData,f=o.paginationRequest,d=o.paginationMetadata,g=i(r,n,a),y=g.fragmentData,b=g.fragmentRef,R=g.refetch,k=v(r,b),E=h({componentDisplayName:a,connectionPathInFragmentData:u,direction:"backward",fragmentData:y,fragmentIdentifier:k,fragmentNode:r,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),_=E[0],P=E[1],C=E[2],x=E[3],w=h({componentDisplayName:a,connectionPathInFragmentData:u,direction:"forward",fragmentData:y,fragmentIdentifier:k,fragmentNode:r,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),S=w[0],F=w[1],I=w[2],q=w[3],D=s((function(e,n){return q(),x(),R(e,(0,t.default)((0,t.default)({},n),{},{__environment:void 0}))}),[q,x,R]);return c({fragment:r.name,data:y,hasNext:F,isLoadingNext:I,hasPrevious:P,isLoadingPrevious:C}),{data:y,loadNext:S,loadPrevious:_,hasNext:F,hasPrevious:P,isLoadingNext:I,isLoadingPrevious:C,refetch:D}}},617:(e,n,r)=>{var t=r(734),a=r(61),i=r(750),o=r(56),l=r(156).useDebugValue,u=r(658).__internal,s=u.fetchQueryDeduped,c=u.fetchQuery,f=r(446);e.exports=function(e,n,r){var u,d=i(),p=n.fetchKey,v=n.fetchPolicy,m=n.source,h=n.variables,g=n.networkCacheConfig,y=a(e,h,g);if("PreloadedQuery_DEPRECATED"===n.kind)y.request.node.params.name!==n.name&&o(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",y.request.node.params.name,n.name),u={componentDisplayName:"usePreloadedQuery()",fetchKey:p,fetchObservable:s(d,y.request.identifier,(function(){return d===n.environment&&null!=m?d.executeWithSource({operation:y,source:m}):d.execute({operation:y})})),fetchPolicy:v,query:y,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{f(!1===n.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var b,R=c(d,y);null!=m&&d===n.environment?b=m.ifEmpty(R):d!==n.environment?(f(!1,"usePreloadedQuery(): usePreloadedQuery was passed a preloaded query that was created with a different environment than the one that is currently in context. In the future, this will become a hard error."),b=R):b=R,u={componentDisplayName:"usePreloadedQuery()",fetchObservable:b,fetchKey:p,fetchPolicy:v,query:y,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var k=t(u);return l({query:n.name,variables:n.variables,data:k,fetchKey:p,fetchPolicy:v,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),k}},876:(e,n,r)=>{var t=(0,r(275).default)(r(765)),a=r(428).loadQuery,i=r(743),o=r(657),l=r(750),u=r(156),s=u.useCallback,c=u.useEffect,f=u.useRef,d=u.useState,p=r(658),v=p.RelayFeatureFlags,m=p.getRequest,h={kind:"NullQueryReference"};function g(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==m(e).params.metadata.live}e.exports=function(e,n){return v.ENABLE_ACTIVITY_COMPATIBILITY?o(e,n):function(e,n){var r=null!=n?n:h,o=l(),u=i(),p=f(new Set([r])),v=d((function(){return r})),m=v[0],y=v[1],b=d((function(){return r})),R=b[0],k=b[1];r!==R&&(p.current.add(r),k(r),y(r));var E=s((function(){u.current&&(p.current.add(h),y(h))}),[u]),_=s((function(n,r){var t=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(u.current){var i,l=a(null!==(i=null==r?void 0:r.__environment)&&void 0!==i?i:o,e,n,t);p.current.add(l),y(l)}}),[o,e,y,u]),P=f(!1