react-relay 11.0.1 → 13.0.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/ReactRelayContext.js +1 -1
- package/ReactRelayContext.js.flow +2 -3
- package/ReactRelayFragmentContainer.js.flow +24 -24
- package/ReactRelayFragmentMockRenderer.js.flow +1 -1
- package/ReactRelayLocalQueryRenderer.js.flow +6 -7
- package/ReactRelayPaginationContainer.js.flow +111 -58
- package/ReactRelayQueryFetcher.js.flow +9 -10
- package/ReactRelayQueryRenderer.js.flow +115 -81
- package/ReactRelayRefetchContainer.js.flow +41 -38
- package/ReactRelayTestMocker.js.flow +16 -14
- package/ReactRelayTypes.js.flow +10 -10
- package/RelayContext.js.flow +3 -3
- package/__flowtests__/ReactRelayFragmentContainer-flowtest.js.flow +1 -2
- package/__flowtests__/ReactRelayPaginationContainer-flowtest.js.flow +11 -7
- package/__flowtests__/ReactRelayRefetchContainer-flowtest.js.flow +10 -6
- package/__flowtests__/RelayModern-flowtest.js.flow +78 -46
- package/__flowtests__/RelayModernFlowtest_badref.graphql.js.flow +5 -4
- package/__flowtests__/RelayModernFlowtest_notref.graphql.js.flow +5 -4
- package/__flowtests__/RelayModernFlowtest_user.graphql.js.flow +4 -3
- package/__flowtests__/RelayModernFlowtest_users.graphql.js.flow +4 -3
- package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer.graphql.js.flow +72 -0
- package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer2.graphql.js.flow +72 -0
- package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtestQuery.graphql.js.flow +227 -0
- package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtest_viewer.graphql.js.flow +164 -0
- package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtestQuery.graphql.js.flow +227 -0
- package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtest_viewer.graphql.js.flow +164 -0
- package/__flowtests__/__generated__/RelayModernFlowtest_badref.graphql.js.flow +66 -0
- package/__flowtests__/__generated__/RelayModernFlowtest_notref.graphql.js.flow +66 -0
- package/__flowtests__/__generated__/RelayModernFlowtest_user.graphql.js.flow +59 -0
- package/__flowtests__/__generated__/RelayModernFlowtest_users.graphql.js.flow +61 -0
- package/assertFragmentMap.js.flow +2 -2
- package/buildReactRelayContainer.js.flow +15 -12
- package/getRootVariablesForFragments.js.flow +2 -4
- package/hooks.js +1 -1
- package/hooks.js.flow +5 -6
- package/index.js +1 -1
- package/index.js.flow +6 -7
- package/jest-react/enqueueTask.js.flow +56 -0
- package/jest-react/index.js.flow +12 -0
- package/jest-react/internalAct.js.flow +139 -0
- package/legacy.js +1 -1
- package/lib/ReactRelayFragmentContainer.js +21 -15
- package/lib/ReactRelayFragmentMockRenderer.js +2 -2
- package/lib/ReactRelayLocalQueryRenderer.js +7 -8
- package/lib/ReactRelayPaginationContainer.js +96 -38
- package/lib/ReactRelayQueryFetcher.js +3 -3
- package/lib/ReactRelayQueryRenderer.js +86 -53
- package/lib/ReactRelayRefetchContainer.js +38 -25
- package/lib/ReactRelayTestMocker.js +8 -9
- package/lib/RelayContext.js +3 -2
- package/lib/assertFragmentMap.js +3 -2
- package/lib/buildReactRelayContainer.js +14 -11
- package/lib/getRootVariablesForFragments.js +1 -2
- package/lib/hooks.js +5 -5
- package/lib/index.js +7 -7
- package/lib/jest-react/enqueueTask.js +53 -0
- package/lib/jest-react/index.js +13 -0
- package/lib/jest-react/internalAct.js +116 -0
- package/lib/multi-actor/ActorChange.js +30 -0
- package/lib/multi-actor/index.js +11 -0
- package/lib/multi-actor/useRelayActorEnvironment.js +29 -0
- package/lib/relay-hooks/EntryPointContainer.react.js +3 -3
- package/lib/relay-hooks/FragmentResource.js +347 -92
- package/lib/relay-hooks/LRUCache.js +1 -1
- package/lib/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js +4 -4
- package/lib/relay-hooks/MatchContainer.js +1 -1
- package/lib/relay-hooks/QueryResource.js +172 -29
- package/lib/relay-hooks/RelayEnvironmentProvider.js +5 -3
- package/lib/relay-hooks/SuspenseResource.js +130 -0
- package/lib/relay-hooks/loadQuery.js +42 -20
- package/lib/relay-hooks/preloadQuery_DEPRECATED.js +24 -15
- package/lib/relay-hooks/useBlockingPaginationFragment.js +4 -5
- package/lib/relay-hooks/useEntryPointLoader.js +2 -2
- package/lib/relay-hooks/useFetchTrackingRef.js +2 -1
- package/lib/relay-hooks/useFragment.js +8 -7
- package/lib/relay-hooks/useFragmentNode.js +4 -4
- package/lib/relay-hooks/useIsOperationNodeActive.js +3 -3
- package/lib/relay-hooks/useLazyLoadQuery.js +3 -3
- package/lib/relay-hooks/useLazyLoadQueryNode.js +10 -4
- package/lib/relay-hooks/useLoadMoreFunction.js +8 -12
- package/lib/relay-hooks/useMemoOperationDescriptor.js +2 -2
- package/lib/relay-hooks/useMemoVariables.js +2 -2
- package/lib/relay-hooks/useMutation.js +17 -6
- package/lib/relay-hooks/usePaginationFragment.js +2 -3
- package/lib/relay-hooks/usePreloadedQuery.js +8 -7
- package/lib/relay-hooks/useQueryLoader.js +30 -10
- package/lib/relay-hooks/useRefetchableFragmentNode.js +13 -17
- package/lib/relay-hooks/useRelayEnvironment.js +3 -3
- package/lib/relay-hooks/useStaticFragmentNodeWarning.js +2 -2
- package/lib/relay-hooks/useSubscribeToInvalidationState.js +2 -1
- package/lib/relay-hooks/useSubscription.js +10 -7
- package/multi-actor/ActorChange.js.flow +58 -0
- package/multi-actor/index.js.flow +14 -0
- package/multi-actor/useRelayActorEnvironment.js.flow +49 -0
- package/package.json +3 -2
- package/react-relay-hooks.js +2 -2
- package/react-relay-hooks.min.js +2 -2
- package/react-relay-legacy.js +2 -2
- package/react-relay-legacy.min.js +2 -2
- package/react-relay.js +2 -2
- package/react-relay.min.js +2 -2
- package/relay-hooks/EntryPointContainer.react.js.flow +8 -15
- package/relay-hooks/EntryPointTypes.flow.js.flow +24 -25
- package/relay-hooks/FragmentResource.js.flow +368 -94
- package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +32 -46
- package/relay-hooks/MatchContainer.js.flow +3 -2
- package/relay-hooks/QueryResource.js.flow +216 -25
- package/relay-hooks/RelayEnvironmentProvider.js.flow +14 -4
- package/relay-hooks/SuspenseResource.js.flow +115 -0
- package/relay-hooks/__flowtests__/EntryPointTypes/EntryPointElementConfig-flowtest.js.flow +4 -3
- package/relay-hooks/__flowtests__/EntryPointTypes/NestedEntrypoints-flowtest.js.flow +1 -1
- package/relay-hooks/__flowtests__/useBlockingPaginationFragment-flowtest.js.flow +10 -9
- package/relay-hooks/__flowtests__/useFragment-flowtest.js.flow +8 -7
- package/relay-hooks/__flowtests__/usePaginationFragment-flowtest.js.flow +10 -9
- package/relay-hooks/__flowtests__/useRefetchableFragment-flowtest.js.flow +10 -9
- package/relay-hooks/__flowtests__/utils.js.flow +8 -12
- package/relay-hooks/loadEntryPoint.js.flow +6 -12
- package/relay-hooks/loadQuery.js.flow +49 -31
- package/relay-hooks/preloadQuery_DEPRECATED.js.flow +30 -21
- package/relay-hooks/prepareEntryPoint_DEPRECATED.js.flow +6 -12
- package/relay-hooks/useBlockingPaginationFragment.js.flow +13 -11
- package/relay-hooks/useEntryPointLoader.js.flow +7 -10
- package/relay-hooks/useFetchTrackingRef.js.flow +2 -2
- package/relay-hooks/useFragment.js.flow +26 -46
- package/relay-hooks/useFragmentNode.js.flow +5 -7
- package/relay-hooks/useIsOperationNodeActive.js.flow +3 -5
- package/relay-hooks/useIsParentQueryActive.js.flow +3 -4
- package/relay-hooks/useLazyLoadQuery.js.flow +9 -10
- package/relay-hooks/useLazyLoadQueryNode.js.flow +19 -13
- package/relay-hooks/useLoadMoreFunction.js.flow +20 -29
- package/relay-hooks/useMemoOperationDescriptor.js.flow +5 -7
- package/relay-hooks/useMemoVariables.js.flow +6 -6
- package/relay-hooks/useMutation.js.flow +26 -26
- package/relay-hooks/usePaginationFragment.js.flow +38 -44
- package/relay-hooks/usePreloadedQuery.js.flow +18 -14
- package/relay-hooks/useQueryLoader.js.flow +41 -22
- package/relay-hooks/useRefetchableFragment.js.flow +7 -8
- package/relay-hooks/useRefetchableFragmentNode.js.flow +24 -32
- package/relay-hooks/useRelayEnvironment.js.flow +2 -4
- package/relay-hooks/useStaticFragmentNodeWarning.js.flow +2 -3
- package/relay-hooks/useSubscribeToInvalidationState.js.flow +3 -6
- package/relay-hooks/useSubscription.js.flow +20 -10
- package/lib/relay-hooks/getPaginationMetadata.js +0 -41
- package/lib/relay-hooks/getPaginationVariables.js +0 -67
- package/lib/relay-hooks/getRefetchMetadata.js +0 -36
- package/lib/relay-hooks/getValueAtPath.js +0 -51
- package/relay-hooks/getPaginationMetadata.js.flow +0 -74
- package/relay-hooks/getPaginationVariables.js.flow +0 -110
- package/relay-hooks/getRefetchMetadata.js.flow +0 -80
- package/relay-hooks/getValueAtPath.js.flow +0 -46
package/react-relay.min.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* Relay
|
2
|
+
* Relay v13.0.0-rc.1
|
3
3
|
*
|
4
4
|
* Copyright (c) Facebook, Inc. and its 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,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("relay-runtime"),require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("react-relay/ReactRelayContext"),require("fbjs/lib/mapObject"),require("@babel/runtime/helpers/toConsumableArray")):"function"==typeof define&&define.amd?define(["react","relay-runtime","fbjs/lib/invariant","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","fbjs/lib/warning","@babel/runtime/helpers/defineProperty","fbjs/lib/areEqual","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/extends","@babel/runtime/helpers/createForOfIteratorHelper","react-relay/ReactRelayContext","fbjs/lib/mapObject","@babel/runtime/helpers/toConsumableArray"],t):"object"==typeof exports?exports.ReactRelay=t(require("react"),require("relay-runtime"),require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("react-relay/ReactRelayContext"),require("fbjs/lib/mapObject"),require("@babel/runtime/helpers/toConsumableArray")):e.ReactRelay=t(e.react,e["relay-runtime"],e["fbjs/lib/invariant"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["react-relay/ReactRelayContext"],e["fbjs/lib/mapObject"],e["@babel/runtime/helpers/toConsumableArray"])}(window,(function(e,t,r,n,o,i,a,u,s,c,l,f,d,p,h,v){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=39)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=r(26),o=r(2),i=r(0).useContext;e.exports=function(){var e=i(n);return null==e&&o(!1),e.environment}},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(3)(r(5)),o=r(0),i=r(2),a=(r(6),r(1)),u=a.PreloadableQueryRegistry,s=a.ReplaySubject,c=a.createOperationDescriptor,l=a.getRequest,f=a.getRequestIdentifier,d=a.Observable,p=a.RelayFeatureFlags,h=a.__internal.fetchQueryDeduped,v=null,m=100001;e.exports={loadQuery:function(e,t,r,a,v){var y,_,b;null===(y=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===y||null===(_=y.ReactCurrentDispatcher)||void 0===_||_.current,m++;var g,R,C,P,x,S,F=null!==(b=null==a?void 0:a.fetchPolicy)&&void 0!==b?b:"store-or-network",E=(0,n.default)((0,n.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),q=!1,D=function(t,r){return q=!0,e.executeWithSource({operation:t,source:r})},k=new s,O=d.create((function(e){return k.subscribe(e)})),I=null,w=!1,N=function(t){var n;w=!0;var o=new s;if(!0===p.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+f(t,r);n=h(e,i,(function(){return e.getNetwork().execute(t,r,E)}))}else{n=e.getNetwork().execute(t,r,E)}var a=n.subscribe({error:function(e){I=e,o.error(e)},next:function(e){o.next(e)},complete:function(){o.complete()}}).unsubscribe;return R=a,d.create((function(e){var t=o.subscribe(e);return function(){t.unsubscribe(),R()}}))},A=function(t,r){!0===p.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(w=!0);var n=h(e,t.request.identifier,r).subscribe({error:function(e){k.error(e)},next:function(e){k.next(e)},complete:function(){k.complete()}});C=n.unsubscribe},Q=function(t){var n=c(t,r,E);(g=e.retain(n),"store-only"!==F)&&(("store-or-network"!==F||"available"!==e.check(n).status)&&A(n,(function(){var e=N(t.params);return D(n,e)})))};if("PreloadableConcreteRequest"===t.kind){null===(S=(P=t.params).id)&&i(!1);var M=u.get(S);if(null!=M)Q(M);else{var j="store-only"===F?null:N(P),U=u.onLoad(S,(function(t){x();var n=c(t,r,E);g=e.retain(n),null!=j&&A(n,(function(){return D(n,j)}))}));x=U.dispose}}else{var T=l(t);S=null!=(P=T.params).cacheID?P.cacheID:P.id,Q(T)}var L=!1;return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:v,dispose:function(){L||(q?C&&C():R&&R(),g&&g.dispose(),x&&x(),L=!0)},fetchKey:m,id:S,get isDisposed(){return L},get networkError(){return I},name:P.name,networkCacheConfig:E,fetchPolicy:F,source:w?O:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===v&&(v=null===(e=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(t=e.ReactCurrentDispatcher)||void 0===t?void 0:t.current)}}},function(e,t,r){"use strict";var n=r(0),o=r(1).__internal.createRelayContext;e.exports=o(n)},function(e,t){e.exports=a},function(e,t){e.exports=u},function(e,t,r){"use strict";var n=r(0),o=n.useEffect,i=n.useRef;e.exports=function(){var e=i(!0);return o((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,t){e.exports=s},function(e,t,r){"use strict";function n(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:n,getContainerName:function(e){return"Relay("+n(e)+")"}}},function(e,t,r){"use strict";var n=r(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,t){e.exports=c},function(e,t){e.exports=l},function(e,t,r){"use strict";var n=r(3)(r(18)),o=r(0),i=r(8),a=r(19),u=r(42),s=r(2),c=r(27),l=r(43),f=r(13),d=f.getComponentName,p=f.getContainerName,h=r(1).getFragment;e.exports=function(e,t,r){var f=p(e);u(d(e),t);var v=r(e,c(t,h));function m(e,t){var r,u=l(i);null==u&&s(!1);var c=l(a);return o.createElement(v,(0,n.default)({},e,{__relayContext:u,__rootIsQueryRenderer:null!==(r=null==c?void 0:c.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}return v.displayName=f,m.displayName=f,o.forwardRef(m)}},function(e,t){e.exports=f},function(e,t,r){"use strict";var n=r(0);e.exports=n.createContext({rootIsQueryRenderer:!1})},function(e,t,r){"use strict";var n=r(3)(r(5)),o=r(1).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(i){var a,u,s,c=e[i],l=t[i],f=o(c,l),d=null!=f&&"PluralReaderSelector"===f.kind?null!==(a=null===(u=f.selectors[0])||void 0===u?void 0:u.owner.variables)&&void 0!==a?a:{}:null!==(s=null==f?void 0:f.owner.variables)&&void 0!==s?s:{};r=(0,n.default)((0,n.default)({},r),d)})),r}},function(e,t,r){"use strict";var n=r(2),o=r(44);function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&o(e.environment)}e.exports={assertRelayContext:function(e){return i(e)||n(!1),e},isRelayContext:i}},function(e,t,r){"use strict";var n=r(3)(r(9)),o=r(2),i=r(1),a=i.createOperationDescriptor,u=i.isRelayModernEnvironment,s=i.__internal.fetchQuery,c=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_callOnDataChangeWhenSet",!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.execute=function(e){var t=this,r=e.environment,n=e.operation,o=e.preservePreviousReferences,i=void 0!==o&&o,a=r.retain(n),c=function(){t._selectionReferences=t._selectionReferences.concat(a)},l=function(){i||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(a)},f=function(){t._selectionReferences=t._selectionReferences.concat(a)};return u(r)?s(r,n).do({error:c,complete:l,unsubscribe:f}):r.execute({operation:n}).do({error:c,complete:l,unsubscribe:f})},t.setOnDataChange=function(e){this._fetchOptions||o(!1),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._callOnDataChangeWhenSet&&(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,i=e.operation,u=e.onDataChange,s=!1;this.disposeRequest();var c=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:c||[],operation:i},u&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(u)&&this._fetchOptions.onDataChangeCallbacks.push(u);var l=t?a(i.request.node,i.request.variables,t):i,f=this.execute({environment:o,operation:l}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._callOnDataChangeWhenSet=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:s})},error:function(e){n._callOnDataChangeWhenSet=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;s?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){f.unsubscribe()}},s=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||o(!1),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);var n=this._fetchOptions,i=n.environment,a=n.onDataChangeCallbacks,u=n.operation;if(!this._snapshot&&(this._snapshot=i.lookup(u.fragment),this._rootSubscription=i.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(a))){var s=this._snapshot;a.forEach((function(e){return e({snapshot:s})}))}},e}();e.exports=c},function(e,t){e.exports=d},function(e,t,r){"use strict";var n=r(4),o=(r(6),r(29).getFragmentResourceForEnvironment),i=r(0),a=i.useEffect,u=i.useRef,s=i.useState,c=r(1).getFragmentIdentifier;e.exports=function(e,t,r){var i=n(),l=o(i),f=u(!1),d=s(0)[1],p=c(e,t),h=l.readWithIdentifier(e,t,p,r),v=u(!0);function m(){!1!==f.current&&!1!==v.current&&d((function(e){return e+1}))}return a((function(){f.current=!0;var e=l.subscribe(h,m);return function(){f.current=!1,e.dispose()}}),[i,p]),{data:h.data,disableStoreUpdates:function(){v.current=!1},enableStoreUpdates:function(){v.current=!0,l.checkMissedUpdates(h)[0]&&m()}}}},function(e,t,r){"use strict";r(6),r(0).useRef;e.exports=function(e,t){}},function(e,t){e.exports=p},function(e,t){e.exports=h},function(e,t,r){"use strict";var n=r(7).loadQuery;e.exports=function e(t,r,o){var i=null;null==r.root.getModuleIfRequired()&&(i=r.root.load());var a=r.getPreloadProps(o),u=a.queries,s=a.entryPoints,c=a.extraProps,l={},f={};null!=u&&Object.keys(u).forEach((function(e){var r=u[e],o=r.environmentProviderOptions,i=r.options,a=r.parameters,s=r.variables,c=t.getEnvironment(o);l[e]=n(c,a,s,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},o)})),null!=s&&Object.keys(s).forEach((function(r){var n=s[r];if(null!=n){var o=n.entryPoint,i=n.entryPointParams;f[r]=e(t,o,i)}}));var d=!1;return{dispose:function(){d||(null!=l&&Object.values(l).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=c?c:null,getComponent:function(){var e,t=r.root.getModuleIfRequired();if(null==t)throw i=null!==(e=i)&&void 0!==e?e:r.root.load();return t},get isDisposed(){return d},queries:l,rootModuleID:r.root.getModuleId()}}},function(e,t,r){"use strict";var n=r(3),o=n(r(5)),i=n(r(52)),a=r(30),u=r(2),s=r(27),c=r(1),l=c.__internal.getPromiseForActiveRequest,f=c.getFragmentIdentifier,d=c.getSelector,p=c.isPromise,h=c.recycleNodesInto,v=c.reportMissingRequiredFields,m="function"==typeof WeakMap,y=Object.freeze([]);function _(e,t){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map((function(e){return e.data}))}:{cacheKey:e,snapshot:t,data:t.data}}var b=function(){function e(e){this._environment=e,this._cache=a.create(1e6)}var t=e.prototype;return t.read=function(e,t,r,n){return this.readWithIdentifier(e,t,f(e,t),r,n)},t.readWithIdentifier=function(e,t,r,n,o){var i,a=this._environment;if(null==t)return{cacheKey:r,data:null,snapshot:null};if(!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural)&&(Array.isArray(t)||u(!1),0===t.length))return{cacheKey:r,data:y,snapshot:y};var s=this._cache.get(r);if(null!=s){if(p(s))throw s;if(s.snapshot)return this._reportMissingRequiredFieldsInSnapshot(s.snapshot),s}var c=d(e,t);null==c&&u(!1);var l="PluralReaderSelector"===c.kind?c.selectors.map((function(e){return a.lookup(e)})):a.lookup(c),f="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner;if(!function(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}(l)){this._reportMissingRequiredFieldsInSnapshot(l);var h=_(r,l);return this._cache.set(r,h),h}var v=this._getAndSavePromiseForFragmentRequestInFlight(r,f);if(null!=v)throw v;return this._reportMissingRequiredFieldsInSnapshot(l),_(r,l)},t._reportMissingRequiredFieldsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){null!=e.missingRequiredFields&&v(t._environment,e.missingRequiredFields)})):null!=e.missingRequiredFields&&v(this._environment,e.missingRequiredFields)},t.readSpec=function(e,t,r){var n=this;return s(e,(function(e,o){var i=t[o];return n.read(e,i,r,o)}))},t.subscribe=function(e,t){var r=this,n=this._environment,o=e.cacheKey,i=e.snapshot;if(!i)return{dispose:function(){}};var a=this.checkMissedUpdates(e),s=a[0],c=a[1];s&&t();var l=[];return Array.isArray(i)?(Array.isArray(c)||u(!1),c.forEach((function(e,i){l.push(n.subscribe(e,(function(e){r._updatePluralSnapshot(o,c,e,i),t()})))}))):((null==c||Array.isArray(c))&&u(!1),l.push(n.subscribe(c,(function(e){r._cache.set(o,_(o,e)),t()})))),{dispose:function(){l.map((function(e){return e.dispose()})),r._cache.delete(o)}}},t.subscribeSpec=function(e,t){var r=this,n=Object.keys(e).map((function(n){return r.subscribe(e[n],t)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},t.checkMissedUpdates=function(e){var t=this._environment,r=e.cacheKey,n=e.snapshot;if(!n)return[!1,null];var i=!1;if(Array.isArray(n)){var a=[];return n.forEach((function(e,r){var n=t.lookup(e.selector),u=e.data,s=n.data,c=h(u,s);c!==u&&(n=(0,o.default)((0,o.default)({},n),{},{data:c}),i=!0),a[r]=n})),i&&this._cache.set(r,_(r,a)),[i,a]}var u=t.lookup(n.selector),s=n.data,c=u.data,l=h(s,c);return u={data:l,isMissingData:u.isMissingData,seenRecords:u.seenRecords,selector:u.selector,missingRequiredFields:u.missingRequiredFields},l!==s&&(this._cache.set(r,_(r,u)),i=!0),[i,u]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some((function(r){return t.checkMissedUpdates(e[r])[0]}))},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t){var r,n=this,o=this._environment,i=null!==(r=l(o,t))&&void 0!==r?r:function(e,t){return e.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(t)}(o,t);if(!i)return null;var a=i.then((function(){n._cache.delete(e)})).catch((function(t){n._cache.delete(e)}));return this._cache.set(e,a),a.displayName="Relay("+t.node.params.name+")",a},t._updatePluralSnapshot=function(e,t,r,n){var o=this._cache.get(e);if(p(o))g(r.selector.node.name);else{var a=null==o?void 0:o.snapshot;if(!a||Array.isArray(a)){var u=a?(0,i.default)(a):(0,i.default)(t);u[n]=r,this._cache.set(e,_(e,u))}else g(r.selector.node.name)}},e}();function g(e){u(!1)}function R(e){return new b(e)}var C=m?new WeakMap:new Map;e.exports={createFragmentResource:R,getFragmentResourceForEnvironment:function(e){var t=C.get(e);if(t)return t;var r=R(e);return C.set(e,r),r}}},function(e,t,r){"use strict";var n=r(2),o=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new o(e)}}},function(e,t,r){"use strict";var n=r(14),o=r(0),i=r(32),a=r(24),u=r(4),s=r(33),c=s.getQueryResourceForEnvironment,l=s.getQueryCacheIdentifier,f=o.useContext,d=o.useEffect,p=o.useState,h=o.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,o=e.fetchObservable,s=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=u(),_=f(n),b=c(y),g=p(0),R=g[0],C=g[1],P=i(),x=P.startFetch,S=P.completeFetch,F="".concat(R,"-").concat(null!=v?v:""),E=l(y,t,s,m,F),q=_.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(E,t,o,s,m,{start:x,complete:S,error:S},_)})),D=h(!1);d((function(){return function(){D.current=!0}}),[]),d((function(){if(!0===D.current)return D.current=!1,void C((function(e){return e+1}));var e=b.retain(q,_);return function(){e.dispose()}}),[y,E]);var k=q.fragmentNode,O=q.fragmentRef;return a(k,O,r).data}},function(e,t,r){"use strict";var n=r(0),o=n.useCallback,i=n.useEffect,a=n.useRef;e.exports=function(){var e=a(null),t=a(!1),r=o((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),n=o((function(r){e.current=r,t.current=!0}),[]),u=o((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:n,disposeFetch:r,completeFetch:u}}},function(e,t,r){"use strict";var n=r(3),o=n(r(5)),i=n(r(9)),a=r(30),u=r(2),s=r(1).isPromise,c="function"==typeof WeakMap;function l(e,t,r,n,o){var i=null!=r?r:"store-or-network",a=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(i,"-").concat(a,"-").concat(t.request.identifier);return null!=o?"".concat(u,"-").concat(o):u}function f(e,t){var r={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var d=2e5;function p(e,t,r,n,o){var i=r,a=0,s=null,c=null,l=n,f=function(e){return 1===++a&&(s=e.retain(t)),{dispose:function(){0===(a=Math.max(0,a-1))&&(null==s&&u(!1),s.dispose(),s=null),o(p)}}},p={cacheIdentifier:e,id:d++,getValue:function(){return i},setValue:function(e){i=e},getRetainCount:function(){return a},getNetworkSubscription:function(){return l},setNetworkSubscription:function(e){null!=l&&l.unsubscribe(),l=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};var t=f(e),r=null,n=function(){clearTimeout(r),r=null,c=null,t.dispose(),a<=0&&null!=l&&l.unsubscribe()};return r=setTimeout(n,3e5),null!=c&&c(),c=n,{dispose:function(){c&&c()}}},permanentRetain:function(e){var t=f(e);return null!=c&&(c(),c=null),{dispose:function(){t.dispose(),a<=0&&null!=l&&l.unsubscribe()}}}};return p}var h=function(){function e(e){var t=this;(0,i.default)(this,"_clearCacheEntry",(function(e){e.getRetainCount()<=0&&t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=a.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,o,i,a){var u=l(this._environment,e,r,n,i);return this.prepareWithIdentifier(u,e,t,r,n,o,a)},t.prepareWithIdentifier=function(e,t,r,n,i,a,u){var c=this._environment,l=null!=n?n:"store-or-network",f=null!=i?i:c.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null;null==d&&(d=this._fetchAndSaveQuery(e,t,r,l,f,u,(0,o.default)((0,o.default)({},a),{},{unsubscribe:function(e){null!=p&&p.dispose();var t=null==a?void 0:a.unsubscribe;t&&t(e)}}))),p=d.temporaryRetain(c);var h=d.getValue();if(s(h)||h instanceof Error)throw h;return h},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,o=e.operation,i=this._getOrCreateCacheEntry(n,o,e,null),a=i.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:i.id}),{dispose:function(){a.dispose()}}},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var o=l(this._environment,e,t,r,n);return this._cache.get(o)},t._getOrCreateCacheEntry=function(e,t,r,n){var o=this._cache.get(e);return null==o&&(o=p(e,t,r,n,this._clearCacheEntry),this._cache.set(e,o)),o},t._fetchAndSaveQuery=function(e,t,r,n,o,i,a){var s,c,l=this,d=this._environment,h=d.check(t),v=h.status,m="available"===v,y=m||"partial"===o&&"stale"!==v,_=function(){};switch(n){case"store-only":s=!1,c=!0;break;case"store-or-network":s=!m,c=y;break;case"store-and-network":s=!0,c=y;break;case"network-only":default:s=!0,c=!1}if(c){var b=f(t,e),g=p(e,t,b,null,this._clearCacheEntry);this._cache.set(e,g)}if(s){var R,C=f(t,e);r.subscribe({start:function(t){R=t;var r=l._cache.get(e);r&&r.setNetworkSubscription(R);var n=null==a?void 0:a.start;n&&n(t)},next:function(){var r=d.lookup(t.fragment);l._getOrCreateCacheEntry(e,t,C,R).setValue(C),_();var n=null==a?void 0:a.next;n&&n(r)},error:function(r){var n=l._getOrCreateCacheEntry(e,t,r,R);n.setValue(r),_(),R=null,n.setNetworkSubscription(null);var o=null==a?void 0:a.error;o&&o(r)},complete:function(){_(),R=null;var t=l._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==a?void 0:a.complete;r&&r()},unsubscribe:null==a?void 0:a.unsubscribe});var P=this._cache.get(e);if(!P){var x=new Promise((function(e){_=e}));x.displayName="Relay("+t.fragment.node.name+")",P=p(e,t,x,R,this._clearCacheEntry),this._cache.set(e,P)}}else{var S=null==a?void 0:a.complete;S&&S()}var F=this._cache.get(e);return null==F&&u(!1),d.__log({name:"queryresource.fetch",resourceID:F.id,operation:t,profilerContext:i,fetchPolicy:n,renderPolicy:o,queryAvailability:h,shouldFetch:s}),F},e}();function v(e){return new h(e)}var m=c?new WeakMap:new Map;e.exports={createQueryResource:v,getQueryResourceForEnvironment:function(e){var t=m.get(e);if(t)return t;var r=v(e);return m.set(e,r),r},getQueryCacheIdentifier:l}},function(e,t,r){"use strict";var n=r(0),o=r(54),i=r(1),a=i.createOperationDescriptor,u=i.getRequest,s=n.useMemo;e.exports=function(e,t,r){var n=o(t)[0],i=o(r||{})[0];return s((function(){return a(u(e),n,i)}),[e,n,i])}},function(e,t,r){"use strict";var n=r(2);e.exports=function(e,t){var r,o;!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)&&n(!1);var i=null===(o=e.metadata)||void 0===o?void 0:o.refetch;null==i&&n(!1);var a=i.operation.default?i.operation.default:i.operation,u=i.fragmentPathInResult;"string"==typeof a&&n(!1);var s=i.identifierField;return null!=s&&"string"!=typeof s&&n(!1),{fragmentRefPathInResponse:u,identifierField:s,refetchableRequest:a,refetchMetadata:i}}},function(e,t,r){"use strict";var n=r(3)(r(23)),o=r(2);e.exports=function(e,t){var r,i=e,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var u=r.value;if(null==i)return null;"number"==typeof u?(Array.isArray(i)||o(!1),i=i[u]):(("object"!=typeof i||Array.isArray(i))&&o(!1),i=i[u])}}catch(e){a.e(e)}finally{a.f()}return i}},function(e,t,r){"use strict";var n=r(3)(r(5)),o=r(14),i=r(35),a=r(36),u=r(2),s=r(24),c=r(11),l=r(38),f=r(4),d=(r(6),r(29).getFragmentResourceForEnvironment),p=r(33).getQueryResourceForEnvironment,h=r(0),v=h.useCallback,m=h.useContext,y=h.useReducer,_=r(1),b=_.__internal.fetchQuery,g=_.createOperationDescriptor,R=_.getFragmentIdentifier,C=_.getSelector;function P(e,t){switch(t.type){case"refetch":var r;return(0,n.default)((0,n.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}e.exports=function(e,t,r){var h=f(),_=i(e,r),x=_.refetchableRequest,S=_.fragmentRefPathInResponse,F=_.identifierField,E=R(e,t),q=y(P,{fetchPolicy:void 0,mirroredEnvironment:h,mirroredFragmentIdentifier:E,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=q[0],k=q[1],O=D.fetchPolicy,I=D.mirroredEnvironment,w=D.mirroredFragmentIdentifier,N=D.onComplete,A=D.refetchEnvironment,Q=D.refetchQuery,M=D.renderPolicy,j=null!=A?A:h,U=p(j),T=d(j),L=m(o),V=j!==I||E!==w,W=l(x),K=W[0],z=W[1],H=W[2],B=t;if(V)k({type:"reset",environment:j,fragmentIdentifier:E}),H();else if(null!=Q&&null!=K){0;var G=function(e){N&&N(null!=e?e:null)},Y=null!=K.source?K.source:b(j,Q),X=L.wrapPrepareQueryResource((function(){return U.prepare(Q,Y,O,M,{error:G,complete:function(){G()}},K.fetchKey,L)})),J=T.read(X.fragmentNode,X.fragmentRef,r).data;null==J&&u(!1),B=a(J,S)}var Z=s(e,B,r),$=Z.data,ee=Z.disableStoreUpdates,te=Z.enableStoreUpdates;return{fragmentData:$,fragmentRef:B,refetch:function(e,t,r,o,i,a,u,s,l,f,d){var p=c(),h=null!=s&&null!=o&&"object"==typeof o?o[s]:null;return v((function(e,o){if(!0!==p.current)return{dispose:function(){}};var i,u,c=null==o?void 0:o.__environment,v=null==o?void 0:o.fetchPolicy,m=null==o?void 0:o.UNSTABLE_renderPolicy,y=null==o?void 0:o.onComplete,_=C(a,f);if(null==_)i={},u={};else if("PluralReaderSelector"===_.kind){var b,R,P,x;i=null!==(b=null===(R=_.selectors[0])||void 0===R?void 0:R.owner.variables)&&void 0!==b?b:{},u=null!==(P=null===(x=_.selectors[0])||void 0===x?void 0:x.variables)&&void 0!==P?P:{}}else i=_.owner.variables,u=_.variables;var S=(0,n.default)((0,n.default)((0,n.default)({},i),u),e);null==s||e.hasOwnProperty("id")||(S.id=h);var F=g(d,S,{force:!0});return l(F.request.variables,{fetchPolicy:v,__environment:c,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:v,onComplete:y,refetchEnvironment:c,refetchQuery:F,renderPolicy:m}),{dispose:r}}),[i,t,r,h])}(0,k,H,$,E,e,0,F,z,t,x),disableStoreUpdates:ee,enableStoreUpdates:te}}},function(e,t,r){"use strict";var n=r(3)(r(23)),o=r(11),i=r(4),a=r(7),u=a.loadQuery,s=a.useTrackLoadQueryInRender,c=r(0),l=c.useCallback,f=c.useEffect,d=c.useRef,p=c.useState,h={kind:"NullQueryReference"};e.exports=function(e,t){var r=null!=t?t:h,a=i();s();var c=o(),v=d(new Set([r])),m=p((function(){return r})),y=m[0],_=m[1],b=p((function(){return r})),g=b[0],R=b[1];r!==g&&(v.current.add(r),R(r),_(r));var C=l((function(){c.current&&(v.current.add(h),_(h))}),[c]),P=l((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(c.current){var o,i=u(null!==(o=null==r?void 0:r.__environment)&&void 0!==o?o:a,e,t,n);v.current.add(i),_(i)}}),[a,e,_,c]),x=d(!1);return f((function(){return function(){x.current=!0}}),[]),f((function(){if(!0===x.current)return x.current=!1,void("NullQueryReference"!==y.kind&&P(y.variables,{fetchPolicy:y.fetchPolicy,networkCacheConfig:y.networkCacheConfig}));var e=v.current;if(c.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o===y)break;e.delete(o),"NullQueryReference"!==o.kind&&o.dispose&&o.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[y,c,P]),f((function(){return function(){var e,t=(0,n.default)(v.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullQueryReference"!==r.kind&&r.dispose&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullQueryReference"===y.kind?null:y,P,C]}},function(e,t,r){"use strict";var n=r(40),o=r(8),i=r(41),a=r(45),u=r(46),s=r(47),c=r(48),l=r(49),f=r(1),d=r(28),p=r(50),h=r(51),v=r(53),m=r(55),y=r(56),_=r(61),b=r(38),g=r(62),R=r(4),C=r(63),P=r(64),x=r(7).loadQuery;e.exports={ConnectionHandler:f.ConnectionHandler,QueryRenderer:s,LocalQueryRenderer:a,MutationTypes:f.MutationTypes,RangeOperations:f.RangeOperations,ReactRelayContext:o,applyOptimisticMutation:f.applyOptimisticMutation,commitLocalUpdate:f.commitLocalUpdate,commitMutation:f.commitMutation,createFragmentContainer:i.createContainer,createPaginationContainer:u.createContainer,createRefetchContainer:c.createContainer,fetchQuery_DEPRECATED:f.fetchQuery_DEPRECATED,graphql:f.graphql,readInlineData:f.readInlineData,requestSubscription:f.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:l,fetchQuery:f.fetchQuery,loadQuery:x,loadEntryPoint:d,useFragment:h,useLazyLoadQuery:v,useEntryPointLoader:p,useQueryLoader:b,useMutation:m,usePaginationFragment:y,usePreloadedQuery:_,useRefetchableFragment:g,useRelayEnvironment:R,useSubscribeToInvalidationState:C,useSubscription:P}},function(e,t,r){"use strict";var n=r(14),o=r(0),i=r(4),a=(r(6),r(0)),u=a.useContext,s=a.useEffect;e.exports=function(e){var t=e.entryPointReference,r=e.props,a=t.getComponent,c=t.queries,l=t.entryPoints,f=t.extraProps,d=t.rootModuleID,p=a(),h=u(n),v=i();return s((function(){v.__log({name:"entrypoint.root.consume",profilerContext:h,rootModuleID:d})}),[v,h,d]),o.createElement(p,{entryPoints:l,extraProps:f,props:r,queries:c})}},function(e,t,r){"use strict";var n=r(3),o=n(r(5)),i=n(r(15)),a=n(r(16)),u=n(r(12)),s=n(r(9)),c=r(0),l=r(10),f=r(17),d=(r(20),r(13).getContainerName),p=r(21).assertRelayContext,h=r(1),v=h.createFragmentSpecResolver,m=h.getDataIDsFromObject,y=h.isScalarAndEqual;function _(e,t){var r,n,f=d(e);return n=r=function(r){function n(e){var n,o;o=r.call(this,e)||this,(0,s.default)((0,a.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:b(t.relayProp.environment)}:null}))}));var i=p(e.__relayContext),u=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,c=v(i,f,t,e,u);return o.state={data:c.resolve(),prevProps:e,prevPropsContext:i,relayProp:b(i.environment),resolver:c},o}(0,u.default)(n,r),n.getDerivedStateFromProps=function(e,r){var n,o=r.prevProps,i=p(e.__relayContext),a=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,u=m(t,o),s=m(t,e),c=r.resolver;if(r.prevPropsContext.environment!==i.environment||!l(u,s))return{data:(c=v(i,f,t,e,a)).resolve(),prevPropsContext:i,prevProps:e,relayProp:b(i.environment),resolver:c};c.setProps(e);var d=c.resolve();return d!==r.data?{data:d,prevProps:e,prevPropsContext:i,relayProp:b(i.environment)}:null};var d=n.prototype;return d.componentDidMount=function(){this._subscribeToNewResolver(),this._rerenderIfStoreHasChanged()},d.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver&&(t.resolver.dispose(),this._subscribeToNewResolver()),this._rerenderIfStoreHasChanged()},d.componentWillUnmount=function(){this.state.resolver.dispose()},d.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 i=n[o];if("__relayContext"===i){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(i)&&!y(e[i],this.props[i]))return!0}return!1},d._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},d._subscribeToNewResolver=function(){this.state.resolver.setCallback(this._handleFragmentDataUpdate)},d.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,i.default)(t,["componentRef","__relayContext","__rootIsQueryRenderer"]));return c.createElement(e,(0,o.default)((0,o.default)((0,o.default)({},n),this.state.data),{},{ref:r,relay:this.state.relayProp}))},n}(c.Component),(0,s.default)(r,"displayName",f),n}function b(e){return{environment:e}}e.exports={createContainer:function(e,t){return f(e,t,_)}}},function(e,t,r){"use strict";var n=r(2);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1),t)if(t.hasOwnProperty(r)){var o=t[r];(!o||"object"!=typeof o&&"function"!=typeof o)&&n(!1)}}},function(e,t,r){"use strict";var n=r(0).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=n.ReactCurrentDispatcher,i=n.ReactCurrentOwner;e.exports=function(e){return(null!=o?o.current:i.currentDispatcher).readContext(e)}},function(e,t,r){"use strict";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}},function(e,t,r){"use strict";var n=r(0),o=r(8),i=r(19),a=n.useLayoutEffect,u=n.useState,s=n.useRef,c=n.useMemo,l=r(1),f=l.createOperationDescriptor,d=(l.deepFreeze,l.getRequest),p=r(10),h={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,l=e.environment,v=e.query,m=e.variables,y=e.render,_=(t=m,r=n.useRef(t),p(r.current,t)||(r.current=t),r.current),b=c((function(){var e=d(v);return f(e,_)}),[v,_]),g=c((function(){return{environment:l}}),[l]),R=s(null),C=u(null)[1],P=s(null),x=c((function(){l.check(b);var e=l.lookup(b.fragment);R.current=e.data;var t=l.retain(b),r=l.subscribe(e,(function(e){R.current=e.data,C(R.current)})),n=!1;return P.current&&P.current(),P.current=function(){n||(n=!0,P.current=null,t.dispose(),r.dispose())},e}),[l,b]);return a((function(){var e=P.current;return function(){e&&e()}}),[x]),n.createElement(o.Provider,{value:g},n.createElement(i.Provider,{value:h},y({props:R.current})))}},function(e,t,r){"use strict";var n=r(3),o=n(r(18)),i=n(r(15)),a=n(r(16)),u=n(r(12)),s=n(r(9)),c=n(r(5)),l=r(0),f=r(8),d=r(22),p=r(10),h=r(17),v=r(20),m=r(2),y=(r(6),r(13)),_=y.getComponentName,b=y.getContainerName,g=r(21).assertRelayContext,R=r(1),C=R.ConnectionInterface,P=R.Observable,x=R.createFragmentSpecResolver,S=R.createOperationDescriptor,F=R.getDataIDsFromObject,E=R.getRequest,q=(R.getSelector,R.getVariablesFromObject),D=R.isScalarAndEqual;function k(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}function O(e,t,r){_(e);var n,h,y=b(e),R=function(e){var t=null,r=!1;for(var n in e){var o=e[n],i=o.metadata&&o.metadata.connection;void 0!==o.metadata&&(r=!0),i&&(1!==i.length&&m(!1),t&&m(!1),t=(0,c.default)((0,c.default)({},i[0]),{},{fragmentName:n}))}return r&&null===t&&m(!1),t||{}}(t),O=r.getConnectionFromProps||function(e){var t=e.path;return t||m(!1),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}}(R),I=r.direction||R.direction;I||m(!1);var w=r.getFragmentVariables||function(e){var t=e.count;return t||m(!1),function(e,r){return(0,c.default)((0,c.default)({},e),{},(0,s.default)({},t,r))}}(R);return h=n=function(n){function h(e){var r,o;o=n.call(this,e)||this,(0,s.default)((0,a.default)(o),"_handleFragmentDataUpdate",(function(){o.setState({data:o._resolver.resolve()})})),(0,s.default)((0,a.default)(o),"_hasMore",(function(){var e=o._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,s.default)((0,a.default)(o),"_isLoading",(function(){return!!o._refetchSubscription})),(0,s.default)((0,a.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,s.default)((0,a.default)(o),"_loadMore",(function(e,t,r){if(!o._canFetchPage("loadMore"))return{dispose:function(){}};var n=k(t),i=o._getConnectionData();if(!i)return P.create((function(e){return e.complete()})).subscribe(n),null;var a=i.edgeCount+e;if(r&&r.force)return o._refetchConnection(a,t);var u=C.get(),s=(u.END_CURSOR,u.START_CURSOR,{count:e,cursor:i.cursor,totalCount:a});return{dispose:o._fetchPage(s,n,r).unsubscribe}}));var i=g(e.__relayContext),u=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return o._isARequestInFlight=!1,o._refetchSubscription=null,o._refetchVariables=null,o._resolver=x(i,y,t,e,u,o._handleFragmentDataUpdate),o.state={data:o._resolver.resolve(),prevContext:i,contextForChildren:i,relayProp:o._buildRelayProp(i)},o._isUnmounted=!1,o._hasFetched=!1,o}(0,u.default)(h,n);var _=h.prototype;return _.componentDidMount=function(){this._isUnmounted=!1},_.UNSAFE_componentWillReceiveProps=function(e){var r,n=g(e.__relayContext),o=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,i=F(t,this.props),a=F(t,e),u=v(t,this.props),s=v(t,e);n.environment===this.state.prevContext.environment&&p(u,s)&&p(i,a)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),this._resolver=x(n,y,t,e,o,this._handleFragmentDataUpdate),this.setState({prevContext:n,contextForChildren:n,relayProp:this._buildRelayProp(n)}));var c=this._resolver.resolve();c!==this.state.data&&this.setState({data:c})},_.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},_.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 i=n[o];if("__relayContext"===i){if(r.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(i)&&!D(e[i],this.props[i]))return!0}return!1},_._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},_._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,i.default)(e,["componentRef"])),r=(0,c.default)((0,c.default)({},t),this.state.data),n=O(r);if(null==n)return null;var o=C.get(),a=o.EDGES,u=o.PAGE_INFO,s=o.HAS_NEXT_PAGE,l=o.HAS_PREV_PAGE,f=o.END_CURSOR,d=o.START_CURSOR;"object"!=typeof n&&m(!1);var p=n[a],h=n[u];if(null==p||null==h)return null;Array.isArray(p)||m(!1),"object"!=typeof h&&m(!1);var v="forward"===I?h[s]:h[l],y="forward"===I?h[f]:h[d];return"boolean"!=typeof v||0!==p.length&&void 0===y?null:{cursor:y,edgeCount:p.length,hasMore:v}},_._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new d),this._queryFetcher},_._canFetchPage=function(e){return!this._isUnmounted},_._fetchPage=function(e,n,o){var a,u=this,s=g(this.props.__relayContext).environment,l=this.props,f=(l.componentRef,l.__relayContext,l.__rootIsQueryRenderer,(0,i.default)(l,["componentRef","__relayContext","__rootIsQueryRenderer"])),d=(0,c.default)((0,c.default)({},f),this.state.data),h=v(t,f);a=q(t,f),a=(0,c.default)((0,c.default)((0,c.default)({},h),a),this._refetchVariables);var y=r.getVariables(d,{count:e.count,cursor:e.cursor},a);("object"!=typeof y||null===y)&&m(!1),y=(0,c.default)((0,c.default)({},y),this._refetchVariables),a=(0,c.default)((0,c.default)({},y),a);var _=o?{force:!!o.force}:void 0;null!=_&&null!=(null==o?void 0:o.metadata)&&(_.metadata=null==o?void 0:o.metadata);var b=E(r.query),R=S(b,y,_),C=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var x=function(){u._refetchSubscription===C&&(u._refetchSubscription=null,u._isARequestInFlight=!1)};return this._isARequestInFlight=!0,C=this._getQueryFetcher().execute({environment:s,operation:R,preservePreviousReferences:!0}).mergeMap((function(t){return P.create((function(t){!function(t,r){var n=u._resolver.resolve();u._resolver.setVariables(w(a,e.totalCount),R.request.node);var o=u._resolver.resolve();p(n,o)?r():u.setState({data:o,contextForChildren:{environment:u.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:x,complete:x,unsubscribe:x}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?C:null,C},_._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()},_.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,i.default)(t,["componentRef","__relayContext","__rootIsQueryRenderer"]));return l.createElement(f.Provider,{value:this.state.contextForChildren},l.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},h}(l.Component),(0,s.default)(n,"displayName",y),h}e.exports={createContainer:function(e,t,r){return h(e,t,(function(e,t){return O(e,t,r)}))}}},function(e,t,r){"use strict";var n=r(3),o=n(r(5)),i=n(r(12)),a=r(0),u=r(8),s=r(22),c=r(19),l=r(10),f=r(1),d=f.createOperationDescriptor,p=(f.deepFreeze,f.getRequest),h={},v={rootIsQueryRenderer:!0},m=function(e){function t(t){var r;r=e.call(this,t)||this;var n,i,a={handleDataChange:null,handleRetryAfterError:null};if(t.query){var u=t.query;i=_(p(u).params,t.variables),n=h[i]?h[i].queryFetcher:new s}else n=new s;return r.state=(0,o.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:a},b(t,n,a,i)),r}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){if(t.prevQuery!==e.query||t.prevPropsEnvironment!==e.environment||!l(t.prevPropsVariables,e.variables)){var r,n=e.query,i=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var a=_(p(n).params,e.variables);r=h[a]?h[a].queryFetcher:new s(i)}else r=new s(i);return(0,o.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},b(e,r,t.retryCallbacks))}return null};var r=t.prototype;return r.componentDidMount=function(){var e=this,t=this.state,r=t.retryCallbacks,n=t.queryFetcher,o=t.requestCacheKey;o&&delete h[o],r.handleDataChange=function(t){var r=null==t.error?null:t.error,n=null==t.snapshot?null:t.snapshot;e.setState((function(e){var t=e.requestCacheKey;return t&&delete h[t],n===e.snapshot&&r===e.error?null:{renderProps:y(r,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))},r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete h[t],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}}))},this.props.query&&n.setOnDataChange(r.handleDataChange)},r.componentDidUpdate=function(){var e=this.state.requestCacheKey;e&&(delete h[e],delete this.state.requestCacheKey)},r.componentWillUnmount=function(){this.state.queryFetcher.dispose()},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 a.createElement(u.Provider,{value:r},a.createElement(c.Provider,{value:v},this.props.render(t)))},t}(a.Component);function y(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 _(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function b(e,t,r,n){var o=e.environment,i=e.query,a=e.variables,u=e.cacheConfig,s=o;if(!i)return t.dispose(),{error:null,relayContext:{environment:s},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var c=p(i),l=d(c,a,u),f={environment:s};if("string"==typeof n&&h[n]){var v=h[n].snapshot;return v?{error:null,relayContext:f,renderProps:y(null,v,t,r),snapshot:v,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var m=t.lookupInStore(s,l,e.fetchPolicy),b=t.fetch({environment:s,onDataChange:r.handleDataChange,operation:l})||m;return n=n||_(c.params,e.variables),h[n]={queryFetcher:t,snapshot:b},b?{error:null,relayContext:f,renderProps:y(null,b,t,r),snapshot:b,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:f,renderProps:y(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=m},function(e,t,r){"use strict";var n=r(3),o=n(r(18)),i=n(r(15)),a=n(r(5)),u=n(r(16)),s=n(r(12)),c=n(r(9)),l=r(0),f=r(8),d=r(22),p=r(10),h=r(17),v=r(20),m=(r(6),r(13).getContainerName),y=r(21).assertRelayContext,_=r(1),b=_.Observable,g=_.createFragmentSpecResolver,R=_.createOperationDescriptor,C=_.getDataIDsFromObject,P=_.getRequest,x=(_.getSelector,_.getVariablesFromObject),S=_.isScalarAndEqual;function F(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,_=m(e);return h=n=function(n){function h(e){var o,i;i=n.call(this,e)||this,(0,c.default)((0,u.default)(i),"_handleFragmentDataUpdate",(function(){var e=i.state.resolver;i.setState((function(t){return e===t.resolver?{data:t.resolver.resolve()}:null}))})),(0,c.default)((0,u.default)(i),"_refetch",(function(e,n,o,u){if(i._isUnmounted)return{dispose:function(){}};var s=y(i.props.__relayContext).environment,c=v(t,i.props),l="function"==typeof e?e(i._getFragmentVariables()):e;l=(0,a.default)((0,a.default)({},c),l);var f=n?(0,a.default)((0,a.default)({},l),n):l,d=u?{force:!!u.force}:void 0;null!=d&&null!=(null==u?void 0:u.metadata)&&(d.metadata=null==u?void 0:u.metadata);var p,h="function"==typeof o?{next:o,error:o}:o||{},m=P(r),_=R(m,l,d);return i.state.localVariables=l,i._refetchSubscription&&i._refetchSubscription.unsubscribe(),null!=i._getQueryFetcher().lookupInStore(s,_,null==u?void 0:u.fetchPolicy)?(i.state.resolver.setVariables(f,_.request.node),i.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:i.props.__relayContext.environment}}}),(function(){h.next&&h.next(),h.complete&&h.complete()})),{dispose:function(){}}):(i._getQueryFetcher().execute({environment:s,operation:_,preservePreviousReferences:!0}).mergeMap((function(e){return i.state.resolver.setVariables(f,_.request.node),b.create((function(e){return i.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:i.props.__relayContext.environment}}}),(function(){e.next(),e.complete()}))}))})).finally((function(){i._refetchSubscription===p&&(i._refetchSubscription=null)})).subscribe((0,a.default)((0,a.default)({},h),{},{start:function(e){i._refetchSubscription=p=e,h.start&&h.start(e)}})),{dispose:function(){p&&p.unsubscribe()}})}));var s=y(e.__relayContext),l=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o;i._refetchSubscription=null;var f=g(s,_,t,e,l);return i.state={data:f.resolve(),localVariables:null,prevProps:e,prevPropsContext:s,contextForChildren:s,relayProp:F(s.environment,i._refetch),resolver:f},i._isUnmounted=!1,i}(0,s.default)(h,n);var m=h.prototype;return m.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolver()},m.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver&&(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolver())},h.getDerivedStateFromProps=function(e,r){var n,o=r.prevProps,i=y(e.__relayContext),a=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,u=C(t,o),s=C(t,e),c=v(t,o),l=v(t,e),f=r.resolver;if(r.prevPropsContext.environment!==i.environment||!p(c,l)||!p(u,s))return{data:(f=g(i,_,t,e,a)).resolve(),localVariables:null,prevProps:e,prevPropsContext:i,contextForChildren:i,relayProp:F(i.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 i=n[o];if("__relayContext"===i){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(i)&&!S(e[i],this.props[i]))return!0}return!1},m._subscribeToNewResolver=function(){var e=this.state,t=e.data,r=e.resolver;r.setCallback(this._handleFragmentDataUpdate);var n=r.resolve();t!==n&&this.setState({data:n})},m._getFragmentVariables=function(){return x(t,this.props)},m._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new d),this._queryFetcher},m.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,i.default)(t,["componentRef","__relayContext","__rootIsQueryRenderer"])),a=this.state,u=a.relayProp,s=a.contextForChildren;return l.createElement(f.Provider,{value:s},l.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:u})))},h}(l.Component),(0,c.default)(n,"displayName",_),h}(e,t,r)}))}}},function(e,t,r){"use strict";var n=r(0),o=r(26),i=n.useMemo;e.exports=function(e){var t=e.children,r=e.environment,a=i((function(){return{environment:r}}),[r]);return n.createElement(o.Provider,{value:a},t)}},function(e,t,r){"use strict";var n=r(3)(r(23)),o=r(28),i=r(11),a=r(7).useTrackLoadQueryInRender,u=r(0),s=u.useCallback,c=u.useEffect,l=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var u,p,h,v;a();var m=null!==(u=null==r||null===(p=r.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(h=null==r||null===(v=r.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==h?h:null,_=i(),b=l(new Set([m])),g=f(m),R=g[0],C=g[1],P=f(y),x=P[0],S=P[1],F=s((function(){if(_.current){var e={kind:"NullEntryPointReference"};b.current.add(e),C(e)}}),[C,_]),E=s((function(r){if(_.current){var n=o(e,t,r);b.current.add(n),C(n),S(r)}}),[e,t,C,_]),q=l(!1);return c((function(){return function(){q.current=!0}}),[]),c((function(){if(!0===q.current)return q.current=!1,void("NullEntryPointReference"!==R.kind&&null!=x&&E(x));var e=b.current;if(_.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o===R)break;e.delete(o),"NullEntryPointReference"!==o.kind&&o.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[R,x,E,_]),c((function(){return function(){var e,t=(0,n.default)(b.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,E,F]}},function(e,t,r){"use strict";var n=r(24),o=r(25),i=r(7).useTrackLoadQueryInRender,a=(r(0).useDebugValue,r(1).getFragment);e.exports=function(e,t){i();var r=a(e);return o(r,"first argument of useFragment()"),n(r,t,"useFragment()").data}},function(e,t){e.exports=v},function(e,t,r){"use strict";var n=r(31),o=r(34),i=r(4),a=r(7).useTrackLoadQueryInRender,u=r(1).__internal.fetchQuery;e.exports=function(e,t,r){a();var s=i(),c=o(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return n({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:u(s,c),fetchPolicy:null==r?void 0:r.fetchPolicy,query:c,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},function(e,t,r){"use strict";var n=r(0),o=r(10),i=n.useMemo,a=n.useRef,u=n.useState;e.exports=function(e){var t,r,n=a(0),s=u(e),c=s[0],l=s[1];return o(e,c)||(n.current=(null!==(r=n.current)&&void 0!==r?r:0)+1,l(e)),[i((function(){return e}),[n.current]),null!==(t=n.current)&&void 0!==t?t:0]}},function(e,t,r){"use strict";var n=r(3)(r(5)),o=r(0),i=r(4),a=r(1).commitMutation,u=o.useState,s=o.useEffect,c=o.useRef,l=o.useCallback,f=r(11);e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,r=i(),o=f(),d=c(r),p=c(e),h=c(new Set),v=u(!1),m=v[0],y=v[1],_=l((function(t){d.current===r&&p.current===e&&(h.current.delete(t),o.current&&y(h.current.size>0))}),[r,o,e]);s((function(){d.current===r&&p.current===e||(h.current=new Set,o.current&&y(!1),d.current=r,p.current=e)}),[r,o,e]);var b=l((function(i){var a=t(r,(0,n.default)((0,n.default)({},i),{},{mutation:e,onCompleted:function(e,t){_(a),i.onCompleted&&i.onCompleted(e,t)},onError:function(e){_(a),i.onError&&i.onError(e)},onUnsubscribe:function(){_(a),i.onUnsubscribe&&i.onUnsubscribe()}}));return h.current.add(a),o.current&&y(!0),a}),[_,t,r,o,e]);return[b,m]}},function(e,t,r){"use strict";var n=r(3)(r(5)),o=r(57),i=r(58),a=r(37),u=r(25),s=r(0),c=s.useCallback,l=(s.useDebugValue,s.useState),f=r(1),d=f.getFragment,p=f.getFragmentIdentifier;function h(e){var t=l(!1),r=t[0],o=t[1],a={start:function(){return o(!0)},complete:function(){return o(!1)},error:function(){return o(!1)}},u=i((0,n.default)((0,n.default)({},e),{},{observer:a,onReset:function(){return o(!1)}}));return[u[0],u[1],r,u[2]]}e.exports=function(e,t){var r=d(e);u(r,"first argument of usePaginationFragment()");var i=o(r,"usePaginationFragment()"),s=i.connectionPathInFragmentData,l=i.paginationRequest,f=i.paginationMetadata,v=i.identifierField,m=a(r,t,"usePaginationFragment()"),y=m.fragmentData,_=m.fragmentRef,b=m.refetch,g=p(r,_),R=h({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:s,direction:"backward",fragmentData:y,fragmentIdentifier:g,fragmentNode:r,fragmentRef:_,identifierField:v,paginationMetadata:f,paginationRequest:l}),C=R[0],P=R[1],x=R[2],S=R[3],F=h({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:s,direction:"forward",fragmentData:y,fragmentIdentifier:g,fragmentNode:r,fragmentRef:_,identifierField:v,paginationMetadata:f,paginationRequest:l}),E=F[0],q=F[1],D=F[2],k=F[3];return{data:y,loadNext:E,loadPrevious:C,hasNext:q,hasPrevious:P,isLoadingNext:D,isLoadingPrevious:x,refetch:c((function(e,t){return k(),S(),b(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[k,S,b])}}},function(e,t,r){"use strict";var n=r(35),o=r(2);e.exports=function(e,t){var r,i,a=n(e,t),u=a.refetchableRequest,s=a.refetchMetadata,c=s.connection;null==c&&o(!1);var l=c.path,f=(null!==(r=null===(i=e.metadata)||void 0===i?void 0:i.connection)&&void 0!==r?r:[])[0];null==f&&o(!1);var d=s.identifierField;return null!=d&&"string"!=typeof d&&o(!1),{connectionPathInFragmentData:l,identifierField:d,paginationRequest:u,paginationMetadata:c,stream:!0===f.stream}}},function(e,t,r){"use strict";var n=r(3)(r(5)),o=r(59),i=r(36),a=r(2),u=r(32),s=r(11),c=r(60),l=r(4),f=(r(6),r(0)),d=f.useCallback,p=f.useEffect,h=f.useState,v=r(1),m=v.ConnectionInterface,y=v.__internal.fetchQuery,_=v.createOperationDescriptor,b=v.getSelector;e.exports=function(e){var t=e.direction,r=e.fragmentNode,f=e.fragmentRef,v=e.fragmentIdentifier,g=e.fragmentData,R=e.connectionPathInFragmentData,C=e.paginationRequest,P=e.paginationMetadata,x=e.componentDisplayName,S=e.observer,F=e.onReset,E=e.identifierField,q=l(),D=u(),k=D.isFetchingRef,O=D.startFetch,I=D.disposeFetch,w=D.completeFetch,N=null!=E&&null!=g&&"object"==typeof g?g[E]:null,A=s(),Q=h(q),M=Q[0],j=Q[1],U=h(v),T=U[0],L=U[1],V=c(r,f);(q!==M||v!==T)&&(I(),F(),j(q),L(v));var W=function(e,t,r,n){var o,u,s=m.get(),c=s.EDGES,l=s.PAGE_INFO,f=s.HAS_NEXT_PAGE,d=s.HAS_PREV_PAGE,p=s.END_CURSOR,h=s.START_CURSOR,v=i(r,n);if(null==v)return{cursor:null,hasMore:!1};"object"!=typeof v&&a(!1);var y=v[c],_=v[l];if(null==y||null==_)return{cursor:null,hasMore:!1};Array.isArray(y)||a(!1),"object"!=typeof _&&a(!1);var b,g="forward"===e?null!==(o=_[p])&&void 0!==o?o:null:null!==(u=_[h])&&void 0!==u?u:null;null!==g&&"string"!=typeof g&&a(!1),b="forward"===e?null!=g&&!0===_[f]:null!=g&&!0===_[d];return{cursor:g,hasMore:b}}(t,0,g,R),K=W.cursor,z=W.hasMore;return p((function(){return function(){I()}}),[I]),[d((function(e,i){var u=null==i?void 0:i.onComplete;if(!0!==A.current)return{dispose:function(){}};var s=b(r,f);if(!0===k.current||null==g||V)return u&&u(null),{dispose:function(){}};(null==s||"PluralReaderSelector"===s.kind)&&a(!1);var c=s.owner.variables,l=s.variables,d=null==i?void 0:i.UNSTABLE_extraVariables,p=(0,n.default)((0,n.default)({},c),l),h=o(t,e,K,p,(0,n.default)({},d),P);null!=E&&(h.id=N);var v=_(C,h,{force:!0});return y(q,v).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){O(e),S.start&&S.start(e)},complete:function(){w(),S.complete&&S.complete(),u&&u(null)},error:function(e){w(),S.error&&S.error(e),u&&u(e)}})),{dispose:I}}),[q,N,t,K,O,I,w,k,V,g,r.name,f,x]),z,I]}},function(e,t,r){"use strict";var n=r(3),o=n(r(9)),i=n(r(5)),a=r(2);r(6);e.exports=function(e,t,r,n,u,s){var c,l=s.backward,f=s.forward;if("backward"===e){var d;(null==l||null==l.count||null==l.cursor)&&a(!1);var p=(0,i.default)((0,i.default)((0,i.default)({},n),u),{},(d={},(0,o.default)(d,l.cursor,r),(0,o.default)(d,l.count,t),d));return f&&f.cursor&&(p[f.cursor]=null),f&&f.count&&(p[f.count]=null),p}(null==f||null==f.count||null==f.cursor)&&a(!1);var h=(0,i.default)((0,i.default)((0,i.default)({},n),u),{},(c={},(0,o.default)(c,f.cursor,r),(0,o.default)(c,f.count,t),c));return l&&l.cursor&&(h[l.cursor]=null),l&&l.count&&(h[l.count]=null),h}},function(e,t,r){"use strict";var n=r(0),o=r(2),i=r(4),a=r(1),u=a.__internal.getObservableForActiveRequest,s=a.getSelector,c=n.useEffect,l=n.useState,f=n.useMemo;e.exports=function(e,t){var r=i(),n=f((function(){var n=s(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&o(!1),u(r,n.owner))}),[r,e,t]),a=l(null!=n),d=a[0],p=a[1];return c((function(){var e;if(p(null!=n),null!=n){var t=function(){p(!1)};e=n.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[n]),d}},function(e,t,r){"use strict";var n=r(2),o=r(31),i=r(34),a=r(4),u=(r(6),r(7).useTrackLoadQueryInRender),s=(r(0).useDebugValue,r(1).__internal),c=s.fetchQueryDeduped,l=s.fetchQuery;e.exports=function(e,t,r){u();var s,f=a(),d=t.fetchKey,p=t.fetchPolicy,h=t.source,v=t.variables,m=i(e,v);if("PreloadedQuery_DEPRECATED"===t.kind)m.request.node.params.name!==t.name&&n(!1),s={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:c(f,m.request.identifier,(function(){return f===t.environment&&null!=h?f.executeWithSource({operation:m,source:h}):f.execute({operation:m})})),fetchPolicy:p,query:m,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{var y=l(f,m);s={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=h&&f===t.environment?h.ifEmpty(y):(t.environment,y),fetchKey:d,fetchPolicy:p,query:m,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}return o(s)}},function(e,t,r){"use strict";var n=r(37),o=r(25),i=(r(0).useDebugValue,r(1).getFragment);e.exports=function(e,t){var r=i(e);o(r,"first argument of useRefetchableFragment()");var a=n(r,t,"useRefetchableFragment()");return[a.fragmentData,a.refetch]}},function(e,t,r){"use strict";var n=r(4),o=r(0),i=o.useEffect,a=o.useRef;e.exports=function(e,t){var r=n(),o=a(null),u=Array.from(e).sort().join("");return i((function(){var n=r.getStore(),i=n.lookupInvalidationState(e),a=n.subscribeToInvalidationState(i,t);return o.current=a,function(){return a.dispose()}}),[u,t,r]),{dispose:function(){null!=o.current&&o.current.dispose()}}}},function(e,t,r){"use strict";var n=r(0),o=r(4),i=r(1).requestSubscription;e.exports=function(e,t){var r=null!=t?t:i,a=o();n.useEffect((function(){return i(a,e).dispose}),[a,e,r])}}])}));
|
9
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("relay-runtime"),require("@babel/runtime/helpers/interopRequireDefault"),require("invariant"),require("@babel/runtime/helpers/objectSpread2"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/extends"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray")):"function"==typeof define&&define.amd?define(["react","relay-runtime","@babel/runtime/helpers/interopRequireDefault","invariant","@babel/runtime/helpers/objectSpread2","fbjs/lib/warning","@babel/runtime/helpers/defineProperty","fbjs/lib/areEqual","@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/extends","react-relay/ReactRelayContext","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray"],t):"object"==typeof exports?exports.ReactRelay=t(require("react"),require("relay-runtime"),require("@babel/runtime/helpers/interopRequireDefault"),require("invariant"),require("@babel/runtime/helpers/objectSpread2"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/extends"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray")):e.ReactRelay=t(e.react,e["relay-runtime"],e["@babel/runtime/helpers/interopRequireDefault"],e.invariant,e["@babel/runtime/helpers/objectSpread2"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/extends"],e["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"])}(window,(function(e,t,r,n,o,i,a,u,s,l,c,f,d,p,h){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=37)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=r(3),o=r(0).useContext,i=r(26);e.exports=function(){var e=o(i);return null==e&&n(!1),e.environment}},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t,r){"use strict";var n=r(2)(r(5)),o=r(3),i=r(0),a=r(1),u=a.Observable,s=a.PreloadableQueryRegistry,l=a.RelayFeatureFlags,c=a.ReplaySubject,f=a.__internal.fetchQueryDeduped,d=a.createOperationDescriptor,p=a.getRequest,h=a.getRequestIdentifier,v=(r(6),null),_=100001;e.exports={loadQuery:function(e,t,r,a,v){var m,y,b;null===(m=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===m||null===(y=m.ReactCurrentDispatcher)||void 0===y||y.current,_++;var g,R,C,E,P,S,F=null!==(b=null==a?void 0:a.fetchPolicy)&&void 0!==b?b:"store-or-network",x=(0,n.default)((0,n.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),q=!1,D=function(t,r){return q=!0,e.executeWithSource({operation:t,source:r})},I=new c,O=u.create((function(e){return I.subscribe(e)})),k=null,N=!1,A=function(t){var n;N=!0;var o=new c;if(!0===l.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+h(t,r);n=f(e,i,(function(){return e.getNetwork().execute(t,r,x)}))}else{n=e.getNetwork().execute(t,r,x)}var a=n.subscribe({error:function(e){k=e,o.error(e)},next:function(e){o.next(e)},complete:function(){o.complete()}}).unsubscribe;return R=a,u.create((function(e){var t=o.subscribe(e);return function(){t.unsubscribe(),R()}}))},w=function(t,r){!0===l.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(N=!0);var n=f(e,t.request.identifier,r).subscribe({error:function(e){I.error(e)},next:function(e){I.next(e)},complete:function(){I.complete()}});C=n.unsubscribe},Q=function(t){var n=d(t,r,x);(g=e.retain(n),"store-only"!==F)&&(("store-or-network"!==F||"available"!==e.check(n).status)&&w(n,(function(){var e=A(t.params);return D(n,e)})))};if("PreloadableConcreteRequest"===t.kind){null===(S=(E=t.params).id)&&o(!1);var T=s.get(S);if(null!=T)Q(T);else{var M="store-only"===F?null:A(E),U=s.onLoad(S,(function(t){P();var n=d(t,r,x);g=e.retain(n),null!=M&&w(n,(function(){return D(n,M)}))}));P=U.dispose}}else{var L=p(t);S=null!=(E=L.params).cacheID?E.cacheID:E.id,Q(L)}var j=!1,V=!1,W=!1,H=function(){V||(g&&g.dispose(),V=!0)},B=function(){W||(q?C&&C():R&&R(),P&&P(),W=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:v,dispose:function(){j||(H(),B(),j=!0)},releaseQuery:H,cancelNetworkRequest:B,fetchKey:_,id:S,get isDisposed(){return j||V},get networkError(){return k},name:E.name,networkCacheConfig:x,fetchPolicy:F,source:N?O:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===v&&(v=null===(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(t=e.ReactCurrentDispatcher)||void 0===t?void 0:t.current)}}},function(e,t,r){"use strict";var n=r(0),o=r(1).__internal.createRelayContext;e.exports=o(n)},function(e,t){e.exports=u},function(e,t,r){"use strict";var n=r(0),o=n.useEffect,i=n.useRef;e.exports=function(){var e=i(!0);return o((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,t){e.exports=s},function(e,t){e.exports=l},function(e,t,r){"use strict";function n(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:n,getContainerName:function(e){return"Relay("+n(e)+")"}}},function(e,t){e.exports=c},function(e,t,r){"use strict";var n=r(2)(r(17)),o=r(39),i=r(14),a=i.getComponentName,u=i.getContainerName,s=r(9),l=r(18),c=r(40),f=r(3),d=r(0),p=r(1).getFragment;e.exports=function(e,t,r){var i=u(e);o(a(e),t);var h={};for(var v in t)h[v]=p(t[v]);var _=r(e,h);function m(e,t){var r,o=c(s);null==o&&f(!1);var i=c(l);return d.createElement(_,(0,n.default)({},e,{__relayContext:o,__rootIsQueryRenderer:null!==(r=null==i?void 0:i.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}return _.displayName=i,m.displayName=i,d.forwardRef(m)}},function(e,t){e.exports=f},function(e,t,r){"use strict";var n=r(0);e.exports=n.createContext({rootIsQueryRenderer:!1})},function(e,t,r){"use strict";var n=r(41),o=r(3);function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(e.environment)}e.exports={assertRelayContext:function(e){return i(e)||o(!1),e},isRelayContext:i}},function(e,t,r){"use strict";var n=r(2)(r(7)),o=r(3),i=r(1),a=i.__internal.fetchQuery,u=i.createOperationDescriptor,s=i.isRelayModernEnvironment,l=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_callOnDataChangeWhenSet",!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.execute=function(e){var t=this,r=e.environment,n=e.operation,o=e.preservePreviousReferences,i=void 0!==o&&o,u=r.retain(n),l=function(){t._selectionReferences=t._selectionReferences.concat(u)},c=function(){i||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(u)},f=function(){t._selectionReferences=t._selectionReferences.concat(u)};return s(r)?a(r,n).do({error:l,complete:c,unsubscribe:f}):r.execute({operation:n}).do({error:l,complete:c,unsubscribe:f})},t.setOnDataChange=function(e){this._fetchOptions||o(!1),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._callOnDataChangeWhenSet&&(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,i=e.operation,a=e.onDataChange,s=!1;this.disposeRequest();var l=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:l||[],operation:i},a&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(a)&&this._fetchOptions.onDataChangeCallbacks.push(a);var c=t?u(i.request.node,i.request.variables,t):i,f=this.execute({environment:o,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._callOnDataChangeWhenSet=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:s})},error:function(e){n._callOnDataChangeWhenSet=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;s?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){f.unsubscribe()}},s=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||o(!1),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);var n=this._fetchOptions,i=n.environment,a=n.onDataChangeCallbacks,u=n.operation;if(!this._snapshot&&(this._snapshot=i.lookup(u.fragment),this._rootSubscription=i.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(a))){var s=this._snapshot;a.forEach((function(e){return e({snapshot:s})}))}},e}();e.exports=l},function(e,t,r){"use strict";var n=r(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,t,r){"use strict";var n=r(29).getFragmentResourceForEnvironment,o=r(4),i=r(0),a=i.useEffect,u=i.useRef,s=i.useState,l=r(1).getFragmentIdentifier;r(6);e.exports=function(e,t,r){var i=o(),c=n(i),f=u(!1),d=s(0)[1],p=l(e,t),h=c.readWithIdentifier(e,t,p,r),v=u(!0);function _(){!1!==f.current&&!1!==v.current&&d((function(e){return e+1}))}return a((function(){f.current=!0;var e=c.subscribe(h,_);return function(){f.current=!1,e.dispose()}}),[i,p]),{data:h.data,disableStoreUpdates:function(){v.current=!1},enableStoreUpdates:function(){v.current=!0,c.checkMissedUpdates(h)[0]&&_()}}}},function(e,t,r){"use strict";var n=r(2),o=n(r(5)),i=n(r(7)),a=r(30),u=r(31),s=r(3),l=r(1),c=l.RelayFeatureFlags,f=l.isPromise,d=(r(6),"function"==typeof WeakMap);function p(e){return void 0!==e.request.node.params.metadata.live}function h(e,t,r,n,o){var i=null!=r?r:"store-or-network",a=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(i,"-").concat(a,"-").concat(t.request.identifier);return null!=o?"".concat(u,"-").concat(o):u}function v(e,t){var r={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var _=2e5;function m(e,t,r,n,o,i){return c.REFACTOR_SUSPENSE_RESOURCE?function(e,t,r,n,o,i){var a=p(t),s=n,l=o,c=new u((function(e){var r=e.retain(t);return{dispose:function(){a&&null!=l&&l.unsubscribe(),r.dispose(),i(f)}}})),f={cacheIdentifier:e,id:_++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return s},setValue:function(e){s=e},getRetainCount:function(){return c.getRetainCount()},getNetworkSubscription:function(){return l},setNetworkSubscription:function(e){a&&null!=l&&l.unsubscribe(),l=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}(e,t,r,n,o,i):function(e,t,r,n,o,i){var a=p(t),u=n,l=0,c=null,f=null,d=o,h=function(e){return 1===++l&&(c=e.retain(t)),{dispose:function(){0===(l=Math.max(0,l-1))&&(null==c&&s(!1),c.dispose(),c=null),i(v)}}},v={cacheIdentifier:e,id:_++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return u},setValue:function(e){u=e},getRetainCount:function(){return l},getNetworkSubscription:function(){return d},setNetworkSubscription:function(e){a&&null!=d&&d.unsubscribe(),d=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};var t=h(e),r=null,n=function(){clearTimeout(r),r=null,f=null,t.dispose(),a&&l<=0&&null!=d&&d.unsubscribe()};return r=setTimeout(n,3e5),null!=f&&f(),f=n,{dispose:function(){f&&f()}}},permanentRetain:function(e){var t=h(e);return null!=f&&(f(),f=null),{dispose:function(){t.dispose(),a&&l<=0&&null!=d&&d.unsubscribe()}}},releaseTemporaryRetain:function(){null!=f&&(f(),f=null)}};return v}(e,t,r,n,o,i)}var y=function(){function e(e){var t=this;(0,i.default)(this,"_clearCacheEntry",(function(e){(c.REFACTOR_SUSPENSE_RESOURCE||e.getRetainCount()<=0)&&t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=a.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,o,i,a){var u=h(this._environment,e,r,n,i);return this.prepareWithIdentifier(u,e,t,r,n,o,a)},t.prepareWithIdentifier=function(e,t,r,n,i,a,u){var s=this._environment,l=null!=n?n:"store-or-network",c=null!=i?i:s.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null,h=null!=d;null==d&&(d=this._fetchAndSaveQuery(e,t,r,l,c,u,(0,o.default)((0,o.default)({},a),{},{unsubscribe:function(e){null!=p&&p.dispose();var t=null==a?void 0:a.unsubscribe;t&&t(e)}}))),p=d.temporaryRetain(s);var v=d.getValue();if(f(v))throw s.__log({name:"suspense.query",fetchPolicy:l,isPromiseCached:h,operation:t,queryAvailability:d.operationAvailability,renderPolicy:c}),v;if(v instanceof Error)throw v;return v},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,o=e.operation,i=this._getOrCreateCacheEntry(n,o,null,e,null),a=i.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:i.id}),{dispose:function(){a.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var o=h(this._environment,e,t,r,n);return this._cache.get(o)},t._getOrCreateCacheEntry=function(e,t,r,n,o){var i=this._cache.get(e);return null==i&&(i=m(e,t,r,n,o,this._clearCacheEntry),this._cache.set(e,i)),i},t._fetchAndSaveQuery=function(e,t,r,n,i,a,u){var l,c,f=this,d=this._environment,h=d.check(t),_=h.status,y="available"===_,b=y||"partial"===i&&"stale"!==_,g=function(){};switch(n){case"store-only":l=!1,c=!0;break;case"store-or-network":l=!y,c=b;break;case"store-and-network":l=!0,c=b;break;case"network-only":default:l=!0,c=!1}if(c){var R=v(t,e),C=m(e,t,h,R,null,this._clearCacheEntry);this._cache.set(e,C)}if(l){var E,P=v(t,e);r.subscribe({start:function(r){E=r;var n=f._cache.get(e);n&&n.setNetworkSubscription(E);var i=null==u?void 0:u.start;i&&i((0,o.default)((0,o.default)({},r),{},{unsubscribe:function(){p(t)&&r.unsubscribe()}}))},next:function(){var r=f._getOrCreateCacheEntry(e,t,h,P,E);r.processedPayloadsCount+=1,r.setValue(P),g();var n=null==u?void 0:u.next;null!=n&&n(d.lookup(t.fragment))},error:function(r){var n=f._getOrCreateCacheEntry(e,t,h,r,E);0===n.processedPayloadsCount&&n.setValue(r),g(),E=null,n.setNetworkSubscription(null);var o=null==u?void 0:u.error;o&&o(r)},complete:function(){g(),E=null;var t=f._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==u?void 0:u.complete;r&&r()},unsubscribe:null==u?void 0:u.unsubscribe});var S=this._cache.get(e);if(!S){var F=new Promise((function(e){g=e}));F.displayName="Relay("+t.fragment.node.name+")",S=m(e,t,h,F,E,this._clearCacheEntry),this._cache.set(e,S)}}else{var x=null==u?void 0:u.complete;x&&x()}var q=this._cache.get(e);return null==q&&s(!1),d.__log({name:"queryresource.fetch",resourceID:q.id,operation:t,profilerContext:a,fetchPolicy:n,renderPolicy:i,queryAvailability:h,shouldFetch:l}),q},e}();function b(e){return new y(e)}var g=d?new WeakMap:new Map;e.exports={createQueryResource:b,getQueryResourceForEnvironment:function(e){var t=g.get(e);if(t)return t;var r=b(e);return g.set(e,r),r},getQueryCacheIdentifier:h}},function(e,t,r){"use strict";r(0).useRef,r(6);e.exports=function(e,t){}},function(e,t,r){"use strict";var n=r(2)(r(5)),o=r(1).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(i){var a,u,s,l=e[i],c=t[i],f=o(l,c),d=null!=f&&"PluralReaderSelector"===f.kind?null!==(a=null===(u=f.selectors[0])||void 0===u?void 0:u.owner.variables)&&void 0!==a?a:{}:null!==(s=null==f?void 0:f.owner.variables)&&void 0!==s?s:{};r=(0,n.default)((0,n.default)({},r),d)})),r}},function(e,t){e.exports=d},function(e,t,r){"use strict";var n=r(8).loadQuery;e.exports=function e(t,r,o){var i=null;null==r.root.getModuleIfRequired()&&(i=r.root.load());var a=r.getPreloadProps(o),u=a.queries,s=a.entryPoints,l=a.extraProps,c={},f={};null!=u&&Object.keys(u).forEach((function(e){var r=u[e],o=r.environmentProviderOptions,i=r.options,a=r.parameters,s=r.variables,l=t.getEnvironment(o);c[e]=n(l,a,s,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},o)})),null!=s&&Object.keys(s).forEach((function(r){var n=s[r];if(null!=n){var o=n.entryPoint,i=n.entryPointParams;f[r]=e(t,o,i)}}));var d=!1;return{dispose:function(){d||(null!=c&&Object.values(c).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=l?l:null,getComponent:function(){var e,t=r.root.getModuleIfRequired();if(null==t)throw i=null!==(e=i)&&void 0!==e?e:r.root.load();return t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},function(e,t){e.exports=p},function(e,t,r){"use strict";var n=r(2),o=n(r(5)),i=n(r(7)),a=n(r(50)),u=r(30),s=r(23).getQueryResourceForEnvironment,l=r(31),c=r(3),f=r(1),d=f.RelayFeatureFlags,p=f.__internal,h=p.fetchQuery,v=p.getPromiseForActiveRequest,_=f.createOperationDescriptor,m=f.getFragmentIdentifier,y=f.getPendingOperationsForFragment,b=f.getSelector,g=f.getVariablesFromFragment,R=f.isPromise,C=f.recycleNodesInto,E=f.reportMissingRequiredFields,P="function"==typeof WeakMap,S=Object.freeze([]);function F(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function x(e,t,r){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map((function(e){return e.data})),isMissingData:F(t),storeEpoch:r}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:F(t),storeEpoch:r}}var q=function(){function e(e){(0,i.default)(this,"_cache",new Map),(0,i.default)(this,"_retainCounts",new Map),this._environment=e}var t=e.prototype;return t.get=function(e){var t,r;return null!==(t=null===(r=this._cache.get(e))||void 0===r?void 0:r[0])&&void 0!==t?t:void 0},t.recordQueryResults=function(e,t){var r=this,n=this._cache.get(e);if(n){var o=n[0],i=n[1];t.forEach((function(e){o.push(e)})),i.temporaryRetain(this._environment)}else{var a=new l((function(){return r._retain(e)}));this._cache.set(e,[t,a]),a.temporaryRetain(this._environment)}},t._retain=function(e){var t,r=this,n=(null!==(t=this._retainCounts.get(e))&&void 0!==t?t:0)+1;return this._retainCounts.set(e,n),{dispose:function(){var t,n=(null!==(t=r._retainCounts.get(e))&&void 0!==t?t:0)-1;n>0?r._retainCounts.set(e,n):(r._retainCounts.delete(e),r._cache.delete(e))}}},e}(),D=function(){function e(e){this._environment=e,this._cache=u.create(1e6),d.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new q(e))}var t=e.prototype;return t.read=function(e,t,r,n){return this.readWithIdentifier(e,t,m(e,t),r,n)},t.readWithIdentifier=function(e,t,r,n,o){var i,u,l=this,f=this._environment;if(null==t)return{cacheKey:r,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var p=f.getStore().getEpoch();if(!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural)&&(Array.isArray(t)||c(!1),0===t.length))return{cacheKey:r,data:S,isMissingData:!1,snapshot:S,storeEpoch:p};var h=this._cache.get(r);if(null!=h){if("pending"===h.kind&&R(h.promise))throw f.__log({name:"suspense.fragment",data:h.result.data,fragment:e,isRelayHooks:!0,isMissingData:h.result.isMissingData,isPromiseCached:!0,pendingOperations:h.pendingOperations}),h.promise;if("done"===h.kind&&h.result.snapshot)return this._reportMissingRequiredFieldsInSnapshot(h.result.snapshot),h.result}var _=b(e,t);null==_&&c(!1);var m="PluralReaderSelector"===_.kind?_.selectors.map((function(e){return f.lookup(e)})):f.lookup(_),y=x(r,m,p);if(!y.isMissingData)return this._reportMissingRequiredFieldsInSnapshot(m),this._cache.set(r,{kind:"done",result:y}),y;var g=null;if(d.ENABLE_CLIENT_EDGES&&function(e){var t,r;return Array.isArray(e)?e.some((function(e){var t,r;return(null!==(t=null===(r=e.missingClientEdges)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0})):(null!==(t=null===(r=e.missingClientEdges)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0}(m)){g=[];var C=s(this._environment),E=[];!function(e,t){Array.isArray(e)?e.forEach(t):t(e)}(m,(function(r){var n;null===(n=r.missingClientEdges)||void 0===n||n.forEach((function(r){var n,o=r.request,i=r.clientEdgeDestinationID,a=l._performClientEdgeQuery(C,e,t,o,i),u=a.queryResult,s=a.requestDescriptor;E.push(u),null===(n=g)||void 0===n||n.push(s)}))})),null==this._clientEdgeQueryResultsCache&&c(!1),this._clientEdgeQueryResultsCache.recordQueryResults(r,E)}var P=null;d.ENABLE_CLIENT_EDGES&&g&&(P=g.map((function(e){return v(l._environment,e)})).filter((function(e){return null!=e})));var F,q,D,I="PluralReaderSelector"===_.kind?_.selectors[0].owner:_.owner,O=this._getAndSavePromiseForFragmentRequestInFlight(r,e,I,y),k=null==O?void 0:O.promise;if((null===(u=P)||void 0===u?void 0:u.length)||R(k))throw f.__log({name:"suspense.fragment",data:y.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:y.isMissingData,pendingOperations:[].concat((0,a.default)(null!==(F=null==O?void 0:O.pendingOperations)&&void 0!==F?F:[]),(0,a.default)(null!==(q=g)&&void 0!==q?q:[]))}),(null===(D=P)||void 0===D?void 0:D.length)?Promise.all([k].concat((0,a.default)(P))):k;return this._reportMissingRequiredFieldsInSnapshot(m),x(r,m,p)},t._performClientEdgeQuery=function(e,t,r,n,i){var a=g(t,r),u=(0,o.default)((0,o.default)({},a),{},{id:i}),s=_(n,u,{}),l=h(this._environment,s),c=e.prepare(s,l);return{requestDescriptor:s.request,queryResult:c}},t._reportMissingRequiredFieldsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){null!=e.missingRequiredFields&&E(t._environment,e.missingRequiredFields)})):null!=e.missingRequiredFields&&E(this._environment,e.missingRequiredFields)},t.readSpec=function(e,t,r){var n={};for(var o in e)n[o]=this.read(e[o],t[o],r,o);return n},t.subscribe=function(e,t){var r=this,n=this._environment,o=e.cacheKey,i=e.snapshot;if(!i)return{dispose:function(){}};var a=this.checkMissedUpdates(e),u=a[0],l=a[1];u&&t();var f=[];if(Array.isArray(i)?(Array.isArray(l)||c(!1),l.forEach((function(e,i){f.push(n.subscribe(e,(function(e){var a=n.getStore().getEpoch();r._updatePluralSnapshot(o,l,e,i,a),t()})))}))):((null==l||Array.isArray(l))&&c(!1),f.push(n.subscribe(l,(function(e){var i=n.getStore().getEpoch();r._cache.set(o,{kind:"done",result:x(o,e,i)}),t()})))),d.ENABLE_CLIENT_EDGES){var p,h,v=null!==(p=null===(h=this._clientEdgeQueryResultsCache)||void 0===h?void 0:h.get(o))&&void 0!==p?p:void 0;if(null==v?void 0:v.length){var _=s(this._environment);v.forEach((function(e){f.push(_.retain(e))}))}}return{dispose:function(){f.forEach((function(e){return e.dispose()})),r._cache.delete(o)}}},t.subscribeSpec=function(e,t){var r=this,n=Object.keys(e).map((function(n){return r.subscribe(e[n],t)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},t.checkMissedUpdates=function(e){var t=this._environment,r=e.snapshot;if(!r)return[!1,null];var n;if(n=t.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var i=e.cacheKey;if(Array.isArray(r)){var a=!1,u=[];return r.forEach((function(e,r){var n=t.lookup(e.selector),i=e.data,s=n.data,l=C(i,s);l!==i&&(n=(0,o.default)((0,o.default)({},n),{},{data:l}),a=!0),u[r]=n})),a&&this._cache.set(i,{kind:"done",result:x(i,u,n)}),[a,u]}var s=t.lookup(r.selector),l=r.data,c=s.data,f=C(l,c),d={data:f,isMissingData:s.isMissingData,missingClientEdges:s.missingClientEdges,seenRecords:s.seenRecords,selector:s.selector,missingRequiredFields:s.missingRequiredFields};return f!==l&&this._cache.set(i,{kind:"done",result:x(i,d,n)}),[f!==l,d]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some((function(r){return t.checkMissedUpdates(e[r])[0]}))},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t,r,n){var o=this,i=y(this._environment,t,r);if(null==i)return null;var a=i.promise,u=i.pendingOperations,s=a.then((function(){o._cache.delete(e)})).catch((function(t){o._cache.delete(e)}));return s.displayName=a.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:n}),{promise:s,pendingOperations:u}},t._updatePluralSnapshot=function(e,t,r,n,o){var i,u=this._cache.get(e);if(R(u))I(r.selector.node.name);else{var s=null==u||null===(i=u.result)||void 0===i?void 0:i.snapshot;if(!s||Array.isArray(s)){var l=s?(0,a.default)(s):(0,a.default)(t);l[n]=r,this._cache.set(e,{kind:"done",result:x(e,l,o)})}else I(r.selector.node.name)}},e}();function I(e){c(!1)}function O(e){return new D(e)}var k=P?new WeakMap:new Map;e.exports={createFragmentResource:O,getFragmentResourceForEnvironment:function(e){var t=k.get(e);if(t)return t;var r=O(e);return k.set(e,r),r}}},function(e,t,r){"use strict";var n=r(3),o=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new o(e)}}},function(e,t,r){"use strict";var n=r(2)(r(7)),o=r(3),i=function(){function e(e){var t=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(r){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(r)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&(null==t._retainDisposable&&o(!1),t._retainDisposable.dispose(),t._retainDisposable=null)}}}}var t=e.prototype;return t.temporaryRetain=function(e){var t,r=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),o=null,i=function(){clearTimeout(o),o=null,r._releaseTemporaryRetain=null,n.dispose()};return o=setTimeout(i,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=i,{dispose:function(){var e;null===(e=r._releaseTemporaryRetain)||void 0===e||e.call(r)}}},t.permanentRetain=function(e){var t=this._retain(e);return this.releaseTemporaryRetain(),t},t.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}();e.exports=i},function(e,t,r){"use strict";var n=r(21),o=r(23),i=o.getQueryCacheIdentifier,a=o.getQueryResourceForEnvironment,u=r(33),s=r(22),l=r(4),c=r(0),f=c.useContext,d=c.useEffect,p=c.useState,h=c.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,o=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,_=e.renderPolicy,m=l(),y=f(n),b=a(m),g=p(0),R=g[0],C=g[1],E=u(),P=E.startFetch,S=E.completeFetch,F="".concat(R,"-").concat(null!=v?v:""),x=i(m,t,c,_,F),q=y.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(x,t,o,c,_,{start:P,complete:S,error:S},y)})),D=h(!1);d((function(){return function(){D.current=!0}}),[]),d((function(){if(!0===D.current)return D.current=!1,void C((function(e){return e+1}));var e=b.retain(q,y);return function(){e.dispose()}}),[m,x]),d((function(){b.releaseTemporaryRetain(q)}));var I=q.fragmentNode,O=q.fragmentRef;return s(I,O,r).data}},function(e,t,r){"use strict";var n=r(0),o=n.useCallback,i=n.useEffect,a=n.useRef;e.exports=function(){var e=a(null),t=a(!1),r=o((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),n=o((function(r){e.current=r,t.current=!0}),[]),u=o((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:n,disposeFetch:r,completeFetch:u}}},function(e,t,r){"use strict";var n=r(52),o=r(0),i=r(1),a=i.createOperationDescriptor,u=i.getRequest,s=o.useMemo;e.exports=function(e,t,r){var o=n(t)[0],i=n(r||{})[0];return s((function(){return a(u(e),o,i)}),[e,o,i])}},function(e,t,r){"use strict";var n=r(2)(r(5)),o=r(29).getFragmentResourceForEnvironment,i=r(21),a=r(23).getQueryResourceForEnvironment,u=r(22),s=r(11),l=r(36),c=r(4),f=r(3),d=r(0),p=d.useCallback,h=d.useContext,v=d.useReducer,_=r(1),m=_.__internal.fetchQuery,y=_.createOperationDescriptor,b=_.getFragmentIdentifier,g=_.getRefetchMetadata,R=_.getSelector,C=_.getValueAtPath;r(6);function E(e,t){switch(t.type){case"refetch":var r;return(0,n.default)((0,n.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}e.exports=function(e,t,r){var d=c(),_=g(e,r),P=_.refetchableRequest,S=_.fragmentRefPathInResponse,F=_.identifierField,x=b(e,t),q=v(E,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:x,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=q[0],I=q[1],O=D.fetchPolicy,k=D.mirroredEnvironment,N=D.mirroredFragmentIdentifier,A=D.onComplete,w=D.refetchEnvironment,Q=D.refetchQuery,T=D.renderPolicy,M=null!=w?w:d,U=a(M),L=o(M),j=h(i),V=M!==k||x!==N,W=l(P),H=W[0],B=W[1],K=W[2],G=t;if(V)I({type:"reset",environment:M,fragmentIdentifier:x}),K();else if(null!=Q&&null!=H){0;var z=function(e){A&&A(null!=e?e:null)},Y=null!=H.source?H.source:m(M,Q),X=j.wrapPrepareQueryResource((function(){return U.prepare(Q,Y,O,T,{error:z,complete:function(){z()}},H.fetchKey,j)})),J=L.read(X.fragmentNode,X.fragmentRef,r).data;null==J&&f(!1),G=C(J,S)}var Z=u(e,G,r),$=Z.data,ee=Z.disableStoreUpdates,te=Z.enableStoreUpdates;return{fragmentData:$,fragmentRef:G,refetch:function(e,t,r,o,i,a,u,l,c,f,d){var h=s(),v=null!=l&&null!=o&&"object"==typeof o?o[l]:null;return p((function(e,o){if(!0!==h.current)return{dispose:function(){}};var i,u,s=null==o?void 0:o.__environment,p=null==o?void 0:o.fetchPolicy,_=null==o?void 0:o.UNSTABLE_renderPolicy,m=null==o?void 0:o.onComplete,b=R(a,f);if(null==b)i={},u={};else if("PluralReaderSelector"===b.kind){var g,C,E,P;i=null!==(g=null===(C=b.selectors[0])||void 0===C?void 0:C.owner.variables)&&void 0!==g?g:{},u=null!==(E=null===(P=b.selectors[0])||void 0===P?void 0:P.variables)&&void 0!==E?E:{}}else i=b.owner.variables,u=b.variables;var S=(0,n.default)((0,n.default)((0,n.default)({},i),u),e);null==l||e.hasOwnProperty("id")||(S.id=v);var F=y(d,S,{force:!0});return c(F.request.variables,{fetchPolicy:p,__environment:s,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:p,onComplete:m,refetchEnvironment:s,refetchQuery:F,renderPolicy:_}),{dispose:r}}),[i,t,r,v,c])}(0,I,K,$,x,e,0,F,B,t,P),disableStoreUpdates:ee,enableStoreUpdates:te}}},function(e,t,r){"use strict";var n=r(2)(r(28)),o=r(8),i=o.loadQuery,a=o.useTrackLoadQueryInRender,u=r(11),s=r(4),l=r(0),c=l.useCallback,f=l.useEffect,d=l.useRef,p=l.useState,h=r(1).getRequest,v={kind:"NullQueryReference"};function _(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==h(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:v,o=s();a();var l=u(),h=d(new Set([r])),m=p((function(){return r})),y=m[0],b=m[1],g=p((function(){return r})),R=g[0],C=g[1];r!==R&&(h.current.add(r),C(r),b(r));var E=c((function(){l.current&&(h.current.add(v),b(v))}),[l]),P=c((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(l.current){var a,u=i(null!==(a=null==r?void 0:r.__environment)&&void 0!==a?a:o,e,t,n);h.current.add(u),b(u)}}),[o,e,b,l]),S=d(!1);return f((function(){return function(){S.current=!0}}),[]),f((function(){if(!0===S.current)return S.current=!1,void("NullQueryReference"!==y.kind&&P(y.variables,{fetchPolicy:y.fetchPolicy,networkCacheConfig:y.networkCacheConfig}));var t=h.current;if(l.current){var r,o=(0,n.default)(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i===y)break;t.delete(i),"NullQueryReference"!==i.kind&&(_(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){o.e(e)}finally{o.f()}}}),[y,l,P,e]),f((function(){return function(){var t,r=(0,n.default)(h.current);try{for(r.s();!(t=r.n()).done;){var o=t.value;"NullQueryReference"!==o.kind&&(_(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===y.kind?null:y,P,E]}},function(e,t,r){"use strict";var n=r(9),o=r(38),i=r(42),a=r(43),u=r(44),s=r(45),l=r(46),c=r(27),f=r(8).loadQuery,d=r(47),p=r(48),h=r(49),v=r(51),_=r(53),m=r(54),y=r(57),b=r(36),g=r(58),R=r(4),C=r(59),E=r(60),P=r(1);e.exports={ConnectionHandler:P.ConnectionHandler,QueryRenderer:u,LocalQueryRenderer:i,MutationTypes:P.MutationTypes,RangeOperations:P.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:P.applyOptimisticMutation,commitLocalUpdate:P.commitLocalUpdate,commitMutation:P.commitMutation,createFragmentContainer:o.createContainer,createPaginationContainer:a.createContainer,createRefetchContainer:s.createContainer,fetchQuery_DEPRECATED:P.fetchQuery_DEPRECATED,graphql:P.graphql,readInlineData:P.readInlineData,requestSubscription:P.requestSubscription,EntryPointContainer:l,RelayEnvironmentProvider:d,fetchQuery:P.fetchQuery,loadQuery:f,loadEntryPoint:c,useFragment:h,useLazyLoadQuery:v,useEntryPointLoader:p,useQueryLoader:b,useMutation:_,usePaginationFragment:m,usePreloadedQuery:y,useRefetchableFragment:g,useRelayEnvironment:R,useSubscribeToInvalidationState:C,useSubscription:E}},function(e,t,r){"use strict";var n=r(2),o=n(r(5)),i=n(r(15)),a=n(r(12)),u=n(r(13)),s=n(r(7)),l=r(16),c=r(14).getContainerName,f=r(19).assertRelayContext,d=r(10),p=r(0),h=r(1),v=h.createFragmentSpecResolver,_=h.getDataIDsFromObject,m=h.isScalarAndEqual;function y(e,t){var r,n,l=c(e);return n=r=function(r){function n(e){var n,o;o=r.call(this,e)||this,(0,s.default)((0,a.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:b(t.relayProp.environment)}:null}))}));var i=f(e.__relayContext),u=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,c=v(i,l,t,e,u);return o.state={data:c.resolve(),prevProps:e,prevPropsContext:i,relayProp:b(i.environment),resolver:c},o}(0,u.default)(n,r),n.getDerivedStateFromProps=function(e,r){var n,o=r.prevProps,i=f(e.__relayContext),a=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,u=_(t,o),s=_(t,e),c=r.resolver;if(r.prevPropsContext.environment!==i.environment||!d(u,s))return{data:(c=v(i,l,t,e,a)).resolve(),prevPropsContext:i,prevProps:e,relayProp:b(i.environment),resolver:c};c.setProps(e);var p=c.resolve();return p!==r.data?{data:p,prevProps:e,prevPropsContext:i,relayProp:b(i.environment)}:null};var c=n.prototype;return c.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},c.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},c.componentWillUnmount=function(){this.state.resolver.dispose()},c.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 i=n[o];if("__relayContext"===i){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(i)&&!m(e[i],this.props[i]))return!0}return!1},c._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},c._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})},c.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,i.default)(t,["componentRef","__relayContext","__rootIsQueryRenderer"]));return p.createElement(e,(0,o.default)((0,o.default)((0,o.default)({},n),this.state.data),{},{ref:r,relay:this.state.relayProp}))},n}(p.Component),(0,s.default)(r,"displayName",l),n}function b(e){return{environment:e}}e.exports={createContainer:function(e,t){return l(e,t,y)}}},function(e,t,r){"use strict";var n=r(3);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1),t)if(t.hasOwnProperty(r)){var o=t[r];(!o||"object"!=typeof o&&"function"!=typeof o)&&n(!1)}}},function(e,t,r){"use strict";var n=r(0).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=n.ReactCurrentDispatcher,i=n.ReactCurrentOwner;e.exports=function(e){return(null!=o?o.current:i.currentDispatcher).readContext(e)}},function(e,t,r){"use strict";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}},function(e,t,r){"use strict";var n=r(9),o=r(18),i=r(10),a=r(0),u=r(1),s=u.createOperationDescriptor,l=(u.deepFreeze,u.getRequest),c=a.useLayoutEffect,f=a.useState,d=a.useRef,p=a.useMemo,h={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,u=e.environment,v=e.query,_=e.variables,m=e.render,y=(t=_,r=a.useRef(t),i(r.current,t)||(r.current=t),r.current),b=p((function(){var e=l(v);return s(e,y)}),[v,y]),g=p((function(){return{environment:u}}),[u]),R=d(null),C=f(null)[1],E=d(null),P=p((function(){u.check(b);var e=u.lookup(b.fragment);R.current=e.data;var t=u.retain(b),r=u.subscribe(e,(function(e){R.current=e.data,C(R.current)})),n=!1;return E.current&&E.current(),E.current=function(){n||(n=!0,E.current=null,t.dispose(),r.dispose())},e}),[u,b]);return c((function(){var e=E.current;return function(){e&&e()}}),[P]),a.createElement(n.Provider,{value:g},a.createElement(o.Provider,{value:h},m({props:R.current})))}},function(e,t,r){"use strict";var n=r(2),o=n(r(17)),i=n(r(15)),a=n(r(12)),u=n(r(13)),s=n(r(7)),l=n(r(5)),c=r(16),f=r(25),d=r(14),p=d.getComponentName,h=d.getContainerName,v=r(9),_=r(20),m=r(19).assertRelayContext,y=r(10),b=r(3),g=r(0),R=r(1),C=R.ConnectionInterface,E=R.Observable,P=R.RelayFeatureFlags,S=R.createFragmentSpecResolver,F=R.createOperationDescriptor,x=R.getDataIDsFromObject,q=R.getRequest,D=R.getVariablesFromObject,I=R.isScalarAndEqual;r(6);function O(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}function k(e,t,r){p(e);var n,c,d=h(e),R=function(e){var t=null,r=!1;for(var n in e){var o=e[n],i=o.metadata&&o.metadata.connection;void 0!==o.metadata&&(r=!0),i&&(1!==i.length&&b(!1),t&&b(!1),t=(0,l.default)((0,l.default)({},i[0]),{},{fragmentName:n}))}return r&&null===t&&b(!1),t||{}}(t),k=r.getConnectionFromProps||function(e){var t=e.path;return t||b(!1),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}}(R),N=r.direction||R.direction;N||b(!1);var A=r.getFragmentVariables||function(e){var t=e.count;return t||b(!1),function(e,r){return(0,l.default)((0,l.default)({},e),{},(0,s.default)({},t,r))}}(R);return c=n=function(n){function c(e){var r,o;o=n.call(this,e)||this,(0,s.default)((0,a.default)(o),"_handleFragmentDataUpdate",(function(){o.setState({data:o._resolver.resolve()})})),(0,s.default)((0,a.default)(o),"_hasMore",(function(){var e=o._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,s.default)((0,a.default)(o),"_isLoading",(function(){return!!o._refetchSubscription})),(0,s.default)((0,a.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,O(t),{force:!0}).unsubscribe}})),(0,s.default)((0,a.default)(o),"_loadMore",(function(e,t,r){if(!o._canFetchPage("loadMore"))return{dispose:function(){}};var n=O(t),i=o._getConnectionData();if(!i)return E.create((function(e){return e.complete()})).subscribe(n),null;var a=i.edgeCount+e;if(r&&r.force)return o._refetchConnection(a,t);var u=C.get(),s=(u.END_CURSOR,u.START_CURSOR,{count:e,cursor:i.cursor,totalCount:a});return{dispose:o._fetchPage(s,n,r).unsubscribe}}));var i=m(e.__relayContext),u=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return o._isARequestInFlight=!1,o._refetchSubscription=null,o._refetchVariables=null,!0===P.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?o._resolver=S(i,d,t,e,u):o._resolver=S(i,d,t,e,u,o._handleFragmentDataUpdate),o.state={data:o._resolver.resolve(),prevContext:i,contextForChildren:i,relayProp:o._buildRelayProp(i),resolverGeneration:0},o._isUnmounted=!1,o._hasFetched=!1,o}(0,u.default)(c,n);var p=c.prototype;return p.componentDidMount=function(){this._isUnmounted=!1,!0===P.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},p.componentDidUpdate=function(e,t){!0===P.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},p.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,o=m(e.__relayContext),i=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,a=x(t,this.props),u=x(t,e),s=f(t,this.props),l=f(t,e);o.environment===this.state.prevContext.environment&&y(s,l)&&y(a,u)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===P.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=S(o,d,t,e,i):this._resolver=S(o,d,t,e,i,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})},p.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},p.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 i=n[o];if("__relayContext"===i){if(r.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(i)&&!I(e[i],this.props[i]))return!0}return!1},p._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},p._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},p._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},p._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,i.default)(e,["componentRef"])),r=(0,l.default)((0,l.default)({},t),this.state.data),n=k(r);if(null==n)return null;var o=C.get(),a=o.EDGES,u=o.PAGE_INFO,s=o.HAS_NEXT_PAGE,c=o.HAS_PREV_PAGE,f=o.END_CURSOR,d=o.START_CURSOR;"object"!=typeof n&&b(!1);var p=n[a],h=n[u];if(null==p||null==h)return null;Array.isArray(p)||b(!1),"object"!=typeof h&&b(!1);var v="forward"===N?h[s]:h[c],_="forward"===N?h[f]:h[d];return"boolean"!=typeof v||0!==p.length&&void 0===_?null:{cursor:_,edgeCount:p.length,hasMore:v}},p._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new _),this._queryFetcher},p._canFetchPage=function(e){return!this._isUnmounted},p._fetchPage=function(e,n,o){var a,u=this,s=m(this.props.__relayContext).environment,c=this.props,d=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,i.default)(c,["componentRef","__relayContext","__rootIsQueryRenderer"])),p=(0,l.default)((0,l.default)({},d),this.state.data),h=f(t,d);a=D(t,d),a=(0,l.default)((0,l.default)((0,l.default)({},h),a),this._refetchVariables);var v=r.getVariables(p,{count:e.count,cursor:e.cursor},a);("object"!=typeof v||null===v)&&b(!1),v=(0,l.default)((0,l.default)({},v),this._refetchVariables),a=(0,l.default)((0,l.default)({},v),a);var _=o?{force:!!o.force}:void 0;null!=_&&null!=(null==o?void 0:o.metadata)&&(_.metadata=null==o?void 0:o.metadata);var g=q(r.query),R=F(g,v,_),C=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var P=function(){u._refetchSubscription===C&&(u._refetchSubscription=null,u._isARequestInFlight=!1)};return this._isARequestInFlight=!0,C=this._getQueryFetcher().execute({environment:s,operation:R,preservePreviousReferences:!0}).mergeMap((function(t){return E.create((function(t){!function(t,r){var n=u._resolver.resolve();u._resolver.setVariables(A(a,e.totalCount),R.request.node);var o=u._resolver.resolve();y(n,o)?r():u.setState({data:o,contextForChildren:{environment:u.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:P,complete:P,unsubscribe:P}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?C:null,C},p._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()},p.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,i.default)(t,["componentRef","__relayContext","__rootIsQueryRenderer"]));return g.createElement(v.Provider,{value:this.state.contextForChildren},g.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},c}(g.Component),(0,s.default)(n,"displayName",d),c}e.exports={createContainer:function(e,t,r){return c(e,t,(function(e,t){return k(e,t,r)}))}}},function(e,t,r){"use strict";var n=r(2),o=n(r(5)),i=n(r(12)),a=n(r(13)),u=n(r(7)),s=r(9),l=r(20),c=r(18),f=r(10),d=r(0),p=r(1),h=p.RelayFeatureFlags,v=p.createOperationDescriptor,_=(p.deepFreeze,p.getRequest),m={},y={rootIsQueryRenderer:!0},b=function(e){function t(t){var r;r=e.call(this,t)||this,(0,u.default)((0,i.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 m[r],n===e.snapshot&&t===e.error?null:{renderProps:g(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,a,s={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;a=R(_(c).params,t.variables),n=m[a]?m[a].queryFetcher:new l}else n=new l;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,o.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:s},E(t,n,s,a)),r}(0,a.default)(t,e),t.getDerivedStateFromProps=function(e,t){return t.prevQuery===e.query&&t.prevPropsEnvironment===e.environment&&f(t.prevPropsVariables,e.variables)?null:C(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===h.ENABLE_QUERY_RENDERER_OFFSCREEN_SUPPORT&&!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(t){return C(e.props,t)}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,o=t.requestCacheKey;o&&delete m[o],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete m[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 m[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 d.createElement(s.Provider,{value:r},d.createElement(c.Provider,{value:y},this.props.render(t)))},t}(d.Component);function g(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 C(e,t){var r,n=e.query,i=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var a=R(_(n).params,e.variables);r=m[a]?m[a].queryFetcher:new l(i)}else r=new l(i);return(0,o.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},E(e,r,t.retryCallbacks))}function E(e,t,r,n){var o=e.environment,i=e.query,a=e.variables,u=e.cacheConfig,s=o;if(!i)return t.dispose(),{error:null,relayContext:{environment:s},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var l=_(i),c=v(l,a,u),f={environment:s};if("string"==typeof n&&m[n]){var d=m[n].snapshot;return d?{error:null,relayContext:f,renderProps:g(null,d,t,r),snapshot:d,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var p=t.lookupInStore(s,c,e.fetchPolicy),h=t.fetch({environment:s,onDataChange:null,operation:c})||p;return n=n||R(l.params,e.variables),m[n]={queryFetcher:t,snapshot:h},h?{error:null,relayContext:f,renderProps:g(null,h,t,r),snapshot:h,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:f,renderProps:g(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=b},function(e,t,r){"use strict";var n=r(2),o=n(r(17)),i=n(r(15)),a=n(r(5)),u=n(r(12)),s=n(r(13)),l=n(r(7)),c=r(16),f=r(25),d=r(14).getContainerName,p=r(9),h=r(20),v=r(19).assertRelayContext,_=r(10),m=r(0),y=r(1),b=y.Observable,g=y.createFragmentSpecResolver,R=y.createOperationDescriptor,C=y.getDataIDsFromObject,E=y.getRequest,P=y.getVariablesFromObject,S=y.isScalarAndEqual;r(6);function F(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return c(e,t,(function(e,t){return function(e,t,r){var n,c,y=d(e);return c=n=function(n){function c(e){var o,i;i=n.call(this,e)||this,(0,l.default)((0,u.default)(i),"_handleFragmentDataUpdate",(function(){var e=i.state.resolver;i.setState((function(t){return e===t.resolver?{data:t.resolver.resolve()}:null}))})),(0,l.default)((0,u.default)(i),"_refetch",(function(e,n,o,u){if(i._isUnmounted)return{dispose:function(){}};var s=v(i.props.__relayContext).environment,l=f(t,i.props),c="function"==typeof e?e(i._getFragmentVariables()):e;c=(0,a.default)((0,a.default)({},l),c);var d=n?(0,a.default)((0,a.default)({},c),n):c,p=u?{force:!!u.force}:void 0;null!=p&&null!=(null==u?void 0:u.metadata)&&(p.metadata=null==u?void 0:u.metadata);var h,_="function"==typeof o?{next:o,error:o}:o||{},m=E(r),y=R(m,c,p);return i.state.localVariables=c,i._refetchSubscription&&i._refetchSubscription.unsubscribe(),null!=i._getQueryFetcher().lookupInStore(s,y,null==u?void 0:u.fetchPolicy)?(i.state.resolver.setVariables(d,y.request.node),i.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:i.props.__relayContext.environment}}}),(function(){_.next&&_.next(),_.complete&&_.complete()})),{dispose:function(){}}):(i._getQueryFetcher().execute({environment:s,operation:y,preservePreviousReferences:!0}).mergeMap((function(e){return i.state.resolver.setVariables(d,y.request.node),b.create((function(e){return i.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:i.props.__relayContext.environment}}}),(function(){e.next(),e.complete()}))}))})).finally((function(){i._refetchSubscription===h&&(i._refetchSubscription=null)})).subscribe((0,a.default)((0,a.default)({},_),{},{start:function(e){i._refetchSubscription=h=e,_.start&&_.start(e)}})),{dispose:function(){h&&h.unsubscribe()}})}));var s=v(e.__relayContext),c=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o;i._refetchSubscription=null;var d=g(s,y,t,e,c);return i.state={data:d.resolve(),localVariables:null,prevProps:e,prevPropsContext:s,contextForChildren:s,relayProp:F(s.environment,i._refetch),resolver:d},i._isUnmounted=!1,i}(0,s.default)(c,n);var d=c.prototype;return d.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},d.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()},c.getDerivedStateFromProps=function(e,r){var n,o=r.prevProps,i=v(e.__relayContext),a=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,u=C(t,o),s=C(t,e),l=f(t,o),c=f(t,e),d=r.resolver;if(r.prevPropsContext.environment!==i.environment||!_(l,c)||!_(u,s))return{data:(d=g(i,y,t,e,a)).resolve(),localVariables:null,prevProps:e,prevPropsContext:i,contextForChildren:i,relayProp:F(i.environment,r.relayProp.refetch),resolver:d};r.localVariables||d.setProps(e);var p=d.resolve();return p!==r.data?{data:p,prevProps:e}:null},d.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},d.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 i=n[o];if("__relayContext"===i){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(i)&&!S(e[i],this.props[i]))return!0}return!1},d._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},d._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})},d._getFragmentVariables=function(){return P(t,this.props)},d._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new h),this._queryFetcher},d.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,i.default)(t,["componentRef","__relayContext","__rootIsQueryRenderer"])),a=this.state,u=a.relayProp,s=a.contextForChildren;return m.createElement(p.Provider,{value:s},m.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:u})))},c}(m.Component),(0,l.default)(n,"displayName",y),c}(e,t,r)}))}}},function(e,t,r){"use strict";var n=r(21),o=r(4),i=r(0),a=r(0),u=a.useContext,s=a.useEffect;r(6);e.exports=function(e){var t=e.entryPointReference,r=e.props,a=t.getComponent,l=t.queries,c=t.entryPoints,f=t.extraProps,d=t.rootModuleID,p=a(),h=u(n),v=o();return s((function(){v.__log({name:"entrypoint.root.consume",profilerContext:h,rootModuleID:d})}),[v,h,d]),i.createElement(p,{entryPoints:c,extraProps:f,props:r,queries:l})}},function(e,t,r){"use strict";var n=r(0),o=r(26),i=n.useMemo;e.exports=function(e){var t=e.children,r=e.environment,a=e.getEnvironmentForActor,u=i((function(){return{environment:r,getEnvironmentForActor:a}}),[r,a]);return n.createElement(o.Provider,{value:u},t)}},function(e,t,r){"use strict";var n=r(2)(r(28)),o=r(27),i=r(8).useTrackLoadQueryInRender,a=r(11),u=r(0),s=u.useCallback,l=u.useEffect,c=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var u,p,h,v;i();var _=null!==(u=null==r||null===(p=r.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,m=null!==(h=null==r||null===(v=r.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==h?h:null,y=a(),b=c(new Set([_])),g=f(_),R=g[0],C=g[1],E=f(m),P=E[0],S=E[1],F=s((function(){if(y.current){var e={kind:"NullEntryPointReference"};b.current.add(e),C(e)}}),[C,y]),x=s((function(r){if(y.current){var n=o(e,t,r);b.current.add(n),C(n),S(r)}}),[e,t,C,y]),q=c(!1);return l((function(){return function(){q.current=!0}}),[]),l((function(){if(!0===q.current)return q.current=!1,void("NullEntryPointReference"!==R.kind&&null!=P&&x(P));var e=b.current;if(y.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o===R)break;e.delete(o),"NullEntryPointReference"!==o.kind&&o.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[R,P,x,y]),l((function(){return function(){var e,t=(0,n.default)(b.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,x,F]}},function(e,t,r){"use strict";var n=r(8).useTrackLoadQueryInRender,o=r(22),i=r(24),a=(r(0).useDebugValue,r(1).getFragment);e.exports=function(e,t){n();var r=a(e);return i(r,"first argument of useFragment()"),o(r,t,"useFragment()").data}},function(e,t){e.exports=h},function(e,t,r){"use strict";var n=r(8).useTrackLoadQueryInRender,o=r(32),i=r(34),a=r(4),u=r(1).__internal.fetchQuery;e.exports=function(e,t,r){n();var s=a(),l=i(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return o({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:u(s,l),fetchPolicy:null==r?void 0:r.fetchPolicy,query:l,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},function(e,t,r){"use strict";var n=r(10),o=r(0),i=o.useMemo,a=o.useRef,u=o.useState;e.exports=function(e){var t,r,o=a(0),s=u(e),l=s[0],c=s[1];return n(e,l)||(o.current=(null!==(r=o.current)&&void 0!==r?r:0)+1,c(e)),[i((function(){return e}),[o.current]),null!==(t=o.current)&&void 0!==t?t:0]}},function(e,t,r){"use strict";var n=r(2)(r(5)),o=r(11),i=r(4),a=r(0),u=r(1).commitMutation,s=a.useState,l=a.useEffect,c=a.useRef,f=a.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,r=i(),a=o(),d=c(r),p=c(e),h=c(new Set),v=s(!1),_=v[0],m=v[1],y=f((function(t){d.current===r&&p.current===e&&(h.current.delete(t),a.current&&m(h.current.size>0))}),[r,a,e]);l((function(){d.current===r&&p.current===e||(h.current=new Set,a.current&&m(!1),d.current=r,p.current=e)}),[r,a,e]);var b=f((function(o){var i=t(r,(0,n.default)((0,n.default)({},o),{},{mutation:e,onCompleted:function(e,t){var r;y(i),null===(r=o.onCompleted)||void 0===r||r.call(o,e,t)},onError:function(e){var t;y(i),null===(t=o.onError)||void 0===t||t.call(o,e)},onUnsubscribe:function(){var e;y(i),null===(e=o.onUnsubscribe)||void 0===e||e.call(o)},onNext:function(){var e;null===(e=o.onNext)||void 0===e||e.call(o)}}));return h.current.add(i),a.current&&m(!0),i}),[y,t,r,a,e]);return[b,_]}},function(e,t,r){"use strict";var n=r(2)(r(5)),o=r(55),i=r(35),a=r(24),u=r(0),s=u.useCallback,l=(u.useDebugValue,u.useState),c=r(1),f=c.getFragment,d=c.getFragmentIdentifier,p=c.getPaginationMetadata;function h(e){var t=l(!1),r=t[0],i=t[1],a={start:function(){return i(!0)},complete:function(){return i(!1)},error:function(){return i(!1)}},u=o((0,n.default)((0,n.default)({},e),{},{observer:a,onReset:function(){return i(!1)}}));return[u[0],u[1],r,u[2]]}e.exports=function(e,t){var r=f(e);a(r,"first argument of usePaginationFragment()");var o=p(r,"usePaginationFragment()"),u=o.connectionPathInFragmentData,l=o.paginationRequest,c=o.paginationMetadata,v=o.identifierField,_=i(r,t,"usePaginationFragment()"),m=_.fragmentData,y=_.fragmentRef,b=_.refetch,g=d(r,y),R=h({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"backward",fragmentData:m,fragmentIdentifier:g,fragmentNode:r,fragmentRef:y,identifierField:v,paginationMetadata:c,paginationRequest:l}),C=R[0],E=R[1],P=R[2],S=R[3],F=h({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"forward",fragmentData:m,fragmentIdentifier:g,fragmentNode:r,fragmentRef:y,identifierField:v,paginationMetadata:c,paginationRequest:l}),x=F[0],q=F[1],D=F[2],I=F[3];return{data:m,loadNext:x,loadPrevious:C,hasNext:q,hasPrevious:E,isLoadingNext:D,isLoadingPrevious:P,refetch:s((function(e,t){return I(),S(),b(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[I,S,b])}}},function(e,t,r){"use strict";var n=r(2)(r(5)),o=r(33),i=r(11),a=r(56),u=r(4),s=r(3),l=r(0),c=l.useCallback,f=l.useEffect,d=l.useState,p=r(1),h=p.ConnectionInterface,v=p.__internal.fetchQuery,_=p.createOperationDescriptor,m=p.getPaginationVariables,y=p.getSelector,b=p.getValueAtPath;r(6);e.exports=function(e){var t=e.direction,r=e.fragmentNode,l=e.fragmentRef,p=e.fragmentIdentifier,g=e.fragmentData,R=e.connectionPathInFragmentData,C=e.paginationRequest,E=e.paginationMetadata,P=e.componentDisplayName,S=e.observer,F=e.onReset,x=e.identifierField,q=u(),D=o(),I=D.isFetchingRef,O=D.startFetch,k=D.disposeFetch,N=D.completeFetch,A=null!=x&&null!=g&&"object"==typeof g?g[x]:null,w=i(),Q=d(q),T=Q[0],M=Q[1],U=d(p),L=U[0],j=U[1],V=a(r,l);(q!==T||p!==L)&&(k(),F(),M(q),j(p));var W=function(e,t,r,n){var o,i,a=h.get(),u=a.EDGES,l=a.PAGE_INFO,c=a.HAS_NEXT_PAGE,f=a.HAS_PREV_PAGE,d=a.END_CURSOR,p=a.START_CURSOR,v=b(r,n);if(null==v)return{cursor:null,hasMore:!1};"object"!=typeof v&&s(!1);var _=v[u],m=v[l];if(null==_||null==m)return{cursor:null,hasMore:!1};Array.isArray(_)||s(!1),"object"!=typeof m&&s(!1);var y,g="forward"===e?null!==(o=m[d])&&void 0!==o?o:null:null!==(i=m[p])&&void 0!==i?i:null;null!==g&&"string"!=typeof g&&s(!1),y="forward"===e?null!=g&&!0===m[c]:null!=g&&!0===m[f];return{cursor:g,hasMore:y}}(t,0,g,R),H=W.cursor,B=W.hasMore;return f((function(){return function(){k()}}),[k]),[c((function(e,o){var i=null==o?void 0:o.onComplete;if(!0!==w.current)return{dispose:function(){}};var a=y(r,l);if(!0===I.current||null==g||V)return i&&i(null),{dispose:function(){}};(null==a||"PluralReaderSelector"===a.kind)&&s(!1);var u=a.owner.variables,c=a.variables,f=null==o?void 0:o.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),c),p=m(t,e,H,d,(0,n.default)({},f),E);null!=x&&(p.id=A);var h=_(C,p,{force:!0});return v(q,h).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){O(e),S.start&&S.start(e)},complete:function(){N(),S.complete&&S.complete(),i&&i(null)},error:function(e){N(),S.error&&S.error(e),i&&i(e)}})),{dispose:k}}),[q,A,t,H,O,k,N,I,V,g,r.name,l,P]),B,k]}},function(e,t,r){"use strict";var n=r(4),o=r(3),i=r(0),a=r(1),u=a.__internal.getObservableForActiveRequest,s=a.getSelector,l=i.useEffect,c=i.useState,f=i.useMemo;e.exports=function(e,t){var r=n(),i=f((function(){var n=s(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&o(!1),u(r,n.owner))}),[r,e,t]),a=c(null!=i),d=a[0],p=a[1];return l((function(){var e;if(p(null!=i),null!=i){var t=function(){p(!1)};e=i.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[i]),d}},function(e,t,r){"use strict";var n=r(8).useTrackLoadQueryInRender,o=r(32),i=r(34),a=r(4),u=r(3),s=(r(0).useDebugValue,r(1).__internal),l=s.fetchQueryDeduped,c=s.fetchQuery;r(6);e.exports=function(e,t,r){n();var s,f=a(),d=t.fetchKey,p=t.fetchPolicy,h=t.source,v=t.variables,_=t.networkCacheConfig,m=i(e,v,_);if("PreloadedQuery_DEPRECATED"===t.kind)m.request.node.params.name!==t.name&&u(!1),s={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:l(f,m.request.identifier,(function(){return f===t.environment&&null!=h?f.executeWithSource({operation:m,source:h}):f.execute({operation:m})})),fetchPolicy:p,query:m,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{var y=c(f,m);s={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=h&&f===t.environment?h.ifEmpty(y):(t.environment,y),fetchKey:d,fetchPolicy:p,query:m,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}return o(s)}},function(e,t,r){"use strict";var n=r(35),o=r(24),i=(r(0).useDebugValue,r(1).getFragment);e.exports=function(e,t){var r=i(e);o(r,"first argument of useRefetchableFragment()");var a=n(r,t,"useRefetchableFragment()");return[a.fragmentData,a.refetch]}},function(e,t,r){"use strict";var n=r(4),o=r(0),i=o.useEffect,a=o.useRef;e.exports=function(e,t){var r=n(),o=a(null),u=Array.from(e).sort().join("");return i((function(){var n=r.getStore(),i=n.lookupInvalidationState(e),a=n.subscribeToInvalidationState(i,t);return o.current=a,function(){return a.dispose()}}),[u,t,r]),{dispose:function(){null!=o.current&&o.current.dispose()}}}},function(e,t,r){"use strict";var n=r(4),o=r(0).useEffect,i=r(1).requestSubscription;e.exports=function(e,t){var r=null!=t?t:i,a=n();o((function(){return r(a,e).dispose}),[a,e,r])}}])}));
|
@@ -13,19 +13,17 @@
|
|
13
13
|
|
14
14
|
'use strict';
|
15
15
|
|
16
|
-
const ProfilerContext = require('./ProfilerContext');
|
17
|
-
const React = require('react');
|
18
|
-
|
19
|
-
const useRelayEnvironment = require('./useRelayEnvironment');
|
20
|
-
const warning = require('warning');
|
21
|
-
|
22
|
-
const {useContext, useEffect} = require('react');
|
23
|
-
|
24
16
|
import type {
|
25
17
|
EntryPointComponent,
|
26
18
|
PreloadedEntryPoint,
|
27
19
|
} from './EntryPointTypes.flow';
|
28
20
|
|
21
|
+
const ProfilerContext = require('./ProfilerContext');
|
22
|
+
const useRelayEnvironment = require('./useRelayEnvironment');
|
23
|
+
const React = require('react');
|
24
|
+
const {useContext, useEffect} = require('react');
|
25
|
+
const warning = require('warning');
|
26
|
+
|
29
27
|
function EntryPointContainer<
|
30
28
|
+TPreloadedQueries: {...},
|
31
29
|
+TPreloadedNestedEntryPoints: {...},
|
@@ -51,13 +49,8 @@ function EntryPointContainer<
|
|
51
49
|
'collection, and as such may no longer be present in the Relay store. ' +
|
52
50
|
'In the future, this will become a hard error.',
|
53
51
|
);
|
54
|
-
const {
|
55
|
-
|
56
|
-
queries,
|
57
|
-
entryPoints,
|
58
|
-
extraProps,
|
59
|
-
rootModuleID,
|
60
|
-
} = entryPointReference;
|
52
|
+
const {getComponent, queries, entryPoints, extraProps, rootModuleID} =
|
53
|
+
entryPointReference;
|
61
54
|
const Component = getComponent();
|
62
55
|
const profilerContext = useContext(ProfilerContext);
|
63
56
|
const environment = useRelayEnvironment();
|
@@ -75,7 +75,7 @@ export type PreloadedQueryInner_DEPRECATED<
|
|
75
75
|
+id: ?string,
|
76
76
|
+name: string,
|
77
77
|
+source: ?Observable<GraphQLResponse>,
|
78
|
-
+variables:
|
78
|
+
+variables: TQuery['variables'],
|
79
79
|
+status: PreloadQueryStatus,
|
80
80
|
|};
|
81
81
|
|
@@ -83,7 +83,12 @@ export type PreloadedQueryInner<
|
|
83
83
|
TQuery: OperationType,
|
84
84
|
TEnvironmentProviderOptions = EnvironmentProviderOptions,
|
85
85
|
> = {|
|
86
|
+
// Releases query data and cancels network request if still in flight
|
86
87
|
+dispose: () => void,
|
88
|
+
// Releases query data
|
89
|
+
+releaseQuery: () => void,
|
90
|
+
// Cancels network request if still in flight
|
91
|
+
+cancelNetworkRequest: () => void,
|
87
92
|
+environment: IEnvironment,
|
88
93
|
+environmentProviderOptions: ?TEnvironmentProviderOptions,
|
89
94
|
+fetchKey: string | number,
|
@@ -95,7 +100,7 @@ export type PreloadedQueryInner<
|
|
95
100
|
+networkCacheConfig: ?CacheConfig,
|
96
101
|
+source: ?Observable<GraphQLResponse>,
|
97
102
|
+kind: 'PreloadedQuery',
|
98
|
-
+variables:
|
103
|
+
+variables: TQuery['variables'],
|
99
104
|
|};
|
100
105
|
|
101
106
|
export type PreloadQueryStatus = {|
|
@@ -198,14 +203,11 @@ export type PreloadProps<
|
|
198
203
|
// Return type of `loadEntryPoint(...)`
|
199
204
|
export type PreloadedEntryPoint<TEntryPointComponent> = $ReadOnly<{|
|
200
205
|
dispose: () => void,
|
201
|
-
entryPoints:
|
202
|
-
|
203
|
-
'entryPoints',
|
204
|
-
>,
|
205
|
-
extraProps: $PropertyType<ElementConfig<TEntryPointComponent>, 'extraProps'>,
|
206
|
+
entryPoints: ElementConfig<TEntryPointComponent>['entryPoints'],
|
207
|
+
extraProps: ElementConfig<TEntryPointComponent>['extraProps'],
|
206
208
|
getComponent: () => TEntryPointComponent,
|
207
209
|
isDisposed: boolean,
|
208
|
-
queries:
|
210
|
+
queries: ElementConfig<TEntryPointComponent>['queries'],
|
209
211
|
rootModuleID: string,
|
210
212
|
|}>;
|
211
213
|
|
@@ -222,10 +224,9 @@ type ComponentFromEntryPoint<+TEntryPoint> = $Call<
|
|
222
224
|
TEntryPoint,
|
223
225
|
>;
|
224
226
|
|
225
|
-
export type EntryPointElementConfig<+TEntryPoint> =
|
226
|
-
|
227
|
-
|
228
|
-
>;
|
227
|
+
export type EntryPointElementConfig<+TEntryPoint> = ElementConfig<
|
228
|
+
ComponentFromEntryPoint<TEntryPoint>,
|
229
|
+
>['props'];
|
229
230
|
|
230
231
|
export type ThinQueryParams<
|
231
232
|
TQuery: OperationType,
|
@@ -234,7 +235,7 @@ export type ThinQueryParams<
|
|
234
235
|
environmentProviderOptions?: ?TEnvironmentProviderOptions,
|
235
236
|
options?: ?PreloadOptions,
|
236
237
|
parameters: PreloadableConcreteRequest<TQuery>,
|
237
|
-
variables:
|
238
|
+
variables: TQuery['variables'],
|
238
239
|
|}>;
|
239
240
|
|
240
241
|
type ThinNestedEntryPointParams<TEntryPointParams, TEntryPoint> = $ReadOnly<{|
|
@@ -256,24 +257,22 @@ export type ExtractEntryPointTypeHelper = <
|
|
256
257
|
EntryPoint<TEntryPointParams, TEntryPointComponent>,
|
257
258
|
>;
|
258
259
|
|
259
|
-
export type EntryPoint<
|
260
|
-
|
261
|
-
|
262
|
-
>
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
$PropertyType<ElementConfig<TEntryPointComponent>, 'extraProps'>,
|
268
|
-
>;
|
260
|
+
export type EntryPoint<TEntryPointParams, +TEntryPointComponent> =
|
261
|
+
InternalEntryPointRepresentation<
|
262
|
+
TEntryPointParams,
|
263
|
+
ElementConfig<TEntryPointComponent>['queries'],
|
264
|
+
ElementConfig<TEntryPointComponent>['entryPoints'],
|
265
|
+
ElementConfig<TEntryPointComponent>['props'],
|
266
|
+
ElementConfig<TEntryPointComponent>['extraProps'],
|
267
|
+
>;
|
269
268
|
|
270
269
|
type ExtractFirstParam = <P, R>((P) => R) => P;
|
271
|
-
type GetPreloadPropsType<T> =
|
270
|
+
type GetPreloadPropsType<T> = T['getPreloadProps'];
|
272
271
|
export type PreloadParamsOf<T> = $Call<
|
273
272
|
ExtractFirstParam,
|
274
273
|
GetPreloadPropsType<T>,
|
275
274
|
>;
|
276
275
|
|
277
276
|
export type IEnvironmentProvider<TOptions> = {|
|
278
|
-
getEnvironment(options: ?TOptions)
|
277
|
+
getEnvironment: (options: ?TOptions) => IEnvironment,
|
279
278
|
|};
|