react-relay 16.0.0 → 16.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/ReactRelayContext.js +1 -1
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/legacy.js +1 -1
- package/lib/relay-hooks/HooksImplementation.js +1 -1
- package/lib/relay-hooks/{react-cache/readFragmentInternal_REACT_CACHE.js → experimental/readFragmentInternal_EXPERIMENTAL.js} +2 -2
- package/lib/relay-hooks/{react-cache/useFragmentInternal_REACT_CACHE.js → experimental/useFragmentInternal_EXPERIMENTAL.js} +2 -2
- package/lib/relay-hooks/{react-cache/useFragment_REACT_CACHE.js → experimental/useFragment_EXPERIMENTAL.js} +1 -1
- package/lib/relay-hooks/{react-cache/usePaginationFragment_REACT_CACHE.js → experimental/usePaginationFragment_EXPERIMENTAL.js} +1 -1
- package/lib/relay-hooks/{react-cache/useRefetchableFragmentInternal_REACT_CACHE.js → experimental/useRefetchableFragmentInternal_EXPERIMENTAL.js} +2 -2
- package/lib/relay-hooks/{react-cache/useRefetchableFragment_REACT_CACHE.js → experimental/useRefetchableFragment_EXPERIMENTAL.js} +1 -1
- package/lib/relay-hooks/useLazyLoadQueryNode.js +12 -2
- package/package.json +2 -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/EntryPointTypes.flow.js.flow +17 -19
- package/relay-hooks/HooksImplementation.js.flow +3 -1
- package/relay-hooks/{react-cache/readFragmentInternal_REACT_CACHE.js.flow → experimental/readFragmentInternal_EXPERIMENTAL.js.flow} +2 -2
- package/relay-hooks/{react-cache/useFragmentInternal_REACT_CACHE.js.flow → experimental/useFragmentInternal_EXPERIMENTAL.js.flow} +4 -4
- package/relay-hooks/{react-cache/useFragment_REACT_CACHE.js.flow → experimental/useFragment_EXPERIMENTAL.js.flow} +1 -1
- package/relay-hooks/{react-cache/usePaginationFragment_REACT_CACHE.js.flow → experimental/usePaginationFragment_EXPERIMENTAL.js.flow} +2 -2
- package/relay-hooks/{react-cache/useRefetchableFragmentInternal_REACT_CACHE.js.flow → experimental/useRefetchableFragmentInternal_EXPERIMENTAL.js.flow} +11 -11
- package/relay-hooks/{react-cache/useRefetchableFragment_REACT_CACHE.js.flow → experimental/useRefetchableFragment_EXPERIMENTAL.js.flow} +1 -1
- package/relay-hooks/useBlockingPaginationFragment.js.flow +9 -14
- package/relay-hooks/useLazyLoadQueryNode.js.flow +17 -1
- package/relay-hooks/usePaginationFragment.js.flow +5 -7
- package/relay-hooks/useRefetchableFragment.js.flow +13 -16
- package/relay-hooks/useRefetchableFragmentNode.js.flow +5 -7
- package/lib/relay-hooks/react-cache/RelayReactCache.js +0 -20
- package/lib/relay-hooks/react-cache/getQueryResultOrFetchQuery_REACT_CACHE.js +0 -255
- package/lib/relay-hooks/react-cache/useLazyLoadQuery_REACT_CACHE.js +0 -33
- package/lib/relay-hooks/react-cache/usePreloadedQuery_REACT_CACHE.js +0 -81
- package/relay-hooks/react-cache/RelayReactCache.js.flow +0 -40
- package/relay-hooks/react-cache/getQueryResultOrFetchQuery_REACT_CACHE.js.flow +0 -430
- package/relay-hooks/react-cache/useLazyLoadQuery_REACT_CACHE.js.flow +0 -70
- package/relay-hooks/react-cache/usePreloadedQuery_REACT_CACHE.js.flow +0 -150
package/react-relay.min.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* Relay v16.
|
2
|
+
* Relay v16.1.0
|
3
3
|
*
|
4
4
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
5
5
|
*
|
6
6
|
* This source code is licensed under the MIT license found in the
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
8
8
|
*/
|
9
|
-
!function(e,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("@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","@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("@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["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"])}(window,(function(e,t,r,n,o,i,a,s,u,l,c,f,d,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=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){e.exports=o},function(e,t,r){"use strict";var n=r(7),o=r(3),i=r(0).useContext;e.exports=function(){var e=i(n);return null==e&&o(!1),e.environment}},function(e,t){e.exports=i},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,r){"use strict";var n=(0,r(2).default)(r(4)),o=r(3),i=r(0),a=r(1),s=a.__internal.fetchQueryDeduped,u=a.Observable,l=a.PreloadableQueryRegistry,c=a.RelayFeatureFlags,f=a.ReplaySubject,d=a.createOperationDescriptor,h=a.getRequest,p=a.getRequestIdentifier,v=(r(6),null),_=100001;e.exports={loadQuery:function(e,t,r,a,v){var m,y,g;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 b,R,C,E,P,S,F=null!==(g=null==a?void 0:a.fetchPolicy)&&void 0!==g?g:"store-or-network",x=(0,n.default)((0,n.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),D=!1,q=function(t,r){return D=!0,e.executeWithSource({operation:t,source:r})},I=new f,O=u.create((function(e){return I.subscribe(e)})),A=null,k=!1,N=function(t){var n;k=!0;var o=new f;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+p(t,r);n=s(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){A=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===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(k=!0);var n=s(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);(b=e.retain(n),"store-only"!==F)&&(("store-or-network"!==F||"available"!==e.check(n).status)&&w(n,(function(){var e=N(t.params);return q(n,e)})))};if("PreloadableConcreteRequest"===t.kind){null===(S=(E=t.params).id)&&o(!1);var T=l.get(S);if(null!=T)Q(T);else{var M="store-only"===F?null:N(E),L=l.onLoad(S,(function(t){P();var n=d(t,r,x);b=e.retain(n),null!=M&&w(n,(function(){return q(n,M)}))}));P=L.dispose}}else{var U=h(t);S=null!=(E=U.params).cacheID?E.cacheID:E.id,Q(U)}var j=!1,V=!1,B=!1,K=function(){V||(b&&b.dispose(),V=!0)},H=function(){B||(D?C&&C():R&&R(),P&&P(),B=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:v,dispose:function(){j||(K(),H(),j=!0)},releaseQuery:K,cancelNetworkRequest:H,fetchKey:_,id:S,get isDisposed(){return j||V},get networkError(){return A},name:E.name,networkCacheConfig:x,fetchPolicy:F,source:k?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){e.exports=s},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=u},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,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,r){"use strict";var n=(0,r(2).default)(r(18)),o=r(41),i=r(14),a=i.getComponentName,s=i.getContainerName,u=r(7),l=r(19),c=r(3),f=r(0),d=r(1).getFragment,h=f.useContext;e.exports=function(e,t,r){var i=s(e);o(a(e),t);var p={};for(var v in t)p[v]=d(t[v]);var _=r(e,p);function m(e,t){var r,o=h(u);null==o&&c(!1);var i=h(l);return f.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,f.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(42),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=(0,r(2).default)(r(8)),o=r(3),i=r(1),a=i.__internal.fetchQuery,s=i.createOperationDescriptor,u=i.isRelayModernEnvironment,l=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_didFetchFinish",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t,r){return"store-and-network"!==r&&"store-or-network"!==r||"available"!==e.check(t).status?null:(this._retainCachedOperation(e,t),e.lookup(t.fragment))},t.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},t.execute=function(e){var t=this,r=e.environment,n=e.operation,o=e.preservePreviousReferences,i=void 0!==o&&o,s=r.retain(n),l=function(){t._selectionReferences=t._selectionReferences.concat(s)},c=function(){i||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(s)},f=function(){t._selectionReferences=t._selectionReferences.concat(s)};return u(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._didFetchFinish&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e,t){var r,n=this,o=e.environment,i=e.operation,a=e.onDataChange,u=!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?s(i.request.node,i.request.variables,t):i,f=this.execute({environment:o,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._didFetchFinish=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:u})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;u?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){f.unsubscribe()}},u=!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,s=n.operation;if(!this._snapshot&&(this._snapshot=i.lookup(s.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 u=this._snapshot;a.forEach((function(e){return e({snapshot:u})}))}},e}();e.exports=l},function(e,t,r){"use strict";var n=r(2).default,o=n(r(4)),i=n(r(8)),a=r(31),s=r(32),u=r(3),l=r(1).isPromise,c=(r(6),"function"==typeof WeakMap);function f(e){return void 0!==e.request.node.params.metadata.live}function d(e,t,r,n,o){var i=null!=r?r:f(t)?"store-and-network":"store-or-network",a=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),s="".concat(i,"-").concat(a,"-").concat(t.request.identifier);return null!=o?"".concat(s,"-").concat(o):s}function h(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 p=2e5;function v(e,t,r,n,o,i){var a=f(t),u=n,l=o,c=new s((function(e){var r=e.retain(t);return{dispose:function(){a&&null!=l&&l.unsubscribe(),r.dispose(),i(d)}}})),d={cacheIdentifier:e,id:p++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return u},setValue:function(e){u=e},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 d}var _=function(){function e(e){var t=this;(0,i.default)(this,"_clearCacheEntry",(function(e){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 s=d(this._environment,e,r,n,i);return this.prepareWithIdentifier(s,e,t,r,n,o,a)},t.prepareWithIdentifier=function(e,t,r,n,i,a,s){var u=this._environment,c=null!=n?n:f(t)?"store-and-network":"store-or-network",d=null!=i?i:u.UNSTABLE_getDefaultRenderPolicy(),h=this._cache.get(e),p=null,v=null!=h;null==h&&(h=this._fetchAndSaveQuery(e,t,r,c,d,s,(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=h.temporaryRetain(u);var _=h.getValue();if(l(_))throw u.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:v,operation:t,queryAvailability:h.operationAvailability,renderPolicy:d}),_;if(_ instanceof Error)throw _;return _},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=d(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=v(e,t,r,n,o,this._clearCacheEntry),this._cache.set(e,i)),i},t._fetchAndSaveQuery=function(e,t,r,n,i,a,s){var l,c,d=this,p=this._environment,_=p.check(t),m=_.status,y="available"===m,g=y||"partial"===i&&"stale"!==m,b=function(){};switch(n){case"store-only":l=!1,c=!0;break;case"store-or-network":l=!y,c=g;break;case"store-and-network":l=!0,c=g;break;case"network-only":default:l=!0,c=!1}if(c){var R=h(t,e),C=v(e,t,_,R,null,this._clearCacheEntry);this._cache.set(e,C)}if(l){var E,P=h(t,e);r.subscribe({start:function(r){E=r;var n=d._cache.get(e);n&&n.setNetworkSubscription(E);var i=null==s?void 0:s.start;i&&i((0,o.default)((0,o.default)({},r),{},{unsubscribe:function(){f(t)&&r.unsubscribe()}}))},next:function(){var r=d._getOrCreateCacheEntry(e,t,_,P,E);r.processedPayloadsCount+=1,r.setValue(P),b();var n=null==s?void 0:s.next;null!=n&&n(p.lookup(t.fragment))},error:function(r){var n=d._getOrCreateCacheEntry(e,t,_,r,E);0===n.processedPayloadsCount&&n.setValue(r),b(),E=null,n.setNetworkSubscription(null);var o=null==s?void 0:s.error;o&&o(r)},complete:function(){b(),E=null;var t=d._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==s?void 0:s.complete;r&&r()},unsubscribe:null==s?void 0:s.unsubscribe});var S=this._cache.get(e);if(!S){var F=new Promise((function(e){b=e}));F.displayName="Relay("+t.fragment.node.name+")",S=v(e,t,_,F,E,this._clearCacheEntry),this._cache.set(e,S)}}else{var x=null==s?void 0:s.complete;x&&x()}var D=this._cache.get(e);return null==D&&u(!1),p.__log({name:"queryresource.fetch",resourceID:D.id,operation:t,profilerContext:a,fetchPolicy:n,renderPolicy:i,queryAvailability:_,shouldFetch:l}),D},e}();function m(e){return new _(e)}var y=c?new WeakMap:new Map;e.exports={createQueryResource:m,getQueryResourceForEnvironment:function(e){var t=y.get(e);if(t)return t;var r=m(e);return y.set(e,r),r},getQueryCacheIdentifier:d}},function(e,t,r){"use strict";var n=r(0).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},function(e,t,r){"use strict";var n=r(34).getFragmentResourceForEnvironment,o=r(5),i=r(23),a=r(0),s=a.useEffect,u=a.useState,l=r(1),c=l.RelayFeatureFlags,f=l.getFragmentIdentifier;r(6);e.exports=function(e,t,r){var a=o(),l=n(a),d=i(!1),h=u(0)[1],p=f(e,t),v=l.readWithIdentifier(e,t,p,r),_=i(!0);function m(){!1!==d.current&&!1!==_.current&&h((function(e){return e+1}))}return s((function(){d.current=!0;var e=l.subscribe(v,m);return function(){d.current=!1,e.dispose()}}),[a,p]),c.LOG_MISSING_RECORDS_IN_PROD&&null!=t&&(void 0===v.data||Array.isArray(v.data)&&v.data.length>0&&v.data.every((function(e){return void 0===e}))),{data:v.data,disableStoreUpdates:function(){_.current=!1},enableStoreUpdates:function(){_.current=!0,l.checkMissedUpdates(v)[0]&&m()}}}},function(e,t,r){"use strict";r(6);var n=null;e.exports={inject:function(e){n=e},get:function(){return n}}},function(e,t,r){"use strict";r(23),r(6);e.exports=function(e,t){}},function(e,t,r){"use strict";var n=(0,r(2).default)(r(4)),o=r(1).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(i){var a,s,u,l=e[i],c=t[i],f=o(l,c),d=null!=f&&"PluralReaderSelector"===f.kind?null!==(a=null===(s=f.selectors[0])||void 0===s?void 0:s.owner.variables)&&void 0!==a?a:{}:null!==(u=null==f?void 0:f.owner.variables)&&void 0!==u?u:{};r=(0,n.default)((0,n.default)({},r),d)})),r}},function(e,t,r){"use strict";var n=r(9).loadQuery;e.exports=function e(t,r,o){var i=null;null==r.root.getModuleIfRequired()&&(i=r.root.load());var a=r.getPreloadProps(o),s=a.queries,u=a.entryPoints,l=a.extraProps,c={},f={};null!=s&&Object.keys(s).forEach((function(e){var r=s[e],o=r.environmentProviderOptions,i=r.options,a=r.parameters,u=r.variables,l=t.getEnvironment(o);c[e]=n(l,a,u,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},o)})),null!=u&&Object.keys(u).forEach((function(r){var n=u[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 null!=t.default?t.default:t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},function(e,t,r){"use strict";var n=r(9).useTrackLoadQueryInRender,o=r(30),i=r(35),a=r(5),s=r(1).__internal.fetchQuery;e.exports=function(e,t,r){n();var u=a(),l=i(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return o({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:s(u,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(15),o=r(22),i=o.getQueryCacheIdentifier,a=o.getQueryResourceForEnvironment,s=r(33),u=r(24),l=r(5),c=r(0),f=c.useContext,d=c.useEffect,h=c.useState,p=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),g=a(m),b=h(0),R=b[0],C=b[1],E=s(),P=E.startFetch,S=E.completeFetch,F="".concat(R,"-").concat(null!=v?v:""),x=i(m,t,c,_,F),D=y.wrapPrepareQueryResource((function(){return g.prepareWithIdentifier(x,t,o,c,_,{start:P,complete:S,error:S},y)})),q=p(!1);d((function(){return function(){q.current=!0}}),[]),d((function(){if(!0===q.current)return q.current=!1,void C((function(e){return e+1}));var e=g.retain(D,y);return function(){e.dispose()}}),[m,x]),d((function(){g.releaseTemporaryRetain(D)}));var I=D.fragmentNode,O=D.fragmentRef;return u(I,O,r).data}},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=(0,r(2).default)(r(8)),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(23),o=r(0),i=o.useCallback,a=o.useEffect;e.exports=function(){var e=n(null),t=n(!1),r=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),o=i((function(r){e.current=r,t.current=!0}),[]),s=i((function(){e.current=null,t.current=!1}),[]);return a((function(){return r}),[r]),{isFetchingRef:t,startFetch:o,disposeFetch:r,completeFetch:s}}},function(e,t,r){"use strict";var n=r(2).default,o=n(r(4)),i=n(r(8)),a=n(r(50)),s=r(31),u=r(22).getQueryResourceForEnvironment,l=r(32),c=r(3),f=r(1),d=f.__internal,h=d.fetchQuery,p=d.getPromiseForActiveRequest,v=f.RelayFeatureFlags,_=f.createOperationDescriptor,m=f.getFragmentIdentifier,y=f.getPendingOperationsForFragment,g=f.getSelector,b=f.getVariablesFromFragment,R=f.handlePotentialSnapshotErrors,C=f.isPromise,E=f.recycleNodesInto,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){return Array.isArray(e)?e.map((function(e){return e.missingLiveResolverFields})).filter(Boolean).flat():e.missingLiveResolverFields}function D(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}(),I=function(){function e(e){this._environment=e,this._cache=s.create(1e6),v.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,s,l,f,d=this,h=this._environment;if(null==t)return{cacheKey:r,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var _=h.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:_};var m=this._cache.get(r);if(null!=m){var y;if("pending"===m.kind&&C(m.promise))throw h.__log({name:"suspense.fragment",data:m.result.data,fragment:e,isRelayHooks:!0,isMissingData:m.result.isMissingData,isPromiseCached:!0,pendingOperations:m.pendingOperations}),m.promise;if("done"===m.kind&&m.result.snapshot&&(null===(y=x(m.result.snapshot))||void 0===y||!y.length))return this._throwOrLogErrorsInSnapshot(m.result.snapshot),m.result.isMissingData&&h.__log({name:"fragmentresource.missing_data",data:m.result.data,fragment:e,isRelayHooks:!0,cached:!0}),m.result}var b=g(e,t);null==b&&c(!1);var R=null,E=null;if(v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&null!=m&&"missing"===m.kind?(R=m.result,E=m.snapshot):R=D(r,E="PluralReaderSelector"===b.kind?b.selectors.map((function(e){return h.lookup(e)})):h.lookup(b),_),!R.isMissingData)return this._throwOrLogErrorsInSnapshot(E),this._cache.set(r,{kind:"done",result:R}),R;var P=null;if(v.ENABLE_CLIENT_EDGES&&!0===(null===(s=e.metadata)||void 0===s?void 0:s.hasClientEdges)&&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}(E)){P=[];var F=u(this._environment),q=[];!function(e,t){Array.isArray(e)?e.forEach(t):t(e)}(E,(function(r){var n;null===(n=r.missingClientEdges)||void 0===n||n.forEach((function(r){var n,o=r.request,i=r.clientEdgeDestinationID,a=d._performClientEdgeQuery(F,e,t,o,i),s=a.queryResult,u=a.requestDescriptor;q.push(s),null===(n=P)||void 0===n||n.push(u)}))})),null==this._clientEdgeQueryResultsCache&&c(!1),this._clientEdgeQueryResultsCache.recordQueryResults(r,q)}var I=[];v.ENABLE_CLIENT_EDGES&&P&&(I=P.map((function(e){return p(d._environment,e)})).filter(Boolean));var O="PluralReaderSelector"===b.kind?b.selectors[0].owner:b.owner,A=this._getAndSavePromiseForFragmentRequestInFlight(r,e,O,R),k=null==A?void 0:A.promise,N=null!==(l=null===(f=x(E))||void 0===f?void 0:f.map((function(e){var t=e.liveStateID;return h.getStore().getLiveResolverPromise(t)})))&&void 0!==l?l:[];if(I.length||N.length||C(k)){var w,Q;h.__log({name:"suspense.fragment",data:R.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:R.isMissingData,pendingOperations:[].concat((0,a.default)(null!==(w=null==A?void 0:A.pendingOperations)&&void 0!==w?w:[]),(0,a.default)(null!==(Q=P)&&void 0!==Q?Q:[]))});var T=[];if(I.length>0&&(T=T.concat(I)),N.length>0&&(T=T.concat(N)),T.length>0)throw k&&T.push(k),Promise.all(T);if(k)throw k}return v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&R.isMissingData&&this._cache.set(r,{kind:"done",result:R}),this._throwOrLogErrorsInSnapshot(E),h.__log({name:"fragmentresource.missing_data",data:R.data,fragment:e,isRelayHooks:!0,cached:!1}),D(r,E,_)},t._performClientEdgeQuery=function(e,t,r,n,i){var a=b(t,r),s=(0,o.default)((0,o.default)({},a),{},{id:i}),u=_(n,s,{}),l=h(this._environment,u),c=e.prepare(u,l);return{requestDescriptor:u.request,queryResult:c}},t._throwOrLogErrorsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){R(t._environment,e.missingRequiredFields,e.relayResolverErrors)})):R(this._environment,e.missingRequiredFields,e.relayResolverErrors)},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),s=a[0],l=a[1];s&&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(),a=D(o,e,i);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&a.isMissingData?r._cache.set(o,{kind:"missing",result:a,snapshot:e}):r._cache.set(o,{kind:"done",result:D(o,e,i)}),t()})))),v.ENABLE_CLIENT_EDGES){var d,h,p=null!==(d=null===(h=this._clientEdgeQueryResultsCache)||void 0===h?void 0:h.get(o))&&void 0!==d?d:void 0;if(null!=p&&p.length){var _=u(this._environment);p.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,s=[];if(r.forEach((function(e,r){var n=t.lookup(e.selector),i=e.data,u=n.data,l=E(i,u);l!==i&&(n=(0,o.default)((0,o.default)({},n),{},{data:l}),a=!0),s[r]=n})),a){var u=D(i,s,n);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&u.isMissingData?this._cache.set(i,{kind:"missing",result:u,snapshot:s}):this._cache.set(i,{kind:"done",result:u})}return[a,s]}var l=t.lookup(r.selector),c=r.data,f=l.data,d=E(c,f),h={data:d,isMissingData:l.isMissingData,missingClientEdges:l.missingClientEdges,missingLiveResolverFields:l.missingLiveResolverFields,seenRecords:l.seenRecords,selector:l.selector,missingRequiredFields:l.missingRequiredFields,relayResolverErrors:l.relayResolverErrors};if(d!==c){var p=D(i,h,n);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&p.isMissingData?this._cache.set(i,{kind:"missing",result:p,snapshot:h}):this._cache.set(i,{kind:"done",result:p})}return[d!==c,h]},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,s=i.pendingOperations,u=a.then((function(){o._cache.delete(e)})).catch((function(t){o._cache.delete(e)}));return u.displayName=a.displayName,this._cache.set(e,{kind:"pending",pendingOperations:s,promise:u,result:n}),{promise:u,pendingOperations:s}},t._updatePluralSnapshot=function(e,t,r,n,o){var i,s=this._cache.get(e);if(C(s))O(r.selector.node.name);else{var u=null==s||null===(i=s.result)||void 0===i?void 0:i.snapshot;if(!u||Array.isArray(u)){var l=u?(0,a.default)(u):(0,a.default)(t);l[n]=r;var c=D(e,l,o);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&c.isMissingData?this._cache.set(e,{kind:"missing",result:c,snapshot:l}):this._cache.set(e,{kind:"done",result:c})}else O(r.selector.node.name)}},e}();function O(e){c(!1)}function A(e){return new I(e)}var k=P?new WeakMap:new Map;e.exports={createFragmentResource:A,getFragmentResourceForEnvironment:function(e){var t=k.get(e);if(t)return t;var r=A(e);return k.set(e,r),r}}},function(e,t,r){"use strict";var n=r(51),o=r(0),i=r(1),a=i.createOperationDescriptor,s=i.getRequest,u=o.useMemo;e.exports=function(e,t,r){var o=n(t),i=n(r||{});return u((function(){return a(s(e),o,i)}),[e,o,i])}},function(e,t){e.exports=d},function(e,t,r){"use strict";var n=(0,r(2).default)(r(4)),o=r(34).getFragmentResourceForEnvironment,i=r(15),a=r(22).getQueryResourceForEnvironment,s=r(24),u=r(11),l=r(38),c=r(5),f=r(3),d=r(0),h=d.useCallback,p=d.useContext,v=d.useReducer,_=r(1),m=_.__internal.fetchQuery,y=_.createOperationDescriptor,g=_.getFragmentIdentifier,b=_.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(),_=b(e,r),P=_.refetchableRequest,S=_.fragmentRefPathInResponse,F=g(e,t),x=v(E,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:F,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=x[0],q=x[1],I=D.fetchPolicy,O=D.mirroredEnvironment,A=D.mirroredFragmentIdentifier,k=D.onComplete,N=D.refetchEnvironment,w=D.refetchQuery,Q=D.renderPolicy,T=null!=N?N:d,M=a(T),L=o(T),U=p(i),j=T!==O||F!==A,V=l(P),B=V[0],K=V[1],H=V[2],W=t,G=b(e,r).identifierInfo;if(j)q({type:"reset",environment:T,fragmentIdentifier:F}),H();else if(null!=w&&null!=B){0;var z=function(e){k&&k(null!=e?e:null)},Y=null!=B.source?B.source:m(T,w),X=U.wrapPrepareQueryResource((function(){return M.prepare(w,Y,I,Q,{error:z,complete:function(){z()}},B.fetchKey,U)})),J=L.read(X.fragmentNode,X.fragmentRef,r).data;null==J&&f(!1),W=C(J,S)}var Z=s(e,W,r),$=Z.data,ee=Z.disableStoreUpdates,te=Z.enableStoreUpdates;return{fragmentData:$,fragmentRef:W,refetch:function(e,t,r,o,i,a,s,l,c,f,d){var p=u(),v=null!=(null==l?void 0:l.identifierField)&&null!=o&&"object"==typeof o?o[l.identifierField]:null;return h((function(e,o){if(!0!==p.current)return{dispose:function(){}};var i,s,u=null==o?void 0:o.__environment,h=null==o?void 0:o.fetchPolicy,_=null==o?void 0:o.UNSTABLE_renderPolicy,m=null==o?void 0:o.onComplete,g=R(a,f);if(null==g)i={},s={};else if("PluralReaderSelector"===g.kind){var b,C,E,P;i=null!==(b=null===(C=g.selectors[0])||void 0===C?void 0:C.owner.variables)&&void 0!==b?b:{},s=null!==(E=null===(P=g.selectors[0])||void 0===P?void 0:P.variables)&&void 0!==E?E:{}}else i=g.owner.variables,s=g.variables;var S=(0,n.default)((0,n.default)((0,n.default)({},i),s),e);null==l||e.hasOwnProperty(l.identifierQueryVariableName)||(S[l.identifierQueryVariableName]=v);var F=y(d,S,{force:!0});return c(F.request.variables,{fetchPolicy:h,__environment:u,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:h,onComplete:m,refetchEnvironment:u,refetchQuery:F,renderPolicy:_}),{dispose:r}}),[i,t,r,v,c])}(0,q,H,$,F,e,0,G,K,t,P),disableStoreUpdates:ee,enableStoreUpdates:te}}},function(e,t,r){"use strict";var n=(0,r(2).default)(r(36)),o=r(9),i=o.loadQuery,a=o.useTrackLoadQueryInRender,s=r(11),u=r(5),l=r(0),c=l.useCallback,f=l.useEffect,d=l.useRef,h=l.useState,p=r(1).getRequest,v={kind:"NullQueryReference"};function _(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==p(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:v,o=u();a();var l=s(),p=d(new Set([r])),m=h((function(){return r})),y=m[0],g=m[1],b=h((function(){return r})),R=b[0],C=b[1];r!==R&&(p.current.add(r),C(r),g(r));var E=c((function(){l.current&&(p.current.add(v),g(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,s=i(null!==(a=null==r?void 0:r.__environment)&&void 0!==a?a:o,e,t,n);p.current.add(s),g(s)}}),[o,e,g,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=p.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)(p.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(7),o=r(40),i=r(43),a=r(44),s=r(45),u=r(46),l=r(47),c=r(28),f=r(9).loadQuery,d=r(15),h=r(48),p=r(49),v=r(52),_=r(53),m=r(29),y=r(54),g=r(55),b=r(58),R=r(38),C=r(59),E=r(5),P=r(60),S=r(61),F=r(1);e.exports={ConnectionHandler:F.ConnectionHandler,QueryRenderer:s,LocalQueryRenderer:i,MutationTypes:F.MutationTypes,RangeOperations:F.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:F.applyOptimisticMutation,commitLocalUpdate:F.commitLocalUpdate,commitMutation:F.commitMutation,createFragmentContainer:o.createContainer,createPaginationContainer:a.createContainer,createRefetchContainer:u.createContainer,fetchQuery_DEPRECATED:F.fetchQuery_DEPRECATED,graphql:F.graphql,readInlineData:F.readInlineData,requestSubscription:F.requestSubscription,EntryPointContainer:l,RelayEnvironmentProvider:h,ProfilerContext:d,fetchQuery:F.fetchQuery,loadQuery:f,loadEntryPoint:c,useClientQuery:p,useFragment:_,useLazyLoadQuery:m,useEntryPointLoader:v,useQueryLoader:R,useMutation:y,usePaginationFragment:g,usePreloadedQuery:b,useRefetchableFragment:C,useRelayEnvironment:E,useSubscribeToInvalidationState:P,useSubscription:S}},function(e,t,r){"use strict";var n=r(2).default,o=n(r(4)),i=n(r(16)),a=n(r(12)),s=n(r(13)),u=n(r(8)),l=["componentRef","__relayContext","__rootIsQueryRenderer"],c=r(17),f=r(14).getContainerName,d=r(20).assertRelayContext,h=r(10),p=r(0),v=r(1),_=v.createFragmentSpecResolver,m=v.getDataIDsFromObject,y=v.isScalarAndEqual;function g(e,t){var r,n=f(e);return r=function(r){function c(e){var o,i;i=r.call(this,e)||this,(0,u.default)((0,a.default)(i),"_handleFragmentDataUpdate",(function(){var e=i.state.resolver;i.setState((function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:b(t.relayProp.environment)}:null}))}));var s=d(e.__relayContext),l=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,c=_(s,n,t,e,l);return i.state={data:c.resolve(),prevProps:e,prevPropsContext:s,relayProp:b(s.environment),resolver:c},i}(0,s.default)(c,r),c.getDerivedStateFromProps=function(e,r){var o,i=r.prevProps,a=d(e.__relayContext),s=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o,u=m(t,i),l=m(t,e),c=r.resolver;if(r.prevPropsContext.environment!==a.environment||!h(u,l))return{data:(c=_(a,n,t,e,s)).resolve(),prevPropsContext:a,prevProps:e,relayProp:b(a.environment),resolver:c};c.setProps(e);var f=c.resolve();return f!==r.data?{data:f,prevProps:e,prevPropsContext:a,relayProp:b(a.environment)}:null};var f=c.prototype;return f.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},f.componentWillUnmount=function(){this.state.resolver.dispose()},f.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},f._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},f._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})},f.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,i.default)(t,l));return p.createElement(e,(0,o.default)((0,o.default)((0,o.default)({},n),this.state.data),{},{ref:r,relay:this.state.relayProp}))},c}(p.Component),(0,u.default)(r,"displayName",n),r}function b(e){return{environment:e}}e.exports={createContainer:function(e,t){return c(e,t,g)}}},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";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(7),o=r(19),i=r(10),a=r(0),s=r(1),u=s.createOperationDescriptor,l=(s.deepFreeze,s.getRequest),c=a.useLayoutEffect,f=a.useState,d=a.useRef,h=a.useMemo,p={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,s=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),g=h((function(){var e=l(v);return u(e,y)}),[v,y]),b=h((function(){return{environment:s}}),[s]),R=d(null),C=f(null)[1],E=d(null),P=h((function(){s.check(g);var e=s.lookup(g.fragment);R.current=e.data;var t=s.retain(g),r=s.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}),[s,g]);return c((function(){var e=E.current;return function(){e&&e()}}),[P]),a.createElement(n.Provider,{value:b},a.createElement(o.Provider,{value:p},m({props:R.current})))}},function(e,t,r){"use strict";var n=r(2).default,o=n(r(18)),i=n(r(16)),a=n(r(12)),s=n(r(13)),u=n(r(8)),l=n(r(4)),c=["componentRef"],f=["componentRef","__relayContext","__rootIsQueryRenderer"],d=["componentRef","__relayContext","__rootIsQueryRenderer"],h=r(17),p=r(27),v=r(14),_=v.getComponentName,m=v.getContainerName,y=r(7),g=r(21),b=r(20).assertRelayContext,R=r(10),C=r(3),E=r(0),P=r(1),S=P.ConnectionInterface,F=P.Observable,x=P.RelayFeatureFlags,D=P.createFragmentSpecResolver,q=P.createOperationDescriptor,I=P.getDataIDsFromObject,O=P.getRequest,A=P.getVariablesFromObject,k=P.isScalarAndEqual;r(6);function N(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}function w(e,t,r){_(e);var n,h=m(e),v=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&&C(!1),t&&C(!1),t=(0,l.default)((0,l.default)({},i[0]),{},{fragmentName:n}))}return r&&null===t&&C(!1),t||{}}(t),P=r.getConnectionFromProps||function(e){var t=e.path;return t||C(!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}}(v),w=r.direction||v.direction;w||C(!1);var Q=r.getFragmentVariables||function(e){var t=e.count;return t||C(!1),function(e,r){return(0,l.default)((0,l.default)({},e),{},(0,u.default)({},t,r))}}(v);return n=function(n){function v(e){var r,o;o=n.call(this,e)||this,(0,u.default)((0,a.default)(o),"_handleFragmentDataUpdate",(function(){o.setState({data:o._resolver.resolve()})})),(0,u.default)((0,a.default)(o),"_hasMore",(function(){var e=o._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,u.default)((0,a.default)(o),"_isLoading",(function(){return!!o._refetchSubscription})),(0,u.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,N(t),{force:!0}).unsubscribe}})),(0,u.default)((0,a.default)(o),"_loadMore",(function(e,t,r){if(!o._canFetchPage("loadMore"))return{dispose:function(){}};var n=N(t),i=o._getConnectionData();if(!i)return F.create((function(e){return e.complete()})).subscribe(n),null;var a=i.edgeCount+e;if(r&&r.force)return o._refetchConnection(a,t);var s=S.get(),u=(s.END_CURSOR,s.START_CURSOR,{count:e,cursor:i.cursor,totalCount:a});return{dispose:o._fetchPage(u,n,r).unsubscribe}}));var i=b(e.__relayContext),s=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return o._isARequestInFlight=!1,o._refetchSubscription=null,o._refetchVariables=null,!0===x.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?o._resolver=D(i,h,t,e,s):o._resolver=D(i,h,t,e,s,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,s.default)(v,n);var _=v.prototype;return _.componentDidMount=function(){this._isUnmounted=!1,!0===x.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},_.componentDidUpdate=function(e,t){!0===x.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},_.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,o=b(e.__relayContext),i=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,a=I(t,this.props),s=I(t,e),u=p(t,this.props),l=p(t,e);o.environment===this.state.prevContext.environment&&R(u,l)&&R(a,s)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===x.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=D(o,h,t,e,i):this._resolver=D(o,h,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})},_.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},_.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)&&!k(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}},_._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},_._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},_._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,i.default)(e,c)),r=(0,l.default)((0,l.default)({},t),this.state.data),n=P(r);if(null==n)return null;var o=S.get(),a=o.EDGES,s=o.PAGE_INFO,u=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,h=o.START_CURSOR;"object"!=typeof n&&C(!1);var p=n[a],v=n[s];if(null==p||null==v)return null;Array.isArray(p)||C(!1),"object"!=typeof v&&C(!1);var _="forward"===w?v[u]:v[f],m="forward"===w?v[d]:v[h];return"boolean"!=typeof _||0!==p.length&&void 0===m?null:{cursor:m,edgeCount:p.length,hasMore:_}},_._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new g),this._queryFetcher},_._canFetchPage=function(e){return!this._isUnmounted},_._fetchPage=function(e,n,o){var a,s=this,u=b(this.props.__relayContext).environment,c=this.props,d=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,i.default)(c,f)),h=(0,l.default)((0,l.default)({},d),this.state.data),v=p(t,d);a=A(t,d),a=(0,l.default)((0,l.default)((0,l.default)({},v),a),this._refetchVariables);var _=r.getVariables(h,{count:e.count,cursor:e.cursor},a);("object"!=typeof _||null===_)&&C(!1),_=(0,l.default)((0,l.default)({},_),this._refetchVariables),a=(0,l.default)((0,l.default)({},_),a);var m=o?{force:!!o.force}:void 0;null!=m&&null!=(null==o?void 0:o.metadata)&&(m.metadata=null==o?void 0:o.metadata);var y=O(r.query),g=q(y,_,m),E=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var P=function(){s._refetchSubscription===E&&(s._refetchSubscription=null,s._isARequestInFlight=!1)};return this._isARequestInFlight=!0,E=this._getQueryFetcher().execute({environment:u,operation:g,preservePreviousReferences:!0}).mergeMap((function(t){return F.create((function(t){!function(t,r){var n=s._resolver.resolve();s._resolver.setVariables(Q(a,e.totalCount),g.request.node);var o=s._resolver.resolve();R(n,o)?r():s.setState({data:o,contextForChildren:{environment:s.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:P,complete:P,unsubscribe:P}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?E:null,E},_._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,d));return E.createElement(y.Provider,{value:this.state.contextForChildren},E.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},v}(E.Component),(0,u.default)(n,"displayName",h),n}e.exports={createContainer:function(e,t,r){return h(e,t,(function(e,t){return w(e,t,r)}))}}},function(e,t,r){"use strict";var n=r(2).default,o=n(r(4)),i=n(r(12)),a=n(r(13)),s=n(r(8)),u=r(7),l=r(21),c=r(19),f=r(10),d=r(0),h=r(1),p=h.createOperationDescriptor,v=(h.deepFreeze,h.getRequest),_={},m={rootIsQueryRenderer:!0},y=function(e){function t(t){var r;r=e.call(this,t)||this,(0,s.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 _[r],n===e.snapshot&&t===e.error?null:{renderProps:g(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,a,u={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;a=b(v(c).params,t.variables),n=_[a]?_[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:u},C(t,n,u,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:R(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(t){var r=R(e.props,t),n=r.requestCacheKey,o=r.queryFetcher;return null!=n&&null!=_[n]&&o.setOnDataChange(e._handleDataChange),r}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,o=t.requestCacheKey;o&&delete _[o],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete _[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 _[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(u.Provider,{value:r},d.createElement(c.Provider,{value:m},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 b(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function R(e,t){var r,n=e.query,i=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var a=b(v(n).params,e.variables);r=_[a]?_[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},C(e,r,t.retryCallbacks))}function C(e,t,r,n){var o=e.environment,i=e.query,a=e.variables,s=e.cacheConfig,u=o;if(!i)return t.dispose(),{error:null,relayContext:{environment:u},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var l=v(i),c=p(l,a,s),f={environment:u};if("string"==typeof n&&_[n]){var d=_[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 h=t.lookupInStore(u,c,e.fetchPolicy),m=t.fetch({environment:u,onDataChange:null,operation:c})||h;return n=n||b(l.params,e.variables),_[n]={queryFetcher:t,snapshot:m},m?{error:null,relayContext:f,renderProps:g(null,m,t,r),snapshot:m,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=y},function(e,t,r){"use strict";var n=r(2).default,o=n(r(18)),i=n(r(16)),a=n(r(4)),s=n(r(12)),u=n(r(13)),l=n(r(8)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],f=r(17),d=r(27),h=r(14).getContainerName,p=r(7),v=r(21),_=r(20).assertRelayContext,m=r(10),y=r(0),g=r(1),b=g.Observable,R=g.createFragmentSpecResolver,C=g.createOperationDescriptor,E=g.getDataIDsFromObject,P=g.getRequest,S=g.getVariablesFromObject,F=g.isScalarAndEqual;r(6);function x(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return f(e,t,(function(e,t){return function(e,t,r){var n,f=h(e);return n=function(n){function h(e){var o,i;i=n.call(this,e)||this,(0,l.default)((0,s.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,s.default)(i),"_refetch",(function(e,n,o,s){if(i._isUnmounted)return{dispose:function(){}};var u=_(i.props.__relayContext).environment,l=d(t,i.props),c="function"==typeof e?e(i._getFragmentVariables()):e;c=(0,a.default)((0,a.default)({},l),c);var f=n?(0,a.default)((0,a.default)({},c),n):c,h=s?{force:!!s.force}:void 0;null!=h&&null!=(null==s?void 0:s.metadata)&&(h.metadata=null==s?void 0:s.metadata);var p,v="function"==typeof o?{next:o,error:o}:o||{},m=P(r),y=C(m,c,h);return i.state.localVariables=c,i._refetchSubscription&&i._refetchSubscription.unsubscribe(),null!=i._getQueryFetcher().lookupInStore(u,y,null==s?void 0:s.fetchPolicy)?(i.state.resolver.setVariables(f,y.request.node),i.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:i.props.__relayContext.environment}}}),(function(){v.next&&v.next(),v.complete&&v.complete()})),{dispose:function(){}}):(i._getQueryFetcher().execute({environment:u,operation:y,preservePreviousReferences:!0}).mergeMap((function(e){return i.state.resolver.setVariables(f,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===p&&(i._refetchSubscription=null)})).subscribe((0,a.default)((0,a.default)({},v),{},{start:function(e){i._refetchSubscription=p=e,v.start&&v.start(e)}})),{dispose:function(){p&&p.unsubscribe()}})}));var u=_(e.__relayContext),c=null!==(o=e.__rootIsQueryRenderer)&&void 0!==o&&o;i._refetchSubscription=null;var h=R(u,f,t,e,c);return i.state={data:h.resolve(),localVariables:null,prevProps:e,prevPropsContext:u,contextForChildren:u,relayProp:x(u.environment,i._refetch),resolver:h},i._isUnmounted=!1,i}(0,u.default)(h,n);var g=h.prototype;return g.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},g.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()},h.getDerivedStateFromProps=function(e,r){var n,o=r.prevProps,i=_(e.__relayContext),a=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,s=E(t,o),u=E(t,e),l=d(t,o),c=d(t,e),h=r.resolver;if(r.prevPropsContext.environment!==i.environment||!m(l,c)||!m(s,u))return{data:(h=R(i,f,t,e,a)).resolve(),localVariables:null,prevProps:e,prevPropsContext:i,contextForChildren:i,relayProp:x(i.environment,r.relayProp.refetch),resolver:h};r.localVariables||h.setProps(e);var p=h.resolve();return p!==r.data?{data:p,prevProps:e}:null},g.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},g.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)&&!F(e[i],this.props[i]))return!0}return!1},g._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},g._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})},g._getFragmentVariables=function(){return S(t,this.props)},g._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new v),this._queryFetcher},g.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,i.default)(t,c)),a=this.state,s=a.relayProp,u=a.contextForChildren;return y.createElement(p.Provider,{value:u},y.createElement(e,(0,o.default)({},n,this.state.data,{ref:r,relay:s})))},h}(y.Component),(0,l.default)(n,"displayName",f),n}(e,t,r)}))}}},function(e,t,r){"use strict";var n=r(15),o=r(5),i=r(0),a=r(0),s=a.useContext,u=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,h=a(),p=s(n),v=o();return u((function(){v.__log({name:"entrypoint.root.consume",profilerContext:p,rootModuleID:d})}),[v,p,d]),i.createElement(h,{entryPoints:c,extraProps:f,props:r,queries:l})}},function(e,t,r){"use strict";var n=r(7),o=r(0),i=o.useMemo;e.exports=function(e){var t=e.children,r=e.environment,a=e.getEnvironmentForActor,s=i((function(){return{environment:r,getEnvironmentForActor:a}}),[r,a]);return o.createElement(n.Provider,{value:s},t)}},function(e,t,r){"use strict";var n=(0,r(2).default)(r(4)),o=r(29);e.exports=function(e,t,r){return o(e,t,(0,n.default)((0,n.default)({},r),{},{fetchPolicy:"store-only"}))}},function(e,t){e.exports=h},function(e,t,r){"use strict";var n=r(10),o=r(0).useState;e.exports=function(e){var t=o(e),r=t[0],i=t[1];return n(e,r)?r:(i(e),e)}},function(e,t,r){"use strict";var n=(0,r(2).default)(r(36)),o=r(28),i=r(9).useTrackLoadQueryInRender,a=r(11),s=r(0),u=s.useCallback,l=s.useEffect,c=s.useRef,f=s.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var s,h,p,v;i();var _=null!==(s=null==r||null===(h=r.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointReference)&&void 0!==s?s:d,m=null!==(p=null==r||null===(v=r.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==p?p:null,y=a(),g=c(new Set([_])),b=f(_),R=b[0],C=b[1],E=f(m),P=E[0],S=E[1],F=u((function(){if(y.current){var e={kind:"NullEntryPointReference"};g.current.add(e),C(e)}}),[C,y]),x=u((function(r){if(y.current){var n=o(e,t,r);g.current.add(n),C(n),S(r)}}),[e,t,C,y]),D=c(!1);return l((function(){return function(){D.current=!0}}),[]),l((function(){if(!0===D.current)return D.current=!1,void("NullEntryPointReference"!==R.kind&&null!=P&&x(P));var e=g.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)(g.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(25),o=r(9).useTrackLoadQueryInRender,i=r(24),a=r(26),s=(r(0).useDebugValue,r(1).getFragment);e.exports=function(e,t){var r=n.get();return r?r.useFragment(e,t):function(e,t){o();var r=s(e);return a(r,"first argument of useFragment()"),i(r,t,"useFragment()").data}(e,t)}},function(e,t,r){"use strict";var n=(0,r(2).default)(r(4)),o=r(11),i=r(5),a=r(0),s=r(1).commitMutation,u=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]:s,r=i(),a=o(),d=c(r),h=c(e),p=c(new Set),v=u(!1),_=v[0],m=v[1],y=f((function(t){d.current===r&&h.current===e&&(p.current.delete(t),a.current&&m(p.current.size>0))}),[r,a,e]);l((function(){d.current===r&&h.current===e||(p.current=new Set,a.current&&m(!1),d.current=r,h.current=e)}),[r,a,e]);var g=f((function(o){a.current&&m(!0);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 p.current.add(i),i}),[y,t,r,a,e]);return[g,_]}},function(e,t,r){"use strict";var n=(0,r(2).default)(r(4)),o=r(25),i=r(56),a=r(37),s=r(26),u=r(0),l=u.useCallback,c=(u.useDebugValue,u.useState),f=r(1),d=f.getFragment,h=f.getFragmentIdentifier,p=f.getPaginationMetadata;function v(e){var t=c(!1),r=t[0],o=t[1],a={start:function(){return o(!0)},complete:function(){return o(!1)},error:function(){return o(!1)}},s=i((0,n.default)((0,n.default)({},e),{},{observer:a,onReset:function(){return o(!1)}}));return[s[0],s[1],r,s[2]]}e.exports=function(e,t){var r=o.get();return r?r.usePaginationFragment(e,t):function(e,t){var r=d(e);s(r,"first argument of usePaginationFragment()");var o=p(r,"usePaginationFragment()"),i=o.connectionPathInFragmentData,u=o.paginationRequest,c=o.paginationMetadata,f=a(r,t,"usePaginationFragment()"),_=f.fragmentData,m=f.fragmentRef,y=f.refetch,g=h(r,m),b=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:i,direction:"backward",fragmentData:_,fragmentIdentifier:g,fragmentNode:r,fragmentRef:m,paginationMetadata:c,paginationRequest:u}),R=b[0],C=b[1],E=b[2],P=b[3],S=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:i,direction:"forward",fragmentData:_,fragmentIdentifier:g,fragmentNode:r,fragmentRef:m,paginationMetadata:c,paginationRequest:u}),F=S[0],x=S[1],D=S[2],q=S[3];return{data:_,loadNext:F,loadPrevious:R,hasNext:x,hasPrevious:C,isLoadingNext:D,isLoadingPrevious:E,refetch:l((function(e,t){return q(),P(),y(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[q,P,y])}}(e,t)}},function(e,t,r){"use strict";var n=(0,r(2).default)(r(4)),o=r(33),i=r(11),a=r(57),s=r(5),u=r(3),l=r(0),c=l.useCallback,f=l.useEffect,d=l.useState,h=r(1),p=h.__internal.fetchQuery,v=h.ConnectionInterface,_=h.createOperationDescriptor,m=h.getPaginationVariables,y=h.getRefetchMetadata,g=h.getSelector,b=h.getValueAtPath;r(6);e.exports=function(e){var t=e.direction,r=e.fragmentNode,l=e.fragmentRef,h=e.fragmentIdentifier,R=e.fragmentData,C=e.connectionPathInFragmentData,E=e.paginationRequest,P=e.paginationMetadata,S=e.componentDisplayName,F=e.observer,x=e.onReset,D=s(),q=o(),I=q.isFetchingRef,O=q.startFetch,A=q.disposeFetch,k=q.completeFetch,N=y(r,S).identifierInfo,w=null!=(null==N?void 0:N.identifierField)&&null!=R&&"object"==typeof R?R[N.identifierField]:null,Q=i(),T=d(D),M=T[0],L=T[1],U=d(h),j=U[0],V=U[1],B=a(r,l);(D!==M||h!==j)&&(A(),x(),L(D),V(h));var K=function(e,t,r,n){var o,i,a=v.get(),s=a.EDGES,l=a.PAGE_INFO,c=a.HAS_NEXT_PAGE,f=a.HAS_PREV_PAGE,d=a.END_CURSOR,h=a.START_CURSOR,p=b(r,n);if(null==p)return{cursor:null,hasMore:!1};"object"!=typeof p&&u(!1);var _=p[s],m=p[l];if(null==_||null==m)return{cursor:null,hasMore:!1};Array.isArray(_)||u(!1),"object"!=typeof m&&u(!1);var y,g="forward"===e?null!==(o=m[d])&&void 0!==o?o:null:null!==(i=m[h])&&void 0!==i?i:null;null!==g&&"string"!=typeof g&&u(!1),y="forward"===e?null!=g&&!0===m[c]:null!=g&&!0===m[f];return{cursor:g,hasMore:y}}(t,0,R,C),H=K.cursor,W=K.hasMore;return f((function(){return function(){A()}}),[A]),[c((function(e,o){var i=null==o?void 0:o.onComplete;if(!0!==Q.current)return{dispose:function(){}};var a=g(r,l);if(!0===I.current||null==R||B)return i&&i(null),{dispose:function(){}};(null==a||"PluralReaderSelector"===a.kind)&&u(!1);var s=a.owner.variables,c=a.variables,f=null==o?void 0:o.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},s),c),h=m(t,e,H,d,(0,n.default)({},f),P);null!=N&&(h[N.identifierQueryVariableName]=w);var v=_(E,h,{force:!0});return p(D,v).subscribe((0,n.default)((0,n.default)({},F),{},{start:function(e){O(e),F.start&&F.start(e)},complete:function(){k(),F.complete&&F.complete(),i&&i(null)},error:function(e){k(),F.error&&F.error(e),i&&i(e)}})),{dispose:A}}),[D,w,t,H,O,A,k,I,B,R,r.name,l,S]),W,A]}},function(e,t,r){"use strict";var n=r(5),o=r(3),i=r(0),a=r(1),s=a.__internal.getObservableForActiveRequest,u=a.getSelector,l=i.useEffect,c=i.useState,f=i.useMemo;e.exports=function(e,t){var r=n(),i=f((function(){var n=u(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&o(!1),s(r,n.owner))}),[r,e,t]),a=c(null!=i),d=a[0],h=a[1];return l((function(){var e;if(h(null!=i),null!=i){var t=function(){h(!1)};e=i.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[i]),d}},function(e,t,r){"use strict";var n=r(9).useTrackLoadQueryInRender,o=r(30),i=r(35),a=r(5),s=r(3),u=(r(0).useDebugValue,r(1).__internal),l=u.fetchQueryDeduped,c=u.fetchQuery;r(6);e.exports=function(e,t,r){n();var u,f=a(),d=t.fetchKey,h=t.fetchPolicy,p=t.source,v=t.variables,_=t.networkCacheConfig,m=i(e,v,_);if("PreloadedQuery_DEPRECATED"===t.kind)m.request.node.params.name!==t.name&&s(!1),u={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:l(f,m.request.identifier,(function(){return f===t.environment&&null!=p?f.executeWithSource({operation:m,source:p}):f.execute({operation:m})})),fetchPolicy:h,query:m,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{var y=c(f,m);u={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=p&&f===t.environment?p.ifEmpty(y):(t.environment,y),fetchKey:d,fetchPolicy:h,query:m,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}return o(u)}},function(e,t,r){"use strict";var n=r(25),o=r(37),i=r(26),a=(r(0).useDebugValue,r(1).getFragment);e.exports=function(e,t){var r=n.get();return r?r.useRefetchableFragment(e,t):function(e,t){var r=a(e);i(r,"first argument of useRefetchableFragment()");var n=o(r,t,"useRefetchableFragment()");return[n.fragmentData,n.refetch]}(e,t)}},function(e,t,r){"use strict";var n=r(5),o=r(0),i=o.useEffect,a=o.useRef;e.exports=function(e,t){var r=n(),o=a(null),s=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()}}),[s,t,r]),{dispose:function(){null!=o.current&&o.current.dispose()}}}},function(e,t,r){"use strict";var n=r(5),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])}}])}));
|
9
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],t):"object"==typeof exports?exports.ReactRelay=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelay=t(e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,t,r,n,a,o,i,s,u,l,c,f,d,h)=>(()=>{"use strict";var p={7426:e=>{function t(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:t,getContainerName:function(e){return"Relay("+t(e)+")"}}},9888:(e,t,r)=>{var n=r(8156),a=r(6658).__internal.createRelayContext;e.exports=a(n)},7362:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5264)),i=n(r(5383)),s=n(r(8296)),u=n(r(311)),l=["componentRef","__relayContext","__rootIsQueryRenderer"],c=r(3089),f=r(7426).getContainerName,d=r(8827).assertRelayContext,h=r(9125),p=r(8156),v=r(6658),_=v.createFragmentSpecResolver,m=v.getDataIDsFromObject,y=v.isScalarAndEqual;function g(e,t){var r,n=f(e);return r=function(r){function c(e){var a,o;o=r.call(this,e)||this,(0,u.default)((0,i.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 s=d(e.__relayContext),l=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a,c=_(s,n,t,e,l);return o.state={data:c.resolve(),prevProps:e,prevPropsContext:s,relayProp:b(s.environment),resolver:c},o}(0,s.default)(c,r),c.getDerivedStateFromProps=function(e,r){var a,o=r.prevProps,i=d(e.__relayContext),s=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a,u=m(t,o),l=m(t,e),c=r.resolver;if(r.prevPropsContext.environment!==i.environment||!h(u,l))return{data:(c=_(i,n,t,e,s)).resolve(),prevPropsContext:i,prevProps:e,relayProp:b(i.environment),resolver:c};c.setProps(e);var f=c.resolve();return f!==r.data?{data:f,prevProps:e,prevPropsContext:i,relayProp:b(i.environment)}:null};var f=c.prototype;return f.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},f.componentWillUnmount=function(){this.state.resolver.dispose()},f.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!y(e[o],this.props[o]))return!0}return!1},f._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},f._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})},f.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,l));return p.createElement(e,(0,a.default)((0,a.default)((0,a.default)({},n),this.state.data),{},{ref:r,relay:this.state.relayProp}))},c}(p.Component),(0,u.default)(r,"displayName",n),r}function b(e){return{environment:e}}e.exports={createContainer:function(e,t){return c(e,t,g)}}},1428:(e,t,r)=>{var n=r(9888),a=r(7239),o=r(9125),i=r(8156),s=r(6658),u=s.createOperationDescriptor,l=(s.deepFreeze,s.getRequest),c=i.useLayoutEffect,f=i.useState,d=i.useRef,h=i.useMemo,p={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,s=e.environment,v=e.query,_=e.variables,m=e.render,y=(t=_,r=i.useRef(t),o(r.current,t)||(r.current=t),r.current),g=h((function(){var e=l(v);return u(e,y)}),[v,y]),b=h((function(){return{environment:s}}),[s]),R=d(null),C=f(null)[1],E=d(null),P=h((function(){s.check(g);var e=s.lookup(g.fragment);R.current=e.data;var t=s.retain(g),r=s.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}),[s,g]);return c((function(){var e=E.current;return function(){e&&e()}}),[P]),i.createElement(n.Provider,{value:b},i.createElement(a.Provider,{value:p},m({props:R.current})))}},3540:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(5383)),s=n(r(8296)),u=n(r(311)),l=n(r(6175)),c=["componentRef"],f=["componentRef","__relayContext","__rootIsQueryRenderer"],d=["componentRef","__relayContext","__rootIsQueryRenderer"],h=r(3089),p=r(8416),v=r(7426),_=v.getComponentName,m=v.getContainerName,y=r(9888),g=r(733),b=r(8827).assertRelayContext,R=r(9125),C=r(5056),E=r(8156),P=r(6658),S=P.ConnectionInterface,F=P.Observable,x=P.RelayFeatureFlags,D=P.createFragmentSpecResolver,q=P.createOperationDescriptor,I=P.getDataIDsFromObject,O=P.getRequest,A=P.getVariablesFromObject,N=P.isScalarAndEqual,k=(r(4446),"forward");function w(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}e.exports={createContainer:function(e,t,r){return h(e,t,(function(e,t){return function(e,t,r){_(e);var n,h=m(e),v=function(e){var t=null,r=!1;for(var n in e){var a=e[n],o=a.metadata&&a.metadata.connection;void 0!==a.metadata&&(r=!0),o&&(1!==o.length&&C(!1),t&&C(!1),t=(0,l.default)((0,l.default)({},o[0]),{},{fragmentName:n}))}return r&&null===t&&C(!1),t||{}}(t),P=r.getConnectionFromProps||function(e){var t=e.path;return t||C(!1),function(r){for(var n=r[e.fragmentName],a=0;a<t.length;a++){if(!n||"object"!=typeof n)return null;n=n[t[a]]}return n}}(v),Q=r.direction||v.direction;Q||C(!1);var T=r.getFragmentVariables||function(e){var t=e.count;return t||C(!1),function(e,r){return(0,l.default)((0,l.default)({},e),{},(0,u.default)({},t,r))}}(v);return n=function(n){function v(e){var r,a;a=n.call(this,e)||this,(0,u.default)((0,i.default)(a),"_handleFragmentDataUpdate",(function(){a.setState({data:a._resolver.resolve()})})),(0,u.default)((0,i.default)(a),"_hasMore",(function(){var e=a._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,u.default)((0,i.default)(a),"_isLoading",(function(){return!!a._refetchSubscription})),(0,u.default)((0,i.default)(a),"_refetchConnection",(function(e,t,r){if(!a._canFetchPage("refetchConnection"))return{dispose:function(){}};a._refetchVariables=r;var n={count:e,cursor:null,totalCount:e};return{dispose:a._fetchPage(n,w(t),{force:!0}).unsubscribe}})),(0,u.default)((0,i.default)(a),"_loadMore",(function(e,t,r){if(!a._canFetchPage("loadMore"))return{dispose:function(){}};var n=w(t),o=a._getConnectionData();if(!o)return F.create((function(e){return e.complete()})).subscribe(n),null;var i=o.edgeCount+e;if(r&&r.force)return a._refetchConnection(i,t);var s=S.get(),u=(s.END_CURSOR,s.START_CURSOR,{count:e,cursor:o.cursor,totalCount:i});return{dispose:a._fetchPage(u,n,r).unsubscribe}}));var o=b(e.__relayContext),s=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return a._isARequestInFlight=!1,a._refetchSubscription=null,a._refetchVariables=null,!0===x.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?a._resolver=D(o,h,t,e,s):a._resolver=D(o,h,t,e,s,a._handleFragmentDataUpdate),a.state={data:a._resolver.resolve(),prevContext:o,contextForChildren:o,relayProp:a._buildRelayProp(o),resolverGeneration:0},a._isUnmounted=!1,a._hasFetched=!1,a}(0,s.default)(v,n);var _=v.prototype;return _.componentDidMount=function(){this._isUnmounted=!1,!0===x.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},_.componentDidUpdate=function(e,t){!0===x.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},_.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,a=b(e.__relayContext),o=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,i=I(t,this.props),s=I(t,e),u=p(t,this.props),l=p(t,e);a.environment===this.state.prevContext.environment&&R(u,l)&&R(i,s)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===x.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=D(a,h,t,e,o):this._resolver=D(a,h,t,e,o,this._handleFragmentDataUpdate),this.setState((function(e){return{prevContext:a,contextForChildren:a,relayProp:n._buildRelayProp(a),resolverGeneration:e.resolverGeneration+1}})));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||r.resolverGeneration!==this.state.resolverGeneration)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(r.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!N(e[o],this.props[o]))return!0}return!1},_._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},_._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},_._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},_._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,o.default)(e,c)),r=(0,l.default)((0,l.default)({},t),this.state.data),n=P(r);if(null==n)return null;var a=S.get(),i=a.EDGES,s=a.PAGE_INFO,u=a.HAS_NEXT_PAGE,f=a.HAS_PREV_PAGE,d=a.END_CURSOR,h=a.START_CURSOR;"object"!=typeof n&&C(!1);var p=n[i],v=n[s];if(null==p||null==v)return null;Array.isArray(p)||C(!1),"object"!=typeof v&&C(!1);var _=Q===k?v[u]:v[f],m=Q===k?v[d]:v[h];return"boolean"!=typeof _||0!==p.length&&void 0===m?null:{cursor:m,edgeCount:p.length,hasMore:_}},_._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new g),this._queryFetcher},_._canFetchPage=function(e){return!this._isUnmounted},_._fetchPage=function(e,n,a){var i,s=this,u=b(this.props.__relayContext).environment,c=this.props,d=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,o.default)(c,f)),h=(0,l.default)((0,l.default)({},d),this.state.data),v=p(t,d);i=A(t,d),i=(0,l.default)((0,l.default)((0,l.default)({},v),i),this._refetchVariables);var _=r.getVariables(h,{count:e.count,cursor:e.cursor},i);("object"!=typeof _||null===_)&&C(!1),_=(0,l.default)((0,l.default)({},_),this._refetchVariables),i=(0,l.default)((0,l.default)({},_),i);var m=a?{force:!!a.force}:void 0;null!=m&&null!=(null==a?void 0:a.metadata)&&(m.metadata=null==a?void 0:a.metadata);var y=O(r.query),g=q(y,_,m),E=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var P=function(){s._refetchSubscription===E&&(s._refetchSubscription=null,s._isARequestInFlight=!1)};return this._isARequestInFlight=!0,E=this._getQueryFetcher().execute({environment:u,operation:g,preservePreviousReferences:!0}).mergeMap((function(t){return F.create((function(t){!function(t,r){var n=s._resolver.resolve();s._resolver.setVariables(T(i,e.totalCount),g.request.node);var a=s._resolver.resolve();R(n,a)?r():s.setState({data:a,contextForChildren:{environment:s.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:P,complete:P,unsubscribe:P}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?E:null,E},_._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,o.default)(t,d));return E.createElement(y.Provider,{value:this.state.contextForChildren},E.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},v}(E.Component),(0,u.default)(n,"displayName",h),n}(e,t,r)}))}}},733:(e,t,r)=>{var n=(0,r(5275).default)(r(311)),a=r(5056),o=r(6658),i=o.__internal.fetchQuery,s=o.createOperationDescriptor,u=o.isRelayModernEnvironment,l=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_didFetchFinish",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t,r){return"store-and-network"!==r&&"store-or-network"!==r||"available"!==e.check(t).status?null:(this._retainCachedOperation(e,t),e.lookup(t.fragment))},t.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},t.execute=function(e){var t=this,r=e.environment,n=e.operation,a=e.preservePreviousReferences,o=void 0!==a&&a,s=r.retain(n),l=function(){t._selectionReferences=t._selectionReferences.concat(s)},c=function(){o||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(s)},f=function(){t._selectionReferences=t._selectionReferences.concat(s)};return u(r)?i(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||a(!1),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._didFetchFinish&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e,t){var r,n=this,a=e.environment,o=e.operation,i=e.onDataChange,u=!1;this.disposeRequest();var l=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:a,onDataChangeCallbacks:l||[],operation:o},i&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(i)&&this._fetchOptions.onDataChangeCallbacks.push(i);var c=t?s(o.request.node,o.request.variables,t):o,f=this.execute({environment:a,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._didFetchFinish=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:u})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;u?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){f.unsubscribe()}},u=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||a(!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||a(!1);var n=this._fetchOptions,o=n.environment,i=n.onDataChangeCallbacks,s=n.operation;if(!this._snapshot&&(this._snapshot=o.lookup(s.fragment),this._rootSubscription=o.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(i))){var u=this._snapshot;i.forEach((function(e){return e({snapshot:u})}))}},e}();e.exports=l},3701:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5383)),i=n(r(8296)),s=n(r(311)),u=r(9888),l=r(733),c=r(7239),f=r(9125),d=r(8156),h=r(6658),p=h.createOperationDescriptor,v=(h.deepFreeze,h.getRequest),_={},m={rootIsQueryRenderer:!0},y=function(e){function t(t){var r;r=e.call(this,t)||this,(0,s.default)((0,o.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 _[r],n===e.snapshot&&t===e.error?null:{renderProps:g(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,i,u={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;i=b(v(c).params,t.variables),n=_[i]?_[i].queryFetcher:new l}else n=new l;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,a.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:u},C(t,n,u,i)),r}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return t.prevQuery===e.query&&t.prevPropsEnvironment===e.environment&&f(t.prevPropsVariables,e.variables)?null:R(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(t){var r=R(e.props,t),n=r.requestCacheKey,a=r.queryFetcher;return null!=n&&null!=_[n]&&a.setOnDataChange(e._handleDataChange),r}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,a=t.requestCacheKey;a&&delete _[a],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete _[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,a=r.requestCacheKey;a&&(delete _[a],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(u.Provider,{value:r},d.createElement(c.Provider,{value:m},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 a=r.retry(t);a&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:a}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function b(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function R(e,t){var r,n=e.query,o=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var i=b(v(n).params,e.variables);r=_[i]?_[i].queryFetcher:new l(o)}else r=new l(o);return(0,a.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},C(e,r,t.retryCallbacks))}function C(e,t,r,n){var a=e.environment,o=e.query,i=e.variables,s=e.cacheConfig,u=a;if(!o)return t.dispose(),{error:null,relayContext:{environment:u},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var l=v(o),c=p(l,i,s),f={environment:u};if("string"==typeof n&&_[n]){var d=_[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 h=t.lookupInStore(u,c,e.fetchPolicy),m=t.fetch({environment:u,onDataChange:null,operation:c})||h;return n=n||b(l.params,e.variables),_[n]={queryFetcher:t,snapshot:m},m?{error:null,relayContext:f,renderProps:g(null,m,t,r),snapshot:m,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=y},7239:(e,t,r)=>{var n=r(8156);e.exports=n.createContext({rootIsQueryRenderer:!1})},2427:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(6175)),s=n(r(5383)),u=n(r(8296)),l=n(r(311)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],f=r(3089),d=r(8416),h=r(7426).getContainerName,p=r(9888),v=r(733),_=r(8827).assertRelayContext,m=r(9125),y=r(8156),g=r(6658),b=g.Observable,R=g.createFragmentSpecResolver,C=g.createOperationDescriptor,E=g.getDataIDsFromObject,P=g.getRequest,S=g.getVariablesFromObject,F=g.isScalarAndEqual;function x(e,t){return{environment:e,refetch:t}}r(4446),e.exports={createContainer:function(e,t,r){return f(e,t,(function(e,t){return function(e,t,r){var n,f=h(e);return n=function(n){function h(e){var a,o;o=n.call(this,e)||this,(0,l.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve()}:null}))})),(0,l.default)((0,s.default)(o),"_refetch",(function(e,n,a,s){if(o._isUnmounted)return{dispose:function(){}};var u=_(o.props.__relayContext).environment,l=d(t,o.props),c="function"==typeof e?e(o._getFragmentVariables()):e;c=(0,i.default)((0,i.default)({},l),c);var f=n?(0,i.default)((0,i.default)({},c),n):c,h=s?{force:!!s.force}:void 0;null!=h&&null!=(null==s?void 0:s.metadata)&&(h.metadata=null==s?void 0:s.metadata);var p,v="function"==typeof a?{next:a,error:a}:a||{},m=P(r),y=C(m,c,h);return o.state.localVariables=c,o._refetchSubscription&&o._refetchSubscription.unsubscribe(),null!=o._getQueryFetcher().lookupInStore(u,y,null==s?void 0:s.fetchPolicy)?(o.state.resolver.setVariables(f,y.request.node),o.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:o.props.__relayContext.environment}}}),(function(){v.next&&v.next(),v.complete&&v.complete()})),{dispose:function(){}}):(o._getQueryFetcher().execute({environment:u,operation:y,preservePreviousReferences:!0}).mergeMap((function(e){return o.state.resolver.setVariables(f,y.request.node),b.create((function(e){return o.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:o.props.__relayContext.environment}}}),(function(){e.next(),e.complete()}))}))})).finally((function(){o._refetchSubscription===p&&(o._refetchSubscription=null)})).subscribe((0,i.default)((0,i.default)({},v),{},{start:function(e){o._refetchSubscription=p=e,v.start&&v.start(e)}})),{dispose:function(){p&&p.unsubscribe()}})}));var u=_(e.__relayContext),c=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a;o._refetchSubscription=null;var h=R(u,f,t,e,c);return o.state={data:h.resolve(),localVariables:null,prevProps:e,prevPropsContext:u,contextForChildren:u,relayProp:x(u.environment,o._refetch),resolver:h},o._isUnmounted=!1,o}(0,u.default)(h,n);var g=h.prototype;return g.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},g.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()},h.getDerivedStateFromProps=function(e,r){var n,a=r.prevProps,o=_(e.__relayContext),i=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,s=E(t,a),u=E(t,e),l=d(t,a),c=d(t,e),h=r.resolver;if(r.prevPropsContext.environment!==o.environment||!m(l,c)||!m(s,u))return{data:(h=R(o,f,t,e,i)).resolve(),localVariables:null,prevProps:e,prevPropsContext:o,contextForChildren:o,relayProp:x(o.environment,r.relayProp.refetch),resolver:h};r.localVariables||h.setProps(e);var p=h.resolve();return p!==r.data?{data:p,prevProps:e}:null},g.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},g.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!F(e[o],this.props[o]))return!0}return!1},g._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},g._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})},g._getFragmentVariables=function(){return S(t,this.props)},g._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new v),this._queryFetcher},g.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,c)),i=this.state,s=i.relayProp,u=i.contextForChildren;return y.createElement(p.Provider,{value:u},y.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:s})))},h}(y.Component),(0,l.default)(n,"displayName",f),n}(e,t,r)}))}}},8827:(e,t,r)=>{var n=r(645),a=r(5056);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(e.environment)}e.exports={assertRelayContext:function(e){return o(e)||a(!1),e},isRelayContext:o}},7074:(e,t,r)=>{var n=r(5056);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1),t)if(t.hasOwnProperty(r)){var a=t[r];(!a||"object"!=typeof a&&"function"!=typeof a)&&n(!1)}}},3089:(e,t,r)=>{var n=(0,r(5275).default)(r(4924)),a=r(7074),o=r(7426),i=o.getComponentName,s=o.getContainerName,u=r(9888),l=r(7239),c=r(5056),f=r(8156),d=r(6658).getFragment,h=f.useContext;e.exports=function(e,t,r){var o=s(e);a(i(e),t);var p={};for(var v in t)p[v]=d(t[v]);var _=r(e,p);function m(e,t){var r,a=h(u);null==a&&c(!1);var o=h(l);return f.createElement(_,(0,n.default)({},e,{__relayContext:a,__rootIsQueryRenderer:null!==(r=null==o?void 0:o.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}return _.displayName=o,m.displayName=o,f.forwardRef(m)}},8416:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(6658).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(o){var i,s,u,l=e[o],c=t[o],f=a(l,c),d=null!=f&&"PluralReaderSelector"===f.kind?null!==(i=null===(s=f.selectors[0])||void 0===s?void 0:s.owner.variables)&&void 0!==i?i:{}:null!==(u=null==f?void 0:f.owner.variables)&&void 0!==u?u:{};r=(0,n.default)((0,n.default)({},r),d)})),r}},5265:(e,t,r)=>{var n=r(9888),a=r(7362),o=r(1428),i=r(3540),s=r(3701),u=r(2427),l=r(3158),c=r(9828),f=r(428).loadQuery,d=r(3187),h=r(9696),p=r(5083),v=r(529),_=r(6242),m=r(3899),y=r(3115),g=r(951),b=r(4617),R=r(8876),C=r(8874),E=r(2750),P=r(8050),S=r(5746),F=r(6658);e.exports={ConnectionHandler:F.ConnectionHandler,QueryRenderer:s,LocalQueryRenderer:o,MutationTypes:F.MutationTypes,RangeOperations:F.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:F.applyOptimisticMutation,commitLocalUpdate:F.commitLocalUpdate,commitMutation:F.commitMutation,createFragmentContainer:a.createContainer,createPaginationContainer:i.createContainer,createRefetchContainer:u.createContainer,fetchQuery_DEPRECATED:F.fetchQuery_DEPRECATED,graphql:F.graphql,readInlineData:F.readInlineData,requestSubscription:F.requestSubscription,EntryPointContainer:l,RelayEnvironmentProvider:h,ProfilerContext:d,fetchQuery:F.fetchQuery,loadQuery:f,loadEntryPoint:c,useClientQuery:p,useFragment:_,useLazyLoadQuery:m,useEntryPointLoader:v,useQueryLoader:R,useMutation:y,usePaginationFragment:g,usePreloadedQuery:b,useRefetchableFragment:C,useRelayEnvironment:E,useSubscribeToInvalidationState:P,useSubscription:S}},645:e=>{e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},3158:(e,t,r)=>{var n=r(3187),a=r(2750),o=r(8156),i=r(8156),s=i.useContext,u=i.useEffect;r(4446),e.exports=function(e){var t=e.entryPointReference,r=e.props,i=t.getComponent,l=t.queries,c=t.entryPoints,f=t.extraProps,d=t.rootModuleID,h=i(),p=s(n),v=a();return u((function(){v.__log({name:"entrypoint.root.consume",profilerContext:p,rootModuleID:d})}),[v,p,d]),o.createElement(h,{entryPoints:c,extraProps:f,props:r,queries:l})}},5985:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(311)),i=n(r(642)),s=r(5093),u=r(1269).getQueryResourceForEnvironment,l=r(1637),c=r(5056),f=r(6658),d=f.__internal,h=d.fetchQuery,p=d.getPromiseForActiveRequest,v=f.RelayFeatureFlags,_=f.createOperationDescriptor,m=f.getFragmentIdentifier,y=f.getPendingOperationsForFragment,g=f.getSelector,b=f.getVariablesFromFragment,R=f.handlePotentialSnapshotErrors,C=f.isPromise,E=f.recycleNodesInto,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){return Array.isArray(e)?e.map((function(e){return e.missingLiveResolverFields})).filter(Boolean).flat():e.missingLiveResolverFields}function D(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,o.default)(this,"_cache",new Map),(0,o.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 a=n[0],o=n[1];t.forEach((function(e){a.push(e)})),o.temporaryRetain(this._environment)}else{var i=new l((function(){return r._retain(e)}));this._cache.set(e,[t,i]),i.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}(),I=function(){function e(e){this._environment=e,this._cache=s.create(1e6),v.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,a){var o,s,l,f,d=this,h=this._environment;if(null==t)return{cacheKey:r,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var _=h.getStore().getEpoch();if(!0===(null==e||null===(o=e.metadata)||void 0===o?void 0:o.plural)&&(Array.isArray(t)||c(!1),0===t.length))return{cacheKey:r,data:S,isMissingData:!1,snapshot:S,storeEpoch:_};var m=this._cache.get(r);if(null!=m){var y;if("pending"===m.kind&&C(m.promise))throw h.__log({name:"suspense.fragment",data:m.result.data,fragment:e,isRelayHooks:!0,isMissingData:m.result.isMissingData,isPromiseCached:!0,pendingOperations:m.pendingOperations}),m.promise;if("done"===m.kind&&m.result.snapshot&&(null===(y=x(m.result.snapshot))||void 0===y||!y.length))return this._throwOrLogErrorsInSnapshot(m.result.snapshot),m.result.isMissingData&&h.__log({name:"fragmentresource.missing_data",data:m.result.data,fragment:e,isRelayHooks:!0,cached:!0}),m.result}var b=g(e,t);null==b&&c(!1);var R=null,E=null;if(v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&null!=m&&"missing"===m.kind?(R=m.result,E=m.snapshot):R=D(r,E="PluralReaderSelector"===b.kind?b.selectors.map((function(e){return h.lookup(e)})):h.lookup(b),_),!R.isMissingData)return this._throwOrLogErrorsInSnapshot(E),this._cache.set(r,{kind:"done",result:R}),R;var P=null;if(v.ENABLE_CLIENT_EDGES&&!0===(null===(s=e.metadata)||void 0===s?void 0:s.hasClientEdges)&&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}(E)){P=[];var F=u(this._environment),q=[];!function(e,t){Array.isArray(e)?e.forEach(t):t(e)}(E,(function(r){var n;null===(n=r.missingClientEdges)||void 0===n||n.forEach((function(r){var n,a=r.request,o=r.clientEdgeDestinationID,i=d._performClientEdgeQuery(F,e,t,a,o),s=i.queryResult,u=i.requestDescriptor;q.push(s),null===(n=P)||void 0===n||n.push(u)}))})),null==this._clientEdgeQueryResultsCache&&c(!1),this._clientEdgeQueryResultsCache.recordQueryResults(r,q)}var I=[];v.ENABLE_CLIENT_EDGES&&P&&(I=P.map((function(e){return p(d._environment,e)})).filter(Boolean));var O="PluralReaderSelector"===b.kind?b.selectors[0].owner:b.owner,A=this._getAndSavePromiseForFragmentRequestInFlight(r,e,O,R),N=null==A?void 0:A.promise,k=null!==(l=null===(f=x(E))||void 0===f?void 0:f.map((function(e){var t=e.liveStateID;return h.getStore().getLiveResolverPromise(t)})))&&void 0!==l?l:[];if(I.length||k.length||C(N)){var w,Q;h.__log({name:"suspense.fragment",data:R.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:R.isMissingData,pendingOperations:[].concat((0,i.default)(null!==(w=null==A?void 0:A.pendingOperations)&&void 0!==w?w:[]),(0,i.default)(null!==(Q=P)&&void 0!==Q?Q:[]))});var T=[];if(I.length>0&&(T=T.concat(I)),k.length>0&&(T=T.concat(k)),T.length>0)throw N&&T.push(N),Promise.all(T);if(N)throw N}return v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&R.isMissingData&&this._cache.set(r,{kind:"done",result:R}),this._throwOrLogErrorsInSnapshot(E),h.__log({name:"fragmentresource.missing_data",data:R.data,fragment:e,isRelayHooks:!0,cached:!1}),D(r,E,_)},t._performClientEdgeQuery=function(e,t,r,n,o){var i=b(t,r),s=(0,a.default)((0,a.default)({},i),{},{id:o}),u=_(n,s,{}),l=h(this._environment,u),c=e.prepare(u,l);return{requestDescriptor:u.request,queryResult:c}},t._throwOrLogErrorsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){R(t._environment,e.missingRequiredFields,e.relayResolverErrors)})):R(this._environment,e.missingRequiredFields,e.relayResolverErrors)},t.readSpec=function(e,t,r){var n={};for(var a in e)n[a]=this.read(e[a],t[a],r,a);return n},t.subscribe=function(e,t){var r=this,n=this._environment,a=e.cacheKey,o=e.snapshot;if(!o)return{dispose:function(){}};var i=this.checkMissedUpdates(e),s=i[0],l=i[1];s&&t();var f=[];if(Array.isArray(o)?(Array.isArray(l)||c(!1),l.forEach((function(e,o){f.push(n.subscribe(e,(function(e){var i=n.getStore().getEpoch();r._updatePluralSnapshot(a,l,e,o,i),t()})))}))):((null==l||Array.isArray(l))&&c(!1),f.push(n.subscribe(l,(function(e){var o=n.getStore().getEpoch(),i=D(a,e,o);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&i.isMissingData?r._cache.set(a,{kind:"missing",result:i,snapshot:e}):r._cache.set(a,{kind:"done",result:D(a,e,o)}),t()})))),v.ENABLE_CLIENT_EDGES){var d,h,p=null!==(d=null===(h=this._clientEdgeQueryResultsCache)||void 0===h?void 0:h.get(a))&&void 0!==d?d:void 0;if(null!=p&&p.length){var _=u(this._environment);p.forEach((function(e){f.push(_.retain(e))}))}}return{dispose:function(){f.forEach((function(e){return e.dispose()})),r._cache.delete(a)}}},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,r=this._environment,n=e.snapshot;if(!n)return[!1,null];if(t=r.getStore().getEpoch(),e.storeEpoch===t)return[!1,e.snapshot];var o=e.cacheKey;if(Array.isArray(n)){var i=!1,s=[];if(n.forEach((function(e,t){var n=r.lookup(e.selector),o=e.data,u=n.data,l=E(o,u);l!==o&&(n=(0,a.default)((0,a.default)({},n),{},{data:l}),i=!0),s[t]=n})),i){var u=D(o,s,t);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&u.isMissingData?this._cache.set(o,{kind:"missing",result:u,snapshot:s}):this._cache.set(o,{kind:"done",result:u})}return[i,s]}var l=r.lookup(n.selector),c=n.data,f=l.data,d=E(c,f),h={data:d,isMissingData:l.isMissingData,missingClientEdges:l.missingClientEdges,missingLiveResolverFields:l.missingLiveResolverFields,seenRecords:l.seenRecords,selector:l.selector,missingRequiredFields:l.missingRequiredFields,relayResolverErrors:l.relayResolverErrors};if(d!==c){var p=D(o,h,t);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&p.isMissingData?this._cache.set(o,{kind:"missing",result:p,snapshot:h}):this._cache.set(o,{kind:"done",result:p})}return[d!==c,h]},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 a=this,o=y(this._environment,t,r);if(null==o)return null;var i=o.promise,s=o.pendingOperations,u=i.then((function(){a._cache.delete(e)})).catch((function(t){a._cache.delete(e)}));return u.displayName=i.displayName,this._cache.set(e,{kind:"pending",pendingOperations:s,promise:u,result:n}),{promise:u,pendingOperations:s}},t._updatePluralSnapshot=function(e,t,r,n,a){var o,s=this._cache.get(e);if(C(s))O(r.selector.node.name);else{var u=null==s||null===(o=s.result)||void 0===o?void 0:o.snapshot;if(!u||Array.isArray(u)){var l=u?(0,i.default)(u):(0,i.default)(t);l[n]=r;var c=D(e,l,a);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&c.isMissingData?this._cache.set(e,{kind:"missing",result:c,snapshot:l}):this._cache.set(e,{kind:"done",result:c})}else O(r.selector.node.name)}},e}();function O(e){c(!1)}function A(e){return new I(e)}var N=P?new WeakMap:new Map;e.exports={createFragmentResource:A,getFragmentResourceForEnvironment:function(e){var t=N.get(e);if(t)return t;var r=A(e);return N.set(e,r),r}}},5914:(e,t,r)=>{r(4446);var n=null;e.exports={inject:function(e){n=e},get:function(){return n}}},5093:(e,t,r)=>{var n=r(5056),a=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 a(e)}}},3187:(e,t,r)=>{var n=r(8156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},1269:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(311)),i=r(5093),s=r(1637),u=r(5056),l=r(6658).isPromise,c=(r(4446),"store-or-network"),f="store-and-network",d="function"==typeof WeakMap;function h(e){return void 0!==e.request.node.params.metadata.live}function p(e,t,r,n,a){var o=null!=r?r:h(t)?f:c,i=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),s="".concat(o,"-").concat(i,"-").concat(t.request.identifier);return null!=a?"".concat(s,"-").concat(a):s}function v(e,t){var r={__id:e.fragment.dataID,__fragments:(0,o.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,a,o){var i=h(t),u=n,l=a,c=new s((function(e){var r=e.retain(t);return{dispose:function(){i&&null!=l&&l.unsubscribe(),r.dispose(),o(f)}}})),f={cacheIdentifier:e,id:_++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return u},setValue:function(e){u=e},setNetworkSubscription:function(e){i&&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}var y=function(){function e(e){var t=this;(0,o.default)(this,"_clearCacheEntry",(function(e){t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=i.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,a,o,i){var s=p(this._environment,e,r,n,o);return this.prepareWithIdentifier(s,e,t,r,n,a,i)},t.prepareWithIdentifier=function(e,t,r,n,o,i,s){var u=this._environment,d=null!=n?n:h(t)?f:c,p=null!=o?o:u.UNSTABLE_getDefaultRenderPolicy(),v=this._cache.get(e),_=null,m=null!=v;null==v&&(v=this._fetchAndSaveQuery(e,t,r,d,p,s,(0,a.default)((0,a.default)({},i),{},{unsubscribe:function(e){null!=_&&_.dispose();var t=null==i?void 0:i.unsubscribe;t&&t(e)}}))),_=v.temporaryRetain(u);var y=v.getValue();if(l(y))throw u.__log({name:"suspense.query",fetchPolicy:d,isPromiseCached:m,operation:t,queryAvailability:v.operationAvailability,renderPolicy:p}),y;if(y instanceof Error)throw y;return y},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,o=this._getOrCreateCacheEntry(n,a,null,e,null),i=o.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:o.id}),{dispose:function(){i.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 a=p(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n,a){var o=this._cache.get(e);return null==o&&(o=m(e,t,r,n,a,this._clearCacheEntry),this._cache.set(e,o)),o},t._fetchAndSaveQuery=function(e,t,r,n,o,i,s){var l,c,f=this,d=this._environment,p=d.check(t),_=p.status,y="available"===_,g=y||"partial"===o&&"stale"!==_,b=function(){};switch(n){case"store-only":l=!1,c=!0;break;case"store-or-network":l=!y,c=g;break;case"store-and-network":l=!0,c=g;break;default:l=!0,c=!1}if(c){var R=v(t,e),C=m(e,t,p,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 o=null==s?void 0:s.start;o&&o((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){h(t)&&r.unsubscribe()}}))},next:function(){var r=f._getOrCreateCacheEntry(e,t,p,P,E);r.processedPayloadsCount+=1,r.setValue(P),b();var n=null==s?void 0:s.next;null!=n&&n(d.lookup(t.fragment))},error:function(r){var n=f._getOrCreateCacheEntry(e,t,p,r,E);0===n.processedPayloadsCount&&n.setValue(r),b(),E=null,n.setNetworkSubscription(null);var a=null==s?void 0:s.error;a&&a(r)},complete:function(){b(),E=null;var t=f._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==s?void 0:s.complete;r&&r()},unsubscribe:null==s?void 0:s.unsubscribe});var S=this._cache.get(e);if(!S){var F=new Promise((function(e){b=e}));F.displayName="Relay("+t.fragment.node.name+")",S=m(e,t,p,F,E,this._clearCacheEntry),this._cache.set(e,S)}}else{var x=null==s?void 0:s.complete;x&&x()}var D=this._cache.get(e);return null==D&&u(!1),d.__log({name:"queryresource.fetch",resourceID:D.id,operation:t,profilerContext:i,fetchPolicy:n,renderPolicy:o,queryAvailability:p,shouldFetch:l}),D},e}();function g(e){return new y(e)}var b=d?new WeakMap:new Map;e.exports={createQueryResource:g,getQueryResourceForEnvironment:function(e){var t=b.get(e);if(t)return t;var r=g(e);return b.set(e,r),r},getQueryCacheIdentifier:p}},9696:(e,t,r)=>{var n=r(9888),a=r(8156),o=a.useMemo;e.exports=function(e){var t=e.children,r=e.environment,i=e.getEnvironmentForActor,s=o((function(){return{environment:r,getEnvironmentForActor:i}}),[r,i]);return a.createElement(n.Provider,{value:s},t)}},1637:(e,t,r)=>{var n=(0,r(5275).default)(r(311)),a=r(5056),o=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&&a(!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),a=null,o=function(){clearTimeout(a),a=null,r._releaseTemporaryRetain=null,n.dispose()};return a=setTimeout(o,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=o,{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=o},9828:(e,t,r)=>{var n=r(428).loadQuery;e.exports=function e(t,r,a){var o=null;null==r.root.getModuleIfRequired()&&(o=r.root.load());var i=r.getPreloadProps(a),s=i.queries,u=i.entryPoints,l=i.extraProps,c={},f={};null!=s&&Object.keys(s).forEach((function(e){var r=s[e],a=r.environmentProviderOptions,o=r.options,i=r.parameters,u=r.variables,l=t.getEnvironment(a);c[e]=n(l,i,u,{fetchPolicy:null==o?void 0:o.fetchPolicy,networkCacheConfig:null==o?void 0:o.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)})),null!=u&&Object.keys(u).forEach((function(r){var n=u[r];if(null!=n){var a=n.entryPoint,o=n.entryPointParams;f[r]=e(t,a,o)}}));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 o=null!==(e=o)&&void 0!==e?e:r.root.load();return null!=t.default?t.default:t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},428:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(5056),o=r(8156),i=r(6658),s=i.__internal.fetchQueryDeduped,u=i.Observable,l=i.PreloadableQueryRegistry,c=i.RelayFeatureFlags,f=i.ReplaySubject,d=i.createOperationDescriptor,h=i.getRequest,p=i.getRequestIdentifier,v=(r(4446),null),_=100001;e.exports={loadQuery:function(e,t,r,i,v){var m,y,g;null===(m=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===m||null===(y=m.ReactCurrentDispatcher)||void 0===y||y.current,_++;var b,R,C,E,P,S,F=null!==(g=null==i?void 0:i.fetchPolicy)&&void 0!==g?g:"store-or-network",x=(0,n.default)((0,n.default)({},null==i?void 0:i.networkCacheConfig),{},{force:!0}),D=!1,q=function(t,r){return D=!0,e.executeWithSource({operation:t,source:r})},I=new f,O=u.create((function(e){return I.subscribe(e)})),A=null,N=!1,k=function(t){var n;N=!0;var a=new f;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var o="raw-network-request-"+p(t,r);n=s(e,o,(function(){return e.getNetwork().execute(t,r,x)}))}else n=e.getNetwork().execute(t,r,x);var i=n.subscribe({error:function(e){A=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return R=i,u.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),R()}}))},w=function(t,r){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(N=!0);var n=s(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);b=e.retain(n),"store-only"!==F&&("store-or-network"!==F||"available"!==e.check(n).status)&&w(n,(function(){var e=k(t.params);return q(n,e)}))};if("PreloadableConcreteRequest"===t.kind){null===(S=(E=t.params).id)&&a(!1);var T=l.get(S);if(null!=T)Q(T);else{var M="store-only"===F?null:k(E),L=l.onLoad(S,(function(t){P();var n=d(t,r,x);b=e.retain(n),null!=M&&w(n,(function(){return q(n,M)}))}));P=L.dispose}}else{var U=h(t);S=null!=(E=U.params).cacheID?E.cacheID:E.id,Q(U)}var j=!1,V=!1,B=!1,K=function(){V||(b&&b.dispose(),V=!0)},H=function(){B||(D?C&&C():R&&R(),P&&P(),B=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:v,dispose:function(){j||(K(),H(),j=!0)},releaseQuery:K,cancelNetworkRequest:H,fetchKey:_,id:S,get isDisposed(){return j||V},get networkError(){return A},name:E.name,networkCacheConfig:x,fetchPolicy:F,source:N?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)}}},5083:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(3899);e.exports=function(e,t,r){return a(e,t,(0,n.default)((0,n.default)({},r),{},{fetchPolicy:"store-only"}))}},529:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(9828),o=r(428).useTrackLoadQueryInRender,i=r(1743),s=r(8156),u=s.useCallback,l=s.useEffect,c=s.useRef,f=s.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var s,h,p,v;o();var _=null!==(s=null==r||null===(h=r.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointReference)&&void 0!==s?s:d,m=null!==(p=null==r||null===(v=r.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==p?p:null,y=i(),g=c(new Set([_])),b=f(_),R=b[0],C=b[1],E=f(m),P=E[0],S=E[1],F=u((function(){if(y.current){var e={kind:"NullEntryPointReference"};g.current.add(e),C(e)}}),[C,y]),x=u((function(r){if(y.current){var n=a(e,t,r);g.current.add(n),C(n),S(r)}}),[e,t,C,y]),D=c(!1);return l((function(){return function(){D.current=!0}}),[]),l((function(){if(!0===D.current)return D.current=!1,void("NullEntryPointReference"!==R.kind&&null!=P&&x(P));var e=g.current;if(y.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===R)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[R,P,x,y]),l((function(){return function(){var e,t=(0,n.default)(g.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]}},7863:(e,t,r)=>{var n=r(5813),a=r(8156),o=a.useCallback,i=a.useEffect;e.exports=function(){var e=n(null),t=n(!1),r=o((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),a=o((function(r){e.current=r,t.current=!0}),[]),s=o((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:a,disposeFetch:r,completeFetch:s}}},6242:(e,t,r)=>{var n=r(5914),a=r(428).useTrackLoadQueryInRender,o=r(3077),i=r(275),s=(r(8156).useDebugValue,r(6658).getFragment);e.exports=function(e,t){var r=n.get();return r?r.useFragment(e,t):function(e,t){a();var r=s(e);return i(r,"first argument of useFragment()"),o(r,t,"useFragment()").data}(e,t)}},3077:(e,t,r)=>{var n=r(5985).getFragmentResourceForEnvironment,a=r(2750),o=r(5813),i=r(8156),s=i.useEffect,u=i.useState,l=r(6658),c=l.RelayFeatureFlags,f=l.getFragmentIdentifier;r(4446),e.exports=function(e,t,r){var i=a(),l=n(i),d=o(!1),h=u(0)[1],p=f(e,t),v=l.readWithIdentifier(e,t,p,r),_=o(!0);function m(){!1!==d.current&&!1!==_.current&&h((function(e){return e+1}))}return s((function(){d.current=!0;var e=l.subscribe(v,m);return function(){d.current=!1,e.dispose()}}),[i,p]),c.LOG_MISSING_RECORDS_IN_PROD&&null!=t&&(void 0===v.data||Array.isArray(v.data)&&v.data.length>0&&v.data.every((function(e){return void 0===e}))),{data:v.data,disableStoreUpdates:function(){_.current=!1},enableStoreUpdates:function(){_.current=!0,l.checkMissedUpdates(v)[0]&&m()}}}},1743:(e,t,r)=>{var n=r(8156),a=n.useEffect,o=n.useRef;e.exports=function(){var e=o(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},5233:(e,t,r)=>{var n=r(2750),a=r(5056),o=r(8156),i=r(6658),s=i.__internal.getObservableForActiveRequest,u=i.getSelector,l=o.useEffect,c=o.useState,f=o.useMemo;e.exports=function(e,t){var r=n(),o=f((function(){var n=u(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1),s(r,n.owner))}),[r,e,t]),i=c(null!=o),d=i[0],h=i[1];return l((function(){var e;if(h(null!=o),null!=o){var t=function(){h(!1)};e=o.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[o]),d}},3899:(e,t,r)=>{var n=r(428).useTrackLoadQueryInRender,a=r(4734),o=r(1061),i=r(2750),s=r(6658).__internal.fetchQuery;e.exports=function(e,t,r){n();var u=i(),l=o(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return a({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:s(u,l),fetchPolicy:null==r?void 0:r.fetchPolicy,query:l,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},4734:(e,t,r)=>{var n=r(5914),a=r(3187),o=r(1269),i=o.getQueryCacheIdentifier,s=o.getQueryResourceForEnvironment,u=r(7863),l=r(3077),c=r(2750),f=r(8156),d=f.useContext,h=f.useEffect,p=f.useState,v=f.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,o=e.fetchObservable,f=e.fetchPolicy,_=e.fetchKey,m=e.renderPolicy,y=c(),g=d(a),b=s(y),R=p(0),C=R[0],E=R[1],P=u(),S=P.startFetch,F=P.completeFetch,x="".concat(C,"-").concat(null!=_?_:""),D=i(y,t,f,m,x),q=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(D,t,o,f,m,{start:S,complete:F,error:F},g)})),I=v(!1);return h((function(){return function(){I.current=!0}}),[]),h((function(){if(!0===I.current)return I.current=!1,void E((function(e){return e+1}));var e=b.retain(q,g);return function(){e.dispose()}}),[y,D]),h((function(){b.releaseTemporaryRetain(q)})),function(e,t,r){var a=n.get();return a&&a.useFragment__internal?a.useFragment__internal(e,t,r):l(e,t,r).data}(q.fragmentNode,q.fragmentRef,r)}},9601:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(7863),o=r(1743),i=r(5233),s=r(2750),u=r(5056),l=r(8156),c=l.useCallback,f=l.useEffect,d=l.useState,h=r(6658),p=h.__internal.fetchQuery,v=h.ConnectionInterface,_=h.createOperationDescriptor,m=h.getPaginationVariables,y=h.getRefetchMetadata,g=h.getSelector,b=h.getValueAtPath;r(4446),e.exports=function(e){var t=e.direction,r=e.fragmentNode,l=e.fragmentRef,h=e.fragmentIdentifier,R=e.fragmentData,C=e.connectionPathInFragmentData,E=e.paginationRequest,P=e.paginationMetadata,S=e.componentDisplayName,F=e.observer,x=e.onReset,D=s(),q=a(),I=q.isFetchingRef,O=q.startFetch,A=q.disposeFetch,N=q.completeFetch,k=y(r,S).identifierInfo,w=null!=(null==k?void 0:k.identifierField)&&null!=R&&"object"==typeof R?R[k.identifierField]:null,Q=o(),T=d(D),M=T[0],L=T[1],U=d(h),j=U[0],V=U[1],B=i(r,l);(D!==M||h!==j)&&(A(),x(),L(D),V(h));var K=function(e,t,r,n){var a,o,i=v.get(),s=i.EDGES,l=i.PAGE_INFO,c=i.HAS_NEXT_PAGE,f=i.HAS_PREV_PAGE,d=i.END_CURSOR,h=i.START_CURSOR,p=b(r,n);if(null==p)return{cursor:null,hasMore:!1};"object"!=typeof p&&u(!1);var _=p[s],m=p[l];if(null==_||null==m)return{cursor:null,hasMore:!1};Array.isArray(_)||u(!1),"object"!=typeof m&&u(!1);var y="forward"===e?null!==(a=m[d])&&void 0!==a?a:null:null!==(o=m[h])&&void 0!==o?o:null;return null!==y&&"string"!=typeof y&&u(!1),{cursor:y,hasMore:"forward"===e?null!=y&&!0===m[c]:null!=y&&!0===m[f]}}(t,0,R,C),H=K.cursor,W=K.hasMore;return f((function(){return function(){A()}}),[A]),[c((function(e,a){var o=null==a?void 0:a.onComplete;if(!0!==Q.current)return{dispose:function(){}};var i=g(r,l);if(!0===I.current||null==R||B)return o&&o(null),{dispose:function(){}};(null==i||"PluralReaderSelector"===i.kind)&&u(!1);var s=i.owner.variables,c=i.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},s),c),h=m(t,e,H,d,(0,n.default)({},f),P);null!=k&&(h[k.identifierQueryVariableName]=w);var v=_(E,h,{force:!0});return p(D,v).subscribe((0,n.default)((0,n.default)({},F),{},{start:function(e){O(e),F.start&&F.start(e)},complete:function(){N(),F.complete&&F.complete(),o&&o(null)},error:function(e){N(),F.error&&F.error(e),o&&o(e)}})),{dispose:A}}),[D,w,t,H,O,A,N,I,B,R,r.name,l,S]),W,A]}},1061:(e,t,r)=>{var n=r(6925),a=r(8156),o=r(6658),i=o.createOperationDescriptor,s=o.getRequest,u=a.useMemo;e.exports=function(e,t,r){var a=n(t),o=n(r||{});return u((function(){return i(s(e),a,o)}),[e,a,o])}},6925:(e,t,r)=>{var n=r(9125),a=r(8156).useState;e.exports=function(e){var t=a(e),r=t[0],o=t[1];return n(e,r)?r:(o(e),e)}},3115:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(1743),o=r(2750),i=r(8156),s=r(6658).commitMutation,u=i.useState,l=i.useEffect,c=i.useRef,f=i.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=o(),i=a(),d=c(r),h=c(e),p=c(new Set),v=u(!1),_=v[0],m=v[1],y=f((function(t){d.current===r&&h.current===e&&(p.current.delete(t),i.current&&m(p.current.size>0))}),[r,i,e]);return l((function(){d.current===r&&h.current===e||(p.current=new Set,i.current&&m(!1),d.current=r,h.current=e)}),[r,i,e]),[f((function(a){i.current&&m(!0);var o=t(r,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,t){var r;y(o),null===(r=a.onCompleted)||void 0===r||r.call(a,e,t)},onError:function(e){var t;y(o),null===(t=a.onError)||void 0===t||t.call(a,e)},onUnsubscribe:function(){var e;y(o),null===(e=a.onUnsubscribe)||void 0===e||e.call(a)},onNext:function(){var e;null===(e=a.onNext)||void 0===e||e.call(a)}}));return p.current.add(o),o}),[y,t,r,i,e]),_]}},951:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(5914),o=r(9601),i=r(1691),s=r(275),u=r(8156),l=u.useCallback,c=(u.useDebugValue,u.useState),f=r(6658),d=f.getFragment,h=f.getFragmentIdentifier,p=f.getPaginationMetadata;function v(e){var t=c(!1),r=t[0],a=t[1],i={start:function(){return a(!0)},complete:function(){return a(!1)},error:function(){return a(!1)}},s=o((0,n.default)((0,n.default)({},e),{},{observer:i,onReset:function(){return a(!1)}}));return[s[0],s[1],r,s[2]]}e.exports=function(e,t){var r=a.get();return r?r.usePaginationFragment(e,t):function(e,t){var r=d(e);s(r,"first argument of usePaginationFragment()");var a="usePaginationFragment()",o=p(r,a),u=o.connectionPathInFragmentData,c=o.paginationRequest,f=o.paginationMetadata,_=i(r,t,a),m=_.fragmentData,y=_.fragmentRef,g=_.refetch,b=h(r,y),R=v({componentDisplayName:a,connectionPathInFragmentData:u,direction:"backward",fragmentData:m,fragmentIdentifier:b,fragmentNode:r,fragmentRef:y,paginationMetadata:f,paginationRequest:c}),C=R[0],E=R[1],P=R[2],S=R[3],F=v({componentDisplayName:a,connectionPathInFragmentData:u,direction:"forward",fragmentData:m,fragmentIdentifier:b,fragmentNode:r,fragmentRef:y,paginationMetadata:f,paginationRequest:c}),x=F[0],D=F[1],q=F[2],I=F[3];return{data:m,loadNext:x,loadPrevious:C,hasNext:D,hasPrevious:E,isLoadingNext:q,isLoadingPrevious:P,refetch:l((function(e,t){return I(),S(),g(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[I,S,g])}}(e,t)}},4617:(e,t,r)=>{var n=r(428).useTrackLoadQueryInRender,a=r(4734),o=r(1061),i=r(2750),s=r(5056),u=(r(8156).useDebugValue,r(6658).__internal),l=u.fetchQueryDeduped,c=u.fetchQuery;r(4446),e.exports=function(e,t,r){n();var u,f=i(),d=t.fetchKey,h=t.fetchPolicy,p=t.source,v=t.variables,_=t.networkCacheConfig,m=o(e,v,_);if("PreloadedQuery_DEPRECATED"===t.kind)m.request.node.params.name!==t.name&&s(!1),u={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:l(f,m.request.identifier,(function(){return f===t.environment&&null!=p?f.executeWithSource({operation:m,source:p}):f.execute({operation:m})})),fetchPolicy:h,query:m,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{var y=c(f,m);u={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=p&&f===t.environment?p.ifEmpty(y):(t.environment,y),fetchKey:d,fetchPolicy:h,query:m,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}return a(u)}},8876:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(428),o=a.loadQuery,i=a.useTrackLoadQueryInRender,s=r(1743),u=r(2750),l=r(8156),c=l.useCallback,f=l.useEffect,d=l.useRef,h=l.useState,p=r(6658).getRequest,v={kind:"NullQueryReference"};function _(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==p(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:v,a=u();i();var l=s(),p=d(new Set([r])),m=h((function(){return r})),y=m[0],g=m[1],b=h((function(){return r})),R=b[0],C=b[1];r!==R&&(p.current.add(r),C(r),g(r));var E=c((function(){l.current&&(p.current.add(v),g(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 i,s=o(null!==(i=null==r?void 0:r.__environment)&&void 0!==i?i:a,e,t,n);p.current.add(s),g(s)}}),[a,e,g,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=p.current;if(l.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o===y)break;t.delete(o),"NullQueryReference"!==o.kind&&(_(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[y,l,P,e]),f((function(){return function(){var t,r=(0,n.default)(p.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(_(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===y.kind?null:y,P,E]}},8874:(e,t,r)=>{var n=r(5914),a=r(1691),o=r(275),i=(r(8156).useDebugValue,r(6658).getFragment);e.exports=function(e,t){var r=n.get();return r?r.useRefetchableFragment(e,t):function(e,t){var r=i(e);o(r,"first argument of useRefetchableFragment()");var n=a(r,t,"useRefetchableFragment()");return[n.fragmentData,n.refetch]}(e,t)}},1691:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(5985).getFragmentResourceForEnvironment,o=r(3187),i=r(1269).getQueryResourceForEnvironment,s=r(3077),u=r(1743),l=r(8876),c=r(2750),f=r(5056),d=r(8156),h=d.useCallback,p=d.useContext,v=d.useReducer,_=r(6658),m=_.__internal.fetchQuery,y=_.createOperationDescriptor,g=_.getFragmentIdentifier,b=_.getRefetchMetadata,R=_.getSelector,C=_.getValueAtPath;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")}}r(4446),e.exports=function(e,t,r){var d=c(),_=b(e,r),P=_.refetchableRequest,S=_.fragmentRefPathInResponse,F=g(e,t),x=v(E,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:F,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=x[0],q=x[1],I=D.fetchPolicy,O=D.mirroredEnvironment,A=D.mirroredFragmentIdentifier,N=D.onComplete,k=D.refetchEnvironment,w=D.refetchQuery,Q=D.renderPolicy,T=null!=k?k:d,M=i(T),L=a(T),U=p(o),j=T!==O||F!==A,V=l(P),B=V[0],K=V[1],H=V[2],W=t,G=b(e,r).identifierInfo;if(j)q({type:"reset",environment:T,fragmentIdentifier:F}),H();else if(null!=w&&null!=B){var z=function(e){N&&N(null!=e?e:null)},Y=null!=B.source?B.source:m(T,w),X=U.wrapPrepareQueryResource((function(){return M.prepare(w,Y,I,Q,{error:z,complete:function(){z()}},B.fetchKey,U)})),J=L.read(X.fragmentNode,X.fragmentRef,r).data;null==J&&f(!1),W=C(J,S)}var Z=s(e,W,r),$=Z.data,ee=Z.disableStoreUpdates,te=Z.enableStoreUpdates,re=function(e,t,r,a,o,i,s,l,c,f,d){var p=u(),v=null!=(null==l?void 0:l.identifierField)&&null!=a&&"object"==typeof a?a[l.identifierField]:null;return h((function(e,a){if(!0!==p.current)return{dispose:function(){}};var o,s,u=null==a?void 0:a.__environment,h=null==a?void 0:a.fetchPolicy,_=null==a?void 0:a.UNSTABLE_renderPolicy,m=null==a?void 0:a.onComplete,g=R(i,f);if(null==g)o={},s={};else if("PluralReaderSelector"===g.kind){var b,C,E,P;o=null!==(b=null===(C=g.selectors[0])||void 0===C?void 0:C.owner.variables)&&void 0!==b?b:{},s=null!==(E=null===(P=g.selectors[0])||void 0===P?void 0:P.variables)&&void 0!==E?E:{}}else o=g.owner.variables,s=g.variables;var S=(0,n.default)((0,n.default)((0,n.default)({},o),s),e);null==l||e.hasOwnProperty(l.identifierQueryVariableName)||(S[l.identifierQueryVariableName]=v);var F=y(d,S,{force:!0});return c(F.request.variables,{fetchPolicy:h,__environment:u,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:h,onComplete:m,refetchEnvironment:u,refetchQuery:F,renderPolicy:_}),{dispose:r}}),[o,t,r,v,c])}(0,q,H,$,F,e,0,G,K,t,P);return{fragmentData:$,fragmentRef:W,refetch:re,disableStoreUpdates:ee,enableStoreUpdates:te}}},2750:(e,t,r)=>{var n=r(9888),a=r(5056),o=r(8156).useContext;e.exports=function(){var e=o(n);return null==e&&a(!1),e.environment}},275:(e,t,r)=>{r(5813),r(4446),e.exports=function(e,t){}},8050:(e,t,r)=>{var n=r(2750),a=r(8156),o=a.useEffect,i=a.useRef;e.exports=function(e,t){var r=n(),a=i(null),s=Array.from(e).sort().join("");return o((function(){var n=r.getStore(),o=n.lookupInvalidationState(e),i=n.subscribeToInvalidationState(o,t);return a.current=i,function(){return i.dispose()}}),[s,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},5746:(e,t,r)=>{var n=r(2750),a=r(8156).useEffect,o=r(6658).requestSubscription;e.exports=function(e,t){var r=null!=t?t:o,i=n();a((function(){return r(i,e).dispose}),[i,e,r])}},5813:(e,t,r)=>{var n=r(8156).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},5383:t=>{t.exports=e},5765:e=>{e.exports=t},311:e=>{e.exports=r},4924:e=>{e.exports=n},8296:e=>{e.exports=a},5275:e=>{e.exports=o},6175:e=>{e.exports=i},5264:e=>{e.exports=s},642:e=>{e.exports=u},9125:e=>{e.exports=l},4446:e=>{e.exports=c},5056:e=>{e.exports=f},8156:e=>{e.exports=d},6658:e=>{e.exports=h}},v={};return function e(t){var r=v[t];if(void 0!==r)return r.exports;var n=v[t]={exports:{}};return p[t](n,n.exports,e),n.exports}(5265)})()));
|
@@ -14,7 +14,7 @@
|
|
14
14
|
/* eslint-disable no-unused-vars */
|
15
15
|
|
16
16
|
import type {JSResourceReference} from 'JSResourceReference';
|
17
|
-
import type {AbstractComponent, ElementConfig} from '
|
17
|
+
import type {AbstractComponent, ElementConfig} from 'react';
|
18
18
|
import type {
|
19
19
|
CacheConfig,
|
20
20
|
FetchPolicy,
|
@@ -214,24 +214,22 @@ export type PreloadedEntryPoint<TEntryPointComponent> = $ReadOnly<{
|
|
214
214
|
rootModuleID: string,
|
215
215
|
}>;
|
216
216
|
|
217
|
-
type
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
// $
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
ComponentFromEntryPoint<TEntryPoint>,
|
234
|
-
>['props'];
|
217
|
+
export type EntryPointElementConfig<
|
218
|
+
// $FlowExpectedError[unclear-type] Need any to make it supertype of all InternalEntryPointRepresentation
|
219
|
+
+TEntryPoint: InternalEntryPointRepresentation<any, any, any, any, any>,
|
220
|
+
> = TEntryPoint extends InternalEntryPointRepresentation<
|
221
|
+
// $FlowExpectedError[unclear-type] Need any to make it supertype of all InternalEntryPointRepresentation
|
222
|
+
any,
|
223
|
+
// $FlowExpectedError[unclear-type] Need any to make it supertype of all InternalEntryPointRepresentation
|
224
|
+
any,
|
225
|
+
// $FlowExpectedError[unclear-type] Need any to make it supertype of all InternalEntryPointRepresentation
|
226
|
+
any,
|
227
|
+
infer Props,
|
228
|
+
// $FlowExpectedError[unclear-type] Need any to make it supertype of all InternalEntryPointRepresentation
|
229
|
+
any,
|
230
|
+
>
|
231
|
+
? Props
|
232
|
+
: empty;
|
235
233
|
|
236
234
|
export type ThinQueryParams<
|
237
235
|
TQuery: OperationType,
|
@@ -11,6 +11,7 @@
|
|
11
11
|
|
12
12
|
'use strict';
|
13
13
|
|
14
|
+
import typeof useFragmentInternal from './experimental/useFragmentInternal_EXPERIMENTAL';
|
14
15
|
import typeof useFragment from './useFragment';
|
15
16
|
import type {UsePaginationFragmentType} from './usePaginationFragment';
|
16
17
|
import type {UseRefetchableFragmentType} from './useRefetchableFragment';
|
@@ -21,13 +22,14 @@ type HooksImplementation = {
|
|
21
22
|
useFragment: useFragment,
|
22
23
|
usePaginationFragment: UsePaginationFragmentType,
|
23
24
|
useRefetchableFragment: UseRefetchableFragmentType,
|
25
|
+
useFragment__internal?: useFragmentInternal,
|
24
26
|
};
|
25
27
|
|
26
28
|
let implementation: HooksImplementation | null = null;
|
27
29
|
|
28
30
|
function inject(impl: HooksImplementation): void {
|
29
31
|
warning(
|
30
|
-
implementation
|
32
|
+
implementation === null,
|
31
33
|
'Relay HooksImplementation was injected twice.',
|
32
34
|
);
|
33
35
|
implementation = impl;
|
@@ -157,7 +157,7 @@ function getFragmentState(
|
|
157
157
|
}
|
158
158
|
|
159
159
|
// fragmentNode cannot change during the lifetime of the component, though fragmentRef may change.
|
160
|
-
function
|
160
|
+
function readFragmentInternal_EXPERIMENTAL(
|
161
161
|
environment: IEnvironment,
|
162
162
|
fragmentNode: ReaderFragment,
|
163
163
|
fragmentRef: mixed,
|
@@ -295,4 +295,4 @@ function readFragmentInternal_REACT_CACHE(
|
|
295
295
|
return {data, clientEdgeQueries};
|
296
296
|
}
|
297
297
|
|
298
|
-
module.exports =
|
298
|
+
module.exports = readFragmentInternal_EXPERIMENTAL;
|
@@ -344,7 +344,7 @@ function getFragmentState(
|
|
344
344
|
}
|
345
345
|
|
346
346
|
// fragmentNode cannot change during the lifetime of the component, though fragmentRef may change.
|
347
|
-
function
|
347
|
+
function useFragmentInternal_EXPERIMENTAL(
|
348
348
|
fragmentNode: ReaderFragment,
|
349
349
|
fragmentRef: mixed,
|
350
350
|
hookDisplayName: string,
|
@@ -435,7 +435,7 @@ function useFragmentInternal_REACT_CACHE(
|
|
435
435
|
// The purpose of this is to detect whether we have ever committed, because we
|
436
436
|
// don't suspend on store updates, only when the component either is first trying
|
437
437
|
// to mount or when the our selector changes. The selector change in particular is
|
438
|
-
// how we suspend for pagination and
|
438
|
+
// how we suspend for pagination and refetch. Also, fragment selector can be null
|
439
439
|
// or undefined, so we use false as a special value to distinguish from all fragment
|
440
440
|
// selectors; false means that the component hasn't mounted yet.
|
441
441
|
const committedFragmentSelectorRef = useRef<false | ?ReaderSelector>(false);
|
@@ -551,7 +551,7 @@ function useFragmentInternal_REACT_CACHE(
|
|
551
551
|
|
552
552
|
let data: ?SelectorData | Array<?SelectorData>;
|
553
553
|
if (isPlural) {
|
554
|
-
// Plural fragments require allocating an array of the
|
554
|
+
// Plural fragments require allocating an array of the snapshot data values,
|
555
555
|
// which has to be memoized to avoid triggering downstream re-renders.
|
556
556
|
//
|
557
557
|
// Note that isPlural is a constant property of the fragment and does not change
|
@@ -614,4 +614,4 @@ function useFragmentInternal_REACT_CACHE(
|
|
614
614
|
return data;
|
615
615
|
}
|
616
616
|
|
617
|
-
module.exports =
|
617
|
+
module.exports = useFragmentInternal_EXPERIMENTAL;
|
@@ -15,7 +15,7 @@ import type {Fragment, FragmentType, GraphQLTaggedNode} from 'relay-runtime';
|
|
15
15
|
|
16
16
|
const {useTrackLoadQueryInRender} = require('../loadQuery');
|
17
17
|
const useStaticFragmentNodeWarning = require('../useStaticFragmentNodeWarning');
|
18
|
-
const useFragmentInternal = require('./
|
18
|
+
const useFragmentInternal = require('./useFragmentInternal_EXPERIMENTAL');
|
19
19
|
const {useDebugValue} = require('react');
|
20
20
|
const {getFragment} = require('relay-runtime');
|
21
21
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
import type {LoadMoreFn, UseLoadMoreFunctionArgs} from '../useLoadMoreFunction';
|
15
15
|
import type {ReturnType} from '../usePaginationFragment';
|
16
|
-
import type {Options} from './
|
16
|
+
import type {Options} from './useRefetchableFragmentInternal_EXPERIMENTAL';
|
17
17
|
import type {
|
18
18
|
FragmentType,
|
19
19
|
GraphQLResponse,
|
@@ -25,7 +25,7 @@ import type {
|
|
25
25
|
const useLoadMoreFunction = require('../useLoadMoreFunction');
|
26
26
|
const useRelayEnvironment = require('../useRelayEnvironment');
|
27
27
|
const useStaticFragmentNodeWarning = require('../useStaticFragmentNodeWarning');
|
28
|
-
const useRefetchableFragmentInternal = require('./
|
28
|
+
const useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal_EXPERIMENTAL');
|
29
29
|
const {useCallback, useDebugValue, useState} = require('react');
|
30
30
|
const {
|
31
31
|
getFragment,
|
@@ -31,8 +31,8 @@ const {getQueryResourceForEnvironment} = require('../QueryResource');
|
|
31
31
|
const useIsMountedRef = require('../useIsMountedRef');
|
32
32
|
const useQueryLoader = require('../useQueryLoader');
|
33
33
|
const useRelayEnvironment = require('../useRelayEnvironment');
|
34
|
-
const readFragmentInternal = require('./
|
35
|
-
const useFragmentInternal = require('./
|
34
|
+
const readFragmentInternal = require('./readFragmentInternal_EXPERIMENTAL');
|
35
|
+
const useFragmentInternal = require('./useFragmentInternal_EXPERIMENTAL');
|
36
36
|
const invariant = require('invariant');
|
37
37
|
const {useCallback, useContext, useReducer} = require('react');
|
38
38
|
const {
|
@@ -55,16 +55,13 @@ export type RefetchFn<
|
|
55
55
|
// /nullable/.
|
56
56
|
// - Or, expects /a subset/ of the query variables if the provided key type is
|
57
57
|
// /non-null/.
|
58
|
-
// prettier-ignore
|
59
58
|
export type RefetchFnDynamic<
|
60
59
|
TQuery: OperationType,
|
61
|
-
TKey: ?{
|
60
|
+
TKey: ?{+$data?: mixed, ...},
|
62
61
|
TOptions = Options,
|
63
|
-
> =
|
64
|
-
|
65
|
-
|
66
|
-
TKey
|
67
|
-
>;
|
62
|
+
> = [TKey] extends [{+$data?: mixed, ...}]
|
63
|
+
? RefetchFnInexact<TQuery, TOptions>
|
64
|
+
: RefetchFnExact<TQuery, TOptions>;
|
68
65
|
|
69
66
|
export type ReturnType<
|
70
67
|
TQuery: OperationType,
|
@@ -353,6 +350,7 @@ function useRefetchableFragmentNode<
|
|
353
350
|
return {
|
354
351
|
fragmentData,
|
355
352
|
fragmentRef,
|
353
|
+
// $FlowFixMe[incompatible-return] RefetchFn not compatible with RefetchFnDynamic
|
356
354
|
refetch,
|
357
355
|
};
|
358
356
|
}
|
@@ -481,11 +479,13 @@ function useRefetchFunction<TQuery: OperationType>(
|
|
481
479
|
const refetchQuery = createOperationDescriptor(
|
482
480
|
refetchableRequest,
|
483
481
|
refetchVariables,
|
484
|
-
{
|
482
|
+
{
|
483
|
+
force: true,
|
484
|
+
},
|
485
485
|
);
|
486
486
|
|
487
487
|
// We call loadQuery which will start a network request if necessary
|
488
|
-
// and update the
|
488
|
+
// and update the queryRef from useQueryLoader.
|
489
489
|
// Note the following:
|
490
490
|
// - loadQuery will dispose of any previously refetched queries.
|
491
491
|
// - We use the variables extracted off the OperationDescriptor
|
@@ -15,7 +15,7 @@ import type {ReturnType} from '../useRefetchableFragment';
|
|
15
15
|
import type {FragmentType, RefetchableFragment, Variables} from 'relay-runtime';
|
16
16
|
|
17
17
|
const useStaticFragmentNodeWarning = require('../useStaticFragmentNodeWarning');
|
18
|
-
const useRefetchableFragmentInternal = require('./
|
18
|
+
const useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal_EXPERIMENTAL');
|
19
19
|
const {useDebugValue} = require('react');
|
20
20
|
const {getFragment} = require('relay-runtime');
|
21
21
|
|
@@ -34,15 +34,12 @@ const {
|
|
34
34
|
} = require('relay-runtime');
|
35
35
|
|
36
36
|
type RefetchVariables<TVariables, TKey> =
|
37
|
-
// NOTE: This
|
37
|
+
// NOTE: This type ensures that the type of the variables is either:
|
38
38
|
// - nullable if the provided ref type is non-nullable
|
39
39
|
// - non-nullable if the provided ref type is nullable, and the caller need to provide the full set of variables
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
& (<TFragmentType>(?{ +$fragmentSpreads: TFragmentType, ... }) => TVariables),
|
44
|
-
TKey,
|
45
|
-
>;
|
40
|
+
[+key: TKey] extends [+key: {+$fragmentSpreads: mixed, ...}]
|
41
|
+
? Partial<TVariables>
|
42
|
+
: TVariables;
|
46
43
|
|
47
44
|
type RefetchFnBase<TVars, TOptions> = (
|
48
45
|
vars: TVars,
|
@@ -55,15 +52,12 @@ type RefetchFn<TVariables, TKey, TOptions = Options> = RefetchFnBase<
|
|
55
52
|
>;
|
56
53
|
|
57
54
|
type ReturnType<TVariables, TData, TKey> = {
|
58
|
-
// NOTE: This
|
55
|
+
// NOTE: This rtpw ensures that the type of the returned data is either:
|
59
56
|
// - nullable if the provided ref type is nullable
|
60
57
|
// - non-nullable if the provided ref type is non-nullable
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
& (<TFragmentType>(?{ +$fragmentSpreads: TFragmentType, ... }) => ?TData),
|
65
|
-
TKey,
|
66
|
-
>,
|
58
|
+
data: [+key: TKey] extends [+key: {+$fragmentSpreads: mixed, ...}]
|
59
|
+
? TData
|
60
|
+
: ?TData,
|
67
61
|
loadNext: LoadMoreFn<TVariables>,
|
68
62
|
loadPrevious: LoadMoreFn<TVariables>,
|
69
63
|
hasNext: boolean,
|
@@ -162,6 +156,7 @@ function useBlockingPaginationFragment<
|
|
162
156
|
|
163
157
|
return {
|
164
158
|
// $FlowFixMe[incompatible-cast]
|
159
|
+
// $FlowFixMe[incompatible-return]
|
165
160
|
data: (fragmentData: TData),
|
166
161
|
loadNext,
|
167
162
|
loadPrevious,
|