react-relay 18.0.0 → 18.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/ReactRelayContext.js +1 -1
  2. package/ReactRelayFragmentContainer.js.flow +2 -5
  3. package/buildReactRelayContainer.js.flow +1 -0
  4. package/hooks.js +1 -1
  5. package/index.js +1 -1
  6. package/index.js.flow +3 -0
  7. package/legacy.js +1 -1
  8. package/lib/index.js +2 -0
  9. package/lib/relay-hooks/getConnectionState.js +47 -0
  10. package/lib/relay-hooks/legacy/FragmentResource.js +3 -8
  11. package/lib/relay-hooks/loadQuery.js +5 -14
  12. package/lib/relay-hooks/readFragmentInternal.js +2 -4
  13. package/lib/relay-hooks/useFragmentInternal.js +1 -1
  14. package/lib/relay-hooks/useFragmentInternal_CURRENT.js +3 -10
  15. package/lib/relay-hooks/useFragmentInternal_EXPERIMENTAL.js +6 -28
  16. package/lib/relay-hooks/useLoadMoreFunction.js +10 -43
  17. package/lib/relay-hooks/useLoadMoreFunction_EXPERIMENTAL.js +130 -0
  18. package/lib/relay-hooks/usePrefetchableForwardPaginationFragment_EXPERIMENTAL.js +227 -0
  19. package/lib/relay-hooks/useQueryLoader.js +8 -0
  20. package/lib/relay-hooks/useQueryLoader_EXPERIMENTAL.js +120 -0
  21. package/package.json +2 -2
  22. package/react-relay-hooks.js +2 -2
  23. package/react-relay-hooks.min.js +2 -2
  24. package/react-relay-legacy.js +1 -1
  25. package/react-relay-legacy.min.js +1 -1
  26. package/react-relay.js +2 -2
  27. package/react-relay.min.js +2 -2
  28. package/relay-hooks/EntryPointTypes.flow.js.flow +2 -2
  29. package/relay-hooks/MatchContainer.js.flow +1 -1
  30. package/relay-hooks/getConnectionState.js.flow +97 -0
  31. package/relay-hooks/legacy/FragmentResource.js.flow +4 -16
  32. package/relay-hooks/loadQuery.js.flow +30 -38
  33. package/relay-hooks/readFragmentInternal.js.flow +1 -10
  34. package/relay-hooks/useFragmentInternal.js.flow +1 -1
  35. package/relay-hooks/useFragmentInternal_CURRENT.js.flow +7 -22
  36. package/relay-hooks/useFragmentInternal_EXPERIMENTAL.js.flow +8 -56
  37. package/relay-hooks/useLoadMoreFunction.js.flow +14 -80
  38. package/relay-hooks/useLoadMoreFunction_EXPERIMENTAL.js.flow +280 -0
  39. package/relay-hooks/usePrefetchableForwardPaginationFragment_EXPERIMENTAL.js.flow +433 -0
  40. package/relay-hooks/useQueryLoader.js.flow +27 -3
  41. package/relay-hooks/useQueryLoader_EXPERIMENTAL.js.flow +253 -0
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Relay v18.0.0
2
+ * Relay v18.2.0
3
3
  */
4
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(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"],r):"object"==typeof exports?exports.ReactRelayHooks=r(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=r(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,r,n,t,a,i,o,l,s,u)=>(()=>{"use strict";var c={888:(e,r,n)=>{var t=n(156),a=n(658).__internal.createRelayContext;e.exports=a(t)},651:(e,r,n)=>{var t=n(158),a=n(828),i=n(428).loadQuery,o=n(187),l=n(696),s=n(529),u=n(242),c=n(899),f=n(115),d=n(951),p=n(617),v=n(876),h=n(874),m=n(750),g=n(50),y=n(746),b=n(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:u,useLazyLoadQuery:c,useEntryPointLoader:s,useQueryLoader:v,useMutation:f,usePaginationFragment:d,usePreloadedQuery:p,useRefetchableFragment:h,useRelayEnvironment:m,useSubscribeToInvalidationState:g,useSubscription:y}},158:(e,r,n)=>{var t=n(187),a=n(750),i=n(156),o=n(156),l=o.useContext,s=o.useEffect,u=n(446);e.exports=function(e){var r=e.entryPointReference,n=e.props;u(!1===r.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=r.getComponent,c=r.queries,f=r.entryPoints,d=r.extraProps,p=r.rootModuleID,v=o(),h=l(t),m=a();return s((function(){m.__log({name:"entrypoint.root.consume",profilerContext:h,rootModuleID:p})}),[m,h,p]),i.createElement(v,{entryPoints:f,extraProps:d,props:n,queries:c})}},93:(e,r,n)=>{var t=n(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 r=e.prototype;return r.set=function(e,r){if(this._map.delete(e),this._map.set(e,r),this._map.size>this._capacity){var n=this._map.keys().next();n.done||this._map.delete(n.value)}},r.get=function(e){var r=this._map.get(e);return null!=r&&(this._map.delete(e),this._map.set(e,r)),r},r.has=function(e){return this._map.has(e)},r.delete=function(e){this._map.delete(e)},r.size=function(){return this._map.size},r.capacity=function(){return this._capacity-this._map.size},r.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new a(e)}}},187:(e,r,n)=>{var t=n(156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=t},269:(e,r,n)=>{var t=n(275).default,a=t(n(175)),i=t(n(311)),o=n(93),l=n(637),s=n(56),u=n(658).isPromise,c=n(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 h(e,r,n,t,a){var i=null!=n?n:v(r)?d:f,o=null!=t?t:e.UNSTABLE_getDefaultRenderPolicy(),l="".concat(i,"-").concat(o,"-").concat(r.request.identifier);return null!=a?"".concat(l,"-").concat(a):l}function m(e,r){var n={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:n,operation:e}}var g=2e5;function y(e,r,n,t,a,i){var o=v(r),s=t,u=a,c=new l((function(e){var n=e.retain(r);return{dispose:function(){o&&null!=u&&u.unsubscribe(),n.dispose(),i(f)}}})),f={cacheIdentifier:e,id:g++,processedPayloadsCount:0,operationAvailability:n,getValue:function(){return s},setValue:function(e){s=e},setNetworkSubscription:function(e){o&&null!=u&&u.unsubscribe(),u=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 r=this;(0,i.default)(this,"_clearCacheEntry",(function(e){r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,n,t,a,i,o){var l=h(this._environment,e,n,t,i);return this.prepareWithIdentifier(l,e,r,n,t,a,o)},r.prepareWithIdentifier=function(e,r,n,t,i,o,l){var s=this._environment,c=null!=t?t:v(r)?d:f,p=null!=i?i:s.UNSTABLE_getDefaultRenderPolicy(),h=this._cache.get(e),m=null,g=null!=h;null==h&&(h=this._fetchAndSaveQuery(e,r,n,c,p,l,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=m&&m.dispose();var r=null==o?void 0:o.unsubscribe;r&&r(e)}}))),m=h.temporaryRetain(s);var y=h.getValue();if(u(y))throw s.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:g,operation:r,queryAvailability:h.operationAvailability,renderPolicy:p}),y;if(y instanceof Error)throw y;return y},r.retain=function(e,r){var n=this._environment,t=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(t,a,null,e,null),o=i.permanentRetain(n);return n.__log({name:"queryresource.retain",profilerContext:r,resourceID:i.id}),{dispose:function(){o.dispose()}}},r.releaseTemporaryRetain=function(e){var r=this._cache.get(e.cacheIdentifier);null!=r&&r.releaseTemporaryRetain()},r.TESTS_ONLY__getCacheEntry=function(e,r,n,t){var a=h(this._environment,e,r,n,t);return this._cache.get(a)},r._getOrCreateCacheEntry=function(e,r,n,t,a){var i=this._cache.get(e);return null==i&&(i=y(e,r,n,t,a,this._clearCacheEntry),this._cache.set(e,i)),i},r._fetchAndSaveQuery=function(e,r,n,t,i,o,l){var u,f,d=this,p=this._environment,h=p.check(r),g=h.status,b="available"===g,R=b||"partial"===i&&"stale"!==g,E=function(){};switch(t){case"store-only":u=!1,f=!0;break;case"store-or-network":u=!b,f=R;break;case"store-and-network":u=!0,f=R;break;default:u=!0,f=!1}if(f){var _=m(r,e),k=y(e,r,h,_,null,this._clearCacheEntry);this._cache.set(e,k)}if(u){var P,F=m(r,e);n.subscribe({start:function(n){P=n;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)({},n),{},{unsubscribe:function(){v(r)&&n.unsubscribe()}}))},next:function(){var n=d._getOrCreateCacheEntry(e,r,h,F,P);n.processedPayloadsCount+=1,n.setValue(F),E();var t=null==l?void 0:l.next;null!=t&&t(p.lookup(r.fragment))},error:function(n){var t=d._getOrCreateCacheEntry(e,r,h,n,P);0===t.processedPayloadsCount?t.setValue(n):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",r.fragment.node.name,String(n.message)),E(),P=null,t.setNetworkSubscription(null);var a=null==l?void 0:l.error;a&&a(n)},complete:function(){E(),P=null;var r=d._cache.get(e);r&&r.setNetworkSubscription(null);var n=null==l?void 0:l.complete;n&&n()},unsubscribe:null==l?void 0:l.unsubscribe});var C=this._cache.get(e);if(!C){var x=new Promise((function(e){E=e}));x.displayName="Relay("+r.fragment.node.name+")",C=y(e,r,h,x,P,this._clearCacheEntry),this._cache.set(e,C)}}else{var w=null==l?void 0:l.complete;w&&w()}var S=this._cache.get(e);return null==S&&s(!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:S.id,operation:r,profilerContext:o,fetchPolicy:t,renderPolicy:i,queryAvailability:h,shouldFetch:u}),S},e}();function R(e){return new b(e)}var E=p?new WeakMap:new Map;e.exports={createQueryResource:R,getQueryResourceForEnvironment:function(e){var r=E.get(e);if(r)return r;var n=R(e);return E.set(e,n),n},getQueryCacheIdentifier:h}},696:(e,r,n)=>{var t=n(888),a=n(156),i=a.useMemo;e.exports=function(e){var r=e.children,n=e.environment,o=e.getEnvironmentForActor,l=i((function(){return{environment:n,getEnvironmentForActor:o}}),[n,o]);return a.createElement(t.Provider,{value:l},r)}},637:(e,r,n)=>{var t=(0,n(275).default)(n(311)),a=n(446),i=function(){function e(e){var r=this;(0,t.default)(this,"_retainCount",0),(0,t.default)(this,"_retainDisposable",null),(0,t.default)(this,"_releaseTemporaryRetain",null),this._retain=function(n){return r._retainCount++,1===r._retainCount&&(r._retainDisposable=e(n)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),0===r._retainCount&&(null!=r._retainDisposable?(r._retainDisposable.dispose(),r._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 r=e.prototype;return r.temporaryRetain=function(e){var r,n=this;if(e.isServer())return{dispose:function(){}};var t=this._retain(e),a=null,i=function(){clearTimeout(a),a=null,n._releaseTemporaryRetain=null,t.dispose()};return a=setTimeout(i,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=i,{dispose:function(){var e;null===(e=n._releaseTemporaryRetain)||void 0===e||e.call(n)}}},r.permanentRetain=function(e){var r=this._retain(e);return this.releaseTemporaryRetain(),r},r.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},r.getRetainCount=function(){return this._retainCount},e}();e.exports=i},828:(e,r,n)=>{var t=n(428).loadQuery;e.exports=function e(r,n,a){var i=null;null==n.root.getModuleIfRequired()&&(i=n.root.load());var o=n.getPreloadProps(a),l=o.queries,s=o.entryPoints,u=o.extraProps,c={},f={};null!=l&&Object.keys(l).forEach((function(e){var n=l[e];if(null!=n){var a=n.environmentProviderOptions,i=n.options,o=n.parameters,s=n.variables,u=r.getEnvironment(a);c[e]=t(u,o,s,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)}})),null!=s&&Object.keys(s).forEach((function(n){var t=s[n];if(null!=t){var a=t.entryPoint,i=t.entryPointParams;f[n]=e(r,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!=u?u:null,getComponent:function(){var e,r=n.root.getModuleIfRequired();if(null==r)throw i=null!==(e=i)&&void 0!==e?e:n.root.load();return null!=r.default?r.default:r},get isDisposed(){return d},queries:c,rootModuleID:n.root.getModuleId()}}},428:(e,r,n)=>{var t=(0,n(275).default)(n(175)),a=n(56),i=n(658),o=i.__internal.fetchQueryDeduped,l=i.Observable,s=i.PreloadableQueryRegistry,u=i.RelayFeatureFlags,c=i.ReplaySubject,f=i.createOperationDescriptor,d=i.getRequest,p=i.getRequestIdentifier,v=100001;e.exports={loadQuery:function(e,r,n,i,h){var m;v++;var g,y,b,R,E,_,k=null!==(m=null==i?void 0:i.fetchPolicy)&&void 0!==m?m:"store-or-network",P=(0,t.default)((0,t.default)({},null==i?void 0:i.networkCacheConfig),{},{force:!0}),F=!1,C=function(r,n){return F=!0,e.executeWithSource({operation:r,source:n})},x=new c,w=l.create((function(e){return x.subscribe(e)})),S=null,q=!1,D=function(r){var t;q=!0;var a=new c;if(!0===u.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+p(r,n);t=o(e,i,(function(){return e.getNetwork().execute(r,n,P)}))}else t=e.getNetwork().execute(r,n,P);var s=t.subscribe({error:function(e){S=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return y=s,l.create((function(e){var r=a.subscribe(e);return function(){r.unsubscribe(),y()}}))},I=function(r,n){!0===u.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(q=!0);var t=o(e,r.request.identifier,n).subscribe({error:function(e){x.error(e)},next:function(e){x.next(e)},complete:function(){x.complete()}});b=t.unsubscribe},A=function(r){var t=f(r,n,P);g=e.retain(t),"store-only"!==k&&("store-or-network"!==k||"available"!==e.check(t).status)&&I(t,(function(){var e=D(r.params);return C(t,e)}))};if("PreloadableConcreteRequest"===r.kind){null===(_=(R=r.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",R.name);var N=s.get(_);if(null!=N)A(N);else{var Q="store-only"===k?null:D(R),O=s.onLoad(_,(function(r){E();var t=f(r,n,P);g=e.retain(t),null!=Q&&I(t,(function(){return C(t,Q)}))}));E=O.dispose}}else{var T=d(r);_=null!=(R=T.params).cacheID?R.cacheID:R.id,A(T)}var M=!1,L=!1,U=!1,j=function(){L||(g&&g.dispose(),L=!0)},V=function(){U||(F?b&&b():y&&y(),E&&E(),U=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){M||(j(),V(),M=!0)},releaseQuery:j,cancelNetworkRequest:V,fetchKey:v,id:_,get isDisposed(){return M||L},get networkError(){return S},name:R.name,networkCacheConfig:P,fetchPolicy:k,source:q?w:void 0,variables:n}}}},74:(e,r,n)=>{var t=n(275).default,a=t(n(175)),i=t(n(765)),o=n(269).getQueryResourceForEnvironment,l=n(56),s=n(658),u=s.__internal.fetchQuery,c=s.RelayFeatureFlags,f=s.createOperationDescriptor,d=s.getPendingOperationsForFragment,p=s.getSelector,v=s.getVariablesFromFragment,h=s.handlePotentialSnapshotErrors,m=n(446);function g(e,r,n,t,i){var l=v(r,n),s=(0,a.default)((0,a.default)({},l),{},{id:t.clientEdgeDestinationID}),c=f(t.request,s,null==i?void 0:i.networkCacheConfig);return o(e).prepare(c,u(e,c),null==i?void 0:i.fetchPolicy)}e.exports=function(e,r,n,t,a,o){var s,u,f=p(r,n),v=!0===(null==r||null===(s=r.metadata)||void 0===s?void 0:s.plural);v?null==n||Array.isArray(n)||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,"`"):"",r.name,typeof n,r.name):Array.isArray(n)&&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,"`"):"",r.name,typeof n,r.name),null==n||v&&Array.isArray(n)&&0===n.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.)",r.name,r.name,t,r.name,null==o?"a fragment reference":"the `".concat(o,"`"),t);var y,b=function(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?0===r.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}(e,f),R=null;if(!0===(null===(u=r.metadata)||void 0===u?void 0:u.hasClientEdges)){var E=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var s,u=(0,i.default)(o.missingClientEdges);try{for(u.s();!(s=u.n()).done;){var c=s.value;t.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(b);if(null!=E&&E.length){R=[];var _,k=(0,i.default)(E);try{for(k.s();!(_=k.n()).done;){var P=_.value;R.push(g(e,r,n,P,a))}}catch(e){k.e(e)}finally{k.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 F="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,C=d(e,r,F);if(C)throw C.promise;!function(e,r){var n,t;if("singular"===r.kind)h(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(n=null===(t=r.snapshot.selector.node.metadata)||void 0===t?void 0:t.throwOnFieldError)&&void 0!==n&&n);else if("plural"===r.kind){var a,o=(0,i.default)(r.snapshots);try{for(o.s();!(a=o.n()).done;){var l,s,u=a.value;h(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(l=null===(s=u.selector.node.metadata)||void 0===s?void 0:s.throwOnFieldError)&&void 0!==l&&l)}}catch(e){o.e(e)}finally{o.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!=n&&(void 0===y||Array.isArray(y)&&y.length>0&&y.every((function(e){return void 0===e})))&&m(!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.",r.name,t,t),{data:y,clientEdgeQueries:R}}},529:(e,r,n)=>{var t=(0,n(275).default)(n(765)),a=n(828),i=n(743),o=n(156),l=o.useCallback,s=o.useEffect,u=o.useRef,c=o.useState,f={kind:"NullEntryPointReference"};e.exports=function(e,r,n){var o,d,p,v,h=null!==(o=null==n||null===(d=n.TEST_ONLY__initialEntryPointData)||void 0===d?void 0:d.entryPointReference)&&void 0!==o?o:f,m=null!==(p=null==n||null===(v=n.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==p?p:null,g=i(),y=u(new Set([h])),b=c(h),R=b[0],E=b[1],_=c(m),k=_[0],P=_[1],F=l((function(){if(g.current){var e={kind:"NullEntryPointReference"};y.current.add(e),E(e)}}),[E,g]),C=l((function(n){if(g.current){var t=a(e,r,n);y.current.add(t),E(t),P(n)}}),[e,r,E,g]),x=u(!1);return s((function(){return function(){x.current=!0}}),[]),s((function(){if(!0===x.current)return x.current=!1,void("NullEntryPointReference"!==R.kind&&null!=k&&C(k));var e=y.current;if(g.current){var r,n=(0,t.default)(e);try{for(n.s();!(r=n.n()).done;){var a=r.value;if(a===R)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){n.e(e)}finally{n.f()}}}),[R,k,C,g]),s((function(){return function(){var e,r=(0,t.default)(y.current);try{for(r.s();!(e=r.n()).done;){var n=e.value;"NullEntryPointReference"!==n.kind&&n.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,C,F]}},863:(e,r,n)=>{var t=n(813),a=n(156),i=a.useCallback,o=a.useEffect;e.exports=function(){var e=t(null),r=t(!1),n=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),a=i((function(n){e.current=n,r.current=!0}),[]),l=i((function(){e.current=null,r.current=!1}),[]);return o((function(){return n}),[n]),{isFetchingRef:r,startFetch:a,disposeFetch:n,completeFetch:l}}},242:(e,r,n)=>{var t=n(337),a=n(224),i=n(156).useDebugValue,o=n(658).getFragment;e.exports=function(e,r){var n=o(e);a(n,"first argument of useFragment()");var l=t(n,r,"useFragment()");return i({fragment:n.name,data:l}),l}},337:(e,r,n)=>{var t=n(275).default,a=t(n(179)),i=t(n(931)),o=n(658);e.exports=function(e,r,n,t){return o.RelayFeatureFlags.ENABLE_USE_FRAGMENT_EXPERIMENTAL?(0,i.default)(e,r,n,t):(0,a.default)(e,r,n,t)}},179:(e,r,n)=>{var t=n(275).default,a=t(n(175)),i=t(n(765)),o=t(n(642)),l=n(269).getQueryResourceForEnvironment,s=n(750),u=n(56),c=n(156),f=c.useDebugValue,d=c.useEffect,p=c.useMemo,v=c.useRef,h=c.useState,m=n(658),g=m.__internal,y=g.fetchQuery,b=g.getPromiseForActiveRequest,R=m.RelayFeatureFlags,E=m.areEqualSelectors,_=m.createOperationDescriptor,k=m.getPendingOperationsForFragment,P=m.getSelector,F=m.getVariablesFromFragment,C=m.handlePotentialSnapshotErrors,x=m.recycleNodesInto,w=n(446);function S(e,r){if("bailout"===r.kind)return null;var n=e.getStore().getEpoch();if(n===r.epoch)return null;if("singular"===r.kind){var t=e.lookup(r.snapshot.selector),a=x(r.snapshot.data,t.data),i={data:a,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields,relayResolverErrors:t.relayResolverErrors,errorResponseFields:t.errorResponseFields};return[a!==r.snapshot.data,{kind:"singular",snapshot:i,epoch:n}]}for(var o=!1,l=[],s=0;s<r.snapshots.length;s++){var c=r.snapshots[s],f=e.lookup(c.selector),d=x(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};d!==c.data&&(o=!0),l.push(p)}return l.length!==r.snapshots.length&&u(!1,"Expected same number of snapshots"),[o,{kind:"plural",snapshots:l,epoch:n}]}function q(e,r,n,t,i){var o=F(r,n),s=(0,a.default)((0,a.default)({},o),{},{id:t.clientEdgeDestinationID}),u=_(t.request,s,null==i?void 0:i.networkCacheConfig);return[l(e).prepare(u,y(e,u),null==i?void 0:i.fetchPolicy),b(e,u.request)]}function D(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}e.exports=function(e,r,n,t){var a,c,m=p((function(){return P(e,r)}),[e,r]),g=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);g?null==r||Array.isArray(r)||u(!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 r,e.name):Array.isArray(r)&&u(!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 r,e.name),null==r||g&&Array.isArray(r)&&0===r.length||null!=m||u(!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,n,e.name,n);var y=s(),b=h((function(){return D(y,m)})),_=b[0],F=b[1],x=_,I=h(x),A=I[0],N=I[1],Q=A,O=h(m),T=O[0],M=O[1],L=h(y),U=L[0],j=L[1];if(!E(m,T)||y!==U){M(m),j(y);var V=D(y,m);F(V),N(V),x=V,Q=V}var B=v(!1);if(d((function(){B.current=m}),[m]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var G=p((function(){var n,a=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var s,u=(0,i.default)(o.missingClientEdges);try{for(u.s();!(s=u.n()).done;){var c=s.value;t.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(x),o=[];if(null!=a&&a.length){n=[];var l,s=(0,i.default)(a);try{for(s.s();!(l=s.n()).done;){var u=l.value,c=q(y,e,r,u,t),f=c[0],d=c[1];n.push(f),null!=d&&o.push(d)}}catch(e){s.e(e)}finally{s.f()}}return[n,o]}),[x,y,e,r,t]),W=G[0],K=G[1];if(K.length)throw Promise.all(K);d((function(){var e=l(y);if(null!=W&&W.length){var r,n=[],t=(0,i.default)(W);try{for(t.s();!(r=t.n()).done;){var a=r.value;n.push(e.retain(a))}}catch(e){t.e(e)}finally{t.f()}return function(){for(var e=0,r=n;e<r.length;e++)r[e].dispose()}}}),[y,W])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(x)){var H=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var n,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.missingLiveResolverFields){var l;t=null!==(l=t)&&void 0!==l?l:[];var s,u=(0,i.default)(o.missingLiveResolverFields);try{for(u.s();!(s=u.n()).done;){var c=s.value;t.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(x);if(null!=H&&H.length>0)throw Promise.all(H.map((function(e){var r=e.liveStateID;return y.getStore().getLiveResolverPromise(r)})));if(R.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||y!==U||!B.current||!E(B.current,m)){null==m&&u(!1,"refinement, see invariants above");var z="PluralReaderSelector"===m.kind?m.selectors[0].owner:m.owner,Y=k(y,e,z);if(Y)throw Y.promise}}!function(e,r){var n,t;if("singular"===r.kind)C(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(n=null===(t=r.snapshot.selector.node.metadata)||void 0===t?void 0:t.throwOnFieldError)&&void 0!==n&&n);else if("plural"===r.kind){var a,o=(0,i.default)(r.snapshots);try{for(o.s();!(a=o.n()).done;){var l,s,u=a.value;C(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(l=null===(s=u.selector.node.metadata)||void 0===s?void 0:s.throwOnFieldError)&&void 0!==l&&l)}}catch(e){o.e(e)}finally{o.f()}}}(y,x);var X,J=v(!1);if(d((function(){var e=Q,r=S(y,Q);if(null!==r){var n=r[0],t=r[1];n&&F(t),e=t}return function(e,r,n,t){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var a=e.subscribe(r.snapshot,(function(r){n((function(n){if("singular"!==n.kind||n.snapshot.selector!==r.selector){var a=S(e,n);if(null!=a){var i=a[0],o=a[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:i}),t.current=i,i?o:n}return n}return t.current=!0,{kind:"singular",snapshot:r,epoch:e.getStore().getEpoch()}}))}));return function(){a.dispose()}}var l=r.snapshots.map((function(r,a){return e.subscribe(r,(function(r){n((function(n){var i;if("plural"!==n.kind||(null===(i=n.snapshots[a])||void 0===i?void 0:i.selector)!==r.selector){var l=S(e,n);if(null!=l){var s=l[0],u=l[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:s}),t.current=t.current||s,s?u:n}return n}var c=(0,o.default)(n.snapshots);return c[a]=r,t.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}}))}))}));return function(){var e,r=(0,i.default)(l);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}(y,e,F,J)}),[y,Q]),J.current){var Z=S(y,x);if(null!=Z){var $=Z[0],ee=Z[1];$&&(F(ee),x=ee)}J.current=!1}if(g){var re=null==r;X=p((function(){return"bailout"===x.kind?re?null:[]:("plural"!==x.kind&&u(!1,"Expected state to be plural because fragment is plural"),x.snapshots.map((function(e){return e.data})))}),[x,re])}else"bailout"===x.kind?X=null:("singular"!==x.kind&&u(!1,"Expected state to be singular because fragment is singular"),X=x.snapshot.data);return R.LOG_MISSING_RECORDS_IN_PROD,null!=r&&(void 0===X||Array.isArray(X)&&X.length>0&&X.every((function(e){return void 0===e})))&&w(!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,n,n),f({fragment:e.name,data:X}),X}},931:(e,r,n)=>{var t=n(275).default,a=t(n(175)),i=t(n(765)),o=t(n(642)),l=n(269).getQueryResourceForEnvironment,s=n(750),u=n(56),c=n(156),f=c.useDebugValue,d=c.useEffect,p=c.useMemo,v=c.useRef,h=c.useState,m=n(658),g=m.__internal,y=g.fetchQuery,b=g.getPromiseForActiveRequest,R=m.RelayFeatureFlags,E=m.areEqualSelectors,_=m.createOperationDescriptor,k=m.getPendingOperationsForFragment,P=m.getSelector,F=m.getVariablesFromFragment,C=m.handlePotentialSnapshotErrors,x=m.recycleNodesInto,w=n(446);function S(e,r){if("bailout"===r.kind)return null;var n=e.getStore().getEpoch();if(n===r.epoch)return null;if("singular"===r.kind){var t=e.lookup(r.snapshot.selector),a=x(r.snapshot.data,t.data),i={data:a,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields,relayResolverErrors:t.relayResolverErrors,errorResponseFields:t.errorResponseFields};return[a!==r.snapshot.data,{kind:"singular",snapshot:i,epoch:n,selector:r.selector,environment:r.environment}]}for(var o=!1,l=[],s=0;s<r.snapshots.length;s++){var c=r.snapshots[s],f=e.lookup(c.selector),d=x(c.data,f.data),p={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};d!==c.data&&(o=!0),l.push(p)}return l.length!==r.snapshots.length&&u(!1,"Expected same number of snapshots"),[o,{kind:"plural",snapshots:l,epoch:n,selector:r.selector,environment:r.environment}]}function q(e,r,n,t,i){var o=F(r,n),s=(0,a.default)((0,a.default)({},o),{},{id:t.clientEdgeDestinationID}),u=_(t.request,s,null==i?void 0:i.networkCacheConfig);return[l(e).prepare(u,y(e,u),null==i?void 0:i.fetchPolicy),b(e,u.request)]}function D(e,r,n,t){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var a=e.subscribe(r.snapshot,(function(a){n((function(n){var i=null;if("singular"!==n.kind||n.snapshot.selector!==a.selector||n.environment!==e){var o=S(n.environment,n);if(null!=o){var l=o[0],s=o[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:l}),i=l?s:n}else i=n}else i={kind:"singular",snapshot:a,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment};return t.current="singular"===i.kind?i.epoch:null,i}))}));return function(){a.dispose()}}var l=r.snapshots.map((function(a,i){return e.subscribe(a,(function(a){n((function(n){var l,s=null;if("plural"!==n.kind||(null===(l=n.snapshots[i])||void 0===l?void 0:l.selector)!==a.selector||n.environment!==e){var u=S(n.environment,n);if(null!=u){var c=u[0],f=u[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:c}),s=c?f:n}else s=n}else{var d=(0,o.default)(n.snapshots);d[i]=a,s={kind:"plural",snapshots:d,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment}}return t.current="plural"===s.kind?s.epoch:null,s}))}))}));return function(){var e,r=(0,i.default)(l);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}function I(e,r){return null==r?{kind:"bailout",environment:e}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch(),selector:r,environment:e}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch(),selector:r,environment:e}}e.exports=function(e,r,n,t){var a,o,c=p((function(){return P(e,r)}),[e,r]),m=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);m?null==r||Array.isArray(r)||u(!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 r,e.name):Array.isArray(r)&&u(!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 r,e.name),null==r||m&&Array.isArray(r)&&0===r.length||null!=c||u(!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,n,e.name,n);var g=s(),y=h((function(){return I(g,c)})),b=y[0],_=y[1],F=b,x=F.environment;if(!E(c,F.selector)||g!==F.environment){var A=I(g,c);_(A),F=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 n,a=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var s,u=(0,i.default)(o.missingClientEdges);try{for(u.s();!(s=u.n()).done;){var c=s.value;t.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(F),o=[];if(null!=a&&a.length){n=[];var l,s=(0,i.default)(a);try{for(s.s();!(l=s.n()).done;){var u=l.value,c=q(g,e,r,u,t),f=c[0],d=c[1];n.push(f),null!=d&&o.push(d)}}catch(e){s.e(e)}finally{s.f()}}return[n,o]}),[F,g,e,r,t]),O=Q[0],T=Q[1];if(T.length)throw Promise.all(T);d((function(){var e=l(g);if(null!=O&&O.length){var r,n=[],t=(0,i.default)(O);try{for(t.s();!(r=t.n()).done;){var a=r.value;n.push(e.retain(a))}}catch(e){t.e(e)}finally{t.f()}return function(){for(var e=0,r=n;e<r.length;e++)r[e].dispose()}}}),[g,O])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(F)){var M=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var n,t=null,a=(0,i.default)(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.missingLiveResolverFields){var l;t=null!==(l=t)&&void 0!==l?l:[];var s,u=(0,i.default)(o.missingLiveResolverFields);try{for(u.s();!(s=u.n()).done;){var c=s.value;t.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return t}(F);if(null!=M&&M.length>0)throw Promise.all(M.map((function(e){var r=e.liveStateID;return g.getStore().getLiveResolverPromise(r)})));if(R.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||g!==x||!N.current||!E(N.current,c)){null==c&&u(!1,"refinement, see invariants above");var L="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,U=k(g,e,L);if(U)throw U.promise}}!function(e,r){var n,t;if("singular"===r.kind)C(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(n=null===(t=r.snapshot.selector.node.metadata)||void 0===t?void 0:t.throwOnFieldError)&&void 0!==n&&n);else if("plural"===r.kind){var a,o=(0,i.default)(r.snapshots);try{for(o.s();!(a=o.n()).done;){var l,s,u=a.value;C(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(l=null===(s=u.selector.node.metadata)||void 0===s?void 0:s.throwOnFieldError)&&void 0!==l&&l)}}catch(e){o.e(e)}finally{o.f()}}}(g,F);var j,V=v(null),B=v(null);if(d((function(){var e=B.current;if(null!=e){if(F.environment===e.environment&&F.selector===e.selector)return;e.dispose()}if("bailout"!==F.kind){var r=F,n=S(F.environment,F);if(null!==n){var t=n[0],a=n[1];if(t)return void _(a);r=a}var i=D(F.environment,r,_,V);B.current={dispose:i,selector:F.selector,environment:F.environment}}}),[F]),d((function(){if(null==B.current&&"bailout"!==F.kind){var e=D(F.environment,F,_,V);B.current={dispose:e,selector:F.selector,environment:F.environment}}return function(){var e;null===(e=B.current)||void 0===e||e.dispose(),B.current=null}}),[]),null!==V.current&&V.current!==F.epoch){var G=S(g,F);if(null!=G){var W=G[0],K=G[1];W&&(_(K),F=K)}}if(V.current=null,m){var H=null==r;j=p((function(){return"bailout"===F.kind?H?null:[]:("plural"!==F.kind&&u(!1,"Expected state to be plural because fragment is plural"),F.snapshots.map((function(e){return e.data})))}),[F,H])}else"bailout"===F.kind?j=null:("singular"!==F.kind&&u(!1,"Expected state to be singular because fragment is singular"),j=F.snapshot.data);return R.LOG_MISSING_RECORDS_IN_PROD,null!=r&&(void 0===j||Array.isArray(j)&&j.length>0&&j.every((function(e){return void 0===e})))&&w(!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,n,n),f({fragment:e.name,data:j}),j}},743:(e,r,n)=>{var t=n(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,r,n)=>{var t=n(750),a=n(56),i=n(156),o=n(658),l=o.__internal.getObservableForActiveRequest,s=o.getSelector,u=i.useEffect,c=i.useState,f=i.useMemo;e.exports=function(e,r){var n=t(),i=f((function(){var t=s(e,r);return null==t?null:("SingularReaderSelector"!==t.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),l(n,t.owner))}),[n,e,r]),o=c(null!=i),d=o[0],p=o[1];return u((function(){var e;if(p(null!=i),null!=i){var r=function(){p(!1)};e=i.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[i]),d}},899:(e,r,n)=>{var t=n(734),a=n(61),i=n(750),o=n(658).__internal.fetchQuery;e.exports=function(e,r,n){var l=i(),s=a(e,r,n&&n.networkCacheConfig?n.networkCacheConfig:{force:!0});return t({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==n?void 0:n.fetchKey,fetchObservable:o(l,s),fetchPolicy:null==n?void 0:n.fetchPolicy,query:s,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy})}},734:(e,r,n)=>{var t=n(187),a=n(269),i=a.getQueryCacheIdentifier,o=a.getQueryResourceForEnvironment,l=n(863),s=n(337),u=n(750),c=n(156),f=c.useContext,d=c.useEffect,p=c.useState,v=c.useRef;e.exports=function(e){var r=e.query,n=e.componentDisplayName,a=e.fetchObservable,c=e.fetchPolicy,h=e.fetchKey,m=e.renderPolicy,g=u(),y=f(t),b=o(g),R=p(0),E=R[0],_=R[1],k=l(),P=k.startFetch,F=k.completeFetch,C="".concat(E,"-").concat(null!=h?h:""),x=i(g,r,c,m,C),w=y.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(x,r,a,c,m,{start:P,complete:F,error:F},y)})),S=v(!1);d((function(){return function(){S.current=!0}}),[]),d((function(){if(!0===S.current)return S.current=!1,void _((function(e){return e+1}));var e=b.retain(w,y);return function(){e.dispose()}}),[g,x]),d((function(){b.releaseTemporaryRetain(w)}));var q=w.fragmentNode,D=w.fragmentRef;return s(q,D,n)}},601:(e,r,n)=>{var t=(0,n(275).default)(n(175)),a=n(863),i=n(743),o=n(233),l=n(750),s=n(56),u=n(156),c=u.useCallback,f=u.useEffect,d=u.useState,p=n(658),v=p.__internal.fetchQuery,h=p.ConnectionInterface,m=p.createOperationDescriptor,g=p.getPaginationVariables,y=p.getRefetchMetadata,b=p.getSelector,R=p.getValueAtPath,E=n(446);e.exports=function(e){var r=e.direction,n=e.fragmentNode,u=e.fragmentRef,p=e.fragmentIdentifier,_=e.fragmentData,k=e.connectionPathInFragmentData,P=e.paginationRequest,F=e.paginationMetadata,C=e.componentDisplayName,x=e.observer,w=e.onReset,S=l(),q=a(),D=q.isFetchingRef,I=q.startFetch,A=q.disposeFetch,N=q.completeFetch,Q=y(n,C).identifierInfo,O=null!=(null==Q?void 0:Q.identifierField)&&null!=_&&"object"==typeof _?_[Q.identifierField]:null,T=i(),M=d(S),L=M[0],U=M[1],j=d(p),V=j[0],B=j[1],G=o(n,u);(S!==L||p!==V)&&(A(),w(),U(S),B(p));var W=function(e,r,n,t){var a,i,o=h.get(),l=o.EDGES,u=o.PAGE_INFO,c=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR,v=R(n,t);if(null==v)return{cursor:null,hasMore:!1};"object"!=typeof v&&s(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",r.name,l,u,v);var m=v[l],g=v[u];if(null==m||null==g)return{cursor:null,hasMore:!1};Array.isArray(m)||s(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",r.name,l,m),"object"!=typeof g&&s(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",r.name,u,g);var y="forward"===e?null!==(a=g[d])&&void 0!==a?a:null:null!==(i=g[p])&&void 0!==i?i:null;return null!==y&&"string"!=typeof y&&s(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",r.name,p,y),{cursor:y,hasMore:"forward"===e?null!=y&&!0===g[c]:null!=y&&!0===g[f]}}(r,n,_,k),K=W.cursor,H=W.hasMore;return f((function(){return function(){A()}}),[A]),[c((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.",n.name,C),{dispose:function(){}};var o=b(n,u);if(!0===D.current||null==_||G)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.",n.name,C,C),i&&i(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&s(!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.",n.name,C);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=g(r,e,K,d,(0,t.default)({},f),F);null!=Q&&("string"!=typeof O&&E(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",Q.identifierField,O),p[Q.identifierQueryVariableName]=O);var h=m(P,p,{force:!0});return v(S,h).subscribe((0,t.default)((0,t.default)({},x),{},{start:function(e){I(e),x.start&&x.start(e)},complete:function(){N(),x.complete&&x.complete(),i&&i(null)},error:function(e){N(),x.error&&x.error(e),i&&i(e)}})),{dispose:A}}),[S,O,r,K,I,A,N,D,G,_,n.name,u,C]),H,A]}},61:(e,r,n)=>{var t=n(925),a=n(156),i=n(658),o=i.createOperationDescriptor,l=i.getRequest,s=a.useMemo;e.exports=function(e,r,n){var a=t(r),i=t(n||{});return s((function(){return o(l(e),a,i)}),[e,a,i])}},925:(e,r,n)=>{var t=n(125),a=n(156).useState;e.exports=function(e){var r=a(e),n=r[0],i=r[1];return t(e,n)?n:(i(e),e)}},115:(e,r,n)=>{var t=(0,n(275).default)(n(175)),a=n(743),i=n(750),o=n(156),l=n(658).commitMutation,s=o.useState,u=o.useEffect,c=o.useRef,f=o.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,n=i(),o=a(),d=c(n),p=c(e),v=c(new Set),h=s(!1),m=h[0],g=h[1],y=f((function(r){d.current===n&&p.current===e&&(v.current.delete(r),o.current&&g(v.current.size>0))}),[n,o,e]);return u((function(){d.current===n&&p.current===e||(v.current=new Set,o.current&&g(!1),d.current=n,p.current=e)}),[n,o,e]),[f((function(a){o.current&&g(!0);var i=r(n,(0,t.default)((0,t.default)({},a),{},{mutation:e,onCompleted:function(e,r){var n;y(i),null===(n=a.onCompleted)||void 0===n||n.call(a,e,r)},onError:function(e){var r;y(i),null===(r=a.onError)||void 0===r||r.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,r,n,o,e]),m]}},951:(e,r,n)=>{var t=(0,n(275).default)(n(175)),a=n(601),i=n(915),o=n(750),l=n(224),s=n(156),u=s.useCallback,c=s.useDebugValue,f=s.useState,d=n(658),p=d.getFragment,v=d.getFragmentIdentifier,h=d.getPaginationMetadata;function m(e){var r=o(),n=f(!1),i=n[0],l=n[1],s=function(e){var n,t=null===(n=r.getScheduler())||void 0===n?void 0:n.schedule;t?t((function(){l(e)})):l(e)},u={start:function(){return s(!0)},complete:function(){return s(!1)},error:function(){return s(!1)}},c=a((0,t.default)((0,t.default)({},e),{},{observer:u,onReset:function(){return s(!1)}}));return[c[0],c[1],i,c[2]]}e.exports=function(e,r){var n=p(e);l(n,"first argument of usePaginationFragment()");var a="usePaginationFragment()",o=h(n,a),s=o.connectionPathInFragmentData,f=o.paginationRequest,d=o.paginationMetadata,g=i(n,r,a),y=g.fragmentData,b=g.fragmentRef,R=g.refetch,E=v(n,b),_=m({componentDisplayName:a,connectionPathInFragmentData:s,direction:"backward",fragmentData:y,fragmentIdentifier:E,fragmentNode:n,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),k=_[0],P=_[1],F=_[2],C=_[3],x=m({componentDisplayName:a,connectionPathInFragmentData:s,direction:"forward",fragmentData:y,fragmentIdentifier:E,fragmentNode:n,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),w=x[0],S=x[1],q=x[2],D=x[3],I=u((function(e,r){return D(),C(),R(e,(0,t.default)((0,t.default)({},r),{},{__environment:void 0}))}),[D,C,R]);return c({fragment:n.name,data:y,hasNext:S,isLoadingNext:q,hasPrevious:P,isLoadingPrevious:F}),{data:y,loadNext:w,loadPrevious:k,hasNext:S,hasPrevious:P,isLoadingNext:q,isLoadingPrevious:F,refetch:I}}},617:(e,r,n)=>{var t=n(734),a=n(61),i=n(750),o=n(56),l=n(156).useDebugValue,s=n(658).__internal,u=s.fetchQueryDeduped,c=s.fetchQuery,f=n(446);e.exports=function(e,r,n){var s,d=i(),p=r.fetchKey,v=r.fetchPolicy,h=r.source,m=r.variables,g=r.networkCacheConfig,y=a(e,m,g);if("PreloadedQuery_DEPRECATED"===r.kind)y.request.node.params.name!==r.name&&o(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",y.request.node.params.name,r.name),s={componentDisplayName:"usePreloadedQuery()",fetchKey:p,fetchObservable:u(d,y.request.identifier,(function(){return d===r.environment&&null!=h?d.executeWithSource({operation:y,source:h}):d.execute({operation:y})})),fetchPolicy:v,query:y,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy};else{f(!1===r.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!=h&&d===r.environment?b=h.ifEmpty(R):d!==r.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,s={componentDisplayName:"usePreloadedQuery()",fetchObservable:b,fetchKey:p,fetchPolicy:v,query:y,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}}var E=t(s);return l({query:r.name,variables:r.variables,data:E,fetchKey:p,fetchPolicy:v,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}),E}},876:(e,r,n)=>{var t=(0,n(275).default)(n(765)),a=n(428).loadQuery,i=n(743),o=n(750),l=n(156),s=l.useCallback,u=l.useEffect,c=l.useRef,f=l.useState,d=n(658).getRequest,p={kind:"NullQueryReference"};function v(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==d(e).params.metadata.live}e.exports=function(e,r){var n=null!=r?r:p,l=o(),d=i(),h=c(new Set([n])),m=f((function(){return n})),g=m[0],y=m[1],b=f((function(){return n})),R=b[0],E=b[1];n!==R&&(h.current.add(n),E(n),y(n));var _=s((function(){d.current&&(h.current.add(p),y(p))}),[d]),k=s((function(r,n){var t=null!=n&&n.hasOwnProperty("__environment")?{fetchPolicy:n.fetchPolicy,networkCacheConfig:n.networkCacheConfig,__nameForWarning:n.__nameForWarning}:n;if(d.current){var i,o=a(null!==(i=null==n?void 0:n.__environment)&&void 0!==i?i:l,e,r,t);h.current.add(o),y(o)}}),[l,e,y,d]),P=c(!1);return u((function(){return function(){P.current=!0}}),[]),u((function(){if(!0===P.current)return P.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var r=h.current;if(d.current){var n,a=(0,t.default)(r);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(i===g)break;r.delete(i),"NullQueryReference"!==i.kind&&(v(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[g,d,k,e]),u((function(){return function(){var r,n=(0,t.default)(h.current);try{for(n.s();!(r=n.n()).done;){var a=r.value;"NullQueryReference"!==a.kind&&(v(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){n.e(e)}finally{n.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,_]}},874:(e,r,n)=>{var t=n(915),a=n(224),i=n(156).useDebugValue,o=n(658).getFragment;e.exports=function(e,r){var n=o(e);a(n,"first argument of useRefetchableFragment()");var l=t(n,r,"useRefetchableFragment()"),s=l.fragmentData,u=l.refetch;return i({fragment:n.name,data:s}),[s,u]}},915:(e,r,n)=>{var t,a=(0,n(275).default)(n(175)),i=n(187),o=n(269).getQueryResourceForEnvironment,l=n(74),s=n(337),u=n(743),c=n(876),f=n(750),d=n(56),p=n(156),v=p.useCallback,h=p.useContext,m=p.useReducer,g=n(658),y=g.__internal.fetchQuery,b=g.createOperationDescriptor,R=g.getFragmentIdentifier,E=g.getRefetchMetadata,_=g.getSelector,k=g.getValueAtPath,P=n(446);function F(e,r){switch(r.type){case"refetch":var n;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(n=r.refetchEnvironment)&&void 0!==n?n:e.mirroredEnvironment,onComplete:r.onComplete,refetchEnvironment:r.refetchEnvironment,refetchQuery:r.refetchQuery,renderPolicy:r.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:r.environment,mirroredFragmentIdentifier:r.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw r.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}t={getInitialIDAndType:function(e,r,t,a){var i=n(658).Record,o=null==e?void 0:e[null!=t?t:"id"];if(1!==r.length||"node"!==r[0]||null==o)return null;var l=a.getStore().getSource().get(o),s=null==l?null:i.getType(l);return null==s?null:{id:o,typename:s}},checkSameTypeAfterRefetch:function(e,r,t,a){var i=n(658).Record;if(e){var o=r.getStore().getSource().get(e.id),l=o&&i.getType(o);l!==e.typename&&P(!1,"Relay: Call to `refetch` returned data with a different __typename: was `%s`, now `%s`, on `%s` in `%s`. Please make sure the server correctly implementsunique id requirement.",e.typename,l,t.name,a)}},checkSameIDAfterRefetch:function(e,r,t,a){if(null!=e){var i=r[n(658).ID_KEY];null!=i&&i!==e.id&&P(!1,"Relay: Call to `refetch` returned a different id, expected `%s`, got `%s`, on `%s` in `%s`. Please make sure the server correctly implements unique id requirement.",i,e.id,t.name,a)}}},e.exports=function(e,r,n){var p=f(),g=E(e,n),C=g.refetchableRequest,x=g.fragmentRefPathInResponse,w=g.identifierInfo,S=R(e,r),q=m(F,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:S,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=q[0],I=q[1],A=D.fetchPolicy,N=D.mirroredEnvironment,Q=D.mirroredFragmentIdentifier,O=D.onComplete,T=D.refetchEnvironment,M=D.refetchQuery,L=D.renderPolicy,U=null!=T?T:p,j=o(U),V=h(i),B=U!==N||S!==Q,G=c(C),W=G[0],K=G[1],H=G[2],z=r;if(B)I({type:"reset",environment:U,fragmentIdentifier:S}),H();else if(null!=M&&null!=W){var Y;Y=t.getInitialIDAndType(M.request.variables,x,null==w?void 0:w.identifierQueryVariableName,U);var X=function(e){O&&O(null!=e?e:null)},J=null!=W.source?W.source:y(U,M),Z=V.wrapPrepareQueryResource((function(){return j.prepare(M,J,A,L,{error:X,complete:function(){t.checkSameTypeAfterRefetch(Y,U,e,n),X()}},W.fetchKey,V)})),$=l(U,Z.fragmentNode,Z.fragmentRef,n).data;null==$&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),z=k($,x),t.checkSameIDAfterRefetch(Y,z,e,n)}var ee=s(e,z,n),re=function(e,r,n,t,i,o,l,s,c,f,d){var p=u(),h=null!=(null==s?void 0:s.identifierField)&&null!=t&&"object"==typeof t?t[s.identifierField]:null;return v((function(t,i){if(!0!==p.current)return P(!1,"Relay: Unexpected call to `refetch` 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.",o.name,e),{dispose:function(){}};null==f&&P(!1,"Relay: Unexpected call to `refetch` while using a null fragment ref for fragment `%s` in `%s`. When calling `refetch`, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before calling `refetch`, or make sure you pass all required variables to `refetch`.",o.name,e,e);var l,u,v=null==i?void 0:i.__environment,m=null==i?void 0:i.fetchPolicy,g=null==i?void 0:i.UNSTABLE_renderPolicy,y=null==i?void 0:i.onComplete,R=_(o,f);if(null==R)l={},u={};else if("PluralReaderSelector"===R.kind){var E,k,F,C;l=null!==(E=null===(k=R.selectors[0])||void 0===k?void 0:k.owner.variables)&&void 0!==E?E:{},u=null!==(F=null===(C=R.selectors[0])||void 0===C?void 0:C.variables)&&void 0!==F?F:{}}else l=R.owner.variables,u=R.variables;var x=(0,a.default)((0,a.default)((0,a.default)({},l),u),t);null==s||t.hasOwnProperty(s.identifierQueryVariableName)||("string"!=typeof h&&P(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s.identifierField,h),x[s.identifierQueryVariableName]=h);var w=b(d,x,{force:!0});return c(w.request.variables,{fetchPolicy:m,__environment:v,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:m,onComplete:y,refetchEnvironment:v,refetchQuery:w,renderPolicy:g}),{dispose:n}}),[i,r,n,h,c])}(n,I,H,ee,S,e,0,w,K,r,C);return{fragmentData:ee,fragmentRef:z,refetch:re}}},750:(e,r,n)=>{var t=n(888),a=n(56),i=n(156).useContext;e.exports=function(){var e=i(t);return null==e&&a(!1,"useRelayEnvironment: Expected to have found a Relay environment provided by a `RelayEnvironmentProvider` component. This usually means that useRelayEnvironment was used in a component that is not a descendant of a `RelayEnvironmentProvider`. Please make sure a `RelayEnvironmentProvider` has been rendered somewhere as a parent or ancestor of your component."),e.environment}},224:(e,r,n)=>{var t=n(813),a=n(446);e.exports=function(e,r){var n=t(e.name);a(n.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",r)}},50:(e,r,n)=>{var t=n(750),a=n(156),i=a.useEffect,o=a.useRef;e.exports=function(e,r){var n=t(),a=o(null),l=Array.from(e).sort().join("");return i((function(){var t=n.getStore(),i=t.lookupInvalidationState(e),o=t.subscribeToInvalidationState(i,r);return a.current=o,function(){return o.dispose()}}),[l,r,n]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},746:(e,r,n)=>{var t=n(750),a=n(156).useEffect,i=n(658).requestSubscription;e.exports=function(e,r){var n=null!=r?r:i,o=t();a((function(){return n(o,e).dispose}),[o,e,n])}},813:(e,r,n)=>{var t=n(156).useMemo;e.exports=function(e){return t((function(){return{current:e}}),[])}},765:r=>{r.exports=e},311:e=>{e.exports=r},275:e=>{e.exports=n},175:e=>{e.exports=t},642:e=>{e.exports=a},125:e=>{e.exports=i},446:e=>{e.exports=o},56:e=>{e.exports=l},156:e=>{e.exports=s},658:e=>{e.exports=u}},f={};return function e(r){var n=f[r];if(void 0!==n)return n.exports;var t=f[r]={exports:{}};return c[r](t,t.exports,e),t.exports}(651)})()));
4
+ !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);return c((function(){return function(){P.current=!0}}),[]),c((function(){if(!0===P.current)return P.current=!1,void("NullQueryReference"!==m.kind&&_(m.variables,{fetchPolicy:m.fetchPolicy,networkCacheConfig:m.networkCacheConfig}));var n=p.current;if(u.current){var r,a=(0,t.default)(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i===m)break;n.delete(i),"NullQueryReference"!==i.kind&&(g(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[m,u,_,e]),c((function(){return function(){var n,r=(0,t.default)(p.current);try{for(r.s();!(n=r.n()).done;){var a=n.value;"NullQueryReference"!==a.kind&&(g(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===m.kind?null:m,_,E]}(e,n)}},657:(e,n,r)=>{var t=(0,r(275).default)(r(765)),a=r(428).loadQuery,i=r(743),o=r(750),l=r(156),u=l.useCallback,s=l.useEffect,c=l.useInsertionEffect,f=l.useRef,d=l.useState,p=r(658).getRequest,v={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==p(e).params.metadata.live}e.exports=function(e,n){var r=null!=n?n:v,l=o(),p=i(),h=f(null);null==h.current&&(h.current=new Set([r]));var g,y=d((function(){return r})),b=y[0],R=y[1],k=d((function(){return r})),E=k[0],_=k[1];r!==E&&(null===(g=h.current)||void 0===g||g.add(r),_(r),R(r));var P=u((function(){var e;p.current&&(null===(e=h.current)||void 0===e||e.add(v),R(v))}),[p]),C=u((function(n,r){var t,i;if(p.current){var o=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r,u=a(null!==(t=null==r?void 0:r.__environment)&&void 0!==t?t:l,e,n,o);null===(i=h.current)||void 0===i||i.add(u),R(u)}}),[l,e,R,p]),x=u((function(e,n){var r,a,i=null!==(r=h.current)&&void 0!==r?r:new Set,o=(0,t.default)(i);try{for(o.s();!(a=o.n()).done;){var l=a.value;l!==n&&"NullQueryReference"!==l.kind&&(m(e)?l.dispose&&l.dispose():l.releaseQuery&&l.releaseQuery())}}catch(e){o.e(e)}finally{o.f()}}),[]),w=f(null);return s((function(){return x(e,b),null!=w.current&&(clearTimeout(w.current),w.current=null),function(){w.current=setTimeout((function(){x(e,null)}),3e5)}}),[e,b]),c((function(){return function(){w.current&&clearTimeout(w.current),w.current=null,x(e,null)}}),[e]),["NullQueryReference"===b.kind?null:b,C,P]}},874:(e,n,r)=>{var t=r(915),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 useRefetchableFragment()");var l=t(r,n,"useRefetchableFragment()"),u=l.fragmentData,s=l.refetch;return i({fragment:r.name,data:u}),[u,s]}},915:(e,n,r)=>{var t,a=(0,r(275).default)(r(175)),i=r(187),o=r(269).getQueryResourceForEnvironment,l=r(74),u=r(337),s=r(743),c=r(876),f=r(750),d=r(56),p=r(156),v=p.useCallback,m=p.useContext,h=p.useReducer,g=r(658),y=g.__internal.fetchQuery,b=g.createOperationDescriptor,R=g.getFragmentIdentifier,k=g.getRefetchMetadata,E=g.getSelector,_=g.getValueAtPath,P=r(446);function C(e,n){switch(n.type){case"refetch":var r;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:n.fetchPolicy,mirroredEnvironment:null!==(r=n.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:n.onComplete,refetchEnvironment:n.refetchEnvironment,refetchQuery:n.refetchQuery,renderPolicy:n.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:n.environment,mirroredFragmentIdentifier:n.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw n.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}t={getInitialIDAndType:function(e,n,t,a){var i=r(658).Record,o=null==e?void 0:e[null!=t?t:"id"];if(1!==n.length||"node"!==n[0]||null==o)return null;var l=a.getStore().getSource().get(o),u=null==l?null:i.getType(l);return null==u?null:{id:o,typename:u}},checkSameTypeAfterRefetch:function(e,n,t,a){var i=r(658).Record;if(e){var o=n.getStore().getSource().get(e.id),l=o&&i.getType(o);l!==e.typename&&P(!1,"Relay: Call to `refetch` returned data with a different __typename: was `%s`, now `%s`, on `%s` in `%s`. Please make sure the server correctly implementsunique id requirement.",e.typename,l,t.name,a)}},checkSameIDAfterRefetch:function(e,n,t,a){if(null!=e){var i=n[r(658).ID_KEY];null!=i&&i!==e.id&&P(!1,"Relay: Call to `refetch` returned a different id, expected `%s`, got `%s`, on `%s` in `%s`. Please make sure the server correctly implements unique id requirement.",i,e.id,t.name,a)}}},e.exports=function(e,n,r){var p=f(),g=k(e,r),x=g.refetchableRequest,w=g.fragmentRefPathInResponse,S=g.identifierInfo,F=R(e,n),I=h(C,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:F,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),q=I[0],D=I[1],A=q.fetchPolicy,N=q.mirroredEnvironment,Q=q.mirroredFragmentIdentifier,T=q.onComplete,M=q.refetchEnvironment,O=q.refetchQuery,L=q.renderPolicy,j=null!=M?M:p,U=o(j),V=m(i),B=j!==N||F!==Q,W=c(x),K=W[0],Y=W[1],G=W[2],H=n;if(B)D({type:"reset",environment:j,fragmentIdentifier:F}),G();else if(null!=O&&null!=K){var z;z=t.getInitialIDAndType(O.request.variables,w,null==S?void 0:S.identifierQueryVariableName,j);var X=function(e){T&&T(null!=e?e:null)},J=null!=K.source?K.source:y(j,O),Z=V.wrapPrepareQueryResource((function(){return U.prepare(O,J,A,L,{error:X,complete:function(){t.checkSameTypeAfterRefetch(z,j,e,r),X()}},K.fetchKey,V)})),$=l(j,Z.fragmentNode,Z.fragmentRef,r).data;null==$&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),H=_($,w),t.checkSameIDAfterRefetch(z,H,e,r)}var ee=u(e,H,r),ne=function(e,n,r,t,i,o,l,u,c,f,d){var p=s(),m=null!=(null==u?void 0:u.identifierField)&&null!=t&&"object"==typeof t?t[u.identifierField]:null;return v((function(t,i){if(!0!==p.current)return P(!1,"Relay: Unexpected call to `refetch` 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.",o.name,e),{dispose:function(){}};null==f&&P(!1,"Relay: Unexpected call to `refetch` while using a null fragment ref for fragment `%s` in `%s`. When calling `refetch`, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before calling `refetch`, or make sure you pass all required variables to `refetch`.",o.name,e,e);var l,s,v=null==i?void 0:i.__environment,h=null==i?void 0:i.fetchPolicy,g=null==i?void 0:i.UNSTABLE_renderPolicy,y=null==i?void 0:i.onComplete,R=E(o,f);if(null==R)l={},s={};else if("PluralReaderSelector"===R.kind){var k,_,C,x;l=null!==(k=null===(_=R.selectors[0])||void 0===_?void 0:_.owner.variables)&&void 0!==k?k:{},s=null!==(C=null===(x=R.selectors[0])||void 0===x?void 0:x.variables)&&void 0!==C?C:{}}else l=R.owner.variables,s=R.variables;var w=(0,a.default)((0,a.default)((0,a.default)({},l),s),t);null==u||t.hasOwnProperty(u.identifierQueryVariableName)||("string"!=typeof m&&P(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",u.identifierField,m),w[u.identifierQueryVariableName]=m);var S=b(d,w,{force:!0});return c(S.request.variables,{fetchPolicy:h,__environment:v,__nameForWarning:"refetch"}),n({type:"refetch",fetchPolicy:h,onComplete:y,refetchEnvironment:v,refetchQuery:S,renderPolicy:g}),{dispose:r}}),[i,n,r,m,c])}(r,D,G,ee,F,e,0,S,Y,n,x);return{fragmentData:ee,fragmentRef:H,refetch:ne}}},750:(e,n,r)=>{var t=r(888),a=r(56),i=r(156).useContext;e.exports=function(){var e=i(t);return null==e&&a(!1,"useRelayEnvironment: Expected to have found a Relay environment provided by a `RelayEnvironmentProvider` component. This usually means that useRelayEnvironment was used in a component that is not a descendant of a `RelayEnvironmentProvider`. Please make sure a `RelayEnvironmentProvider` has been rendered somewhere as a parent or ancestor of your component."),e.environment}},224:(e,n,r)=>{var t=r(813),a=r(446);e.exports=function(e,n){var r=t(e.name);a(r.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",n)}},50:(e,n,r)=>{var t=r(750),a=r(156),i=a.useEffect,o=a.useRef;e.exports=function(e,n){var r=t(),a=o(null),l=Array.from(e).sort().join("");return i((function(){var t=r.getStore(),i=t.lookupInvalidationState(e),o=t.subscribeToInvalidationState(i,n);return a.current=o,function(){return o.dispose()}}),[l,n,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},746:(e,n,r)=>{var t=r(750),a=r(156).useEffect,i=r(658).requestSubscription;e.exports=function(e,n){var r=null!=n?n:i,o=t();a((function(){return r(o,e).dispose}),[o,e,r])}},813:(e,n,r)=>{var t=r(156).useMemo;e.exports=function(e){return t((function(){return{current:e}}),[])}},765:n=>{n.exports=e},311:e=>{e.exports=n},275:e=>{e.exports=r},175:e=>{e.exports=t},642:e=>{e.exports=a},125:e=>{e.exports=i},446:e=>{e.exports=o},56:e=>{e.exports=l},156:e=>{e.exports=u},658:e=>{e.exports=s}},f={};return function e(n){var r=f[n];if(void 0!==r)return r.exports;var t=f[n]={exports:{}};return c[n](t,t.exports,e),t.exports}(651)})()));
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Relay v18.0.0
2
+ * Relay v18.2.0
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(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"],r):"object"==typeof exports?exports.ReactRelayHooks=r(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=r(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,r,n,t,i,a,o,l,u,s)=>(()=>{"use strict";var c={888:(e,r,n)=>{var t=n(156),i=n(658).__internal.createRelayContext;e.exports=i(t)},651:(e,r,n)=>{var t=n(158),i=n(828),a=n(428).loadQuery,o=n(187),l=n(696),u=n(529),s=n(242),c=n(899),f=n(115),d=n(951),v=n(617),p=n(876),h=n(874),m=n(750),g=n(50),y=n(746),b=n(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:a,loadEntryPoint:i,useFragment:s,useLazyLoadQuery:c,useEntryPointLoader:u,useQueryLoader:p,useMutation:f,usePaginationFragment:d,usePreloadedQuery:v,useRefetchableFragment:h,useRelayEnvironment:m,useSubscribeToInvalidationState:g,useSubscription:y}},158:(e,r,n)=>{var t=n(187),i=n(750),a=n(156),o=n(156),l=o.useContext,u=o.useEffect;n(446),e.exports=function(e){var r=e.entryPointReference,n=e.props,o=r.getComponent,s=r.queries,c=r.entryPoints,f=r.extraProps,d=r.rootModuleID,v=o(),p=l(t),h=i();return u((function(){h.__log({name:"entrypoint.root.consume",profilerContext:p,rootModuleID:d})}),[h,p,d]),a.createElement(v,{entryPoints:c,extraProps:f,props:n,queries:s})}},93:(e,r,n)=>{var t=n(56),i=function(){function e(e){this._capacity=e,this._capacity>0||t(!1),this._map=new Map}var r=e.prototype;return r.set=function(e,r){if(this._map.delete(e),this._map.set(e,r),this._map.size>this._capacity){var n=this._map.keys().next();n.done||this._map.delete(n.value)}},r.get=function(e){var r=this._map.get(e);return null!=r&&(this._map.delete(e),this._map.set(e,r)),r},r.has=function(e){return this._map.has(e)},r.delete=function(e){this._map.delete(e)},r.size=function(){return this._map.size},r.capacity=function(){return this._capacity-this._map.size},r.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new i(e)}}},187:(e,r,n)=>{var t=n(156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=t},269:(e,r,n)=>{var t=n(275).default,i=t(n(175)),a=t(n(311)),o=n(93),l=n(637),u=n(56),s=n(658).isPromise,c=(n(446),"store-or-network"),f="store-and-network",d="function"==typeof WeakMap;function v(e){return void 0!==e.request.node.params.metadata.live}function p(e,r,n,t,i){var a=null!=n?n:v(r)?f:c,o=null!=t?t:e.UNSTABLE_getDefaultRenderPolicy(),l="".concat(a,"-").concat(o,"-").concat(r.request.identifier);return null!=i?"".concat(l,"-").concat(i):l}function h(e,r){var n={__id:e.fragment.dataID,__fragments:(0,a.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:n,operation:e}}var m=2e5;function g(e,r,n,t,i,a){var o=v(r),u=t,s=i,c=new l((function(e){var n=e.retain(r);return{dispose:function(){o&&null!=s&&s.unsubscribe(),n.dispose(),a(f)}}})),f={cacheIdentifier:e,id:m++,processedPayloadsCount:0,operationAvailability:n,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 y=function(){function e(e){var r=this;(0,a.default)(this,"_clearCacheEntry",(function(e){r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,n,t,i,a,o){var l=p(this._environment,e,n,t,a);return this.prepareWithIdentifier(l,e,r,n,t,i,o)},r.prepareWithIdentifier=function(e,r,n,t,a,o,l){var u=this._environment,d=null!=t?t:v(r)?f:c,p=null!=a?a:u.UNSTABLE_getDefaultRenderPolicy(),h=this._cache.get(e),m=null,g=null!=h;null==h&&(h=this._fetchAndSaveQuery(e,r,n,d,p,l,(0,i.default)((0,i.default)({},o),{},{unsubscribe:function(e){null!=m&&m.dispose();var r=null==o?void 0:o.unsubscribe;r&&r(e)}}))),m=h.temporaryRetain(u);var y=h.getValue();if(s(y))throw u.__log({name:"suspense.query",fetchPolicy:d,isPromiseCached:g,operation:r,queryAvailability:h.operationAvailability,renderPolicy:p}),y;if(y instanceof Error)throw y;return y},r.retain=function(e,r){var n=this._environment,t=e.cacheIdentifier,i=e.operation,a=this._getOrCreateCacheEntry(t,i,null,e,null),o=a.permanentRetain(n);return n.__log({name:"queryresource.retain",profilerContext:r,resourceID:a.id}),{dispose:function(){o.dispose()}}},r.releaseTemporaryRetain=function(e){var r=this._cache.get(e.cacheIdentifier);null!=r&&r.releaseTemporaryRetain()},r.TESTS_ONLY__getCacheEntry=function(e,r,n,t){var i=p(this._environment,e,r,n,t);return this._cache.get(i)},r._getOrCreateCacheEntry=function(e,r,n,t,i){var a=this._cache.get(e);return null==a&&(a=g(e,r,n,t,i,this._clearCacheEntry),this._cache.set(e,a)),a},r._fetchAndSaveQuery=function(e,r,n,t,a,o,l){var s,c,f=this,d=this._environment,p=d.check(r),m=p.status,y="available"===m,b=y||"partial"===a&&"stale"!==m,R=function(){};switch(t){case"store-only":s=!1,c=!0;break;case"store-or-network":s=!y,c=b;break;case"store-and-network":s=!0,c=b;break;default:s=!0,c=!1}if(c){var E=h(r,e),_=g(e,r,p,E,null,this._clearCacheEntry);this._cache.set(e,_)}if(s){var P,k=h(r,e);n.subscribe({start:function(n){P=n;var t=f._cache.get(e);t&&t.setNetworkSubscription(P);var a=null==l?void 0:l.start;a&&a((0,i.default)((0,i.default)({},n),{},{unsubscribe:function(){v(r)&&n.unsubscribe()}}))},next:function(){var n=f._getOrCreateCacheEntry(e,r,p,k,P);n.processedPayloadsCount+=1,n.setValue(k),R();var t=null==l?void 0:l.next;null!=t&&t(d.lookup(r.fragment))},error:function(n){var t=f._getOrCreateCacheEntry(e,r,p,n,P);0===t.processedPayloadsCount&&t.setValue(n),R(),P=null,t.setNetworkSubscription(null);var i=null==l?void 0:l.error;i&&i(n)},complete:function(){R(),P=null;var r=f._cache.get(e);r&&r.setNetworkSubscription(null);var n=null==l?void 0:l.complete;n&&n()},unsubscribe:null==l?void 0:l.unsubscribe});var F=this._cache.get(e);if(!F){var C=new Promise((function(e){R=e}));C.displayName="Relay("+r.fragment.node.name+")",F=g(e,r,p,C,P,this._clearCacheEntry),this._cache.set(e,F)}}else{var S=null==l?void 0:l.complete;S&&S()}var D=this._cache.get(e);return null==D&&u(!1),d.__log({name:"queryresource.fetch",resourceID:D.id,operation:r,profilerContext:o,fetchPolicy:t,renderPolicy:a,queryAvailability:p,shouldFetch:s}),D},e}();function b(e){return new y(e)}var R=d?new WeakMap:new Map;e.exports={createQueryResource:b,getQueryResourceForEnvironment:function(e){var r=R.get(e);if(r)return r;var n=b(e);return R.set(e,n),n},getQueryCacheIdentifier:p}},696:(e,r,n)=>{var t=n(888),i=n(156),a=i.useMemo;e.exports=function(e){var r=e.children,n=e.environment,o=e.getEnvironmentForActor,l=a((function(){return{environment:n,getEnvironmentForActor:o}}),[n,o]);return i.createElement(t.Provider,{value:l},r)}},637:(e,r,n)=>{var t=(0,n(275).default)(n(311)),i=(n(446),function(){function e(e){var r=this;(0,t.default)(this,"_retainCount",0),(0,t.default)(this,"_retainDisposable",null),(0,t.default)(this,"_releaseTemporaryRetain",null),this._retain=function(n){return r._retainCount++,1===r._retainCount&&(r._retainDisposable=e(n)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),0===r._retainCount&&null!=r._retainDisposable&&(r._retainDisposable.dispose(),r._retainDisposable=null)}}}}var r=e.prototype;return r.temporaryRetain=function(e){var r,n=this;if(e.isServer())return{dispose:function(){}};var t=this._retain(e),i=null,a=function(){clearTimeout(i),i=null,n._releaseTemporaryRetain=null,t.dispose()};return i=setTimeout(a,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=a,{dispose:function(){var e;null===(e=n._releaseTemporaryRetain)||void 0===e||e.call(n)}}},r.permanentRetain=function(e){var r=this._retain(e);return this.releaseTemporaryRetain(),r},r.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},r.getRetainCount=function(){return this._retainCount},e}());e.exports=i},828:(e,r,n)=>{var t=n(428).loadQuery;e.exports=function e(r,n,i){var a=null;null==n.root.getModuleIfRequired()&&(a=n.root.load());var o=n.getPreloadProps(i),l=o.queries,u=o.entryPoints,s=o.extraProps,c={},f={};null!=l&&Object.keys(l).forEach((function(e){var n=l[e];if(null!=n){var i=n.environmentProviderOptions,a=n.options,o=n.parameters,u=n.variables,s=r.getEnvironment(i);c[e]=t(s,o,u,{fetchPolicy:null==a?void 0:a.fetchPolicy,networkCacheConfig:null==a?void 0:a.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)}})),null!=u&&Object.keys(u).forEach((function(n){var t=u[n];if(null!=t){var i=t.entryPoint,a=t.entryPointParams;f[n]=e(r,i,a)}}));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,r=n.root.getModuleIfRequired();if(null==r)throw a=null!==(e=a)&&void 0!==e?e:n.root.load();return null!=r.default?r.default:r},get isDisposed(){return d},queries:c,rootModuleID:n.root.getModuleId()}}},428:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(56),a=n(658),o=a.__internal.fetchQueryDeduped,l=a.Observable,u=a.PreloadableQueryRegistry,s=a.RelayFeatureFlags,c=a.ReplaySubject,f=a.createOperationDescriptor,d=a.getRequest,v=a.getRequestIdentifier,p=100001;e.exports={loadQuery:function(e,r,n,a,h){var m;p++;var g,y,b,R,E,_,P=null!==(m=null==a?void 0:a.fetchPolicy)&&void 0!==m?m:"store-or-network",k=(0,t.default)((0,t.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),F=!1,C=function(r,n){return F=!0,e.executeWithSource({operation:r,source:n})},S=new c,D=l.create((function(e){return S.subscribe(e)})),q=null,w=!1,x=function(r){var t;w=!0;var i=new c;if(!0===s.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var a="raw-network-request-"+v(r,n);t=o(e,a,(function(){return e.getNetwork().execute(r,n,k)}))}else t=e.getNetwork().execute(r,n,k);var u=t.subscribe({error:function(e){q=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe;return y=u,l.create((function(e){var r=i.subscribe(e);return function(){r.unsubscribe(),y()}}))},N=function(r,n){!0===s.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(w=!0);var t=o(e,r.request.identifier,n).subscribe({error:function(e){S.error(e)},next:function(e){S.next(e)},complete:function(){S.complete()}});b=t.unsubscribe},A=function(r){var t=f(r,n,k);g=e.retain(t),"store-only"!==P&&("store-or-network"!==P||"available"!==e.check(t).status)&&N(t,(function(){var e=x(r.params);return C(t,e)}))};if("PreloadableConcreteRequest"===r.kind){null===(_=(R=r.params).id)&&i(!1);var I=u.get(_);if(null!=I)A(I);else{var Q="store-only"===P?null:x(R),O=u.onLoad(_,(function(r){E();var t=f(r,n,k);g=e.retain(t),null!=Q&&N(t,(function(){return C(t,Q)}))}));E=O.dispose}}else{var M=d(r);_=null!=(R=M.params).cacheID?R.cacheID:R.id,A(M)}var L=!1,T=!1,U=!1,j=function(){T||(g&&g.dispose(),T=!0)},V=function(){U||(F?b&&b():y&&y(),E&&E(),U=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){L||(j(),V(),L=!0)},releaseQuery:j,cancelNetworkRequest:V,fetchKey:p,id:_,get isDisposed(){return L||T},get networkError(){return q},name:R.name,networkCacheConfig:k,fetchPolicy:P,source:w?D:void 0,variables:n}}}},74:(e,r,n)=>{var t=n(275).default,i=t(n(175)),a=t(n(765)),o=n(269).getQueryResourceForEnvironment,l=n(56),u=n(658),s=u.__internal.fetchQuery,c=u.RelayFeatureFlags,f=u.createOperationDescriptor,d=u.getPendingOperationsForFragment,v=u.getSelector,p=u.getVariablesFromFragment,h=u.handlePotentialSnapshotErrors;function m(e,r,n,t,a){var l=p(r,n),u=(0,i.default)((0,i.default)({},l),{},{id:t.clientEdgeDestinationID}),c=f(t.request,u,null==a?void 0:a.networkCacheConfig);return o(e).prepare(c,s(e,c),null==a?void 0:a.fetchPolicy)}n(446),e.exports=function(e,r,n,t,i,o){var u,s,f=v(r,n),p=!0===(null==r||null===(u=r.metadata)||void 0===u?void 0:u.plural);p?null==n||Array.isArray(n)||l(!1):Array.isArray(n)&&l(!1),null==n||p&&Array.isArray(n)&&0===n.length||null!=f||l(!1);var g,y=function(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?0===r.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}(e,f),b=null;if(!0===(null===(s=r.metadata)||void 0===s?void 0:s.hasClientEdges)){var R=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var u,s=(0,a.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){i.e(e)}finally{i.f()}return t}(y);if(null!=R&&R.length){b=[];var E,_=(0,a.default)(R);try{for(_.s();!(E=_.n()).done;){var P=E.value;b.push(m(e,r,n,P,i))}}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})))}(y)){null==f&&l(!1);var k="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,F=d(e,r,k);if(F)throw F.promise;!function(e,r){var n,t;if("singular"===r.kind)h(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(n=null===(t=r.snapshot.selector.node.metadata)||void 0===t?void 0:t.throwOnFieldError)&&void 0!==n&&n);else if("plural"===r.kind){var i,o=(0,a.default)(r.snapshots);try{for(o.s();!(i=o.n()).done;){var l,u,s=i.value;h(e,s.missingRequiredFields,s.relayResolverErrors,s.errorResponseFields,null!==(l=null===(u=s.selector.node.metadata)||void 0===u?void 0:u.throwOnFieldError)&&void 0!==l&&l)}}catch(e){o.e(e)}finally{o.f()}}}(e,y)}return g="bailout"===y.kind?p?[]:null:"singular"===y.kind?y.snapshot.data:y.snapshots.map((function(e){return e.data})),c.LOG_MISSING_RECORDS_IN_PROD&&null!=n&&(void 0===g||Array.isArray(g)&&g.length>0&&g.every((function(e){return void 0===e}))),{data:g,clientEdgeQueries:b}}},529:(e,r,n)=>{var t=(0,n(275).default)(n(765)),i=n(828),a=n(743),o=n(156),l=o.useCallback,u=o.useEffect,s=o.useRef,c=o.useState,f={kind:"NullEntryPointReference"};e.exports=function(e,r,n){var o,d,v,p,h=null!==(o=null==n||null===(d=n.TEST_ONLY__initialEntryPointData)||void 0===d?void 0:d.entryPointReference)&&void 0!==o?o:f,m=null!==(v=null==n||null===(p=n.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointParams)&&void 0!==v?v:null,g=a(),y=s(new Set([h])),b=c(h),R=b[0],E=b[1],_=c(m),P=_[0],k=_[1],F=l((function(){if(g.current){var e={kind:"NullEntryPointReference"};y.current.add(e),E(e)}}),[E,g]),C=l((function(n){if(g.current){var t=i(e,r,n);y.current.add(t),E(t),k(n)}}),[e,r,E,g]),S=s(!1);return u((function(){return function(){S.current=!0}}),[]),u((function(){if(!0===S.current)return S.current=!1,void("NullEntryPointReference"!==R.kind&&null!=P&&C(P));var e=y.current;if(g.current){var r,n=(0,t.default)(e);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(i===R)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){n.e(e)}finally{n.f()}}}),[R,P,C,g]),u((function(){return function(){var e,r=(0,t.default)(y.current);try{for(r.s();!(e=r.n()).done;){var n=e.value;"NullEntryPointReference"!==n.kind&&n.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,C,F]}},863:(e,r,n)=>{var t=n(813),i=n(156),a=i.useCallback,o=i.useEffect;e.exports=function(){var e=t(null),r=t(!1),n=a((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),i=a((function(n){e.current=n,r.current=!0}),[]),l=a((function(){e.current=null,r.current=!1}),[]);return o((function(){return n}),[n]),{isFetchingRef:r,startFetch:i,disposeFetch:n,completeFetch:l}}},242:(e,r,n)=>{var t=n(337),i=n(224),a=(n(156).useDebugValue,n(658).getFragment);e.exports=function(e,r){var n=a(e);return i(n,"first argument of useFragment()"),t(n,r,"useFragment()")}},337:(e,r,n)=>{var t=n(275).default,i=t(n(179)),a=t(n(931)),o=n(658);e.exports=function(e,r,n,t){return o.RelayFeatureFlags.ENABLE_USE_FRAGMENT_EXPERIMENTAL?(0,a.default)(e,r,n,t):(0,i.default)(e,r,n,t)}},179:(e,r,n)=>{var t=n(275).default,i=t(n(175)),a=t(n(765)),o=t(n(642)),l=n(269).getQueryResourceForEnvironment,u=n(750),s=n(56),c=n(156),f=(c.useDebugValue,c.useEffect),d=c.useMemo,v=c.useRef,p=c.useState,h=n(658),m=h.__internal,g=m.fetchQuery,y=m.getPromiseForActiveRequest,b=h.RelayFeatureFlags,R=h.areEqualSelectors,E=h.createOperationDescriptor,_=h.getPendingOperationsForFragment,P=h.getSelector,k=h.getVariablesFromFragment,F=h.handlePotentialSnapshotErrors,C=h.recycleNodesInto;function S(e,r){if("bailout"===r.kind)return null;var n=e.getStore().getEpoch();if(n===r.epoch)return null;if("singular"===r.kind){var t=e.lookup(r.snapshot.selector),i=C(r.snapshot.data,t.data),a={data:i,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields,relayResolverErrors:t.relayResolverErrors,errorResponseFields:t.errorResponseFields};return[i!==r.snapshot.data,{kind:"singular",snapshot:a,epoch:n}]}for(var o=!1,l=[],u=0;u<r.snapshots.length;u++){var c=r.snapshots[u],f=e.lookup(c.selector),d=C(c.data,f.data),v={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};d!==c.data&&(o=!0),l.push(v)}return l.length!==r.snapshots.length&&s(!1),[o,{kind:"plural",snapshots:l,epoch:n}]}function D(e,r,n,t,a){var o=k(r,n),u=(0,i.default)((0,i.default)({},o),{},{id:t.clientEdgeDestinationID}),s=E(t.request,u,null==a?void 0:a.networkCacheConfig);return[l(e).prepare(s,g(e,s),null==a?void 0:a.fetchPolicy),y(e,s.request)]}function q(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}n(446),e.exports=function(e,r,n,t){var i,c,h=d((function(){return P(e,r)}),[e,r]),m=!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural);m?null==r||Array.isArray(r)||s(!1):Array.isArray(r)&&s(!1),null==r||m&&Array.isArray(r)&&0===r.length||null!=h||s(!1);var g=u(),y=p((function(){return q(g,h)})),E=y[0],k=y[1],C=E,w=p(C),x=w[0],N=w[1],A=x,I=p(h),Q=I[0],O=I[1],M=p(g),L=M[0],T=M[1];if(!R(h,Q)||g!==L){O(h),T(g);var U=q(g,h);k(U),N(U),C=U,A=U}var j=v(!1);if(f((function(){j.current=h}),[h]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var V=d((function(){var n,i=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var u,s=(0,a.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){i.e(e)}finally{i.f()}return t}(C),o=[];if(null!=i&&i.length){n=[];var l,u=(0,a.default)(i);try{for(u.s();!(l=u.n()).done;){var s=l.value,c=D(g,e,r,s,t),f=c[0],d=c[1];n.push(f),null!=d&&o.push(d)}}catch(e){u.e(e)}finally{u.f()}}return[n,o]}),[C,g,e,r,t]),G=V[0],B=V[1];if(B.length)throw Promise.all(B);f((function(){var e=l(g);if(null!=G&&G.length){var r,n=[],t=(0,a.default)(G);try{for(t.s();!(r=t.n()).done;){var i=r.value;n.push(e.retain(i))}}catch(e){t.e(e)}finally{t.f()}return function(){for(var e=0,r=n;e<r.length;e++)r[e].dispose()}}}),[g,G])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(C)){var W=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var n,t=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.missingLiveResolverFields){var l;t=null!==(l=t)&&void 0!==l?l:[];var u,s=(0,a.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){i.e(e)}finally{i.f()}return t}(C);if(null!=W&&W.length>0)throw Promise.all(W.map((function(e){var r=e.liveStateID;return g.getStore().getLiveResolverPromise(r)})));if(b.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||g!==L||!j.current||!R(j.current,h)){null==h&&s(!1);var H="PluralReaderSelector"===h.kind?h.selectors[0].owner:h.owner,K=_(g,e,H);if(K)throw K.promise}}!function(e,r){var n,t;if("singular"===r.kind)F(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(n=null===(t=r.snapshot.selector.node.metadata)||void 0===t?void 0:t.throwOnFieldError)&&void 0!==n&&n);else if("plural"===r.kind){var i,o=(0,a.default)(r.snapshots);try{for(o.s();!(i=o.n()).done;){var l,u,s=i.value;F(e,s.missingRequiredFields,s.relayResolverErrors,s.errorResponseFields,null!==(l=null===(u=s.selector.node.metadata)||void 0===u?void 0:u.throwOnFieldError)&&void 0!==l&&l)}}catch(e){o.e(e)}finally{o.f()}}}(g,C);var z,Y=v(!1);if(f((function(){var e=A,r=S(g,A);if(null!==r){var n=r[0],t=r[1];n&&k(t),e=t}return function(e,r,n,t){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var i=e.subscribe(r.snapshot,(function(r){n((function(n){if("singular"!==n.kind||n.snapshot.selector!==r.selector){var i=S(e,n);if(null!=i){var a=i[0],o=i[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:a}),t.current=a,a?o:n}return n}return t.current=!0,{kind:"singular",snapshot:r,epoch:e.getStore().getEpoch()}}))}));return function(){i.dispose()}}var l=r.snapshots.map((function(r,i){return e.subscribe(r,(function(r){n((function(n){var a;if("plural"!==n.kind||(null===(a=n.snapshots[i])||void 0===a?void 0:a.selector)!==r.selector){var l=S(e,n);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:n}return n}var c=(0,o.default)(n.snapshots);return c[i]=r,t.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}}))}))}));return function(){var e,r=(0,a.default)(l);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}(g,e,k,Y)}),[g,A]),Y.current){var X=S(g,C);if(null!=X){var J=X[0],Z=X[1];J&&(k(Z),C=Z)}Y.current=!1}if(m){var $=null==r;z=d((function(){return"bailout"===C.kind?$?null:[]:("plural"!==C.kind&&s(!1),C.snapshots.map((function(e){return e.data})))}),[C,$])}else"bailout"===C.kind?z=null:("singular"!==C.kind&&s(!1),z=C.snapshot.data);return b.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===z||Array.isArray(z)&&z.length>0&&z.every((function(e){return void 0===e}))),z}},931:(e,r,n)=>{var t=n(275).default,i=t(n(175)),a=t(n(765)),o=t(n(642)),l=n(269).getQueryResourceForEnvironment,u=n(750),s=n(56),c=n(156),f=(c.useDebugValue,c.useEffect),d=c.useMemo,v=c.useRef,p=c.useState,h=n(658),m=h.__internal,g=m.fetchQuery,y=m.getPromiseForActiveRequest,b=h.RelayFeatureFlags,R=h.areEqualSelectors,E=h.createOperationDescriptor,_=h.getPendingOperationsForFragment,P=h.getSelector,k=h.getVariablesFromFragment,F=h.handlePotentialSnapshotErrors,C=h.recycleNodesInto;function S(e,r){if("bailout"===r.kind)return null;var n=e.getStore().getEpoch();if(n===r.epoch)return null;if("singular"===r.kind){var t=e.lookup(r.snapshot.selector),i=C(r.snapshot.data,t.data),a={data:i,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields,relayResolverErrors:t.relayResolverErrors,errorResponseFields:t.errorResponseFields};return[i!==r.snapshot.data,{kind:"singular",snapshot:a,epoch:n,selector:r.selector,environment:r.environment}]}for(var o=!1,l=[],u=0;u<r.snapshots.length;u++){var c=r.snapshots[u],f=e.lookup(c.selector),d=C(c.data,f.data),v={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};d!==c.data&&(o=!0),l.push(v)}return l.length!==r.snapshots.length&&s(!1),[o,{kind:"plural",snapshots:l,epoch:n,selector:r.selector,environment:r.environment}]}function D(e,r,n,t,a){var o=k(r,n),u=(0,i.default)((0,i.default)({},o),{},{id:t.clientEdgeDestinationID}),s=E(t.request,u,null==a?void 0:a.networkCacheConfig);return[l(e).prepare(s,g(e,s),null==a?void 0:a.fetchPolicy),y(e,s.request)]}function q(e,r,n,t){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var i=e.subscribe(r.snapshot,(function(i){n((function(n){var a=null;if("singular"!==n.kind||n.snapshot.selector!==i.selector||n.environment!==e){var o=S(n.environment,n);if(null!=o){var l=o[0],u=o[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:l}),a=l?u:n}else a=n}else a={kind:"singular",snapshot:i,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment};return t.current="singular"===a.kind?a.epoch:null,a}))}));return function(){i.dispose()}}var l=r.snapshots.map((function(i,a){return e.subscribe(i,(function(i){n((function(n){var l,u=null;if("plural"!==n.kind||(null===(l=n.snapshots[a])||void 0===l?void 0:l.selector)!==i.selector||n.environment!==e){var s=S(n.environment,n);if(null!=s){var c=s[0],f=s[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:c}),u=c?f:n}else u=n}else{var d=(0,o.default)(n.snapshots);d[a]=i,u={kind:"plural",snapshots:d,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment}}return t.current="plural"===u.kind?u.epoch:null,u}))}))}));return function(){var e,r=(0,a.default)(l);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}function w(e,r){return null==r?{kind:"bailout",environment:e}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch(),selector:r,environment:e}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch(),selector:r,environment:e}}n(446),e.exports=function(e,r,n,t){var i,o,c=d((function(){return P(e,r)}),[e,r]),h=!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural);h?null==r||Array.isArray(r)||s(!1):Array.isArray(r)&&s(!1),null==r||h&&Array.isArray(r)&&0===r.length||null!=c||s(!1);var m=u(),g=p((function(){return w(m,c)})),y=g[0],E=g[1],k=y,C=k.environment;if(!R(c,k.selector)||m!==k.environment){var x=w(m,c);E(x),k=x}var N=v(!1);if(f((function(){N.current=c}),[c]),!0===(null===(o=e.metadata)||void 0===o?void 0:o.hasClientEdges)){var A=d((function(){var n,i=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.missingClientEdges){var l;t=null!==(l=t)&&void 0!==l?l:[];var u,s=(0,a.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){i.e(e)}finally{i.f()}return t}(k),o=[];if(null!=i&&i.length){n=[];var l,u=(0,a.default)(i);try{for(u.s();!(l=u.n()).done;){var s=l.value,c=D(m,e,r,s,t),f=c[0],d=c[1];n.push(f),null!=d&&o.push(d)}}catch(e){u.e(e)}finally{u.f()}}return[n,o]}),[k,m,e,r,t]),I=A[0],Q=A[1];if(Q.length)throw Promise.all(Q);f((function(){var e=l(m);if(null!=I&&I.length){var r,n=[],t=(0,a.default)(I);try{for(t.s();!(r=t.n()).done;){var i=r.value;n.push(e.retain(i))}}catch(e){t.e(e)}finally{t.f()}return function(){for(var e=0,r=n;e<r.length;e++)r[e].dispose()}}}),[m,I])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(k)){var O=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var n,t=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.missingLiveResolverFields){var l;t=null!==(l=t)&&void 0!==l?l:[];var u,s=(0,a.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){i.e(e)}finally{i.f()}return t}(k);if(null!=O&&O.length>0)throw Promise.all(O.map((function(e){var r=e.liveStateID;return m.getStore().getLiveResolverPromise(r)})));if(b.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||m!==C||!N.current||!R(N.current,c)){null==c&&s(!1);var M="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,L=_(m,e,M);if(L)throw L.promise}}!function(e,r){var n,t;if("singular"===r.kind)F(e,r.snapshot.missingRequiredFields,r.snapshot.relayResolverErrors,r.snapshot.errorResponseFields,null!==(n=null===(t=r.snapshot.selector.node.metadata)||void 0===t?void 0:t.throwOnFieldError)&&void 0!==n&&n);else if("plural"===r.kind){var i,o=(0,a.default)(r.snapshots);try{for(o.s();!(i=o.n()).done;){var l,u,s=i.value;F(e,s.missingRequiredFields,s.relayResolverErrors,s.errorResponseFields,null!==(l=null===(u=s.selector.node.metadata)||void 0===u?void 0:u.throwOnFieldError)&&void 0!==l&&l)}}catch(e){o.e(e)}finally{o.f()}}}(m,k);var T,U=v(null),j=v(null);if(f((function(){var e=j.current;if(null!=e){if(k.environment===e.environment&&k.selector===e.selector)return;e.dispose()}if("bailout"!==k.kind){var r=k,n=S(k.environment,k);if(null!==n){var t=n[0],i=n[1];if(t)return void E(i);r=i}var a=q(k.environment,r,E,U);j.current={dispose:a,selector:k.selector,environment:k.environment}}}),[k]),f((function(){if(null==j.current&&"bailout"!==k.kind){var e=q(k.environment,k,E,U);j.current={dispose:e,selector:k.selector,environment:k.environment}}return function(){var e;null===(e=j.current)||void 0===e||e.dispose(),j.current=null}}),[]),null!==U.current&&U.current!==k.epoch){var V=S(m,k);if(null!=V){var G=V[0],B=V[1];G&&(E(B),k=B)}}if(U.current=null,h){var W=null==r;T=d((function(){return"bailout"===k.kind?W?null:[]:("plural"!==k.kind&&s(!1),k.snapshots.map((function(e){return e.data})))}),[k,W])}else"bailout"===k.kind?T=null:("singular"!==k.kind&&s(!1),T=k.snapshot.data);return b.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===T||Array.isArray(T)&&T.length>0&&T.every((function(e){return void 0===e}))),T}},743:(e,r,n)=>{var t=n(156),i=t.useEffect,a=t.useRef;e.exports=function(){var e=a(!0);return i((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},233:(e,r,n)=>{var t=n(750),i=n(56),a=n(156),o=n(658),l=o.__internal.getObservableForActiveRequest,u=o.getSelector,s=a.useEffect,c=a.useState,f=a.useMemo;e.exports=function(e,r){var n=t(),a=f((function(){var t=u(e,r);return null==t?null:("SingularReaderSelector"!==t.kind&&i(!1),l(n,t.owner))}),[n,e,r]),o=c(null!=a),d=o[0],v=o[1];return s((function(){var e;if(v(null!=a),null!=a){var r=function(){v(!1)};e=a.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[a]),d}},899:(e,r,n)=>{var t=n(734),i=n(61),a=n(750),o=n(658).__internal.fetchQuery;e.exports=function(e,r,n){var l=a(),u=i(e,r,n&&n.networkCacheConfig?n.networkCacheConfig:{force:!0});return t({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==n?void 0:n.fetchKey,fetchObservable:o(l,u),fetchPolicy:null==n?void 0:n.fetchPolicy,query:u,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy})}},734:(e,r,n)=>{var t=n(187),i=n(269),a=i.getQueryCacheIdentifier,o=i.getQueryResourceForEnvironment,l=n(863),u=n(337),s=n(750),c=n(156),f=c.useContext,d=c.useEffect,v=c.useState,p=c.useRef;e.exports=function(e){var r=e.query,n=e.componentDisplayName,i=e.fetchObservable,c=e.fetchPolicy,h=e.fetchKey,m=e.renderPolicy,g=s(),y=f(t),b=o(g),R=v(0),E=R[0],_=R[1],P=l(),k=P.startFetch,F=P.completeFetch,C="".concat(E,"-").concat(null!=h?h:""),S=a(g,r,c,m,C),D=y.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(S,r,i,c,m,{start:k,complete:F,error:F},y)})),q=p(!1);d((function(){return function(){q.current=!0}}),[]),d((function(){if(!0===q.current)return q.current=!1,void _((function(e){return e+1}));var e=b.retain(D,y);return function(){e.dispose()}}),[g,S]),d((function(){b.releaseTemporaryRetain(D)}));var w=D.fragmentNode,x=D.fragmentRef;return u(w,x,n)}},601:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(863),a=n(743),o=n(233),l=n(750),u=n(56),s=n(156),c=s.useCallback,f=s.useEffect,d=s.useState,v=n(658),p=v.__internal.fetchQuery,h=v.ConnectionInterface,m=v.createOperationDescriptor,g=v.getPaginationVariables,y=v.getRefetchMetadata,b=v.getSelector,R=v.getValueAtPath;n(446),e.exports=function(e){var r=e.direction,n=e.fragmentNode,s=e.fragmentRef,v=e.fragmentIdentifier,E=e.fragmentData,_=e.connectionPathInFragmentData,P=e.paginationRequest,k=e.paginationMetadata,F=e.componentDisplayName,C=e.observer,S=e.onReset,D=l(),q=i(),w=q.isFetchingRef,x=q.startFetch,N=q.disposeFetch,A=q.completeFetch,I=y(n,F).identifierInfo,Q=null!=(null==I?void 0:I.identifierField)&&null!=E&&"object"==typeof E?E[I.identifierField]:null,O=a(),M=d(D),L=M[0],T=M[1],U=d(v),j=U[0],V=U[1],G=o(n,s);(D!==L||v!==j)&&(N(),S(),T(D),V(v));var B=function(e,r,n,t){var i,a,o=h.get(),l=o.EDGES,s=o.PAGE_INFO,c=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,v=o.START_CURSOR,p=R(n,t);if(null==p)return{cursor:null,hasMore:!1};"object"!=typeof p&&u(!1);var m=p[l],g=p[s];if(null==m||null==g)return{cursor:null,hasMore:!1};Array.isArray(m)||u(!1),"object"!=typeof g&&u(!1);var y="forward"===e?null!==(i=g[d])&&void 0!==i?i:null:null!==(a=g[v])&&void 0!==a?a:null;return null!==y&&"string"!=typeof y&&u(!1),{cursor:y,hasMore:"forward"===e?null!=y&&!0===g[c]:null!=y&&!0===g[f]}}(r,0,E,_),W=B.cursor,H=B.hasMore;return f((function(){return function(){N()}}),[N]),[c((function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==O.current)return{dispose:function(){}};var o=b(n,s);if(!0===w.current||null==E||G)return a&&a(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&u(!1);var l=o.owner.variables,c=o.variables,f=null==i?void 0:i.UNSTABLE_extraVariables,d=(0,t.default)((0,t.default)({},l),c),v=g(r,e,W,d,(0,t.default)({},f),k);null!=I&&(v[I.identifierQueryVariableName]=Q);var h=m(P,v,{force:!0});return p(D,h).subscribe((0,t.default)((0,t.default)({},C),{},{start:function(e){x(e),C.start&&C.start(e)},complete:function(){A(),C.complete&&C.complete(),a&&a(null)},error:function(e){A(),C.error&&C.error(e),a&&a(e)}})),{dispose:N}}),[D,Q,r,W,x,N,A,w,G,E,n.name,s,F]),H,N]}},61:(e,r,n)=>{var t=n(925),i=n(156),a=n(658),o=a.createOperationDescriptor,l=a.getRequest,u=i.useMemo;e.exports=function(e,r,n){var i=t(r),a=t(n||{});return u((function(){return o(l(e),i,a)}),[e,i,a])}},925:(e,r,n)=>{var t=n(125),i=n(156).useState;e.exports=function(e){var r=i(e),n=r[0],a=r[1];return t(e,n)?n:(a(e),e)}},115:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(743),a=n(750),o=n(156),l=n(658).commitMutation,u=o.useState,s=o.useEffect,c=o.useRef,f=o.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,n=a(),o=i(),d=c(n),v=c(e),p=c(new Set),h=u(!1),m=h[0],g=h[1],y=f((function(r){d.current===n&&v.current===e&&(p.current.delete(r),o.current&&g(p.current.size>0))}),[n,o,e]);return s((function(){d.current===n&&v.current===e||(p.current=new Set,o.current&&g(!1),d.current=n,v.current=e)}),[n,o,e]),[f((function(i){o.current&&g(!0);var a=r(n,(0,t.default)((0,t.default)({},i),{},{mutation:e,onCompleted:function(e,r){var n;y(a),null===(n=i.onCompleted)||void 0===n||n.call(i,e,r)},onError:function(e){var r;y(a),null===(r=i.onError)||void 0===r||r.call(i,e)},onUnsubscribe:function(){var e;y(a),null===(e=i.onUnsubscribe)||void 0===e||e.call(i)},onNext:function(){var e;null===(e=i.onNext)||void 0===e||e.call(i)}}));return p.current.add(a),a}),[y,r,n,o,e]),m]}},951:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(601),a=n(915),o=n(750),l=n(224),u=n(156),s=u.useCallback,c=(u.useDebugValue,u.useState),f=n(658),d=f.getFragment,v=f.getFragmentIdentifier,p=f.getPaginationMetadata;function h(e){var r=o(),n=c(!1),a=n[0],l=n[1],u=function(e){var n,t=null===(n=r.getScheduler())||void 0===n?void 0:n.schedule;t?t((function(){l(e)})):l(e)},s={start:function(){return u(!0)},complete:function(){return u(!1)},error:function(){return u(!1)}},f=i((0,t.default)((0,t.default)({},e),{},{observer:s,onReset:function(){return u(!1)}}));return[f[0],f[1],a,f[2]]}e.exports=function(e,r){var n=d(e);l(n,"first argument of usePaginationFragment()");var i="usePaginationFragment()",o=p(n,i),u=o.connectionPathInFragmentData,c=o.paginationRequest,f=o.paginationMetadata,m=a(n,r,i),g=m.fragmentData,y=m.fragmentRef,b=m.refetch,R=v(n,y),E=h({componentDisplayName:i,connectionPathInFragmentData:u,direction:"backward",fragmentData:g,fragmentIdentifier:R,fragmentNode:n,fragmentRef:y,paginationMetadata:f,paginationRequest:c}),_=E[0],P=E[1],k=E[2],F=E[3],C=h({componentDisplayName:i,connectionPathInFragmentData:u,direction:"forward",fragmentData:g,fragmentIdentifier:R,fragmentNode:n,fragmentRef:y,paginationMetadata:f,paginationRequest:c}),S=C[0],D=C[1],q=C[2],w=C[3];return{data:g,loadNext:S,loadPrevious:_,hasNext:D,hasPrevious:P,isLoadingNext:q,isLoadingPrevious:k,refetch:s((function(e,r){return w(),F(),b(e,(0,t.default)((0,t.default)({},r),{},{__environment:void 0}))}),[w,F,b])}}},617:(e,r,n)=>{var t=n(734),i=n(61),a=n(750),o=n(56),l=(n(156).useDebugValue,n(658).__internal),u=l.fetchQueryDeduped,s=l.fetchQuery;n(446),e.exports=function(e,r,n){var l,c=a(),f=r.fetchKey,d=r.fetchPolicy,v=r.source,p=r.variables,h=r.networkCacheConfig,m=i(e,p,h);if("PreloadedQuery_DEPRECATED"===r.kind)m.request.node.params.name!==r.name&&o(!1),l={componentDisplayName:"usePreloadedQuery()",fetchKey:f,fetchObservable:u(c,m.request.identifier,(function(){return c===r.environment&&null!=v?c.executeWithSource({operation:m,source:v}):c.execute({operation:m})})),fetchPolicy:d,query:m,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy};else{var g=s(c,m);l={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=v&&c===r.environment?v.ifEmpty(g):(r.environment,g),fetchKey:f,fetchPolicy:d,query:m,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}}return t(l)}},876:(e,r,n)=>{var t=(0,n(275).default)(n(765)),i=n(428).loadQuery,a=n(743),o=n(750),l=n(156),u=l.useCallback,s=l.useEffect,c=l.useRef,f=l.useState,d=n(658).getRequest,v={kind:"NullQueryReference"};function p(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==d(e).params.metadata.live}e.exports=function(e,r){var n=null!=r?r:v,l=o(),d=a(),h=c(new Set([n])),m=f((function(){return n})),g=m[0],y=m[1],b=f((function(){return n})),R=b[0],E=b[1];n!==R&&(h.current.add(n),E(n),y(n));var _=u((function(){d.current&&(h.current.add(v),y(v))}),[d]),P=u((function(r,n){var t=null!=n&&n.hasOwnProperty("__environment")?{fetchPolicy:n.fetchPolicy,networkCacheConfig:n.networkCacheConfig,__nameForWarning:n.__nameForWarning}:n;if(d.current){var a,o=i(null!==(a=null==n?void 0:n.__environment)&&void 0!==a?a:l,e,r,t);h.current.add(o),y(o)}}),[l,e,y,d]),k=c(!1);return s((function(){return function(){k.current=!0}}),[]),s((function(){if(!0===k.current)return k.current=!1,void("NullQueryReference"!==g.kind&&P(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var r=h.current;if(d.current){var n,i=(0,t.default)(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a===g)break;r.delete(a),"NullQueryReference"!==a.kind&&(p(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}}),[g,d,P,e]),s((function(){return function(){var r,n=(0,t.default)(h.current);try{for(n.s();!(r=n.n()).done;){var i=r.value;"NullQueryReference"!==i.kind&&(p(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){n.e(e)}finally{n.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,P,_]}},874:(e,r,n)=>{var t=n(915),i=n(224),a=(n(156).useDebugValue,n(658).getFragment);e.exports=function(e,r){var n=a(e);i(n,"first argument of useRefetchableFragment()");var o=t(n,r,"useRefetchableFragment()");return[o.fragmentData,o.refetch]}},915:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(187),a=n(269).getQueryResourceForEnvironment,o=n(74),l=n(337),u=n(743),s=n(876),c=n(750),f=n(56),d=n(156),v=d.useCallback,p=d.useContext,h=d.useReducer,m=n(658),g=m.__internal.fetchQuery,y=m.createOperationDescriptor,b=m.getFragmentIdentifier,R=m.getRefetchMetadata,E=m.getSelector,_=m.getValueAtPath;function P(e,r){switch(r.type){case"refetch":var n;return(0,t.default)((0,t.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(n=r.refetchEnvironment)&&void 0!==n?n:e.mirroredEnvironment,onComplete:r.onComplete,refetchEnvironment:r.refetchEnvironment,refetchQuery:r.refetchQuery,renderPolicy:r.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:r.environment,mirroredFragmentIdentifier:r.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw r.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n(446),e.exports=function(e,r,n){var d=c(),m=R(e,n),k=m.refetchableRequest,F=m.fragmentRefPathInResponse,C=m.identifierInfo,S=b(e,r),D=h(P,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:S,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),q=D[0],w=D[1],x=q.fetchPolicy,N=q.mirroredEnvironment,A=q.mirroredFragmentIdentifier,I=q.onComplete,Q=q.refetchEnvironment,O=q.refetchQuery,M=q.renderPolicy,L=null!=Q?Q:d,T=a(L),U=p(i),j=L!==N||S!==A,V=s(k),G=V[0],B=V[1],W=V[2],H=r;if(j)w({type:"reset",environment:L,fragmentIdentifier:S}),W();else if(null!=O&&null!=G){var K=function(e){I&&I(null!=e?e:null)},z=null!=G.source?G.source:g(L,O),Y=U.wrapPrepareQueryResource((function(){return T.prepare(O,z,x,M,{error:K,complete:function(){K()}},G.fetchKey,U)})),X=o(L,Y.fragmentNode,Y.fragmentRef,n).data;null==X&&f(!1),H=_(X,F)}var J=l(e,H,n),Z=function(e,r,n,i,a,o,l,s,c,f,d){var p=u(),h=null!=(null==s?void 0:s.identifierField)&&null!=i&&"object"==typeof i?i[s.identifierField]:null;return v((function(e,i){if(!0!==p.current)return{dispose:function(){}};var a,l,u=null==i?void 0:i.__environment,v=null==i?void 0:i.fetchPolicy,m=null==i?void 0:i.UNSTABLE_renderPolicy,g=null==i?void 0:i.onComplete,b=E(o,f);if(null==b)a={},l={};else if("PluralReaderSelector"===b.kind){var R,_,P,k;a=null!==(R=null===(_=b.selectors[0])||void 0===_?void 0:_.owner.variables)&&void 0!==R?R:{},l=null!==(P=null===(k=b.selectors[0])||void 0===k?void 0:k.variables)&&void 0!==P?P:{}}else a=b.owner.variables,l=b.variables;var F=(0,t.default)((0,t.default)((0,t.default)({},a),l),e);null==s||e.hasOwnProperty(s.identifierQueryVariableName)||(F[s.identifierQueryVariableName]=h);var C=y(d,F,{force:!0});return c(C.request.variables,{fetchPolicy:v,__environment:u,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:v,onComplete:g,refetchEnvironment:u,refetchQuery:C,renderPolicy:m}),{dispose:n}}),[a,r,n,h,c])}(0,w,W,J,S,e,0,C,B,r,k);return{fragmentData:J,fragmentRef:H,refetch:Z}}},750:(e,r,n)=>{var t=n(888),i=n(56),a=n(156).useContext;e.exports=function(){var e=a(t);return null==e&&i(!1),e.environment}},224:(e,r,n)=>{n(813),n(446),e.exports=function(e,r){}},50:(e,r,n)=>{var t=n(750),i=n(156),a=i.useEffect,o=i.useRef;e.exports=function(e,r){var n=t(),i=o(null),l=Array.from(e).sort().join("");return a((function(){var t=n.getStore(),a=t.lookupInvalidationState(e),o=t.subscribeToInvalidationState(a,r);return i.current=o,function(){return o.dispose()}}),[l,r,n]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},746:(e,r,n)=>{var t=n(750),i=n(156).useEffect,a=n(658).requestSubscription;e.exports=function(e,r){var n=null!=r?r:a,o=t();i((function(){return n(o,e).dispose}),[o,e,n])}},813:(e,r,n)=>{var t=n(156).useMemo;e.exports=function(e){return t((function(){return{current:e}}),[])}},765:r=>{r.exports=e},311:e=>{e.exports=r},275:e=>{e.exports=n},175:e=>{e.exports=t},642:e=>{e.exports=i},125:e=>{e.exports=a},446:e=>{e.exports=o},56:e=>{e.exports=l},156:e=>{e.exports=u},658:e=>{e.exports=s}},f={};return function e(r){var n=f[r];if(void 0!==n)return n.exports;var t=f[r]={exports:{}};return c[r](t,t.exports,e),t.exports}(651)})()));
9
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(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"],r):"object"==typeof exports?exports.ReactRelayHooks=r(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=r(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,r,n,t,i,a,o,u,l,s)=>(()=>{"use strict";var c={888:(e,r,n)=>{var t=n(156),i=n(658).__internal.createRelayContext;e.exports=i(t)},651:(e,r,n)=>{var t=n(158),i=n(828),a=n(428).loadQuery,o=n(187),u=n(696),l=n(529),s=n(242),c=n(899),f=n(115),d=n(951),v=n(617),p=n(876),h=n(874),m=n(750),g=n(50),y=n(746),b=n(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:u,ProfilerContext:o,fetchQuery:b.fetchQuery,loadQuery:a,loadEntryPoint:i,useFragment:s,useLazyLoadQuery:c,useEntryPointLoader:l,useQueryLoader:p,useMutation:f,usePaginationFragment:d,usePreloadedQuery:v,useRefetchableFragment:h,useRelayEnvironment:m,useSubscribeToInvalidationState:g,useSubscription:y}},158:(e,r,n)=>{var t=n(187),i=n(750),a=n(156),o=n(156),u=o.useContext,l=o.useEffect;n(446),e.exports=function(e){var r=e.entryPointReference,n=e.props,o=r.getComponent,s=r.queries,c=r.entryPoints,f=r.extraProps,d=r.rootModuleID,v=o(),p=u(t),h=i();return l((function(){h.__log({name:"entrypoint.root.consume",profilerContext:p,rootModuleID:d})}),[h,p,d]),a.createElement(v,{entryPoints:c,extraProps:f,props:n,queries:s})}},93:(e,r,n)=>{var t=n(56),i=function(){function e(e){this._capacity=e,this._capacity>0||t(!1),this._map=new Map}var r=e.prototype;return r.set=function(e,r){if(this._map.delete(e),this._map.set(e,r),this._map.size>this._capacity){var n=this._map.keys().next();n.done||this._map.delete(n.value)}},r.get=function(e){var r=this._map.get(e);return null!=r&&(this._map.delete(e),this._map.set(e,r)),r},r.has=function(e){return this._map.has(e)},r.delete=function(e){this._map.delete(e)},r.size=function(){return this._map.size},r.capacity=function(){return this._capacity-this._map.size},r.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new i(e)}}},187:(e,r,n)=>{var t=n(156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=t},269:(e,r,n)=>{var t=n(275).default,i=t(n(175)),a=t(n(311)),o=n(93),u=n(637),l=n(56),s=n(658).isPromise,c=(n(446),"store-or-network"),f="store-and-network",d="function"==typeof WeakMap;function v(e){return void 0!==e.request.node.params.metadata.live}function p(e,r,n,t,i){var a=null!=n?n:v(r)?f:c,o=null!=t?t:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(a,"-").concat(o,"-").concat(r.request.identifier);return null!=i?"".concat(u,"-").concat(i):u}function h(e,r){var n={__id:e.fragment.dataID,__fragments:(0,a.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:n,operation:e}}var m=2e5;function g(e,r,n,t,i,a){var o=v(r),l=t,s=i,c=new u((function(e){var n=e.retain(r);return{dispose:function(){o&&null!=s&&s.unsubscribe(),n.dispose(),a(f)}}})),f={cacheIdentifier:e,id:m++,processedPayloadsCount:0,operationAvailability:n,getValue:function(){return l},setValue:function(e){l=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 y=function(){function e(e){var r=this;(0,a.default)(this,"_clearCacheEntry",(function(e){r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,n,t,i,a,o){var u=p(this._environment,e,n,t,a);return this.prepareWithIdentifier(u,e,r,n,t,i,o)},r.prepareWithIdentifier=function(e,r,n,t,a,o,u){var l=this._environment,d=null!=t?t:v(r)?f:c,p=null!=a?a:l.UNSTABLE_getDefaultRenderPolicy(),h=this._cache.get(e),m=null,g=null!=h;null==h&&(h=this._fetchAndSaveQuery(e,r,n,d,p,u,(0,i.default)((0,i.default)({},o),{},{unsubscribe:function(e){null!=m&&m.dispose();var r=null==o?void 0:o.unsubscribe;r&&r(e)}}))),m=h.temporaryRetain(l);var y=h.getValue();if(s(y))throw l.__log({name:"suspense.query",fetchPolicy:d,isPromiseCached:g,operation:r,queryAvailability:h.operationAvailability,renderPolicy:p}),y;if(y instanceof Error)throw y;return y},r.retain=function(e,r){var n=this._environment,t=e.cacheIdentifier,i=e.operation,a=this._getOrCreateCacheEntry(t,i,null,e,null),o=a.permanentRetain(n);return n.__log({name:"queryresource.retain",profilerContext:r,resourceID:a.id}),{dispose:function(){o.dispose()}}},r.releaseTemporaryRetain=function(e){var r=this._cache.get(e.cacheIdentifier);null!=r&&r.releaseTemporaryRetain()},r.TESTS_ONLY__getCacheEntry=function(e,r,n,t){var i=p(this._environment,e,r,n,t);return this._cache.get(i)},r._getOrCreateCacheEntry=function(e,r,n,t,i){var a=this._cache.get(e);return null==a&&(a=g(e,r,n,t,i,this._clearCacheEntry),this._cache.set(e,a)),a},r._fetchAndSaveQuery=function(e,r,n,t,a,o,u){var s,c,f=this,d=this._environment,p=d.check(r),m=p.status,y="available"===m,b=y||"partial"===a&&"stale"!==m,R=function(){};switch(t){case"store-only":s=!1,c=!0;break;case"store-or-network":s=!y,c=b;break;case"store-and-network":s=!0,c=b;break;default:s=!0,c=!1}if(c){var _=h(r,e),k=g(e,r,p,_,null,this._clearCacheEntry);this._cache.set(e,k)}if(s){var P,E=h(r,e);n.subscribe({start:function(n){P=n;var t=f._cache.get(e);t&&t.setNetworkSubscription(P);var a=null==u?void 0:u.start;a&&a((0,i.default)((0,i.default)({},n),{},{unsubscribe:function(){v(r)&&n.unsubscribe()}}))},next:function(){var n=f._getOrCreateCacheEntry(e,r,p,E,P);n.processedPayloadsCount+=1,n.setValue(E),R();var t=null==u?void 0:u.next;null!=t&&t(d.lookup(r.fragment))},error:function(n){var t=f._getOrCreateCacheEntry(e,r,p,n,P);0===t.processedPayloadsCount&&t.setValue(n),R(),P=null,t.setNetworkSubscription(null);var i=null==u?void 0:u.error;i&&i(n)},complete:function(){R(),P=null;var r=f._cache.get(e);r&&r.setNetworkSubscription(null);var n=null==u?void 0:u.complete;n&&n()},unsubscribe:null==u?void 0:u.unsubscribe});var C=this._cache.get(e);if(!C){var F=new Promise((function(e){R=e}));F.displayName="Relay("+r.fragment.node.name+")",C=g(e,r,p,F,P,this._clearCacheEntry),this._cache.set(e,C)}}else{var S=null==u?void 0:u.complete;S&&S()}var D=this._cache.get(e);return null==D&&l(!1),d.__log({name:"queryresource.fetch",resourceID:D.id,operation:r,profilerContext:o,fetchPolicy:t,renderPolicy:a,queryAvailability:p,shouldFetch:s}),D},e}();function b(e){return new y(e)}var R=d?new WeakMap:new Map;e.exports={createQueryResource:b,getQueryResourceForEnvironment:function(e){var r=R.get(e);if(r)return r;var n=b(e);return R.set(e,n),n},getQueryCacheIdentifier:p}},696:(e,r,n)=>{var t=n(888),i=n(156),a=i.useMemo;e.exports=function(e){var r=e.children,n=e.environment,o=e.getEnvironmentForActor,u=a((function(){return{environment:n,getEnvironmentForActor:o}}),[n,o]);return i.createElement(t.Provider,{value:u},r)}},637:(e,r,n)=>{var t=(0,n(275).default)(n(311)),i=(n(446),function(){function e(e){var r=this;(0,t.default)(this,"_retainCount",0),(0,t.default)(this,"_retainDisposable",null),(0,t.default)(this,"_releaseTemporaryRetain",null),this._retain=function(n){return r._retainCount++,1===r._retainCount&&(r._retainDisposable=e(n)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),0===r._retainCount&&null!=r._retainDisposable&&(r._retainDisposable.dispose(),r._retainDisposable=null)}}}}var r=e.prototype;return r.temporaryRetain=function(e){var r,n=this;if(e.isServer())return{dispose:function(){}};var t=this._retain(e),i=null,a=function(){clearTimeout(i),i=null,n._releaseTemporaryRetain=null,t.dispose()};return i=setTimeout(a,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=a,{dispose:function(){var e;null===(e=n._releaseTemporaryRetain)||void 0===e||e.call(n)}}},r.permanentRetain=function(e){var r=this._retain(e);return this.releaseTemporaryRetain(),r},r.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},r.getRetainCount=function(){return this._retainCount},e}());e.exports=i},62:(e,r,n)=>{var t=n(56),i=n(658),a=i.ConnectionInterface,o=i.getValueAtPath;e.exports=function(e,r,n,i){var u,l,s=a.get(),c=s.EDGES,f=s.PAGE_INFO,d=s.HAS_NEXT_PAGE,v=s.HAS_PREV_PAGE,p=s.END_CURSOR,h=s.START_CURSOR,m=o(n,i);if(null==m)return{cursor:null,hasMore:!1};"object"!=typeof m&&t(!1);var g=m[c],y=m[f];if(null==g||null==y)return{cursor:null,hasMore:!1};Array.isArray(g)||t(!1),"object"!=typeof y&&t(!1);var b="forward"===e?null!==(u=y[p])&&void 0!==u?u:null:null!==(l=y[h])&&void 0!==l?l:null;return null!==b&&"string"!=typeof b&&t(!1),{cursor:b,hasMore:"forward"===e?null!=b&&!0===y[d]:null!=b&&!0===y[v]}}},828:(e,r,n)=>{var t=n(428).loadQuery;e.exports=function e(r,n,i){var a=null;null==n.root.getModuleIfRequired()&&(a=n.root.load());var o=n.getPreloadProps(i),u=o.queries,l=o.entryPoints,s=o.extraProps,c={},f={};null!=u&&Object.keys(u).forEach((function(e){var n=u[e];if(null!=n){var i=n.environmentProviderOptions,a=n.options,o=n.parameters,l=n.variables,s=r.getEnvironment(i);c[e]=t(s,o,l,{fetchPolicy:null==a?void 0:a.fetchPolicy,networkCacheConfig:null==a?void 0:a.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)}})),null!=l&&Object.keys(l).forEach((function(n){var t=l[n];if(null!=t){var i=t.entryPoint,a=t.entryPointParams;f[n]=e(r,i,a)}}));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,r=n.root.getModuleIfRequired();if(null==r)throw a=null!==(e=a)&&void 0!==e?e:n.root.load();return null!=r.default?r.default:r},get isDisposed(){return d},queries:c,rootModuleID:n.root.getModuleId()}}},428:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(56),a=n(658),o=a.__internal.fetchQueryDeduped,u=a.Observable,l=a.PreloadableQueryRegistry,s=a.ReplaySubject,c=a.createOperationDescriptor,f=a.getRequest,d=a.getRequestIdentifier,v=100001;e.exports={loadQuery:function(e,r,n,a,p){var h;v++;var m,g,y,b,R,_,k=null!==(h=null==a?void 0:a.fetchPolicy)&&void 0!==h?h:"store-or-network",P=(0,t.default)((0,t.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),E=!1,C=function(r,n){return E=!0,e.executeWithSource({operation:r,source:n})},F=new s,S=u.create((function(e){return F.subscribe(e)})),D=null,x=!1,w=function(r){x=!0;var t=new s,i="raw-network-request-"+d(r,n),a=o(e,i,(function(){return e.getNetwork().execute(r,n,P)})).subscribe({error:function(e){D=e,t.error(e)},next:function(e){t.next(e)},complete:function(){t.complete()}}).unsubscribe;return g=a,u.create((function(e){var r=t.subscribe(e);return function(){r.unsubscribe(),g()}}))},I=function(r,n){x=!0;var t=o(e,r.request.identifier,n).subscribe({error:function(e){F.error(e)},next:function(e){F.next(e)},complete:function(){F.complete()}});y=t.unsubscribe},q=function(r){var t=c(r,n,P);m=e.retain(t),"store-only"!==k&&("store-or-network"!==k||"available"!==e.check(t).status)&&I(t,(function(){var e=w(r.params);return C(t,e)}))};if("PreloadableConcreteRequest"===r.kind){null===(_=(b=r.params).id)&&i(!1);var N=l.get(_);if(null!=N)q(N);else{var A="store-only"===k?null:w(b),Q=l.onLoad(_,(function(r){R();var t=c(r,n,P);m=e.retain(t),null!=A&&I(t,(function(){return C(t,A)}))}));R=Q.dispose}}else{var O=f(r);_=null!=(b=O.params).cacheID?b.cacheID:b.id,q(O)}var M=!1,T=!1,L=!1,V=function(){T||(m&&m.dispose(),T=!0)},j=function(){L||(E?y&&y():g&&g(),R&&R(),L=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:p,dispose:function(){M||(V(),j(),M=!0)},releaseQuery:V,cancelNetworkRequest:j,fetchKey:v,id:_,get isDisposed(){return M||T},get networkError(){return D},name:b.name,networkCacheConfig:P,fetchPolicy:k,source:x?S:void 0,variables:n}}}},74:(e,r,n)=>{var t=n(275).default,i=t(n(175)),a=t(n(765)),o=n(269).getQueryResourceForEnvironment,u=n(56),l=n(658),s=l.__internal.fetchQuery,c=l.RelayFeatureFlags,f=l.createOperationDescriptor,d=l.getPendingOperationsForFragment,v=l.getSelector,p=l.getVariablesFromFragment,h=l.handlePotentialSnapshotErrors;function m(e,r,n,t,a){var u=p(r,n),l=(0,i.default)((0,i.default)({},u),{},{id:t.clientEdgeDestinationID}),c=f(t.request,l,null==a?void 0:a.networkCacheConfig);return o(e).prepare(c,s(e,c),null==a?void 0:a.fetchPolicy)}n(446),e.exports=function(e,r,n,t,i,o){var l,s,f=v(r,n),p=!0===(null==r||null===(l=r.metadata)||void 0===l?void 0:l.plural);p?null==n||Array.isArray(n)||u(!1):Array.isArray(n)&&u(!1),null==n||p&&Array.isArray(n)&&0===n.length||null!=f||u(!1);var g,y=function(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?0===r.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}(e,f),b=null;if(!0===(null===(s=r.metadata)||void 0===s?void 0:s.hasClientEdges)){var R=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.missingClientEdges){var u;t=null!==(u=t)&&void 0!==u?u:[];var l,s=(0,a.default)(o.missingClientEdges);try{for(s.s();!(l=s.n()).done;){var c=l.value;t.push(c)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){i.e(e)}finally{i.f()}return t}(y);if(null!=R&&R.length){b=[];var _,k=(0,a.default)(R);try{for(k.s();!(_=k.n()).done;){var P=_.value;b.push(m(e,r,n,P,i))}}catch(e){k.e(e)}finally{k.f()}}}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(y)){null==f&&u(!1);var E="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,C=d(e,r,E);if(C)throw C.promise;!function(e,r){if("singular"===r.kind)h(e,r.snapshot.errorResponseFields);else if("plural"===r.kind){var n,t=(0,a.default)(r.snapshots);try{for(t.s();!(n=t.n()).done;){var i=n.value;h(e,i.errorResponseFields)}}catch(e){t.e(e)}finally{t.f()}}}(e,y)}return g="bailout"===y.kind?p?[]:null:"singular"===y.kind?y.snapshot.data:y.snapshots.map((function(e){return e.data})),c.LOG_MISSING_RECORDS_IN_PROD&&null!=n&&(void 0===g||Array.isArray(g)&&g.length>0&&g.every((function(e){return void 0===e}))),{data:g,clientEdgeQueries:b}}},529:(e,r,n)=>{var t=(0,n(275).default)(n(765)),i=n(828),a=n(743),o=n(156),u=o.useCallback,l=o.useEffect,s=o.useRef,c=o.useState,f={kind:"NullEntryPointReference"};e.exports=function(e,r,n){var o,d,v,p,h=null!==(o=null==n||null===(d=n.TEST_ONLY__initialEntryPointData)||void 0===d?void 0:d.entryPointReference)&&void 0!==o?o:f,m=null!==(v=null==n||null===(p=n.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointParams)&&void 0!==v?v:null,g=a(),y=s(new Set([h])),b=c(h),R=b[0],_=b[1],k=c(m),P=k[0],E=k[1],C=u((function(){if(g.current){var e={kind:"NullEntryPointReference"};y.current.add(e),_(e)}}),[_,g]),F=u((function(n){if(g.current){var t=i(e,r,n);y.current.add(t),_(t),E(n)}}),[e,r,_,g]),S=s(!1);return l((function(){return function(){S.current=!0}}),[]),l((function(){if(!0===S.current)return S.current=!1,void("NullEntryPointReference"!==R.kind&&null!=P&&F(P));var e=y.current;if(g.current){var r,n=(0,t.default)(e);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(i===R)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){n.e(e)}finally{n.f()}}}),[R,P,F,g]),l((function(){return function(){var e,r=(0,t.default)(y.current);try{for(r.s();!(e=r.n()).done;){var n=e.value;"NullEntryPointReference"!==n.kind&&n.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,F,C]}},863:(e,r,n)=>{var t=n(813),i=n(156),a=i.useCallback,o=i.useEffect;e.exports=function(){var e=t(null),r=t(!1),n=a((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),i=a((function(n){e.current=n,r.current=!0}),[]),u=a((function(){e.current=null,r.current=!1}),[]);return o((function(){return n}),[n]),{isFetchingRef:r,startFetch:i,disposeFetch:n,completeFetch:u}}},242:(e,r,n)=>{var t=n(337),i=n(224),a=(n(156).useDebugValue,n(658).getFragment);e.exports=function(e,r){var n=a(e);return i(n,"first argument of useFragment()"),t(n,r,"useFragment()")}},337:(e,r,n)=>{var t=n(275).default,i=t(n(179)),a=t(n(931)),o=n(658);e.exports=function(e,r,n,t){return o.RelayFeatureFlags.ENABLE_ACTIVITY_COMPATIBILITY?(0,a.default)(e,r,n,t):(0,i.default)(e,r,n,t)}},179:(e,r,n)=>{var t=n(275).default,i=t(n(175)),a=t(n(765)),o=t(n(642)),u=n(269).getQueryResourceForEnvironment,l=n(750),s=n(56),c=n(156),f=(c.useDebugValue,c.useEffect),d=c.useMemo,v=c.useRef,p=c.useState,h=n(658),m=h.__internal,g=m.fetchQuery,y=m.getPromiseForActiveRequest,b=h.RelayFeatureFlags,R=h.areEqualSelectors,_=h.createOperationDescriptor,k=h.getPendingOperationsForFragment,P=h.getSelector,E=h.getVariablesFromFragment,C=h.handlePotentialSnapshotErrors,F=h.recycleNodesInto;function S(e,r){if("bailout"===r.kind)return null;var n=e.getStore().getEpoch();if(n===r.epoch)return null;if("singular"===r.kind){var t=e.lookup(r.snapshot.selector),i=F(r.snapshot.data,t.data),a={data:i,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,errorResponseFields:t.errorResponseFields};return[i!==r.snapshot.data,{kind:"singular",snapshot:a,epoch:n}]}for(var o=!1,u=[],l=0;l<r.snapshots.length;l++){var c=r.snapshots[l],f=e.lookup(c.selector),d=F(c.data,f.data),v={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),u.push(v)}return u.length!==r.snapshots.length&&s(!1),[o,{kind:"plural",snapshots:u,epoch:n}]}function D(e,r,n,t,a){var o=E(r,n),l=(0,i.default)((0,i.default)({},o),{},{id:t.clientEdgeDestinationID}),s=_(t.request,l,null==a?void 0:a.networkCacheConfig);return[u(e).prepare(s,g(e,s),null==a?void 0:a.fetchPolicy),y(e,s.request)]}function x(e,r){return null==r?{kind:"bailout"}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch()}}n(446),e.exports=function(e,r,n,t){var i,c,h=d((function(){return P(e,r)}),[e,r]),m=!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural);m?null==r||Array.isArray(r)||s(!1):Array.isArray(r)&&s(!1),null==r||m&&Array.isArray(r)&&0===r.length||null!=h||s(!1);var g=l(),y=p((function(){return x(g,h)})),_=y[0],E=y[1],F=_,w=p(F),I=w[0],q=w[1],N=I,A=p(h),Q=A[0],O=A[1],M=p(g),T=M[0],L=M[1];if(!R(h,Q)||g!==T){O(h),L(g);var V=x(g,h);E(V),q(V),F=V,N=V}var j=v(!1);if(f((function(){j.current=h}),[h]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var U=d((function(){var n,i=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.missingClientEdges){var u;t=null!==(u=t)&&void 0!==u?u:[];var l,s=(0,a.default)(o.missingClientEdges);try{for(s.s();!(l=s.n()).done;){var c=l.value;t.push(c)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){i.e(e)}finally{i.f()}return t}(F),o=[];if(null!=i&&i.length){n=[];var u,l=(0,a.default)(i);try{for(l.s();!(u=l.n()).done;){var s=u.value,c=D(g,e,r,s,t),f=c[0],d=c[1];n.push(f),null!=d&&o.push(d)}}catch(e){l.e(e)}finally{l.f()}}return[n,o]}),[F,g,e,r,t]),B=U[0],W=U[1];if(W.length)throw Promise.all(W);f((function(){var e=u(g);if(null!=B&&B.length){var r,n=[],t=(0,a.default)(B);try{for(t.s();!(r=t.n()).done;){var i=r.value;n.push(e.retain(i))}}catch(e){t.e(e)}finally{t.f()}return function(){for(var e=0,r=n;e<r.length;e++)r[e].dispose()}}}),[g,B])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(F)){var Y=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var n,t=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.missingLiveResolverFields){var u;t=null!==(u=t)&&void 0!==u?u:[];var l,s=(0,a.default)(o.missingLiveResolverFields);try{for(s.s();!(l=s.n()).done;){var c=l.value;t.push(c)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){i.e(e)}finally{i.f()}return t}(F);if(null!=Y&&Y.length>0)throw Promise.all(Y.map((function(e){return g.getStore().getLiveResolverPromise(e)})));if(b.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||g!==T||!j.current||!R(j.current,h)){null==h&&s(!1);var G="PluralReaderSelector"===h.kind?h.selectors[0].owner:h.owner,H=k(g,e,G);if(H)throw H.promise}}!function(e,r){if("singular"===r.kind)C(e,r.snapshot.errorResponseFields);else if("plural"===r.kind){var n,t=(0,a.default)(r.snapshots);try{for(t.s();!(n=t.n()).done;){var i=n.value;C(e,i.errorResponseFields)}}catch(e){t.e(e)}finally{t.f()}}}(g,F);var K,z=v(!1);if(f((function(){var e=N,r=S(g,N);if(null!==r){var n=r[0],t=r[1];n&&E(t),e=t}return function(e,r,n,t){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var i=e.subscribe(r.snapshot,(function(r){n((function(n){if("singular"!==n.kind||n.snapshot.selector!==r.selector){var i=S(e,n);if(null!=i){var a=i[0],o=i[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:a}),t.current=a,a?o:n}return n}return t.current=!0,{kind:"singular",snapshot:r,epoch:e.getStore().getEpoch()}}))}));return function(){i.dispose()}}var u=r.snapshots.map((function(r,i){return e.subscribe(r,(function(r){n((function(n){var a;if("plural"!==n.kind||(null===(a=n.snapshots[i])||void 0===a?void 0:a.selector)!==r.selector){var u=S(e,n);if(null!=u){var l=u[0],s=u[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:l}),t.current=t.current||l,l?s:n}return n}var c=(0,o.default)(n.snapshots);return c[i]=r,t.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}}))}))}));return function(){var e,r=(0,a.default)(u);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}(g,e,E,z)}),[g,N]),z.current){var X=S(g,F);if(null!=X){var J=X[0],Z=X[1];J&&(E(Z),F=Z)}z.current=!1}if(m){var $=null==r;K=d((function(){return"bailout"===F.kind?$?null:[]:("plural"!==F.kind&&s(!1),F.snapshots.map((function(e){return e.data})))}),[F,$])}else"bailout"===F.kind?K=null:("singular"!==F.kind&&s(!1),K=F.snapshot.data);return b.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===K||Array.isArray(K)&&K.length>0&&K.every((function(e){return void 0===e}))),K}},931:(e,r,n)=>{var t=n(275).default,i=t(n(175)),a=t(n(765)),o=t(n(642)),u=n(269).getQueryResourceForEnvironment,l=n(750),s=n(56),c=n(156),f=(c.useDebugValue,c.useEffect),d=c.useMemo,v=c.useRef,p=c.useState,h=n(658),m=h.__internal,g=m.fetchQuery,y=m.getPromiseForActiveRequest,b=h.RelayFeatureFlags,R=h.areEqualSelectors,_=h.createOperationDescriptor,k=h.getPendingOperationsForFragment,P=h.getSelector,E=h.getVariablesFromFragment,C=h.handlePotentialSnapshotErrors,F=h.recycleNodesInto;function S(e,r){if("bailout"===r.kind)return null;var n=e.getStore().getEpoch();if(n===r.epoch)return null;if("singular"===r.kind){var t=e.lookup(r.snapshot.selector),i=F(r.snapshot.data,t.data),a={data:i,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,errorResponseFields:t.errorResponseFields};return[i!==r.snapshot.data,{kind:"singular",snapshot:a,epoch:n,selector:r.selector,environment:r.environment}]}for(var o=!1,u=[],l=0;l<r.snapshots.length;l++){var c=r.snapshots[l],f=e.lookup(c.selector),d=F(c.data,f.data),v={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),u.push(v)}return u.length!==r.snapshots.length&&s(!1),[o,{kind:"plural",snapshots:u,epoch:n,selector:r.selector,environment:r.environment}]}function D(e,r,n,t,a){var o=E(r,n),l=(0,i.default)((0,i.default)({},o),{},{id:t.clientEdgeDestinationID}),s=_(t.request,l,null==a?void 0:a.networkCacheConfig);return[u(e).prepare(s,g(e,s),null==a?void 0:a.fetchPolicy),y(e,s.request)]}function x(e,r,n){if("bailout"===r.kind)return function(){};if("singular"===r.kind){var t=e.subscribe(r.snapshot,(function(t){n((function(n){var i=null;if("singular"!==n.kind||n.snapshot.selector!==t.selector||n.environment!==e){var a=S(n.environment,n);if(null!=a){var o=a[0],u=a[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:o}),i=o?u:n}else i=n}else i={kind:"singular",snapshot:t,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment};return i}))}));return function(){t.dispose()}}var i=r.snapshots.map((function(t,i){return e.subscribe(t,(function(t){n((function(n){var a,u=null;if("plural"!==n.kind||(null===(a=n.snapshots[i])||void 0===a?void 0:a.selector)!==t.selector||n.environment!==e){var l=S(n.environment,n);if(null!=l){var s=l[0],c=l[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:s}),u=s?c:n}else u=n}else{var f=(0,o.default)(n.snapshots);f[i]=t,u={kind:"plural",snapshots:f,epoch:e.getStore().getEpoch(),selector:r.selector,environment:r.environment}}return u}))}))}));return function(){var e,r=(0,a.default)(i);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}function w(e,r){return null==r?{kind:"bailout",environment:e}:"PluralReaderSelector"===r.kind?{kind:"plural",snapshots:r.selectors.map((function(r){return e.lookup(r)})),epoch:e.getStore().getEpoch(),selector:r,environment:e}:{kind:"singular",snapshot:e.lookup(r),epoch:e.getStore().getEpoch(),selector:r,environment:e}}n(446),e.exports=function(e,r,n,t){var i,o,c=d((function(){return P(e,r)}),[e,r]),h=!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural);h?null==r||Array.isArray(r)||s(!1):Array.isArray(r)&&s(!1),null==r||h&&Array.isArray(r)&&0===r.length||null!=c||s(!1);var m=l(),g=p((function(){return w(m,c)})),y=g[0],_=g[1],E=y,F=E.environment;if(!R(c,E.selector)||m!==E.environment){var I=w(m,c);_(I),E=I}var q=v(!1);if(f((function(){q.current=c}),[c]),!0===(null===(o=e.metadata)||void 0===o?void 0:o.hasClientEdges)){var N=d((function(){var n,i=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingClientEdges)&&void 0!==r?r:null;var n,t=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.missingClientEdges){var u;t=null!==(u=t)&&void 0!==u?u:[];var l,s=(0,a.default)(o.missingClientEdges);try{for(s.s();!(l=s.n()).done;){var c=l.value;t.push(c)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){i.e(e)}finally{i.f()}return t}(E),o=[];if(null!=i&&i.length){n=[];var u,l=(0,a.default)(i);try{for(l.s();!(u=l.n()).done;){var s=u.value,c=D(m,e,r,s,t),f=c[0],d=c[1];n.push(f),null!=d&&o.push(d)}}catch(e){l.e(e)}finally{l.f()}}return[n,o]}),[E,m,e,r,t]),A=N[0],Q=N[1];if(Q.length)throw Promise.all(Q);f((function(){var e=u(m);if(null!=A&&A.length){var r,n=[],t=(0,a.default)(A);try{for(t.s();!(r=t.n()).done;){var i=r.value;n.push(e.retain(i))}}catch(e){t.e(e)}finally{t.f()}return function(){for(var e=0,r=n;e<r.length;e++)r[e].dispose()}}}),[m,A])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(E)){var O=function(e){if("bailout"===e.kind)return null;var r;if("singular"===e.kind)return null!==(r=e.snapshot.missingLiveResolverFields)&&void 0!==r?r:null;var n,t=null,i=(0,a.default)(e.snapshots);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.missingLiveResolverFields){var u;t=null!==(u=t)&&void 0!==u?u:[];var l,s=(0,a.default)(o.missingLiveResolverFields);try{for(s.s();!(l=s.n()).done;){var c=l.value;t.push(c)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){i.e(e)}finally{i.f()}return t}(E);if(null!=O&&O.length>0)throw Promise.all(O.map((function(e){return m.getStore().getLiveResolverPromise(e)})));if(b.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||m!==F||!q.current||!R(q.current,c)){null==c&&s(!1);var M="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,T=k(m,e,M);if(T)throw T.promise}}!function(e,r){if("singular"===r.kind)C(e,r.snapshot.errorResponseFields);else if("plural"===r.kind){var n,t=(0,a.default)(r.snapshots);try{for(t.s();!(n=t.n()).done;){var i=n.value;C(e,i.errorResponseFields)}}catch(e){t.e(e)}finally{t.f()}}}(m,E);var L,V=v(null);if(f((function(){var e=V.current;if(null!=e){if(E.environment===e.environment&&E.selector===e.selector)return;e.dispose()}if("bailout"!==E.kind){var r=E,n=S(E.environment,E);if(null!==n){var t=n[0],i=n[1];if(t)return void _(i);r=i}var a=x(E.environment,r,_);V.current={dispose:a,selector:E.selector,environment:E.environment}}}),[E]),f((function(){if(null==V.current&&"bailout"!==E.kind){var e=x(E.environment,E,_);V.current={dispose:e,selector:E.selector,environment:E.environment}}return function(){var e;null===(e=V.current)||void 0===e||e.dispose(),V.current=null}}),[]),h){var j=null==r;L=d((function(){return"bailout"===E.kind?j?null:[]:("plural"!==E.kind&&s(!1),E.snapshots.map((function(e){return e.data})))}),[E,j])}else"bailout"===E.kind?L=null:("singular"!==E.kind&&s(!1),L=E.snapshot.data);return b.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===L||Array.isArray(L)&&L.length>0&&L.every((function(e){return void 0===e}))),L}},743:(e,r,n)=>{var t=n(156),i=t.useEffect,a=t.useRef;e.exports=function(){var e=a(!0);return i((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},233:(e,r,n)=>{var t=n(750),i=n(56),a=n(156),o=n(658),u=o.__internal.getObservableForActiveRequest,l=o.getSelector,s=a.useEffect,c=a.useState,f=a.useMemo;e.exports=function(e,r){var n=t(),a=f((function(){var t=l(e,r);return null==t?null:("SingularReaderSelector"!==t.kind&&i(!1),u(n,t.owner))}),[n,e,r]),o=c(null!=a),d=o[0],v=o[1];return s((function(){var e;if(v(null!=a),null!=a){var r=function(){v(!1)};e=a.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[a]),d}},899:(e,r,n)=>{var t=n(734),i=n(61),a=n(750),o=n(658).__internal.fetchQuery;e.exports=function(e,r,n){var u=a(),l=i(e,r,n&&n.networkCacheConfig?n.networkCacheConfig:{force:!0});return t({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==n?void 0:n.fetchKey,fetchObservable:o(u,l),fetchPolicy:null==n?void 0:n.fetchPolicy,query:l,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy})}},734:(e,r,n)=>{var t=n(187),i=n(269),a=i.getQueryCacheIdentifier,o=i.getQueryResourceForEnvironment,u=n(863),l=n(337),s=n(750),c=n(156),f=c.useContext,d=c.useEffect,v=c.useState,p=c.useRef;e.exports=function(e){var r=e.query,n=e.componentDisplayName,i=e.fetchObservable,c=e.fetchPolicy,h=e.fetchKey,m=e.renderPolicy,g=s(),y=f(t),b=o(g),R=v(0),_=R[0],k=R[1],P=u(),E=P.startFetch,C=P.completeFetch,F="".concat(_,"-").concat(null!=h?h:""),S=a(g,r,c,m,F),D=y.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(S,r,i,c,m,{start:E,complete:C,error:C},y)})),x=p(!1);d((function(){return function(){x.current=!0}}),[]),d((function(){if(!0===x.current)return x.current=!1,void k((function(e){return e+1}));var e=b.retain(D,y);return function(){e.dispose()}}),[g,S]),d((function(){b.releaseTemporaryRetain(D)}));var w=D.fragmentNode,I=D.fragmentRef;return l(w,I,n)}},601:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(62),a=n(863),o=n(743),u=n(233),l=n(607),s=n(750),c=n(56),f=n(156),d=f.useCallback,v=f.useEffect,p=f.useState,h=n(658),m=h.__internal.fetchQuery,g=h.RelayFeatureFlags,y=h.createOperationDescriptor,b=h.getPaginationVariables,R=h.getRefetchMetadata,_=h.getSelector;n(446),e.exports=function(e){return g.ENABLE_ACTIVITY_COMPATIBILITY?l(e):function(e){var r=e.direction,n=e.fragmentNode,l=e.fragmentRef,f=e.fragmentIdentifier,h=e.fragmentData,g=e.connectionPathInFragmentData,k=e.paginationRequest,P=e.paginationMetadata,E=e.componentDisplayName,C=e.observer,F=e.onReset,S=s(),D=a(),x=D.isFetchingRef,w=D.startFetch,I=D.disposeFetch,q=D.completeFetch,N=R(n,E).identifierInfo,A=null!=(null==N?void 0:N.identifierField)&&null!=h&&"object"==typeof h?h[N.identifierField]:null,Q=o(),O=p(S),M=O[0],T=O[1],L=p(f),V=L[0],j=L[1],U=u(n,l);S===M&&f===V||(I(),F(),T(S),j(f));var B=i(r,n,h,g),W=B.cursor,Y=B.hasMore;return v((function(){return function(){I()}}),[I]),[d((function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==Q.current)return{dispose:function(){}};var o=_(n,l);if(!0===x.current||null==h||U)return a&&a(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&c(!1);var u=o.owner.variables,s=o.variables,f=null==i?void 0:i.UNSTABLE_extraVariables,d=(0,t.default)((0,t.default)({},u),s),v=b(r,e,W,d,(0,t.default)({},f),P);null!=N&&(v[N.identifierQueryVariableName]=A);var p=y(k,v,{force:!0});return m(S,p).subscribe((0,t.default)((0,t.default)({},C),{},{start:function(e){w(e),C.start&&C.start(e)},complete:function(){q(),C.complete&&C.complete(),a&&a(null)},error:function(e){q(),C.error&&C.error(e),a&&a(e)}})),{dispose:I}}),[S,A,r,W,w,I,q,x,U,h,n.name,l,E]),Y,I]}(e)}},607:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(62),a=n(743),o=n(233),u=n(750),l=n(56),s=n(156),c=s.useCallback,f=s.useRef,d=s.useState,v=n(658),p=v.__internal.fetchQuery,h=v.createOperationDescriptor,m=v.getPaginationVariables,g=v.getRefetchMetadata,y=v.getSelector;n(446),e.exports=function(e){var r=e.direction,n=e.fragmentNode,s=e.fragmentRef,v=e.fragmentIdentifier,b=e.fragmentData,R=e.connectionPathInFragmentData,_=e.paginationRequest,k=e.paginationMetadata,P=e.componentDisplayName,E=e.observer,C=e.onReset,F=u(),S=g(n,P).identifierInfo,D=null!=(null==S?void 0:S.identifierField)&&null!=b&&"object"==typeof b?b[S.identifierField]:null,x=f({kind:"none"}),w=d(F),I=w[0],q=w[1],N=d(v),A=N[0],Q=N[1],O=o(n,s),M=c((function(){"fetching"===x.current.kind&&x.current.subscription.unsubscribe(),x.current={kind:"none"}}),[]);(F!==I||v!==A)&&(M(),C(),q(F),Q(v));var T=i(r,n,b,R),L=T.cursor,V=T.hasMore,j=a();return[c((function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==j.current)return{dispose:function(){}};var o=y(n,s);if("fetching"===x.current.kind||null==b||O)return a&&a(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&l(!1);var u=o.owner.variables,c=o.variables,f=null==i?void 0:i.UNSTABLE_extraVariables,d=(0,t.default)((0,t.default)({},u),c),v=m(r,e,L,d,(0,t.default)({},f),k);null!=S&&(v[S.identifierQueryVariableName]=D);var g=h(_,v,{force:!0});return p(F,g).subscribe((0,t.default)((0,t.default)({},E),{},{start:function(e){x.current={kind:"fetching",subscription:e},E.start&&E.start(e)},complete:function(){x.current={kind:"none"},E.complete&&E.complete(),a&&a(null)},error:function(e){x.current={kind:"none"},E.complete&&E.complete(),a&&a(e)}})),{dispose:function(){}}}),[F,D,r,L,O,b,n.name,s,P]),V,M]}},61:(e,r,n)=>{var t=n(925),i=n(156),a=n(658),o=a.createOperationDescriptor,u=a.getRequest,l=i.useMemo;e.exports=function(e,r,n){var i=t(r),a=t(n||{});return l((function(){return o(u(e),i,a)}),[e,i,a])}},925:(e,r,n)=>{var t=n(125),i=n(156).useState;e.exports=function(e){var r=i(e),n=r[0],a=r[1];return t(e,n)?n:(a(e),e)}},115:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(743),a=n(750),o=n(156),u=n(658).commitMutation,l=o.useState,s=o.useEffect,c=o.useRef,f=o.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=a(),o=i(),d=c(n),v=c(e),p=c(new Set),h=l(!1),m=h[0],g=h[1],y=f((function(r){d.current===n&&v.current===e&&(p.current.delete(r),o.current&&g(p.current.size>0))}),[n,o,e]);return s((function(){d.current===n&&v.current===e||(p.current=new Set,o.current&&g(!1),d.current=n,v.current=e)}),[n,o,e]),[f((function(i){o.current&&g(!0);var a=r(n,(0,t.default)((0,t.default)({},i),{},{mutation:e,onCompleted:function(e,r){var n;y(a),null===(n=i.onCompleted)||void 0===n||n.call(i,e,r)},onError:function(e){var r;y(a),null===(r=i.onError)||void 0===r||r.call(i,e)},onUnsubscribe:function(){var e;y(a),null===(e=i.onUnsubscribe)||void 0===e||e.call(i)},onNext:function(){var e;null===(e=i.onNext)||void 0===e||e.call(i)}}));return p.current.add(a),a}),[y,r,n,o,e]),m]}},951:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(601),a=n(915),o=n(750),u=n(224),l=n(156),s=l.useCallback,c=(l.useDebugValue,l.useState),f=n(658),d=f.getFragment,v=f.getFragmentIdentifier,p=f.getPaginationMetadata;function h(e){var r=o(),n=c(!1),a=n[0],u=n[1],l=function(e){var n,t=null===(n=r.getScheduler())||void 0===n?void 0:n.schedule;t?t((function(){u(e)})):u(e)},s={start:function(){return l(!0)},complete:function(){return l(!1)},error:function(){return l(!1)}},f=i((0,t.default)((0,t.default)({},e),{},{observer:s,onReset:function(){return l(!1)}}));return[f[0],f[1],a,f[2]]}e.exports=function(e,r){var n=d(e);u(n,"first argument of usePaginationFragment()");var i="usePaginationFragment()",o=p(n,i),l=o.connectionPathInFragmentData,c=o.paginationRequest,f=o.paginationMetadata,m=a(n,r,i),g=m.fragmentData,y=m.fragmentRef,b=m.refetch,R=v(n,y),_=h({componentDisplayName:i,connectionPathInFragmentData:l,direction:"backward",fragmentData:g,fragmentIdentifier:R,fragmentNode:n,fragmentRef:y,paginationMetadata:f,paginationRequest:c}),k=_[0],P=_[1],E=_[2],C=_[3],F=h({componentDisplayName:i,connectionPathInFragmentData:l,direction:"forward",fragmentData:g,fragmentIdentifier:R,fragmentNode:n,fragmentRef:y,paginationMetadata:f,paginationRequest:c}),S=F[0],D=F[1],x=F[2],w=F[3];return{data:g,loadNext:S,loadPrevious:k,hasNext:D,hasPrevious:P,isLoadingNext:x,isLoadingPrevious:E,refetch:s((function(e,r){return w(),C(),b(e,(0,t.default)((0,t.default)({},r),{},{__environment:void 0}))}),[w,C,b])}}},617:(e,r,n)=>{var t=n(734),i=n(61),a=n(750),o=n(56),u=(n(156).useDebugValue,n(658).__internal),l=u.fetchQueryDeduped,s=u.fetchQuery;n(446),e.exports=function(e,r,n){var u,c=a(),f=r.fetchKey,d=r.fetchPolicy,v=r.source,p=r.variables,h=r.networkCacheConfig,m=i(e,p,h);if("PreloadedQuery_DEPRECATED"===r.kind)m.request.node.params.name!==r.name&&o(!1),u={componentDisplayName:"usePreloadedQuery()",fetchKey:f,fetchObservable:l(c,m.request.identifier,(function(){return c===r.environment&&null!=v?c.executeWithSource({operation:m,source:v}):c.execute({operation:m})})),fetchPolicy:d,query:m,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy};else{var g=s(c,m);u={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=v&&c===r.environment?v.ifEmpty(g):(r.environment,g),fetchKey:f,fetchPolicy:d,query:m,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}}return t(u)}},876:(e,r,n)=>{var t=(0,n(275).default)(n(765)),i=n(428).loadQuery,a=n(743),o=n(657),u=n(750),l=n(156),s=l.useCallback,c=l.useEffect,f=l.useRef,d=l.useState,v=n(658),p=v.RelayFeatureFlags,h=v.getRequest,m={kind:"NullQueryReference"};function g(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==h(e).params.metadata.live}e.exports=function(e,r){return p.ENABLE_ACTIVITY_COMPATIBILITY?o(e,r):function(e,r){var n=null!=r?r:m,o=u(),l=a(),v=f(new Set([n])),p=d((function(){return n})),h=p[0],y=p[1],b=d((function(){return n})),R=b[0],_=b[1];n!==R&&(v.current.add(n),_(n),y(n));var k=s((function(){l.current&&(v.current.add(m),y(m))}),[l]),P=s((function(r,n){var t=null!=n&&n.hasOwnProperty("__environment")?{fetchPolicy:n.fetchPolicy,networkCacheConfig:n.networkCacheConfig,__nameForWarning:n.__nameForWarning}:n;if(l.current){var a,u=i(null!==(a=null==n?void 0:n.__environment)&&void 0!==a?a:o,e,r,t);v.current.add(u),y(u)}}),[o,e,y,l]),E=f(!1);return c((function(){return function(){E.current=!0}}),[]),c((function(){if(!0===E.current)return E.current=!1,void("NullQueryReference"!==h.kind&&P(h.variables,{fetchPolicy:h.fetchPolicy,networkCacheConfig:h.networkCacheConfig}));var r=v.current;if(l.current){var n,i=(0,t.default)(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a===h)break;r.delete(a),"NullQueryReference"!==a.kind&&(g(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}}),[h,l,P,e]),c((function(){return function(){var r,n=(0,t.default)(v.current);try{for(n.s();!(r=n.n()).done;){var i=r.value;"NullQueryReference"!==i.kind&&(g(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){n.e(e)}finally{n.f()}}}),[e]),["NullQueryReference"===h.kind?null:h,P,k]}(e,r)}},657:(e,r,n)=>{var t=(0,n(275).default)(n(765)),i=n(428).loadQuery,a=n(743),o=n(750),u=n(156),l=u.useCallback,s=u.useEffect,c=u.useInsertionEffect,f=u.useRef,d=u.useState,v=n(658).getRequest,p={kind:"NullQueryReference"};function h(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==v(e).params.metadata.live}e.exports=function(e,r){var n=null!=r?r:p,u=o(),v=a(),m=f(null);null==m.current&&(m.current=new Set([n]));var g,y=d((function(){return n})),b=y[0],R=y[1],_=d((function(){return n})),k=_[0],P=_[1];n!==k&&(null===(g=m.current)||void 0===g||g.add(n),P(n),R(n));var E=l((function(){var e;v.current&&(null===(e=m.current)||void 0===e||e.add(p),R(p))}),[v]),C=l((function(r,n){var t,a;if(v.current){var o=null!=n&&n.hasOwnProperty("__environment")?{fetchPolicy:n.fetchPolicy,networkCacheConfig:n.networkCacheConfig,__nameForWarning:n.__nameForWarning}:n,l=i(null!==(t=null==n?void 0:n.__environment)&&void 0!==t?t:u,e,r,o);null===(a=m.current)||void 0===a||a.add(l),R(l)}}),[u,e,R,v]),F=l((function(e,r){var n,i,a=null!==(n=m.current)&&void 0!==n?n:new Set,o=(0,t.default)(a);try{for(o.s();!(i=o.n()).done;){var u=i.value;u!==r&&"NullQueryReference"!==u.kind&&(h(e)?u.dispose&&u.dispose():u.releaseQuery&&u.releaseQuery())}}catch(e){o.e(e)}finally{o.f()}}),[]),S=f(null);return s((function(){return F(e,b),null!=S.current&&(clearTimeout(S.current),S.current=null),function(){S.current=setTimeout((function(){F(e,null)}),3e5)}}),[e,b]),c((function(){return function(){S.current&&clearTimeout(S.current),S.current=null,F(e,null)}}),[e]),["NullQueryReference"===b.kind?null:b,C,E]}},874:(e,r,n)=>{var t=n(915),i=n(224),a=(n(156).useDebugValue,n(658).getFragment);e.exports=function(e,r){var n=a(e);i(n,"first argument of useRefetchableFragment()");var o=t(n,r,"useRefetchableFragment()");return[o.fragmentData,o.refetch]}},915:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(187),a=n(269).getQueryResourceForEnvironment,o=n(74),u=n(337),l=n(743),s=n(876),c=n(750),f=n(56),d=n(156),v=d.useCallback,p=d.useContext,h=d.useReducer,m=n(658),g=m.__internal.fetchQuery,y=m.createOperationDescriptor,b=m.getFragmentIdentifier,R=m.getRefetchMetadata,_=m.getSelector,k=m.getValueAtPath;function P(e,r){switch(r.type){case"refetch":var n;return(0,t.default)((0,t.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(n=r.refetchEnvironment)&&void 0!==n?n:e.mirroredEnvironment,onComplete:r.onComplete,refetchEnvironment:r.refetchEnvironment,refetchQuery:r.refetchQuery,renderPolicy:r.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:r.environment,mirroredFragmentIdentifier:r.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw r.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n(446),e.exports=function(e,r,n){var d=c(),m=R(e,n),E=m.refetchableRequest,C=m.fragmentRefPathInResponse,F=m.identifierInfo,S=b(e,r),D=h(P,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:S,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),x=D[0],w=D[1],I=x.fetchPolicy,q=x.mirroredEnvironment,N=x.mirroredFragmentIdentifier,A=x.onComplete,Q=x.refetchEnvironment,O=x.refetchQuery,M=x.renderPolicy,T=null!=Q?Q:d,L=a(T),V=p(i),j=T!==q||S!==N,U=s(E),B=U[0],W=U[1],Y=U[2],G=r;if(j)w({type:"reset",environment:T,fragmentIdentifier:S}),Y();else if(null!=O&&null!=B){var H=function(e){A&&A(null!=e?e:null)},K=null!=B.source?B.source:g(T,O),z=V.wrapPrepareQueryResource((function(){return L.prepare(O,K,I,M,{error:H,complete:function(){H()}},B.fetchKey,V)})),X=o(T,z.fragmentNode,z.fragmentRef,n).data;null==X&&f(!1),G=k(X,C)}var J=u(e,G,n),Z=function(e,r,n,i,a,o,u,s,c,f,d){var p=l(),h=null!=(null==s?void 0:s.identifierField)&&null!=i&&"object"==typeof i?i[s.identifierField]:null;return v((function(e,i){if(!0!==p.current)return{dispose:function(){}};var a,u,l=null==i?void 0:i.__environment,v=null==i?void 0:i.fetchPolicy,m=null==i?void 0:i.UNSTABLE_renderPolicy,g=null==i?void 0:i.onComplete,b=_(o,f);if(null==b)a={},u={};else if("PluralReaderSelector"===b.kind){var R,k,P,E;a=null!==(R=null===(k=b.selectors[0])||void 0===k?void 0:k.owner.variables)&&void 0!==R?R:{},u=null!==(P=null===(E=b.selectors[0])||void 0===E?void 0:E.variables)&&void 0!==P?P:{}}else a=b.owner.variables,u=b.variables;var C=(0,t.default)((0,t.default)((0,t.default)({},a),u),e);null==s||e.hasOwnProperty(s.identifierQueryVariableName)||(C[s.identifierQueryVariableName]=h);var F=y(d,C,{force:!0});return c(F.request.variables,{fetchPolicy:v,__environment:l,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:v,onComplete:g,refetchEnvironment:l,refetchQuery:F,renderPolicy:m}),{dispose:n}}),[a,r,n,h,c])}(0,w,Y,J,S,e,0,F,W,r,E);return{fragmentData:J,fragmentRef:G,refetch:Z}}},750:(e,r,n)=>{var t=n(888),i=n(56),a=n(156).useContext;e.exports=function(){var e=a(t);return null==e&&i(!1),e.environment}},224:(e,r,n)=>{n(813),n(446),e.exports=function(e,r){}},50:(e,r,n)=>{var t=n(750),i=n(156),a=i.useEffect,o=i.useRef;e.exports=function(e,r){var n=t(),i=o(null),u=Array.from(e).sort().join("");return a((function(){var t=n.getStore(),a=t.lookupInvalidationState(e),o=t.subscribeToInvalidationState(a,r);return i.current=o,function(){return o.dispose()}}),[u,r,n]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},746:(e,r,n)=>{var t=n(750),i=n(156).useEffect,a=n(658).requestSubscription;e.exports=function(e,r){var n=null!=r?r:a,o=t();i((function(){return n(o,e).dispose}),[o,e,n])}},813:(e,r,n)=>{var t=n(156).useMemo;e.exports=function(e){return t((function(){return{current:e}}),[])}},765:r=>{r.exports=e},311:e=>{e.exports=r},275:e=>{e.exports=n},175:e=>{e.exports=t},642:e=>{e.exports=i},125:e=>{e.exports=a},446:e=>{e.exports=o},56:e=>{e.exports=u},156:e=>{e.exports=l},658:e=>{e.exports=s}},f={};return function e(r){var n=f[r];if(void 0!==n)return n.exports;var t=f[r]={exports:{}};return c[r](t,t.exports,e),t.exports}(651)})()));