relay-runtime 10.0.1 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/handlers/RelayDefaultHandlerProvider.js.flow +6 -0
- package/handlers/connection/MutationHandlers.js.flow +114 -3
- package/index.js +1 -1
- package/index.js.flow +16 -1
- package/lib/handlers/RelayDefaultHandlerProvider.js +9 -0
- package/lib/handlers/connection/MutationHandlers.js +138 -12
- package/lib/index.js +7 -0
- package/lib/mutations/RelayDeclarativeMutationConfig.js +2 -2
- package/lib/mutations/commitMutation.js +1 -4
- package/lib/mutations/validateMutation.js +27 -7
- package/lib/network/RelayQueryResponseCache.js +2 -2
- package/lib/query/GraphQLTag.js +2 -1
- package/lib/query/fetchQuery.js +2 -3
- package/lib/query/fetchQueryInternal.js +2 -3
- package/lib/store/DataChecker.js +82 -5
- package/lib/store/RelayModernEnvironment.js +18 -6
- package/lib/store/RelayModernFragmentSpecResolver.js +10 -1
- package/lib/store/RelayModernOperationDescriptor.js +6 -5
- package/lib/store/RelayModernQueryExecutor.js +44 -23
- package/lib/store/RelayModernStore.js +25 -14
- package/lib/store/RelayOperationTracker.js +2 -2
- package/lib/store/RelayPublishQueue.js +1 -1
- package/lib/store/RelayReader.js +196 -33
- package/lib/store/RelayRecordSourceMapImpl.js +2 -2
- package/lib/store/RelayReferenceMarker.js +89 -5
- package/lib/store/RelayResponseNormalizer.js +119 -19
- package/lib/store/RelayStoreReactFlightUtils.js +47 -0
- package/lib/store/defaultRequiredFieldLogger.js +18 -0
- package/lib/store/normalizeRelayPayload.js +1 -1
- package/lib/subscription/requestSubscription.js +2 -3
- package/lib/util/NormalizationNode.js +1 -5
- package/lib/util/RelayConcreteNode.js +2 -0
- package/lib/util/RelayFeatureFlags.js +5 -2
- package/lib/util/getFragmentIdentifier.js +12 -3
- package/lib/util/getOperation.js +33 -0
- package/lib/util/isEmptyObject.js +25 -0
- package/lib/util/recycleNodesInto.js +4 -1
- package/lib/util/reportMissingRequiredFields.js +48 -0
- package/mutations/commitMutation.js.flow +1 -2
- package/mutations/validateMutation.js.flow +34 -5
- package/network/RelayNetworkTypes.js.flow +22 -0
- package/package.json +2 -2
- package/query/GraphQLTag.js.flow +3 -1
- package/query/fetchQuery.js.flow +2 -2
- package/query/fetchQueryInternal.js.flow +0 -5
- package/relay-runtime.js +2 -2
- package/relay-runtime.min.js +2 -2
- package/store/DataChecker.js.flow +68 -2
- package/store/RelayModernEnvironment.js.flow +29 -9
- package/store/RelayModernFragmentSpecResolver.js.flow +13 -1
- package/store/RelayModernOperationDescriptor.js.flow +5 -1
- package/store/RelayModernQueryExecutor.js.flow +47 -23
- package/store/RelayModernStore.js.flow +31 -15
- package/store/RelayPublishQueue.js.flow +1 -1
- package/store/RelayReader.js.flow +180 -15
- package/store/RelayReferenceMarker.js.flow +72 -5
- package/store/RelayResponseNormalizer.js.flow +130 -19
- package/store/RelayStoreReactFlightUtils.js.flow +64 -0
- package/store/RelayStoreTypes.js.flow +90 -31
- package/store/defaultRequiredFieldLogger.js.flow +23 -0
- package/subscription/requestSubscription.js.flow +5 -2
- package/util/NormalizationNode.js.flow +17 -2
- package/util/ReaderNode.js.flow +20 -1
- package/util/RelayConcreteNode.js.flow +6 -0
- package/util/RelayFeatureFlags.js.flow +8 -1
- package/util/getFragmentIdentifier.js.flow +33 -9
- package/util/getOperation.js.flow +40 -0
- package/util/isEmptyObject.js.flow +25 -0
- package/util/recycleNodesInto.js.flow +11 -0
- package/util/reportMissingRequiredFields.js.flow +51 -0
package/relay-runtime.min.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Relay v10.0
|
|
2
|
+
* Relay v10.1.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/ErrorUtils")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","fbjs/lib/warning","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/defineProperty","fbjs/lib/areEqual","@babel/runtime/helpers/toConsumableArray","fbjs/lib/ErrorUtils"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/ErrorUtils")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/ErrorUtils"])}(window,(function(e,t,r,n,i,a,o){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.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 i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));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=44)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(3)(r(18)),i=r(6),a=r(22),o=r(0),s=r(10),u=i.VARIABLE,l=i.LITERAL,c=i.OBJECT_VALUE,d=i.LIST_VALUE;function f(e,t){if(e.kind===u)return function(e,t){return t.hasOwnProperty(e)||o(!1),s(t[e])}(e.variableName,t);if(e.kind===l)return e.value;if(e.kind===c){var r={};return e.fields.forEach((function(e){r[e.name]=f(e,t)})),r}if(e.kind===d){var n=[];return e.items.forEach((function(e){null!=e&&n.push(f(e,t))})),n}}function p(e,t){var r={};return e.forEach((function(e){r[e.name]=f(e,t)})),r}function h(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i,a=t[n];if(null!=a)r.push(n+":"+(null!==(i=JSON.stringify(a))&&void 0!==i?i:"undefined"))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var _={FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"__isWithinUnmatchedTypeRefinement",formatStorageKey:h,getArgumentValue:f,getArgumentValues:p,getHandleStorageKey:function(e,t){var r=e.dynamicKey,i=e.handle,o=e.key,s=e.name,u=e.args,l=e.filters,c=a(i,o,s),d=null;return u&&l&&0!==u.length&&0!==l.length&&(d=u.filter((function(e){return l.indexOf(e.name)>-1}))),r&&(d=null!=d?[r].concat((0,n.default)(d)):[r]),null===d?c:h(c,p(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,n=e.name;return r&&0!==r.length?h(n,p(r,t)):n},getStableStorageKey:function(e,t){return h(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=_},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=0;e.exports={generateClientID:function(e,t,r){var n=e+":"+t;return null!=r&&(n+=":"+r),0!==n.indexOf("client:")&&(n="client:"+n),n},generateUniqueClientID:function(){return"".concat("client:","local:").concat(n++)},isClientID:function(e){return 0===e.indexOf("client:")}}},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",VARIABLE:"Variable"}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var o=r(14),s=r(19),u=r(0),l=(r(2),r(5).isClientID,r(1)),c=l.ID_KEY,d=l.REF_KEY,f=l.REFS_KEY,p=l.TYPENAME_KEY,h=l.INVALIDATED_AT_KEY;l.ROOT_ID;e.exports={clone:function(e){return a({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==c&&r!==p&&(t[r]=e[r])},create:function(e,t){var r={};return r[c]=e,r[p]=t,r},freeze:function(e){s(e)},getDataID:function(e){return e[c]},getInvalidationEpoch:function(e){if(null==e)return null;var t=e[h];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[d]||u(!1),r[d])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[f])||u(!1),r[f])},getType:function(e){return e[p]},getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(d)||r.hasOwnProperty(f))&&u(!1),r},merge:function(e,t){return Object.assign({},e,t)},setValue:function(e,t,r){e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[d]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[f]=r,e[t]=n},update:function(e,t){for(var r=null,n=Object.keys(t),i=0;i<n.length;i++){var s=n[i];!r&&o(e[s],t[s])||((r=null!==r?r:a({},e))[s]=t[s])}return null!==r?r:e}}},function(e,t,r){"use strict";e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_PARTIAL_RENDERING_DEFAULT:!1,ENABLE_RELAY_CONTAINERS_SUSPENSE:!1,ENABLE_PRECISE_TYPE_REFINEMENT:!1}},function(e,t,r){"use strict";var n=r(6),i=r(0);r(2);function a(e){var t=e;return"function"==typeof t?t=t():t.default&&(t=t.default),t}function o(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function s(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function u(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.INLINE_DATA_FRAGMENT}function l(e){var t=a(e);return o(t)||i(!1),t}e.exports={getFragment:l,getPaginationFragment:function(e){var t,r=l(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,i=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:r},getRefetchableFragment:function(e){var t,r=l(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===n||"object"!=typeof n?null:r},getRequest:function(e){var t=a(e);return s(t)||i(!1),t},getInlineDataFragment:function(e){var t=a(e);return u(t)||i(!1),t},graphql:function(e){i(!1)},isFragment:o,isRequest:s,isInlineDataFragment:u}},function(e,t,r){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),n={},i=0;i<r.length;i++)n[r[i]]=e(t[r[i]]);return n}},function(e,t,r){"use strict";var n=r(31),i=function(e,t){},a=function(){function e(e){this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){i=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?o(e):n(e)?s(e):u(e)};var t=e.prototype;return t.catch=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}}))},t.concat=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},t.do=function(t){var r=this;return e.create((function(e){var n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){i(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},t.finally=function(t){var r=this;return e.create((function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}}))},t.ifEmpty=function(t){var r=this;return e.create((function(e){var n=!1,i=r.subscribe({next:function(t){n=!0,e.next(t)},error:e.error,complete:function(){n?e.complete():i=t.subscribe(e)}});return function(){i.unsubscribe()}}))},t.subscribe=function(e){return function(e,t){var r,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var s=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){i(e,!0)}finally{o()}}}});try{t.start&&t.start(s)}catch(e){i(e,!0)}if(n)return s;var u=a({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){i(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,i(e,r||!1),o();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{o()}}}});try{r=e(u)}catch(e){u.error(e,!0)}0;n&&o();return s}(this._source,e)},t.map=function(t){var r=this;return e.create((function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}}))},t.mergeMap=function(t){var r=this;return e.create((function(n){var i=[];function a(e){this._sub=e,i.push(e)}function o(){i.splice(i.indexOf(this._sub),1),0===i.length&&n.complete()}return r.subscribe({start:a,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:a,next:n.next,error:n.error,complete:o})}catch(e){n.error(e,!0)}},error:n.error,complete:o}),function(){i.forEach((function(e){return e.unsubscribe()})),i.length=0}}))},t.poll=function(t){var r=this;return e.create((function(e){var n,i;return function a(){n=r.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,t)}})}(),function(){clearTimeout(i),n.unsubscribe()}}))},t.toPromise=function(){var e=this;return new Promise((function(t,r){var n=!1;e.subscribe({next:function(e){n||(n=!0,t(e))},error:r,complete:t})}))},e}();function o(e){return e instanceof a?e:a.create((function(t){return e.subscribe(t)}))}function s(e){return a.create((function(t){e.then((function(e){t.next(e),t.complete()}),t.error)}))}function u(e){return a.create((function(t){t.next(e),t.complete()}))}e.exports=a},function(e,t,r){"use strict";var n=r(14),i=r(0),a=(r(2),r(23).getFragmentVariables),o=r(1),s=o.FRAGMENT_OWNER_KEY,u=o.FRAGMENTS_KEY,l=o.ID_KEY,c=o.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT;function d(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1);var r=t[l],n=t[u],o=t[s],d=!0===t[c];if("string"==typeof r&&"object"==typeof n&&null!==n&&"object"==typeof n[e.name]&&null!==n[e.name]&&"object"==typeof o&&null!==o){var f=o,p=n[e.name];return b(e,r,a(e,f.variables,p),f,d)}return null}function f(e,t){var r=null;return t.forEach((function(t,n){var i=null!=t?d(e,t):null;null!=i&&(r=r||[]).push(i)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function p(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1),f(e,t)):(Array.isArray(t)&&i(!1),d(e,t))}function h(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1),function(e,t){var r=null;return t.forEach((function(t){var n=null!=t?_(e,t):null;null!=n&&(r=r||[]).push(n)})),r}(e,t)):(Array.isArray(t)&&i(!1),_(e,t))}function _(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1);var r=t[l];return"string"==typeof r?r:null}function v(e,t){var r;return null==t?{}:!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)?(Array.isArray(t)||i(!1),m(e,t)):(Array.isArray(t)&&i(!1),g(e,t)||{})}function g(e,t){var r=d(e,t);return r?r.variables:null}function m(e,t){var r={};return t.forEach((function(t,n){if(null!=t){var i=g(e,t);null!=i&&Object.assign(r,i)}})),r}function b(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:i,node:e,variables:r,owner:n}}e.exports={areEqualSelectors:function(e,t){return e.owner===t.owner&&e.dataID===t.dataID&&e.node===t.node&&n(e.variables,t.variables)},createReaderSelector:b,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:h,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=h(i,a)}return r},getSingularSelector:d,getPluralSelector:f,getSelector:p,getSelectorsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=p(i,a)}return r},getVariablesFromSingularFragment:g,getVariablesFromPluralFragment:m,getVariablesFromFragment:v,getVariablesFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=v(e[n],t[n]);Object.assign(r,i)}return r}}},function(e,t,r){"use strict";r(19);var n=r(38),i=r(23).getOperationVariables,a=r(12),o=a.createNormalizationSelector,s=a.createReaderSelector,u=r(1).ROOT_ID;function l(e,t){return{identifier:n(e.params,t),node:e,variables:t}}e.exports={createOperationDescriptor:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=e.operation,a=i(n,t),c=l(e,a),d={fragment:s(e.fragment,r,a,c),request:c,root:o(n,r,a)};return d},createRequestDescriptor:l}},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(49),i=function(){function e(t){return e.create(t)}return e.create=function(e){return new n(e)},e}();e.exports=i},function(e,t,r){"use strict";var n=r(26),i=r(22),a=r(0),o=(r(2),r(5).generateClientID);function s(e,t,r){if(null==r)return r;var i=n.get().EDGES,s=t.getValue("__connection_next_edge_index");"number"!=typeof s&&a(!1);var u=o(t.getDataID(),i,s),l=e.create(u,r.getType());return l.copyFieldsFrom(r),t.setValue(s+1,"__connection_next_edge_index"),l}function u(e,t,r){for(var i=n.get().NODE,a=0;a<e.length;a++){var o=e[a];if(o){var s=o.getLinkedRecord(i),u=s&&s.getDataID();if(u){if(r.has(u))continue;r.add(u)}t.push(o)}}}e.exports={buildConnectionEdge:s,createEdge:function(e,t,r,i){var a=n.get().NODE,s=o(t.getDataID(),r.getDataID()),u=e.get(s);return u||(u=e.create(s,i)),u.setLinkedRecord(r,a),u},deleteNode:function(e,t){var r=n.get(),i=r.EDGES,a=r.NODE,o=e.getLinkedRecords(i);if(o){for(var s,u=0;u<o.length;u++){var l=o[u],c=l&&l.getLinkedRecord(a);null!=c&&c.getDataID()===t?void 0===s&&(s=o.slice(0,u)):void 0!==s&&s.push(l)}void 0!==s&&e.setLinkedRecords(s,i)}},getConnection:function(e,t,r){var n=i("connection",t,null);return e.getLinkedRecord(n,r)},insertEdgeAfter:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var u;if(null==r)u=s.concat(t);else{u=[];for(var l=!1,c=0;c<s.length;c++){var d=s[c];if(u.push(d),null!=d)r===d.getValue(a)&&(u.push(t),l=!0)}l||u.push(t)}e.setLinkedRecords(u,o)}else e.setLinkedRecords([t],o)},insertEdgeBefore:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var u;if(null==r)u=[t].concat(s);else{u=[];for(var l=!1,c=0;c<s.length;c++){var d=s[c];if(null!=d)r===d.getValue(a)&&(u.push(t),l=!0);u.push(d)}l||u.unshift(t)}e.setLinkedRecords(u,o)}else e.setLinkedRecords([t],o)},update:function(e,t){var r=e.get(t.dataID);if(r){var i=n.get(),a=i.EDGES,l=i.END_CURSOR,c=i.HAS_NEXT_PAGE,d=i.HAS_PREV_PAGE,f=i.PAGE_INFO,p=i.PAGE_INFO_TYPE,h=i.START_CURSOR,_=r.getLinkedRecord(t.fieldKey),v=_&&_.getLinkedRecord(f);if(_){var g=o(r.getDataID(),t.handleKey),m=r.getLinkedRecord(t.handleKey),b=null!=m?m:e.get(g),y=b&&b.getLinkedRecord(f);if(b){null==m&&r.setLinkedRecord(b,t.handleKey);var E=b,D=_.getLinkedRecords(a);D&&(D=D.map((function(t){return s(e,E,t)})));var I=E.getLinkedRecords(a),S=E.getLinkedRecord(f);E.copyFieldsFrom(_),I&&E.setLinkedRecords(I,a),S&&E.setLinkedRecord(S,f);var O=[],R=t.args;if(I&&D)if(null!=R.after){if(!y||R.after!==y.getValue(l))return;var k=new Set;u(I,O,k),u(D,O,k)}else if(null!=R.before){if(!y||R.before!==y.getValue(h))return;var P=new Set;u(D,O,P),u(I,O,P)}else O=D;else O=D||I;if(null!=O&&O!==I&&E.setLinkedRecords(O,a),y&&v)if(null==R.after&&null==R.before)y.copyFieldsFrom(v);else if(null!=R.before||null==R.after&&R.last){y.setValue(!!v.getValue(d),d);var T=v.getValue(h);"string"==typeof T&&y.setValue(T,h)}else if(null!=R.after||null==R.before&&R.first){y.setValue(!!v.getValue(c),c);var A=v.getValue(l);"string"==typeof A&&y.setValue(A,l)}}else{var N=e.create(g,_.getType());N.setValue(0,"__connection_next_edge_index"),N.copyFieldsFrom(_);var w=_.getLinkedRecords(a);w&&(w=w.map((function(t){return s(e,N,t)})),N.setLinkedRecords(w,a)),r.setLinkedRecord(N,t.handleKey),(y=e.create(o(N.getDataID(),f),p)).setValue(!1,c),y.setValue(!1,d),y.setValue(null,l),y.setValue(null,h),v&&y.copyFieldsFrom(v),N.setLinkedRecord(y,f)}}else r.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(16),o=(r(2),Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"})),s=Object.freeze({APPEND:"append",PREPEND:"prepend"});function u(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:o,RangeOperations:s,convert:function(e,t,r,i){var o=r?[r]:[],s=i?[i]:[];return e.forEach((function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=u(t);if(!n)return null;return function(e,t){var i=e.getRootField(n);if(i){var a=i.getValue(r);(Array.isArray(a)?a:[a]).forEach((function(t){t&&"string"==typeof t&&e.delete(t)}))}}}(e,t);r&&(o.push(r),s.push(r));break;case"RANGE_ADD":var i=function(e,t){var r=e.parentID,i=e.connectionInfo,o=e.edgeName;if(!r)return null;var s=u(t);if(!i||!s)return null;return function(e,t){var u=e.get(r);if(u){var l=e.getRootField(s);if(l){var c,d=l.getLinkedRecord(o),f=n(i);try{for(f.s();!(c=f.n()).done;){var p=c.value;if(d){var h=a.getConnection(u,p.key,p.filters);if(h){var _=a.buildConnectionEdge(e,h,d);if(_)switch(p.rangeBehavior){case"append":a.insertEdgeAfter(h,_);break;case"prepend":a.insertEdgeBefore(h,_)}}}}}catch(e){f.e(e)}finally{f.f()}}}}}(e,t);i&&(o.push(i),s.push(i));break;case"RANGE_DELETE":var l=function(e,t){var r=e.parentID,i=e.connectionKeys,o=e.pathToConnection,s=e.deletedIDFieldName;if(!r)return null;var l=u(t);if(!l)return null;return function(e,t){if(t){var u=[],c=t[l];if(c&&Array.isArray(s)){var d,f=n(s);try{for(f.s();!(d=f.n()).done;){var p=d.value;c&&"object"==typeof c&&(c=c[p])}}catch(e){f.e(e)}finally{f.f()}Array.isArray(c)?c.forEach((function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&u.push(e.id)})):c&&c.id&&"string"==typeof c.id&&u.push(c.id)}else c&&"string"==typeof s&&"object"==typeof c&&("string"==typeof(c=c[s])?u.push(c):Array.isArray(c)&&c.forEach((function(e){"string"==typeof e&&u.push(e)})));!function(e,t,r,i,o){var s=i.get(e);if(!s)return;if(r.length<2)return;for(var u=s,l=1;l<r.length-1;l++)u&&(u=u.getLinkedRecord(r[l]));if(!t||!u)return;var c,d=n(t);try{var f=function(){var e=c.value,t=a.getConnection(u,e.key,e.filters);t&&o.forEach((function(e){a.deleteNode(t,e)}))};for(d.s();!(c=d.n()).done;)f()}catch(e){d.e(e)}finally{d.f()}}(r,i,o,e,u)}}}(e,t);l&&(o.push(l),s.push(l))}})),{optimisticUpdater:function(e,t){o.forEach((function(r){r(e,t)}))},updater:function(e,t){s.forEach((function(r){r(e,t)}))}}}}},function(e,t){e.exports=a},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)})),t}},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";e.exports={generateTypeID:function(e){return"client:__type:"+e},isTypeID:function(e){return 0===e.indexOf("client:__type:")},TYPE_SCHEMA_TYPE:"__TypeSchema"}},function(e,t,r){"use strict";var n=r(0),i=r(27).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==i?"__".concat(t,"_").concat(e):(null==r&&n(!1),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var a=r(0);e.exports={getFragmentVariables:function(e,t,r){var o;return e.argumentDefinitions.forEach((function(e){if(!r.hasOwnProperty(e.name))switch(o=o||function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r),e.kind){case"LocalArgument":o[e.name]=e.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(e.name)){o[e.name]=void 0;break}o[e.name]=t[e.name];break;default:a(!1)}})),o||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach((function(e){var n=e.defaultValue;null!=t[e.name]&&(n=t[e.name]),r[e.name]=n})),r}}},function(e,t,r){"use strict";function n(){}var i={"*":[]},a={"*":[]},o={},s={stop:n},u=function(e){return"@"!==e.charAt(0)},l={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=l.instrument(t[r],e[r]))},instrument:function(e,t){if(!u(e))return t.attachHandler=n,t.detachHandler=n,t;i.hasOwnProperty(e)||(i[e]=[]);var r=i["*"],a=i[e],s=[],l=[],d=function n(){var i=l[l.length-1];i[0]?(i[0]--,r[i[0]](e,n)):i[1]?(i[1]--,a[i[1]](e,n)):i[2]?(i[2]--,s[i[2]](e,n)):i[5]=t.apply(i[3],i[4])},f=function(){var e;if(0===a.length&&0===s.length&&0===r.length)e=t.apply(this,arguments);else{l.push([r.length,a.length,s.length,this,arguments,o]),d();var n=l.pop();if((e=n[5])===o)throw new Error("RelayProfiler: Handler did not invoke original function.")}return e};return f.attachHandler=function(e){s.push(e)},f.detachHandler=function(e){c(s,e)},f.displayName="(instrumented "+e+")",f},attachAggregateHandler:function(e,t){u(e)&&(i.hasOwnProperty(e)||(i[e]=[]),i[e].push(t))},detachAggregateHandler:function(e,t){u(e)&&i.hasOwnProperty(e)&&c(i[e],t)},profile:function(e,t){var r=a["*"].length>0,n=a.hasOwnProperty(e);if(n||r){for(var i,o=n&&r?a[e].concat(a["*"]):n?a[e]:a["*"],u=o.length-1;u>=0;u--){var l=(0,o[u])(e,t);(i=i||[]).unshift(l)}return{stop:function(e){i&&i.forEach((function(t){return t(e)}))}}}return s},attachProfileHandler:function(e,t){u(e)&&(a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t))},detachProfileHandler:function(e,t){u(e)&&a.hasOwnProperty(e)&&c(a[e],t)}};function c(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}e.exports=l},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";var n={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},i={CLIENT_MUTATION_ID:"clientMutationId",CURSOR:"cursor",EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"},a={inject:function(e){i=e},get:function(){return i},isConnectionCall:function(e){return n.hasOwnProperty(e.name)}};e.exports=a},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(16),o=r(0),s=(r(2),{update:l(a.insertEdgeAfter)}),u={update:l(a.insertEdgeBefore)};function l(e){return function(t,r){var i=t.get(r.dataID);if(null!=i){var s=r.handleArgs.connections;null==s&&o(!1);var u,l=i.getLinkedRecord(r.fieldKey,r.args),c=n(s);try{for(c.s();!(u=c.n()).done;){var d=u.value,f=t.get(d);if(null!=f){var p=a.buildConnectionEdge(t,f,l);null==p&&o(!1),e(f,p)}}}catch(e){c.e(e)}finally{c.f()}}}}e.exports={AppendEdgeHandler:s,DeleteRecordHandler:{update:function(e,t){var r=e.get(t.dataID);if(null!=r){var n=r.getValue(t.fieldKey);"string"==typeof n&&e.delete(n)}}},PrependEdgeHandler:u}},function(e,t,r){"use strict";var n=r(16),i=r(28),a=r(0);e.exports=function(e){switch(e){case"connection":return n;case"deleteRecord":return i.DeleteRecordHandler;case"appendEdge":return i.AppendEdgeHandler;case"prependEdge":return i.PrependEdgeHandler}a(!1)}},function(e,t,r){"use strict";function n(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),a=3;a<n;a++)i[a-3]=arguments[a];var o=0,s=r.replace(/%s/g,(function(){return String(i[o++])})),u=new Error(s),l=Object.assign(u,{name:t,messageFormat:r,messageParams:i,type:e,taalOpcodes:[2,2]});if(void 0===l.stack)try{throw l}catch(e){}return l}e.exports={create:function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n.apply(void 0,["error",e,t].concat(i))},createWarning:function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n.apply(void 0,["warn",e,t].concat(i))}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(0),o=function(){function e(){this._ownersToPendingOperations=new Map,this._pendingOperationsToOwners=new Map,this._ownersToPromise=new Map}var t=e.prototype;return t.update=function(e,t){if(0!==t.size){var r,i=new Set,a=n(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=this._ownersToPendingOperations.get(o);null!=s?s.has(e)||(s.add(e),i.add(o)):(this._ownersToPendingOperations.set(o,new Set([e])),i.add(o))}}catch(e){a.e(e)}finally{a.f()}if(0!==i.size){var u,l=this._pendingOperationsToOwners.get(e)||new Set,c=n(i);try{for(c.s();!(u=c.n()).done;){var d=u.value;this._resolveOwnerResolvers(d),l.add(d)}}catch(e){c.e(e)}finally{c.f()}this._pendingOperationsToOwners.set(e,l)}}},t.complete=function(e){var t=this._pendingOperationsToOwners.get(e);if(null!=t){var r,i=new Set,a=new Set,o=n(t);try{for(o.s();!(r=o.n()).done;){var s=r.value,u=this._ownersToPendingOperations.get(s);u&&(u.delete(e),u.size>0?a.add(s):i.add(s))}}catch(e){o.e(e)}finally{o.f()}var l,c=n(i);try{for(c.s();!(l=c.n()).done;){var d=l.value;this._resolveOwnerResolvers(d),this._ownersToPendingOperations.delete(d)}}catch(e){c.e(e)}finally{c.f()}var f,p=n(a);try{for(p.s();!(f=p.n()).done;){var h=f.value;this._resolveOwnerResolvers(h)}}catch(e){p.e(e)}finally{p.f()}this._pendingOperationsToOwners.delete(e)}},t._resolveOwnerResolvers=function(e){var t=this._ownersToPromise.get(e);null!=t&&t.resolve(),this._ownersToPromise.delete(e)},t.getPromiseForPendingOperationsAffectingOwner=function(e){if(!this._ownersToPendingOperations.has(e))return null;var t,r=this._ownersToPromise.get(e);if(null!=r)return r.promise;var n=new Promise((function(e){t=e}));return null==t&&a(!1),this._ownersToPromise.set(e,{promise:n,resolve:t}),n},e}();e.exports=o},function(e,t,r){"use strict";var n=r(8),i=r(7),a=r(0),o=r(6),s=o.CLIENT_EXTENSION,u=o.CONDITION,l=o.DEFER,c=o.FRAGMENT_SPREAD,d=o.INLINE_DATA_FRAGMENT_SPREAD,f=o.INLINE_FRAGMENT,p=o.LINKED_FIELD,h=o.MODULE_IMPORT,_=o.SCALAR_FIELD,v=o.STREAM,g=r(1),m=g.FRAGMENTS_KEY,b=g.FRAGMENT_OWNER_KEY,y=g.FRAGMENT_PROP_NAME_KEY,E=g.ID_KEY,D=g.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,I=g.MODULE_COMPONENT_KEY,S=g.ROOT_ID,O=g.getArgumentValues,R=g.getStorageKey,k=g.getModuleComponentKey,P=r(21).generateTypeID;var T=function(){function e(e,t){this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._owner=t.owner,this._recordSource=e,this._seenRecords={},this._selector=t,this._variables=t.variables}var t=e.prototype;return t.read=function(){var e=this._selector,t=e.node,r=e.dataID,a=e.isWithinUnmatchedTypeRefinement,o=t.abstractKey,s=this._recordSource.get(r),u=!a;u&&null==o&&null!=s&&(i.getType(s)!==t.type&&r!==S&&(u=!1));if(u&&null!=o&&null!=s&&n.ENABLE_PRECISE_TYPE_REFINEMENT){var l=i.getType(s),c=P(l),d=this._recordSource.get(c),f=null!=d?i.getValue(d,o):null;!1===f?u=!1:null==f&&(this._isMissingData=!0)}return this._isWithinUnmatchedTypeRefinement=!u,{data:this._traverse(t,r,null),isMissingData:this._isMissingData&&u,seenRecords:this._seenRecords,selector:this._selector}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords[t]=n,null==n)return void 0===n&&(this._isMissingData=!0),n;var i=r||{};return this._traverseSelections(e.selections,n,i),i},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||a(!1),this._variables[e]},t._traverseSelections=function(e,t,r){for(var o=0;o<e.length;o++){var g=e[o];switch(g.kind){case _:this._readScalar(g,t,r);break;case p:g.plural?this._readPluralLink(g,t,r):this._readLink(g,t,r);break;case u:this._getVariableValue(g.condition)===g.passingValue&&this._traverseSelections(g.selections,t,r);break;case f:var m=g.abstractKey;if(null==m){var b=i.getType(t);null!=b&&b===g.type&&this._traverseSelections(g.selections,t,r)}else if(n.ENABLE_PRECISE_TYPE_REFINEMENT){var y=this._isMissingData,E=this._isWithinUnmatchedTypeRefinement,D=i.getType(t),I=P(D),S=this._recordSource.get(I),O=null!=S?i.getValue(S,m):null;this._isWithinUnmatchedTypeRefinement=E||!1===O,this._traverseSelections(g.selections,t,r),this._isWithinUnmatchedTypeRefinement=E,!1===O?this._isMissingData=y:null==O&&(this._isMissingData=!0)}else this._traverseSelections(g.selections,t,r);break;case c:this._createFragmentPointer(g,t,r);break;case h:this._readModuleImport(g,t,r);break;case d:this._createInlineDataFragmentPointer(g,t,r);break;case l:case s:var R=this._isMissingData;this._traverseSelections(g.selections,t,r),this._isMissingData=R;break;case v:this._traverseSelections(g.selections,t,r);break;default:a(!1)}}},t._readScalar=function(e,t,r){var n,a=null!==(n=e.alias)&&void 0!==n?n:e.name,o=R(e,this._variables),s=i.getValue(t,o);void 0===s&&(this._isMissingData=!0),r[a]=s},t._readLink=function(e,t,r){var n,o=null!==(n=e.alias)&&void 0!==n?n:e.name,s=R(e,this._variables),u=i.getLinkedRecordID(t,s);if(null==u)return r[o]=u,void(void 0===u&&(this._isMissingData=!0));var l=r[o];null!=l&&"object"!=typeof l&&a(!1),r[o]=this._traverse(e,u,l)},t._readPluralLink=function(e,t,r){var n,o=this,s=null!==(n=e.alias)&&void 0!==n?n:e.name,u=R(e,this._variables),l=i.getLinkedRecordIDs(t,u);if(null==l)return r[s]=l,void(void 0===l&&(this._isMissingData=!0));var c=r[s];null==c||Array.isArray(c)||a(!1);var d=c||[];l.forEach((function(t,r){if(null==t)return void 0===t&&(o._isMissingData=!0),void(d[r]=t);var n=d[r];null!=n&&"object"!=typeof n&&a(!1),d[r]=o._traverse(e,t,n)})),r[s]=d},t._readModuleImport=function(e,t,r){var n=k(e.documentName),a=i.getValue(t,n);null!=a?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[y]=e.fragmentPropName,r[I]=a):void 0===a&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var o=r[m];null==o&&(o=r[m]={}),("object"!=typeof o||null==o)&&a(!1),null==r[E]&&(r[E]=i.getDataID(t)),o[e.name]=e.args?O(e.args,this._variables):{},r[b]=this._owner,n.ENABLE_PRECISE_TYPE_REFINEMENT&&(r[D]=this._isWithinUnmatchedTypeRefinement)},t._createInlineDataFragmentPointer=function(e,t,r){var n=r[m];null==n&&(n=r[m]={}),("object"!=typeof n||null==n)&&a(!1),null==r[E]&&(r[E]=i.getDataID(t));var o={};this._traverseSelections(e.selections,t,o),n[e.name]=o},e}();e.exports={read:function(e,t){return new T(e,t).read()}}},function(e,t,r){"use strict";var n=r(7),i=r(0),a=r(20).EXISTENT,o=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);return void 0===r?null==t?t:n.clone(t):null===r?null:null!=t?n.update(t,r):n.clone(r)},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||i(!1),t=n.create(e,n.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),a=this._base.get(e);r||a||i(!1);var o=this._getSinkRecord(t);a&&n.copyFields(a,o),r&&n.copyFields(r,o)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);n.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===a||this._sink.getStatus(e)===a)&&i(!1);var r=n.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var r=this.__sources[t].get(e);if(r)return n.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getValue(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setValue=function(e,t,r){var i=this._getSinkRecord(e);n.setValue(i,t,r)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getLinkedRecordID(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setLinkedRecordID=function(e,t,r){var i=this._getSinkRecord(e);n.setLinkedRecordID(i,t,r)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getLinkedRecordIDs(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setLinkedRecordIDs=function(e,t,r){var i=this._getSinkRecord(e);n.setLinkedRecordIDs(i,t,r)},e}();e.exports=o},function(e,t,r){"use strict";var n=r(7),i=r(53),a=r(0),o=r(20),s=o.EXISTENT,u=o.NONEXISTENT,l=r(1),c=l.ROOT_ID,d=l.ROOT_TYPE,f=function(){function e(e,t,r){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set}var t=e.prototype;return t.publishSource=function(e,t){var r=this;e.getRecordIDs().forEach((function(t){var i=e.getStatus(t);if(i===s){var a=e.get(t);a&&(r.__mutator.getStatus(t)!==s&&r.create(t,n.getType(a)),r.__mutator.copyFieldsFromRecord(a,t))}else i===u&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||a(!1),t.update(r,e)}))},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||a(!1),r},t.delete=function(e){e===c&&a(!1),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===s?new i(this,this.__mutator,e):t===u?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(c);return e||(e=this.create(c,d)),e&&e.getType()===d||a(!1),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},e}();e.exports=f},function(e,t,r){"use strict";var n=r(37),i=n.VIEWER_ID,a=n.VIEWER_TYPE;e.exports=function(e,t){return t===a&&null==e.id?i:e.id}},function(e,t,r){"use strict";var n=(0,r(5).generateClientID)(r(1).ROOT_ID,"viewer");e.exports={VIEWER_ID:n,VIEWER_TYPE:"Viewer"}},function(e,t,r){"use strict";var n=r(0),i=r(10);e.exports=function(e,t){var r=null!=e.cacheID?e.cacheID:e.id;return null==r&&n(!1),r+JSON.stringify(i(t))}},function(e,t,r){"use strict";var n=r(14),i=r(0),a=r(6).LINKED_FIELD,o=r(1).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===a||i(!1);var u=o(e,r);return{kind:"LinkedField",alias:s.alias,name:u,storageKey:u,args:null,concreteType:s.concreteType,plural:s.plural,selections:s.selections}}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r||"object"!=typeof t||!t||"object"!=typeof r||!r)return r;var n=!1,i=Array.isArray(t)?t:null,a=Array.isArray(r)?r:null;if(i&&a)n=a.reduce((function(t,r,n){var o=e(i[n],r);return o!==a[n]&&(a[n]=o),t&&o===i[n]}),!0)&&i.length===a.length;else if(!i&&!a){var o=t,s=r,u=Object.keys(o),l=Object.keys(s);n=l.reduce((function(t,r){var n=e(o[r],s[r]);return n!==s[r]&&(s[r]=n),t&&n===o[r]}),!0)&&u.length===l.length}return n?t:r}},function(e,t,r){"use strict";var n=r(3)(r(4)),i=r(11),a=r(0),o=function(){function e(){var e=this;(0,n.default)(this,"_complete",!1),(0,n.default)(this,"_events",[]),(0,n.default)(this,"_sinks",new Set),(0,n.default)(this,"_subscription",null),this._observable=i.create((function(t){e._sinks.add(t);for(var r=e._events,n=0;n<r.length&&!t.closed;n++){var i=r[n];switch(i.kind){case"complete":t.complete();break;case"error":t.error(i.error);break;case"next":t.next(i.data);break;default:i.kind,a(!1)}}return function(){e._sinks.delete(t)}}))}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(t){return t.error(e)})))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(t){return t.next(e)})))},t.subscribe=function(e){return this._subscription=this._observable.subscribe(e),this._subscription},t.unsubscribe=function(){this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=o},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t,r){"use strict";var n=r(11),i=r(41),a=r(0),o="function"==typeof WeakMap?new WeakMap:new Map;function s(e,t,r){return n.create((function(o){var s=l(e),u=s.get(t);return u||r().finally((function(){return s.delete(t)})).subscribe({start:function(e){u={identifier:t,subject:new i,subjectForInFlightStatus:new i,subscription:e},s.set(t,u)},next:function(e){var r=c(s,t);r.subject.next(e),r.subjectForInFlightStatus.next(e)},error:function(e){var r=c(s,t);r.subject.error(e),r.subjectForInFlightStatus.error(e)},complete:function(){var e=c(s,t);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var r=c(s,t);r.subject.unsubscribe(),r.subjectForInFlightStatus.unsubscribe()}}),null==u&&a(!1),function(e,t){return n.create((function(r){var n=t.subject.subscribe(r);return function(){n.unsubscribe();var r=e.get(t.identifier);if(r){var i=r.subscription;null!=i&&0===r.subject.getObserverCount()&&(i.unsubscribe(),e.delete(t.identifier))}}}))}(s,u).subscribe(o)}))}function u(e,t,r){return n.create((function(t){var n=r.subjectForInFlightStatus.subscribe({error:t.error,next:function(n){e.isRequestActive(r.identifier)?t.next():t.complete()},complete:t.complete,unsubscribe:t.complete});return function(){n.unsubscribe()}}))}function l(e){var t=o.get(e);if(null!=t)return t;var r=new Map;return o.set(e,r),r}function c(e,t){var r=e.get(t);return null==r&&a(!1),r}e.exports={fetchQuery:function(e,t,r){return s(e,t.request.identifier,(function(){return e.execute({operation:t,cacheConfig:null==r?void 0:r.networkCacheConfig})}))},fetchQueryDeduped:s,getPromiseForActiveRequest:function(e,t){var r=l(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?new Promise((function(t,r){var i=!1;u(e,0,n).subscribe({complete:t,error:r,next:function(e){i&&t(e)}}),i=!0})):null},getObservableForActiveRequest:function(e,t){var r=l(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?u(e,0,n):null}}},function(e,t,r){"use strict";var n=r(16),i=r(26),a=r(9),o=r(28),s=r(45),u=r(6),l=r(23),c=r(17),d=r(27),f=r(29),p=r(30),h=r(8),_=r(46),v=r(13),g=r(7),m=r(12),b=r(56),y=r(63),E=r(11),D=r(32),I=r(24),S=r(65),O=r(15),R=r(41),k=r(1),P=r(37),T=r(66),A=r(67),N=r(68),w=r(70),F=r(72),M=r(73),L=r(19),x=r(74),j=r(43),C=r(75),U=r(22),V=r(38),K=r(31),q=r(25),Y=r(42),H=r(76),G=r(40),Q=r(77),z=r(10),W=r(5),B=W.generateClientID,X=W.generateUniqueClientID,J=W.isClientID;e.exports={Environment:_,Network:y,Observable:E,QueryResponseCache:S,RecordSource:O,Record:g,ReplaySubject:R,Store:b,areEqualSelectors:m.areEqualSelectors,createFragmentSpecResolver:w,createNormalizationSelector:m.createNormalizationSelector,createOperationDescriptor:v.createOperationDescriptor,createReaderSelector:m.createReaderSelector,createRequestDescriptor:v.createRequestDescriptor,getDataIDsFromFragment:m.getDataIDsFromFragment,getDataIDsFromObject:m.getDataIDsFromObject,getFragment:a.getFragment,getInlineDataFragment:a.getInlineDataFragment,getModuleComponentKey:k.getModuleComponentKey,getModuleOperationKey:k.getModuleOperationKey,getPaginationFragment:a.getPaginationFragment,getPluralSelector:m.getPluralSelector,getRefetchableFragment:a.getRefetchableFragment,getRequest:a.getRequest,getRequestIdentifier:V,getSelector:m.getSelector,getSelectorsFromObject:m.getSelectorsFromObject,getSingularSelector:m.getSingularSelector,getStorageKey:k.getStorageKey,getVariablesFromFragment:m.getVariablesFromFragment,getVariablesFromObject:m.getVariablesFromObject,getVariablesFromPluralFragment:m.getVariablesFromPluralFragment,getVariablesFromSingularFragment:m.getVariablesFromSingularFragment,graphql:a.graphql,readInlineData:H,MutationTypes:c.MutationTypes,RangeOperations:c.RangeOperations,DefaultHandlerProvider:f,ConnectionHandler:n,MutationHandlers:o,VIEWER_ID:P.VIEWER_ID,VIEWER_TYPE:P.VIEWER_TYPE,applyOptimisticMutation:T,commitLocalUpdate:A,commitMutation:N,fetchQuery:x,isRelayModernEnvironment:q,requestSubscription:Q,ConnectionInterface:i,PreloadableQueryRegistry:s,RelayProfiler:I,createPayloadFor3DField:F,RelayConcreteNode:u,RelayError:p,RelayFeatureFlags:h,DEFAULT_HANDLE_KEY:d.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:k.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:k.FRAGMENT_OWNER_KEY,ID_KEY:k.ID_KEY,REF_KEY:k.REF_KEY,REFS_KEY:k.REFS_KEY,ROOT_ID:k.ROOT_ID,ROOT_TYPE:k.ROOT_TYPE,TYPENAME_KEY:k.TYPENAME_KEY,deepFreeze:L,generateClientID:B,generateUniqueClientID:X,getRelayHandleKey:U,isClientID:J,isPromise:K,isScalarAndEqual:Y,recycleNodesInto:G,stableCopy:z,getFragmentIdentifier:C,__internal:{OperationTracker:D,createRelayContext:M,getOperationVariables:l.getOperationVariables,fetchQuery:j.fetchQuery,fetchQueryDeduped:j.fetchQueryDeduped,getPromiseForActiveRequest:j.getPromiseForActiveRequest,getObservableForActiveRequest:j.getObservableForActiveRequest}}},function(e,t,r){"use strict";var n=new(function(){function e(){this._preloadableQueries=new Map,this._callbacks=new Map}var t=e.prototype;return t.set=function(e,t){this._preloadableQueries.set(e,t);var r=this._callbacks.get(e);null!=r&&r.forEach((function(e){try{e(t)}catch(e){setTimeout((function(){throw e}),0)}}))},t.get=function(e){return this._preloadableQueries.get(e)},t.onLoad=function(e,t){var r,n=null!==(r=this._callbacks.get(e))&&void 0!==r?r:new Set;n.add(t);return this._callbacks.set(e,n),{dispose:function(){n.delete(t)}}},t.clear=function(){this._preloadableQueries.clear()},e}());e.exports=n},function(e,t,r){"use strict";(function(t){var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var a=r(29),o=r(8),s=r(48),u=r(11),l=r(32),c=r(51),d=r(15),f=r(36),p=r(55),h=(r(0),function(){function e(e){var r,n,i,s,u,d,p=this;this.configName=e.configName;var h=e.handlerProvider?e.handlerProvider:a;this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var v=e.operationLoader;this.__log=null!==(r=e.log)&&void 0!==r?r:_,this._defaultRenderPolicy=(null!==(n=e.UNSTABLE_defaultRenderPolicy)&&void 0!==n?n:!0===o.ENABLE_PARTIAL_RENDERING_DEFAULT)?"partial":"full",this._operationLoader=v,this._operationExecutions=new Map,this._network=e.network,this._getDataID=null!==(i=e.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==i?i:f,this._publishQueue=new c(e.store,h,this._getDataID),this._scheduler=null!==(s=e.scheduler)&&void 0!==s?s:null,this._store=e.store,this.options=e.options,this._isServer=null!==(u=e.isServer)&&void 0!==u&&u,this.__setNet=function(e){return p._network=e};var g=void 0!==t?t:"undefined"!=typeof window?window:void 0,m=g&&g.__RELAY_DEVTOOLS_HOOK__;m&&m.registerEnvironment(this),this._missingFieldHandlers=e.missingFieldHandlers,this._operationTracker=null!==(d=e.operationTracker)&&void 0!==d?d:new l}var r=e.prototype;return r.getStore=function(){return this._store},r.getNetwork=function(){return this._network},r.getOperationTracker=function(){return this._operationTracker},r.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},r.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},r.applyUpdate=function(e){var t=this;return this._scheduleUpdates((function(){t._publishQueue.applyUpdate(e),t._publishQueue.run()})),{dispose:function(){t._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))}}},r.revertUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))},r.replaceUpdate=function(e,t){var r=this;this._scheduleUpdates((function(){r._publishQueue.revertUpdate(e),r._publishQueue.applyUpdate(t),r._publishQueue.run()}))},r.applyMutation=function(e){var t=this,r=u.create((function(r){var n=u.create((function(e){})),i=s.execute({operation:e.operation,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:e,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:r,source:n,store:t._store,updater:null,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return i.cancel()}})).subscribe({});return{dispose:function(){return r.unsubscribe()}}},r.check=function(e){return null==this._missingFieldHandlers||0===this._missingFieldHandlers.length?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},r.commitPayload=function(e,t){var r=this;u.create((function(n){var i=s.execute({operation:e,operationExecutions:r._operationExecutions,operationLoader:r._operationLoader,optimisticConfig:null,publishQueue:r._publishQueue,scheduler:r._scheduler,sink:n,source:u.from({data:t}),store:r._store,updater:null,operationTracker:r._operationTracker,getDataID:r._getDataID,isClientPayload:!0,treatMissingFieldsAsNull:r._treatMissingFieldsAsNull});return function(){return i.cancel()}})).subscribe({})},r.commitUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.commitUpdate(e),t._publishQueue.run()}))},r.lookup=function(e){return this._store.lookup(e)},r.subscribe=function(e,t){return this._store.subscribe(e,t)},r.retain=function(e){return this._store.retain(e)},r.isServer=function(){return this._isServer},r._checkSelectorAndHandleMissingFields=function(e,t){var r=this,n=d.create(),i=this._store.check(e,{target:n,handlers:t});return n.size()>0&&this._scheduleUpdates((function(){r._publishQueue.commitSource(n),r._publishQueue.run()})),i},r._scheduleUpdates=function(e){var t=this._scheduler;null!=t?t.schedule(e):e()},r.execute=function(e){var t=this,r=e.operation,n=e.cacheConfig,i=e.updater,a=this.__createLogObserver(r.request.node.params,r.request.variables),o=a[0],l=a[1];return u.create((function(e){var a=t._network.execute(r.request.node.params,r.request.variables,n||{},null,l).do(o),u=s.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:a,store:t._store,updater:i,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return u.cancel()}}))},r.executeMutation=function(e){var t=this,r=e.cacheConfig,a=e.operation,o=e.optimisticResponse,l=e.optimisticUpdater,c=e.updater,d=e.uploadables,f=this.__createLogObserver(a.request.node.params,a.request.variables),p=f[0],h=f[1];return u.create((function(e){var u;(o||l)&&(u={operation:a,response:o,updater:l});var f=t._network.execute(a.request.node.params,a.request.variables,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{force:!0}),d,h).do(p),_=s.execute({operation:a,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:u,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:f,store:t._store,updater:c,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return _.cancel()}}))},r.executeWithSource=function(e){var t=this,r=e.operation,n=e.source;return u.create((function(e){var i=s.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:n,store:t._store,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return i.cancel()}}))},r.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},r.__createLogObserver=function(e,t){var r=p(),n=this.__log;return[{start:function(i){n({name:"execute.start",transactionID:r,params:e,variables:t})},next:function(e){n({name:"execute.next",transactionID:r,response:e})},error:function(e){n({name:"execute.error",transactionID:r,error:e})},complete:function(){n({name:"execute.complete",transactionID:r})},unsubscribe:function(){n({name:"execute.unsubscribe",transactionID:r})}},function(e){n({name:"execute.info",transactionID:r,info:e})}]},e}());function _(){}h.prototype["@@RelayModernEnvironment"]=!0,e.exports=h}).call(this,r(47))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(3),i=n(r(4)),a=n(r(18));function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,a=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=r(30),c=r(7),d=r(11),f=r(15),p=r(50),h=r(0),_=r(10),v=(r(2),r(5).generateClientID),g=r(12).createNormalizationSelector,m=r(1),b=m.ROOT_TYPE,y=m.TYPENAME_KEY,E=m.getStorageKey;var D=function(){function e(e){var t=this,r=e.operation,n=e.operationExecutions,i=e.operationLoader,a=e.optimisticConfig,o=e.publishQueue,s=e.scheduler,u=e.sink,l=e.source,c=e.store,d=e.updater,f=e.operationTracker,p=e.treatMissingFieldsAsNull,h=e.getDataID,_=e.isClientPayload;this._getDataID=h,this._treatMissingFieldsAsNull=p,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._nextSubscriptionId=0,this._operation=r,this._operationExecutions=n,this._operationLoader=i,this._operationTracker=f,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._publishQueue=o,this._scheduler=s,this._sink=u,this._source=new Map,this._state="started",this._store=c,this._subscriptions=new Map,this._updater=d,this._isClientPayload=!0===_;var v=this._nextSubscriptionId++;l.subscribe({complete:function(){return t._complete(v)},error:function(e){return t._error(e)},next:function(e){try{t._next(v,e)}catch(e){u.error(e)}},start:function(e){return t._start(v,e)}}),null!=a&&this._processOptimisticResponse(null!=a.response?{data:a.response}:null,a.updater,!1)}var t=e.prototype;return t.cancel=function(){var e=this;if("completed"!==this._state){this._state="completed",this._operationExecutions.delete(this._operation.request.identifier),0!==this._subscriptions.size&&(this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._subscriptions.clear());var t=this._optimisticUpdates;null!==t&&(this._optimisticUpdates=null,t.forEach((function(t){return e._publishQueue.revertUpdate(t)})),this._publishQueue.run()),this._incrementalResults.clear(),this._completeOperationTracker()}},t._updateActiveState=function(){var e;switch(this._state){case"started":case"loading_incremental":e="active";break;case"completed":e="inactive";break;case"loading_final":e=this._pendingModulePayloadsCount>0?"active":"inactive";break;default:this._state,h(!1)}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;d.create((function(t){var n=r.schedule((function(){try{e(),t.complete()}catch(e){t.error(e)}}));return function(){return r.cancel(n)}})).subscribe({complete:function(){return t._complete(n)},error:function(e){return t._error(e)},start:function(e){return t._start(n,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete())},t._error=function(e){this.cancel(),this._sink.error(e)},t._start=function(e,t){this._subscriptions.set(e,t),this._updateActiveState()},t._next=function(e,t){var r=this;this._schedule((function(){r._handleNext(t),r._maybeCompleteSubscriptionOperationTracking()}))},t._handleErrorResponse=function(e){var t=this,r=[];return e.forEach((function(e){if(null!==e.data||null==e.extensions||e.hasOwnProperty("errors")){if(null==e.data){var n=e.hasOwnProperty("errors")&&null!=e.errors?e.errors:null,i=n?n.map((function(e){return e.message})).join("\n"):"(No errors)",a=l.create("RelayNetwork","No data returned for operation `"+t._operation.request.node.params.name+"`, got error(s):\n"+i+"\n\nSee the error `source` property for more information.");throw a.source={errors:n,operation:t._operation.request.node,variables:t._operation.request.variables},a.stack,a}var o=e;r.push(o)}})),r},t._handleOptimisticResponses=function(e){var t;if(e.length>1)return e.some((function(e){var t;return!0===(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic)}))&&h(!1),!1;var r=e[0],n=!0===(null===(t=r.extensions)||void 0===t?void 0:t.isOptimistic);return n&&"started"!==this._state&&h(!1),!!n&&(this._processOptimisticResponse(r,null,this._treatMissingFieldsAsNull),this._sink.next(r),!0)},t._handleNext=function(e){if("completed"!==this._state){var t=Array.isArray(e)?e:[e],r=this._handleErrorResponse(t);if(0===r.length)return t.some((function(e){var t;return!0===(null===(t=e.extensions)||void 0===t?void 0:t.is_final)}))&&(this._state="loading_final",this._updateActiveState(),this._incrementalPayloadsPending=!1),void this._sink.next(e);if(!this._handleOptimisticResponses(r)){var n=function(e){var t=[],r=[];return e.forEach((function(e){if(null!=e.path||null!=e.label){var n=e.label,i=e.path;null!=n&&null!=i||h(!1),r.push({label:n,path:i,response:e})}else t.push(e)})),[t,r]}(r),i=n[0],a=n[1];if(i.length>0){var o=this._processResponses(i),s=this._publishQueue.run(this._operation);this._updateOperationTracker(s),this._processPayloadFollowups(o)}if(a.length>0){var u=this._processIncrementalResponses(a),l=this._publishQueue.run();this._updateOperationTracker(l),this._processPayloadFollowups(u)}this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,r){var n=this;if(null!==this._optimisticUpdates&&h(!1),null!=e||null!=t){var i=[];if(e){var a=I(e,this._operation.root,b,{getDataID:this._getDataID,path:[],treatMissingFieldsAsNull:r});S(a),i.push({operation:this._operation,payload:a,updater:t}),this._processOptimisticFollowups(a,i)}else t&&i.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,moduleImportPayloads:null,source:f.create(),isFinal:!1},updater:t});this._optimisticUpdates=i,i.forEach((function(e){return n._publishQueue.applyUpdate(e)})),this._publishQueue.run()}},t._processOptimisticFollowups=function(e,t){if(e.moduleImportPayloads&&e.moduleImportPayloads.length){var r=e.moduleImportPayloads,n=this._operationLoader;n||h(!1);var i,o=s(r);try{for(o.s();!(i=o.n()).done;){var u=i.value,l=n.get(u.operationReference);if(null==l)this._processAsyncOptimisticModuleImport(n,u);else{var c=this._processOptimisticModuleImport(l,u);t.push.apply(t,(0,a.default)(c))}}}catch(e){o.e(e)}finally{o.f()}}},t._normalizeModuleImport=function(e,t){var r=g(t,e.dataID,e.variables);return I({data:e.data},r,e.typeName,{getDataID:this._getDataID,path:e.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull})},t._processOptimisticModuleImport=function(e,t){var r=[],n=this._normalizeModuleImport(t,e);return S(n),r.push({operation:this._operation,payload:n,updater:null}),this._processOptimisticFollowups(n,r),r},t._processAsyncOptimisticModuleImport=function(e,t){var r=this;e.load(t.operationReference).then((function(e){if(null!=e&&"started"===r._state){var n,i=r._processOptimisticModuleImport(e,t);if(i.forEach((function(e){return r._publishQueue.applyUpdate(e)})),null==r._optimisticUpdates);else(n=r._optimisticUpdates).push.apply(n,(0,a.default)(i)),r._publishQueue.run()}}))},t._processResponses=function(e){var t=this;return null!==this._optimisticUpdates&&(this._optimisticUpdates.forEach((function(e){return t._publishQueue.revertUpdate(e)})),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),e.map((function(e){var r=I(e,t._operation.root,b,{getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,path:[]});return t._publishQueue.commitPayload(t._operation,r,t._updater),r}))},t._processPayloadFollowups=function(e){var t=this;"completed"!==this._state&&e.forEach((function(e){var r=e.incrementalPlaceholders,n=e.moduleImportPayloads,i=e.isFinal;if(t._state=i?"loading_final":"loading_incremental",t._updateActiveState(),i&&(t._incrementalPayloadsPending=!1),n&&0!==n.length){var a=t._operationLoader;a||h(!1),n.forEach((function(e){t._processModuleImportPayload(e,a)}))}if(r&&0!==r.length&&(t._incrementalPayloadsPending="loading_final"!==t._state,r.forEach((function(r){t._processIncrementalPlaceholder(e,r)})),t._isClientPayload||"loading_final"===t._state)){var o=[];if(r.forEach((function(e){"defer"===e.kind&&o.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))})),o.length>0){var s=t._publishQueue.run();t._updateOperationTracker(s),t._processPayloadFollowups(o)}}}))},t._maybeCompleteSubscriptionOperationTracking=function(){"subscription"===this._operation.request.node.params.operationKind&&0===this._pendingModulePayloadsCount&&!1===this._incrementalPayloadsPending&&this._completeOperationTracker()},t._processModuleImportPayload=function(e,t){var r=this,n=t.get(e.operationReference);if(null!=n)this._handleModuleImportPayload(e,n),this._maybeCompleteSubscriptionOperationTracking();else{var i=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var a=function(){r._pendingModulePayloadsCount--,r._maybeCompleteSubscriptionOperationTracking()};d.from(new Promise((function(r,n){t.load(e.operationReference).then(r,n)}))).map((function(t){null!=t&&r._schedule((function(){r._handleModuleImportPayload(e,t)}))})).subscribe({complete:function(){r._complete(i),a()},error:function(e){r._error(e),a()},start:function(e){return r._start(i,e)}})}},t._handleModuleImportPayload=function(e,t){var r=this._normalizeModuleImport(e,t);this._publishQueue.commitPayload(this._operation,r);var n=this._publishQueue.run();this._updateOperationTracker(n),this._processPayloadFollowups([r])},t._processIncrementalPlaceholder=function(e,t){var r,n=t.label,i=t.path.map(String).join("."),a=this._incrementalResults.get(n);null==a&&(a=new Map,this._incrementalResults.set(n,a));var o,s=a.get(i),u=null!=s&&"response"===s.kind?s.responses:null;a.set(i,{kind:"placeholder",placeholder:t}),"stream"===t.kind?o=t.parentID:"defer"===t.kind?o=t.selector.dataID:h(!1);var l,d,f=e.source.get(o),p=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter((function(e){var t=v(e.dataID,e.fieldKey);return e.dataID===o||t===o}));null==f&&h(!1);var g=this._source.get(o);if(null!=g){l=c.update(g.record,f);var m=new Map,b=function(e){var t,r,n=(t=e,null!==(r=JSON.stringify(_(t)))&&void 0!==r?r:"");m.set(n,e)};g.fieldPayloads.forEach(b),p.forEach(b),d=Array.from(m.values())}else l=f,d=p;if(this._source.set(o,{record:l,fieldPayloads:d}),null!=u){var y=this._processIncrementalResponses(u),E=this._publishQueue.run();this._updateOperationTracker(E),this._processPayloadFollowups(y)}},t._processIncrementalResponses=function(e){var t=this,r=[];return e.forEach((function(e){var n=e.label,i=e.path,a=e.response,o=t._incrementalResults.get(n);if(null==o&&(o=new Map,t._incrementalResults.set(n,o)),-1!==n.indexOf("$defer$")){var s=i.map(String).join("."),u=o.get(s);if(null==u)return u={kind:"response",responses:[e]},void o.set(s,u);if("response"===u.kind)return void u.responses.push(e);var l=u.placeholder;"defer"!==l.kind&&h(!1),r.push(t._processDeferResponse(n,i,l,a))}else{var c=i.slice(0,-2).map(String).join("."),d=o.get(c);if(null==d)return d={kind:"response",responses:[e]},void o.set(c,d);if("response"===d.kind)return void d.responses.push(e);var f=d.placeholder;"stream"!==f.kind&&h(!1),r.push(t._processStreamResponse(n,i,f,a))}})),r},t._processDeferResponse=function(e,t,r,n){var i=r.selector.dataID,a=I(n,r.selector,r.typeName,{getDataID:this._getDataID,path:r.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull});this._publishQueue.commitPayload(this._operation,a);var o=this._source.get(i);null==o&&h(!1);var s=o.fieldPayloads;if(0!==s.length){var u,l={errors:null,fieldPayloads:s,incrementalPlaceholders:null,moduleImportPayloads:null,source:f.create(),isFinal:!0===(null===(u=n.extensions)||void 0===u?void 0:u.is_final)};this._publishQueue.commitPayload(this._operation,l)}return a},t._processStreamResponse=function(e,t,r,n){var i=r.parentID,o=r.node,s=r.variables,u=o.selections[0];(null==u||"LinkedField"!==u.kind||!0!==u.plural)&&h(!1);var l=this._normalizeStreamItem(n,i,u,s,t,r.path),c=l.fieldPayloads,d=l.itemID,p=l.itemIndex,_=l.prevIDs,v=l.relayPayload,g=l.storageKey;if(this._publishQueue.commitPayload(this._operation,v,(function(e){var t=e.get(i);if(null!=t){var r=t.getLinkedRecords(g);if(null!=r&&r.length===_.length&&!r.some((function(e,t){return _[t]!==(e&&e.getDataID())}))){var n=(0,a.default)(r);n[p]=e.get(d),t.setLinkedRecords(n,g)}}})),0!==c.length){var m={errors:null,fieldPayloads:c,incrementalPlaceholders:null,moduleImportPayloads:null,source:f.create(),isFinal:!1};this._publishQueue.commitPayload(this._operation,m)}return v},t._normalizeStreamItem=function(e,t,r,n,i,o){var s,u,l,d=e.data;"object"!=typeof d&&h(!1);var f=null!==(s=r.alias)&&void 0!==s?s:r.name,p=E(r,n),_=this._source.get(t);null==_&&h(!1);var m=_.record,b=_.fieldPayloads,D=c.getLinkedRecordIDs(m,p);null==D&&h(!1);var S=i[i.length-1],O=parseInt(S,10);O===S&&O>=0||h(!1);var R=null!==(u=r.concreteType)&&void 0!==u?u:d[y];"string"!=typeof R&&h(!1);var k=(null!==(l=this._getDataID(d,R))&&void 0!==l?l:D&&D[O])||v(t,p,O);"string"!=typeof k&&h(!1);var P=g(r,k,n),T=c.clone(m),A=(0,a.default)(D);return A[O]=k,c.setLinkedRecordIDs(T,p,A),this._source.set(t,{record:T,fieldPayloads:b}),{fieldPayloads:b,itemID:k,itemIndex:O,prevIDs:D,relayPayload:I(e,P,R,{getDataID:this._getDataID,path:[].concat((0,a.default)(o),[f,String(O)]),treatMissingFieldsAsNull:this._treatMissingFieldsAsNull}),storageKey:p}},t._updateOperationTracker=function(e){null!=this._operationTracker&&null!=e&&e.length>0&&this._operationTracker.update(this._operation.request,new Set(e))},t._completeOperationTracker=function(){null!=this._operationTracker&&this._operationTracker.complete(this._operation.request)},e}();function I(e,t,r,n){var a,s=e.data,u=e.errors,l=f.create(),d=c.create(t.dataID,r);return l.set(t.dataID,d),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},p.normalize(l,t,s,n),{errors:u,isFinal:!0===(null===(a=e.extensions)||void 0===a?void 0:a.is_final)})}function S(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&h(!1)}e.exports={execute:function(e){return new D(e)}}},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(20),o=a.EXISTENT,s=a.NONEXISTENT,u=a.UNKNOWN,l=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach((function(r){t._records.set(r,e[r])}))}var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(e){this._records.set(e,null)},t.get=function(e){return this._records.get(e)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(e){return this._records.has(e)?null==this._records.get(e)?s:o:u},t.has=function(e){return this._records.has(e)},t.remove=function(e){this._records.delete(e)},t.set=function(e,t){this._records.set(e,t)},t.size=function(){return this._records.size},t.toJSON=function(){var e,t={},r=n(this._records);try{for(r.s();!(e=r.n()).done;){var i=e.value,a=i[0],o=i[1];t[a]=o}}catch(e){r.e(e)}finally{r.f()}return t},e}();e.exports=l},function(e,t,r){"use strict";var n=r(3)(r(18)),i=r(8),a=r(7),o=r(24),s=r(0),u=(r(2),r(6)),l=u.CONDITION,c=u.CLIENT_EXTENSION,d=u.DEFER,f=u.INLINE_FRAGMENT,p=u.LINKED_FIELD,h=u.LINKED_HANDLE,_=u.MODULE_IMPORT,v=u.SCALAR_FIELD,g=u.SCALAR_HANDLE,m=u.STREAM,b=u.TYPE_DISCRIMINATOR,y=r(5),E=y.generateClientID,D=(y.isClientID,r(12).createNormalizationSelector),I=r(1),S=I.getArgumentValues,O=I.getHandleStorageKey,R=I.getModuleComponentKey,k=I.getModuleOperationKey,P=I.getStorageKey,T=I.TYPENAME_KEY,A=(I.ROOT_ID,r(21)),N=A.generateTypeID,w=A.TYPE_SCHEMA_TYPE;var F=function(){function e(e,t,r){this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=r.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._moduleImportPayloads=[],this._path=r.path?(0,n.default)(r.path):[],this._recordSource=e,this._variables=t}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var n=this._recordSource.get(t);return n||s(!1),this._traverseSelections(e,n,r),{errors:null,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,moduleImportPayloads:this._moduleImportPayloads,source:this._recordSource,isFinal:!1}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||s(!1),this._variables[e]},t._getRecordType=function(e){var t=e[T];return null==t&&s(!1),t},t._traverseSelections=function(e,t,r){for(var n=0;n<e.selections.length;n++){var o=e.selections[n];switch(o.kind){case v:case p:this._normalizeField(e,o,t,r);break;case l:this._getVariableValue(o.condition)===o.passingValue&&this._traverseSelections(o,t,r);break;case f:var u=o.abstractKey;if(null==u)a.getType(t)===o.type&&this._traverseSelections(o,t,r);else if(i.ENABLE_PRECISE_TYPE_REFINEMENT){var y=r.hasOwnProperty(u),E=a.getType(t),D=N(E),I=this._recordSource.get(D);null==I&&(I=a.create(D,w),this._recordSource.set(D,I)),a.setValue(I,u,y),y&&this._traverseSelections(o,t,r)}else{var R=r.hasOwnProperty(u),k=this._isUnmatchedAbstractType;this._isUnmatchedAbstractType=this._isUnmatchedAbstractType||!R,this._traverseSelections(o,t,r),this._isUnmatchedAbstractType=k}break;case b:if(i.ENABLE_PRECISE_TYPE_REFINEMENT){var T=o.abstractKey,A=r.hasOwnProperty(T),F=a.getType(t),M=N(F),L=this._recordSource.get(M);null==L&&(L=a.create(M,w),this._recordSource.set(M,L)),a.setValue(L,T,A)}break;case h:case g:var x=o.args?S(o.args,this._variables):{},j=P(o,this._variables),C=O(o,this._variables);this._handleFieldPayloads.push({args:x,dataID:a.getDataID(t),fieldKey:j,handle:o.handle,handleKey:C,handleArgs:o.handleArgs?S(o.handleArgs,this._variables):{}});break;case _:this._normalizeModuleImport(e,o,t,r);break;case d:this._normalizeDefer(o,t,r);break;case m:this._normalizeStream(o,t,r);break;case c:var U=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(o,t,r),this._isClientExtension=U;break;default:s(!1)}}},t._normalizeDefer=function(e,t,r){!1===(null===e.if||this._getVariableValue(e.if))?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,n.default)(this._path),selector:D(e,a.getDataID(t),this._variables),typeName:a.getType(t)})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r),!0===(null===e.if||this._getVariableValue(e.if))&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,n.default)(this._path),parentID:a.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,i){"object"==typeof i&&i||s(!1);var o=a.getType(r),u=R(t.documentName),l=i[u];a.setValue(r,u,null!=l?l:null);var c=k(t.documentName),d=i[c];a.setValue(r,c,null!=d?d:null),null!=d&&this._moduleImportPayloads.push({data:i,dataID:a.getDataID(r),operationReference:d,path:(0,n.default)(this._path),typeName:o,variables:this._variables})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||s(!1);var i=t.alias||t.name,o=P(t,this._variables),u=n[i];if(null==u){if(void 0===u){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void 0}return t.kind,void a.setValue(r,o,null)}t.kind===v?(this._validateConflictingFieldsWithIdenticalId(r,o,u),a.setValue(r,o,u)):t.kind===p?(this._path.push(i),t.plural?this._normalizePluralLink(t,r,o,u):this._normalizeLink(t,r,o,u),this._path.pop()):s(!1)},t._normalizeLink=function(e,t,r,n){var i;"object"==typeof n&&n||s(!1);var o=this._getDataId(n,null!==(i=e.concreteType)&&void 0!==i?i:this._getRecordType(n))||a.getLinkedRecordID(t,r)||E(a.getDataID(t),r);"string"!=typeof o&&s(!1),a.setLinkedRecordID(t,r,o);var u=this._recordSource.get(o);if(u)0;else{var l=e.concreteType||this._getRecordType(n);u=a.create(o,l),this._recordSource.set(o,u)}this._traverseSelections(e,u,n)},t._normalizePluralLink=function(e,t,r,n){var i=this;Array.isArray(n)||s(!1);var o=a.getLinkedRecordIDs(t,r),u=[];n.forEach((function(n,l){var c;if(null!=n){i._path.push(String(l)),"object"!=typeof n&&s(!1);var d=i._getDataId(n,null!==(c=e.concreteType)&&void 0!==c?c:i._getRecordType(n))||o&&o[l]||E(a.getDataID(t),r,l);"string"!=typeof d&&s(!1),u.push(d);var f=i._recordSource.get(d);if(f)0;else{var p=e.concreteType||i._getRecordType(n);f=a.create(d,p),i._recordSource.set(d,f)}0,i._traverseSelections(e,f,n),i._path.pop()}else u.push(n)})),a.setLinkedRecordIDs(t,r,u)},t._validateRecordType=function(e,t,r){var n;null!==(n=t.concreteType)&&void 0!==n||this._getRecordType(r),a.getDataID(e)},t._validateConflictingFieldsWithIdenticalId=function(e,t,r){},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,r,n){0},e}(),M=o.instrument("RelayResponseNormalizer.normalize",(function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;return new F(e,o,n).normalizeResponse(a,i,r)}));e.exports={normalize:M}},function(e,t,r){"use strict";var n=r(52),i=r(33),a=r(15),o=r(34),s=r(35),u=r(54),l=r(0),c=(r(2),function(){function e(e,t,r){this._hasStoreSnapshot=!1,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=r}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&l(!1),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:e,payload:t,updater:r})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:e})},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(e){this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var t=this._commitData();return(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size)&&(this._hasStoreSnapshot||(this._store.snapshot(),this._hasStoreSnapshot=!0),this._applyUpdates()),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify(e,t)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,n=e.operation,i=e.updater,a=r.source,c=r.fieldPayloads,f=new o(this._store.getSource(),a),p=new s(f,this._getDataID);if(c&&c.length&&c.forEach((function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||l(!1),r.update(p,e)})),i){var h=n.fragment;null==h&&l(!1),i(new u(f,p,h),d(a,h))}var _=p.getIDsMarkedForInvalidation();return this._store.publish(a,_),p.isStoreMarkedForInvalidation()},t._commitData=function(){var e=this;if(!this._pendingData.size)return!1;var t=!1;return this._pendingData.forEach((function(r){if("payload"===r.kind){var i=e._publishSourceFromPayload(r);t=t||i}else if("source"===r.kind){var u=r.source;e._store.publish(u)}else{var l=r.updater,c=a.create(),d=new o(e._store.getSource(),c),f=new s(d,e._getDataID);n.applyWithGuard(l,null,[f],null,"RelayPublishQueue:commitData"),t=t||f.isStoreMarkedForInvalidation();var p=f.getIDsMarkedForInvalidation();e._store.publish(c,p)}})),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=a.create(),r=new o(this._store.getSource(),t),i=new s(r,this._getDataID,this._handlerProvider),l=function(e){if(e.storeUpdater){var t=e.storeUpdater;n.applyWithGuard(t,null,[i],null,"RelayPublishQueue:applyUpdates")}else{var a,o=e.operation,s=e.payload,l=e.updater,c=s.source,f=s.fieldPayloads,p=new u(r,i,o.fragment);c&&(i.publishSource(c,f),a=d(c,o.fragment)),l&&n.applyWithGuard(l,null,[p,a],null,"RelayPublishQueue:applyUpdates")}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(l),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach((function(t){l(t),e._appliedOptimisticUpdates.add(t)})),this._pendingOptimisticUpdates.clear()),this._store.publish(t)},e}());function d(e,t){return i.read(e,t).data}e.exports=c},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(0),i=r(5).generateClientID,a=r(1).getStableStorageKey,o=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&n(!1),e},t.getValue=function(e,t){var r=a(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){s(e)||n(!1);var i=a(t,r);return this._mutator.setValue(this._dataID,i,e),this},t.getLinkedRecord=function(e,t){var r=a(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,i){t instanceof e||n(!1);var o=a(r,i),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var o,s=a(e,r),u=i(this.getDataID(),s);n=null!==(o=this._source.get(u))&&void 0!==o?o:this._source.create(u,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=a(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==i?i:i.map((function(e){return null!=e?r._source.get(e):e}))},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||n(!1);var i=a(t,r),o=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,i,o),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function s(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(s)}e.exports=o},function(e,t,r){"use strict";var n=r(0),i=r(1),a=i.getStorageKey,o=i.ROOT_TYPE,s=function(){function e(e,t,r){this.__mutator=e,this.__recordSource=t,this._readSelector=r}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t.getOperationRoot=function(){var e=this.__recordSource.get(this._readSelector.dataID);return e||(e=this.__recordSource.create(this._readSelector.dataID,o)),e},t._getRootField=function(e,t,r){var i=e.node.selections.find((function(e){return"LinkedField"===e.kind&&e.name===t}));return i&&"LinkedField"===i.kind||n(!1),i.plural!==r&&n(!1),i},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),r=a(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=a(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(r)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},e}();e.exports=s},function(e,t,r){"use strict";var n=1e5;e.exports=function(){return n++}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o=r(57),s=r(7),u=r(59),l=r(24),c=r(33),d=r(60),f=r(1),p=(r(19),r(36)),h=r(61),_=r(0),v=r(40),g=r(62),m=r(1),b=m.ROOT_ID,y=m.ROOT_TYPE,E=function(){function e(e,t){var r,i,a,o,u,l=this;(0,n.default)(this,"_gcStep",(function(){l._gcRun&&(l._gcRun.next().done?l._gcRun=null:l._gcScheduler(l._gcStep))})),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(r=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==r?r:0,this._gcRun=null,this._gcScheduler=null!==(i=null==t?void 0:t.gcScheduler)&&void 0!==i?i:g,this._getDataID=null!==(a=null==t?void 0:t.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==a?a:p,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(o=null==t?void 0:t.log)&&void 0!==o?o:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!==(u=null==t?void 0:t.operationLoader)&&void 0!==u?u:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._subscriptions=new Set,this._updatedRecordIDs={},function(e){if(!e.has(b)){var t=s.create(b,y);e.set(b,t)}}(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.check=function(e,t){var r,n,i,a=e.root,s=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource,u=this._globalInvalidationEpoch,l=this._roots.get(e.request.identifier),c=null!=l?l.epoch:null;if(null!=u&&(null==c||c<=u))return{status:"stale"};var d=null!==(n=null==t?void 0:t.target)&&void 0!==n?n:s,f=null!==(i=null==t?void 0:t.handlers)&&void 0!==i?i:[];return function(e,t,r,n){var i=e.mostRecentlyInvalidatedAt,a=e.status;if("number"==typeof i&&(null==t||i>t))return{status:"stale"};if("missing"===a)return{status:"missing"};if(null!=r&&null!=n){if(r<=Date.now()-n)return{status:"stale"}}return{status:"available",fetchTime:null!=r?r:null}}(o.check(s,d,a,f,this._operationLoader,this._getDataID),c,null==l?void 0:l.fetchTime,this._queryCacheExpirationTime)},t.retain=function(e){var t=this,r=e.request.identifier,n=!1,i=this._roots.get(r);return null!=i?(0===i.refCount&&(this._releaseBuffer=this._releaseBuffer.filter((function(e){return e!==r}))),i.refCount+=1):this._roots.set(r,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:function(){if(!n){n=!0;var e=t._roots.get(r);if(null!=e&&(e.refCount--,0===e.refCount)){var i=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=i&&e.fetchTime<=Date.now()-i)t._roots.delete(r),t._scheduleGC();else if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var a=t._releaseBuffer.shift();t._roots.delete(a),t._scheduleGC()}}}}}},t.lookup=function(e){var t=this.getSource();return c.read(t,e)},t.notify=function(e,t){var r=this,n=this.__log;null!=n&&n({name:"store.notify.start"}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch);var i=this.getSource(),a=[];if(this._subscriptions.forEach((function(e){var t=r._updateSubscription(i,e);null!=t&&a.push(t)})),this._invalidationSubscriptions.forEach((function(e){r._updateInvalidationSubscription(e,!0===t)})),null!=n&&n({name:"store.notify.complete",updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs={},this._invalidatedRecordIDs.clear(),null!=e){var o=e.request.identifier,s=this._roots.get(o);if(null!=s)s.epoch=this._currentWriteEpoch,s.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var u={operation:e,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(o),this._roots.set(o,u)}}return a},t.publish=function(e,t){var r,n=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource;!function(e,t,r,n,i,a){n&&n.forEach((function(n){var i,o=e.get(n),u=t.get(n);null!==u&&((i=null!=o?s.clone(o):null!=u?s.clone(u):null)&&(s.setValue(i,f.INVALIDATED_AT_KEY,r),a.add(n),e.set(n,i)))}));for(var o=t.getRecordIDs(),u=0;u<o.length;u++){var l=o[u],c=t.get(l),d=e.get(l);if(c&&d){var p=s.update(d,c);p!==d&&(i[l]=!0,e.set(l,p))}else null===c?(e.delete(l),null!==d&&(i[l]=!0)):c&&(e.set(l,c),i[l]=!0)}}(n,e,this._currentWriteEpoch+1,t,this._updatedRecordIDs,this._invalidatedRecordIDs);var i=this.__log;null!=i&&i({name:"store.publish",source:e,optimistic:n===this._optimisticSource})},t.subscribe=function(e,t){var r=this,n={backup:null,callback:t,snapshot:e,stale:!1};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.holdGC=function(){var e=this;this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e._scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t._updateSubscription=function(e,t){var r=t.backup,n=t.callback,i=t.snapshot,a=t.stale,o=h(i.seenRecords,this._updatedRecordIDs);if(a||o){var s=o||!r?c.read(e,i.selector):r;return s={data:v(i.data,s.data),isMissingData:s.isMissingData,seenRecords:s.seenRecords,selector:s.selector},t.snapshot=s,t.stale=!1,s.data!==i.data?(n(s),i.selector.owner):void 0}},t.lookupInvalidationState=function(e){var t=this,r=new Map;return e.forEach((function(e){var n,i=t.getSource().get(e);r.set(e,null!==(n=s.getInvalidationEpoch(i))&&void 0!==n?n:null)})),r.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:r}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,r=e.invalidations;if(t.get("global")!==r.get("global"))return!0;var n,a=i(e.dataIDs);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(t.get(o)!==r.get(o))return!0}}catch(e){a.e(e)}finally{a.f()}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,n={callback:t,invalidationState:e};return this._invalidationSubscriptions.add(n),{dispose:function(){r._invalidationSubscriptions.delete(n)}}},t._updateInvalidationSubscription=function(e,t){var r=this,n=e.callback,i=e.invalidationState.dataIDs;(t||i.some((function(e){return r._invalidatedRecordIDs.has(e)})))&&n()},t.snapshot=function(){var e=this;null!=this._optimisticSource&&_(!1);var t=this.__log;null!=t&&t({name:"store.snapshot"}),this._subscriptions.forEach((function(t){if(t.stale){var r=t.snapshot,n=c.read(e.getSource(),r.selector),i=v(r.data,n.data);n.data=i,t.backup=n}else t.backup=t.snapshot})),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=u.create(this.getSource())},t.restore=function(){null==this._optimisticSource&&_(!1);var e=this.__log;null!=e&&e({name:"store.restore"}),this._optimisticSource=null,this._shouldScheduleGC&&this._scheduleGC(),this._subscriptions.forEach((function(e){var t=e.backup;e.backup=null,t?(t.data!==e.snapshot.data&&(e.stale=!0),e.snapshot={data:e.snapshot.data,isMissingData:t.isMissingData,seenRecords:t.seenRecords,selector:t.selector}):e.stale=!0}))},t._scheduleGC=function(){this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(null==this._optimisticSource)for(var e=this._collect();!e.next().done;);},t._collect=function*(){e:for(;;){var e,t=this._currentWriteEpoch,r=new Set,n=i(this._roots.values());try{for(n.s();!(e=n.n()).done;){var a=e.value.operation.root;if(d.mark(this._recordSource,a,r,this._operationLoader),yield,t!==this._currentWriteEpoch)continue e}}catch(e){n.e(e)}finally{n.f()}var o=this.__log;if(null!=o&&o({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var s=this._recordSource.getRecordIDs(),u=0;u<s.length;u++){var l=s[u];r.has(l)||this._recordSource.remove(l)}return}},e}();l.instrumentMethods(E.prototype,{lookup:"RelayModernStore.prototype.lookup"}),e.exports=E},function(e,t,r){"use strict";function n(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(6),o=r(8),s=r(7),u=r(34),l=r(35),c=r(1),d=r(39),f=r(58),p=r(0),h=r(5).isClientID,_=r(20),v=_.EXISTENT,g=_.UNKNOWN,m=r(21).generateTypeID,b=a.CONDITION,y=a.CLIENT_EXTENSION,E=a.DEFER,D=a.FRAGMENT_SPREAD,I=a.INLINE_FRAGMENT,S=a.LINKED_FIELD,O=a.LINKED_HANDLE,R=a.MODULE_IMPORT,k=a.SCALAR_FIELD,P=a.SCALAR_HANDLE,T=a.STREAM,A=a.TYPE_DISCRIMINATOR,N=c.getModuleOperationKey,w=c.getStorageKey,F=c.getArgumentValues;var M=function(){function e(e,t,r,n,i,a){var o=new u(e,t);this._mostRecentlyInvalidatedAt=null,this._handlers=n,this._mutator=o,this._operationLoader=null!=i?i:null,this._recordSourceProxy=new l(o,a),this._recordWasMissing=!1,this._source=e,this._variables=r}var t=e.prototype;return t.check=function(e,t){return this._traverse(e,t),!0===this._recordWasMissing?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||p(!1),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?F(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!h(t)){var r,i=this._getDataForHandlers(e,t),a=i.args,o=i.record,s=n(this._handlers);try{for(s.s();!(r=s.n()).done;){var u=r.value;if("scalar"===u.kind){var l=u.handle(e,o,a,this._recordSourceProxy);if(void 0!==l)return l}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,i=this._getDataForHandlers(e,t),a=i.args,o=i.record,s=n(this._handlers);try{for(s.s();!(r=s.n()).done;){var u=r.value;if("linked"===u.kind){var l=u.handle(e,o,a,this._recordSourceProxy);if(void 0!==l&&(null===l||this._mutator.getStatus(l)===v))return l}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,i=this,a=this._getDataForHandlers(e,t),o=a.args,s=a.record,u=n(this._handlers);try{for(u.s();!(r=u.n()).done;){var l=r.value;if("pluralLinked"===l.kind){var c=l.handle(e,s,o,this._recordSourceProxy);if(null!=c){if(c.every((function(e){return null!=e&&i._mutator.getStatus(e)===v})))return c}else if(null===c)return null}}}catch(e){u.e(e)}finally{u.f()}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);if(r===g&&this._handleMissing(),r===v){var n=this._source.get(t),i=s.getInvalidationEpoch(n);null!=i&&(this._mostRecentlyInvalidatedAt=null!=this._mostRecentlyInvalidatedAt?Math.max(this._mostRecentlyInvalidatedAt,i):i),this._traverseSelections(e.selections,t)}},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case k:r._checkScalar(n,t);break;case S:n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case b:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case I:var i=n.abstractKey;if(null==i)r._mutator.getType(t)===n.type&&r._traverseSelections(n.selections,t);else if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var a=r._mutator.getType(t);null==a&&p(!1);var s=m(a),u=r._mutator.getValue(s,i);!0===u?r._traverseSelections(n.selections,t):null==u&&r._handleMissing()}else r._traverseSelections(n.selections,t);break;case O:var l=d(n,e,r._variables);l.plural?r._checkPluralLink(l,t):r._checkLink(l,t);break;case P:var c=f(n,e,r._variables);r._checkScalar(c,t);break;case R:r._checkModuleImport(n,t);break;case E:case T:r._traverseSelections(n.selections,t);break;case D:p(!1);break;case y:var h=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=h;break;case A:if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var _=n.abstractKey,v=r._mutator.getType(t);null==v&&p(!1);var g=m(v);null==r._mutator.getValue(g,_)&&r._handleMissing()}break;default:p(!1)}}))},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&p(!1);var n=N(e.documentName),i=this._mutator.getValue(t,n);if(null!=i){var a=r.get(i);null!=a?this._traverse(a,t):this._handleMissing()}else void 0===i&&this._handleMissing()},t._checkScalar=function(e,t){var r=w(e,this._variables),n=this._mutator.getValue(t,r);void 0===n&&void 0!==(n=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,n)},t._checkLink=function(e,t){var r=w(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);void 0===n&&(null!=(n=this._handleMissingLinkField(e,t))?this._mutator.setLinkedRecordID(t,r,n):null===n&&this._mutator.setValue(t,r,null)),null!=n&&this._traverse(e,n)},t._checkPluralLink=function(e,t){var r=this,n=w(e,this._variables),i=this._mutator.getLinkedRecordIDs(t,n);void 0===i&&(null!=(i=this._handleMissingPluralLinkField(e,t))?this._mutator.setLinkedRecordIDs(t,n,i):null===i&&this._mutator.setValue(t,n,null)),i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},e}();e.exports={check:function(e,t,r,n,i,a){var o=r.dataID,s=r.node,u=r.variables;return new M(e,t,u,n,i,a).check(s,o)}}},function(e,t,r){"use strict";var n=r(14),i=r(0),a=r(6).SCALAR_FIELD,o=r(1).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===a||i(!1);var u=o(e,r);return{kind:"ScalarField",alias:s.alias,name:u,storageKey:u,args:null}}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var a=r(15),o=Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),s=function(){function e(e){this._base=e,this._sink=a.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==o:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===o?void 0:t}return this._base.get(e)},t.getStatus=function(e){var t=this.get(e);return void 0===t?"UNKNOWN":null===t?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=a.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,o)},t.set=function(e,t){this._sink.set(e,t)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var e=this,t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this._base.toJSON());return this._sink.getRecordIDs().forEach((function(r){var n=e.get(r);void 0===n?delete t[r]:t[r]=n})),t},e}();e.exports={create:function(e){return new s(e)}}},function(e,t,r){"use strict";var n=r(6),i=r(8),a=r(7),o=r(1),s=r(39),u=r(0),l=r(21).generateTypeID,c=n.CONDITION,d=n.CLIENT_EXTENSION,f=n.DEFER,p=n.FRAGMENT_SPREAD,h=n.INLINE_FRAGMENT,_=n.LINKED_FIELD,v=n.MODULE_IMPORT,g=n.LINKED_HANDLE,m=n.SCALAR_FIELD,b=n.SCALAR_HANDLE,y=n.STREAM,E=n.TYPE_DISCRIMINATOR,D=o.getStorageKey,I=o.getModuleOperationKey;var S=function(){function e(e,t,r,n){this._operationLoader=null!=n?n:null,this._recordSource=e,this._references=r,this._variables=t}var t=e.prototype;return t.mark=function(e,t){this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||u(!1),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case _:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case c:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case h:if(null==n.abstractKey){var o=a.getType(t);null!=o&&o===n.type&&r._traverseSelections(n.selections,t)}else if(i.ENABLE_PRECISE_TYPE_REFINEMENT){var D=a.getType(t),I=l(D);r._references.add(I),r._traverseSelections(n.selections,t)}else r._traverseSelections(n.selections,t);break;case p:u(!1);case g:var S=s(n,e,r._variables);S.plural?r._traversePluralLink(S,t):r._traverseLink(S,t);break;case f:case y:r._traverseSelections(n.selections,t);break;case m:case b:break;case E:if(i.ENABLE_PRECISE_TYPE_REFINEMENT){var O=a.getType(t),R=l(O);r._references.add(R)}break;case v:r._traverseModuleImport(n,t);break;case d:r._traverseSelections(n.selections,t);break;default:u(!1)}}))},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null===r&&u(!1);var n=I(e.documentName),i=a.getValue(t,n);if(null!=i){var o=r.get(i);null!=o&&this._traverseSelections(o.selections,t)}},t._traverseLink=function(e,t){var r=D(e,this._variables),n=a.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=D(e,this._variables),i=a.getLinkedRecordIDs(t,n);null!=i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},e}();e.exports={mark:function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;new S(e,o,r,n).mark(a,i)}}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){for(var r in e)if(n.call(e,r)&&n.call(t,r))return!0;return!1}},function(e,t,r){"use strict";var n=Promise.resolve();function i(e){setTimeout((function(){throw e}),0)}e.exports=function(e){n.then(e).catch(i)}},function(e,t,r){"use strict";var n=r(0),i=r(64).convertFetch;e.exports={create:function(e,t){var r=i(e);return{execute:function(e,i,a,o,s){if("subscription"===e.operationKind)return t||n(!1),o&&n(!1),t(e,i,a);var u=a.poll;return null!=u?(o&&n(!1),r(e,i,{force:!0}).poll(u)):r(e,i,a,o,s)}}}}},function(e,t,r){"use strict";var n=r(11);e.exports={convertFetch:function(e){return function(t,r,i,a,o){var s=e(t,r,i,a,o);return s instanceof Error?n.create((function(e){return e.error(s)})):n.from(s)}}}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var o=r(0),s=r(10),u=function(){function e(e){var t=e.size,r=e.ttl;t>0||o(!1),r>0||o(!1),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,n=l(e,t);this._responses.forEach((function(e,t){var n,i;n=e.fetchTime,i=r._ttl,n+i>=Date.now()||r._responses.delete(t)}));var i=this._responses.get(n);return null!=i?a({},i.payload,{extensions:a({},i.payload.extensions,{cacheTimestamp:i.fetchTime})}):null},t.set=function(e,t,r){var n=Date.now(),i=l(e,t);if(this._responses.delete(i),this._responses.set(i,{fetchTime:n,payload:r}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function l(e,t){return JSON.stringify(s({queryID:e,variables:t}))}e.exports=u},function(e,t,r){"use strict";var n=r(17),i=r(0),a=r(25),o=r(9).getRequest,s=r(13).createOperationDescriptor;e.exports=function(e,t){a(e)||i(!1);var r=o(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");var u=t.optimisticUpdater,l=t.configs,c=t.optimisticResponse,d=t.variables,f=s(r,d);return l&&(u=n.convert(l,r,u).optimisticUpdater),e.applyMutation({operation:f,response:c,updater:u})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";var n=r(3)(r(18)),i=r(17),a=(r(8),r(0)),o=r(25),s=(r(69),r(2),r(9).getRequest),u=r(5).generateUniqueClientID,l=r(13).createOperationDescriptor;e.exports=function(e,t){o(e)||a(!1);var r=s(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");if("Request"!==r.kind)throw new Error("commitMutation: Expected mutation to be of type request");var c=t.optimisticResponse,d=t.optimisticUpdater,f=t.updater,p=t.configs,h=t.cacheConfig,_=t.onError,v=t.onUnsubscribe,g=t.variables,m=t.uploadables,b=l(r,g,u());if("function"==typeof c&&(c=c()),p){var y=i.convert(p,r,d,f);d=y.optimisticUpdater,f=y.updater}var E=[];return{dispose:e.executeMutation({cacheConfig:h,operation:b,optimisticResponse:c,optimisticUpdater:d,updater:f,uploadables:m}).subscribe({next:function(e){Array.isArray(e)?e.forEach((function(e){e.errors&&E.push.apply(E,(0,n.default)(e.errors))})):e.errors&&E.push.apply(E,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(b.fragment).data,0!==E.length?E:null)},error:_,unsubscribe:v}).unsubscribe}}},function(e,t,r){"use strict";r(3)(r(4));r(2);e.exports=function(){}},function(e,t,r){"use strict";var n=r(71);r(2);e.exports=function(e,t,r,i,a){return new n(e,r,i,a)}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var o=r(8),s=r(14),u=r(0),l=r(42),c=(r(2),r(43).getPromiseForActiveRequest),d=r(13).createRequestDescriptor,f=r(12),p=f.areEqualSelectors,h=f.createReaderSelector,_=f.getSelectorsFromObject,v=function(){function e(e,t,r,i){var a=this;(0,n.default)(this,"_onChange",(function(){a._stale=!0,"function"==typeof a._callback&&a._callback()})),this._callback=i,this._context=e,this._data={},this._fragments=t,this._props={},this._resolvers={},this._stale=!1,this.setProps(r)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&b(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],i=t[r];if(n){var o=n.resolve();(e||o!==i)&&((e=e||a({},t))[r]=o)}else{var s=this._props[r],u=void 0!==s?s:null;!e&&l(u,i)||((e=e||a({},t))[r]=u)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=_(this._fragments,e);for(var r in this._props={},t)if(t.hasOwnProperty(r)){var n=t[r],i=this._resolvers[r];null==n?(null!=i&&i.dispose(),i=null):"PluralReaderSelector"===n.kind?null==i?i=new m(this._context.environment,n,this._onChange):(i instanceof m||u(!1),i.setSelector(n)):null==i?i=new g(this._context.environment,n,this._onChange):(i instanceof g||u(!1),i.setSelector(n)),this._props[r]=e[r],this._resolvers[r]=i}this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r];n&&n.setVariables(e,t)}this._stale=!0},e}(),g=function(){function e(e,t,r){var i=this;(0,n.default)(this,"_onChange",(function(e){i._data=e.data,i._isMissingData=e.isMissingData,i._callback()}));var a=e.lookup(t);this._callback=r,this._data=a.data,this._isMissingData=a.isMissingData,this._environment=e,this._selector=t,this._subscription=e.subscribe(a,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){if(!0===o.ENABLE_RELAY_CONTAINERS_SUSPENSE&&!0===this._isMissingData){var e,t=null!==(e=c(this._environment,this._selector.owner))&&void 0!==e?e:this._environment.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(this._selector.owner);if(null!=t)throw t}return this._data},t.setSelector=function(e){if(null==this._subscription||!p(e,this._selector)){this.dispose();var t=this._environment.lookup(e);this._data=t.data,this._isMissingData=t.isMissingData,this._selector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!s(e,this._selector.variables)){var r=d(t,e),n=h(this._selector.node,this._selector.dataID,e,r);this.setSelector(n)}},e}(),m=function(){function e(e,t,r){var i=this;(0,n.default)(this,"_onChange",(function(e){i._stale=!0,i._callback()})),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelector(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(b)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;r<this._resolvers.length;r++){var n=t[r],i=this._resolvers[r].resolve();(e||i!==n)&&(e=e||t.slice(0,r)).push(i)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.setSelector=function(e){for(var t=e.selectors;this._resolvers.length>t.length;){this._resolvers.pop().dispose()}for(var r=0;r<t.length;r++)r<this._resolvers.length?this._resolvers[r].setSelector(t[r]):this._resolvers[r]=new g(this._environment,t[r],this._onChange);this._stale=!0},t.setVariables=function(e,t){this._resolvers.forEach((function(r){return r.setVariables(e,t)})),this._stale=!0},e}();function b(e){e&&e.dispose()}e.exports=v},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var a=r(1),o=a.getModuleComponentKey,s=a.getModuleOperationKey;e.exports=function(e,t,r,a){var u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},a);return u[o(e)]=r,u[s(e)]=t,u}},function(e,t,r){"use strict";var n,i,a=r(0);e.exports=function(e){return n||(n=e.createContext(null),i=e),e!==i&&a(!1),n}},function(e,t,r){"use strict";var n=r(13).createOperationDescriptor,i=r(9).getRequest;e.exports=function(e,t,r,a){var o=i(t);if("query"!==o.params.operationKind)throw new Error("fetchQuery: Expected query operation");var s=n(o,r);return e.execute({operation:s,cacheConfig:a}).map((function(){return e.lookup(s.fragment).data})).toPromise()}},function(e,t,r){"use strict";var n=r(10),i=r(12),a=i.getDataIDsFromFragment,o=i.getVariablesFromFragment,s=i.getSelector;e.exports=function(e,t){var r,i=s(e,t),u=null==i?"null":"SingularReaderSelector"===i.kind?i.owner.identifier:"["+i.selectors.map((function(e){return e.owner.identifier})).join(",")+"]",l=o(e,t),c=a(e,t);return u+"/"+e.name+"/"+JSON.stringify(n(l))+"/"+(null!==(r=JSON.stringify(c))&&void 0!==r?r:"missing")}},function(e,t,r){"use strict";var n=r(0),i=r(9).getInlineDataFragment,a=r(1).FRAGMENTS_KEY;e.exports=function(e,t){var r,o=i(e);if(null==t)return t;"object"!=typeof t&&n(!1);var s=null===(r=t[a])||void 0===r?void 0:r[o.name];return null==s&&n(!1),s}},function(e,t,r){"use strict";var n=r(17),i=(r(2),r(9).getRequest),a=r(13).createOperationDescriptor;e.exports=function(e,t){var r=i(t.subscription);if("subscription"!==r.params.operationKind)throw new Error("requestSubscription: Must use Subscription operation");var o=t.configs,s=t.onCompleted,u=t.onError,l=t.onNext,c=t.variables,d=t.cacheConfig,f=a(r,c),p=(o?n.convert(o,r,null,t.updater):t).updater;return{dispose:e.execute({operation:f,updater:p,cacheConfig:d}).map((function(){return e.lookup(f.fragment).data})).subscribe({next:l,error:u,complete:s}).unsubscribe}}}])}));
|
|
9
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/ErrorUtils")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","fbjs/lib/warning","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/defineProperty","fbjs/lib/areEqual","@babel/runtime/helpers/toConsumableArray","fbjs/lib/ErrorUtils"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/ErrorUtils")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/ErrorUtils"])}(window,(function(e,t,r,n,i,a,o){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.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 i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));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=48)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(3)(r(19)),i=r(5),a=r(23),o=r(0),s=r(11),u=i.VARIABLE,l=i.LITERAL,c=i.OBJECT_VALUE,d=i.LIST_VALUE;function f(e,t){if(e.kind===u)return function(e,t){return t.hasOwnProperty(e)||o(!1),s(t[e])}(e.variableName,t);if(e.kind===l)return e.value;if(e.kind===c){var r={};return e.fields.forEach((function(e){r[e.name]=f(e,t)})),r}if(e.kind===d){var n=[];return e.items.forEach((function(e){null!=e&&n.push(f(e,t))})),n}}function h(e,t){var r={};return e.forEach((function(e){r[e.name]=f(e,t)})),r}function p(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i,a=t[n];if(null!=a)r.push(n+":"+(null!==(i=JSON.stringify(a))&&void 0!==i?i:"undefined"))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var _={FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"__isWithinUnmatchedTypeRefinement",formatStorageKey:p,getArgumentValue:f,getArgumentValues:h,getHandleStorageKey:function(e,t){var r=e.dynamicKey,i=e.handle,o=e.key,s=e.name,u=e.args,l=e.filters,c=a(i,o,s),d=null;return u&&l&&0!==u.length&&0!==l.length&&(d=u.filter((function(e){return l.indexOf(e.name)>-1}))),r&&(d=null!=d?[r].concat((0,n.default)(d)):[r]),null===d?c:p(c,h(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,n=e.name;return r&&0!==r.length?p(n,h(r,t)):n},getStableStorageKey:function(e,t){return p(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=_},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FLIGHT_FIELD:"FlightField",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",VARIABLE:"Variable"}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var o=r(10),s=r(20),u=r(0),l=(r(2),r(7).isClientID,r(1)),c=l.ID_KEY,d=l.REF_KEY,f=l.REFS_KEY,h=l.TYPENAME_KEY,p=l.INVALIDATED_AT_KEY;l.ROOT_ID;e.exports={clone:function(e){return a({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==c&&r!==h&&(t[r]=e[r])},create:function(e,t){var r={};return r[c]=e,r[h]=t,r},freeze:function(e){s(e)},getDataID:function(e){return e[c]},getInvalidationEpoch:function(e){if(null==e)return null;var t=e[p];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[d]||u(!1),r[d])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[f])||u(!1),r[f])},getType:function(e){return e[h]},getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(d)||r.hasOwnProperty(f))&&u(!1),r},merge:function(e,t){return Object.assign({},e,t)},setValue:function(e,t,r){e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[d]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[f]=r,e[t]=n},update:function(e,t){for(var r=null,n=Object.keys(t),i=0;i<n.length;i++){var s=n[i];!r&&o(e[s],t[s])||((r=null!==r?r:a({},e))[s]=t[s])}return null!==r?r:e}}},function(e,t,r){"use strict";var n=0;e.exports={generateClientID:function(e,t,r){var n=e+":"+t;return null!=r&&(n+=":"+r),0!==n.indexOf("client:")&&(n="client:"+n),n},generateUniqueClientID:function(){return"".concat("client:","local:").concat(n++)},isClientID:function(e){return 0===e.indexOf("client:")}}},function(e,t,r){"use strict";e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_PARTIAL_RENDERING_DEFAULT:!1,ENABLE_RELAY_CONTAINERS_SUSPENSE:!1,ENABLE_PRECISE_TYPE_REFINEMENT:!1,ENABLE_REACT_FLIGHT_COMPONENT_FIELD:!1,ENABLE_REQUIRED_DIRECTIVES:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1}},function(e,t,r){"use strict";var n=r(5),i=r(0);r(2);function a(e){var t=e;return"function"==typeof t?t=t():t.default&&(t=t.default),t}function o(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function s(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function u(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.INLINE_DATA_FRAGMENT}function l(e){var t=a(e);return o(t)||i(!1),t}e.exports={getFragment:l,getNode:a,getPaginationFragment:function(e){var t,r=l(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,i=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:r},getRefetchableFragment:function(e){var t,r=l(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===n||"object"!=typeof n?null:r},getRequest:function(e){var t=a(e);return s(t)||i(!1),t},getInlineDataFragment:function(e){var t=a(e);return u(t)||i(!1),t},graphql:function(e){i(!1)},isFragment:o,isRequest:s,isInlineDataFragment:u}},function(e,t){e.exports=i},function(e,t,r){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),n={},i=0;i<r.length;i++)n[r[i]]=e(t[r[i]]);return n}},function(e,t,r){"use strict";var n=r(33),i=function(e,t){},a=function(){function e(e){this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){i=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?o(e):n(e)?s(e):u(e)};var t=e.prototype;return t.catch=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}}))},t.concat=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},t.do=function(t){var r=this;return e.create((function(e){var n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){i(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},t.finally=function(t){var r=this;return e.create((function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}}))},t.ifEmpty=function(t){var r=this;return e.create((function(e){var n=!1,i=r.subscribe({next:function(t){n=!0,e.next(t)},error:e.error,complete:function(){n?e.complete():i=t.subscribe(e)}});return function(){i.unsubscribe()}}))},t.subscribe=function(e){return function(e,t){var r,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var s=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){i(e,!0)}finally{o()}}}});try{t.start&&t.start(s)}catch(e){i(e,!0)}if(n)return s;var u=a({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){i(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,i(e,r||!1),o();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{o()}}}});try{r=e(u)}catch(e){u.error(e,!0)}0;n&&o();return s}(this._source,e)},t.map=function(t){var r=this;return e.create((function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}}))},t.mergeMap=function(t){var r=this;return e.create((function(n){var i=[];function a(e){this._sub=e,i.push(e)}function o(){i.splice(i.indexOf(this._sub),1),0===i.length&&n.complete()}return r.subscribe({start:a,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:a,next:n.next,error:n.error,complete:o})}catch(e){n.error(e,!0)}},error:n.error,complete:o}),function(){i.forEach((function(e){return e.unsubscribe()})),i.length=0}}))},t.poll=function(t){var r=this;return e.create((function(e){var n,i;return function a(){n=r.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,t)}})}(),function(){clearTimeout(i),n.unsubscribe()}}))},t.toPromise=function(){var e=this;return new Promise((function(t,r){var n=!1;e.subscribe({next:function(e){n||(n=!0,t(e))},error:r,complete:t})}))},e}();function o(e){return e instanceof a?e:a.create((function(t){return e.subscribe(t)}))}function s(e){return a.create((function(t){e.then((function(e){t.next(e),t.complete()}),t.error)}))}function u(e){return a.create((function(t){t.next(e),t.complete()}))}e.exports=a},function(e,t,r){"use strict";var n=r(10),i=r(0),a=(r(2),r(24).getFragmentVariables),o=r(1),s=o.FRAGMENT_OWNER_KEY,u=o.FRAGMENTS_KEY,l=o.ID_KEY,c=o.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT;function d(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1);var r=t[l],n=t[u],o=t[s],d=!0===t[c];if("string"==typeof r&&"object"==typeof n&&null!==n&&"object"==typeof n[e.name]&&null!==n[e.name]&&"object"==typeof o&&null!==o){var f=o,h=n[e.name];return y(e,r,a(e,f.variables,h),f,d)}return null}function f(e,t){var r=null;return t.forEach((function(t,n){var i=null!=t?d(e,t):null;null!=i&&(r=r||[]).push(i)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function h(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1),f(e,t)):(Array.isArray(t)&&i(!1),d(e,t))}function p(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1),function(e,t){var r=null;return t.forEach((function(t){var n=null!=t?_(e,t):null;null!=n&&(r=r||[]).push(n)})),r}(e,t)):(Array.isArray(t)&&i(!1),_(e,t))}function _(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1);var r=t[l];return"string"==typeof r?r:null}function v(e,t){var r;return null==t?{}:!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)?(Array.isArray(t)||i(!1),m(e,t)):(Array.isArray(t)&&i(!1),g(e,t)||{})}function g(e,t){var r=d(e,t);return r?r.variables:null}function m(e,t){var r={};return t.forEach((function(t,n){if(null!=t){var i=g(e,t);null!=i&&Object.assign(r,i)}})),r}function y(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:i,node:e,variables:r,owner:n}}e.exports={areEqualSelectors:function(e,t){return e.owner===t.owner&&e.dataID===t.dataID&&e.node===t.node&&n(e.variables,t.variables)},createReaderSelector:y,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:p,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=p(i,a)}return r},getSingularSelector:d,getPluralSelector:f,getSelector:h,getSelectorsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=h(i,a)}return r},getVariablesFromSingularFragment:g,getVariablesFromPluralFragment:m,getVariablesFromFragment:v,getVariablesFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=v(e[n],t[n]);Object.assign(r,i)}return r}}},function(e,t,r){"use strict";r(20);var n=r(40),i=r(24).getOperationVariables,a=r(13),o=a.createNormalizationSelector,s=a.createReaderSelector,u=r(1).ROOT_ID;function l(e,t,r){return{identifier:n(e.params,t),node:e,variables:t,cacheConfig:r}}e.exports={createOperationDescriptor:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u,a=e.operation,c=i(a,t),d=l(e,c,r),f={fragment:s(e.fragment,n,c,d),request:d,root:o(a,n,c)};return f},createRequestDescriptor:l}},function(e,t,r){"use strict";var n=r(53),i=function(){function e(t){return e.create(t)}return e.create=function(e){return new n(e)},e}();e.exports=i},function(e,t,r){"use strict";var n=r(0),i=r(6).getType;e.exports={REACT_FLIGHT_QUERIES_STORAGE_KEY:"queries",REACT_FLIGHT_TREE_STORAGE_KEY:"tree",REACT_FLIGHT_TYPE_NAME:"ReactFlightComponent",getReactFlightClientResponse:function(e){"ReactFlightComponent"!==i(e)&&n(!1);var t=e.tree;return null!=t?t:null},refineToReactFlightPayloadData:function(e){return null!=e&&"object"==typeof e&&Array.isArray(e.tree)&&Array.isArray(e.queries)?e:null}}},function(e,t,r){"use strict";var n=r(28),i=r(23),a=r(0),o=(r(2),r(7).generateClientID);function s(e,t,r){if(null==r)return r;var i=n.get().EDGES,s=t.getValue("__connection_next_edge_index");"number"!=typeof s&&a(!1);var u=o(t.getDataID(),i,s),l=e.create(u,r.getType());return l.copyFieldsFrom(r),t.setValue(s+1,"__connection_next_edge_index"),l}function u(e,t,r){for(var i=n.get().NODE,a=0;a<e.length;a++){var o=e[a];if(o){var s=o.getLinkedRecord(i),u=s&&s.getDataID();if(u){if(r.has(u))continue;r.add(u)}t.push(o)}}}e.exports={buildConnectionEdge:s,createEdge:function(e,t,r,i){var a=n.get().NODE,s=o(t.getDataID(),r.getDataID()),u=e.get(s);return u||(u=e.create(s,i)),u.setLinkedRecord(r,a),u},deleteNode:function(e,t){var r=n.get(),i=r.EDGES,a=r.NODE,o=e.getLinkedRecords(i);if(o){for(var s,u=0;u<o.length;u++){var l=o[u],c=l&&l.getLinkedRecord(a);null!=c&&c.getDataID()===t?void 0===s&&(s=o.slice(0,u)):void 0!==s&&s.push(l)}void 0!==s&&e.setLinkedRecords(s,i)}},getConnection:function(e,t,r){var n=i("connection",t,null);return e.getLinkedRecord(n,r)},insertEdgeAfter:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var u;if(null==r)u=s.concat(t);else{u=[];for(var l=!1,c=0;c<s.length;c++){var d=s[c];if(u.push(d),null!=d)r===d.getValue(a)&&(u.push(t),l=!0)}l||u.push(t)}e.setLinkedRecords(u,o)}else e.setLinkedRecords([t],o)},insertEdgeBefore:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var u;if(null==r)u=[t].concat(s);else{u=[];for(var l=!1,c=0;c<s.length;c++){var d=s[c];if(null!=d)r===d.getValue(a)&&(u.push(t),l=!0);u.push(d)}l||u.unshift(t)}e.setLinkedRecords(u,o)}else e.setLinkedRecords([t],o)},update:function(e,t){var r=e.get(t.dataID);if(r){var i=n.get(),a=i.EDGES,l=i.END_CURSOR,c=i.HAS_NEXT_PAGE,d=i.HAS_PREV_PAGE,f=i.PAGE_INFO,h=i.PAGE_INFO_TYPE,p=i.START_CURSOR,_=r.getLinkedRecord(t.fieldKey),v=_&&_.getLinkedRecord(f);if(_){var g=o(r.getDataID(),t.handleKey),m=r.getLinkedRecord(t.handleKey),y=null!=m?m:e.get(g),b=y&&y.getLinkedRecord(f);if(y){null==m&&r.setLinkedRecord(y,t.handleKey);var E=y,D=_.getLinkedRecords(a);D&&(D=D.map((function(t){return s(e,E,t)})));var I=E.getLinkedRecords(a),R=E.getLinkedRecord(f);E.copyFieldsFrom(_),I&&E.setLinkedRecords(I,a),R&&E.setLinkedRecord(R,f);var S=[],O=t.args;if(I&&D)if(null!=O.after){if(!b||O.after!==b.getValue(l))return;var T=new Set;u(I,S,T),u(D,S,T)}else if(null!=O.before){if(!b||O.before!==b.getValue(p))return;var k=new Set;u(D,S,k),u(I,S,k)}else S=D;else S=D||I;if(null!=S&&S!==I&&E.setLinkedRecords(S,a),b&&v)if(null==O.after&&null==O.before)b.copyFieldsFrom(v);else if(null!=O.before||null==O.after&&O.last){b.setValue(!!v.getValue(d),d);var A=v.getValue(p);"string"==typeof A&&b.setValue(A,p)}else if(null!=O.after||null==O.before&&O.first){b.setValue(!!v.getValue(c),c);var P=v.getValue(l);"string"==typeof P&&b.setValue(P,l)}}else{var F=e.create(g,_.getType());F.setValue(0,"__connection_next_edge_index"),F.copyFieldsFrom(_);var N=_.getLinkedRecords(a);N&&(N=N.map((function(t){return s(e,F,t)})),F.setLinkedRecords(N,a)),r.setLinkedRecord(F,t.handleKey),(b=e.create(o(F.getDataID(),f),h)).setValue(!1,c),b.setValue(!1,d),b.setValue(null,l),b.setValue(null,p),v&&b.copyFieldsFrom(v),F.setLinkedRecord(b,f)}}else r.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(17),o=(r(2),Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"})),s=Object.freeze({APPEND:"append",PREPEND:"prepend"});function u(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:o,RangeOperations:s,convert:function(e,t,r,i){var o=r?[r]:[],s=i?[i]:[];return e.forEach((function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=u(t);if(!n)return null;return function(e,t){var i=e.getRootField(n);if(i){var a=i.getValue(r);(Array.isArray(a)?a:[a]).forEach((function(t){t&&"string"==typeof t&&e.delete(t)}))}}}(e,t);r&&(o.push(r),s.push(r));break;case"RANGE_ADD":var i=function(e,t){var r=e.parentID,i=e.connectionInfo,o=e.edgeName;if(!r)return null;var s=u(t);if(!i||!s)return null;return function(e,t){var u=e.get(r);if(u){var l=e.getRootField(s);if(l){var c,d=l.getLinkedRecord(o),f=n(i);try{for(f.s();!(c=f.n()).done;){var h=c.value;if(d){var p=a.getConnection(u,h.key,h.filters);if(p){var _=a.buildConnectionEdge(e,p,d);if(_)switch(h.rangeBehavior){case"append":a.insertEdgeAfter(p,_);break;case"prepend":a.insertEdgeBefore(p,_)}}}}}catch(e){f.e(e)}finally{f.f()}}}}}(e,t);i&&(o.push(i),s.push(i));break;case"RANGE_DELETE":var l=function(e,t){var r=e.parentID,i=e.connectionKeys,o=e.pathToConnection,s=e.deletedIDFieldName;if(!r)return null;var l=u(t);if(!l)return null;return function(e,t){if(t){var u=[],c=t[l];if(c&&Array.isArray(s)){var d,f=n(s);try{for(f.s();!(d=f.n()).done;){var h=d.value;c&&"object"==typeof c&&(c=c[h])}}catch(e){f.e(e)}finally{f.f()}Array.isArray(c)?c.forEach((function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&u.push(e.id)})):c&&c.id&&"string"==typeof c.id&&u.push(c.id)}else c&&"string"==typeof s&&"object"==typeof c&&("string"==typeof(c=c[s])?u.push(c):Array.isArray(c)&&c.forEach((function(e){"string"==typeof e&&u.push(e)})));!function(e,t,r,i,o){var s=i.get(e);if(!s)return;if(r.length<2)return;for(var u=s,l=1;l<r.length-1;l++)u&&(u=u.getLinkedRecord(r[l]));if(!t||!u)return;var c,d=n(t);try{var f=function(){var e=c.value,t=a.getConnection(u,e.key,e.filters);t&&o.forEach((function(e){a.deleteNode(t,e)}))};for(d.s();!(c=d.n()).done;)f()}catch(e){d.e(e)}finally{d.f()}}(r,i,o,e,u)}}}(e,t);l&&(o.push(l),s.push(l))}})),{optimisticUpdater:function(e,t){o.forEach((function(r){r(e,t)}))},updater:function(e,t){s.forEach((function(r){r(e,t)}))}}}}},function(e,t){e.exports=a},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)})),t}},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";e.exports={generateTypeID:function(e){return"client:__type:"+e},isTypeID:function(e){return 0===e.indexOf("client:__type:")},TYPE_SCHEMA_TYPE:"__TypeSchema"}},function(e,t,r){"use strict";var n=r(0),i=r(29).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==i?"__".concat(t,"_").concat(e):(null==r&&n(!1),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var a=r(0);e.exports={getFragmentVariables:function(e,t,r){var o;return e.argumentDefinitions.forEach((function(e){if(!r.hasOwnProperty(e.name))switch(o=o||function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r),e.kind){case"LocalArgument":o[e.name]=e.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(e.name)){o[e.name]=void 0;break}o[e.name]=t[e.name];break;default:a(!1)}})),o||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach((function(e){var n=e.defaultValue;null!=t[e.name]&&(n=t[e.name]),r[e.name]=n})),r}}},function(e,t,r){"use strict";function n(){}var i={"*":[]},a={"*":[]},o={},s={stop:n},u=function(e){return"@"!==e.charAt(0)},l={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=l.instrument(t[r],e[r]))},instrument:function(e,t){if(!u(e))return t.attachHandler=n,t.detachHandler=n,t;i.hasOwnProperty(e)||(i[e]=[]);var r=i["*"],a=i[e],s=[],l=[],d=function n(){var i=l[l.length-1];i[0]?(i[0]--,r[i[0]](e,n)):i[1]?(i[1]--,a[i[1]](e,n)):i[2]?(i[2]--,s[i[2]](e,n)):i[5]=t.apply(i[3],i[4])},f=function(){var e;if(0===a.length&&0===s.length&&0===r.length)e=t.apply(this,arguments);else{l.push([r.length,a.length,s.length,this,arguments,o]),d();var n=l.pop();if((e=n[5])===o)throw new Error("RelayProfiler: Handler did not invoke original function.")}return e};return f.attachHandler=function(e){s.push(e)},f.detachHandler=function(e){c(s,e)},f.displayName="(instrumented "+e+")",f},attachAggregateHandler:function(e,t){u(e)&&(i.hasOwnProperty(e)||(i[e]=[]),i[e].push(t))},detachAggregateHandler:function(e,t){u(e)&&i.hasOwnProperty(e)&&c(i[e],t)},profile:function(e,t){var r=a["*"].length>0,n=a.hasOwnProperty(e);if(n||r){for(var i,o=n&&r?a[e].concat(a["*"]):n?a[e]:a["*"],u=o.length-1;u>=0;u--){var l=(0,o[u])(e,t);(i=i||[]).unshift(l)}return{stop:function(e){i&&i.forEach((function(t){return t(e)}))}}}return s},attachProfileHandler:function(e,t){u(e)&&(a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t))},detachProfileHandler:function(e,t){u(e)&&a.hasOwnProperty(e)&&c(a[e],t)}};function c(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}e.exports=l},function(e,t,r){"use strict";var n=r(5),i=n.REQUEST,a=n.SPLIT_OPERATION;e.exports=function(e){switch(e.kind){case i:return e.operation;case a:default:return e}}},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";var n={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},i={CLIENT_MUTATION_ID:"clientMutationId",CURSOR:"cursor",EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"},a={inject:function(e){i=e},get:function(){return i},isConnectionCall:function(e){return n.hasOwnProperty(e.name)}};e.exports=a},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(17),o=r(0),s=(r(2),{update:function(e,t){var r=e.get(t.dataID);if(null!=r){var n=r.getValue(t.fieldKey);"string"==typeof n?e.delete(n):Array.isArray(n)&&n.forEach((function(t){"string"==typeof t&&e.delete(t)}))}}}),u={update:function(e,t){var r=e.get(t.dataID);if(null!=r){var i=t.handleArgs.connections;null==i&&o(!1);var s=r.getValue(t.fieldKey);(Array.isArray(s)?s:[s]).forEach((function(t){if("string"==typeof t){var r,o=n(i);try{for(o.s();!(r=o.n()).done;){var s=r.value,u=e.get(s);null!=u&&a.deleteNode(u,t)}}catch(e){o.e(e)}finally{o.f()}}}))}}},l={update:h(a.insertEdgeAfter)},c={update:h(a.insertEdgeBefore)},d={update:p(a.insertEdgeAfter)},f={update:p(a.insertEdgeBefore)};function h(e){return function(t,r){var i=t.get(r.dataID);if(null!=i){var s=r.handleArgs.connections;null==s&&o(!1);var u,l=i.getLinkedRecord(r.fieldKey,r.args),c=n(s);try{for(c.s();!(u=c.n()).done;){var d=u.value,f=t.get(d);if(null!=f){var h=a.buildConnectionEdge(t,f,l);null==h&&o(!1),e(f,h)}}}catch(e){c.e(e)}finally{c.f()}}}}function p(e){return function(t,r){var i,s=t.get(r.dataID);if(null!=s){var u,l,c=r.handleArgs,d=c.connections,f=c.edgeTypeName;null==d&&o(!1),null==f&&o(!1);try{u=s.getLinkedRecord(r.fieldKey,r.args)}catch(e){}if(!u)try{l=s.getLinkedRecords(r.fieldKey,r.args)}catch(e){}null==u&&null==l&&o(!1);var h,p=n(null!==(i=l)&&void 0!==i?i:[u]);try{for(p.s();!(h=p.n()).done;){var _=h.value;if(null!=_){var v,g=n(d);try{for(g.s();!(v=g.n()).done;){var m=v.value,y=t.get(m);if(null!=y){var b=a.createEdge(t,y,_,f);null==b&&o(!1),e(y,b)}}}catch(e){g.e(e)}finally{g.f()}}}}catch(e){p.e(e)}finally{p.f()}}}}e.exports={AppendEdgeHandler:l,DeleteRecordHandler:s,PrependEdgeHandler:c,AppendNodeHandler:d,PrependNodeHandler:f,DeleteEdgeHandler:u}},function(e,t,r){"use strict";var n=r(17),i=r(30),a=r(0);e.exports=function(e){switch(e){case"connection":return n;case"deleteRecord":return i.DeleteRecordHandler;case"deleteEdge":return i.DeleteEdgeHandler;case"appendEdge":return i.AppendEdgeHandler;case"prependEdge":return i.PrependEdgeHandler;case"appendNode":return i.AppendNodeHandler;case"prependNode":return i.PrependNodeHandler}a(!1)}},function(e,t,r){"use strict";function n(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),a=3;a<n;a++)i[a-3]=arguments[a];var o=0,s=r.replace(/%s/g,(function(){return String(i[o++])})),u=new Error(s),l=Object.assign(u,{name:t,messageFormat:r,messageParams:i,type:e,taalOpcodes:[2,2]});if(void 0===l.stack)try{throw l}catch(e){}return l}e.exports={create:function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n.apply(void 0,["error",e,t].concat(i))},createWarning:function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n.apply(void 0,["warn",e,t].concat(i))}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(0),o=function(){function e(){this._ownersToPendingOperations=new Map,this._pendingOperationsToOwners=new Map,this._ownersToPromise=new Map}var t=e.prototype;return t.update=function(e,t){if(0!==t.size){var r,i=new Set,a=n(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=this._ownersToPendingOperations.get(o);null!=s?s.has(e)||(s.add(e),i.add(o)):(this._ownersToPendingOperations.set(o,new Set([e])),i.add(o))}}catch(e){a.e(e)}finally{a.f()}if(0!==i.size){var u,l=this._pendingOperationsToOwners.get(e)||new Set,c=n(i);try{for(c.s();!(u=c.n()).done;){var d=u.value;this._resolveOwnerResolvers(d),l.add(d)}}catch(e){c.e(e)}finally{c.f()}this._pendingOperationsToOwners.set(e,l)}}},t.complete=function(e){var t=this._pendingOperationsToOwners.get(e);if(null!=t){var r,i=new Set,a=new Set,o=n(t);try{for(o.s();!(r=o.n()).done;){var s=r.value,u=this._ownersToPendingOperations.get(s);u&&(u.delete(e),u.size>0?a.add(s):i.add(s))}}catch(e){o.e(e)}finally{o.f()}var l,c=n(i);try{for(c.s();!(l=c.n()).done;){var d=l.value;this._resolveOwnerResolvers(d),this._ownersToPendingOperations.delete(d)}}catch(e){c.e(e)}finally{c.f()}var f,h=n(a);try{for(h.s();!(f=h.n()).done;){var p=f.value;this._resolveOwnerResolvers(p)}}catch(e){h.e(e)}finally{h.f()}this._pendingOperationsToOwners.delete(e)}},t._resolveOwnerResolvers=function(e){var t=this._ownersToPromise.get(e);null!=t&&t.resolve(),this._ownersToPromise.delete(e)},t.getPromiseForPendingOperationsAffectingOwner=function(e){if(!this._ownersToPendingOperations.has(e))return null;var t,r=this._ownersToPromise.get(e);if(null!=r)return r.promise;var n=new Promise((function(e){t=e}));return null==t&&a(!1),this._ownersToPromise.set(e,{promise:n,resolve:t}),n},e}();e.exports=o},function(e,t,r){"use strict";var n=r(8),i=r(6),a=r(0),o=r(5),s=o.CLIENT_EXTENSION,u=o.CONDITION,l=o.DEFER,c=o.FLIGHT_FIELD,d=o.FRAGMENT_SPREAD,f=o.INLINE_DATA_FRAGMENT_SPREAD,h=o.INLINE_FRAGMENT,p=o.LINKED_FIELD,_=o.MODULE_IMPORT,v=o.REQUIRED_FIELD,g=o.SCALAR_FIELD,m=o.STREAM,y=r(16).getReactFlightClientResponse,b=r(1),E=b.FRAGMENTS_KEY,D=b.FRAGMENT_OWNER_KEY,I=b.FRAGMENT_PROP_NAME_KEY,R=b.ID_KEY,S=b.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,O=b.MODULE_COMPONENT_KEY,T=b.ROOT_ID,k=b.getArgumentValues,A=b.getStorageKey,P=b.getModuleComponentKey,F=r(22).generateTypeID;var N=function(){function e(e,t){this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._missingRequiredFields=null,this._owner=t.owner,this._recordSource=e,this._seenRecords={},this._selector=t,this._variables=t.variables}var t=e.prototype;return t.read=function(){var e=this._selector,t=e.node,r=e.dataID,a=e.isWithinUnmatchedTypeRefinement,o=t.abstractKey,s=this._recordSource.get(r),u=!a;u&&null==o&&null!=s&&(i.getType(s)!==t.type&&r!==T&&(u=!1));if(u&&null!=o&&null!=s&&n.ENABLE_PRECISE_TYPE_REFINEMENT){var l=i.getType(s),c=F(l),d=this._recordSource.get(c),f=null!=d?i.getValue(d,o):null;!1===f?u=!1:null==f&&(this._isMissingData=!0)}return this._isWithinUnmatchedTypeRefinement=!u,{data:this._traverse(t,r,null),isMissingData:this._isMissingData&&u,seenRecords:this._seenRecords,selector:this._selector,missingRequiredFields:this._missingRequiredFields}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords[t]=n,null==n)return void 0===n&&(this._isMissingData=!0),n;var i=r||{};return this._traverseSelections(e.selections,n,i)?i:null},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||a(!1),this._variables[e]},t._maybeReportUnexpectedNull=function(e,t,r){var n;if("THROW"!==(null===(n=this._missingRequiredFields)||void 0===n?void 0:n.action)){var i=this._selector.node.name;switch(t){case"THROW":return void(this._missingRequiredFields={action:t,field:{path:e,owner:i}});case"LOG":return null==this._missingRequiredFields&&(this._missingRequiredFields={action:t,fields:[]}),void this._missingRequiredFields.fields.push({path:e,owner:i})}}},t._traverseSelections=function(e,t,r){for(var o=0;o<e.length;o++){var y=e[o];switch(y.kind){case v:if(n.ENABLE_REQUIRED_DIRECTIVES||a(!1),null==this._readRequiredField(y,t,r)){var b=y.action;return"NONE"!==b&&this._maybeReportUnexpectedNull(y.path,b,t),!1}break;case g:this._readScalar(y,t,r);break;case p:y.plural?this._readPluralLink(y,t,r):this._readLink(y,t,r);break;case u:if(this._getVariableValue(y.condition)===y.passingValue)if(!this._traverseSelections(y.selections,t,r))return!1;break;case h:var E=y.abstractKey;if(null==E){var D=i.getType(t);if(null!=D&&D===y.type)if(!this._traverseSelections(y.selections,t,r))return!1}else if(n.ENABLE_PRECISE_TYPE_REFINEMENT){var I=this._isMissingData,R=this._isWithinUnmatchedTypeRefinement,S=i.getType(t),O=F(S),T=this._recordSource.get(O),k=null!=T?i.getValue(T,E):null;this._isWithinUnmatchedTypeRefinement=R||!1===k,this._traverseSelections(y.selections,t,r),this._isWithinUnmatchedTypeRefinement=R,!1===k?this._isMissingData=I:null==k&&(this._isMissingData=!0)}else this._traverseSelections(y.selections,t,r);break;case d:this._createFragmentPointer(y,t,r);break;case _:this._readModuleImport(y,t,r);break;case f:this._createInlineDataFragmentPointer(y,t,r);break;case l:case s:var A=this._isMissingData,P=this._traverseSelections(y.selections,t,r);if(this._isMissingData=A,!P)return!1;break;case m:if(!this._traverseSelections(y.selections,t,r))return!1;break;case c:if(!n.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._readFlightField(y,t,r);break;default:a(!1)}}return!0},t._readRequiredField=function(e,t,r){switch(e.field.kind){case g:return this._readScalar(e.field,t,r);case p:return e.field.plural?this._readPluralLink(e.field,t,r):this._readLink(e.field,t,r);default:e.field.kind,a(!1)}},t._readFlightField=function(e,t,r){var n,a=null!==(n=e.alias)&&void 0!==n?n:e.name,o=A(e,this._variables),s=i.getLinkedRecordID(t,o);if(null==s)return r[a]=s,void 0===s&&(this._isMissingData=!0),s;var u=this._recordSource.get(s);if(this._seenRecords[s]=u,null==u)return r[a]=u,void 0===u&&(this._isMissingData=!0),u;var l=y(u);return r[a]=l,l},t._readScalar=function(e,t,r){var n,a=null!==(n=e.alias)&&void 0!==n?n:e.name,o=A(e,this._variables),s=i.getValue(t,o);return void 0===s&&(this._isMissingData=!0),r[a]=s,s},t._readLink=function(e,t,r){var n,o=null!==(n=e.alias)&&void 0!==n?n:e.name,s=A(e,this._variables),u=i.getLinkedRecordID(t,s);if(null==u)return r[o]=u,void 0===u&&(this._isMissingData=!0),u;var l=r[o];null!=l&&"object"!=typeof l&&a(!1);var c=this._traverse(e,u,l);return r[o]=c,c},t._readPluralLink=function(e,t,r){var n,o=this,s=null!==(n=e.alias)&&void 0!==n?n:e.name,u=A(e,this._variables),l=i.getLinkedRecordIDs(t,u);if(null==l)return r[s]=l,void 0===l&&(this._isMissingData=!0),l;var c=r[s];null==c||Array.isArray(c)||a(!1);var d=c||[];return l.forEach((function(t,r){if(null==t)return void 0===t&&(o._isMissingData=!0),void(d[r]=t);var n=d[r];null!=n&&"object"!=typeof n&&a(!1),d[r]=o._traverse(e,t,n)})),r[s]=d,d},t._readModuleImport=function(e,t,r){var n=P(e.documentName),a=i.getValue(t,n);null!=a?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[I]=e.fragmentPropName,r[O]=a):void 0===a&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var o=r[E];null==o&&(o=r[E]={}),("object"!=typeof o||null==o)&&a(!1),null==r[R]&&(r[R]=i.getDataID(t)),o[e.name]=e.args?k(e.args,this._variables):{},r[D]=this._owner,n.ENABLE_PRECISE_TYPE_REFINEMENT&&(r[S]=this._isWithinUnmatchedTypeRefinement)},t._createInlineDataFragmentPointer=function(e,t,r){var n=r[E];null==n&&(n=r[E]={}),("object"!=typeof n||null==n)&&a(!1),null==r[R]&&(r[R]=i.getDataID(t));var o={};this._traverseSelections(e.selections,t,o),n[e.name]=o},e}();e.exports={read:function(e,t){return new N(e,t).read()}}},function(e,t,r){"use strict";var n=r(6),i=r(0),a=r(21).EXISTENT,o=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);return void 0===r?null==t?t:n.clone(t):null===r?null:null!=t?n.update(t,r):n.clone(r)},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||i(!1),t=n.create(e,n.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),a=this._base.get(e);r||a||i(!1);var o=this._getSinkRecord(t);a&&n.copyFields(a,o),r&&n.copyFields(r,o)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);n.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===a||this._sink.getStatus(e)===a)&&i(!1);var r=n.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var r=this.__sources[t].get(e);if(r)return n.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getValue(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setValue=function(e,t,r){var i=this._getSinkRecord(e);n.setValue(i,t,r)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getLinkedRecordID(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setLinkedRecordID=function(e,t,r){var i=this._getSinkRecord(e);n.setLinkedRecordID(i,t,r)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getLinkedRecordIDs(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setLinkedRecordIDs=function(e,t,r){var i=this._getSinkRecord(e);n.setLinkedRecordIDs(i,t,r)},e}();e.exports=o},function(e,t,r){"use strict";var n=r(6),i=r(57),a=r(0),o=r(21),s=o.EXISTENT,u=o.NONEXISTENT,l=r(1),c=l.ROOT_ID,d=l.ROOT_TYPE,f=function(){function e(e,t,r){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set}var t=e.prototype;return t.publishSource=function(e,t){var r=this;e.getRecordIDs().forEach((function(t){var i=e.getStatus(t);if(i===s){var a=e.get(t);a&&(r.__mutator.getStatus(t)!==s&&r.create(t,n.getType(a)),r.__mutator.copyFieldsFromRecord(a,t))}else i===u&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||a(!1),t.update(r,e)}))},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||a(!1),r},t.delete=function(e){e===c&&a(!1),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===s?new i(this,this.__mutator,e):t===u?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(c);return e||(e=this.create(c,d)),e&&e.getType()===d||a(!1),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},e}();e.exports=f},function(e,t,r){"use strict";var n=r(39),i=n.VIEWER_ID,a=n.VIEWER_TYPE;e.exports=function(e,t){return t===a&&null==e.id?i:e.id}},function(e,t,r){"use strict";var n=(0,r(7).generateClientID)(r(1).ROOT_ID,"viewer");e.exports={VIEWER_ID:n,VIEWER_TYPE:"Viewer"}},function(e,t,r){"use strict";var n=r(0),i=r(11);e.exports=function(e,t){var r=null!=e.cacheID?e.cacheID:e.id;return null==r&&n(!1),r+JSON.stringify(i(t))}},function(e,t,r){"use strict";var n=r(10),i=r(0),a=r(5).LINKED_FIELD,o=r(1).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===a||i(!1);var u=o(e,r);return{kind:"LinkedField",alias:s.alias,name:u,storageKey:u,args:null,concreteType:s.concreteType,plural:s.plural,selections:s.selections}}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t in e)if(n.call(e,t))return!1;return!0}},function(e,t,r){"use strict";var n="undefined"!=typeof WeakSet,i="undefined"!=typeof WeakMap;e.exports=function e(t,r){if(t===r||"object"!=typeof t||t instanceof Set||t instanceof Map||n&&t instanceof WeakSet||i&&t instanceof WeakMap||!t||"object"!=typeof r||r instanceof Set||r instanceof Map||n&&r instanceof WeakSet||i&&r instanceof WeakMap||!r)return r;var a=!1,o=Array.isArray(t)?t:null,s=Array.isArray(r)?r:null;if(o&&s)a=s.reduce((function(t,r,n){var i=e(o[n],r);return i!==s[n]&&(s[n]=i),t&&i===o[n]}),!0)&&o.length===s.length;else if(!o&&!s){var u=t,l=r,c=Object.keys(u),d=Object.keys(l);a=d.reduce((function(t,r){var n=e(u[r],l[r]);return n!==l[r]&&(l[r]=n),t&&n===u[r]}),!0)&&c.length===d.length}return a?t:r}},function(e,t,r){"use strict";var n=r(3)(r(4)),i=r(12),a=r(0),o=function(){function e(){var e=this;(0,n.default)(this,"_complete",!1),(0,n.default)(this,"_events",[]),(0,n.default)(this,"_sinks",new Set),(0,n.default)(this,"_subscription",null),this._observable=i.create((function(t){e._sinks.add(t);for(var r=e._events,n=0;n<r.length&&!t.closed;n++){var i=r[n];switch(i.kind){case"complete":t.complete();break;case"error":t.error(i.error);break;case"next":t.next(i.data);break;default:i.kind,a(!1)}}return function(){e._sinks.delete(t)}}))}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(t){return t.error(e)})))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(t){return t.next(e)})))},t.subscribe=function(e){return this._subscription=this._observable.subscribe(e),this._subscription},t.unsubscribe=function(){this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=o},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t,r){"use strict";e.exports=function(e,t){switch(t.action){case"THROW":var r=t.field,n=r.path,i=r.owner;throw e.requiredFieldLogger({kind:"missing_field.throw",owner:i,fieldPath:n}),new Error("Relay: Missing @required value at path '".concat(n,"' in '").concat(i,"'."));case"LOG":t.fields.forEach((function(t){var r=t.path,n=t.owner;e.requiredFieldLogger({kind:"missing_field.log",owner:n,fieldPath:r})}));break;default:t.action}}},function(e,t,r){"use strict";var n=r(12),i=r(44),a=r(0),o="function"==typeof WeakMap?new WeakMap:new Map;function s(e,t,r){return n.create((function(o){var s=l(e),u=s.get(t);return u||r().finally((function(){return s.delete(t)})).subscribe({start:function(e){u={identifier:t,subject:new i,subjectForInFlightStatus:new i,subscription:e},s.set(t,u)},next:function(e){var r=c(s,t);r.subject.next(e),r.subjectForInFlightStatus.next(e)},error:function(e){var r=c(s,t);r.subject.error(e),r.subjectForInFlightStatus.error(e)},complete:function(){var e=c(s,t);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var r=c(s,t);r.subject.unsubscribe(),r.subjectForInFlightStatus.unsubscribe()}}),null==u&&a(!1),function(e,t){return n.create((function(r){var n=t.subject.subscribe(r);return function(){n.unsubscribe();var r=e.get(t.identifier);if(r){var i=r.subscription;null!=i&&0===r.subject.getObserverCount()&&(i.unsubscribe(),e.delete(t.identifier))}}}))}(s,u).subscribe(o)}))}function u(e,t,r){return n.create((function(t){var n=r.subjectForInFlightStatus.subscribe({error:t.error,next:function(n){e.isRequestActive(r.identifier)?t.next():t.complete()},complete:t.complete,unsubscribe:t.complete});return function(){n.unsubscribe()}}))}function l(e){var t=o.get(e);if(null!=t)return t;var r=new Map;return o.set(e,r),r}function c(e,t){var r=e.get(t);return null==r&&a(!1),r}e.exports={fetchQuery:function(e,t){return s(e,t.request.identifier,(function(){return e.execute({operation:t})}))},fetchQueryDeduped:s,getPromiseForActiveRequest:function(e,t){var r=l(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?new Promise((function(t,r){var i=!1;u(e,0,n).subscribe({complete:t,error:r,next:function(e){i&&t(e)}}),i=!0})):null},getObservableForActiveRequest:function(e,t){var r=l(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?u(e,0,n):null}}},function(e,t,r){"use strict";var n=r(17),i=r(28),a=r(9),o=r(30),s=r(49),u=r(5),l=r(24),c=r(18),d=r(29),f=r(31),h=r(32),p=r(8),_=r(50),v=r(14),g=r(6),m=r(13),y=r(61),b=r(68),E=r(12),D=r(34),I=r(25),R=r(70),S=r(15),O=r(44),T=r(1),k=r(39),A=r(71),P=r(72),F=r(73),N=r(75),w=r(77),L=r(78),M=r(20),x=r(79),j=r(47),C=r(80),U=r(23),V=r(40),K=r(33),q=r(27),G=r(45),H=r(81),Y=r(43),z=r(46),Q=r(82),B=r(11),W=r(7),X=W.generateClientID,J=W.generateUniqueClientID,$=W.isClientID;e.exports={Environment:_,Network:b,Observable:E,QueryResponseCache:R,RecordSource:S,Record:g,ReplaySubject:O,Store:y,areEqualSelectors:m.areEqualSelectors,createFragmentSpecResolver:N,createNormalizationSelector:m.createNormalizationSelector,createOperationDescriptor:v.createOperationDescriptor,createReaderSelector:m.createReaderSelector,createRequestDescriptor:v.createRequestDescriptor,getDataIDsFromFragment:m.getDataIDsFromFragment,getDataIDsFromObject:m.getDataIDsFromObject,getNode:a.getNode,getFragment:a.getFragment,getInlineDataFragment:a.getInlineDataFragment,getModuleComponentKey:T.getModuleComponentKey,getModuleOperationKey:T.getModuleOperationKey,getPaginationFragment:a.getPaginationFragment,getPluralSelector:m.getPluralSelector,getRefetchableFragment:a.getRefetchableFragment,getRequest:a.getRequest,getRequestIdentifier:V,getSelector:m.getSelector,getSelectorsFromObject:m.getSelectorsFromObject,getSingularSelector:m.getSingularSelector,getStorageKey:T.getStorageKey,getVariablesFromFragment:m.getVariablesFromFragment,getVariablesFromObject:m.getVariablesFromObject,getVariablesFromPluralFragment:m.getVariablesFromPluralFragment,getVariablesFromSingularFragment:m.getVariablesFromSingularFragment,reportMissingRequiredFields:z,graphql:a.graphql,isFragment:a.isFragment,isInlineDataFragment:a.isInlineDataFragment,isRequest:a.isRequest,readInlineData:H,MutationTypes:c.MutationTypes,RangeOperations:c.RangeOperations,DefaultHandlerProvider:f,ConnectionHandler:n,MutationHandlers:o,VIEWER_ID:k.VIEWER_ID,VIEWER_TYPE:k.VIEWER_TYPE,applyOptimisticMutation:A,commitLocalUpdate:P,commitMutation:F,fetchQuery:x,isRelayModernEnvironment:q,requestSubscription:Q,ConnectionInterface:i,PreloadableQueryRegistry:s,RelayProfiler:I,createPayloadFor3DField:w,RelayConcreteNode:u,RelayError:h,RelayFeatureFlags:p,DEFAULT_HANDLE_KEY:d.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:T.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:T.FRAGMENT_OWNER_KEY,ID_KEY:T.ID_KEY,REF_KEY:T.REF_KEY,REFS_KEY:T.REFS_KEY,ROOT_ID:T.ROOT_ID,ROOT_TYPE:T.ROOT_TYPE,TYPENAME_KEY:T.TYPENAME_KEY,deepFreeze:M,generateClientID:X,generateUniqueClientID:J,getRelayHandleKey:U,isClientID:$,isPromise:K,isScalarAndEqual:G,recycleNodesInto:Y,stableCopy:B,getFragmentIdentifier:C,__internal:{OperationTracker:D,createRelayContext:L,getOperationVariables:l.getOperationVariables,fetchQuery:j.fetchQuery,fetchQueryDeduped:j.fetchQueryDeduped,getPromiseForActiveRequest:j.getPromiseForActiveRequest,getObservableForActiveRequest:j.getObservableForActiveRequest}}},function(e,t,r){"use strict";var n=new(function(){function e(){this._preloadableQueries=new Map,this._callbacks=new Map}var t=e.prototype;return t.set=function(e,t){this._preloadableQueries.set(e,t);var r=this._callbacks.get(e);null!=r&&r.forEach((function(e){try{e(t)}catch(e){setTimeout((function(){throw e}),0)}}))},t.get=function(e){return this._preloadableQueries.get(e)},t.onLoad=function(e,t){var r,n=null!==(r=this._callbacks.get(e))&&void 0!==r?r:new Set;n.add(t);return this._callbacks.set(e,n),{dispose:function(){n.delete(t)}}},t.clear=function(){this._preloadableQueries.clear()},e}());e.exports=n},function(e,t,r){"use strict";(function(t){var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var o=r(31),s=r(8),u=r(52),l=r(12),c=r(34),d=r(55),f=r(15),h=r(38),p=r(59),_=r(60),v=(r(0),function(){function e(e){var r,n,i,a,u,l,f,_=this;this.configName=e.configName;var v=e.handlerProvider?e.handlerProvider:o;this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var m=e.operationLoader,y=e.reactFlightPayloadDeserializer;this.__log=null!==(r=e.log)&&void 0!==r?r:g,this.requiredFieldLogger=null!==(n=e.requiredFieldLogger)&&void 0!==n?n:p,this._defaultRenderPolicy=(null!==(i=e.UNSTABLE_defaultRenderPolicy)&&void 0!==i?i:!0===s.ENABLE_PARTIAL_RENDERING_DEFAULT)?"partial":"full",this._operationLoader=m,this._operationExecutions=new Map,this._network=e.network,this._getDataID=null!==(a=e.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==a?a:h,this._publishQueue=new d(e.store,v,this._getDataID),this._scheduler=null!==(u=e.scheduler)&&void 0!==u?u:null,this._store=e.store,this.options=e.options,this._isServer=null!==(l=e.isServer)&&void 0!==l&&l,this.__setNet=function(e){return _._network=e};var b=void 0!==t?t:"undefined"!=typeof window?window:void 0,E=b&&b.__RELAY_DEVTOOLS_HOOK__;E&&E.registerEnvironment(this),this._missingFieldHandlers=e.missingFieldHandlers,this._operationTracker=null!==(f=e.operationTracker)&&void 0!==f?f:new c,this._reactFlightPayloadDeserializer=y}var r=e.prototype;return r.getStore=function(){return this._store},r.getNetwork=function(){return this._network},r.getOperationTracker=function(){return this._operationTracker},r.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},r.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},r.applyUpdate=function(e){var t=this;return this._scheduleUpdates((function(){t._publishQueue.applyUpdate(e),t._publishQueue.run()})),{dispose:function(){t._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))}}},r.revertUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))},r.replaceUpdate=function(e,t){var r=this;this._scheduleUpdates((function(){r._publishQueue.revertUpdate(e),r._publishQueue.applyUpdate(t),r._publishQueue.run()}))},r.applyMutation=function(e){var t=this,r=l.create((function(r){var n=l.create((function(e){})),i=u.execute({operation:e.operation,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:e,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:r,source:n,store:t._store,updater:null,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return i.cancel()}})).subscribe({});return{dispose:function(){return r.unsubscribe()}}},r.check=function(e){return null==this._missingFieldHandlers||0===this._missingFieldHandlers.length?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},r.commitPayload=function(e,t){var r=this;l.create((function(n){var i=u.execute({operation:e,operationExecutions:r._operationExecutions,operationLoader:r._operationLoader,optimisticConfig:null,publishQueue:r._publishQueue,reactFlightPayloadDeserializer:r._reactFlightPayloadDeserializer,scheduler:r._scheduler,sink:n,source:l.from({data:t}),store:r._store,updater:null,operationTracker:r._operationTracker,getDataID:r._getDataID,isClientPayload:!0,treatMissingFieldsAsNull:r._treatMissingFieldsAsNull});return function(){return i.cancel()}})).subscribe({})},r.commitUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.commitUpdate(e),t._publishQueue.run()}))},r.lookup=function(e){return this._store.lookup(e)},r.subscribe=function(e,t){return this._store.subscribe(e,t)},r.retain=function(e){return this._store.retain(e)},r.isServer=function(){return this._isServer},r._checkSelectorAndHandleMissingFields=function(e,t){var r=this,n=f.create(),i=this._store.check(e,{target:n,handlers:t});return n.size()>0&&this._scheduleUpdates((function(){r._publishQueue.commitSource(n),r._publishQueue.run()})),i},r._scheduleUpdates=function(e){var t=this._scheduler;null!=t?t.schedule(e):e()},r.execute=function(e){var t=this,r=e.operation,n=e.updater,i=this.__createLogObserver(r.request.node.params,r.request.variables),a=i[0],o=i[1];return l.create((function(e){var i=t._network.execute(r.request.node.params,r.request.variables,r.request.cacheConfig||{},null,o).do(a),s=u.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:null,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:e,source:i,store:t._store,updater:n,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return s.cancel()}}))},r.executeMutation=function(e){var t=this,r=e.operation,n=e.optimisticResponse,i=e.optimisticUpdater,o=e.updater,s=e.uploadables,c=this.__createLogObserver(r.request.node.params,r.request.variables),d=c[0],f=c[1];return l.create((function(e){var l;(n||i)&&(l={operation:r,response:n,updater:i});var c=t._network.execute(r.request.node.params,r.request.variables,a(a({},r.request.cacheConfig),{},{force:!0}),s,f).do(d),h=u.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:l,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:e,source:c,store:t._store,updater:o,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return h.cancel()}}))},r.executeWithSource=function(e){var t=this,r=e.operation,n=e.source;return l.create((function(e){var i=u.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:null,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:e,source:n,store:t._store,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return i.cancel()}}))},r.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},r.__createLogObserver=function(e,t){var r=_(),n=this.__log;return[{start:function(i){n({name:"execute.start",transactionID:r,params:e,variables:t})},next:function(e){n({name:"execute.next",transactionID:r,response:e})},error:function(e){n({name:"execute.error",transactionID:r,error:e})},complete:function(){n({name:"execute.complete",transactionID:r})},unsubscribe:function(){n({name:"execute.unsubscribe",transactionID:r})}},function(e){n({name:"execute.info",transactionID:r,info:e})}]},e}());function g(){}v.prototype["@@RelayModernEnvironment"]=!0,e.exports=v}).call(this,r(51))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(3),i=n(r(4)),a=n(r(19));function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=r(32),d=r(6),f=r(12),h=r(15),p=r(54),_=r(26),v=r(0),g=r(11),m=(r(2),r(7).generateClientID),y=r(13).createNormalizationSelector,b=r(1),E=b.ROOT_TYPE,D=b.TYPENAME_KEY,I=b.getStorageKey;var R=function(){function e(e){var t=this,r=e.operation,n=e.operationExecutions,i=e.operationLoader,a=e.optimisticConfig,o=e.publishQueue,s=e.scheduler,u=e.sink,l=e.source,c=e.store,d=e.updater,f=e.operationTracker,h=e.treatMissingFieldsAsNull,p=e.getDataID,_=e.isClientPayload,v=e.reactFlightPayloadDeserializer;this._getDataID=p,this._treatMissingFieldsAsNull=h,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._nextSubscriptionId=0,this._operation=r,this._operationExecutions=n,this._operationLoader=i,this._operationTracker=f,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._publishQueue=o,this._scheduler=s,this._sink=u,this._source=new Map,this._state="started",this._store=c,this._subscriptions=new Map,this._updater=d,this._isClientPayload=!0===_,this._reactFlightPayloadDeserializer=v;var g=this._nextSubscriptionId++;l.subscribe({complete:function(){return t._complete(g)},error:function(e){return t._error(e)},next:function(e){try{t._next(g,e)}catch(e){u.error(e)}},start:function(e){return t._start(g,e)}}),null!=a&&this._processOptimisticResponse(null!=a.response?{data:a.response}:null,a.updater,!1)}var t=e.prototype;return t.cancel=function(){var e=this;if("completed"!==this._state){this._state="completed",this._operationExecutions.delete(this._operation.request.identifier),0!==this._subscriptions.size&&(this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._subscriptions.clear());var t=this._optimisticUpdates;null!==t&&(this._optimisticUpdates=null,t.forEach((function(t){return e._publishQueue.revertUpdate(t)})),this._publishQueue.run()),this._incrementalResults.clear(),this._completeOperationTracker(),this._retainDisposable&&(this._retainDisposable.dispose(),this._retainDisposable=null)}},t._updateActiveState=function(){var e;switch(this._state){case"started":case"loading_incremental":e="active";break;case"completed":e="inactive";break;case"loading_final":e=this._pendingModulePayloadsCount>0?"active":"inactive";break;default:this._state,v(!1)}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;f.create((function(t){var n=r.schedule((function(){try{e(),t.complete()}catch(e){t.error(e)}}));return function(){return r.cancel(n)}})).subscribe({complete:function(){return t._complete(n)},error:function(e){return t._error(e)},start:function(e){return t._start(n,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete())},t._error=function(e){this.cancel(),this._sink.error(e)},t._start=function(e,t){this._subscriptions.set(e,t),this._updateActiveState()},t._next=function(e,t){var r=this;this._schedule((function(){r._handleNext(t),r._maybeCompleteSubscriptionOperationTracking()}))},t._handleErrorResponse=function(e){var t=this,r=[];return e.forEach((function(e){if(null!==e.data||null==e.extensions||e.hasOwnProperty("errors")){if(null==e.data){var n=e.hasOwnProperty("errors")&&null!=e.errors?e.errors:null,i=n?n.map((function(e){return e.message})).join("\n"):"(No errors)",a=c.create("RelayNetwork","No data returned for operation `"+t._operation.request.node.params.name+"`, got error(s):\n"+i+"\n\nSee the error `source` property for more information.");throw a.source={errors:n,operation:t._operation.request.node,variables:t._operation.request.variables},a.stack,a}var o=e;r.push(o)}})),r},t._handleOptimisticResponses=function(e){var t;if(e.length>1)return e.some((function(e){var t;return!0===(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic)}))&&v(!1),!1;var r=e[0],n=!0===(null===(t=r.extensions)||void 0===t?void 0:t.isOptimistic);return n&&"started"!==this._state&&v(!1),!!n&&(this._processOptimisticResponse(r,null,this._treatMissingFieldsAsNull),this._sink.next(r),!0)},t._handleNext=function(e){if("completed"!==this._state){var t=Array.isArray(e)?e:[e],r=this._handleErrorResponse(t);if(0===r.length)return t.some((function(e){var t;return!0===(null===(t=e.extensions)||void 0===t?void 0:t.is_final)}))&&(this._state="loading_final",this._updateActiveState(),this._incrementalPayloadsPending=!1),void this._sink.next(e);if(!this._handleOptimisticResponses(r)){var n=function(e){var t=[],r=[];return e.forEach((function(e){if(null!=e.path||null!=e.label){var n=e.label,i=e.path;null!=n&&null!=i||v(!1),r.push({label:n,path:i,response:e})}else t.push(e)})),[t,r]}(r),i=n[0],a=n[1];if(i.length>0){var o=this._processResponses(i),s=this._publishQueue.run(this._operation);this._updateOperationTracker(s),this._processPayloadFollowups(o),this._incrementalPayloadsPending&&!this._retainDisposable&&(this._retainDisposable=this._store.retain(this._operation))}if(a.length>0){var u=this._processIncrementalResponses(a),l=this._publishQueue.run();this._updateOperationTracker(l),this._processPayloadFollowups(u)}this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,r){var n=this;if(null!==this._optimisticUpdates&&v(!1),null!=e||null!=t){var i=[];if(e){var a=S(e,this._operation.root,E,{getDataID:this._getDataID,path:[],reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:r});O(a),i.push({operation:this._operation,payload:a,updater:t}),this._processOptimisticFollowups(a,i)}else t&&i.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,moduleImportPayloads:null,source:h.create(),isFinal:!1},updater:t});this._optimisticUpdates=i,i.forEach((function(e){return n._publishQueue.applyUpdate(e)})),this._publishQueue.run()}},t._processOptimisticFollowups=function(e,t){if(e.moduleImportPayloads&&e.moduleImportPayloads.length){var r=e.moduleImportPayloads,n=this._operationLoader;n||v(!1);var i,o=u(r);try{for(o.s();!(i=o.n()).done;){var s=i.value,l=n.get(s.operationReference);if(null==l)this._processAsyncOptimisticModuleImport(n,s);else{var c=this._processOptimisticModuleImport(l,s);t.push.apply(t,(0,a.default)(c))}}}catch(e){o.e(e)}finally{o.f()}}},t._normalizeModuleImport=function(e,t){var r=y(t,e.dataID,e.variables);return S({data:e.data},r,e.typeName,{getDataID:this._getDataID,path:e.path,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull})},t._processOptimisticModuleImport=function(e,t){var r=_(e),n=[],i=this._normalizeModuleImport(t,r);return O(i),n.push({operation:this._operation,payload:i,updater:null}),this._processOptimisticFollowups(i,n),n},t._processAsyncOptimisticModuleImport=function(e,t){var r=this;e.load(t.operationReference).then((function(e){if(null!=e&&"started"===r._state){var n,i=r._processOptimisticModuleImport(e,t);if(i.forEach((function(e){return r._publishQueue.applyUpdate(e)})),null==r._optimisticUpdates);else(n=r._optimisticUpdates).push.apply(n,(0,a.default)(i)),r._publishQueue.run()}}))},t._processResponses=function(e){var t=this;return null!==this._optimisticUpdates&&(this._optimisticUpdates.forEach((function(e){return t._publishQueue.revertUpdate(e)})),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),e.map((function(e){var r=S(e,t._operation.root,E,{getDataID:t._getDataID,path:[],reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return t._publishQueue.commitPayload(t._operation,r,t._updater),r}))},t._processPayloadFollowups=function(e){var t=this;"completed"!==this._state&&e.forEach((function(e){var r=e.incrementalPlaceholders,n=e.moduleImportPayloads,i=e.isFinal;if(t._state=i?"loading_final":"loading_incremental",t._updateActiveState(),i&&(t._incrementalPayloadsPending=!1),n&&0!==n.length){var a=t._operationLoader;a||v(!1),n.forEach((function(e){t._processModuleImportPayload(e,a)}))}if(r&&0!==r.length&&(t._incrementalPayloadsPending="loading_final"!==t._state,r.forEach((function(r){t._processIncrementalPlaceholder(e,r)})),t._isClientPayload||"loading_final"===t._state)){var o=[];if(r.forEach((function(e){"defer"===e.kind&&o.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))})),o.length>0){var s=t._publishQueue.run();t._updateOperationTracker(s),t._processPayloadFollowups(o)}}}))},t._maybeCompleteSubscriptionOperationTracking=function(){"subscription"===this._operation.request.node.params.operationKind&&0===this._pendingModulePayloadsCount&&!1===this._incrementalPayloadsPending&&this._completeOperationTracker()},t._processModuleImportPayload=function(e,t){var r=this,n=t.get(e.operationReference);if(null!=n){var i=_(n);this._handleModuleImportPayload(e,i),this._maybeCompleteSubscriptionOperationTracking()}else{var a=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var o=function(){r._pendingModulePayloadsCount--,r._maybeCompleteSubscriptionOperationTracking()};f.from(new Promise((function(r,n){t.load(e.operationReference).then(r,n)}))).map((function(t){null!=t&&r._schedule((function(){r._handleModuleImportPayload(e,_(t))}))})).subscribe({complete:function(){r._complete(a),o()},error:function(e){r._error(e),o()},start:function(e){return r._start(a,e)}})}},t._handleModuleImportPayload=function(e,t){var r=this._normalizeModuleImport(e,t);this._publishQueue.commitPayload(this._operation,r);var n=this._publishQueue.run();this._updateOperationTracker(n),this._processPayloadFollowups([r])},t._processIncrementalPlaceholder=function(e,t){var r,n=t.label,i=t.path.map(String).join("."),a=this._incrementalResults.get(n);null==a&&(a=new Map,this._incrementalResults.set(n,a));var o,s=a.get(i),u=null!=s&&"response"===s.kind?s.responses:null;a.set(i,{kind:"placeholder",placeholder:t}),"stream"===t.kind?o=t.parentID:"defer"===t.kind?o=t.selector.dataID:v(!1);var l,c,f=e.source.get(o),h=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter((function(e){var t=m(e.dataID,e.fieldKey);return e.dataID===o||t===o}));null==f&&v(!1);var p=this._source.get(o);if(null!=p){l=d.update(p.record,f);var _=new Map,y=function(e){var t,r,n=(t=e,null!==(r=JSON.stringify(g(t)))&&void 0!==r?r:"");_.set(n,e)};p.fieldPayloads.forEach(y),h.forEach(y),c=Array.from(_.values())}else l=f,c=h;if(this._source.set(o,{record:l,fieldPayloads:c}),null!=u){var b=this._processIncrementalResponses(u),E=this._publishQueue.run();this._updateOperationTracker(E),this._processPayloadFollowups(b)}},t._processIncrementalResponses=function(e){var t=this,r=[];return e.forEach((function(e){var n=e.label,i=e.path,a=e.response,o=t._incrementalResults.get(n);if(null==o&&(o=new Map,t._incrementalResults.set(n,o)),-1!==n.indexOf("$defer$")){var s=i.map(String).join("."),u=o.get(s);if(null==u)return u={kind:"response",responses:[e]},void o.set(s,u);if("response"===u.kind)return void u.responses.push(e);var l=u.placeholder;"defer"!==l.kind&&v(!1),r.push(t._processDeferResponse(n,i,l,a))}else{var c=i.slice(0,-2).map(String).join("."),d=o.get(c);if(null==d)return d={kind:"response",responses:[e]},void o.set(c,d);if("response"===d.kind)return void d.responses.push(e);var f=d.placeholder;"stream"!==f.kind&&v(!1),r.push(t._processStreamResponse(n,i,f,a))}})),r},t._processDeferResponse=function(e,t,r,n){var i=r.selector.dataID,a=S(n,r.selector,r.typeName,{getDataID:this._getDataID,path:r.path,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull});this._publishQueue.commitPayload(this._operation,a);var o=this._source.get(i);null==o&&v(!1);var s=o.fieldPayloads;if(0!==s.length){var u,l={errors:null,fieldPayloads:s,incrementalPlaceholders:null,moduleImportPayloads:null,source:h.create(),isFinal:!0===(null===(u=n.extensions)||void 0===u?void 0:u.is_final)};this._publishQueue.commitPayload(this._operation,l)}return a},t._processStreamResponse=function(e,t,r,n){var i=r.parentID,o=r.node,s=r.variables,u=o.selections[0];(null==u||"LinkedField"!==u.kind||!0!==u.plural)&&v(!1);var l=this._normalizeStreamItem(n,i,u,s,t,r.path),c=l.fieldPayloads,d=l.itemID,f=l.itemIndex,p=l.prevIDs,_=l.relayPayload,g=l.storageKey;if(this._publishQueue.commitPayload(this._operation,_,(function(e){var t=e.get(i);if(null!=t){var r=t.getLinkedRecords(g);if(null!=r&&r.length===p.length&&!r.some((function(e,t){return p[t]!==(e&&e.getDataID())}))){var n=(0,a.default)(r);n[f]=e.get(d),t.setLinkedRecords(n,g)}}})),0!==c.length){var m={errors:null,fieldPayloads:c,incrementalPlaceholders:null,moduleImportPayloads:null,source:h.create(),isFinal:!1};this._publishQueue.commitPayload(this._operation,m)}return _},t._normalizeStreamItem=function(e,t,r,n,i,o){var s,u,l,c=e.data;"object"!=typeof c&&v(!1);var f=null!==(s=r.alias)&&void 0!==s?s:r.name,h=I(r,n),p=this._source.get(t);null==p&&v(!1);var _=p.record,g=p.fieldPayloads,b=d.getLinkedRecordIDs(_,h);null==b&&v(!1);var E=i[i.length-1],R=parseInt(E,10);R===E&&R>=0||v(!1);var O=null!==(u=r.concreteType)&&void 0!==u?u:c[D];"string"!=typeof O&&v(!1);var T=(null!==(l=this._getDataID(c,O))&&void 0!==l?l:b&&b[R])||m(t,h,R);"string"!=typeof T&&v(!1);var k=y(r,T,n),A=d.clone(_),P=(0,a.default)(b);return P[R]=T,d.setLinkedRecordIDs(A,h,P),this._source.set(t,{record:A,fieldPayloads:g}),{fieldPayloads:g,itemID:T,itemIndex:R,prevIDs:b,relayPayload:S(e,k,O,{getDataID:this._getDataID,path:[].concat((0,a.default)(o),[f,String(R)]),reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull}),storageKey:h}},t._updateOperationTracker=function(e){null!=this._operationTracker&&null!=e&&e.length>0&&this._operationTracker.update(this._operation.request,new Set(e))},t._completeOperationTracker=function(){null!=this._operationTracker&&this._operationTracker.complete(this._operation.request)},e}();function S(e,t,r,n){var i,a=e.data,o=e.errors,u=h.create(),l=d.create(t.dataID,r);return u.set(t.dataID,l),s(s({},p.normalize(u,t,a,n)),{},{errors:o,isFinal:!0===(null===(i=e.extensions)||void 0===i?void 0:i.is_final)})}function O(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&v(!1)}e.exports={execute:function(e){return new R(e)}}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(21),o=a.EXISTENT,s=a.NONEXISTENT,u=a.UNKNOWN,l=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach((function(r){t._records.set(r,e[r])}))}var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(e){this._records.set(e,null)},t.get=function(e){return this._records.get(e)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(e){return this._records.has(e)?null==this._records.get(e)?s:o:u},t.has=function(e){return this._records.has(e)},t.remove=function(e){this._records.delete(e)},t.set=function(e,t){this._records.set(e,t)},t.size=function(){return this._records.size},t.toJSON=function(){var e,t={},r=n(this._records);try{for(r.s();!(e=r.n()).done;){var i=e.value,a=i[0],o=i[1];t[a]=o}}catch(e){r.e(e)}finally{r.f()}return t},e}();e.exports=l},function(e,t,r){"use strict";var n=r(3)(r(19));function i(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o=r(8),s=r(6),u=r(25),l=(r(10),r(0)),c=(r(2),r(5)),d=c.CONDITION,f=c.CLIENT_EXTENSION,h=c.DEFER,p=c.FLIGHT_FIELD,_=c.INLINE_FRAGMENT,v=c.LINKED_FIELD,g=c.LINKED_HANDLE,m=c.MODULE_IMPORT,y=c.SCALAR_FIELD,b=c.SCALAR_HANDLE,E=c.STREAM,D=c.TYPE_DISCRIMINATOR,I=r(7),R=I.generateClientID,S=(I.isClientID,r(13).createNormalizationSelector),O=r(16),T=O.refineToReactFlightPayloadData,k=O.REACT_FLIGHT_QUERIES_STORAGE_KEY,A=O.REACT_FLIGHT_TREE_STORAGE_KEY,P=O.REACT_FLIGHT_TYPE_NAME,F=r(1),N=F.getArgumentValues,w=F.getHandleStorageKey,L=F.getModuleComponentKey,M=F.getModuleOperationKey,x=F.getStorageKey,j=F.TYPENAME_KEY,C=F.ROOT_ID,U=F.ROOT_TYPE,V=r(22),K=V.generateTypeID,q=V.TYPE_SCHEMA_TYPE;var G=function(){function e(e,t,r){this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=r.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._moduleImportPayloads=[],this._path=r.path?(0,n.default)(r.path):[],this._recordSource=e,this._variables=t,this._reactFlightPayloadDeserializer=r.reactFlightPayloadDeserializer}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var n=this._recordSource.get(t);return n||l(!1),this._traverseSelections(e,n,r),{errors:null,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,moduleImportPayloads:this._moduleImportPayloads,source:this._recordSource,isFinal:!1}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||l(!1),this._variables[e]},t._getRecordType=function(e){var t=e[j];return null==t&&l(!1),t},t._traverseSelections=function(e,t,r){for(var n=0;n<e.selections.length;n++){var i=e.selections[n];switch(i.kind){case y:case v:this._normalizeField(e,i,t,r);break;case d:this._getVariableValue(i.condition)===i.passingValue&&this._traverseSelections(i,t,r);break;case _:var a=i.abstractKey;if(null==a)s.getType(t)===i.type&&this._traverseSelections(i,t,r);else if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var u=r.hasOwnProperty(a),c=s.getType(t),I=K(c),R=this._recordSource.get(I);null==R&&(R=s.create(I,q),this._recordSource.set(I,R)),s.setValue(R,a,u),u&&this._traverseSelections(i,t,r)}else{var S=r.hasOwnProperty(a),O=this._isUnmatchedAbstractType;this._isUnmatchedAbstractType=this._isUnmatchedAbstractType||!S,this._traverseSelections(i,t,r),this._isUnmatchedAbstractType=O}break;case D:if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var T=i.abstractKey,k=r.hasOwnProperty(T),A=s.getType(t),P=K(A),F=this._recordSource.get(P);null==F&&(F=s.create(P,q),this._recordSource.set(P,F)),s.setValue(F,T,k)}break;case g:case b:var L=i.args?N(i.args,this._variables):{},M=x(i,this._variables),j=w(i,this._variables);this._handleFieldPayloads.push({args:L,dataID:s.getDataID(t),fieldKey:M,handle:i.handle,handleKey:j,handleArgs:i.handleArgs?N(i.handleArgs,this._variables):{}});break;case m:this._normalizeModuleImport(e,i,t,r);break;case h:this._normalizeDefer(i,t,r);break;case E:this._normalizeStream(i,t,r);break;case f:var C=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(i,t,r),this._isClientExtension=C;break;case p:if(!o.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._normalizeFlightField(e,i,t,r);break;default:l(!1)}}},t._normalizeDefer=function(e,t,r){!1===(null===e.if||this._getVariableValue(e.if))?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,n.default)(this._path),selector:S(e,s.getDataID(t),this._variables),typeName:s.getType(t)})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r),!0===(null===e.if||this._getVariableValue(e.if))&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,n.default)(this._path),parentID:s.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,i){"object"==typeof i&&i||l(!1);var a=s.getType(r),o=L(t.documentName),u=i[o];s.setValue(r,o,null!=u?u:null);var c=M(t.documentName),d=i[c];s.setValue(r,c,null!=d?d:null),null!=d&&this._moduleImportPayloads.push({data:i,dataID:s.getDataID(r),operationReference:d,path:(0,n.default)(this._path),typeName:a,variables:this._variables})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||l(!1);var i=t.alias||t.name,a=x(t,this._variables),o=n[i];if(null!=o)t.kind===y?s.setValue(r,a,o):t.kind===v?(this._path.push(i),t.plural?this._normalizePluralLink(t,r,a,o):this._normalizeLink(t,r,a,o),this._path.pop()):l(!1);else{if(void 0===o){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void 0}s.setValue(r,a,null)}},t._normalizeFlightField=function(e,t,r,n){var a=t.alias||t.name,o=x(t,this._variables),u=n[a];if(null!=u){var c=T(u);null==c&&l(!1),"function"!=typeof this._reactFlightPayloadDeserializer&&l(!1);var d=this._reactFlightPayloadDeserializer(c.tree),f=R(s.getDataID(r),x(t,this._variables)),h=this._recordSource.get(f);null==h&&(h=s.create(f,P),this._recordSource.set(f,h)),s.setValue(h,A,d);var p,_=[],v=i(c.queries);try{for(v.s();!(p=v.n()).done;){var g=p.value;null!=g.response.data&&this._moduleImportPayloads.push({data:g.response.data,dataID:C,operationReference:g.module,path:[],typeName:U,variables:g.variables}),_.push({module:g.module,variables:g.variables})}}catch(e){v.e(e)}finally{v.f()}s.setValue(h,k,_),s.setLinkedRecordID(r,o,f)}else s.setValue(r,o,null)},t._normalizeLink=function(e,t,r,n){var i;"object"==typeof n&&n||l(!1);var a=this._getDataId(n,null!==(i=e.concreteType)&&void 0!==i?i:this._getRecordType(n))||s.getLinkedRecordID(t,r)||R(s.getDataID(t),r);"string"!=typeof a&&l(!1),s.setLinkedRecordID(t,r,a);var o=this._recordSource.get(a);if(o)0;else{var u=e.concreteType||this._getRecordType(n);o=s.create(a,u),this._recordSource.set(a,o)}this._traverseSelections(e,o,n)},t._normalizePluralLink=function(e,t,r,n){var i=this;Array.isArray(n)||l(!1);var a=s.getLinkedRecordIDs(t,r),o=[];n.forEach((function(n,u){var c;if(null!=n){i._path.push(String(u)),"object"!=typeof n&&l(!1);var d=i._getDataId(n,null!==(c=e.concreteType)&&void 0!==c?c:i._getRecordType(n))||a&&a[u]||R(s.getDataID(t),r,u);"string"!=typeof d&&l(!1),o.push(d);var f=i._recordSource.get(d);if(f)0;else{var h=e.concreteType||i._getRecordType(n);f=s.create(d,h),i._recordSource.set(d,f)}0,i._traverseSelections(e,f,n),i._path.pop()}else o.push(n)})),s.setLinkedRecordIDs(t,r,o)},t._validateRecordType=function(e,t,r){var n;null!==(n=t.concreteType)&&void 0!==n||this._getRecordType(r),s.getDataID(e)},t._validateConflictingFieldsWithIdenticalId=function(e,t,r){},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,r,n){0},e}(),H=u.instrument("RelayResponseNormalizer.normalize",(function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;return new G(e,o,n).normalizeResponse(a,i,r)}));e.exports={normalize:H}},function(e,t,r){"use strict";var n=r(56),i=r(35),a=r(15),o=r(36),s=r(37),u=r(58),l=r(0),c=(r(2),function(){function e(e,t,r){this._hasStoreSnapshot=!1,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=r}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&l(!1),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:e,payload:t,updater:r})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:e})},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(e){this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var t=this._commitData();return(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size)&&(this._hasStoreSnapshot||(this._store.snapshot(),this._hasStoreSnapshot=!0),this._applyUpdates()),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify(e,t)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,n=e.operation,i=e.updater,a=r.source,c=r.fieldPayloads,f=new o(this._store.getSource(),a),h=new s(f,this._getDataID);if(c&&c.length&&c.forEach((function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||l(!1),r.update(h,e)})),i){var p=n.fragment;null==p&&l(!1),i(new u(f,h,p),d(a,p))}var _=h.getIDsMarkedForInvalidation();return this._store.publish(a,_),h.isStoreMarkedForInvalidation()},t._commitData=function(){var e=this;if(!this._pendingData.size)return!1;var t=!1;return this._pendingData.forEach((function(r){if("payload"===r.kind){var i=e._publishSourceFromPayload(r);t=t||i}else if("source"===r.kind){var u=r.source;e._store.publish(u)}else{var l=r.updater,c=a.create(),d=new o(e._store.getSource(),c),f=new s(d,e._getDataID);n.applyWithGuard(l,null,[f],null,"RelayPublishQueue:commitData"),t=t||f.isStoreMarkedForInvalidation();var h=f.getIDsMarkedForInvalidation();e._store.publish(c,h)}})),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=a.create(),r=new o(this._store.getSource(),t),i=new s(r,this._getDataID,this._handlerProvider),l=function(e){if(e.storeUpdater){var t=e.storeUpdater;n.applyWithGuard(t,null,[i],null,"RelayPublishQueue:applyUpdates")}else{var a,o=e.operation,s=e.payload,l=e.updater,c=s.source,f=s.fieldPayloads,h=new u(r,i,o.fragment);c&&(i.publishSource(c,f),a=d(c,o.fragment)),l&&n.applyWithGuard(l,null,[h,a],null,"RelayPublishQueue:applyUpdates")}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(l),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach((function(t){l(t),e._appliedOptimisticUpdates.add(t)})),this._pendingOptimisticUpdates.clear()),this._store.publish(t)},e}());function d(e,t){return i.read(e,t).data}e.exports=c},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(0),i=r(7).generateClientID,a=r(1).getStableStorageKey,o=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&n(!1),e},t.getValue=function(e,t){var r=a(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){s(e)||n(!1);var i=a(t,r);return this._mutator.setValue(this._dataID,i,e),this},t.getLinkedRecord=function(e,t){var r=a(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,i){t instanceof e||n(!1);var o=a(r,i),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var o,s=a(e,r),u=i(this.getDataID(),s);n=null!==(o=this._source.get(u))&&void 0!==o?o:this._source.create(u,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=a(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==i?i:i.map((function(e){return null!=e?r._source.get(e):e}))},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||n(!1);var i=a(t,r),o=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,i,o),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function s(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(s)}e.exports=o},function(e,t,r){"use strict";var n=r(0),i=r(1),a=i.getStorageKey,o=i.ROOT_TYPE,s=function(){function e(e,t,r){this.__mutator=e,this.__recordSource=t,this._readSelector=r}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t.getOperationRoot=function(){var e=this.__recordSource.get(this._readSelector.dataID);return e||(e=this.__recordSource.create(this._readSelector.dataID,o)),e},t._getRootField=function(e,t,r){var i=e.node.selections.find((function(e){return"LinkedField"===e.kind&&e.name===t}));return i&&"LinkedField"===i.kind||n(!1),i.plural!==r&&n(!1),i},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),r=a(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=a(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(r)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},e}();e.exports=s},function(e,t,r){"use strict";e.exports=function(e){0}},function(e,t,r){"use strict";var n=1e5;e.exports=function(){return n++}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o=r(62),s=r(6),u=r(64),l=r(25),c=r(35),d=r(65),f=r(16),h=r(1),p=(r(20),r(38)),_=r(66),v=r(0),g=r(42),m=r(43),y=r(67),b=r(1),E=b.ROOT_ID,D=b.ROOT_TYPE,I=function(){function e(e,t){var r,i,a,o,u,l=this;(0,n.default)(this,"_gcStep",(function(){l._gcRun&&(l._gcRun.next().done?l._gcRun=null:l._gcScheduler(l._gcStep))})),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(r=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==r?r:0,this._gcRun=null,this._gcScheduler=null!==(i=null==t?void 0:t.gcScheduler)&&void 0!==i?i:y,this._getDataID=null!==(a=null==t?void 0:t.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==a?a:p,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(o=null==t?void 0:t.log)&&void 0!==o?o:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!==(u=null==t?void 0:t.operationLoader)&&void 0!==u?u:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._subscriptions=new Set,this._updatedRecordIDs={},function(e){if(!e.has(E)){var t=s.create(E,D);e.set(E,t)}}(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.check=function(e,t){var r,n,i,a=e.root,s=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource,u=this._globalInvalidationEpoch,l=this._roots.get(e.request.identifier),c=null!=l?l.epoch:null;if(null!=u&&(null==c||c<=u))return{status:"stale"};var d=null!==(n=null==t?void 0:t.target)&&void 0!==n?n:s,f=null!==(i=null==t?void 0:t.handlers)&&void 0!==i?i:[];return function(e,t,r,n){var i=e.mostRecentlyInvalidatedAt,a=e.status;if("number"==typeof i&&(null==t||i>t))return{status:"stale"};if("missing"===a)return{status:"missing"};if(null!=r&&null!=n){if(r<=Date.now()-n)return{status:"stale"}}return{status:"available",fetchTime:null!=r?r:null}}(o.check(s,d,a,f,this._operationLoader,this._getDataID),c,null==l?void 0:l.fetchTime,this._queryCacheExpirationTime)},t.retain=function(e){var t=this,r=e.request.identifier,n=!1,i=this._roots.get(r);return null!=i?(0===i.refCount&&(this._releaseBuffer=this._releaseBuffer.filter((function(e){return e!==r}))),i.refCount+=1):this._roots.set(r,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:function(){if(!n){n=!0;var e=t._roots.get(r);if(null!=e&&(e.refCount--,0===e.refCount)){var i=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=i&&e.fetchTime<=Date.now()-i)t._roots.delete(r),t.scheduleGC();else if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var a=t._releaseBuffer.shift();t._roots.delete(a),t.scheduleGC()}}}}}},t.lookup=function(e){var t=this.getSource();return c.read(t,e)},t.notify=function(e,t){var r=this,n=this.__log;null!=n&&n({name:"store.notify.start"}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch);var i=this.getSource(),a=[],o=!g(this._updatedRecordIDs);if(this._subscriptions.forEach((function(e){var t=r._updateSubscription(i,e,o);null!=t&&a.push(t)})),this._invalidationSubscriptions.forEach((function(e){r._updateInvalidationSubscription(e,!0===t)})),null!=n&&n({name:"store.notify.complete",updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs={},this._invalidatedRecordIDs.clear(),null!=e){var s=e.request.identifier,u=this._roots.get(s);if(null!=u)u.epoch=this._currentWriteEpoch,u.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var l={operation:e,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(s),this._roots.set(s,l)}}return a},t.publish=function(e,t){var r,n=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource;!function(e,t,r,n,i,a){n&&n.forEach((function(n){var i,o=e.get(n),u=t.get(n);null!==u&&((i=null!=o?s.clone(o):null!=u?s.clone(u):null)&&(s.setValue(i,h.INVALIDATED_AT_KEY,r),a.add(n),e.set(n,i)))}));for(var o=t.getRecordIDs(),u=0;u<o.length;u++){var l=o[u],c=t.get(l),d=e.get(l);if(c&&d){var p=s.getType(d)===f.REACT_FLIGHT_TYPE_NAME?c:s.update(d,c);p!==d&&(i[l]=!0,e.set(l,p))}else null===c?(e.delete(l),null!==d&&(i[l]=!0)):c&&(e.set(l,c),i[l]=!0)}}(n,e,this._currentWriteEpoch+1,t,this._updatedRecordIDs,this._invalidatedRecordIDs);var i=this.__log;null!=i&&i({name:"store.publish",source:e,optimistic:n===this._optimisticSource})},t.subscribe=function(e,t){var r=this,n={backup:null,callback:t,snapshot:e,stale:!1};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.holdGC=function(){var e=this;this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e.scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t._updateSubscription=function(e,t,r){var n=t.backup,i=t.callback,a=t.snapshot,o=t.stale,s=r&&_(a.seenRecords,this._updatedRecordIDs);if(o||s){var u=s||!n?c.read(e,a.selector):n;return u={data:m(a.data,u.data),isMissingData:u.isMissingData,seenRecords:u.seenRecords,selector:u.selector,missingRequiredFields:u.missingRequiredFields},t.snapshot=u,t.stale=!1,u.data!==a.data?(i(u),a.selector.owner):void 0}},t.lookupInvalidationState=function(e){var t=this,r=new Map;return e.forEach((function(e){var n,i=t.getSource().get(e);r.set(e,null!==(n=s.getInvalidationEpoch(i))&&void 0!==n?n:null)})),r.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:r}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,r=e.invalidations;if(t.get("global")!==r.get("global"))return!0;var n,a=i(e.dataIDs);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(t.get(o)!==r.get(o))return!0}}catch(e){a.e(e)}finally{a.f()}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,n={callback:t,invalidationState:e};return this._invalidationSubscriptions.add(n),{dispose:function(){r._invalidationSubscriptions.delete(n)}}},t._updateInvalidationSubscription=function(e,t){var r=this,n=e.callback,i=e.invalidationState.dataIDs;(t||i.some((function(e){return r._invalidatedRecordIDs.has(e)})))&&n()},t.snapshot=function(){var e=this;null!=this._optimisticSource&&v(!1);var t=this.__log;null!=t&&t({name:"store.snapshot"}),this._subscriptions.forEach((function(t){if(t.stale){var r=t.snapshot,n=c.read(e.getSource(),r.selector),i=m(r.data,n.data);n.data=i,t.backup=n}else t.backup=t.snapshot})),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=u.create(this.getSource())},t.restore=function(){null==this._optimisticSource&&v(!1);var e=this.__log;null!=e&&e({name:"store.restore"}),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._subscriptions.forEach((function(e){var t=e.backup;e.backup=null,t?(t.data!==e.snapshot.data&&(e.stale=!0),e.snapshot={data:e.snapshot.data,isMissingData:t.isMissingData,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields}):e.stale=!0}))},t.scheduleGC=function(){this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(null==this._optimisticSource)for(var e=this._collect();!e.next().done;);},t._collect=function*(){e:for(;;){var e,t=this._currentWriteEpoch,r=new Set,n=i(this._roots.values());try{for(n.s();!(e=n.n()).done;){var a=e.value.operation.root;if(d.mark(this._recordSource,a,r,this._operationLoader),yield,t!==this._currentWriteEpoch)continue e}}catch(e){n.e(e)}finally{n.f()}var o=this.__log;if(null!=o&&o({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var s=this._recordSource.getRecordIDs(),u=0;u<s.length;u++){var l=s[u];r.has(l)||this._recordSource.remove(l)}return}},e}();l.instrumentMethods(I.prototype,{lookup:"RelayModernStore.prototype.lookup"}),e.exports=I},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(5),o=r(8),s=r(6),u=r(36),l=r(37),c=r(16),d=r(1),f=r(41),h=r(63),p=r(26),_=r(0),v=r(7).isClientID,g=r(21),m=g.EXISTENT,y=g.UNKNOWN,b=r(22).generateTypeID,E=a.CONDITION,D=a.CLIENT_EXTENSION,I=a.DEFER,R=a.FLIGHT_FIELD,S=a.FRAGMENT_SPREAD,O=a.INLINE_FRAGMENT,T=a.LINKED_FIELD,k=a.LINKED_HANDLE,A=a.MODULE_IMPORT,P=a.SCALAR_FIELD,F=a.SCALAR_HANDLE,N=a.STREAM,w=a.TYPE_DISCRIMINATOR,L=d.ROOT_ID,M=d.getModuleOperationKey,x=d.getStorageKey,j=d.getArgumentValues;var C=function(){function e(e,t,r,n,i,a){var o=new u(e,t);this._mostRecentlyInvalidatedAt=null,this._handlers=n,this._mutator=o,this._operationLoader=null!=i?i:null,this._recordSourceProxy=new l(o,a),this._recordWasMissing=!1,this._source=e,this._variables=r}var t=e.prototype;return t.check=function(e,t){return this._traverse(e,t),!0===this._recordWasMissing?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||_(!1),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?j(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!v(t)){var r,i=this._getDataForHandlers(e,t),a=i.args,o=i.record,s=n(this._handlers);try{for(s.s();!(r=s.n()).done;){var u=r.value;if("scalar"===u.kind){var l=u.handle(e,o,a,this._recordSourceProxy);if(void 0!==l)return l}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,i=this._getDataForHandlers(e,t),a=i.args,o=i.record,s=n(this._handlers);try{for(s.s();!(r=s.n()).done;){var u=r.value;if("linked"===u.kind){var l=u.handle(e,o,a,this._recordSourceProxy);if(void 0!==l&&(null===l||this._mutator.getStatus(l)===m))return l}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,i=this,a=this._getDataForHandlers(e,t),o=a.args,s=a.record,u=n(this._handlers);try{for(u.s();!(r=u.n()).done;){var l=r.value;if("pluralLinked"===l.kind){var c=l.handle(e,s,o,this._recordSourceProxy);if(null!=c){if(c.every((function(e){return null!=e&&i._mutator.getStatus(e)===m})))return c}else if(null===c)return null}}}catch(e){u.e(e)}finally{u.f()}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);if(r===y&&this._handleMissing(),r===m){var n=this._source.get(t),i=s.getInvalidationEpoch(n);null!=i&&(this._mostRecentlyInvalidatedAt=null!=this._mostRecentlyInvalidatedAt?Math.max(this._mostRecentlyInvalidatedAt,i):i),this._traverseSelections(e.selections,t)}},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case P:r._checkScalar(n,t);break;case T:n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case E:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case O:var i=n.abstractKey;if(null==i)r._mutator.getType(t)===n.type&&r._traverseSelections(n.selections,t);else if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var a=r._mutator.getType(t);null==a&&_(!1);var s=b(a),u=r._mutator.getValue(s,i);!0===u?r._traverseSelections(n.selections,t):null==u&&r._handleMissing()}else r._traverseSelections(n.selections,t);break;case k:var l=f(n,e,r._variables);l.plural?r._checkPluralLink(l,t):r._checkLink(l,t);break;case F:var c=h(n,e,r._variables);r._checkScalar(c,t);break;case A:r._checkModuleImport(n,t);break;case I:case N:r._traverseSelections(n.selections,t);break;case S:_(!1);break;case D:var d=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=d;break;case w:if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var p=n.abstractKey,v=r._mutator.getType(t);null==v&&_(!1);var g=b(v);null==r._mutator.getValue(g,p)&&r._handleMissing()}break;case R:if(!o.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._checkFlightField(n,t);break;default:_(!1)}}))},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&_(!1);var n=M(e.documentName),i=this._mutator.getValue(t,n);if(null!=i){var a=r.get(i);if(null!=a){var o=p(a);this._traverse(o,t)}else this._handleMissing()}else void 0===i&&this._handleMissing()},t._checkScalar=function(e,t){var r=x(e,this._variables),n=this._mutator.getValue(t,r);void 0===n&&void 0!==(n=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,n)},t._checkLink=function(e,t){var r=x(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);void 0===n&&(null!=(n=this._handleMissingLinkField(e,t))?this._mutator.setLinkedRecordID(t,r,n):null===n&&this._mutator.setValue(t,r,null)),null!=n&&this._traverse(e,n)},t._checkPluralLink=function(e,t){var r=this,n=x(e,this._variables),i=this._mutator.getLinkedRecordIDs(t,n);void 0===i&&(null!=(i=this._handleMissingPluralLinkField(e,t))?this._mutator.setLinkedRecordIDs(t,n,i):null===i&&this._mutator.setValue(t,n,null)),i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._checkFlightField=function(e,t){var r=x(e,this._variables),i=this._mutator.getLinkedRecordID(t,r);if(null==i)return void 0===i?void this._handleMissing():void 0;var a=this._mutator.getValue(i,c.REACT_FLIGHT_TREE_STORAGE_KEY),o=this._mutator.getValue(i,c.REACT_FLIGHT_QUERIES_STORAGE_KEY);if(null!=a&&Array.isArray(o)){var s=this._operationLoader;null===s&&_(!1);var u,l=this._variables,d=n(o);try{for(d.s();!(u=d.n()).done;){var f=u.value;this._variables=f.variables;var h=s.get(f.module);if(null!=h){var v=p(h);this._traverseSelections(v.selections,L)}else this._handleMissing()}}catch(e){d.e(e)}finally{d.f()}this._variables=l}else this._handleMissing()},e}();e.exports={check:function(e,t,r,n,i,a){var o=r.dataID,s=r.node,u=r.variables;return new C(e,t,u,n,i,a).check(s,o)}}},function(e,t,r){"use strict";var n=r(10),i=r(0),a=r(5).SCALAR_FIELD,o=r(1).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===a||i(!1);var u=o(e,r);return{kind:"ScalarField",alias:s.alias,name:u,storageKey:u,args:null}}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var a=r(15),o=Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),s=function(){function e(e){this._base=e,this._sink=a.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==o:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===o?void 0:t}return this._base.get(e)},t.getStatus=function(e){var t=this.get(e);return void 0===t?"UNKNOWN":null===t?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=a.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,o)},t.set=function(e,t){this._sink.set(e,t)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var e=this,t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this._base.toJSON());return this._sink.getRecordIDs().forEach((function(r){var n=e.get(r);void 0===n?delete t[r]:t[r]=n})),t},e}();e.exports={create:function(e){return new s(e)}}},function(e,t,r){"use strict";function n(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw o}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=r(5),o=r(8),s=r(6),u=r(16),l=r(1),c=r(41),d=r(26),f=r(0),h=r(22).generateTypeID,p=a.CONDITION,_=a.CLIENT_EXTENSION,v=a.DEFER,g=a.FLIGHT_FIELD,m=a.FRAGMENT_SPREAD,y=a.INLINE_FRAGMENT,b=a.LINKED_FIELD,E=a.MODULE_IMPORT,D=a.LINKED_HANDLE,I=a.SCALAR_FIELD,R=a.SCALAR_HANDLE,S=a.STREAM,O=a.TYPE_DISCRIMINATOR,T=l.ROOT_ID,k=l.getStorageKey,A=l.getModuleOperationKey;var P=function(){function e(e,t,r,n){this._operationLoader=null!=n?n:null,this._operationName=null,this._recordSource=e,this._references=r,this._variables=t}var t=e.prototype;return t.mark=function(e,t){"Operation"!==e.kind&&"SplitOperation"!==e.kind||(this._operationName=e.name),this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||f(!1),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case b:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case p:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case y:if(null==n.abstractKey){var i=s.getType(t);null!=i&&i===n.type&&r._traverseSelections(n.selections,t)}else if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var a=s.getType(t),u=h(a);r._references.add(u),r._traverseSelections(n.selections,t)}else r._traverseSelections(n.selections,t);break;case m:f(!1);case D:var l=c(n,e,r._variables);l.plural?r._traversePluralLink(l,t):r._traverseLink(l,t);break;case v:case S:r._traverseSelections(n.selections,t);break;case I:case R:break;case O:if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var d=s.getType(t),T=h(d);r._references.add(T)}break;case E:r._traverseModuleImport(n,t);break;case _:r._traverseSelections(n.selections,t);break;case g:if(!o.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._traverseFlightField(n,t);break;default:f(!1)}}))},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null===r&&f(!1);var n=A(e.documentName),i=s.getValue(t,n);if(null!=i){var a=r.get(i);if(null!=a){var o=d(a).selections;this._traverseSelections(o,t)}}},t._traverseLink=function(e,t){var r=k(e,this._variables),n=s.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=k(e,this._variables),i=s.getLinkedRecordIDs(t,n);null!=i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._traverseFlightField=function(e,t){var r=k(e,this._variables),i=s.getLinkedRecordID(t,r);if(null!=i){this._references.add(i);var a=this._recordSource.get(i);if(null!=a){var o=s.getValue(a,u.REACT_FLIGHT_QUERIES_STORAGE_KEY);if(Array.isArray(o)){var l=this._operationLoader;null===l&&f(!1);var c,h=this._variables,p=n(o);try{for(p.s();!(c=p.n()).done;){var _=c.value;this._variables=_.variables;var v=_.module,g=l.get(v);if(null!=g){var m=d(g);this._traverse(m,T)}}}catch(e){p.e(e)}finally{p.f()}this._variables=h}}}},e}();e.exports={mark:function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;new P(e,o,r,n).mark(a,i)}}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){for(var r in e)if(n.call(e,r)&&n.call(t,r))return!0;return!1}},function(e,t,r){"use strict";var n=Promise.resolve();function i(e){setTimeout((function(){throw e}),0)}e.exports=function(e){n.then(e).catch(i)}},function(e,t,r){"use strict";var n=r(0),i=r(69).convertFetch;e.exports={create:function(e,t){var r=i(e);return{execute:function(e,i,a,o,s){if("subscription"===e.operationKind)return t||n(!1),o&&n(!1),t(e,i,a);var u=a.poll;return null!=u?(o&&n(!1),r(e,i,{force:!0}).poll(u)):r(e,i,a,o,s)}}}}},function(e,t,r){"use strict";var n=r(12);e.exports={convertFetch:function(e){return function(t,r,i,a,o){var s=e(t,r,i,a,o);return s instanceof Error?n.create((function(e){return e.error(s)})):n.from(s)}}}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var o=r(0),s=r(11),u=function(){function e(e){var t=e.size,r=e.ttl;t>0||o(!1),r>0||o(!1),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,n=l(e,t);this._responses.forEach((function(e,t){var n,i;n=e.fetchTime,i=r._ttl,n+i>=Date.now()||r._responses.delete(t)}));var i=this._responses.get(n);return null!=i?a(a({},i.payload),{},{extensions:a(a({},i.payload.extensions),{},{cacheTimestamp:i.fetchTime})}):null},t.set=function(e,t,r){var n=Date.now(),i=l(e,t);if(this._responses.delete(i),this._responses.set(i,{fetchTime:n,payload:r}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function l(e,t){return JSON.stringify(s({queryID:e,variables:t}))}e.exports=u},function(e,t,r){"use strict";var n=r(18),i=r(0),a=r(27),o=r(9).getRequest,s=r(14).createOperationDescriptor;e.exports=function(e,t){a(e)||i(!1);var r=o(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");var u=t.optimisticUpdater,l=t.configs,c=t.optimisticResponse,d=t.variables,f=s(r,d);return l&&(u=n.convert(l,r,u).optimisticUpdater),e.applyMutation({operation:f,response:c,updater:u})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";var n=r(3)(r(19)),i=r(18),a=r(0),o=r(27),s=(r(74),r(2),r(9).getRequest),u=r(7).generateUniqueClientID,l=r(14).createOperationDescriptor;e.exports=function(e,t){o(e)||a(!1);var r=s(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");if("Request"!==r.kind)throw new Error("commitMutation: Expected mutation to be of type request");var c=t.optimisticResponse,d=t.optimisticUpdater,f=t.updater,h=t.configs,p=t.cacheConfig,_=t.onError,v=t.onUnsubscribe,g=t.variables,m=t.uploadables,y=l(r,g,p,u());if("function"==typeof c&&(c=c()),h){var b=i.convert(h,r,d,f);d=b.optimisticUpdater,f=b.updater}var E=[];return{dispose:e.executeMutation({operation:y,optimisticResponse:c,optimisticUpdater:d,updater:f,uploadables:m}).subscribe({next:function(e){Array.isArray(e)?e.forEach((function(e){e.errors&&E.push.apply(E,(0,n.default)(e.errors))})):e.errors&&E.push.apply(E,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(y.fragment).data,0!==E.length?E:null)},error:_,unsubscribe:v}).unsubscribe}}},function(e,t,r){"use strict";r(3)(r(4));r(2),Object.prototype.hasOwnProperty;e.exports=function(){}},function(e,t,r){"use strict";var n=r(76);r(2);e.exports=function(e,t,r,i,a){return new n(e,r,i,a)}},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var o=r(8),s=r(10),u=r(0),l=r(45),c=r(46),d=(r(2),r(47).getPromiseForActiveRequest),f=r(14).createRequestDescriptor,h=r(13),p=h.areEqualSelectors,_=h.createReaderSelector,v=h.getSelectorsFromObject,g=function(){function e(e,t,r,i){var a=this;(0,n.default)(this,"_onChange",(function(){a._stale=!0,"function"==typeof a._callback&&a._callback()})),this._callback=i,this._context=e,this._data={},this._fragments=t,this._props={},this._resolvers={},this._stale=!1,this.setProps(r)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&b(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],i=t[r];if(n){var o=n.resolve();(e||o!==i)&&((e=e||a({},t))[r]=o)}else{var s=this._props[r],u=void 0!==s?s:null;!e&&l(u,i)||((e=e||a({},t))[r]=u)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=v(this._fragments,e);for(var r in this._props={},t)if(t.hasOwnProperty(r)){var n=t[r],i=this._resolvers[r];null==n?(null!=i&&i.dispose(),i=null):"PluralReaderSelector"===n.kind?null==i?i=new y(this._context.environment,n,this._onChange):(i instanceof y||u(!1),i.setSelector(n)):null==i?i=new m(this._context.environment,n,this._onChange):(i instanceof m||u(!1),i.setSelector(n)),this._props[r]=e[r],this._resolvers[r]=i}this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r];n&&n.setVariables(e,t)}this._stale=!0},e}(),m=function(){function e(e,t,r){var i=this;(0,n.default)(this,"_onChange",(function(e){i._data=e.data,i._isMissingData=e.isMissingData,i._missingRequiredFields=e.missingRequiredFields,i._callback()}));var a=e.lookup(t);this._callback=r,this._data=a.data,this._isMissingData=a.isMissingData,this._missingRequiredFields=a.missingRequiredFields,this._environment=e,this._selector=t,this._subscription=e.subscribe(a,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){if(!0===o.ENABLE_RELAY_CONTAINERS_SUSPENSE&&!0===this._isMissingData){var e,t=null!==(e=d(this._environment,this._selector.owner))&&void 0!==e?e:this._environment.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(this._selector.owner);if(null!=t)throw t}return null!=this._missingRequiredFields&&c(this._environment,this._missingRequiredFields),this._data},t.setSelector=function(e){if(null==this._subscription||!p(e,this._selector)){this.dispose();var t=this._environment.lookup(e);this._data=t.data,this._isMissingData=t.isMissingData,this._missingRequiredFields=t.missingRequiredFields,this._selector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!s(e,this._selector.variables)){var r=f(t,e),n=_(this._selector.node,this._selector.dataID,e,r);this.setSelector(n)}},e}(),y=function(){function e(e,t,r){var i=this;(0,n.default)(this,"_onChange",(function(e){i._stale=!0,i._callback()})),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelector(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(b)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;r<this._resolvers.length;r++){var n=t[r],i=this._resolvers[r].resolve();(e||i!==n)&&(e=e||t.slice(0,r)).push(i)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.setSelector=function(e){for(var t=e.selectors;this._resolvers.length>t.length;){this._resolvers.pop().dispose()}for(var r=0;r<t.length;r++)r<this._resolvers.length?this._resolvers[r].setSelector(t[r]):this._resolvers[r]=new m(this._environment,t[r],this._onChange);this._stale=!0},t.setVariables=function(e,t){this._resolvers.forEach((function(r){return r.setVariables(e,t)})),this._stale=!0},e}();function b(e){e&&e.dispose()}e.exports=g},function(e,t,r){"use strict";var n=r(3)(r(4));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var a=r(1),o=a.getModuleComponentKey,s=a.getModuleOperationKey;e.exports=function(e,t,r,a){var u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},a);return u[o(e)]=r,u[s(e)]=t,u}},function(e,t,r){"use strict";var n,i,a=r(0);e.exports=function(e){return n||(n=e.createContext(null),i=e),e!==i&&a(!1),n}},function(e,t,r){"use strict";var n=r(14).createOperationDescriptor,i=r(9).getRequest;e.exports=function(e,t,r,a){var o=i(t);if("query"!==o.params.operationKind)throw new Error("fetchQuery: Expected query operation");var s=n(o,r,a);return e.execute({operation:s}).map((function(){return e.lookup(s.fragment).data})).toPromise()}},function(e,t,r){"use strict";var n=r(8),i=r(42),a=r(11),o=r(13),s=o.getDataIDsFromFragment,u=o.getVariablesFromFragment,l=o.getSelector;e.exports=function(e,t){var r,o=l(e,t),c=null==o?"null":"SingularReaderSelector"===o.kind?o.owner.identifier:"["+o.selectors.map((function(e){return e.owner.identifier})).join(",")+"]",d=u(e,t),f=s(e,t);return n.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION?c+"/"+e.name+"/"+(null==d||i(d)?"{}":JSON.stringify(a(d)))+"/"+(void 0===f?"missing":null==f?"null":Array.isArray(f)?"["+f.join(",")+"]":f):c+"/"+e.name+"/"+JSON.stringify(a(d))+"/"+(null!==(r=JSON.stringify(f))&&void 0!==r?r:"missing")}},function(e,t,r){"use strict";var n=r(0),i=r(9).getInlineDataFragment,a=r(1).FRAGMENTS_KEY;e.exports=function(e,t){var r,o=i(e);if(null==t)return t;"object"!=typeof t&&n(!1);var s=null===(r=t[a])||void 0===r?void 0:r[o.name];return null==s&&n(!1),s}},function(e,t,r){"use strict";var n=r(18),i=(r(2),r(9).getRequest),a=r(14).createOperationDescriptor;e.exports=function(e,t){var r=i(t.subscription);if("subscription"!==r.params.operationKind)throw new Error("requestSubscription: Must use Subscription operation");var o=t.configs,s=t.onCompleted,u=t.onError,l=t.onNext,c=t.variables,d=t.cacheConfig,f=a(r,c,d),h=(o?n.convert(o,r,null,t.updater):t).updater;return{dispose:e.execute({operation:f,updater:h}).map((function(){return e.lookup(f.fragment).data})).subscribe({next:l,error:u,complete:s}).unsubscribe}}}])}));
|