react-relay 17.0.0 → 18.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/ReactRelayContainerUtils.js.flow +2 -2
- package/ReactRelayContext.js +1 -1
- package/ReactRelayContext.js.flow +1 -1
- package/ReactRelayFragmentContainer.js.flow +2 -2
- package/ReactRelayPaginationContainer.js.flow +2 -2
- package/ReactRelayQueryRenderer.js.flow +1 -1
- package/ReactRelayQueryRendererContext.js.flow +1 -1
- package/ReactRelayRefetchContainer.js.flow +2 -2
- package/ReactRelayTypes.js.flow +45 -18
- package/__flowtests__/ReactRelayFragmentContainer-flowtest.js.flow +2 -2
- package/buildReactRelayContainer.js.flow +6 -5
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/legacy.js +1 -1
- package/lib/relay-hooks/getConnectionState.js +47 -0
- package/lib/relay-hooks/legacy/FragmentResource.js +2 -6
- package/lib/relay-hooks/loadEntryPoint.js +8 -5
- package/lib/relay-hooks/loadQuery.js +2 -14
- package/lib/relay-hooks/readFragmentInternal.js +2 -4
- package/lib/relay-hooks/useEntryPointLoader.js +5 -8
- package/lib/relay-hooks/useFragment.js +4 -7
- package/lib/relay-hooks/useFragmentInternal.js +6 -484
- package/lib/relay-hooks/useFragmentInternal_CURRENT.js +477 -0
- package/lib/relay-hooks/useFragmentInternal_EXPERIMENTAL.js +499 -0
- package/lib/relay-hooks/useLazyLoadQuery.js +2 -5
- package/lib/relay-hooks/useLoadMoreFunction.js +10 -43
- package/lib/relay-hooks/useLoadMoreFunction_EXPERIMENTAL.js +130 -0
- package/lib/relay-hooks/usePreloadedQuery.js +6 -9
- package/lib/relay-hooks/useQueryLoader.js +9 -3
- package/lib/relay-hooks/useQueryLoader_EXPERIMENTAL.js +120 -0
- package/multi-actor/ActorChange.js.flow +1 -1
- package/package.json +3 -3
- package/react-relay-hooks.js +2 -2
- package/react-relay-hooks.min.js +2 -2
- package/react-relay-legacy.js +1 -1
- package/react-relay-legacy.min.js +1 -1
- package/react-relay.js +2 -2
- package/react-relay.min.js +2 -2
- package/relay-hooks/EntryPointTypes.flow.js.flow +35 -12
- package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +8 -4
- package/relay-hooks/MatchContainer.js.flow +1 -1
- package/relay-hooks/ProfilerContext.js.flow +1 -1
- package/relay-hooks/__flowtests__/EntryPointTypes/ExtractQueryTypes-flowtest.js.flow +43 -0
- package/relay-hooks/getConnectionState.js.flow +97 -0
- package/relay-hooks/legacy/FragmentResource.js.flow +2 -13
- package/relay-hooks/loadEntryPoint.js.flow +10 -4
- package/relay-hooks/loadQuery.js.flow +4 -28
- package/relay-hooks/prepareEntryPoint_DEPRECATED.js.flow +4 -1
- package/relay-hooks/readFragmentInternal.js.flow +1 -10
- package/relay-hooks/useEntryPointLoader.js.flow +3 -4
- package/relay-hooks/useFragment.js.flow +0 -5
- package/relay-hooks/useFragmentInternal.js.flow +19 -643
- package/relay-hooks/useFragmentInternal_CURRENT.js.flow +656 -0
- package/relay-hooks/useFragmentInternal_EXPERIMENTAL.js.flow +718 -0
- package/relay-hooks/useLazyLoadQuery.js.flow +0 -5
- package/relay-hooks/useLoadMoreFunction.js.flow +14 -80
- package/relay-hooks/useLoadMoreFunction_EXPERIMENTAL.js.flow +280 -0
- package/relay-hooks/usePaginationFragment.js.flow +1 -1
- package/relay-hooks/usePreloadedQuery.js.flow +0 -5
- package/relay-hooks/useQueryLoader.js.flow +28 -5
- package/relay-hooks/useQueryLoader_EXPERIMENTAL.js.flow +253 -0
package/react-relay-hooks.min.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* Relay
|
2
|
+
* Relay v18.1.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,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),y=n(50),g=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:y,useSubscription:g}},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 y(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 g=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,y=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 g=h.getValue();if(s(g))throw l.__log({name:"suspense.query",fetchPolicy:d,isPromiseCached:y,operation:r,queryAvailability:h.operationAvailability,renderPolicy:p}),g;if(g instanceof Error)throw g;return g},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=y(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,g="available"===m,b=g||"partial"===a&&"stale"!==m,_=function(){};switch(t){case"store-only":s=!1,c=!0;break;case"store-or-network":s=!g,c=b;break;case"store-and-network":s=!0,c=b;break;default:s=!0,c=!1}if(c){var R=h(r,e),E=y(e,r,p,R,null,this._clearCacheEntry);this._cache.set(e,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==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,k,P);n.processedPayloadsCount+=1,n.setValue(k),_();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),_(),P=null,t.setNetworkSubscription(null);var i=null==u?void 0:u.error;i&&i(n)},complete:function(){_(),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){_=e}));F.displayName="Relay("+r.fragment.node.name+")",C=y(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 g(e)}var _=d?new WeakMap:new Map;e.exports={createQueryResource:b,getQueryResourceForEnvironment:function(e){var r=_.get(e);if(r)return r;var n=b(e);return _.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},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],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(156),o=n(658),u=o.__internal.fetchQueryDeduped,l=o.Observable,s=o.PreloadableQueryRegistry,c=o.RelayFeatureFlags,f=o.ReplaySubject,d=o.createOperationDescriptor,v=o.getRequest,p=o.getRequestIdentifier,h=(n(446),null),m=100001;e.exports={loadQuery:function(e,r,n,o,h){var y,g,b;null===(y=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===y||null===(g=y.ReactCurrentDispatcher)||void 0===g||g.current,m++;var _,R,E,P,k,C,F=null!==(b=null==o?void 0:o.fetchPolicy)&&void 0!==b?b:"store-or-network",S=(0,t.default)((0,t.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),D=!1,x=function(r,n){return D=!0,e.executeWithSource({operation:r,source:n})},q=new f,w=l.create((function(e){return q.subscribe(e)})),I=null,N=!1,Q=function(r){var t;N=!0;var i=new f;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var a="raw-network-request-"+p(r,n);t=u(e,a,(function(){return e.getNetwork().execute(r,n,S)}))}else t=e.getNetwork().execute(r,n,S);var o=t.subscribe({error:function(e){I=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe;return R=o,l.create((function(e){var r=i.subscribe(e);return function(){r.unsubscribe(),R()}}))},O=function(r,n){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(N=!0);var t=u(e,r.request.identifier,n).subscribe({error:function(e){q.error(e)},next:function(e){q.next(e)},complete:function(){q.complete()}});E=t.unsubscribe},A=function(r){var t=d(r,n,S);_=e.retain(t),"store-only"!==F&&("store-or-network"!==F||"available"!==e.check(t).status)&&O(t,(function(){var e=Q(r.params);return x(t,e)}))};if("PreloadableConcreteRequest"===r.kind){null===(C=(P=r.params).id)&&i(!1);var T=s.get(C);if(null!=T)A(T);else{var L="store-only"===F?null:Q(P),M=s.onLoad(C,(function(r){k();var t=d(r,n,S);_=e.retain(t),null!=L&&O(t,(function(){return x(t,L)}))}));k=M.dispose}}else{var U=v(r);C=null!=(P=U.params).cacheID?P.cacheID:P.id,A(U)}var j=!1,V=!1,W=!1,B=function(){V||(_&&_.dispose(),V=!0)},G=function(){W||(D?E&&E():R&&R(),k&&k(),W=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){j||(B(),G(),j=!0)},releaseQuery:B,cancelNetworkRequest:G,fetchKey:m,id:C,get isDisposed(){return j||V},get networkError(){return I},name:P.name,networkCacheConfig:S,fetchPolicy:F,source:N?w:void 0,variables:n}},useTrackLoadQueryInRender:function(){var e,r;null===h&&(h=null===(e=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(r=e.ReactCurrentDispatcher)||void 0===r?void 0:r.current)}}},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 y,g=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 _=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}(g);if(null!=_&&_.length){b=[];var R,E=(0,a.default)(_);try{for(E.s();!(R=E.n()).done;){var P=R.value;b.push(m(e,r,n,P,i))}}catch(e){E.e(e)}finally{E.f()}}}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(g)){null==f&&u(!1);var k="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,C=d(e,r,k);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 i,o=(0,a.default)(r.snapshots);try{for(o.s();!(i=o.n()).done;){var u,l,s=i.value;h(e,s.missingRequiredFields,s.relayResolverErrors,s.errorResponseFields,null!==(u=null===(l=s.selector.node.metadata)||void 0===l?void 0:l.throwOnFieldError)&&void 0!==u&&u)}}catch(e){o.e(e)}finally{o.f()}}}(e,g)}return y="bailout"===g.kind?p?[]:null:"singular"===g.kind?g.snapshot.data:g.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}))),{data:y,clientEdgeQueries:b}}},529:(e,r,n)=>{var t=(0,n(275).default)(n(765)),i=n(828),a=n(428).useTrackLoadQueryInRender,o=n(743),u=n(156),l=u.useCallback,s=u.useEffect,c=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,r,n){var u,v,p,h;a();var m=null!==(u=null==n||null===(v=n.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointReference)&&void 0!==u?u:d,y=null!==(p=null==n||null===(h=n.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==p?p:null,g=o(),b=c(new Set([m])),_=f(m),R=_[0],E=_[1],P=f(y),k=P[0],C=P[1],F=l((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),E(e)}}),[E,g]),S=l((function(n){if(g.current){var t=i(e,r,n);b.current.add(t),E(t),C(n)}}),[e,r,E,g]),D=c(!1);return s((function(){return function(){D.current=!0}}),[]),s((function(){if(!0===D.current)return D.current=!1,void("NullEntryPointReference"!==R.kind&&null!=k&&S(k));var e=b.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,k,S,g]),s((function(){return function(){var e,r=(0,t.default)(b.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,S,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}),[]),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(428).useTrackLoadQueryInRender,i=n(337),a=n(224),o=(n(156).useDebugValue,n(658).getFragment);e.exports=function(e,r){t();var n=o(e);return a(n,"first argument of useFragment()"),i(n,r,"useFragment()")}},337:(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,y=m.fetchQuery,g=m.getPromiseForActiveRequest,b=h.RelayFeatureFlags,_=h.areEqualSelectors,R=h.createOperationDescriptor,E=h.getPendingOperationsForFragment,P=h.getSelector,k=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,missingRequiredFields:t.missingRequiredFields,relayResolverErrors:t.relayResolverErrors,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,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,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=k(r,n),l=(0,i.default)((0,i.default)({},o),{},{id:t.clientEdgeDestinationID}),s=R(t.request,l,null==a?void 0:a.networkCacheConfig);return[u(e).prepare(s,y(e,s),null==a?void 0:a.fetchPolicy),g(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 y=l(),g=p((function(){return x(y,h)})),R=g[0],k=g[1],F=R,q=p(F),w=q[0],I=q[1],N=w,Q=p(h),O=Q[0],A=Q[1],T=p(y),L=T[0],M=T[1];if(!_(h,O)||y!==L){A(h),M(y);var U=x(y,h);k(U),I(U),F=U,N=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 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(y,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,y,e,r,t]),W=V[0],B=V[1];if(B.length)throw Promise.all(B);f((function(){var e=u(y);if(null!=W&&W.length){var r,n=[],t=(0,a.default)(W);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(){var e,r=(0,a.default)(n);try{for(r.s();!(e=r.n()).done;)e.value.dispose()}catch(e){r.e(e)}finally{r.f()}}}}),[y,W])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(F)){var G=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!=G&&G.length>0)throw Promise.all(G.map((function(e){var r=e.liveStateID;return y.getStore().getLiveResolverPromise(r)})));if(b.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||y!==L||!j.current||!_(j.current,h)){null==h&&s(!1);var H="PluralReaderSelector"===h.kind?h.selectors[0].owner:h.owner,K=E(y,e,H);if(K)throw K.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 i,o=(0,a.default)(r.snapshots);try{for(o.s();!(i=o.n()).done;){var u,l,s=i.value;C(e,s.missingRequiredFields,s.relayResolverErrors,s.errorResponseFields,null!==(u=null===(l=s.selector.node.metadata)||void 0===l?void 0:l.throwOnFieldError)&&void 0!==u&&u)}}catch(e){o.e(e)}finally{o.f()}}}(y,F);var Y,z=v(!1);if(f((function(){var e=N,r=S(y,N);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 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()}}}(y,e,k,z)}),[y,N]),z.current){var X=S(y,F);if(null!=X){var J=X[0],Z=X[1];J&&(k(Z),F=Z)}z.current=!1}if(m){var $=null==r;Y=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?Y=null:("singular"!==F.kind&&s(!1),Y=F.snapshot.data);return b.LOG_MISSING_RECORDS_IN_PROD&&null!=r&&(void 0===Y||Array.isArray(Y)&&Y.length>0&&Y.every((function(e){return void 0===e}))),Y}},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(428).useTrackLoadQueryInRender,i=n(734),a=n(61),o=n(750),u=n(658).__internal.fetchQuery;e.exports=function(e,r,n){t();var l=o(),s=a(e,r,n&&n.networkCacheConfig?n.networkCacheConfig:{force:!0});return i({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==n?void 0:n.fetchKey,fetchObservable:u(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),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,y=s(),g=f(t),b=o(y),_=v(0),R=_[0],E=_[1],P=u(),k=P.startFetch,C=P.completeFetch,F="".concat(R,"-").concat(null!=h?h:""),S=a(y,r,c,m,F),D=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(S,r,i,c,m,{start:k,complete:C,error:C},g)})),x=p(!1);d((function(){return function(){x.current=!0}}),[]),d((function(){if(!0===x.current)return x.current=!1,void E((function(e){return e+1}));var e=b.retain(D,g);return function(){e.dispose()}}),[y,S]),d((function(){b.releaseTemporaryRetain(D)}));var q=D.fragmentNode,w=D.fragmentRef;return l(q,w,n)}},601:(e,r,n)=>{var t=(0,n(275).default)(n(175)),i=n(863),a=n(743),o=n(233),u=n(750),l=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,y=v.getPaginationVariables,g=v.getRefetchMetadata,b=v.getSelector,_=v.getValueAtPath;n(446),e.exports=function(e){var r=e.direction,n=e.fragmentNode,s=e.fragmentRef,v=e.fragmentIdentifier,R=e.fragmentData,E=e.connectionPathInFragmentData,P=e.paginationRequest,k=e.paginationMetadata,C=e.componentDisplayName,F=e.observer,S=e.onReset,D=u(),x=i(),q=x.isFetchingRef,w=x.startFetch,I=x.disposeFetch,N=x.completeFetch,Q=g(n,C).identifierInfo,O=null!=(null==Q?void 0:Q.identifierField)&&null!=R&&"object"==typeof R?R[Q.identifierField]:null,A=a(),T=d(D),L=T[0],M=T[1],U=d(v),j=U[0],V=U[1],W=o(n,s);(D!==L||v!==j)&&(I(),S(),M(D),V(v));var B=function(e,r,n,t){var i,a,o=h.get(),u=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=_(n,t);if(null==p)return{cursor:null,hasMore:!1};"object"!=typeof p&&l(!1);var m=p[u],y=p[s];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||l(!1),"object"!=typeof y&&l(!1);var g="forward"===e?null!==(i=y[d])&&void 0!==i?i:null:null!==(a=y[v])&&void 0!==a?a:null;return null!==g&&"string"!=typeof g&&l(!1),{cursor:g,hasMore:"forward"===e?null!=g&&!0===y[c]:null!=g&&!0===y[f]}}(r,0,R,E),G=B.cursor,H=B.hasMore;return f((function(){return function(){I()}}),[I]),[c((function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==A.current)return{dispose:function(){}};var o=b(n,s);if(!0===q.current||null==R||W)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=y(r,e,G,d,(0,t.default)({},f),k);null!=Q&&(v[Q.identifierQueryVariableName]=O);var h=m(P,v,{force:!0});return p(D,h).subscribe((0,t.default)((0,t.default)({},F),{},{start:function(e){w(e),F.start&&F.start(e)},complete:function(){N(),F.complete&&F.complete(),a&&a(null)},error:function(e){N(),F.error&&F.error(e),a&&a(e)}})),{dispose:I}}),[D,O,r,G,w,I,N,q,W,R,n.name,s,C]),H,I]}},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],y=h[1],g=f((function(r){d.current===n&&v.current===e&&(p.current.delete(r),o.current&&y(p.current.size>0))}),[n,o,e]);return s((function(){d.current===n&&v.current===e||(p.current=new Set,o.current&&y(!1),d.current=n,v.current=e)}),[n,o,e]),[f((function(i){o.current&&y(!0);var a=r(n,(0,t.default)((0,t.default)({},i),{},{mutation:e,onCompleted:function(e,r){var n;g(a),null===(n=i.onCompleted)||void 0===n||n.call(i,e,r)},onError:function(e){var r;g(a),null===(r=i.onError)||void 0===r||r.call(i,e)},onUnsubscribe:function(){var e;g(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}),[g,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),y=m.fragmentData,g=m.fragmentRef,b=m.refetch,_=v(n,g),R=h({componentDisplayName:i,connectionPathInFragmentData:l,direction:"backward",fragmentData:y,fragmentIdentifier:_,fragmentNode:n,fragmentRef:g,paginationMetadata:f,paginationRequest:c}),E=R[0],P=R[1],k=R[2],C=R[3],F=h({componentDisplayName:i,connectionPathInFragmentData:l,direction:"forward",fragmentData:y,fragmentIdentifier:_,fragmentNode:n,fragmentRef:g,paginationMetadata:f,paginationRequest:c}),S=F[0],D=F[1],x=F[2],q=F[3];return{data:y,loadNext:S,loadPrevious:E,hasNext:D,hasPrevious:P,isLoadingNext:x,isLoadingPrevious:k,refetch:s((function(e,r){return q(),C(),b(e,(0,t.default)((0,t.default)({},r),{},{__environment:void 0}))}),[q,C,b])}}},617:(e,r,n)=>{var t=n(428).useTrackLoadQueryInRender,i=n(734),a=n(61),o=n(750),u=n(56),l=(n(156).useDebugValue,n(658).__internal),s=l.fetchQueryDeduped,c=l.fetchQuery;n(446),e.exports=function(e,r,n){t();var l,f=o(),d=r.fetchKey,v=r.fetchPolicy,p=r.source,h=r.variables,m=r.networkCacheConfig,y=a(e,h,m);if("PreloadedQuery_DEPRECATED"===r.kind)y.request.node.params.name!==r.name&&u(!1),l={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:s(f,y.request.identifier,(function(){return f===r.environment&&null!=p?f.executeWithSource({operation:y,source:p}):f.execute({operation:y})})),fetchPolicy:v,query:y,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy};else{var g=c(f,y);l={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=p&&f===r.environment?p.ifEmpty(g):(r.environment,g),fetchKey:d,fetchPolicy:v,query:y,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}}return i(l)}},876:(e,r,n)=>{var t=(0,n(275).default)(n(765)),i=n(428),a=i.loadQuery,o=i.useTrackLoadQueryInRender,u=n(743),l=n(750),s=n(156),c=s.useCallback,f=s.useEffect,d=s.useRef,v=s.useState,p=n(658).getRequest,h={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,r){var n=null!=r?r:h,i=l();o();var s=u(),p=d(new Set([n])),y=v((function(){return n})),g=y[0],b=y[1],_=v((function(){return n})),R=_[0],E=_[1];n!==R&&(p.current.add(n),E(n),b(n));var P=c((function(){s.current&&(p.current.add(h),b(h))}),[s]),k=c((function(r,n){var t=null!=n&&n.hasOwnProperty("__environment")?{fetchPolicy:n.fetchPolicy,networkCacheConfig:n.networkCacheConfig,__nameForWarning:n.__nameForWarning}:n;if(s.current){var o,u=a(null!==(o=null==n?void 0:n.__environment)&&void 0!==o?o:i,e,r,t);p.current.add(u),b(u)}}),[i,e,b,s]),C=d(!1);return f((function(){return function(){C.current=!0}}),[]),f((function(){if(!0===C.current)return C.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var r=p.current;if(s.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&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}}),[g,s,k,e]),f((function(){return function(){var r,n=(0,t.default)(p.current);try{for(n.s();!(r=n.n()).done;){var i=r.value;"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){n.e(e)}finally{n.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,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),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),y=m.__internal.fetchQuery,g=m.createOperationDescriptor,b=m.getFragmentIdentifier,_=m.getRefetchMetadata,R=m.getSelector,E=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=_(e,n),k=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],q=D[1],w=x.fetchPolicy,I=x.mirroredEnvironment,N=x.mirroredFragmentIdentifier,Q=x.onComplete,O=x.refetchEnvironment,A=x.refetchQuery,T=x.renderPolicy,L=null!=O?O:d,M=a(L),U=p(i),j=L!==I||S!==N,V=s(k),W=V[0],B=V[1],G=V[2],H=r;if(j)q({type:"reset",environment:L,fragmentIdentifier:S}),G();else if(null!=A&&null!=W){var K=function(e){Q&&Q(null!=e?e:null)},Y=null!=W.source?W.source:y(L,A),z=U.wrapPrepareQueryResource((function(){return M.prepare(A,Y,w,T,{error:K,complete:function(){K()}},W.fetchKey,U)})),X=o(L,z.fragmentNode,z.fragmentRef,n).data;null==X&&f(!1),H=E(X,C)}var J=u(e,H,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,y=null==i?void 0:i.onComplete,b=R(o,f);if(null==b)a={},u={};else if("PluralReaderSelector"===b.kind){var _,E,P,k;a=null!==(_=null===(E=b.selectors[0])||void 0===E?void 0:E.owner.variables)&&void 0!==_?_:{},u=null!==(P=null===(k=b.selectors[0])||void 0===k?void 0:k.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=g(d,C,{force:!0});return c(F.request.variables,{fetchPolicy:v,__environment:l,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:v,onComplete:y,refetchEnvironment:l,refetchQuery:F,renderPolicy:m}),{dispose:n}}),[a,r,n,h,c])}(0,q,G,J,S,e,0,F,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),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)})()));
|
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),E=g(e,r,p,_,null,this._clearCacheEntry);this._cache.set(e,E)}if(s){var k,P=h(r,e);n.subscribe({start:function(n){k=n;var t=f._cache.get(e);t&&t.setNetworkSubscription(k);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,P,k);n.processedPayloadsCount+=1,n.setValue(P),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,k);0===t.processedPayloadsCount&&t.setValue(n),R(),k=null,t.setNetworkSubscription(null);var i=null==u?void 0:u.error;i&&i(n)},complete:function(){R(),k=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,k,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.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,k=null!==(m=null==a?void 0:a.fetchPolicy)&&void 0!==m?m:"store-or-network",P=(0,t.default)((0,t.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),C=!1,F=function(r,n){return C=!0,e.executeWithSource({operation:r,source:n})},S=new c,D=u.create((function(e){return S.subscribe(e)})),x=null,I=!1,w=function(r){var t;I=!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,P)}))}else t=e.getNetwork().execute(r,n,P);var l=t.subscribe({error:function(e){x=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe;return y=l,u.create((function(e){var r=i.subscribe(e);return function(){r.unsubscribe(),y()}}))},q=function(r,n){!0===s.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(I=!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},N=function(r){var t=f(r,n,P);g=e.retain(t),"store-only"!==k&&("store-or-network"!==k||"available"!==e.check(t).status)&&q(t,(function(){var e=w(r.params);return F(t,e)}))};if("PreloadableConcreteRequest"===r.kind){null===(E=(R=r.params).id)&&i(!1);var A=l.get(E);if(null!=A)N(A);else{var Q="store-only"===k?null:w(R),O=l.onLoad(E,(function(r){_();var t=f(r,n,P);g=e.retain(t),null!=Q&&q(t,(function(){return F(t,Q)}))}));_=O.dispose}}else{var M=d(r);E=null!=(R=M.params).cacheID?R.cacheID:R.id,N(M)}var T=!1,L=!1,V=!1,U=function(){L||(g&&g.dispose(),L=!0)},j=function(){V||(C?b&&b():y&&y(),_&&_(),V=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){T||(U(),j(),T=!0)},releaseQuery:U,cancelNetworkRequest:j,fetchKey:p,id:E,get isDisposed(){return T||L},get networkError(){return x},name:R.name,networkCacheConfig:P,fetchPolicy:k,source:I?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,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 _,E=(0,a.default)(R);try{for(E.s();!(_=E.n()).done;){var k=_.value;b.push(m(e,r,n,k,i))}}catch(e){E.e(e)}finally{E.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 P="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,C=d(e,r,P);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],E=c(m),k=E[0],P=E[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),P(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!=k&&F(k));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,k,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,E=h.getPendingOperationsForFragment,k=h.getSelector,P=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=P(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 k(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],P=y[1],F=_,I=p(F),w=I[0],q=I[1],N=w,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);P(V),q(V),F=V,N=V}var U=v(!1);if(f((function(){U.current=h}),[h]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var j=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=j[0],W=j[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){var r=e.liveStateID;return g.getStore().getLiveResolverPromise(r)})));if(b.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||g!==T||!U.current||!R(U.current,h)){null==h&&s(!1);var G="PluralReaderSelector"===h.kind?h.selectors[0].owner:h.owner,H=E(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&&P(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,P,z)}),[g,N]),z.current){var X=S(g,F);if(null!=X){var J=X[0],Z=X[1];J&&(P(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,E=h.getPendingOperationsForFragment,k=h.getSelector,P=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=P(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 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}}n(446),e.exports=function(e,r,n,t){var i,o,c=d((function(){return k(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 I(m,c)})),y=g[0],_=g[1],P=y,F=P.environment;if(!R(c,P.selector)||m!==P.environment){var w=I(m,c);_(w),P=w}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}(P),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]}),[P,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})))}(P)){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}(P);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!==F||!q.current||!R(q.current,c)){null==c&&s(!1);var M="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,T=E(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,P);var L,V=v(null);if(f((function(){var e=V.current;if(null!=e){if(P.environment===e.environment&&P.selector===e.selector)return;e.dispose()}if("bailout"!==P.kind){var r=P,n=S(P.environment,P);if(null!==n){var t=n[0],i=n[1];if(t)return void _(i);r=i}var a=x(P.environment,r,_);V.current={dispose:a,selector:P.selector,environment:P.environment}}}),[P]),f((function(){if(null==V.current&&"bailout"!==P.kind){var e=x(P.environment,P,_);V.current={dispose:e,selector:P.selector,environment:P.environment}}return function(){var e;null===(e=V.current)||void 0===e||e.dispose(),V.current=null}}),[]),h){var U=null==r;L=d((function(){return"bailout"===P.kind?U?null:[]:("plural"!==P.kind&&s(!1),P.snapshots.map((function(e){return e.data})))}),[P,U])}else"bailout"===P.kind?L=null:("singular"!==P.kind&&s(!1),L=P.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],E=R[1],k=u(),P=k.startFetch,C=k.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:P,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 E((function(e){return e+1}));var e=b.retain(D,y);return function(){e.dispose()}}),[g,S]),d((function(){b.releaseTemporaryRetain(D)}));var I=D.fragmentNode,w=D.fragmentRef;return l(I,w,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,E=e.paginationRequest,k=e.paginationMetadata,P=e.componentDisplayName,C=e.observer,F=e.onReset,S=s(),D=a(),x=D.isFetchingRef,I=D.startFetch,w=D.disposeFetch,q=D.completeFetch,N=R(n,P).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],U=L[1],j=u(n,l);S===M&&f===V||(w(),F(),T(S),U(f));var B=i(r,n,h,g),W=B.cursor,Y=B.hasMore;return v((function(){return function(){w()}}),[w]),[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||j)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),k);null!=N&&(v[N.identifierQueryVariableName]=A);var p=y(E,v,{force:!0});return m(S,p).subscribe((0,t.default)((0,t.default)({},C),{},{start:function(e){I(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:w}}),[S,A,r,W,I,w,q,x,j,h,n.name,l,P]),Y,w]}(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,E=e.paginationMetadata,k=e.componentDisplayName,P=e.observer,C=e.onReset,F=u(),S=g(n,k).identifierInfo,D=null!=(null==S?void 0:S.identifierField)&&null!=b&&"object"==typeof b?b[S.identifierField]:null,x=f({kind:"none"}),I=d(F),w=I[0],q=I[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!==w||v!==A)&&(M(),C(),q(F),Q(v));var T=i(r,n,b,R),L=T.cursor,V=T.hasMore,U=a();return[c((function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==U.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),E);null!=S&&(v[S.identifierQueryVariableName]=D);var g=h(_,v,{force:!0});return p(F,g).subscribe((0,t.default)((0,t.default)({},P),{},{start:function(e){x.current={kind:"fetching",subscription:e},P.start&&P.start(e)},complete:function(){x.current={kind:"none"},P.complete&&P.complete(),a&&a(null)},error:function(e){x.current={kind:"none"},P.complete&&P.complete(),a&&a(e)}})),{dispose:function(){}}}),[F,D,r,L,O,b,n.name,s,k]),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}),E=_[0],k=_[1],P=_[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],I=F[3];return{data:g,loadNext:S,loadPrevious:E,hasNext:D,hasPrevious:k,isLoadingNext:x,isLoadingPrevious:P,refetch:s((function(e,r){return I(),C(),b(e,(0,t.default)((0,t.default)({},r),{},{__environment:void 0}))}),[I,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 E=s((function(){l.current&&(v.current.add(m),y(m))}),[l]),k=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]),P=f(!1);return c((function(){return function(){P.current=!0}}),[]),c((function(){if(!0===P.current)return P.current=!1,void("NullQueryReference"!==h.kind&&k(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,k,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,k,E]}(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})),E=_[0],k=_[1];n!==E&&(null===(g=m.current)||void 0===g||g.add(n),k(n),R(n));var P=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,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),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,E=m.getValueAtPath;function k(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),P=m.refetchableRequest,C=m.fragmentRefPathInResponse,F=m.identifierInfo,S=b(e,r),D=h(k,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:S,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),x=D[0],I=D[1],w=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),U=T!==q||S!==N,j=s(P),B=j[0],W=j[1],Y=j[2],G=r;if(U)I({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,w,M,{error:H,complete:function(){H()}},B.fetchKey,V)})),X=o(T,z.fragmentNode,z.fragmentRef,n).data;null==X&&f(!1),G=E(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,E,k,P;a=null!==(R=null===(E=b.selectors[0])||void 0===E?void 0:E.owner.variables)&&void 0!==R?R:{},u=null!==(k=null===(P=b.selectors[0])||void 0===P?void 0:P.variables)&&void 0!==k?k:{}}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,I,Y,J,S,e,0,F,W,r,P);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)})()));
|
package/react-relay-legacy.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
/**
|
2
|
-
* Relay
|
2
|
+
* Relay v18.1.0
|
3
3
|
*/
|
4
4
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],t):"object"==typeof exports?exports.ReactRelayLegacy=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelayLegacy=t(e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,t,r,n,o,a,s,i,l,u,c,h)=>(()=>{"use strict";var p={426:e=>{function t(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:t,getContainerName:function(e){return"Relay("+t(e)+")"}}},888:(e,t,r)=>{var n=r(156),o=r(658).__internal.createRelayContext;e.exports=o(n)},362:(e,t,r)=>{var n=r(275).default,o=n(r(924)),a=n(r(264)),s=n(r(383)),i=n(r(296)),l=n(r(311)),u=["componentRef","__relayContext","__rootIsQueryRenderer"],c=r(89),h=r(426).getContainerName,p=r(827).assertRelayContext,f=r(125),d=r(156),v=r(658),_=v.createFragmentSpecResolver,y=v.getDataIDsFromObject,b=v.isScalarAndEqual;function m(e,t){var r,n=h(e);return r=function(r){function c(e){var o,a;a=r.call(this,e)||this,(0,l.default)((0,s.default)(a),"_handleFragmentDataUpdate",(function(){var e=a.state.resolver;a.setState((function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:C(t.relayProp.environment)}:null}))}));var i=p(e.__relayContext),u=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,c=_(i,n,t,e,u);return a.state={data:c.resolve(),prevProps:e,prevPropsContext:i,relayProp:C(i.environment),resolver:c},a}(0,i.default)(c,r),c.getDerivedStateFromProps=function(e,r){var o,a=r.prevProps,s=p(e.__relayContext),i=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,l=y(t,a),u=y(t,e),c=r.resolver;if(r.prevPropsContext.environment!==s.environment||!f(l,u))return{data:(c=_(s,n,t,e,i)).resolve(),prevPropsContext:s,prevProps:e,relayProp:C(s.environment),resolver:c};c.setProps(e);var h=c.resolve();return h!==r.data?{data:h,prevProps:e,prevPropsContext:s,relayProp:C(s.environment)}:null};var h=c.prototype;return h.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},h.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},h.componentWillUnmount=function(){this.state.resolver.dispose()},h.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var n=Object.keys(e),o=0;o<n.length;o++){var a=n[o];if("__relayContext"===a){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(a)&&!b(e[a],this.props[a]))return!0}return!1},h._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},h._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},h.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,u));return d.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp}))},c}(d.Component),(0,l.default)(r,"displayName",n),r}function C(e){return{environment:e}}e.exports={createContainer:function(e,t){return c(e,t,m)}}},428:(e,t,r)=>{var n=r(888),o=r(239),a=r(125),s=r(156),i=r(658),l=i.createOperationDescriptor,u=i.deepFreeze,c=i.getRequest,h=s.useLayoutEffect,p=s.useState,f=s.useRef,d=s.useMemo,v={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,i=e.environment,_=e.query,y=e.variables,b=e.render,m=(t=y,r=s.useRef(t),a(r.current,t)||(u(t),r.current=t),r.current),C=d((function(){var e=c(_);return l(e,m)}),[_,m]),R=d((function(){return{environment:i}}),[i]),g=f(null),x=p(null)[1],P=f(null),S=d((function(){i.check(C);var e=i.lookup(C.fragment);g.current=e.data;var t=i.retain(C),r=i.subscribe(e,(function(e){g.current=e.data,x(g.current)})),n=!1;return P.current&&P.current(),P.current=function(){n||(n=!0,P.current=null,t.dispose(),r.dispose())},e}),[i,C]);return h((function(){var e=P.current;return function(){e&&e()}}),[S]),s.createElement(n.Provider,{value:R},s.createElement(o.Provider,{value:v},b({props:g.current})))}},540:(e,t,r)=>{var n=r(275).default,o=n(r(924)),a=n(r(264)),s=n(r(383)),i=n(r(296)),l=n(r(311)),u=n(r(175)),c=["componentRef"],h=["componentRef","__relayContext","__rootIsQueryRenderer"],p=["componentRef","__relayContext","__rootIsQueryRenderer"],f=r(89),d=r(416),v=r(426),_=v.getComponentName,y=v.getContainerName,b=r(888),m=r(733),C=r(827).assertRelayContext,R=r(125),g=r(56),x=r(156),P=r(658),S=P.ConnectionInterface,q=P.Observable,F=P.RelayFeatureFlags,D=P.createFragmentSpecResolver,O=P.createOperationDescriptor,E=P.getDataIDsFromObject,I=P.getRequest,A=P.getVariablesFromObject,N=P.isScalarAndEqual,U=r(446),j="forward";function k(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}e.exports={createContainer:function(e,t,r){return f(e,t,(function(e,t){return function(e,t,r){var n,f=_(e),v=y(e),P=function(e){var t=null,r=!1;for(var n in e){var o=e[n],a=o.metadata&&o.metadata.connection;void 0!==o.metadata&&(r=!0),a&&(1!==a.length&&g(!1,"ReactRelayPaginationContainer: Only a single @connection is supported, `%s` has %s.",n,a.length),t&&g(!1,"ReactRelayPaginationContainer: Only a single fragment with @connection is supported."),t=(0,u.default)((0,u.default)({},a[0]),{},{fragmentName:n}))}return r&&null===t&&g(!1,"ReactRelayPaginationContainer: A @connection directive must be present."),t||{}}(t),w=r.getConnectionFromProps||function(e){var t=e.path;return t||g(!1,"ReactRelayPaginationContainer: Unable to synthesize a getConnectionFromProps function."),function(r){for(var n=r[e.fragmentName],o=0;o<t.length;o++){if(!n||"object"!=typeof n)return null;n=n[t[o]]}return n}}(P),Q=r.direction||P.direction;Q||g(!1,"ReactRelayPaginationContainer: Unable to infer direction of the connection, possibly because both first and last are provided.");var M=r.getFragmentVariables||function(e){var t=e.count;return t||g(!1,"ReactRelayPaginationContainer: Unable to synthesize a getFragmentVariables function."),function(e,r){return(0,u.default)((0,u.default)({},e),{},(0,l.default)({},t,r))}}(P);return n=function(n){function _(e){var r,o;o=n.call(this,e)||this,(0,l.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){o.setState({data:o._resolver.resolve()})})),(0,l.default)((0,s.default)(o),"_hasMore",(function(){var e=o._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,l.default)((0,s.default)(o),"_isLoading",(function(){return!!o._refetchSubscription})),(0,l.default)((0,s.default)(o),"_refetchConnection",(function(e,t,r){if(!o._canFetchPage("refetchConnection"))return{dispose:function(){}};o._refetchVariables=r;var n={count:e,cursor:null,totalCount:e};return{dispose:o._fetchPage(n,k(t),{force:!0}).unsubscribe}})),(0,l.default)((0,s.default)(o),"_loadMore",(function(e,t,r){if(!o._canFetchPage("loadMore"))return{dispose:function(){}};var n=k(t),a=o._getConnectionData();if(!a)return q.create((function(e){return e.complete()})).subscribe(n),null;var s=a.edgeCount+e;if(r&&r.force)return o._refetchConnection(s,t);var i=S.get(),l=i.END_CURSOR,u=i.START_CURSOR,c=a.cursor;U(null!=c&&""!==c,"ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)",Q===j?l:u,c);var h={count:e,cursor:c,totalCount:s};return{dispose:o._fetchPage(h,n,r).unsubscribe}}));var a=C(e.__relayContext),i=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return o._isARequestInFlight=!1,o._refetchSubscription=null,o._refetchVariables=null,!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?o._resolver=D(a,v,t,e,i):o._resolver=D(a,v,t,e,i,o._handleFragmentDataUpdate),o.state={data:o._resolver.resolve(),prevContext:a,contextForChildren:a,relayProp:o._buildRelayProp(a),resolverGeneration:0},o._isUnmounted=!1,o._hasFetched=!1,o}(0,i.default)(_,n);var y=_.prototype;return y.componentDidMount=function(){this._isUnmounted=!1,!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},y.componentDidUpdate=function(e,t){!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},y.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,o=C(e.__relayContext),a=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,s=E(t,this.props),i=E(t,e),l=d(t,this.props),u=d(t,e);o.environment===this.state.prevContext.environment&&R(l,u)&&R(s,i)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=D(o,v,t,e,a):this._resolver=D(o,v,t,e,a,this._handleFragmentDataUpdate),this.setState((function(e){return{prevContext:o,contextForChildren:o,relayProp:n._buildRelayProp(o),resolverGeneration:e.resolverGeneration+1}})));var c=this._resolver.resolve();c!==this.state.data&&this.setState({data:c})},y.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},y.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp||r.resolverGeneration!==this.state.resolverGeneration)return!0;for(var n=Object.keys(e),o=0;o<n.length;o++){var a=n[o];if("__relayContext"===a){if(r.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(a)&&!N(e[a],this.props[a]))return!0}return!1},y._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},y._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},y._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},y._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,a.default)(e,c)),r=(0,u.default)((0,u.default)({},t),this.state.data),n=w(r);if(null==n)return null;var o=S.get(),s=o.EDGES,i=o.PAGE_INFO,l=o.HAS_NEXT_PAGE,h=o.HAS_PREV_PAGE,p=o.END_CURSOR,d=o.START_CURSOR;"object"!=typeof n&&g(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return `null` or a plain object with %s and %s properties, got `%s`.",f,s,i,n);var v=n[s],_=n[i];if(null==v||null==_)return null;Array.isArray(v)||g(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Array, got `%s`.",f,s,v),"object"!=typeof _&&g(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Object, got `%s`.",f,i,_);var y=Q===j?_[l]:_[h],b=Q===j?_[p]:_[d];return"boolean"!=typeof y||0!==v.length&&void 0===b?(U(!1,"ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. Be sure to fetch %s (got `%s`) and %s (got `%s`).",i,f,Q===j?l:h,y,Q===j?p:d,b),null):{cursor:b,edgeCount:v.length,hasMore:y}},y._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new m),this._queryFetcher},y._canFetchPage=function(e){return!this._isUnmounted||(U(!1,"ReactRelayPaginationContainer: Unexpected call of `%s` on unmounted container `%s`. It looks like some instances of your container still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `%s` call.",e,v,e),!1)},y._fetchPage=function(e,n,o){var s,i=this,l=C(this.props.__relayContext).environment,c=this.props,p=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,a.default)(c,h)),v=(0,u.default)((0,u.default)({},p),this.state.data),_=d(t,p);s=A(t,p),s=(0,u.default)((0,u.default)((0,u.default)({},_),s),this._refetchVariables);var y=r.getVariables(v,{count:e.count,cursor:e.cursor},s);("object"!=typeof y||null===y)&&g(!1,"ReactRelayPaginationContainer: Expected `getVariables()` to return an object, got `%s` in `%s`.",y,f),y=(0,u.default)((0,u.default)({},y),this._refetchVariables),s=(0,u.default)((0,u.default)({},y),s);var b=o?{force:!!o.force}:void 0;null!=b&&null!=(null==o?void 0:o.metadata)&&(b.metadata=null==o?void 0:o.metadata);var m=I(r.query),x=O(m,y,b),P=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var S=function(){i._refetchSubscription===P&&(i._refetchSubscription=null,i._isARequestInFlight=!1)};return this._isARequestInFlight=!0,P=this._getQueryFetcher().execute({environment:l,operation:x,preservePreviousReferences:!0}).mergeMap((function(t){return q.create((function(t){!function(t,r){var n=i._resolver.resolve();i._resolver.setVariables(M(s,e.totalCount),x.request.node);var o=i._resolver.resolve();R(n,o)?r():i.setState({data:o,contextForChildren:{environment:i.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:S,complete:S,unsubscribe:S}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?P:null,P},y._cleanup=function(){this._resolver.dispose(),this._refetchVariables=null,this._hasFetched=!1,this._refetchSubscription&&(this._refetchSubscription.unsubscribe(),this._refetchSubscription=null,this._isARequestInFlight=!1),this._queryFetcher&&this._queryFetcher.dispose()},y.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,p));return x.createElement(b.Provider,{value:this.state.contextForChildren},x.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},_}(x.Component),(0,l.default)(n,"displayName",v),n}(e,t,r)}))}}},733:(e,t,r)=>{var n=(0,r(275).default)(r(311)),o=r(56),a=r(658),s=a.__internal.fetchQuery,i=a.createOperationDescriptor,l=a.isRelayModernEnvironment,u=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_didFetchFinish",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t,r){return"store-and-network"!==r&&"store-or-network"!==r||"available"!==e.check(t).status?null:(this._retainCachedOperation(e,t),e.lookup(t.fragment))},t.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},t.execute=function(e){var t=this,r=e.environment,n=e.operation,o=e.preservePreviousReferences,a=void 0!==o&&o,i=r.retain(n),u=function(){t._selectionReferences=t._selectionReferences.concat(i)},c=function(){a||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(i)},h=function(){t._selectionReferences=t._selectionReferences.concat(i)};return l(r)?s(r,n).do({error:u,complete:c,unsubscribe:h}):r.execute({operation:n}).do({error:u,complete:c,unsubscribe:h})},t.setOnDataChange=function(e){this._fetchOptions||o(!1,"ReactRelayQueryFetcher: `setOnDataChange` should have been called after having called `fetch`"),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._didFetchFinish&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e,t){var r,n=this,o=e.environment,a=e.operation,s=e.onDataChange,l=!1;this.disposeRequest();var u=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:u||[],operation:a},s&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(s)&&this._fetchOptions.onDataChangeCallbacks.push(s);var c=t?i(a.request.node,a.request.variables,t):a,h=this.execute({environment:o,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._didFetchFinish=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:l})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;l?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){h.unsubscribe()}},l=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||o(!1,"ReactRelayQueryFetcher: `retry` should be called after having called `fetch`"),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},e)},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(e,t){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(t)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach((function(e){return e.dispose()})),this._selectionReferences=[]},t._onQueryDataAvailable=function(e){var t=this,r=e.notifyFirstResult;this._fetchOptions||o(!1,"ReactRelayQueryFetcher: `_onQueryDataAvailable` should have been called after having called `fetch`");var n=this._fetchOptions,a=n.environment,s=n.onDataChangeCallbacks,i=n.operation;if(!this._snapshot&&(this._snapshot=a.lookup(i.fragment),this._rootSubscription=a.subscribe(this._snapshot,(function(e){if(null!=t._fetchOptions){var r=t._fetchOptions.onDataChangeCallbacks;Array.isArray(r)&&r.forEach((function(t){return t({snapshot:e})}))}})),this._snapshot&&r&&Array.isArray(s))){var l=this._snapshot;s.forEach((function(e){return e({snapshot:l})}))}},e}();e.exports=u},701:(e,t,r)=>{var n=r(275).default,o=n(r(175)),a=n(r(383)),s=n(r(296)),i=n(r(311)),l=r(888),u=r(733),c=r(239),h=r(125),p=r(156),f=r(658),d=f.createOperationDescriptor,v=f.deepFreeze,_=f.getRequest,y={},b={rootIsQueryRenderer:!0},m=function(e){function t(t){var r;r=e.call(this,t)||this,(0,i.default)((0,a.default)(r),"_handleDataChange",(function(e){var t=null==e.error?null:e.error,n=null==e.snapshot?null:e.snapshot;r.setState((function(e){var r=e.requestCacheKey;return r&&delete y[r],n===e.snapshot&&t===e.error?null:{renderProps:C(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,s,l={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;s=R(_(c).params,t.variables),n=y[s]?y[s].queryFetcher:new u}else n=new u;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,o.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:l},x(t,n,l,s)),r}(0,s.default)(t,e),t.getDerivedStateFromProps=function(e,t){return t.prevQuery===e.query&&t.prevPropsEnvironment===e.environment&&h(t.prevPropsVariables,e.variables)?null:g(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(t){var r=g(e.props,t),n=r.requestCacheKey,o=r.queryFetcher;return null!=n&&null!=y[n]&&o.setOnDataChange(e._handleDataChange),r}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,o=t.requestCacheKey;o&&delete y[o],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete y[t],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}}))},this.props.query&&n.setOnDataChange(this._handleDataChange)},r.componentDidUpdate=function(e,t){var r=this.state,n=r.queryFetcher,o=r.requestCacheKey;o&&(delete y[o],delete this.state.requestCacheKey),this.props.query&&n!==t.queryFetcher&&n.setOnDataChange(this._handleDataChange)},r.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},r.shouldComponentUpdate=function(e,t){return e.render!==this.props.render||t.renderProps!==this.state.renderProps},r.render=function(){var e=this.state,t=e.renderProps,r=e.relayContext;return v(t),p.createElement(l.Provider,{value:r},p.createElement(c.Provider,{value:b},this.props.render(t)))},t}(p.Component);function C(e,t,r,n){return{error:e||null,props:t?t.data:null,retry:function(t){var o=r.retry(t);o&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:o}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function R(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function g(e,t){var r,n=e.query,a=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var s=R(_(n).params,e.variables);r=y[s]?y[s].queryFetcher:new u(a)}else r=new u(a);return(0,o.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},x(e,r,t.retryCallbacks))}function x(e,t,r,n){var o=e.environment,a=e.query,s=e.variables,i=e.cacheConfig,l=o;if(!a)return t.dispose(),{error:null,relayContext:{environment:l},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var u=_(a),c=d(u,s,i),h={environment:l};if("string"==typeof n&&y[n]){var p=y[n].snapshot;return p?{error:null,relayContext:h,renderProps:C(null,p,t,r),snapshot:p,requestCacheKey:n}:{error:null,relayContext:h,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var f=t.lookupInStore(l,c,e.fetchPolicy),v=t.fetch({environment:l,onDataChange:null,operation:c})||f;return n=n||R(u.params,e.variables),y[n]={queryFetcher:t,snapshot:v},v?{error:null,relayContext:h,renderProps:C(null,v,t,r),snapshot:v,requestCacheKey:n}:{error:null,relayContext:h,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:h,renderProps:C(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=m},239:(e,t,r)=>{var n=r(156);e.exports=n.createContext({rootIsQueryRenderer:!1})},427:(e,t,r)=>{var n=r(275).default,o=n(r(924)),a=n(r(264)),s=n(r(175)),i=n(r(383)),l=n(r(296)),u=n(r(311)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],h=r(89),p=r(416),f=r(426).getContainerName,d=r(888),v=r(733),_=r(827).assertRelayContext,y=r(125),b=r(156),m=r(658),C=m.Observable,R=m.createFragmentSpecResolver,g=m.createOperationDescriptor,x=m.getDataIDsFromObject,P=m.getRequest,S=m.getVariablesFromObject,q=m.isScalarAndEqual,F=r(446);function D(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return h(e,t,(function(e,t){return function(e,t,r){var n,h=f(e);return n=function(n){function f(e){var o,a;a=n.call(this,e)||this,(0,u.default)((0,i.default)(a),"_handleFragmentDataUpdate",(function(){var e=a.state.resolver;a.setState((function(t){return e===t.resolver?{data:t.resolver.resolve()}:null}))})),(0,u.default)((0,i.default)(a),"_refetch",(function(e,n,o,i){if(a._isUnmounted)return F(!1,"ReactRelayRefetchContainer: Unexpected call of `refetch` on unmounted container `%s`. It looks like some instances of your container still trying to refetch the data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `refetch`.",h),{dispose:function(){}};var l=_(a.props.__relayContext).environment,u=p(t,a.props),c="function"==typeof e?e(a._getFragmentVariables()):e;c=(0,s.default)((0,s.default)({},u),c);var f=n?(0,s.default)((0,s.default)({},c),n):c,d=i?{force:!!i.force}:void 0;null!=d&&null!=(null==i?void 0:i.metadata)&&(d.metadata=null==i?void 0:i.metadata);var v,y="function"==typeof o?{next:o,error:o}:o||{},b=P(r),m=g(b,c,d);return a.state.localVariables=c,a._refetchSubscription&&a._refetchSubscription.unsubscribe(),null!=a._getQueryFetcher().lookupInStore(l,m,null==i?void 0:i.fetchPolicy)?(a.state.resolver.setVariables(f,m.request.node),a.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:a.props.__relayContext.environment}}}),(function(){y.next&&y.next(),y.complete&&y.complete()})),{dispose:function(){}}):(a._getQueryFetcher().execute({environment:l,operation:m,preservePreviousReferences:!0}).mergeMap((function(e){return a.state.resolver.setVariables(f,m.request.node),C.create((function(e){return a.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:a.props.__relayContext.environment}}}),(function(){e.next(),e.complete()}))}))})).finally((function(){a._refetchSubscription===v&&(a._refetchSubscription=null)})).subscribe((0,s.default)((0,s.default)({},y),{},{start:function(e){a._refetchSubscription=v=e,y.start&&y.start(e)}})),{dispose:function(){v&&v.unsubscribe()}})}));var l=_(e.__relayContext),c=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o;a._refetchSubscription=null;var f=R(l,h,t,e,c);return a.state={data:f.resolve(),localVariables:null,prevProps:e,prevPropsContext:l,contextForChildren:l,relayProp:D(l.environment,a._refetch),resolver:f},a._isUnmounted=!1,a}(0,l.default)(f,n);var m=f.prototype;return m.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},m.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},f.getDerivedStateFromProps=function(e,r){var n,o=r.prevProps,a=_(e.__relayContext),s=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,i=x(t,o),l=x(t,e),u=p(t,o),c=p(t,e),f=r.resolver;if(r.prevPropsContext.environment!==a.environment||!y(u,c)||!y(i,l))return{data:(f=R(a,h,t,e,s)).resolve(),localVariables:null,prevProps:e,prevPropsContext:a,contextForChildren:a,relayProp:D(a.environment,r.relayProp.refetch),resolver:f};r.localVariables||f.setProps(e);var d=f.resolve();return d!==r.data?{data:d,prevProps:e}:null},m.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},m.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var n=Object.keys(e),o=0;o<n.length;o++){var a=n[o];if("__relayContext"===a){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(a)&&!q(e[a],this.props[a]))return!0}return!1},m._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},m._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},m._getFragmentVariables=function(){return S(t,this.props)},m._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new v),this._queryFetcher},m.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,a.default)(t,c)),s=this.state,i=s.relayProp,l=s.contextForChildren;return b.createElement(d.Provider,{value:l},b.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:i})))},f}(b.Component),(0,u.default)(n,"displayName",h),n}(e,t,r)}))}}},827:(e,t,r)=>{var n=r(645),o=r(56);function a(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(e.environment)}e.exports={assertRelayContext:function(e){return a(e)||o(!1,"RelayContext: Expected `context.relay` to be an object conforming to the `RelayContext` interface, got `%s`.",e),e},isRelayContext:a}},74:(e,t,r)=>{var n=r(56);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1,"Could not create Relay Container for `%s`. Expected a set of GraphQL fragments, got `%s` instead.",e,t),t)if(t.hasOwnProperty(r)){var o=t[r];(!o||"object"!=typeof o&&"function"!=typeof o)&&n(!1,"Could not create Relay Container for `%s`. The value of fragment `%s` was expected to be a fragment, got `%s` instead.",e,r,o)}}},89:(e,t,r)=>{var n=(0,r(275).default)(r(924)),o=r(74),a=r(426),s=a.getComponentName,i=a.getContainerName,l=r(888),u=r(239),c=r(56),h=r(156),p=r(658).getFragment,f=h.useContext;e.exports=function(e,t,r){var a=i(e);o(s(e),t);var d={};for(var v in t)d[v]=p(t[v]);var _=r(e,d);function y(e,t){var r,o=f(l);null==o&&c(!1,"`%s` tried to render a context that was not valid this means that `%s` was rendered outside of a query renderer.",a,a);var s=f(u);return h.createElement(_,(0,n.default)({},e,{__relayContext:o,__rootIsQueryRenderer:null!==(r=null==s?void 0:s.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}_.displayName=a,y.displayName=a;var b=h.forwardRef(y);return b.__ComponentClass=e,b.displayName=a,b}},416:(e,t,r)=>{var n=(0,r(275).default)(r(175)),o=r(658).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(a){var s,i,l,u=e[a],c=t[a],h=o(u,c),p=null!=h&&"PluralReaderSelector"===h.kind?null!==(s=null===(i=h.selectors[0])||void 0===i?void 0:i.owner.variables)&&void 0!==s?s:{}:null!==(l=null==h?void 0:h.owner.variables)&&void 0!==l?l:{};r=(0,n.default)((0,n.default)({},r),p)})),r}},645:e=>{e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},314:(e,t,r)=>{var n=r(888),o=r(362),a=r(428),s=r(540),i=r(701),l=r(427),u=r(658);e.exports={ConnectionHandler:u.ConnectionHandler,QueryRenderer:i,LocalQueryRenderer:a,MutationTypes:u.MutationTypes,RangeOperations:u.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:u.applyOptimisticMutation,commitLocalUpdate:u.commitLocalUpdate,commitMutation:u.commitMutation,createFragmentContainer:o.createContainer,createPaginationContainer:s.createContainer,createRefetchContainer:l.createContainer,fetchQuery_DEPRECATED:u.fetchQuery_DEPRECATED,graphql:u.graphql,readInlineData:u.readInlineData,requestSubscription:u.requestSubscription}},383:t=>{t.exports=e},311:e=>{e.exports=t},924:e=>{e.exports=r},296:e=>{e.exports=n},275:e=>{e.exports=o},175:e=>{e.exports=a},264:e=>{e.exports=s},125:e=>{e.exports=i},446:e=>{e.exports=l},56:e=>{e.exports=u},156:e=>{e.exports=c},658:e=>{e.exports=h}},f={};return function e(t){var r=f[t];if(void 0!==r)return r.exports;var n=f[t]={exports:{}};return p[t](n,n.exports,e),n.exports}(314)})()));
|