react-relay 2.0.0-rc.2 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -2
- package/lib/ReactRelayContext.js +6 -3
- package/lib/ReactRelayFragmentContainer.js +48 -46
- package/lib/ReactRelayFragmentMockRenderer.js +5 -1
- package/lib/ReactRelayPaginationContainer.js +102 -68
- package/lib/ReactRelayQueryFetcher.js +54 -28
- package/lib/ReactRelayQueryRenderer.js +28 -20
- package/lib/ReactRelayRefetchContainer.js +70 -58
- package/lib/ReactRelayTestMocker.js +56 -43
- package/lib/ReactRelayTypes.js +1 -1
- package/lib/RelayContext.js +8 -2
- package/lib/assertFragmentMap.js +9 -7
- package/lib/buildReactRelayContainer.js +32 -23
- package/lib/index.js +41 -0
- package/lib/isRelayEnvironment.js +1 -1
- package/lib/isRelayVariables.js +1 -1
- package/lib/readContext.js +7 -4
- package/package.json +4 -4
- package/react-relay.js +2 -2
- package/react-relay.min.js +2 -2
- package/classic.js +0 -10
- package/compat.js +0 -10
- package/lib/ConcreteQuery.js +0 -10
- package/lib/GraphQLQueryRunner.js +0 -264
- package/lib/GraphQLRange.js +0 -1124
- package/lib/GraphQLSegment.js +0 -743
- package/lib/GraphQLStoreChangeEmitter.js +0 -141
- package/lib/GraphQLStoreQueryResolver.js +0 -288
- package/lib/GraphQLStoreRangeUtils.js +0 -126
- package/lib/QueryBuilder.js +0 -228
- package/lib/ReactRelayClassicExports.js +0 -29
- package/lib/ReactRelayCompatContainerBuilder.js +0 -175
- package/lib/ReactRelayCompatPublic.js +0 -28
- package/lib/ReactRelayContainerProfiler.js +0 -30
- package/lib/ReactRelayFragmentContainer-flowtest.js +0 -201
- package/lib/ReactRelayPaginationContainer-flowtest.js +0 -213
- package/lib/ReactRelayPublic.js +0 -29
- package/lib/ReactRelayRefetchContainer-flowtest.js +0 -191
- package/lib/RelayCacheProcessor.js +0 -196
- package/lib/RelayChangeTracker.js +0 -83
- package/lib/RelayClassicContainerUtils.js +0 -49
- package/lib/RelayClassicCore.js +0 -34
- package/lib/RelayClassicRecordState.js +0 -31
- package/lib/RelayCompatContainer.js +0 -25
- package/lib/RelayCompatEnvironment.js +0 -27
- package/lib/RelayCompatMutations.js +0 -133
- package/lib/RelayCompatPaginationContainer.js +0 -27
- package/lib/RelayCompatRefetchContainer.js +0 -27
- package/lib/RelayCompatTypes.js +0 -10
- package/lib/RelayContainer.js +0 -889
- package/lib/RelayContainerComparators.js +0 -75
- package/lib/RelayContainerProxy.js +0 -21
- package/lib/RelayDefaultNetworkLayer.js +0 -192
- package/lib/RelayEnvironment.js +0 -449
- package/lib/RelayEnvironmentTypes.js +0 -10
- package/lib/RelayFetchMode.js +0 -17
- package/lib/RelayFragmentPointer.js +0 -161
- package/lib/RelayFragmentReference.js +0 -249
- package/lib/RelayFragmentSpecResolver.js +0 -305
- package/lib/RelayGraphQLMutation.js +0 -288
- package/lib/RelayGraphQLTag.js +0 -42
- package/lib/RelayInternalTypes.js +0 -15
- package/lib/RelayInternals.js +0 -24
- package/lib/RelayMetaRoute.js +0 -35
- package/lib/RelayMockRenderer.js +0 -71
- package/lib/RelayModern-flowtest.js +0 -342
- package/lib/RelayModernFlowtest_badref.graphql.js +0 -10
- package/lib/RelayModernFlowtest_notref.graphql.js +0 -10
- package/lib/RelayModernFlowtest_user.graphql.js +0 -10
- package/lib/RelayModernFlowtest_users.graphql.js +0 -10
- package/lib/RelayMutation.js +0 -322
- package/lib/RelayMutationDebugPrinter.js +0 -47
- package/lib/RelayMutationQuery.js +0 -558
- package/lib/RelayMutationQueue.js +0 -530
- package/lib/RelayMutationRequest.js +0 -103
- package/lib/RelayMutationTracker.js +0 -113
- package/lib/RelayMutationTransaction.js +0 -92
- package/lib/RelayMutationTransactionStatus.js +0 -55
- package/lib/RelayNetworkDebug.js +0 -131
- package/lib/RelayNetworkLayer.js +0 -185
- package/lib/RelayNodeInterface.js +0 -104
- package/lib/RelayOperationDescriptor.js +0 -40
- package/lib/RelayOptimisticMutationUtils.js +0 -208
- package/lib/RelayPendingQueryTracker.js +0 -166
- package/lib/RelayPropTypes.js +0 -57
- package/lib/RelayPublic.js +0 -44
- package/lib/RelayQL.js +0 -128
- package/lib/RelayQuery.js +0 -1584
- package/lib/RelayQueryCaching.js +0 -33
- package/lib/RelayQueryConfig.js +0 -58
- package/lib/RelayQueryPath.js +0 -204
- package/lib/RelayQueryRequest.js +0 -103
- package/lib/RelayQueryTracker.js +0 -86
- package/lib/RelayQueryTransform.js +0 -91
- package/lib/RelayQueryVisitor.js +0 -93
- package/lib/RelayQueryWriter.js +0 -573
- package/lib/RelayReadyState.js +0 -83
- package/lib/RelayReadyStateRenderer.js +0 -145
- package/lib/RelayRecord.js +0 -75
- package/lib/RelayRecordStatusMap.js +0 -57
- package/lib/RelayRecordStore.js +0 -433
- package/lib/RelayRecordWriter.js +0 -601
- package/lib/RelayRefQueryDescriptor.js +0 -27
- package/lib/RelayRenderer.js +0 -268
- package/lib/RelayRootContainer.js +0 -125
- package/lib/RelayRoute.js +0 -92
- package/lib/RelayRouteFragment.js +0 -44
- package/lib/RelaySelector.js +0 -201
- package/lib/RelayShallowMock.js +0 -69
- package/lib/RelayStaticContainer.js +0 -38
- package/lib/RelayStore.js +0 -12
- package/lib/RelayStoreConstants.js +0 -20
- package/lib/RelayStoreData.js +0 -660
- package/lib/RelayTaskQueue.js +0 -189
- package/lib/RelayTypes.js +0 -13
- package/lib/RelayVariable.js +0 -32
- package/lib/RelayVariables.js +0 -92
- package/lib/buildRQL.js +0 -160
- package/lib/callsFromGraphQL.js +0 -74
- package/lib/callsToGraphQL.js +0 -34
- package/lib/checkRelayQueryData.js +0 -250
- package/lib/createRelayQuery.js +0 -17
- package/lib/dedent.js +0 -49
- package/lib/diffRelayQuery.js +0 -757
- package/lib/directivesToGraphQL.js +0 -39
- package/lib/filterRelayQuery.js +0 -29
- package/lib/findRelayQueryLeaves.js +0 -293
- package/lib/flattenRelayQuery.js +0 -121
- package/lib/flattenSplitRelayQueries.js +0 -44
- package/lib/forEachRootCallArg.js +0 -40
- package/lib/fromGraphQL.js +0 -48
- package/lib/generateClientEdgeID.js +0 -22
- package/lib/generateClientID.js +0 -27
- package/lib/generateConcreteFragmentID.js +0 -30
- package/lib/generateForceIndex.js +0 -24
- package/lib/generateRQLFieldAlias.js +0 -39
- package/lib/getRangeBehavior.js +0 -58
- package/lib/getRelayQueries.js +0 -83
- package/lib/intersectRelayQuery.js +0 -149
- package/lib/isClassicRelayContext.js +0 -20
- package/lib/isClassicRelayEnvironment.js +0 -20
- package/lib/isCompatibleRelayFragmentType.js +0 -27
- package/lib/isRelayContainer.js +0 -16
- package/lib/makeLegacyStringishComponentRef.js +0 -52
- package/lib/printRelayOSSQuery.js +0 -329
- package/lib/printRelayQuery.js +0 -26
- package/lib/rangeOperationToMetadataKey.js +0 -25
- package/lib/readRelayQueryData.js +0 -551
- package/lib/relayUnstableBatchedUpdates.js +0 -12
- package/lib/relayUnstableBatchedUpdates.native.js +0 -11
- package/lib/restoreRelayCacheData.js +0 -188
- package/lib/serializeRelayQueryCall.js +0 -42
- package/lib/splitDeferredRelayQueries.js +0 -298
- package/lib/stableStringify.js +0 -85
- package/lib/testEditDistance.js +0 -112
- package/lib/throwFailedPromise.js +0 -26
- package/lib/toGraphQL.js +0 -94
- package/lib/transformRelayQueryPayload.js +0 -145
- package/lib/validateMutationConfig.js +0 -117
- package/lib/validateRelayReadQuery.js +0 -112
- package/lib/writeRelayQueryPayload.js +0 -44
- package/lib/writeRelayUpdatePayload.js +0 -513
- package/react-relay-classic.js +0 -4
- package/react-relay-classic.min.js +0 -9
- package/react-relay-compat.js +0 -4
- package/react-relay-compat.min.js +0 -9
@@ -1,9 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Relay v2.0.0-rc.2
|
3
|
-
*
|
4
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
5
|
-
*
|
6
|
-
* This source code is licensed under the MIT license found in the
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
8
|
-
*/
|
9
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("relay-runtime"),require("fbjs/lib/forEachObject"),require("react"),require("prop-types"),require("fbjs/lib/areEqual"),require("nullthrows"),require("fbjs/lib/sprintf"),require("fbjs/lib/base62"),require("fbjs/lib/mapObject"),require("fbjs/lib/resolveImmediate"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/shallowEqual"),require("fbjs/lib/Deferred"),require("fbjs/lib/crc32"),require("fbjs/lib/isEmpty"),require("fbjs/lib/filterObject"),require("fbjs/lib/flattenArray"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/PromiseMap"),require("fbjs/lib/someObject"),require("fbjs/lib/everyObject"),require("fbjs/lib/performanceNow"),require("react-dom"),require("fbjs/lib/fetch"),require("fbjs/lib/fetchWithRetries"),require("fbjs/lib/warning")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","relay-runtime","fbjs/lib/forEachObject","react","prop-types","fbjs/lib/areEqual","nullthrows","fbjs/lib/sprintf","fbjs/lib/base62","fbjs/lib/mapObject","fbjs/lib/resolveImmediate","fbjs/lib/ErrorUtils","fbjs/lib/shallowEqual","fbjs/lib/Deferred","fbjs/lib/crc32","fbjs/lib/isEmpty","fbjs/lib/filterObject","fbjs/lib/flattenArray","fbjs/lib/emptyFunction","fbjs/lib/PromiseMap","fbjs/lib/someObject","fbjs/lib/everyObject","fbjs/lib/performanceNow","react-dom","fbjs/lib/fetch","fbjs/lib/fetchWithRetries","fbjs/lib/warning"],t):"object"==typeof exports?exports.ReactRelayClassic=t(require("fbjs/lib/invariant"),require("relay-runtime"),require("fbjs/lib/forEachObject"),require("react"),require("prop-types"),require("fbjs/lib/areEqual"),require("nullthrows"),require("fbjs/lib/sprintf"),require("fbjs/lib/base62"),require("fbjs/lib/mapObject"),require("fbjs/lib/resolveImmediate"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/shallowEqual"),require("fbjs/lib/Deferred"),require("fbjs/lib/crc32"),require("fbjs/lib/isEmpty"),require("fbjs/lib/filterObject"),require("fbjs/lib/flattenArray"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/PromiseMap"),require("fbjs/lib/someObject"),require("fbjs/lib/everyObject"),require("fbjs/lib/performanceNow"),require("react-dom"),require("fbjs/lib/fetch"),require("fbjs/lib/fetchWithRetries"),require("fbjs/lib/warning")):e.ReactRelayClassic=t(e["fbjs/lib/invariant"],e["relay-runtime"],e["fbjs/lib/forEachObject"],e.react,e["prop-types"],e["fbjs/lib/areEqual"],e.nullthrows,e["fbjs/lib/sprintf"],e["fbjs/lib/base62"],e["fbjs/lib/mapObject"],e["fbjs/lib/resolveImmediate"],e["fbjs/lib/ErrorUtils"],e["fbjs/lib/shallowEqual"],e["fbjs/lib/Deferred"],e["fbjs/lib/crc32"],e["fbjs/lib/isEmpty"],e["fbjs/lib/filterObject"],e["fbjs/lib/flattenArray"],e["fbjs/lib/emptyFunction"],e["fbjs/lib/PromiseMap"],e["fbjs/lib/someObject"],e["fbjs/lib/everyObject"],e["fbjs/lib/performanceNow"],e["react-dom"],e["fbjs/lib/fetch"],e["fbjs/lib/fetchWithRetries"],e["fbjs/lib/warning"])}(window,function(e,t,r,n,i,a,o,s,u,c,l,d,f,h,_,g,p,v,y,m,D,I,b,C,R,F,E){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=99)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(5)(r(8)),i=r(5)(r(12)),a=0,o={isDeferred:!1,isContainerFragment:!1,isTypeConditional:!1},s=[],u=[];var c=function(){function e(e,t,n){"RelayQueryNode"===this.constructor.name&&r(0)(!1),this.__concreteNode__=e,this.__root__=t,this.__variables__=n,this.__calls__=null,this.__children__=null,this.__fieldMap__=null,this.__hasDeferredDescendant__=null,this.__hasValidatedConnectionCalls__=null,this.__serializationKey__=null,this.__storageKey__=null}e.create=function(t,n,i){var a=v(t,b(n,i),i);return a instanceof e||r(0)(!1),a};var t=e.prototype;return t.canHaveSubselections=function(){return!0},t.isGenerated=function(){return!1},t.isRefQueryDependency=function(){return!1},t.clone=function(t){if(!this.canHaveSubselections())return 0!==t.length&&r(0)(!1),this;var n=this.getChildren(),i=m(n,t);if(!i.length)return null;if(i===n)return this;var a=e.create(this.__concreteNode__,r(9).get(this.__root__.routeName),this.__variables__);return a.__children__=i,a.__calls__=this.__calls__,a.__serializationKey__=this.__serializationKey__,a.__storageKey__=this.__storageKey__,a},t.getChildren=function(){var e=this,t=this.__children__;if(!t){var r=[],n=this.__concreteNode__.children;n&&n.forEach(function(t){if(null!=t){var n=v(t,e.__root__,e.__variables__);Array.isArray(n)?n.forEach(function(e){e&&e.isIncluded()&&r.push(e)}):n&&n.isIncluded()&&r.push(n)}}),this.__children__=r,t=r}return t},t.isIncluded=function(){return!this.__concreteNode__.directives||this.getDirectives().every(function(e){return"skip"===e.name?!e.args.some(function(e){return"if"===e.name&&!!e.value}):"include"!==e.name||!e.args.some(function(e){return"if"===e.name&&!e.value})})},t.getDirectives=function(){var e=this;return this.__concreteNode__.directives?this.__concreteNode__.directives.map(function(t){return{args:r(27)(t.args,e.__variables__),name:t.name}}):s},t.getField=function(e){return this.getFieldByStorageKey(e.getStorageKey())},t.getFieldByStorageKey=function(e){var t=this.__fieldMap__;if(!t){t={};for(var r=this.getChildren(),n=0;n<r.length;n++){var i=r[n];i instanceof p&&(t[i.getStorageKey()]=i)}this.__fieldMap__=t}return t[e]},t.getType=function(){return this.__concreteNode__.type},t.getRoute=function(){return r(9).get(this.__root__.routeName)},t.getVariables=function(){return this.__variables__},t.hasDeferredDescendant=function(){var e=this.__hasDeferredDescendant__;return null==e&&(e=this.canHaveSubselections()&&this.getChildren().some(function(e){return e.hasDeferredDescendant()}),this.__hasDeferredDescendant__=e),e},t.isAbstract=function(){throw new Error("RelayQueryNode: Abstract function cannot be called.")},t.isRequisite=function(){return!1},t.equals=function(e){var t=this.getChildren(),r=e.getChildren();return t===r||t.length===r.length&&t.every(function(e,t){return e.equals(r[t])})},t.isEquivalent=function(e){return this.__concreteNode__===e.__concreteNode__&&this.__root__.routeName===e.__root__.routeName&&r(53)(this.__root__.variables,e.__root__.variables)&&r(53)(this.__variables__,e.__variables__)},t.createNode=function(t){return e.create(t,r(9).get(this.__root__.routeName),this.__variables__)},t.getConcreteQueryNode=function(){return this.__concreteNode__},e}(),l=function(e){function t(t,r,n){var i;return(i=e.call(this,t,r,n)||this).__batchCall__=void 0,i.__id__=void 0,i.__identifyingArg__=void 0,i.__storageKey__=void 0,i.getID(),i}(0,i.default)(t,e),t.build=function(e,n,i,a,o,s,u){var c,l=a?a.filter(function(e){return!!e}):[],d=r(6).getBatchCallVariable(i);d?c=d:Array.isArray(i)?c=i.map(r(6).createCallValue):i&&(c=r(6).createCallValue(i));var f={},h=new t(r(6).createQuery({fieldName:n,identifyingArgValue:c,metadata:o,name:e,type:s}),b(r(9).get(u||"$RelayQuery"),f),f);return h.__children__=l,h},t.create=function(e,n,i){var a=r(6).getQuery(e);return a||r(0)(!1),new t(a,b(n,i),i)};var o=t.prototype;return o.canHaveSubselections=function(){return!0},o.getName=function(){var e=this.__concreteNode__.name;return e||(e=this.getID(),this.__concreteNode__.name=e),e},o.getID=function(){var e=this.__id__;return null==e&&(e="q"+a++,this.__id__=e),e},o.getBatchCall=function(){var e=this.__batchCall__;if(void 0===e){var t=this.__concreteNode__.calls;if(t){var r=t[0]&&t[0].value;null==r||Array.isArray(r)||"BatchCallVariable"!==r.kind||(e={refParamName:"ref_"+r.sourceQueryID,sourceQueryID:r.sourceQueryID,sourceQueryPath:r.jsonPath})}e=e||null,this.__batchCall__=e}return e},o.getCallsWithValues=function(){var e=this.__calls__;if(!e){var t=this.__concreteNode__.calls;e=t?r(27)(t,this.__variables__):u,this.__calls__=e}return e},o.getFieldName=function(){return this.__concreteNode__.fieldName},o.getIdentifyingArg=function(){var e=this.__identifyingArg__;if(!e){var t=this.__concreteNode__.metadata,r=t.identifyingArgName;null!=r&&((e=this.getCallsWithValues().find(function(e){return e.name===r}))&&null!=t.identifyingArgType&&(e.type=t.identifyingArgType),this.__identifyingArg__=e)}return e},o.getStorageKey=function(){var e=this.__storageKey__;if(!e){var t=this.getCallsWithValues(),r=this.getIdentifyingArg();r&&(t=t.filter(function(e){return e!==r})),e=p.build({fieldName:this.getFieldName(),calls:t,type:this.getType()}).getStorageKey(),this.__storageKey__=e}return e},o.hasDeferredDescendant=function(){return this.isDeferred()||e.prototype.hasDeferredDescendant.call(this)},o.isAbstract=function(){return!!this.__concreteNode__.metadata.isAbstract},o.isDeferred=function(){return!!this.__concreteNode__.isDeferred},o.isPlural=function(){return!!this.__concreteNode__.metadata.isPlural},o.cloneWithRoute=function(e,t){if(this.__root__.routeName===t.name)return this.clone(e);var r=c.create((0,n.default)({},this.__concreteNode__,{name:t.name}),t,this.__variables__);return r.__children__=e,r},o.equals=function(n){return this===n||n instanceof t&&(!!r(16)(this.getBatchCall(),n.getBatchCall())&&(!(this.getFieldName()!==n.getFieldName()||!I(this.getCallsWithValues(),n.getCallsWithValues()))&&e.prototype.equals.call(this,n)))},t}(c),d=function(e){function t(t,n,i){var a;return t&&"query"===t.operation||r(0)(!1),(a=e.call(this,t.node,n,i)||this).__id__=void 0,a.getID(),a}(0,i.default)(t,e),t.create=function(e,n,i){var a=r(6).getOperationDefinition(e);return a||r(0)(!1),new t(a,b(n,i),i)};var n=t.prototype;return n.canHaveSubselections=function(){return!0},n.isDeferred=function(){return!1},n.getName=function(){var e=this.__concreteNode__.name;return e||(e=this.getID(),this.__concreteNode__.name=e),e},n.getID=function(){var e=this.__id__;return null==e&&(e="q"+a++,this.__id__=e),e},n.equals=function(r){return this===r||r instanceof t&&e.prototype.equals.call(this,r)},t}(c),f=function(e){function t(t,n,i){var a;return"RelayQueryOperation"===(a=e.call(this,t,n,i)||this).constructor.name&&r(0)(!1),a}(0,i.default)(t,e);var n=t.prototype;return n.canHaveSubselections=function(){return!0},n.getName=function(){return this.__concreteNode__.name},n.getResponseType=function(){return this.__concreteNode__.responseType},n.getType=function(){return this.getResponseType()},n.getInputType=function(){var e=this.__concreteNode__.metadata.inputType;return e||r(0)(!1),e},n.getCall=function(){var e=this.__calls__;if(!e){var t=this.__concreteNode__.calls;e=t?r(27)(t,this.__variables__):u,this.__calls__=e}return e[0]},n.getCallVariableName=function(){if(!this.__callVariableName__){var e=this.__concreteNode__.calls,t=e&&r(6).getCallVariable(e[0].value);t||r(0)(!1),this.__callVariableName__=t.callVariableName}return this.__callVariableName__},n.isAbstract=function(){return!1},t}(c),h=function(e){function t(){return e.apply(this,arguments)||this}return(0,i.default)(t,e),t.build=function(e,n,i,a,o,s,u){var c=o?o.filter(function(e){return!!e}):[],l=r(6).createMutation({calls:[r(6).createCall(i,r(6).createCallVariable("input"))],metadata:s,name:e,responseType:n}),d={input:a||""},f=new t(l,b(r(9).get(u||"$RelayQuery"),d),d);return f.__children__=c,f},t.prototype.equals=function(n){return this===n||n instanceof t&&(!!r(16)(this.getResponseType(),n.getResponseType())&&(!!r(16)(this.getCall(),n.getCall())&&e.prototype.equals.call(this,n)))},t}(f),_=function(e){function t(){return e.apply(this,arguments)||this}(0,i.default)(t,e),t.create=function(e,n,i){return r(6).getSubscription(e)||r(0)(!1),new t(e,b(n,i),i)};var n=t.prototype;return n.getPublishedPayloadType=function(){return this.getResponseType()},n.equals=function(n){return this===n||n instanceof t&&(!!r(16)(this.getPublishedPayloadType(),n.getPublishedPayloadType())&&(!!r(16)(this.getCall(),n.getCall())&&e.prototype.equals.call(this,n)))},t}(f),g=function(e){function t(t,r,n,i){var a;return(a=e.call(this,t,r,n)||this).__compositeHash__=null,a.__metadata__=i||o,a.__sourceCompositeHash__=null,a}(0,i.default)(t,e),t.build=function(e,n,i,a,o){var s=i?i.filter(function(e){return!!e}):[],u={},c=new t(r(6).createFragment({name:e,type:n,metadata:a}),b(r(9).get(o||"$RelayQuery"),u),u,{isDeferred:!(!a||!a.isDeferred),isContainerFragment:!(!a||!a.isContainerFragment),isTypeConditional:!(!a||!a.isTypeConditional)});return c.__children__=s,c},t.create=function(e,t,n,i){var a=r(6).getFragment(e);return a||r(0)(!1),y(a,b(t,n),n,i||o)};var a=t.prototype;return a.canHaveSubselections=function(){return!0},a.getDebugName=function(){return this.__concreteNode__.name},a.getConcreteFragmentID=function(){return this.__concreteNode__.id},a.getCompositeHash=function(){var e=this.__compositeHash__;return e||(e=r(70)(this.getConcreteFragmentID()+"."+this.__root__.routeName+"."+r(24)(this.__variables__)),this.__compositeHash__=e),e},a.getSourceCompositeHash=function(){return this.__sourceCompositeHash__},a.isAbstract=function(){return!!this.__concreteNode__.metadata.isAbstract},a.isDeferred=function(){return this.__metadata__.isDeferred},a.isPattern=function(){return!!this.__concreteNode__.metadata.pattern},a.isPlural=function(){var e=this.__concreteNode__.metadata;return Boolean(e.isPlural||e.plural)},a.isTrackingEnabled=function(){return!!this.__concreteNode__.metadata.isTrackingEnabled},a.cloneAsPlainFragment=function(){return y(this.__concreteNode__,this.__root__,this.__variables__,o)},a.isContainerFragment=function(){return this.__metadata__.isContainerFragment},a.isTypeConditional=function(){return this.__metadata__.isTypeConditional},a.hasDeferredDescendant=function(){return this.isDeferred()||e.prototype.hasDeferredDescendant.call(this)},a.clone=function(i){var a=e.prototype.clone.call(this,i);return a!==this&&a instanceof t&&(a.__concreteNode__=(0,n.default)({},a.__concreteNode__,{id:r(52)()}),a.__metadata__=(0,n.default)({},this.__metadata__),a.__sourceCompositeHash__=this.getCompositeHash()),a},a.equals=function(r){return this===r||r instanceof t&&(this.getType()===r.getType()&&e.prototype.equals.call(this,r))},t}(c),p=function(e){function t(t,r,n){var i;return(i=e.call(this,t,r,n)||this).__debugName__=void 0,i.__isRefQueryDependency__=!1,i.__rangeBehaviorCalls__=void 0,i.__shallowHash__=void 0,i}(0,i.default)(t,e),t.create=function(e,n,i){var a=r(6).getField(e);return a||r(0)(!1),new t(a,b(n,i),i)},t.build=function(e){var n=e.alias,i=e.directives,a=e.calls,o=e.children,s=e.fieldName,u=e.metadata,c=e.routeName,l=e.type,d=o?o.filter(function(e){return!!e}):[],f={},h=new t(r(6).createField({alias:n,calls:a?r(72)(a):null,directives:i?r(100)(i):null,fieldName:s,metadata:u,type:l}),b(r(9).get(c||"$RelayQuery"),f),f);return h.__children__=d,h};var n=t.prototype;return n.canHaveSubselections=function(){return!!this.__concreteNode__.metadata.canHaveSubselections},n.isAbstract=function(){return!!this.__concreteNode__.metadata.isAbstract},n.isFindable=function(){return!!this.__concreteNode__.metadata.isFindable},n.isGenerated=function(){return!!this.__concreteNode__.metadata.isGenerated},n.isConnection=function(){return!!this.__concreteNode__.metadata.isConnection},n.isConnectionWithoutNodeID=function(){return!!this.__concreteNode__.metadata.isConnectionWithoutNodeID},n.isPlural=function(){return!!this.__concreteNode__.metadata.isPlural},n.isRefQueryDependency=function(){return this.__isRefQueryDependency__},n.isRequisite=function(){return!!this.__concreteNode__.metadata.isRequisite},n.getDebugName=function(){var e,t=this,n=this.__debugName__;n||(n=this.getSchemaName(),this.getCallsWithValues().forEach(function(n){t._isCoreArg(n)&&(e=e||[]).push(r(35)(n))}),e&&(n+=e.sort().join("")),this.__debugName__=n);return n},n.getSchemaName=function(){return this.__concreteNode__.fieldName},n.getRangeBehaviorCalls=function(){var e=this;this.isConnection()||r(0)(!1);var t=this.__rangeBehaviorCalls__;return t||(t=this.getCallsWithValues().filter(function(t){return e._isCoreArg(t)}),this.__rangeBehaviorCalls__=t),t},n.getSerializationKey=function(){var e=this.__serializationKey__;if(!e){var t=this.getSchemaName(),n=this.getCallsWithValues();if(n.length){var i=this.__concreteNode__.alias;null!=i&&(t+="."+i),t+=n.map(r(35)).sort().join("")}e=r(70)(t),this.__serializationKey__=e}return e},n.getShallowHash=function(){var e=this.__shallowHash__;return e||(this.__shallowHash__=e=this.getSchemaName()+D(this.getCallsWithValues())),e},n.getStorageKey=function(){var e=this,t=this.__storageKey__;return t||(this.__storageKey__=t=this.getSchemaName()+D(this.getCallsWithValues().filter(function(t){return e._isCoreArg(t)}))),t},n.getApplicationName=function(){var e=this.__concreteNode__;return e.alias||e.fieldName},n.getInferredRootCallName=function(){return this.__concreteNode__.metadata.inferredRootCallName},n.getInferredPrimaryKey=function(){return this.__concreteNode__.metadata.inferredPrimaryKey},n.getCallsWithValues=function(){var e=this.__calls__;if(!e){var t=this.__concreteNode__.calls;e=t?r(27)(t,this.__variables__):u,this.__calls__=e}return e},n.getCallType=function(e){var t=this.__concreteNode__.calls,r=t&&t.filter(function(t){return t.name===e})[0];if(r)return r.metadata.type},n.equals=function(r){return this===r||r instanceof t&&(!(this.getSchemaName()!==r.getSchemaName()||this.getApplicationName()!==r.getApplicationName()||!I(this.getCallsWithValues(),r.getCallsWithValues()))&&e.prototype.equals.call(this,r))},n.cloneAsRefQueryDependency=function(){var e=new t(this.__concreteNode__,this.__root__,this.__variables__);return e.__children__=[],e.__isRefQueryDependency__=!0,e},n.cloneFieldWithCalls=function(e,n){if(this.canHaveSubselections()||0!==e.length&&r(0)(!1),r(16)(this.getCallsWithValues(),n))return this.clone(e);var i=m(this.getChildren(),e);if(!i.length)return null;var a=new t(this.__concreteNode__,this.__root__,this.__variables__);return a.__children__=i,a.__calls__=n,a},n._isCoreArg=function(e){return!("if"===e.name&&"true"===String(e.value)||"unless"===e.name&&"false"===String(e.value)||this.isConnection()&&r(1).ConnectionInterface.isConnectionCall(e))},t}(c);function v(e,t,i){("object"!=typeof e||null===e)&&r(0)(!1);var a=e.kind,o=c;if("Field"===a)o=p;else if("Fragment"===a){var s=r(25)(r(6).getFragment(e)).metadata.hoistedRootArgs;if(s){var u=t.variables,f=(0,n.default)({},i);s.forEach(function(e){var t=u[e];void 0!==t||i.hasOwnProperty(e)||r(0)(!1),void 0!==t&&(f[e]=t)}),i=f}o=g}else{if("FragmentSpread"===a){var m=r(25)(r(6).getFragmentSpread(e)),D=t.variables,I=r(36).getFragmentSpreadArguments(m.fragment.node.name,m.args,i,D),b=r(36).getFragmentVariables(m.fragment,D,I);return y(m.fragment.node,t,b,{isDeferred:!1,isContainerFragment:!0,isTypeConditional:!1})}if("OperationDefinition"===a)o=d;else if("Query"===a)o=l;else if("Mutation"===a)o=h;else if("Subscription"===a)o=_;else{if(e instanceof r(73)){var C=r(9).get(t.routeName),R=e.getFragmentForRoute(C);return Array.isArray(R)?R.map(function(e){return v(e,t,i)}):R?v(R,t,i):null}if(e instanceof r(38)){var F=e.getFragment(i),E=r(9).get(t.routeName),N=e.getVariables(E,i);return F?y(F,t,N,{isDeferred:e.isDeferred(),isContainerFragment:e.isContainerFragment(),isTypeConditional:e.isTypeConditional()}):null}}}return new o(e,t,i)}function y(e,t,n,i){var a=t.routeName+":"+r(24)(t.variables)+":"+r(24)(n)+":"+r(24)(i),o=e.__cachedFragment__,s=e.__cacheKey__;return o&&s===a||(o=new g(e,t,n,i),e.__cachedFragment__=o,e.__cacheKey__=a),o}function m(e,t){for(var r=[],n=!0,i=0,a=0;a<t.length;a++){var o=t[a];o&&(r.push(o),n=n&&o===e[i++])}return n&&r.length===e.length?e:r}function D(e){if(e.length){var t={};return e.forEach(function(e){t[e.name]=e.value}),r(24)(t)}return""}function I(e,t){return e.length===t.length&&e.every(function(e,n){var i=e.name,a=e.value,o=t[n],s=o.name,u=o.value;return i===s&&(a instanceof r(102)?a.equals(u):r(16)(a,u))})}function b(e,t){return{routeName:e.name,variables:t}}r(1).RelayProfiler.instrumentMethods(c.prototype,{clone:"@RelayQueryNode.prototype.clone",equals:"@RelayQueryNode.prototype.equals",getChildren:"@RelayQueryNode.prototype.getChildren",getDirectives:"@RelayQueryNode.prototype.getDirectives",hasDeferredDescendant:"@RelayQueryNode.prototype.hasDeferredDescendant",getFieldByStorageKey:"@RelayQueryNode.prototype.getFieldByStorageKey"}),r(1).RelayProfiler.instrumentMethods(p.prototype,{getStorageKey:"@RelayQueryField.prototype.getStorageKey",getSerializationKey:"@RelayQueryField.prototype.getSerializationKey"}),e.exports={Field:p,Fragment:g,Mutation:h,Node:c,Operation:f,OSSQuery:d,Root:l,Subscription:_}},function(e,t,r){"use strict";var n=r(5)(r(8)),i={DATA_ID:"__dataID__",FILTER_CALLS:"__filterCalls__",FORCE_INDEX:"__forceIndex__",MUTATION_IDS:"__mutationIDs__",MUTATION_STATUS:"__mutationStatus__",PATH:"__path__",RANGE:"__range__",RESOLVED_DEFERRED_FRAGMENTS:"__resolvedDeferredFragments__",RESOLVED_FRAGMENT_MAP:"__resolvedFragmentMap__",RESOLVED_FRAGMENT_MAP_GENERATION:"__resolvedFragmentMapGeneration__",STATUS:"__status__"},a={};Object.keys(i).forEach(function(e){a[i[e]]=!0});var o={MetadataKey:i,create:function(e){return{__dataID__:e}},createWithFields:function(e,t){return(0,n.default)({__dataID__:e},t)},isRecord:function(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)&&"string"==typeof e.__dataID__},getRecord:function(e){return o.isRecord(e)?e:null},getDataID:function(e){return e.__dataID__},getDataIDForObject:function(e){return e.__dataID__},isClientID:function(e){return 0===e.indexOf("client:")},isMetadataKey:function(e){return a.hasOwnProperty(e)}};e.exports=o},function(e,t,r){"use strict";var n=function(e,t){var n=[];if(e.getBatchCall())a(e,t).forEach(function(e){if("object"==typeof e&&e){var t=e[i.ID];"string"!=typeof t&&r(0)(!1),n.push({result:e,rootCallInfo:{storageKey:i.NODE,identifyingArgKey:t,identifyingArgValue:t}})}});else{var o=a(e,t),s=0,u=e.getStorageKey();r(23)(e,function(e){var t=e.identifyingArgKey,r=e.identifyingArgValue,i=o[s++];n.push({result:i,rootCallInfo:{storageKey:u,identifyingArgKey:t,identifyingArgValue:r}})})}return n},i={ANY_TYPE:"__any",ID:"id",ID_TYPE:"ID!",NODE:"node",NODE_TYPE:"Node",NODES:"nodes",TYPENAME:"__typename",isNodeRootCall:function(e){return e===i.NODE||e===i.NODES},getResultsFromPayload:function(e,t){return n(e,t)},injectGetResultsFromPayloadImpl:function(e){n=e}};function a(e,t){var n=e.getFieldName(),i=e.getIdentifyingArg(),a=i&&i.value||null,o=t[n];return e.getBatchCall()||(Array.isArray(a)?(Array.isArray(o)||r(0)(!1),o.length!==a.length&&r(0)(!1)):Array.isArray(o)&&r(0)(!1)),Array.isArray(o)?o:[o||null]}e.exports=i},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";var n=[],i=[],a=[],o={};var s={createBatchCallVariable:function(e,t){return{kind:"BatchCallVariable",sourceQueryID:e,jsonPath:t}},createCall:function(e,t,r){return{kind:"Call",name:e,metadata:{type:r||null},value:t}},createCallValue:function(e){return{kind:"CallValue",callValue:e}},createCallVariable:function(e){return{kind:"CallVariable",callVariableName:e}},createDirective:function(e,t){return{args:t,kind:"Directive",name:e}},createDirectiveArgument:function(e,t){return{name:e,value:t}},createField:function(e){var t=e.metadata||o;return{alias:e.alias,calls:e.calls||n,children:e.children||i,directives:e.directives||a,fieldName:e.fieldName,kind:"Field",metadata:{canHaveSubselections:!!t.canHaveSubselections,inferredRootCallName:t.inferredRootCallName,inferredPrimaryKey:t.inferredPrimaryKey,isConnection:!!t.isConnection,isFindable:!!t.isFindable,isGenerated:!!t.isGenerated,isPlural:!!t.isPlural,isRequisite:!!t.isRequisite,isAbstract:!!t.isAbstract},type:e.type}},createFragment:function(e){var t=e.metadata||o;return{children:e.children||i,directives:e.directives||a,id:r(52)(),kind:"Fragment",metadata:{isAbstract:!!t.isAbstract,pattern:!!t.pattern,plural:!!t.plural},name:e.name,type:e.type}},createMutation:function(e){var t=e.metadata||o;return{calls:e.calls||n,children:e.children||i,directives:e.directives||a,kind:"Mutation",metadata:{inputType:t.inputType},name:e.name,responseType:e.responseType}},createQuery:function(e){var t=e.metadata||o,n=[],u=t.identifyingArgName;return null==u&&r(4).isNodeRootCall(e.fieldName)&&(u=r(4).ID),null!=u&&(n=[s.createCall(u,e.identifyingArgValue,t.identifyingArgType)]),{calls:n,children:e.children||i,directives:e.directives||a,fieldName:e.fieldName,isDeferred:!(!e.isDeferred&&!t.isDeferred),kind:"Query",metadata:{identifyingArgName:u,identifyingArgType:t.identifyingArgType,isAbstract:!!t.isAbstract,isPlural:!!t.isPlural},name:e.name,type:e.type}},createSubscription:function(e){var t=e.metadata||o;return{calls:e.calls||n,children:e.children||i,directives:e.directives||a,kind:"Subscription",metadata:{inputType:t.inputType},name:e.name,responseType:e.responseType}},getBatchCallVariable:function(e){if(u(e,"BatchCallVariable"))return e},getCallVariable:function(e){if(u(e,"CallVariable"))return e},getField:function(e){if(u(e,"Field"))return e},getFragment:function(e){if(u(e,"Fragment"))return e},getFragmentDefinition:function(e){if(u(e,"FragmentDefinition"))return e},getFragmentSpread:function(e){if(u(e,"FragmentSpread"))return e},getOperationDefinition:function(e){if(u(e,"OperationDefinition"))return e},getMutation:function(e){if(u(e,"Mutation"))return e},getQuery:function(e){if(u(e,"Query"))return e},getSubscription:function(e){if(u(e,"Subscription"))return e}};function u(e,t){return"object"==typeof e&&null!==e&&e.kind===t}e.exports=s},function(e,t,r){"use strict";var n=r(2).Field.build({fieldName:r(4).ID,type:"String"}),i=r(2).Field.build({fieldName:r(4).TYPENAME,type:"String"}),a={type:"rootRecord"},o={getRootRecordPath:function(){return a},createForID:function(e,t,n){return r(3).isClientID(e)&&r(0)(!1),{dataID:e,name:t,routeName:n||"$RelayQuery",type:"node"}},create:function(e){if(e.getFieldName()===r(4).NODE){var t=e.getIdentifyingArg();if(t&&"string"==typeof t.value)return{dataID:t.value,name:e.getName(),routeName:e.getRoute().name,type:"node"}}return{root:e,type:"root"}},getPath:function(e,t,n){return null==n||r(3).isClientID(n)?{node:t,parent:e,type:"client"}:"node"===e.type&&e.dataID===n?e:{dataID:n,name:o.getName(e),routeName:o.getRouteName(e),type:"node"}},isRootPath:function(e){return"node"===e.type||"root"===e.type},getParent:function(e){return"client"!==e.type&&r(0)(!1),e.parent},getName:function(e){for(;"client"===e.type;)e=e.parent;return e===a?"RootRecordPath":"root"===e.type?e.root.getName():"node"===e.type?e.name:void r(0)(!1)},getRouteName:function(e){for(;"client"===e.type;)e=e.parent;return e===a?"$RelayQueryPath":"root"===e.type?e.root.getRoute().name:"node"===e.type?e.routeName:void r(0)(!1)},getQuery:function(e,t,a){var o=a;for(r(1).ConnectionInterface.get().EDGES;"client"===t.type;){var s=t.node;if(s instanceof r(2).Field)s.getSchemaName();var u=s instanceof r(2).Field?s.getInferredPrimaryKey():r(4).ID;o=u?s.clone([o,s.getFieldByStorageKey(u),s.getFieldByStorageKey(r(4).TYPENAME)]):s.clone([o]),t=t.parent}"rootRecord"===t.type&&r(0)(!1);var c="root"===t.type?t.root:function(e){return r(2).Root.build(e.name,r(4).NODE,e.dataID,[n,i],{identifyingArgName:r(4).ID,identifyingArgType:r(4).ID_TYPE,isAbstract:!0,isDeferred:!1,isPlural:!1},r(4).NODE_TYPE,e.routeName)}(t),l=function(e,t,n){var i=[];if(n.forEach(function(e){e&&i.push(e)}),!t.isAbstract())return i;var a=[];r(23)(t,function(e){var t=e.identifyingArgKey;a.push(t)});var o=a[0],s=e.getDataID(t.getStorageKey(),o),u=s&&e.getType(s);if(null!=u)return[r(2).Fragment.build(t.getName(),u,i)];null!=s?e.getRecordState(s):r(13).UNKNOWN;return i}(e,c,[o,c.getFieldByStorageKey(r(4).ID),c.getFieldByStorageKey(r(4).TYPENAME)]),d=c.cloneWithRoute(l,a.getRoute());return d instanceof r(2).Root||r(0)(!1),d}};e.exports=o},function(e,t,r){var n=r(17);e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}},function(e,t,r){"use strict";var n=function(){function e(e){Object.defineProperty(this,"name",{enumerable:!0,value:e,writable:!1})}return e.get=function(t){return i[t]||(i[t]=new e(t))},e}(),i={};e.exports=n},function(e,t){e.exports=r},function(e,t,r){"use strict";e.exports={CREATED:"CREATED",UNCOMMITTED:"UNCOMMITTED",COMMIT_QUEUED:"COMMIT_QUEUED",COLLISION_COMMIT_FAILED:"COLLISION_COMMIT_FAILED",COMMITTING:"COMMITTING",COMMIT_FAILED:"COMMIT_FAILED",ROLLED_BACK:"ROLLED_BACK"}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";e.exports=new(r(69))},function(e,t,r){"use strict";var n={addFragment:function(e,t){var n=e.__fragments__;null==n&&(n=e.__fragments__={}),("object"!=typeof n||null==n)&&r(0)(!1);var i=t.getConcreteFragmentID(),a=n[i];null==a&&(a=n[i]=[]),Array.isArray(a)||r(0)(!1),a.push(t.getVariables())},hasConcreteFragment:function(e,t){var r=e.__fragments__;if("object"==typeof r&&null!=r){var n=t.getConcreteFragmentID();return r.hasOwnProperty(n)}return!1},hasFragment:function(e,t){var i=n.getFragmentVariables(e,t);return null!=i&&i.some(function(e){return r(16)(e,t.getVariables())})},getVariablesForID:function(e,t){var n=e.__fragments__;if("object"==typeof n&&null!=n){var i=n[t];if(i)return Array.isArray(i)&&1===i.length||r(0)(!1),i[0]}return null},getFragmentVariables:function(e,t){var r=e.__fragments__;return"object"==typeof r&&null!=r?r[t.getConcreteFragmentID()]:null},create:function(e,t){var i=r(3).create(e);return n.addFragment(i,t),i},createForRoot:function(e,t){var i=function(e){var t;e.getBatchCall()&&r(0)(!1);return e.getChildren().forEach(function(e){e instanceof r(2).Fragment?(t&&r(0)(!1),t=e):e instanceof r(2).Field&&(e.isGenerated()||r(0)(!1))}),t}(t);if(!i)return null;var a=t.getStorageKey(),o=[];r(23)(t,function(t){var r=t.identifyingArgKey,s=e.getDataID(a,r);null==s?o.push(null):o.push(n.create(s,i))});var s=t.getIdentifyingArg(),u=s&&s.value||null;return Array.isArray(u)?o:o[0]}};e.exports=n},function(e,t,r){"use strict";var n=function(){function e(){}var t=e.prototype;return t.visit=function(e,t){return e instanceof r(2).Field?this.visitField(e,t):e instanceof r(2).Fragment?this.visitFragment(e,t):e instanceof r(2).Root?this.visitRoot(e,t):void 0},t.traverse=function(e,t){return e.canHaveSubselections()&&this.traverseChildren(e,t,function(e){this.visit(e,t)},this),e},t.traverseChildren=function(e,t,r,n){for(var i=e.getChildren(),a=0;a<i.length;a++)r.call(n,i[a],a,i)},t.visitField=function(e,t){return this.traverse(e,t)},t.visitFragment=function(e,t){return this.traverse(e,t)},t.visitRoot=function(e,t){return this.traverse(e,t)},e}();e.exports=n},function(e,t,r){"use strict";e.exports={ROOT_ID:"client:root"}},function(e,t,r){"use strict";var n=r(5)(r(8));function i(e,t,i){("object"!=typeof i||null===i||Array.isArray(i))&&r(0)(!1);var a=r(3).getDataIDForObject(i),o=r(19).getVariablesForID(i,t.node.id);return null!=a&&null!=o?{dataID:a,node:t.node,variables:(0,n.default)({},e,o)}:null}function a(e,t,r){var n=null;return r.forEach(function(r){var a=null!=r?i(e,t,r):null;null!=a&&(n=n||[]).push(a)}),n}function o(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&r(0)(!1);var n=r(3).getDataIDForObject(t);return null!=n?n:null}function s(e,t,r){var n=i(e,t,r);return n?n.variables:null}e.exports={areEqualSelectors:function(e,t){return e.dataID===t.dataID&&e.node===t.node&&r(16)(e.variables,t.variables)},getDataIDsFromObject:function(e,t){var n={};return r(10)(e,function(e,i){var a=t[i];null==a?n[i]=a:e.node.metadata&&!0===e.node.metadata.plural?(Array.isArray(a)||r(0)(!1),n[i]=function(e,t){var r;return t.forEach(function(e){var t=null!=e?o(0,e):null;null!=t&&(r=r||[]).push(t)}),r||null}(0,a)):(Array.isArray(a)&&r(0)(!1),n[i]=o(0,a))}),n},getSelector:i,getSelectorList:a,getSelectorsFromObject:function(e,t,n){var o={};return r(10)(t,function(t,s){var u=n[s];null==u?o[s]=u:t.node.metadata&&!0===t.node.metadata.plural?(Array.isArray(u)||r(0)(!1),o[s]=a(e,t,u)):(Array.isArray(u)&&r(0)(!1),o[s]=i(e,t,u))}),o},getVariablesFromObject:function(e,t,n){var i={};return r(10)(t,function(t,a){var o=n[a];if(null!=o)if(t.node.metadata&&!0===t.node.metadata.plural)Array.isArray(o)||r(0)(!1),o.forEach(function(r){if(null!=r){var n=s(e,t,r);n&&Object.assign(i,n)}});else{Array.isArray(o)&&r(0)(!1);var u=s(e,t,o);u&&Object.assign(i,u)}}),i}}},function(e,t,r){"use strict";e.exports=function(e,t){e.getBatchCall()&&r(0)(!1);var n=e.getIdentifyingArg();!function e(t,n){Array.isArray(t)?t.forEach(function(t){return e(t,n)}):n({identifyingArgValue:t,identifyingArgKey:null==t?null:"string"==typeof t?t:r(24)(t)})}(n&&n.value||null,t)}},function(e,t,r){"use strict";function n(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function e(t){var r=Array.isArray(t),i=n(t);if(r||i){var a=Object.keys(t);if(a.length){var o=[];a.sort();for(var s=0;s<a.length;s++){var u=a[s],c=t[u];c=n(c)||Array.isArray(c)?e(c):JSON.stringify(c),o.push(u+":"+c)}return r?"["+o.join(",")+"]":"{"+o.join(",")+"}"}}return JSON.stringify(t)}},function(e,t){e.exports=o},function(e,t,r){var n=r(111),i=r(112),a=r(113);e.exports=function(e){return n(e)||i(e)||a()}},function(e,t,r){"use strict";function n(e,t){var n;if("CallValue"===e.kind)n=e.callValue;else{var i=e.callVariableName;t.hasOwnProperty(i)||r(0)(!1),n=t[i]}var a=typeof n;return null!=n&&"boolean"!==a&&"number"!==a&&"string"!==a&&"object"!==a&&r(0)(!1),n}e.exports=function(e,t){for(var r=e,i=[],a=0;a<r.length;a++){var o=r[a],s=o.value;null!=s&&(s=Array.isArray(s)?s.map(function(e){return n(e,t)}):"BatchCallVariable"===s.kind?null:n(s,t));var u=o.metadata,c={name:o.name,value:s};u&&u.type&&(c.type=u.type),i.push(c)}return i}},function(e,t,r){"use strict";var n=Object.freeze({CLIENT:"CLIENT",PRELOAD:"PRELOAD",REFETCH:"REFETCH"});e.exports=n},function(e,t,r){"use strict";var n=function(){function e(){this._created={},this._updated={}}var t=e.prototype;return t.createID=function(e){this._created[e]=!0},t.updateID=function(e){this._created.hasOwnProperty(e)||(this._updated[e]=!0)},t.hasChange=function(e){return!(!this._updated[e]&&!this._created[e])},t.isNewRecord=function(e){return!!this._created[e]},t.getChangeSet=function(){return{created:this._created,updated:this._updated}},e}();e.exports=n},function(e,t,r){"use strict";var n=1,i="client:"+r(71)(""+r(129)());e.exports=function(){return i+n++}},function(e,t,r){"use strict";var n=function(){function e(){this._indexToMetadataMap={},this._idToIndicesMap={},this._cursorToIndexMap={},this._count=0,this._minIndex=null,this._maxIndex=null}var t=e.prototype;return t._getIndexForCursor=function(e){return this._cursorToIndexMap[e]},t._getIndexForID=function(e){var t=this._idToIndicesMap[e];return t&&t[0]},t.getFirstCursor=function(){if(this.getLength())for(var e=this._minIndex;e<=this._maxIndex;e++){var t=this._indexToMetadataMap[e];if(!t.deleted)return t.cursor}},t.getLastCursor=function(){if(this.getLength())for(var e=this._maxIndex;e>=this._minIndex;e--){var t=this._indexToMetadataMap[e];if(!t.deleted)return t.cursor}},t.isFirstCursor=function(e){if(this.getLength()){for(var t=this._minIndex;t<=this._maxIndex;t++){var r=this._indexToMetadataMap[t];if(!r.deleted)return r.cursor===e;if(r.cursor===e)return!0}return!1}},t.isLastCursor=function(e){if(this.getLength()){for(var t=this._maxIndex;t>=this._minIndex;t--){var r=this._indexToMetadataMap[t];if(!r.deleted)return r.cursor===e;if(r.cursor===e)return!0}return!1}},t.getFirstID=function(){if(this.getLength())for(var e=this._minIndex;e<=this._maxIndex;e++){var t=this._indexToMetadataMap[e];if(!t.deleted)return t.edgeID}},t.getLastID=function(){if(this.getLength())for(var e=this._maxIndex;e>=this._minIndex;e--){var t=this._indexToMetadataMap[e];if(!t.deleted)return t.edgeID}},t._getEdgeAtIndex=function(e){var t=this._indexToMetadataMap[e];return t&&!t.deleted?t:null},t.containsEdgeWithID=function(e){var t=this._getIndexForID(e);return void 0!==t&&!!this._getEdgeAtIndex(t)},t.containsEdgeWithCursor=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this._getIndexForCursor(e);return void 0!==r&&(!!t||!!this._getEdgeAtIndex(r))},t.getMetadataAfterCursor=function(e,t){if(!this.getLength())return{edgeIDs:[],cursors:[]};var r=this._minIndex;if(t){var n=this._getIndexForCursor(t);if(void 0===n)return console.warn("This segment does not have a cursor %s",t),{edgeIDs:[],cursors:[]};r=n+1}for(var i=0,a=[],o=[];r<=this._maxIndex&&i<e;){var s=this._indexToMetadataMap[r];s.deleted||(a.push(s.edgeID),o.push(s.cursor),i++),r++}return{edgeIDs:a,cursors:o}},t.getMetadataBeforeCursor=function(e,t){if(!this.getLength())return{edgeIDs:[],cursors:[]};var r=this._maxIndex;if(t){var n=this._getIndexForCursor(t);if(void 0===n)return console.warn("This segment does not have a cursor %s",t),{edgeIDs:[],cursors:[]};r=n-1}for(var i=0,a=[],o=[];r>=this._minIndex&&i<e;){var s=this._indexToMetadataMap[r];s.deleted||(a.push(s.edgeID),o.push(s.cursor),i++),r--}return{edgeIDs:a.reverse(),cursors:o.reverse()}},t._addEdgeAtIndex=function(e,t){var n=r(3).getDataIDForObject(e),i=e.cursor,a=this._getIndexForID(n);if(void 0!==a&&this._getEdgeAtIndex(a))console.warn("Attempted to add an ID already in GraphQLSegment: %s",n);else{if(0===this.getLength())this._minIndex=t,this._maxIndex=t;else if(this._minIndex===t+1)this._minIndex=t;else{if(this._maxIndex!==t-1)return void console.warn("Attempted to add noncontiguous index to GraphQLSegment: ".concat(t," to ")+"(".concat(this._minIndex,", ").concat(this._maxIndex,")"));this._maxIndex=t}this._indexToMetadataMap[t]={edgeID:n,cursor:i,deleted:!1},this._idToIndicesMap[n]=this._idToIndicesMap[n]||[],this._idToIndicesMap[n].unshift(t),this._count++,i&&(this._cursorToIndexMap[i]=t)}},t.prependEdge=function(e){this._addEdgeAtIndex(e,null!==this._minIndex?this._minIndex-1:0)},t.appendEdge=function(e){this._addEdgeAtIndex(e,null!==this._maxIndex?this._maxIndex+1:0)},t.removeEdge=function(e){var t=this._getIndexForID(e);if(void 0!==t){var r=this._indexToMetadataMap[t];r.deleted?console.warn("Attempted to remove edge with ID that was already removed: "+e):(r.deleted=!0,this._count--)}else console.warn("Attempted to remove edge with ID that was never in GraphQLSegment: "+e)},t.removeAllEdges=function(e){var t=this._idToIndicesMap[e];if(t)for(var r=0;r<t.length;r++){var n=this._indexToMetadataMap[t[r]];n.deleted||(n.deleted=!0,this._count--)}},t.addEdgesAfterCursor=function(e,t){if(e.length){var r=-1;if(t&&void 0===(r=this._getIndexForCursor(t)))console.warn("This segment does not have a cursor %s",t);else{for(;null!==this._maxIndex&&r<this._maxIndex;){if(!this._indexToMetadataMap[r+1].deleted)return void console.warn("Attempted to do an overwrite to GraphQLSegment: last index is "+this._maxIndex+" trying to add edges before "+r);r++}for(var n=r+1,i=0;i<e.length;i++){var a=e[i];this._addEdgeAtIndex(a,n+i)}}}},t.addEdgesBeforeCursor=function(e,t){if(e.length){var r=1;if(t&&void 0===(r=this._getIndexForCursor(t)))console.warn("This segment does not have a cursor %s",t);else{for(;null!==this._minIndex&&r>this._minIndex;){if(!this._indexToMetadataMap[r-1].deleted)return void console.warn("Attempted to do an overwrite to GraphQLSegment: first index is "+this._minIndex+" trying to add edges after "+r);r--}for(var n=r-1,i=0;i<e.length;i++){var a=e[e.length-i-1];this._addEdgeAtIndex(a,n-i)}}}},t.getLength=function(){return null===this._minIndex&&null===this._maxIndex?0:this._maxIndex-this._minIndex+1},t.getCount=function(){return this._count},t._rollback=function(e,t,r){Object.assign(this._cursorToIndexMap,e),Object.assign(this._idToIndicesMap,t),this._count=r.count,this._maxIndex=r.maxIndex,this._minIndex=r.minIndex},t._getCounterState=function(){return{count:this._count,maxIndex:this._maxIndex,minIndex:this._minIndex}},t.concatSegment=function(e){if(!e.getLength())return!0;for(var t={},r={},n=this._getCounterState(),i=e._indexToMetadataMap,a=e._minIndex;a<=e._maxIndex;a++){var o=void 0;this.getLength()?o=this._maxIndex+1:(o=0,this._minIndex=0),this._maxIndex=o;var s=i[a],u=this._getIndexForID(s.edgeID);if(t.hasOwnProperty(s.edgeID)||(this._idToIndicesMap[s.edgeID]?t[s.edgeID]=this._idToIndicesMap[s.edgeID].slice():t[s.edgeID]=void 0),void 0!==u)if(this._indexToMetadataMap[u].deleted&&!s.deleted)this._idToIndicesMap[s.edgeID].unshift(o);else{if(!s.deleted)return console.warn("Attempt to concat an ID already in GraphQLSegment: %s",s.edgeID),this._rollback(r,t,n),!1;this._idToIndicesMap[s.edgeID]=this._idToIndicesMap[s.edgeID]||[],this._idToIndicesMap[s.edgeID].push(o)}else this._idToIndicesMap[s.edgeID]=this._idToIndicesMap[s.edgeID]||[],this._idToIndicesMap[s.edgeID].unshift(o);var c=this._getIndexForCursor(s.cursor);if(void 0!==c){if(this._indexToMetadataMap[c].deleted&&!s.deleted)r[s.cursor]=this._cursorToIndexMap[s.cursor],this._cursorToIndexMap[s.cursor]=o;else if(!s.deleted)return console.warn("Attempt to concat a cursor already in GraphQLSegment: %s",s.cursor),this._rollback(r,t,n),!1}else s.cursor&&(r[s.cursor]=this._cursorToIndexMap[s.cursor],this._cursorToIndexMap[s.cursor]=o);s.deleted||this._count++,this._indexToMetadataMap[o]=Object.assign({},s)}return!0},t.toJSON=function(){return[this._indexToMetadataMap,this._idToIndicesMap,this._cursorToIndexMap,this._minIndex,this._maxIndex,this._count]},e.fromJSON=function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=new e;return u._indexToMetadataMap=r,u._idToIndicesMap=n,u._cursorToIndexMap=i,u._minIndex=a,u._maxIndex=o,u._count=s,u},t.__debug=function(){return{metadata:this._indexToMetadataMap,idToIndices:this._idToIndicesMap,cursorToIndex:this._cursorToIndexMap}},t.getEdgeIDs=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeDeleted:!1}).includeDeleted,t=[];if(this.getLength()>0)for(var r=this._minIndex;r<=this._maxIndex;r++){var n=this._indexToMetadataMap[r],i=n.deleted,a=n.edgeID;!e&&i||t.push(a)}return t},e}();e.exports=n},function(e,t){e.exports=s},function(e,t,r){"use strict";var n={Container:function(e,t,n){var i=e[t];return null==i?new Error(r(32)("Required prop `%s` was not specified in `%s`.",t,n)):r(90)(i)?null:new Error(r(32)("Invalid prop `%s` supplied to `%s`, expected a RelayContainer.",t,n))},Environment:function(e,t,n){var i=e[t];return r(64)(i)&&r(91)(i)?null:new Error(r(32)("Invalid prop/context `%s` supplied to `%s`, expected `%s` to be an object conforming to the `RelayEnvironment` interface.",t,n,i))},QueryConfig:r(15).shape({name:r(15).string.isRequired,params:r(15).object.isRequired,queries:r(15).object.isRequired}),ClassicRelay:function(e,t,n){var i=e[t];return r(92).isRelayContext(i)&&r(64)(i.environment)?null:new Error(r(32)("Invalid prop/context `%s` supplied to `%s`, expected `%s` to be an object with a classic `environment` implementation and `variables`.",t,n,i))},Relay:function(e,t,n){var i=e[t];return r(92).isRelayContext(i)?null:new Error(r(32)("Invalid prop/context `%s` supplied to `%s`, expected `%s` to be an object with an `environment` and `variables`.",t,n,i))}};e.exports=n},function(e,t){e.exports=u},function(e,t,r){"use strict";function n(e){return null==e?"":"string"!=typeof e?JSON.stringify(e):e}e.exports=function(e){var t,i=e.value;return t=Array.isArray(i)?r(101)(i).map(function(e){return n(e)}).join(","):n(i),"."+e.name+"("+t+")"}},function(e,t,r){"use strict";var n=r(5)(r(8));e.exports={getFragmentSpreadArguments:function(e,t,n,i){return r(37)(t,function(e,t){var a=r(6).getCallVariable(e);return a&&(e=n.hasOwnProperty(a.callVariableName)?n[a.callVariableName]:i[a.callVariableName]),void 0===e&&(e=null),e})},getFragmentVariables:function(e,t,i){var a;return e.argumentDefinitions.forEach(function(e){if(!i.hasOwnProperty(e.name))switch(a=a||(0,n.default)({},i),e.kind){case"LocalArgument":a[e.name]=e.defaultValue;break;case"RootArgument":var o=t[e.name];a[e.name]=void 0!==o?o:null;break;default:r(0)(!1)}}),a||i},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){e.exports=c},function(e,t,r){"use strict";var n=r(5)(r(8)),i=function(){function e(e,t,r,n){this._conditions=null,this._initialVariables=t||{},this._fragment=void 0,this._fragmentGetter=e,this._isContainerFragment=!1,this._isDeferred=!1,this._isTypeConditional=!1,this._variableMapping=r,this._prepareVariables=n}e.createForContainer=function(t,r,n,i){var a=new e(t,r,n,i);return a._isContainerFragment=!0,a};var t=e.prototype;return t.conditionOnType=function(){return this._isTypeConditional=!0,this},t.getConditions=function(){return this._conditions},t.getFragmentUnconditional=function(){var e=this._fragment;return null==e&&(e=this._fragmentGetter(),this._fragment=e),e},t.getInitialVariables=function(){return this._initialVariables},t.getVariableMapping=function(){return this._variableMapping},t.defer=function(){return this._isDeferred=!0,this},t.if=function(e){var t=r(6).getCallVariable(e);return t||r(0)(!1),this._addCondition({passingValue:!0,variable:t.callVariableName}),this},t.unless=function(e){var t=r(6).getCallVariable(e);return t||r(0)(!1),this._addCondition({passingValue:!1,variable:t.callVariableName}),this},t.getFragment=function(e){var t=this._conditions;return t&&!t.every(function(t){var r=t.variable,n=t.passingValue;return!!e[r]===n})?null:this.getFragmentUnconditional()},t.getVariables=function(e,t){var i=(0,n.default)({},this._initialVariables),a=this._variableMapping;a&&r(10)(a,function(e,n){var a=r(6).getCallVariable(e);a&&(e=t[a.callVariableName]),void 0===e||(i[n]=e)});var o=this._prepareVariables;return o&&(i=o(i,e)),i},t.isContainerFragment=function(){return this._isContainerFragment},t.isDeferred=function(){return this._isDeferred},t.isTypeConditional=function(){return this._isTypeConditional},t._addCondition=function(e){var t=this._conditions;t||(t=[],this._conditions=t),t.push(e)},e}();e.exports=i},function(e,t,r){"use strict";e.exports=function(e,t){return t===e.getType()||!t||e.isAbstract()}},function(e,t){e.exports=l},function(e,t,r){"use strict";e.exports=function(e){e.then(void 0,function(e){return setTimeout(function(){throw e},0)})}},function(e,t,r){"use strict";var n=r(5)(r(8));function i(e){r(0)(!1)}function a(e){e instanceof r(38)||r(6).getFragment(e)||r(6).getFragmentSpread(e)||r(0)(!1)}Object.assign(i,{__frag:function(e){return"function"==typeof e?new(r(73))(e):(null!=e&&(Array.isArray(e)?e.forEach(a):a(e)),e)},__var:function(e){return r(6).getCallVariable(e)&&r(0)(!1),r(6).createCallValue(e)},__id:function(){return r(52)()},__createFragment:function(e,t){return new(r(38))(function(){return e},null,t)},__getClassicNode:function(e){var t=e.__classic_node__;if(null==t){var n=e.classic;"function"!=typeof n&&r(0)(!1),t=n(this),e.__classic_node__=t}return t},__getClassicFragment:function(e,t){var i=this.__getClassicNode(e),a=r(6).getFragmentDefinition(i);if(a||r(0)(!1),t){var o=[];a.argumentDefinitions.forEach(function(e){"RootArgument"!==e.kind&&r(0)(!1),o.push(e.name)}),a.node.metadata=(0,n.default)({},i.node.metadata,{hoistedRootArgs:o})}return a},__getClassicOperation:function(e){var t=this.__getClassicNode(e),n=r(6).getOperationDefinition(t);return n||r(0)(!1),n}}),e.exports=i},function(e,t,r){"use strict";var n=r(5)(r(12)),i=r(3).MetadataKey.MUTATION_STATUS,a=["__status__","__resolvedFragmentMapGeneration__"];var o=function(e){function t(t,r){var n;return(n=e.call(this)||this)._rangeData=t.getRangeData(),n._recordStore=t.getQueuedStore(),n._storeData=t,n._traverseFragmentReferences=r&&r.traverseFragmentReferences||!1,n._traverseGeneratedFields=r&&r.traverseGeneratedFields||!1,n}(0,n.default)(t,e);var o=t.prototype;return o.retrieveData=function(e,t){var n={data:void 0,dataIDs:{}},i=this._rangeData.parseRangeClientID(t),a=this._recordStore.getRecordState(i?i.dataID:t);if(a===r(13).EXISTENT){var o=this._createState({componentDataID:null,data:void 0,isPartial:!1,parent:null,rangeInfo:null,seenDataIDs:n.dataIDs,storeDataID:t});this.visit(e,o),n.data=o.data}else a===r(13).NONEXISTENT&&(n.data=null);return n},o.visit=function(t,r){var n=e.prototype.visit.call(this,t,r);return this._updateMetadataFields(r),n},o.visitField=function(e,t){var n=r(1).ConnectionInterface.get(),i=n.EDGES,a=n.PAGE_INFO;if(this._handleRangeInfo(e,t),(e.canHaveSubselections()||e.isGenerated())&&c(t),!e.isGenerated()||this._traverseGeneratedFields){var o=t.rangeInfo;o&&e.getSchemaName()===i?this._readEdges(e,o,t):o&&e.getSchemaName()===a?this._readPageInfo(e,o,t):e.canHaveSubselections()?e.isPlural()?this._readPlural(e,t):e.isConnection()?this._readConnection(e,t):this._readLinkedField(e,t):this._readScalar(e,t),t.seenDataIDs[t.storeDataID]=!0}},o.visitFragment=function(e,t){var n=u(t);if(e.isContainerFragment()&&!this._traverseFragmentReferences){t.seenDataIDs[n]=!0;var i=c(t);r(19).addFragment(i,e)}else r(39)(e,this._recordStore.getType(n))&&this.traverse(e,t)},o._createState=function(e){return this._recordStore.getRecordState(e.storeDataID)===r(13).EXISTENT&&c(e),e},o._readScalar=function(e,t){var r=e.getStorageKey(),n=this._recordStore.getField(t.storeDataID,r);void 0===n?t.isPartial=!0:null!==n||t.data?this._setDataValue(t,e.getApplicationName(),Array.isArray(n)?n.slice():n):t.data=null},o._readPlural=function(e,t){var r=this,n=e.getStorageKey(),i=this._recordStore.getLinkedRecordIDs(t.storeDataID,n);if(i){var a=e.getApplicationName(),o=l(t,a),s=i.map(function(n,i){var a;o instanceof Object&&(a=o[i]);var s=r._createState({componentDataID:null,data:a,isPartial:!1,parent:e,rangeInfo:null,seenDataIDs:t.seenDataIDs,storeDataID:n});return e.getChildren().forEach(function(e){return r.visit(e,s)}),s.isPartial&&(t.isPartial=!0),s.data});this._setDataValue(t,a,s)}},o._readConnection=function(e,t){var n=e.getApplicationName(),i=e.getStorageKey(),a=e.getCallsWithValues(),o=this._recordStore.getLinkedRecordID(t.storeDataID,i);if(o){!function(e){if(!e.__hasValidatedConnectionCalls__){var t=e.getCallsWithValues();r(1).ConnectionInterface.hasRangeCalls(t)||s.traverse(e,e),e.__hasValidatedConnectionCalls__=!0}}(e);var u=this._recordStore.getRangeMetadata(o,a),c=this._createState({componentDataID:this._getConnectionClientID(e,o),data:l(t,n),isPartial:!1,parent:e,rangeInfo:u&&a.length?u:null,seenDataIDs:t.seenDataIDs,storeDataID:o});this.traverse(e,c),c.isPartial&&(t.isPartial=!0),this._setDataValue(t,n,c.data)}else t.isPartial=!0},o._readEdges=function(e,t,n){var i=this,a=r(1).ConnectionInterface.get().EDGES;t.diffCalls.length&&(n.isPartial=!0);var o=l(n,a);t.requestedEdgeIDs.forEach(function(e){n.seenDataIDs[e]=!0});var s=t.filteredEdges.map(function(t,r){var a;o instanceof Object&&(a=o[r]);var s=i._createState({componentDataID:null,data:a,isPartial:!1,parent:e,rangeInfo:null,seenDataIDs:n.seenDataIDs,storeDataID:t.edgeID});return i.traverse(e,s),s.isPartial&&(n.isPartial=!0),s.data});this._setDataValue(n,a,s)},o._readPageInfo=function(e,t,n){var i=this,a=(r(1).ConnectionInterface.get().PAGE_INFO,t.pageInfo);a||r(0)(!1),t.diffCalls.length&&(n.isPartial=!0);var o,s=a;e.getChildren().forEach(function e(t){if(t instanceof r(2).Fragment)t.isContainerFragment()&&!i._traverseFragmentReferences?(o=o||{},r(19).addFragment(o,t)):t.getChildren().forEach(e);else{var n=t;n.isGenerated()&&!i._traverseGeneratedFields||((o=o||{})[n.getApplicationName()]=s[n.getStorageKey()])}}),this._setDataValue(n,e.getApplicationName(),o)},o._readLinkedField=function(e,t){var r=e.getStorageKey(),n=e.getApplicationName(),i=this._recordStore.getLinkedRecordID(t.storeDataID,r);if(null==i)return void 0===i&&(t.isPartial=!0),void this._setDataValue(t,n,i);var a=this._createState({componentDataID:null,data:l(t,n),isPartial:!1,parent:e,rangeInfo:null,seenDataIDs:t.seenDataIDs,storeDataID:i});this.traverse(e,a),a.isPartial&&(t.isPartial=!0),this._setDataValue(t,n,a.data)},o._setDataValue=function(e,t,r){var n=c(e);void 0!==r&&(n[t]=r)},o._updateMetadataFields=function(e){var t=this,n=e.data;if(n instanceof Object){var o=e.storeDataID;a.forEach(function(e){var r=t._recordStore.getField(o,e);null!=r&&(n[e]=r)}),e.isPartial&&(n.__status__=r(54).setPartialStatus(n.__status__,!0));var s=this._storeData.getClientMutationIDs(o);if(s){var u=[],c=this._storeData.getMutationQueue();s.forEach(function(e){var t=c.getTransaction(e);t&&u.push(t.getHash())}),n[i]=u.join(",")}}},o._getConnectionClientID=function(e,t){var n=e.getCallsWithValues();return r(1).ConnectionInterface.hasRangeCalls(n)?this._rangeData.getClientIDForRangeWithID(r(72)(n),{},t):t},o._handleRangeInfo=function(e,t){var n=this._rangeData.parseRangeClientID(t.storeDataID);null!=n&&(t.componentDataID=t.storeDataID,t.storeDataID=n.dataID,t.rangeInfo=this._recordStore.getRangeMetadata(t.storeDataID,r(27)(n.calls,n.callValues)))},t}(r(20));var s=new(function(e){function t(){return e.apply(this,arguments)||this}return(0,n.default)(t,e),t.prototype.visitField=function(e,t){var n=r(1).ConnectionInterface.get(),i=n.EDGES,a=n.PAGE_INFO,o=e.getSchemaName();(o===i||o===a)&&r(0)(!1)},t}(r(20)));function u(e){return null!=e.componentDataID?e.componentDataID:e.storeDataID}function c(e){var t=e.data;return t||(t=e.data=r(3).create(u(e))),t instanceof Object||r(0)(!1),t}function l(e,t){return c(e)[t]}e.exports=r(1).RelayProfiler.instrument("readRelayQueryData",function(e,t,n,i){var a=new o(e,i).retrieveData(t,n);return r(103)(t,i),a})},function(e,t){e.exports=d},function(e,t,r){"use strict";var n=r(5)(r(12));var i=function(e){function t(t){var r;return(r=e.call(this)||this)._shouldRemoveFragments=!!t,r}(0,n.default)(t,e);var r=t.prototype;return r.visitFragment=function(e,t){var r=e.getType();if(this._shouldRemoveFragments||r===t.type)this.traverse(e,t);else{var n=t.flattenedFragmentMap.get(r);n||(n={node:e,type:r,flattenedFieldMap:new Map,flattenedFragmentMap:new Map},t.flattenedFragmentMap.set(r,n)),this.traverse(e,n)}},r.visitField=function(e,t){var r=e.getShallowHash(),n=t.flattenedFieldMap.get(r);n||(n={node:e,type:e.getType(),flattenedFieldMap:new Map,flattenedFragmentMap:new Map},t.flattenedFieldMap.set(r,n)),this.traverse(e,n)},t}(r(20));e.exports=r(1).RelayProfiler.instrument("flattenRelayQuery",function(e,t){var r=new i(t&&t.shouldRemoveFragments),n={node:e,type:e.getType(),flattenedFieldMap:new Map,flattenedFragmentMap:new Map};return r.traverse(e,n),function e(t,r,n){var i=r.flattenedFieldMap,a=r.flattenedFragmentMap,o=[],s=Array.from(i.keys());return s.forEach(function(t){var r=i.get(t);r&&o.push(e(r.node,r,n))}),Array.from(a.keys()).forEach(function(t){var r=a.get(t);r&&o.push(e(r.node,r,n))}),n&&t.canHaveSubselections()&&!o.length?t:t.clone(o)}(e,n,!(!t||!t.preserveEmptyNodes))})},function(e,t,r){"use strict";var n=r(5)(r(8)),i=r(5)(r(12)),a=function(e){function t(t,r,n,i,a){var o;return(o=e.call(this)||this)._changeTracker=i,o._forceIndex=a&&a.forceIndex?a.forceIndex:0,o._isOptimisticUpdate=!(!a||!a.isOptimisticUpdate),o._store=t,o._queryTracker=n,o._updateTrackedQueries=!(!a||!a.updateTrackedQueries),o._writer=r,o}(0,i.default)(t,e);var a=t.prototype;return a.getRecordStore=function(){return this._store},a.getRecordWriter=function(){return this._writer},a.getRecordTypeName=function(e,t,n){if(this._isOptimisticUpdate)return this._store.getType(t);var i=n[r(4).TYPENAME];return null==i&&(i=e.isAbstract()?this._store.getType(t):e.getType()),i||null},a.writePayload=function(e,t,n,i){var a=this,o={nodeID:null,path:i,recordID:t,responseData:n};e instanceof r(2).Field&&e.canHaveSubselections()?e.getChildren().forEach(function(e){a.visit(e,o)}):this.visit(e,o)},a.recordCreate=function(e){this._changeTracker.createID(e)},a.recordUpdate=function(e){this._changeTracker.updateID(e)},a.isNewRecord=function(e){return this._changeTracker.isNewRecord(e)},a.createRecordIfMissing=function(e,t,n,i){var a=this._store.getRecordState(t),o=i&&this.getRecordTypeName(e,t,i);this._writer.putRecord(t,o,n),a!==r(13).EXISTENT&&this.recordCreate(t),!this._queryTracker||!this.isNewRecord(t)&&!this._updateTrackedQueries||r(3).isClientID(t)&&!r(7).isRootPath(n)||this._queryTracker.trackNodeForID(e,t)},a.visitRoot=function(e,t){var n=t.path,i=t.recordID,a=t.responseData,o=this._store.getRecordState(i);if(null==a)return void 0===a&&r(0)(!1),this._writer.deleteRecord(i),void(o===r(13).EXISTENT&&this.recordUpdate(i));("object"!=typeof a||null===a)&&r(0)(!1),this.createRecordIfMissing(e,i,n,a),this.traverse(e,t)},a.visitFragment=function(e,t){var i=t.recordID;if(e.isDeferred()){var a=e.getSourceCompositeHash()||e.getCompositeHash();this._writer.setHasDeferredFragmentData(i,a),this.recordUpdate(i)}if(this._isOptimisticUpdate||r(39)(e,this._store.getType(i))){!this._isOptimisticUpdate&&e.isTrackingEnabled()&&this._writer.setHasFragmentData(i,e.getCompositeHash());var o=r(7).getPath(t.path,e,i);this.traverse(e,(0,n.default)({},t,{path:o}))}},a.visitField=function(e,t){var n=t.recordID,i=t.responseData;this._writer.getRecordState(n)!==r(13).EXISTENT&&r(0)(!1),("object"!=typeof i||null===i)&&r(0)(!1);var a=e.getSerializationKey(),o=i[a];if(null==o){if(void 0===o){if(i.hasOwnProperty(a))return;if(this._isOptimisticUpdate)return}var s=e.getStorageKey(),u=this._store.getField(n,s);return this._writer.deleteField(n,s),void(null!==u&&this.recordUpdate(n))}e.canHaveSubselections()?e.isConnection()?this._writeConnection(e,t,n,o):e.isPlural()?this._writePluralLink(e,t,n,o):this._writeLink(e,t,n,o):this._writeScalar(e,t,n,o)},a._writeScalar=function(e,t,r,n){var i=e.getStorageKey(),a=this._store.getField(r,i);this._writer.putField(r,i,n),Array.isArray(a)&&Array.isArray(n)&&a.length===n.length&&a.every(function(e,t){return e===n[t]})||a!==n&&this.recordUpdate(r)},a._writeConnection=function(e,t,n,i){var a=r(1).ConnectionInterface.get().EDGES,o=e.getStorageKey(),s=this._store.getLinkedRecordID(n,o)||r(30)(),u=this._store.getRecordState(s),c=!!(e.getFieldByStorageKey(a)||null!=i&&"object"==typeof i&&i[a]),l=r(7).getPath(t.path,e,s);this._writer.putRecord(s,null,l),this._writer.putLinkedRecordID(n,o,s),u!==r(13).EXISTENT&&(this.recordUpdate(n),this.recordCreate(s)),c&&((!this._writer.hasRange(s)||this._forceIndex&&this._forceIndex>this._store.getRangeForceIndex(s))&&this._writer.putRange(s,e.getCallsWithValues(),this._forceIndex),this.recordUpdate(s));var d={nodeID:null,path:l,recordID:s,responseData:i};this._traverseConnection(e,e,d)},a._traverseConnection=function(e,t,n){var i=this,a=r(1).ConnectionInterface.get(),o=a.EDGES,s=a.PAGE_INFO;t.getChildren().forEach(function(t){t instanceof r(2).Field?t.getSchemaName()===o?i._writeEdges(e,t,n):t.getSchemaName()!==s&&i.visit(t,n):i._traverseConnection(e,t,n)})},a._writeEdges=function(e,t,n){var i=this,a=r(1).ConnectionInterface.get(),o=a.EDGES,s=a.NODE,u=a.PAGE_INFO,c=n.recordID,l=n.responseData;("object"!=typeof l||null===l)&&r(0)(!1);var d=l[o];if(null!=d){Array.isArray(d)||r(0)(!1);var f=e.getCallsWithValues();r(1).ConnectionInterface.hasRangeCalls(f)||r(0)(!1);var h=this._store.getRangeMetadata(c,f);h||r(0)(!1);var _=[],g=h.filteredEdges,p=!1,v=0;d.forEach(function(e){if(null!=e){"object"==typeof e&&e||r(0)(!1);var a=e[s];if(null!=a){"object"!=typeof a&&r(0)(!1);var o=g[v++],u=a&&a[r(4).ID]||o&&i._store.getLinkedRecordID(o.edgeID,s)||r(30)(),l=r(47)(c,u),d=r(7).getPath(n.path,t,l);i.createRecordIfMissing(t,l,d,null),_.push(l),i.traverse(t,{nodeID:u,path:d,recordID:l,responseData:e}),p=p||!o||l!==o.edgeID}}});var y=l[u]||r(1).ConnectionInterface.getDefaultPageInfo();this._writer.putRangeEdges(c,f,y,_),p&&this.recordUpdate(c)}},a._writePluralLink=function(e,t,n,i){var a=this,o=e.getStorageKey();Array.isArray(i)||r(0)(!1);var s=this._store.getLinkedRecordIDs(n,o),u=[],c={},l=!1,d=0;i.forEach(function(n){if(null!=n){"object"==typeof n&&n||r(0)(!1);var i=s&&s[d],o=n[r(4).ID]||i||r(30)();u.push(o);var f=r(7).getPath(t.path,e,o);a.createRecordIfMissing(e,o,f,n),c[o]={record:n,path:f},l=l||o!==i,d++}}),this._writer.putLinkedRecordIDs(n,o,u),u.forEach(function(t){var r=c[t];r&&a.traverse(e,{nodeID:null,path:r.path,recordID:t,responseData:r.record})}),!l&&s&&s.length===u.length||this.recordUpdate(n)},a._writeLink=function(e,t,n,i){var a=r(1).ConnectionInterface.get().NODE,o=t.nodeID,s=e.getStorageKey();("object"!=typeof i||null===i)&&r(0)(!1);var u=this._store.getLinkedRecordID(n,s),c=e.getSchemaName()===a&&o||i[r(4).ID]||u||r(30)(),l=r(7).getPath(t.path,e,c);this.createRecordIfMissing(e,c,l,i),this._writer.putLinkedRecordID(n,s,c),u!==c&&this.recordUpdate(n),this.traverse(e,{nodeID:null,path:l,recordID:c,responseData:i})},t}(r(20));e.exports=a},function(e,t,r){"use strict";e.exports=function(e,t){return"client:"+e+":"+t}},function(e,t,r){"use strict";var n={},i={},a={},o={},s={isClientOnlyID:function(e){return r(3).isClientID(e)&&!n[e]},updateClientServerIDMap:function(e,t){n[e]=t},getServerIDForClientID:function(e){return n[e]||null},putClientIDForMutation:function(e,t){i[t]=e;var r=s.getErrorNodeForMutation(t);r&&(s.deleteMutationForErrorNode(r),s.putErrorNodeForMutation(e,t))},getClientIDForMutation:function(e){return i[e]},deleteClientIDForMutation:function(e){delete i[e]},putErrorNodeForMutation:function(e,t){o[e]=t,a[t]=e},getMutationForErrorNode:function(e){return o[e]},getErrorNodeForMutation:function(e){return a[e]},deleteMutationForErrorNode:function(e){delete o[e]},deleteErrorNodeForMutation:function(e){delete a[e]}};e.exports=s},function(e,t,r){"use strict";var n={};n[r(1).RangeOperations.APPEND]="__rangeOperationAppend__",n[r(1).RangeOperations.IGNORE]="__rangeOperationIgnore__",n[r(1).RangeOperations.PREPEND]="__rangeOperationPrepend__",n[r(1).RangeOperations.REFETCH]="__rangeOperationRefetch__",n[r(1).RangeOperations.REMOVE]="__rangeOperationRemove__",e.exports=Object.freeze(n)},function(e,t,r){"use strict";e.exports={getClassicFragment:function(e){return r(42).__getClassicFragment(e)},getClassicOperation:function(e){return r(42).__getClassicOperation(e)},graphql:function(){r(0)(!1)},isClassicFragment:function(e){return null!=r(6).getFragmentDefinition(r(42).__getClassicNode(e))},isClassicOperation:function(e){return null!=r(6).getOperationDefinition(r(42).__getClassicNode(e))}}},function(e,t,r){"use strict";var n=r(5)(r(17)),i=r(5)(r(8)),a="RelayGraphQLMutation",o=0,s=function(){function e(e,t,r,n,i,s){this._query=e,this._variables=t,this._files=r||null,this._environment=n,this._callbacks=i||null,this._collisionKey=s||"".concat(a,":collisionKey:").concat(o++),this._transaction=null}e.create=function(t,r,n){return new e(t,r,null,n)},e.createWithFiles=function(t,r,n,i){return new e(t,r,n,i)};var t=e.prototype;return t.applyOptimistic=function(e,t,n){return this._transaction&&r(0)(!1),this._transaction=this._createTransaction(e,t),this._transaction.applyOptimistic(n)},t.commit=function(e){return this._transaction||(this._transaction=this._createTransaction()),this._transaction.commit(e)},t.rollback=function(){if(this._transaction)return this._transaction.rollback()},t._createTransaction=function(e,t){return new u(this._environment,this._query,this._variables,this._files,e,t,this._collisionKey,this._callbacks)},e}();var u=function(){function e(e,t,n,i,a,o,s,u){this._configs=[],this._query=t,this._variables=n,this._files=i,this._optimisticQuery=a||null,this._optimisticResponse=o||null,this._collisionKey=s,this.onFailure=u&&u.onFailure,this.onSuccess=u&&u.onSuccess,this.status=r(11).CREATED,this.error=null,this._mutation=null,this._optimisticConfigs=null,this._optimisticMutation=null,this.mutationTransaction=e.getStoreData().getMutationQueue().createTransactionWithPendingTransaction(this),this.id=this.mutationTransaction.getID()}var t=e.prototype;return t.getCallName=function(){return this._mutation||r(0)(!1),this._mutation.getCall().name},t.getCollisionKey=function(){return this._collisionKey},t.getConfigs=function(){return this._configs},t.getFiles=function(){return this._files},t.getOptimisticConfigs=function(){return this._optimisticConfigs},t.getOptimisticQuery=function(e){if(!this._optimisticMutation&&this._optimisticQuery){var t=r(6).getMutation(this._optimisticQuery),n=r(2).Mutation.create(t,r(9).get("$RelayGraphQLMutation"),this._getVariables());this._optimisticMutation=n}return this._optimisticMutation},t.getOptimisticResponse=function(){return(0,i.default)({},this._optimisticResponse,(0,n.default)({},r(1).ConnectionInterface.get().CLIENT_MUTATION_ID,this.id))},t.getQuery=function(e){if(!this._mutation){var t=r(6).getMutation(this._query),n=r(2).Mutation.create(t,r(9).get("$RelayGraphQLMutation"),this._getVariables());this._mutation=n}return this._mutation},t.commit=function(e){return e&&(this._configs=e),this.mutationTransaction.commit()},t.applyOptimistic=function(e){return e&&(this._optimisticConfigs=e),this.mutationTransaction.applyOptimistic()},t.rollback=function(){this.mutationTransaction.rollback()},t._getVariables=function(){var e=this._variables.input;return e||r(0)(!1),(0,i.default)({},this._variables,{input:(0,i.default)({},e,(0,n.default)({},r(1).ConnectionInterface.get().CLIENT_MUTATION_ID,this.id))})},e}();e.exports=s},function(e,t,r){"use strict";var n="::client",i=0;e.exports=function(){return r(34)(i++)+n}},function(e,t){e.exports=f},function(e,t,r){"use strict";function n(e,t,r){return e=e||0,t?e|r:e&~r}function i(e,t){return 0!=((e||0)&t)}var a={setOptimisticStatus:function(e,t){return n(e,t,1)},isOptimisticStatus:function(e){return i(e,1)},setPartialStatus:function(e,t){return n(e,t,4)},isPartialStatus:function(e){return i(e,4)}};e.exports=a},function(e,t,r){"use strict";var n=r(75);e.exports=function(e){return n(e)},e.exports.injectImpl=function(e){n=e}},function(e,t){e.exports=h},function(e,t,r){"use strict";var n=1;e.exports=function(){return n++}},function(e,t,r){"use strict";var n=r(3).MetadataKey.FILTER_CALLS,i=r(3).MetadataKey.FORCE_INDEX,a=r(3).MetadataKey.MUTATION_IDS,o=r(3).MetadataKey.PATH,s=r(3).MetadataKey.RANGE,u=r(3).MetadataKey.RESOLVED_FRAGMENT_MAP,c=function(){function e(e,t,r){this._cachedRecords=e.cachedRecords,this._cachedRootCallMap=t&&t.cachedRootCallMap||{},this._queuedRecords=e.queuedRecords,this._nodeConnectionMap=r||{},this._records=e.records,this._rootCallMap=t&&t.rootCallMap||{},this._storage=[],this._queuedRecords&&this._storage.push(this._queuedRecords),this._records&&this._storage.push(this._records),this._cachedRecords&&this._storage.push(this._cachedRecords)}var t=e.prototype;return t.getDataID=function(e,t){return r(4).isNodeRootCall(e)?(null==t&&r(0)(!1),t):(null==t&&(t=""),this._rootCallMap.hasOwnProperty(e)&&this._rootCallMap[e].hasOwnProperty(t)?this._rootCallMap[e][t]:this._cachedRootCallMap.hasOwnProperty(e)?this._cachedRootCallMap[e][t]:void 0)},t.getRecordState=function(e){var t=this._getRecord(e);return null===t?r(13).NONEXISTENT:void 0===t?r(13).UNKNOWN:r(13).EXISTENT},t.getPathToRecord=function(e){return this._getField(e,o)},t.hasOptimisticUpdate=function(e){var t=this._queuedRecords;return!!t&&t.hasOwnProperty(e)},t.getClientMutationIDs=function(e){var t=this._queuedRecords;if(t){var r=t[e];if(r)return r[a]}return null},t.hasFragmentData=function(e,t){var n=this._getField(e,u);return"object"!=typeof n&&null!=n&&r(0)(!1),!(!n||!n[t])},t.getType=function(e){return this._getField(e,"__typename")},t.getField=function(e,t){return this._getField(e,t)},t.getLinkedRecordID=function(e,t){var n=this._getField(e,t);if(null==n)return n;var i=r(3).getRecord(n);return i||r(0)(!1),r(3).getDataID(i)},t.getLinkedRecordIDs=function(e,t){var n=this._getField(e,t);return null==n?n:(Array.isArray(n)||r(0)(!1),n.map(function(e,t){var n=r(3).getRecord(e);return n||r(0)(!1),r(3).getDataID(n)}))},t.getConnectionIDsForRecord=function(e){var t=this._nodeConnectionMap[e];return t?Object.keys(t):null},t.getConnectionIDsForField=function(e,t){var n,i=this._records[e];return null==i?i:(r(10)(i,function(e,i){if(e&&function(e){return e.split(/(?![_A-Za-z][_0-9A-Za-z]*)/,1)[0]}(i)===t){var a=r(3).getDataIDForObject(e);a&&(n=n||[]).push(a)}}),n)},t.getRangeForceIndex=function(e){var t=this._getField(e,i);return null===t?-1:t||0},t.getRangeFilterCalls=function(e){return this._getField(e,n)},t.getRangeMetadata=function(e,t){var n=this;if(null==e)return e;var i=this._getField(e,s);if(null!=i){var a=function(e){return e.filter(function(e){return!r(1).ConnectionInterface.isConnectionCall(e)})}(t);if(t.length===a.length)return{diffCalls:t,filterCalls:a,pageInfo:void 0,requestedEdgeIDs:[],filteredEdges:[]};var o,u=this._queuedRecords?this._queuedRecords[e]:null,c=i.retrieveRangeInfoForQuery(t,u),l=c.diffCalls,d=c.pageInfo,f=c.requestedEdgeIDs;if(l=l&&l.length?a.concat(l):[],f){var h=r(1).ConnectionInterface.get().NODE;o=f.map(function(e){return{edgeID:e,nodeID:n.getLinkedRecordID(e,h)}}).filter(function(e){return n._getRecord(e.nodeID)})}else o=[];return{diffCalls:l,filterCalls:a,pageInfo:d,requestedEdgeIDs:f,filteredEdges:o}}},t.hasRange=function(e){return!!this._getField(e,s)},t.removeRecord=function(e){delete this._records[e],this._queuedRecords&&delete this._queuedRecords[e],this._cachedRecords&&delete this._cachedRecords[e],delete this._nodeConnectionMap[e]},t._getRecord=function(e){return this._queuedRecords&&this._queuedRecords.hasOwnProperty(e)?this._queuedRecords[e]:this._records.hasOwnProperty(e)?this._records[e]:this._cachedRecords?this._cachedRecords[e]:void 0},t._getField=function(e,t){for(var r=this._storage,n=0;n<r.length;n++){var i=r[n][e];if(null===i)return null;if(i&&i.hasOwnProperty(t))return i[t]}},e}();e.exports=c},function(e,t,r){"use strict";var n=r(5)(r(26)),i=r(1).RangeOperations.REFETCH,a={buildFragmentForFields:function(e){var t=e.fatQuery,i=e.fieldIDs,a=e.tracker,u=[];return r(10)(i,function(e,i){var s=o(t,i),c=[];[].concat(e).forEach(function(e){c.push.apply(c,(0,n.default)(a.getTrackedChildrenForID(e)))});var l=s.clone(c),d=null;l&&(d=r(60)(l,s))&&u.push(d)}),s(t,u)},buildFragmentForEdgeDeletion:function(e){var t=e.fatQuery,n=e.connectionName,i=e.parentID,a=e.parentName,u=e.tracker,l=o(t,a);c(l,a,n);var d=[],f=l.clone(u.getTrackedChildrenForID(i));if(f){var h=r(60)(f,l,function(e){return e.getSchemaName()===n});h&&(c(h,a,n),d.push(h))}return s(t,d)},buildFragmentForEdgeInsertion:function(e){var t=e.fatQuery,a=e.connectionName,d=e.parentID,f=e.edgeName,h=e.parentName,_=e.rangeBehaviors,g=[],p={},v=e.tracker.getTrackedChildrenForID(d),y=[];if(v.forEach(function(e){y.push.apply(y,(0,n.default)(l(e,a)))}),y.length){u(h,a,y[0]);var m=[];y.forEach(function(e){var t=l(e,"edges");if(t.length){var a=e.getRangeBehaviorCalls(),o=r(77)(_,a);o&&o!==i?t.forEach(function(e){m.push.apply(m,(0,n.default)(e.getChildren()))}):p[e.getShallowHash()]=!0}}),m.length&&g.push(function(e,t,i){var a=[r(2).Field.build({fieldName:"cursor",type:"String"}),r(2).Field.build({fieldName:r(4).TYPENAME,type:"String"})];r(1).ConnectionInterface.get().EDGES_HAVE_SOURCE_FIELD&&!r(3).isClientID(e)&&a.push(r(2).Field.build({children:[r(2).Field.build({fieldName:r(4).ID,type:"String"}),r(2).Field.build({fieldName:r(4).TYPENAME,type:"String"})],fieldName:"source",metadata:{canHaveSubselections:!0},type:r(4).ANY_TYPE}));a.push.apply(a,(0,n.default)(i));var o=r(45)(r(2).Field.build({children:a,fieldName:t,metadata:{canHaveSubselections:!0},type:r(4).ANY_TYPE}));return o instanceof r(2).Field||r(0)(!1),o}(d,f,m))}if(null!=h){var D=o(t,h);c(D,h,a);var I=D.clone(v);if(I){var b=r(60)(I,D,function(e){return e.getSchemaName()===a&&!p.hasOwnProperty(e.getShallowHash())});b&&g.push(b)}}return s(t,g)},buildFragmentForOptimisticUpdate:function(e){var t=e.response;return s(e.fatQuery,r(78).inferRelayFieldsFromData(t))},buildQueryForOptimisticUpdate:function(e){var t=e.fatQuery,n=e.mutation,i=e.response,o=[r(25)(a.buildFragmentForOptimisticUpdate({response:i,fatQuery:t}))];return r(2).Mutation.build("OptimisticQuery",t.getType(),n.calls[0].name,null,o,n.metadata)},buildQuery:function(e){var t=e.configs,n=e.fatQuery,i=e.input,o=e.mutationName,u=e.mutation,c=e.tracker,l=r(1).ConnectionInterface.get().CLIENT_MUTATION_ID,d=[r(2).Field.build({fieldName:l,type:"String",metadata:{isRequisite:!0}})];return t.forEach(function(e){switch(e.type){case r(1).MutationTypes.REQUIRED_CHILDREN:var t=e.children.map(function(e){return r(2).Fragment.create(e,r(9).get("$buildQuery"),{})});d=d.concat(t);break;case r(1).MutationTypes.RANGE_ADD:0,d.push(a.buildFragmentForEdgeInsertion({connectionName:e.connectionName,edgeName:e.edgeName,fatQuery:n,parentID:e.parentID,parentName:e.parentName,rangeBehaviors:function(e){if("function"==typeof e)return e;var t;r(10)(e,function(e,r){if(""!==r){var n=r.slice(0,-1).split(/\)\./);n.sort().join(").")+(n.length?")":"")!==r&&(t=t||[]).push(r)}}),t&&r(0)(!1);return e}(e.rangeBehaviors),tracker:c}));break;case r(1).MutationTypes.RANGE_DELETE:case r(1).MutationTypes.NODE_DELETE:var i=a.buildFragmentForEdgeDeletion({connectionName:e.connectionName,fatQuery:n,parentID:e.parentID,parentName:e.parentName,tracker:c});d.push(i);var o=function(e,t){e.length>0||r(0)(!1);for(var n=r(2).Field.build({fieldName:e[e.length-1],type:"String"}),i=e.length-2;i>=0;i--)n=r(2).Field.build({fieldName:e[i],type:r(4).ANY_TYPE,children:[n],metadata:{canHaveSubselections:!0}});return s(t,[n])}(Array.isArray(e.deletedIDFieldName)?e.deletedIDFieldName.concat(r(4).ID):[e.deletedIDFieldName],n);d.push(o);break;case r(1).MutationTypes.FIELDS_CHANGE:0,d.push(a.buildFragmentForFields({fatQuery:n,fieldIDs:e.fieldIDs,tracker:c}));break;default:r(0)(!1)}}),r(2).Mutation.build(o,n.getType(),u.calls[0].name,i,d.filter(function(e){return null!=e}),u.metadata)}};function o(e,t){var n=e.getFieldByStorageKey(t);return n||r(0)(!1),n}function s(e,t){var n=r(2).Fragment.build("MutationQuery",e.getType(),t);return n instanceof r(2).Fragment||r(0)(!1),n}function u(e,t,n){n.isConnection()||r(0)(!1)}function c(e,t,r){var n=l(e,r);n.length&&u(0,0,n[0])}function l(e,t){var n=[];return function i(a){a instanceof r(2).Field&&a.getSchemaName()===t?n.push(a):(a===e||a instanceof r(2).Fragment)&&a.getChildren().forEach(function(e){return i(e)})}(e),n}e.exports=a},function(e,t,r){"use strict";var n=r(5)(r(12));var i=function(e){function t(t){var r;return(r=e.call(this)||this)._filterUnterminatedRange=t,r}return(0,n.default)(t,e),t.prototype.traverse=function(e,t){var n=this;return e.canHaveSubselections()?function(e){return!e.getChildren().every(s)}(t)?e.clone(e.getChildren().map(function(e){if(e instanceof r(2).Fragment)return n.visit(e,t);if(e instanceof r(2).Field){for(var i,a=e.getSchemaName(),o=t.getChildren(),s=0;s<o.length;s++){var u=o[s];if(u instanceof r(2).Field||r(0)(!1),u.getSchemaName()===a){i=u;break}}if(i)return n.visit(e,i)}return null})):e instanceof r(2).Field&&e.isConnection()&&this._filterUnterminatedRange(e)?function(e){return a.traverse(e,void 0)}(e):e:e},t}(r(61)),a=new(function(e){function t(){return e.apply(this,arguments)||this}return(0,n.default)(t,e),t.prototype.visitField=function(e){var t=r(1).ConnectionInterface.get(),n=t.EDGES,i=t.PAGE_INFO,a=e.getSchemaName();return a===n||a===i?null:e},t}(r(61)));function o(){return!1}function s(e){return e.isGenerated()}e.exports=function(e,t,r){return new i(r=r||o).traverse(e,t)}},function(e,t,r){"use strict";var n=r(5)(r(12)),i=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.default)(t,e),t.prototype.traverse=function(e,t){return e.canHaveSubselections()?(this.traverseChildren(e,t,function(e,n,i){var a=i[n],o=this.visit(a,t);o!==a&&(r=r||i.slice(0,n)),r&&o&&r.push(o)},this),r?r.length?e.clone(r):null:e):e;var r},t}(r(20));e.exports=i},function(e,t,r){"use strict";var n=r(1).RangeOperations.APPEND,i=r(1).RangeOperations.PREPEND,a=r(1).RangeOperations.REMOVE,o=r(3).MetadataKey.FILTER_CALLS,s=r(3).MetadataKey.FORCE_INDEX,u=r(3).MetadataKey.MUTATION_IDS,c=r(3).MetadataKey.PATH,l=r(3).MetadataKey.RANGE,d=r(3).MetadataKey.RESOLVED_FRAGMENT_MAP,f=r(3).MetadataKey.RESOLVED_FRAGMENT_MAP_GENERATION,h=r(3).MetadataKey.STATUS,_=function(){function e(e,t,r,n,i,a){this._cacheWriter=i,this._clientMutationID=a,this._isOptimisticWrite=r,this._nodeConnectionMap=n||{},this._records=e,this._rootCallMap=t}var t=e.prototype;return t.getDataID=function(e,t){return r(4).isNodeRootCall(e)?(null==t&&r(0)(!1),t):(null==t&&(t=""),this._rootCallMap.hasOwnProperty(e)&&this._rootCallMap[e].hasOwnProperty(t)?this._rootCallMap[e][t]:void 0)},t.putDataID=function(e,t,n){r(4).isNodeRootCall(e)?null==t&&r(0)(!1):(null==t&&(t=""),this._rootCallMap[e]=this._rootCallMap[e]||{},this._rootCallMap[e][t]=n,this._cacheWriter&&this._cacheWriter.writeRootCall(e,t,n))},t.getRecordState=function(e){var t=this._records[e];return null===t?"NONEXISTENT":void 0===t?"UNKNOWN":"EXISTENT"},t.putRecord=function(e,t,n){if(!this._getRecordForWrite(e)){var i=r(3).createWithFields(e,{__typename:t});this._isOptimisticWrite&&this._setClientMutationID(i),r(3).isClientID(e)&&n&&(i[c]=n),this._records[e]=i;var a=this._cacheWriter;!this._isOptimisticWrite&&a&&a.writeField(e,"__dataID__",e,t)}},t.getPathToRecord=function(e){return this._getField(e,c)},t.hasFragmentData=function(e,t){var n=this._getField(e,d);return"object"!=typeof n&&null!=n&&r(0)(!1),!(!n||!n[t])},t.setHasDeferredFragmentData=function(e,t){this._setHasFragmentData(e,t,!0)},t.setHasFragmentData=function(e,t){this._setHasFragmentData(e,t,!1)},t._setHasFragmentData=function(e,t,n){var i=this._getRecordForWrite(e);i||r(0)(!1);var a=i[d];"object"==typeof a&&a||(a={}),a[t]=!0,i[d]=a,n&&("number"==typeof i[f]?i[f]++:i[f]=0)},t.deleteRecord=function(e){this._records[e]=null,this._isOptimisticWrite||(delete this._nodeConnectionMap[e],this._cacheWriter&&this._cacheWriter.writeNode(e,null))},t.getType=function(e){return this._getField(e,"__typename")},t.getField=function(e,t){return this._getField(e,t)},t.putField=function(e,t,n){var i=this._getRecordForWrite(e);if(i||r(0)(!1),i[t]=n,!this._isOptimisticWrite&&this._cacheWriter){var a=i.__typename;this._cacheWriter.writeField(e,t,n,a)}},t.deleteField=function(e,t){var n=this._getRecordForWrite(e);n||r(0)(!1),n[t]=null,!this._isOptimisticWrite&&this._cacheWriter&&this._cacheWriter.writeField(e,t,null)},t.getLinkedRecordID=function(e,t){var n=this._getField(e,t);if(null==n)return n;var i=r(3).getRecord(n);return i||r(0)(!1),r(3).getDataID(i)},t.putLinkedRecordID=function(e,t,n){var i=this._getRecordForWrite(e);i||r(0)(!1);var a=r(3).create(n);i[t]=a,!this._isOptimisticWrite&&this._cacheWriter&&this._cacheWriter.writeField(e,t,a)},t.getLinkedRecordIDs=function(e,t){var n=this._getField(e,t);return null==n?n:(Array.isArray(n)||r(0)(!1),n.map(function(e,t){var n=r(3).getRecord(e);return n||r(0)(!1),r(3).getDataID(n)}))},t.putLinkedRecordIDs=function(e,t,n){var i=this._getRecordForWrite(e);i||r(0)(!1);var a=n.map(function(e){return r(3).create(e)});i[t]=a,!this._isOptimisticWrite&&this._cacheWriter&&this._cacheWriter.writeField(e,t,a)},t.getRangeForceIndex=function(e){var t=this._getField(e,s);return null===t?-1:t||0},t.getRangeFilterCalls=function(e){return this._getField(e,o)},t.putRange=function(e,t,n){this._isOptimisticWrite&&r(0)(!1);var i=this._getRecordForWrite(e);i||r(0)(!1);var a=new(r(83)),u=function(e){return e.filter(function(e){return!r(1).ConnectionInterface.isConnectionCall(e)})}(t);n=n||0,i[o]=u,i[s]=n,i[l]=a;var c=this._cacheWriter;!this._isOptimisticWrite&&c&&(c.writeField(e,o,u),c.writeField(e,s,n),c.writeField(e,l,a))},t.hasRange=function(e){return!!this._getField(e,l)},t.putRangeEdges=function(e,t,n,i){var a=this,o=this._getField(e,l);o||r(0)(!1);var s=[];i.forEach(function(t){var n=a._getRangeEdgeRecord(t);s.push(n);var i=r(3).getDataID(n.node);a._addConnectionForNode(e,i)}),o.addItems(t,s,n),!this._isOptimisticWrite&&this._cacheWriter&&this._cacheWriter.writeField(e,l,o)},t.applyRangeUpdate=function(e,t,r){this._isOptimisticWrite?this._applyOptimisticRangeUpdate(e,t,r):this._applyServerRangeUpdate(e,t,r)},t._getRangeEdgeRecord=function(e){var t=r(1).ConnectionInterface.get(),n=t.CURSOR,i=t.NODE,a=this.getLinkedRecordID(e,i);return a||r(0)(!1),r(3).createWithFields(e,{cursor:this.getField(e,n),node:r(3).create(a)})},t._applyOptimisticRangeUpdate=function(e,t,n){var a=this._getRecordForWrite(e);a||(a=r(3).create(e),this._records[e]=a),this._setClientMutationID(a);var o=r(49)[n],s=a[o];s||(s=[],a[o]=s),n===i?s.unshift(t):s.push(t)},t._applyServerRangeUpdate=function(e,t,i){var o=this._getField(e,l);if(o||r(0)(!1),i===a){o.removeEdgeWithID(t);var s=this.getLinkedRecordID(t,"node");s&&this._removeConnectionForNode(e,s)}else{var u=this._getRangeEdgeRecord(t),c=r(3).getDataID(u.node);this._addConnectionForNode(e,c),i===n?o.appendEdge(this._getRangeEdgeRecord(t)):o.prependEdge(this._getRangeEdgeRecord(t))}this._cacheWriter&&this._cacheWriter.writeField(e,l,o)},t._addConnectionForNode=function(e,t){var r=this._nodeConnectionMap[t];r||(r={},this._nodeConnectionMap[t]=r),r[e]=!0},t._removeConnectionForNode=function(e,t){var r=this._nodeConnectionMap[t];r&&(delete r[e],0===Object.keys(r).length&&delete this._nodeConnectionMap[t])},t._getRecordForWrite=function(e){var t=this._records[e];return t?(this._isOptimisticWrite&&this._setClientMutationID(t),t):t},t._getField=function(e,t){var r=this._records[e];return null===r?null:r&&r.hasOwnProperty(t)?r[t]:void 0},t._setClientMutationID=function(e){var t=this._clientMutationID;t||r(0)(!1);var n=e[u]||[];-1===n.indexOf(t)&&(n.push(t),e[u]=n),e[h]=r(54).setOptimisticStatus(0,!0)},e}();e.exports=_},function(e,t,r){"use strict";var n=r(5)(r(8)),i=r(5)(r(26)),a=new Map,o=new Map;function s(e,t){return e.length>t}var u={Fragment:function(e,t){var n=a.get(e);if(n)return r(6).getFragment(n);var i=l(t);s(e,1)&&r(0)(!1);var o=null!=(n=e(i))?r(6).getFragment(n):null;return o?(a.set(e,o),o):o},Query:function(e,t,n,i){var a;if(r(88).getEnabled()){var s=o.get(e);s?a=s.get(t):(s=new Map,o.set(e,s)),a||(a=c(e,t,n,i)),s.set(t,a)}else a=c(e,t,n,i);return a?r(6).getQuery(a)||void 0:null}};function c(e,t,a,o){var u,c=l(o);if(s(e,2)&&r(0)(!1),s(e,0))u=e(t,c);else{u=e(t,c);var d=r(6).getQuery(u);if(d){var f=!1,h=!0;if(d.children&&d.children.forEach(function(e){e&&(f=f||"Fragment"===e.kind,h=h&&"Field"===e.kind&&(!e.children||0===e.children.length))}),!f){var _=d.children?(0,i.default)(d.children):[];h||r(0)(!1);var g=r(89)(c,function(e,r){return t.hasVariable(r)});_.push(t.getFragment(a,g)),u=(0,n.default)({},d,{children:_})}}}return u}function l(e){return r(37)(e,function(e,t){return r(6).createCallVariable(t)})}r(1).RelayProfiler.instrumentMethods(u,{Fragment:"buildRQL.Fragment",Query:"buildRQL.Query"}),e.exports=u},function(e,t,r){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.applyMutation&&"function"==typeof e.sendMutation&&"function"==typeof e.forceFetch&&"function"==typeof e.getFragmentResolver&&"function"==typeof e.getStoreData&&"function"==typeof e.primeCache}},function(e,t,r){"use strict";var n=new Map;function i(e,t){var n={};return e.getFragmentNames().forEach(function(e){n[e]=null}),Object.keys(t.queries).forEach(function(i){if(e.hasFragment(i)){var a=t.queries[i];if(a){var o=r(63).Query(a,e,i,t.params);if(void 0===o&&r(0)(!1),o){var s=r(2).Root.create(o,r(9).get(t.name),t.params),u=s.getIdentifyingArg();if(!u||void 0!==u.value)return void(n[i]=s)}}n[i]=null}}),n}e.exports=r(1).RelayProfiler.instrument("Relay.getQueries",function(e,t){if(!r(88).getEnabled())return i(e,t);var a=n.get(e);a||(a={},n.set(e,a));var o=t.name+":"+r(24)(t.params);if(a.hasOwnProperty(o))return a[o];var s=i(e,t);return a[o]=s,s})},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,r){"use strict";function n(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:n,getContainerName:function(e){return"Relay("+n(e)+")"}}},function(e,t,r){"use strict";function n(e,t,r,n){var i;for(i in t)if((!n||n.hasOwnProperty(i))&&t.hasOwnProperty(i)&&(!r.hasOwnProperty(i)||!e(t[i],r[i],i)))return!1;for(i in r)if((!n||n.hasOwnProperty(i))&&r.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0}var i={areQueryResultsEqual:function(e,t,i){return n(function(e,t,n,i){return e[i]&&t===n||r(1).isScalarAndEqual(t,n)}.bind(null,e),t,i)},areNonQueryPropsEqual:function(e,t,i){return n(function(e,t,n,i){return e.hasOwnProperty(i)||r(1).isScalarAndEqual(t,n)}.bind(null,e),t,i)},areQueryVariablesEqual:function(e,t){return n(r(1).isScalarAndEqual,e,t)}};e.exports=i},function(e,t,r){"use strict";var n=r(5)(r(8)),i=function(){var e=t.prototype;function t(e){this._storeData=e||new(r(105)),this._storeData.getChangeEmitter().injectBatchingStrategy(r(84)),this.applyUpdate=this.applyUpdate.bind(this),this.commitUpdate=this.commitUpdate.bind(this),this.unstable_internal=r(132)}return e.applyMutation=function(e){var t=e.configs,n=e.operation,i=e.optimisticResponse,a=e.variables,o=new(r(51))(n.node,r(36).getOperationVariables(n,a),null,this);o.applyOptimistic(n.node,i,t);var s=!1;return{dispose:function(){s||(s=!0,o.rollback())}}},e.check=function(e){return!1},e.commitPayload=function(e,t){var n=e.root,i=r(2).Fragment.create(n.node,r(9).get("$RelayEnvironment"),n.variables),a=r(7).getRootRecordPath();this._storeData.handleFragmentPayload(n.dataID,i,a,t,null)},e._lookup=function(e){var t=r(2).Fragment.create(e.node,r(9).get("$RelayEnvironment"),e.variables),i=r(43)(this._storeData,t,e.dataID),a=i.data,o=i.dataIDs;return o[e.dataID]=!0,(0,n.default)({},e,{data:a,seenRecords:o,isMissingData:!1})},e.lookup=function(e){return this._lookup(e)},e.sendMutation=function(e){var t=e.configs,n=e.onCompleted,i=e.onError,a=e.operation,o=e.optimisticOperation,s=e.optimisticResponse,u=e.variables,c=e.uploadables,l=!1,d=new(r(51))(a.node,r(36).getOperationVariables(a,u),c,this,{onSuccess:function(e){l||n&&n(e)},onFailure:function(e){if(!l&&i){var t=e.getError();t||(t=new Error("RelayEnvironment: Unknown error executing mutation ".concat(a.node.name))),i(t)}}});return s&&d.applyOptimistic(o?o.node:a.node,s,t),d.commit(t),{dispose:function(){l||(l=!0)}}},e.subscribe=function(e,t){var n,i=this,a=this._storeData.getChangeEmitter();return n=a.addListenerForIDs(Object.keys(e.seenRecords),function o(){var s=i._lookup(e);s.data=r(1).recycleNodesInto(e.data,s.data),s.data!==e.data&&(n&&n.remove(),n=a.addListenerForIDs(Object.keys(s.seenRecords),o),t(e=s))}),{dispose:function(){n&&(n.remove(),n=null)}}},e.retain=function(e){return{dispose:function(){}}},e.sendQuery=function(e){var t=this,n=e.cacheConfig,i=e.onCompleted,a=e.onError,o=e.onNext,s=e.operation,u=!1,c=r(2).OSSQuery.create(s.node,r(9).get("$RelayEnvironment"),s.variables),l=new(r(74))(c);return l.getPromise().then(function(e){if(!u){var a=n&&n.force?r(57)():null;t._storeData.handleOSSQueryPayload(c,e.response,a),o&&o(s.root),i&&i()}},function(e){u||a&&a(e)}),this._storeData.getTaskQueue().enqueue(function(){t._storeData.getNetworkLayer().sendQueries([l])}),{dispose:function(){u=!0}}},e.execute=function(e){var t=this,i=e.operation,a=e.cacheConfig;e.updater;return r(1).Observable.fromLegacy(function(e){return t.sendQuery((0,n.default)({operation:i,cacheConfig:a},e))})},e.getStoreData=function(){return this._storeData},e.injectDefaultNetworkLayer=function(e){this._storeData.getNetworkLayer().injectDefaultImplementation(e)},e.injectNetworkLayer=function(e){this._storeData.getNetworkLayer().injectImplementation(e)},e.injectQueryTracker=function(e){this._storeData.injectQueryTracker(e)},e.addNetworkSubscriber=function(e,t){return this._storeData.getNetworkLayer().addNetworkSubscriber(e,t)},e.injectTaskScheduler=function(e){this._storeData.injectTaskScheduler(e)},e.injectCacheManager=function(e){this._storeData.injectCacheManager(e)},e.primeCache=function(e,t){return this._storeData.getQueryRunner().run(e,t)},e.forceFetch=function(e,t){return this._storeData.getQueryRunner().forceFetch(e,t)},e.read=function(e,t,n){return r(43)(this._storeData,e,t,n).data},e.readAll=function(e,t,n){var i=this;return t.map(function(t){return r(43)(i._storeData,e,t,n).data})},e.readQuery=function(e,t){var n=this,i=this._storeData.getQueuedStore(),a=e.getStorageKey(),o=[];return r(23)(e,function(r){var s,u=r.identifyingArgKey,c=i.getDataID(a,u);null!=c&&(s=n.read(e,c,t)),o.push(s)}),o},e.getFragmentResolver=function(e,t){return new(r(85))(this._storeData,e,t)},e.applyUpdate=function(e,t){return e.bindEnvironment(this),this._storeData.getMutationQueue().createTransaction(e,t).applyOptimistic()},e.commitUpdate=function(e,t){var r=this.applyUpdate(e,t),n=r.getStatus();return setTimeout(function(){r.getStatus()===n&&r.commit()}),r},e.update=function(e,t){this.commitUpdate(e,t)},t}();e.exports=i},function(e,t,r){"use strict";var n="_";e.exports=function(e){var t=e.indexOf(".");return-1===t?e:n+e.substr(0,t)+r(34)(r(71)(e)>>>0)}},function(e,t){e.exports=_},function(e,t,r){"use strict";e.exports=function(e){return e.map(function(e){var t=e.name,n=e.type,i=e.value,a=null;return Array.isArray(i)?a=i.map(r(6).createCallValue):null!=i&&(a=r(6).createCallValue(i)),r(6).createCall(t,a,n)})}},function(e,t,r){"use strict";var n=function(){function e(e){this._builder=e}return e.prototype.getFragmentForRoute=function(e){return this._builder(e)},e}();e.exports=n},function(e,t,r){"use strict";var n=r(5)(r(12)),i=function(e){function t(t){var r;return(r=e.call(this)||this)._printedQuery=null,r._query=t,r}(0,n.default)(t,e);var i=t.prototype;return i.getDebugName=function(){var e=this._query.getName();return this._query.isDeferred()?e+" (DEFERRED)":e},i.getID=function(){return this._query.getID()},i._getPrintedQuery=function(){var e=this._printedQuery;return null==e&&(e=this._query instanceof r(2).OSSQuery?r(75)(this._query):r(55)(this._query),this._printedQuery=e),e},i.getVariables=function(){return this._getPrintedQuery().variables},i.getQueryString=function(){return this._getPrintedQuery().text},i.getQuery=function(){return this._query},t}(r(56));e.exports=i},function(e,t,r){"use strict";var n="",i="";var a=" {"+i+n+r(4).TYPENAME+i+"}";function o(e){var t=null;return e.variableMap.forEach(function(e,r){e.forEach(function(e){var n=e.variableID;(t=t||[]).push("$"+n+":"+r)})}),t?"("+t.join(",")+")":""}var s=function(e){return"include"===e.name||"skip"===e.name},u=function(e){return!s(e)};function c(e,t,a){for(var o,s=[],u=e.getChildren(),d=0;d<u.length;d++){var _=u[d];if(_ instanceof r(2).Field){var g=_.getSchemaName(),p=_.getCallsWithValues();if(p.length){g=_.getSerializationKey()+":"+g;for(var v=[],y=0;y<p.length;y++){var m=p[y],D=m.name,I=h(D,m.value,_.getCallType(D),t);I&&v.push(I)}v.length&&(g+="("+v.join(",")+")")}if(g+=l(_),_.canHaveSubselections()){var b=c(_,t,a+n);null!=b&&(g+=b,s.push(g))}else s.push(g)}else if(_ instanceof r(2).Fragment){if(_.getChildren().length){var C=t.fragmentNameByHash,R=t.fragmentNameByText,F=t.fragmentTexts,E=_.getCompositeHash(),N=void 0;if(C.hasOwnProperty(E))N=C[E];else{var S=_.getType()+f(_,t);R.hasOwnProperty(S)?N=R[S]:(N="F"+r(34)(t.fragmentCount++),C[E]=N,R[S]=N,F.push("fragment "+N+" on "+S))}o&&o.hasOwnProperty(N)||((o=o||{})[N]=!0,s.push("..."+N))}}else r(0)(!1)}return s.length?" {"+i+a+n+s.join(","+i+a+n)+i+a+"}":null}function l(e,t){var r;return e.getDirectives().forEach(function(e){if(!t||t(e)){var n="@"+e.name;e.args.length&&(n+="("+e.args.map(d).join(",")+")"),(r=r||[]).push(n)}}),r?" "+r.join(" "):""}function d(e){var t=e.name,n=e.value;return"boolean"!=typeof n&&"number"!=typeof n&&"string"!=typeof n&&r(0)(!1),t+":"+JSON.stringify(n)}function f(e,t){var a=l(e,s);return l(e,u)+(a?" {"+i+n+"..."+a+r(25)(c(e,t,n))+i+"}":r(25)(c(e,t,"")))}function h(e,t,n,i){if(null==t)return t;var a;null!=n?a="$"+function(e,t,n,i){null==t&&r(0)(!1);var a=JSON.stringify(t),o=function(e){return"!"===e[e.length-1]?e:e+"!"}(n),s=i.variableMap.get(o);s||(s=new Map,i.variableMap.set(o,s));var u=s.get(a);if(u)return u.variableID;var c=e+"_"+r(34)(i.variableCount++);return s.set(a,{value:t,variableID:c}),c}(e,t,n,i):a=JSON.stringify(t);return e+":"+a}e.exports=r(1).RelayProfiler.instrument("printRelayQuery",function(e){var t=[],s=new Map,u={fragmentCount:0,fragmentNameByHash:{},fragmentNameByText:{},fragmentTexts:t,variableCount:0,variableMap:s},d=null;e instanceof r(2).Root?d=function(e,t){e.getBatchCall()&&r(0)(!1);var s=e.getIdentifyingArg(),u=s&&s.name||null,d=s&&s.type||null,f=s&&s.value||null,_=e.getFieldName();if(null!=f){u||r(0)(!1);var g=h(u,f,d,t);g&&(_+="("+g+")")}var p=c(e,t,n),v=e.getName()+o(t);return _+=l(e),null==p?"query "+v+a:"query "+v+" {"+i+n+_+p+i+"}"}(e,u):e instanceof r(2).Operation?d=function(e,t){var s=e instanceof r(2).Mutation?"mutation":"subscription",u=e.getCall(),l=h(e.getCallVariableName(),u.value,e.getInputType(),t);l||r(0)(!1);var d=c(e,t,n)||a,f=e.getName()+o(t),_=u.name+"("+l+")";return s+" "+f+" {"+i+n+_+d+i+"}"}(e,u):e instanceof r(2).Fragment?d=function(e,t){return"fragment "+e.getDebugName()+" on "+e.getType()+f(e,t)}(e,u):e instanceof r(2).OSSQuery&&(d=function(e,t){var r=c(e,t,n)||a,i=l(e),s=o(t);return"query "+e.getName()+s+i+r}(e,u)),d||r(0)(!1);var _={};return s.forEach(function(e){e.forEach(function(e){var t=e.value,r=e.variableID;_[r]=t})}),{text:[d].concat(t).join(i.length?i:" "),variables:_}})},function(e,t,r){"use strict";var n=r(5)(r(12)),i=function(e){function t(t,r){var n;return(n=e.call(this)||this)._mutation=t,n._printedQuery=null,n._files=r,n}(0,n.default)(t,e);var i=t.prototype;return i.getDebugName=function(){return this._mutation.getName()},i.getFiles=function(){return this._files},i.getVariables=function(){return this._getPrintedQuery().variables},i.getQueryString=function(){return this._getPrintedQuery().text},i.getMutation=function(){return this._mutation},i._getPrintedQuery=function(){return this._printedQuery||(this._printedQuery=r(55)(this._mutation)),this._printedQuery},t}(r(56));e.exports=i},function(e,t,r){"use strict";e.exports=function(e,t){if("function"==typeof e)return e(function(e){var t={};return e.forEach(function(e){t[e.name]=e.value}),t}(t));var n=e[t.map(r(35)).sort().join("").slice(1)];return null==n?null:("string"!=typeof n&&r(0)(!1),n)}},function(e,t,r){"use strict";var n=r(5)(r(17)),i=r(5)(r(8)),a=/^(\w+)(?:\((.+?)\))?$/,o=/(\w+)(?=\s*:)/,s=/^\w+(?:\.\w+\(.*?\))+$/,u=/^(\w+)\((.*?)\)$/,c=r(2).Field.build({fieldName:r(4).ID,type:"String"}),l=r(2).Field.build({fieldName:"cursor",type:"String"}),d={inferRelayFieldsFromData:function(e){var t=[];return r(10)(e,function(e,n){r(3).isMetadataKey(n)||t.push(function(e,t){var n,i=r(1).ConnectionInterface.get(),a=i.NODE,o=i.EDGES,s={canHaveSubselections:!0,isPlural:!1};if(Array.isArray(e)){var u=e[0];u&&"object"==typeof u?n=d.inferRelayFieldsFromData(u):(s.canHaveSubselections=!1,n=[]),s.isPlural=!0}else"object"==typeof e&&null!==e?n=d.inferRelayFieldsFromData(e):(s.canHaveSubselections=!1,n=[]);t===a?n.push(c):t===o&&n.push(l);return f(t,n,s)}(e,n))}),t},inferRelayPayloadFromData:function(e){var t=e;return r(10)(e,function(e,a){if(!r(3).isMetadataKey(a)){var o=function(e,t){var r={canHaveSubselections:!0,isPlural:!1},n=e;if(Array.isArray(e)&&Array.isArray(n)){for(var i=0;i<e.length;i++){var a=e[i];if(a&&"object"==typeof a){var o=d.inferRelayPayloadFromData(a);o!==a&&((n=n.slice())[i]=o)}else r.canHaveSubselections=!1}r.isPlural=!0}else"object"==typeof e&&null!==e?n=d.inferRelayPayloadFromData(e):r.canHaveSubselections=!1;var s=f(t,[],r);return{newValue:n,newKey:s.getSerializationKey()}}(e,a),s=o.newValue,u=o.newKey;u!==a?delete(t=(0,i.default)({},t,(0,n.default)({},u,s)))[a]:s!==e&&(t=(0,i.default)({},t,(0,n.default)({},a,s)))}}),t}};function f(e,t,n){var i=e,c=null;if(s.test(e)){var l=e.split(".");l.length>1&&(i=l.shift(),c=l.map(function(e){var t=e.match(u);t||r(0)(!1);var n=t[2].split(",");return{name:t[1],value:1===n.length?n[0]:n}}))}else{var d=e.match(a);if(d||r(0)(!1),i=d[1],d[2])try{var f=JSON.parse("{"+d[2].replace(o,'"$1"')+"}");c=Object.keys(f).map(function(e){return{name:e,value:f[e]}})}catch(e){r(0)(!1)}}return r(2).Field.build({calls:c,children:t,fieldName:i,metadata:n,type:r(4).ANY_TYPE})}e.exports=d},function(e,t,r){"use strict";e.exports=function(e,t){this.node=e,this.nodePath=t}},function(e,t,r){"use strict";var n=r(5)(r(12));var i=function(e){function t(t,r,n,i,a,o){var s;return(s=e.call(this,t,o)||this)._cachedRecords=n,s._cachedRootCallMap=i,s._changeTracker=a,s._store=r,s}(0,n.default)(t,e);var i=t.prototype;return i.handleNodeVisited=function(e,t,n,i){var a=this._store.getRecordState(t);this._cachedRecords[t]=n,"UNKNOWN"===a&&void 0!==n?this._changeTracker.createID(t):"EXISTENT"===a&&null!=n&&this._changeTracker.updateID(t),n?r(3).isClientID(t)&&(n.__path__=i.path):this.handleFailure()},i.handleIdentifiedRootVisited=function(e,t,r,n){if(null!=t){var i=e.getStorageKey();this._cachedRootCallMap[i]=this._cachedRootCallMap[i]||{},this._cachedRootCallMap[i][r||""]=t,n.dataID=t}else this.handleFailure()},i.restoreFragmentData=function(e,t,r){var n=this;this.process(function(){n.visitFragment(t,{dataID:e,node:t,path:r,rangeCalls:void 0})})},i.restoreQueriesData=function(e){var t=this;this.process(function(){r(10)(e,function(e){"COMPLETED"!==t._state&&e&&t.visitRoot(e,{dataID:void 0,node:e,path:r(7).create(e),rangeCalls:void 0})})})},i.traverse=function(e,t){null==t.dataID&&r(0)(!1);var n=r(127)(this._store,this._cachedRecords,t.node,t.dataID,t.path,t.rangeCalls),i=n.missingData,a=n.pendingNodeStates;if(i)this.handleFailure();else for(var o=0;o<a.length;o++){if("COMPLETED"===this._state)return;null==a[o].dataID&&r(0)(!1),this.visitNode(a[o].node,a[o].dataID,a[o])}},i.visitIdentifiedRoot=function(t,n,i){var a=this._store.getDataID(t.getStorageKey(),n);null==a?e.prototype.visitIdentifiedRoot.call(this,t,n,i):this.traverse(t,{dataID:a,node:t,path:r(7).create(t),rangeCalls:void 0})},t}(r(128));r(1).RelayProfiler.instrumentMethods(i.prototype,{handleIdentifiedRootVisited:"RelayCachedDataRestorator.handleIdentifiedRootVisited",handleNodeVisited:"RelayCachedDataRestorator.handleNodeVisited",queueIdentifiedRoot:"RelayCachedDataRestorator.queueRoot",queueNode:"RelayCachedDataRestorator.queueNode",restoreFragmentData:"RelayCachedDataRestorator.readFragment",restoreQueriesData:"RelayCachedDataRestorator.read",traverse:"RelayCachedDataRestorator.traverse",visitNode:"RelayCachedDataRestorator.visitNode",visitRoot:"RelayCachedDataRestorator.visitRoot"}),e.exports={restoreFragmentDataFromCache:function(e,t,r,n,a,o,s,u,c){var l=new i(s,n,a,o,u,c);return l.restoreFragmentData(e,t,r),{abort:function(){l.abort()}}},restoreQueriesDataFromCache:function(e,t,r,n,a,o,s){var u=new i(a,t,r,n,o,s);return u.restoreQueriesData(e),{abort:function(){u.abort()}}}}},function(e,t){e.exports=g},function(e,t,r){"use strict";e.exports=r(1).RelayProfiler.instrument("writeRelayQueryPayload",function(e,t,n){var i=e.getRecordStore(),a=e.getRecordWriter(),o=r(7).create(t);r(4).getResultsFromPayload(t,n).forEach(function(n){var s,u=n.result,c=n.rootCallInfo,l=c.storageKey,d=c.identifyingArgKey;"object"==typeof u&&u&&"string"==typeof u[r(4).ID]&&(s=u[r(4).ID]),null==s&&(s=i.getDataID(l,d)||r(30)()),a.putDataID(l,d,s),e.writePayload(t,s,u,o)})})},function(e,t,r){"use strict";var n=r(5)(r(8)),i=r(5)(r(17)),a=r(5)(r(26));function o(e){for(var t={},n=0;n<e.length;n++)if(r(1).ConnectionInterface.isConnectionCall(e[n])){var i=e[n],a=i.value;if(Array.isArray(a)&&a.length&&(a=a[0]),null===a)continue;t[i.name]=a}return t.first?(isNaN(t.first)&&r(0)(!1),t.first=+t.first):t.last&&(isNaN(t.last)&&r(0)(!1),t.last=+t.last),t}function s(e){return e.hasOwnProperty("surrounds")||e.hasOwnProperty("find")}function u(e){var t=e.hasOwnProperty("first"),r=e.hasOwnProperty("last");return(t||r)&&!(t&&r)}function c(e){void 0===r(3).getDataIDForObject(e)&&r(0)(!1),void 0===e.node&&r(0)(!1)}var l=function(){function e(){this.reset()}var t=e.prototype;return t.reset=function(){this._orderedSegments=[new(r(31)),new(r(31))],this._staticQueriesMap={},this._hasFirst=!1,this._hasLast=!1},t._resetSegment=function(e){e>=0&&e<this._orderedSegments.length||r(0)(!1),this._orderedSegments[e]=new(r(31))},t._getSegmentIndexByCursor=function(e){for(var t=null,r=0;r<this._orderedSegments.length;r++){if(this._orderedSegments[r].containsEdgeWithCursor(e))return r;this._orderedSegments[r].containsEdgeWithCursor(e,!0)&&(t=r)}return t},t._getSegmentIndexByID=function(e){for(var t=0;t<this._orderedSegments.length;t++)if(this._orderedSegments[t].containsEdgeWithID(e))return t;return null},t._addStaticEdges=function(e,t){for(var n=d(e),i=[],a=[],o=0;o<t.length;o++){var s=t[o];i.push(r(3).getDataIDForObject(s)),a.push(s.cursor)}this._staticQueriesMap[n]={edgeIDs:i,cursors:a}},t.addItems=function(e,t,n){!function(e){e.forEach(c)}(t);var i,a,l=o(e);if(s(l))this._addStaticEdges(e,t);else if(u(l))if(null!==l.before&&null!==l.after){var d=r(1).ConnectionInterface.get(),f=d.HAS_NEXT_PAGE,h=d.HAS_PREV_PAGE;l.first?l.before&&!l.after?!0===n[f]&&0!==t.length?(0===this._getSegmentIndexByCursor(l.before)&&this._orderedSegments.unshift(new(r(31))),this._addAfterFirstItems(t,n[f],void 0,l.before)):this._addBeforeLastItems(t,n[h],l.before):(l.after||(a=0,(i=this.getFirstSegment().getCount())&&(l.first>i||t.length>i)&&!this.getFirstSegment().getFirstCursor()&&this._resetSegment(a)),this._addAfterFirstItems(t,n[f],l.after,l.before)):l.last&&(l.after&&!l.before?!0===n[h]&&0!==t.length?(this._getSegmentIndexByCursor(l.after)===this._orderedSegments.length-1&&this._orderedSegments.push(new(r(31))),this._addBeforeLastItems(t,n[h],void 0,l.after)):this._addAfterFirstItems(t,n[f],l.after):(l.before||(a=this._orderedSegments.length-1,(i=this.getLastSegment().getCount())&&(l.last>i||t.length>i)&&!this.getLastSegment().getLastCursor()&&this._resetSegment(a)),this._addBeforeLastItems(t,n[h],l.before,l.after)))}else console.error("GraphQLRange received null as a cursor.");else console.error("GraphQLRange.addItems only handles first(<count>), after(<cursor>).first(<count>), last(<count>), before(<cursor>).last(<count>), before(<cursor>).first(<count>), and after(<cursor>).last(<count>)")},t.getFirstSegment=function(){return this._orderedSegments[0]},t.getLastSegment=function(){return this._orderedSegments[this._orderedSegments.length-1]},t._concatSegments=function(e){e+1<this._orderedSegments.length&&e>=0||r(0)(!1);var t=this._orderedSegments[e],n=this._orderedSegments[e+1];t.concatSegment(n)?this._orderedSegments.splice(e+1,1):console.warn("GraphQLRange was unable to concat segment %d and segment %d",e,e+1)},t.prependEdge=function(e){c(e),this._hasFirst=!0,this._removeEdgeIfApplicable(e),this.getFirstSegment().prependEdge(e)},t.appendEdge=function(e){c(e),this._hasLast=!0,this._removeEdgeIfApplicable(e),this.getLastSegment().appendEdge(e)},t._removeEdgeIfApplicable=function(e){var t=r(3).getDataIDForObject(e),n=this._getSegmentIndexByID(t);null!=n&&this._orderedSegments[n].removeEdge(t)},t._dedupEdgesAgainstRange=function(e){var t=this;return e.filter(function(e){var n=r(3).getDataIDForObject(e);return null==t._getSegmentIndexByID(n)})},t._addAfterFirstItems=function(e,t,r,n){var i,a,o;if(void 0!==r){if(null==(a=this._getSegmentIndexByCursor(r)))return;if((o=(i=this._orderedSegments[a]).getLastCursor())!==r&&(e=this._reconcileAfterFirstEdges(i,e,r),r=o,!e))return}else if(a=0,void 0!==(o=(i=this._orderedSegments[a]).getLastCursor())&&(r=o,!(e=this._reconcileAfterFirstEdges(i,e))))return;var s=this._orderedSegments[a+1];if(void 0!==n){if(a===this._orderedSegments.length-1)return void console.warn("GraphQLRange cannot add because there is no next segment");if(!s.isFirstCursor(n))return}void 0===r&&(this._hasFirst=!0);var u=this._dedupEdgesAgainstRange(e);i.addEdgesAfterCursor(u,r),t||(void 0!==n?this._concatSegments(a):(this._hasLast=!0,this._orderedSegments.splice(a+1,this._orderedSegments.length-1-a)))},t._reconcileAfterFirstEdges=function(e,t,n){var i=e.getMetadataAfterCursor(t.length+1,n).edgeIDs;if(!(i.length>t.length)){for(var a=0;a<i.length;a++)if(i[a]!==r(3).getDataIDForObject(t[a]))return;return t.slice(i.length)}},t._addBeforeLastItems=function(e,t,r,n){var i,a,o;if(void 0!==r){if(null==(a=this._getSegmentIndexByCursor(r)))return;if((o=(i=this._orderedSegments[a]).getFirstCursor())!==r&&(e=this._reconcileBeforeLastEdges(i,e,r),r=o,!e))return}else if(a=this._orderedSegments.length-1,void 0!==(o=(i=this._orderedSegments[a]).getFirstCursor())&&(e=this._reconcileBeforeLastEdges(i,e,r),r=o,!e))return;var s=this._orderedSegments[a-1];if(void 0!==n){if(0===a)return void console.warn("GraphQLRange cannot add because there is no previous segment");if(!s.isLastCursor(n))return}void 0===r&&(this._hasLast=!0);var u=this._dedupEdgesAgainstRange(e);i.addEdgesBeforeCursor(u,r),t||(void 0!==n?this._concatSegments(a-1):(this._hasFirst=!0,this._orderedSegments.splice(0,a)))},t._reconcileBeforeLastEdges=function(e,t,n){var i=e.getMetadataBeforeCursor(t.length+1,n).edgeIDs;if(!(i.length>t.length)){for(var a=1;a<=i.length;a++)if(i[i.length-a]!==r(3).getDataIDForObject(t[t.length-a]))return;return t.slice(0,t.length-i.length)}},t.removeEdgeWithID=function(e){for(var t=0;t<this._orderedSegments.length;t++)this._orderedSegments[t].removeAllEdges(e)},t.retrieveRangeInfoForQuery=function(e,t){var n=o(e);return s(n)?this._retrieveRangeInfoForStaticCalls(e):u(n)?n.first&&n.before||n.last&&n.after?{requestedEdgeIDs:[],diffCalls:[],pageInfo:r(1).ConnectionInterface.getDefaultPageInfo()}:function(e){return e.hasOwnProperty("first")&&e.first>0||e.hasOwnProperty("last")&&e.last>0}(n)?n.first?this._retrieveRangeInfoForFirstQuery(e,t):n.last?this._retrieveRangeInfoForLastQuery(e,t):void 0:(console.error("GraphQLRange only supports first(<count>) or last(<count>) where count is greater than 0"),{requestedEdgeIDs:[],diffCalls:[],pageInfo:r(1).ConnectionInterface.getDefaultPageInfo()}):(console.error("GraphQLRange.retrieveRangeInfoForQuery only handles first(<count>), after(<cursor>).first(<count>), last(<count>), before(<cursor>).last(<count>), before(<cursor>).first(<count>), and after(<cursor>).last(<count>)"),{requestedEdgeIDs:[],diffCalls:[],pageInfo:r(1).ConnectionInterface.getDefaultPageInfo()})},t._retrieveRangeInfoForStaticCalls=function(e){var t=d(e),n=this._staticQueriesMap[t];if(n){var a,o=r(1).ConnectionInterface.get(),s=o.END_CURSOR,u=o.HAS_NEXT_PAGE,c=o.HAS_PREV_PAGE,l=o.START_CURSOR;return{requestedEdgeIDs:n.edgeIDs,diffCalls:[],pageInfo:(a={},(0,i.default)(a,l,n.cursors[0]),(0,i.default)(a,s,n.cursors[n.cursors.length-1]),(0,i.default)(a,u,!0),(0,i.default)(a,c,!0),a)}}return{requestedEdgeIDs:[],diffCalls:e,pageInfo:r(1).ConnectionInterface.getDefaultPageInfo()}},t._getAppendedIDsForQueuedRecord=function(e){return e[r(49)[r(1).RangeOperations.APPEND]]},t._getRemovedIDsForQueuedRecord=function(e){return e[r(49)[r(1).RangeOperations.REMOVE]]},t._getPrependedIDsForQueuedRecord=function(e){return e[r(49)[r(1).RangeOperations.PREPEND]]},t._retrieveRangeInfoForFirstQuery=function(e,t){var i,a,s,u=r(1).ConnectionInterface.get(),c=u.END_CURSOR,l=u.HAS_NEXT_PAGE,d=u.START_CURSOR;t&&(i=this._getAppendedIDsForQueuedRecord(t),a=this._getPrependedIDsForQueuedRecord(t),s=this._getRemovedIDsForQueuedRecord(t));var f,h,_=o(e),g=_.first+(s?s.length:0),p=(0,n.default)({},r(1).ConnectionInterface.getDefaultPageInfo()),v=_.after;if(void 0!==v){if(null==(h=this._getSegmentIndexByCursor(v)))return console.warn("GraphQLRange cannot find a segment that has the cursor: "+v),{requestedEdgeIDs:[],diffCalls:[],pageInfo:p};f=this._orderedSegments[h]}else{g-=a?a.length:0,h=0,f=this._orderedSegments[h]}var y=f.getMetadataAfterCursor(g,v),m=y.edgeIDs,D=y.cursors,I=[];D.length&&(p[d]=D[0],p[c]=D[D.length-1]);var b=m[m.length-1];if((!this._hasLast||h!==this._orderedSegments.length-1||b&&b!==f.getLastID())&&(p[l]=!0,m.length<g)){g-=m.length;var C=f.getLastCursor();if(null===C)I.push({name:"first",value:_.first});else{if(void 0!==C&&I.push({name:"after",value:C}),h!==this._orderedSegments.length-1){var R=this._orderedSegments[h+1].getFirstCursor();void 0!==R&&I.push({name:"before",value:R})}I.push({name:"first",value:g})}}return t&&(a&&a.length&&!_.after&&(m=a.concat(m)),i&&i.length&&!p[l]&&(m=m.concat(i)),s&&s.length&&(m=m.filter(function(e){return-1===s.indexOf(e)})),m.length>_.first&&(m=m.slice(0,_.first))),{requestedEdgeIDs:m,diffCalls:I,pageInfo:p}},t._retrieveRangeInfoForLastQuery=function(e,t){var i,a,s,u=r(1).ConnectionInterface.get(),c=u.END_CURSOR,l=u.HAS_PREV_PAGE,d=u.START_CURSOR;t&&(i=this._getAppendedIDsForQueuedRecord(t),a=this._getPrependedIDsForQueuedRecord(t),s=this._getRemovedIDsForQueuedRecord(t));var f,h,_=o(e),g=_.last+(s?s.length:0),p=(0,n.default)({},r(1).ConnectionInterface.getDefaultPageInfo()),v=_.before;if(void 0!==v){if(null==(h=this._getSegmentIndexByCursor(v)))return console.warn("GraphQLRange cannot find a segment that has the cursor: "+v),{requestedEdgeIDs:[],diffCalls:[],pageInfo:p};f=this._orderedSegments[h]}else{g-=i?i.length:0,h=this._orderedSegments.length-1,f=this._orderedSegments[h]}var y=f.getMetadataBeforeCursor(g,v),m=y.edgeIDs,D=y.cursors,I=[];D.length&&(p[d]=D[0],p[c]=D[D.length-1]);var b=m[0];if((!this._hasFirst||0!==h||b&&b!==f.getFirstID())&&(p[l]=!0,m.length<g)){g-=m.length;var C=f.getFirstCursor();if(null===C)I.push({name:"last",value:_.last});else{if(void 0!==C&&I.push({name:"before",value:C}),0!==h){var R=this._orderedSegments[h-1].getLastCursor();void 0!==R&&I.push({name:"after",value:R})}I.push({name:"last",value:g})}}if(t&&(i&&i.length&&!_.before&&(m=m.concat(i)),a&&a.length&&!p[l]&&(m=a.concat(m)),s&&s.length&&(m=m.filter(function(e){return-1===s.indexOf(e)})),m.length>_.last)){var F=m.length;m=m.slice(F-_.last,F)}return{requestedEdgeIDs:m,diffCalls:I,pageInfo:p}},e.fromJSON=function(t){var n=t[0],i=t[1],a=t[2],o=t[3],s=new e;return s._hasFirst=n,s._hasLast=i,s._staticQueriesMap=a,s._orderedSegments=o.map(function(e){return r(31).fromJSON(e)}),s},t.toJSON=function(){return[this._hasFirst,this._hasLast,this._staticQueriesMap,this._orderedSegments]},t.__debug=function(){return{orderedSegments:this._orderedSegments}},t.getEdgeIDs=function(){var e=[];return this._orderedSegments.forEach(function(t){e.push.apply(e,(0,a.default)(t.getEdgeIDs()))}),r(10)(this._staticQueriesMap,function(t){e.push.apply(e,(0,a.default)(t.edgeIDs))}),e},t.getSegmentedEdgeIDs=function(){return this._orderedSegments.map(function(e){return e.getEdgeIDs()})},e}();function d(e){return e.map(function(e){return r(35)(e).substring(1)}).join(",")}e.exports=l},function(e,t,r){"use strict";e.exports=r(131).unstable_batchedUpdates},function(e,t,r){"use strict";var n=function(){function e(e,t,r){this.dispose(),this._callback=r,this._fragment=t,this._resolver=null,this._storeData=e}var t=e.prototype;return t.dispose=function(){this._resolver&&this._resolver.dispose()},t.resolve=function(e,t){if(this._fragment.getConcreteFragmentID(),e.getConcreteFragmentID(),Array.isArray(t)){var r=this._resolver;return r instanceof a&&(r.dispose(),r=null),r||(r=new i(this._storeData,this._callback)),this._resolver=r,r.resolve(e,t)}var n=this._resolver;return n instanceof i&&(n.dispose(),n=null),n||(n=new a(this._storeData,this._callback)),this._resolver=n,n.resolve(e,t)},e}(),i=function(){function e(e,t){this.dispose(),this._callback=t,this._storeData=e}var t=e.prototype;return t.dispose=function(){this._resolvers&&this._resolvers.forEach(function(e){return e.dispose()}),this._resolvers=[],this._results=[]},t.resolve=function(e,t){for(var r,n=this._results,i=n.length,o=t.length,s=this._resolvers;s.length<o;)s.push(new a(this._storeData,this._callback));for(;s.length>o;)s.pop().dispose();i!==o&&(r=[]);for(var u=0;u<o;u++){var c=s[u].resolve(e,t[u]);(r||u>=i||c!==n[u])&&(r=r||n.slice(0,u)).push(c)}return r&&(this._results=r),this._results},e}(),a=function(){function e(e,t){this.dispose(),this._callback=t,this._storeData=e,this._subscribedIDs={}}var t=e.prototype;return t.dispose=function(){this._subscription&&this._subscription.remove(),this._hasDataChanged=!1,this._fragment=null,this._result=null,this._resultID=null,this._subscription=null,this._subscribedIDs={}},t.resolve=function(e,t){var n,i,a=this._fragment,o=this._resultID,s=this._result;if(null!=a&&null!=o&&this._getCanonicalID(o)===this._getCanonicalID(t))if(o!==t||this._hasDataChanged||!e.isEquivalent(a)){var u=this._resolveFragment(e,t);n=u[0],i=u[1],n=r(1).recycleNodesInto(s,n)}else n=s;else{var c=this._resolveFragment(e,t);n=c[0],i=c[1]}if(s!==n){if(this._subscription&&(this._subscription.remove(),this._subscription=null),i){i[t]=!0;var l=this._storeData.getChangeEmitter();this._subscription=l.addListenerForIDs(Object.keys(i),this._handleChange.bind(this)),this._subscribedIDs=i}this._resultID=t,this._result=n}return this._hasDataChanged=!1,this._fragment=e,this._result},t._getCanonicalID=function(e){return this._storeData.getRangeData().getCanonicalClientID(e)},t._handleChange=function(){this._hasDataChanged||(this._hasDataChanged=!0,this._callback())},t._resolveFragment=function(e,t){var n=r(43)(this._storeData,e,t);return[n.data,n.dataIDs]},e}();r(1).RelayProfiler.instrumentMethods(n.prototype,{resolve:"GraphQLStoreQueryResolver.resolve"}),e.exports=n},function(e,t,r){"use strict";(function(t){var n=r(5)(r(8)),i=function(){function e(e,t){this._uri=e,this._init=(0,n.default)({},t),this.sendMutation=this.sendMutation.bind(this),this.sendQueries=this.sendQueries.bind(this),this.supports=this.supports.bind(this)}var i=e.prototype;return i.sendMutation=function(e){return this._sendMutation(e).then(function(e){return e.json()}).then(function(t){if(t.hasOwnProperty("errors")){var r=a(e,"200",t);e.reject(r)}else e.resolve({response:t.data})}).catch(function(t){return e.reject(t)})},i.sendQueries=function(e){var t=this;return Promise.all(e.map(function(e){return t._sendQuery(e).then(function(e){return e.json()}).then(function(t){if(t.hasOwnProperty("errors")){var r=a(e,"200",t);e.reject(r)}else t.hasOwnProperty("data")?e.resolve({response:t.data}):e.reject(new Error("Server response was missing for query "+"`".concat(e.getDebugName(),"`.")))}).catch(function(t){return e.reject(t)})}))},i.supports=function(){return!1},i._sendMutation=function(e){var i,o=e.getFiles();if(o){if(!t.FormData)throw new Error("Uploading files without `FormData` not supported.");var s=new FormData;for(var u in s.append("query",e.getQueryString()),s.append("variables",JSON.stringify(e.getVariables())),o)o.hasOwnProperty(u)&&s.append(u,o[u]);i=(0,n.default)({},this._init,{body:s,method:"POST"})}else i=(0,n.default)({},this._init,{body:JSON.stringify({query:e.getQueryString(),variables:e.getVariables()}),headers:(0,n.default)({},this._init.headers,{Accept:"*/*","Content-Type":"application/json"}),method:"POST"});return r(135)(this._uri,i).then(function(t){return function(e,t){return t.status>=200&&t.status<300?t:t.text().then(function(r){throw a(e,t.status,r)})}(e,t)})},i._sendQuery=function(e){return r(136)(this._uri,(0,n.default)({},this._init,{body:JSON.stringify({query:e.getQueryString(),variables:e.getVariables()}),headers:(0,n.default)({},this._init.headers,{Accept:"*/*","Content-Type":"application/json"}),method:"POST"}))},e}();function a(e,t,n){var i=e instanceof r(76)?"mutation":"query",a="object"==typeof n?function(e,t){var r=e.getQueryString().split("\n");return t.map(function(e,t){var n=e.locations,i=e.message,a=t+1+". ",o=" ".repeat(a.length);return a+i+(n?"\n"+n.map(function(e){var t=e.column,n=e.line,i=r[n-1],a=Math.min(t-1,20);return[i.substr(t-1-a,60)," ".repeat(Math.max(0,a))+"^^^"].map(function(e){return o+e}).join("\n")}).join("\n"):"")}).join("\n")}(e,n.errors):"Server response had an error status: ".concat(t),o=new Error("Server request for ".concat(i," `").concat(e.getDebugName(),"` ")+"failed for the following reasons:\n\n".concat(a));return o.source=n,o.status=t,o}e.exports=i}).call(this,r(87))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=!0,i={disable:function(){n=!1},getEnabled:function(){return n}};e.exports=i},function(e,t){e.exports=p},function(e,t,r){"use strict";e.exports=function(e){return!!(e&&e.getFragmentNames&&e.getFragment&&e.hasFragment&&e.hasVariable)}},function(e,t,r){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.sendQuery&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},function(e,t,r){"use strict";function n(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&r(91)(e.environment)&&r(93)(e.variables)}e.exports={assertRelayContext:function(e){return n(e)||r(0)(!1),e},isRelayContext:n}},function(e,t,r){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}},function(e,t,r){"use strict";var n=r(5)(r(8)),i=function(){function e(t){this.constructor===e&&r(0)(!1),Object.defineProperty(this,"name",{enumerable:!0,value:this.constructor.routeName}),Object.defineProperty(this,"params",{enumerable:!0,value:this.prepareVariables((0,n.default)({},t))||{}}),Object.defineProperty(this,"queries",{enumerable:!0,value:(0,n.default)({},this.constructor.queries)})}return e.prototype.prepareVariables=function(e){return e},e}();e.exports=i},function(e,t,r){"use strict";var n=r(5)(r(8)),i=r(5)(r(12)),a=function(e){function t(t,i){var a;return(a=e.call(this,t,i)||this)._relay={environment:t.environment,variables:t.queryConfig.params,route:t.queryConfig},a.state={getContainerProps:function(){var e,t;return function(i){t&&e&&e.Container===i.Container&&e.queryConfig===i.queryConfig||(t=r(65)(i.Container,i.queryConfig));var a=(0,n.default)({},i.queryConfig.params,r(37)(t,function(e){return function(e,t){return t?r(19).createForRoot(e.getStoreData().getQueuedStore(),t):null}(i.environment,e)}));return e=i,a}}()},a}(0,i.default)(t,e);var a=t.prototype;return a.UNSAFE_componentWillReceiveProps=function(e){this.props.environment===e.environment&&this.props.queryConfig===e.queryConfig||(this._relay={environment:e.environment,variables:e.queryConfig.params,route:e.queryConfig})},a.shouldComponentUpdate=function(e){var t=this.props;if(t.Container!==e.Container||t.environment!==e.environment||t.queryConfig!==e.queryConfig||t.render!==e.render||t.retry!==e.retry)return!0;var r=t.readyState,n=e.readyState;return null==r||null==n||(r.aborted!==n.aborted||r.done!==n.done||r.error!==n.error||r.ready!==n.ready||r.stale!==n.stale||n.ready)},a.render=function(){var e,t=!1,n=this.props,i=n.readyState,a=n.render;if(i){if(a)e=a({done:i.done,error:i.error,events:i.events,props:i.ready?this.state.getContainerProps(this.props):null,retry:this.props.retry,stale:i.stale});else if(i.ready){var o=this.props.Container;e=r(14).createElement(o,this.state.getContainerProps(this.props))}t=!0}return void 0===e&&(e=null,t=!1),r(14).createElement(r(96).Provider,{value:this._relay},r(14).createElement(r(143),{shouldUpdate:t},e))},t}(r(14).Component);e.exports=a},function(e,t,r){"use strict";var n=r(14).createContext(null);e.exports=n},function(e,t,r){"use strict";e.exports={proxyMethods:function(e,t){},injectProxyMethods:function(e){this.proxyMethods=e}}},function(e,t,r){"use strict";var n=r(5)(r(8)),i=r(5)(r(12)),a=r(5)(r(66)),o=r(5)(r(17)),s={aborted:!1,done:!1,error:null,events:[],ready:!1,stale:!1},u=function(e){function t(t,r){var n;return(n=e.call(this,t,r)||this).mounted=!0,n.pendingRequest=null,n.state={active:!1,readyState:null,retry:n._retry.bind((0,a.default)((0,a.default)(n)))},n}(0,i.default)(t,e);var o=t.prototype;return o.componentDidMount=function(){this._validateProps(this.props),this._runQueries(this.props)},o._validateProps=function(e){var r=t.propTypes.Container(e,"Container","RelayRenderer");if(r)throw r},o._runQueries=function(e){var t=this,i=e.Container,a=e.forceFetch,o=e.onForceFetch,s=e.onPrimeCache,u=e.queryConfig,c=e.environment;if(e.shouldFetch){var l=function(e){t.mounted?f===t.lastRequest&&((e.aborted||e.done||e.error)&&(t.pendingRequest=null),t.setState({active:!0,readyState:(0,n.default)({},e,{mounted:!0})})):t._handleReadyStateChange((0,n.default)({},e,{mounted:!1}))};this.pendingRequest&&this.pendingRequest.abort();var d=r(65)(i,u),f=this.pendingRequest=a?o?o(d,l):c.forceFetch(d,l):s?s(d,l):c.primeCache(d,l);this.lastRequest=f}},o._retry=function(){var e=this.state.readyState;e&&e.error&&(this._runQueries(this.props),this.setState({readyState:null}))},o.UNSAFE_componentWillReceiveProps=function(e){(e.Container!==this.props.Container||e.environment!==this.props.environment||e.queryConfig!==this.props.queryConfig||e.shouldFetch!==this.props.shouldFetch||e.forceFetch&&!this.props.forceFetch)&&(this._validateProps(e),this._runQueries(e),this.setState({readyState:null}))},o.componentDidUpdate=function(e,t){var r=this.state.readyState;r&&(t&&r===t.readyState||this._handleReadyStateChange(r))},o._handleReadyStateChange=function(e){var t=this.props.onReadyStateChange;t&&t(e)},o.componentWillUnmount=function(){this.pendingRequest&&this.pendingRequest.abort(),this.mounted=!1},o.render=function(){var e=this.state.active?this.state.readyState:s;return r(14).createElement(r(95),{Container:this.props.Container,environment:this.props.environment,queryConfig:this.props.queryConfig,readyState:e,render:this.props.render,retry:this.state.retry})},t}(r(14).Component);(0,o.default)(u,"propTypes",{Container:r(33).Container,forceFetch:r(15).bool,onReadyStateChange:r(15).func,queryConfig:r(33).QueryConfig.isRequired,environment:r(33).Environment,render:r(15).func,shouldFetch:r(15).bool}),(0,o.default)(u,"defaultProps",{shouldFetch:!0}),e.exports=u},function(e,t,r){"use strict";var n=r(5)(r(8));r(18).injectDefaultNetworkLayer(new(r(86))("/graphql")),e.exports=(0,n.default)({},r(137),{DefaultNetworkLayer:r(86)})},function(e,t,r){"use strict";e.exports=function(e){return e.map(function(e){var t=e.name,n=e.args.map(function(e){var t=e.name,n=e.value,i=null;return Array.isArray(n)?i=n.map(r(6).createCallValue):null!=n&&(i=r(6).createCallValue(n)),r(6).createDirectiveArgument(t,i)});return r(6).createDirective(t,n)})}},function(e,t){e.exports=v},function(e,t,r){"use strict";var n=function(){function e(e){this.name=e}var t=e.prototype;return t.equals=function(t){return t instanceof e&&t.getName()===this.name},t.getName=function(){return this.name},e}();e.exports=n},function(e,t,r){"use strict";r(5)(r(12));var n=r(104);e.exports=n},function(e,t){e.exports=y},function(e,t,r){"use strict";var n=r(5)(r(8)),i=r(2).Field.build({fieldName:r(4).ID,type:"String"}),a=r(2).Field.build({fieldName:r(4).TYPENAME,type:"String"}),o=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new(r(106));this._cacheManager=null,this._cachedRecords=e,this._cachedRootCallMap=t,this._cachedStore=new(r(58))({cachedRecords:e,records:i},{cachedRootCallMap:t,rootCallMap:a},o),this._changeEmitter=new(r(107))(s),this._mutationQueue=new(r(108))(this),this._networkLayer=new(r(114)),this._nodeRangeMap=o,this._pendingQueryTracker=new(r(115))(this),this._queryRunner=new(r(117))(this),this._queryTracker=new(r(125)),this._queuedRecords=n,this._queuedStore=new(r(58))({cachedRecords:e,queuedRecords:n,records:i},{cachedRootCallMap:t,rootCallMap:a},o),this._records=i,this._recordStore=new(r(58))({records:i},{rootCallMap:a},o),this._rangeData=s,this._rootCallMap=a,this._taskQueue=new(r(126))}var t=e.prototype;return t.injectQueryTracker=function(e){this._queryTracker=e},t.injectTaskScheduler=function(e){this._taskQueue.injectScheduler(e)},t.injectCacheManager=function(e){this._cacheManager=e},t.clearCacheManager=function(){this._cacheManager=null},t.hasCacheManager=function(){return!!this._cacheManager},t.getCacheManager=function(){return this._cacheManager},t.hasOptimisticUpdate=function(e){return e=this.getRangeData().getCanonicalClientID(e),this.getQueuedStore().hasOptimisticUpdate(e)},t.getClientMutationIDs=function(e){return e=this.getRangeData().getCanonicalClientID(e),this.getQueuedStore().getClientMutationIDs(e)},t.restoreQueriesFromCache=function(e,t){var n=this,i=this._cacheManager;i||r(0)(!1);var a=new(r(29)),o=r(1).RelayProfiler.profile("RelayStoreData.readFromDiskCache");return r(80).restoreQueriesDataFromCache(e,this._queuedStore,this._cachedRecords,this._cachedRootCallMap,i,a,{onSuccess:function(){n._handleChangedAndNewDataIDs(a.getChangeSet()),o.stop(),t.onSuccess&&t.onSuccess()},onFailure:function(){n._handleChangedAndNewDataIDs(a.getChangeSet()),o.stop(),t.onFailure&&t.onFailure()}})},t.restoreFragmentFromCache=function(e,t,n,i){var a=this,o=this._cacheManager;o||r(0)(!1);var s=new(r(29)),u=r(1).RelayProfiler.profile("RelayStoreData.readFragmentFromDiskCache");return r(80).restoreFragmentDataFromCache(e,t,n,this._queuedStore,this._cachedRecords,this._cachedRootCallMap,o,s,{onSuccess:function(){a._handleChangedAndNewDataIDs(s.getChangeSet()),u.stop(),i.onSuccess&&i.onSuccess()},onFailure:function(){a._handleChangedAndNewDataIDs(s.getChangeSet()),u.stop(),i.onFailure&&i.onFailure()}})},t.handleOSSQueryPayload=function(e,t,n){var i=this,a=r(1).RelayProfiler.profile("RelayStoreData.handleQueryPayload"),o=new(r(29)),s=this.getRecordWriter(),u=new(r(46))(this._queuedStore,s,this._queryTracker,o,{forceIndex:n,updateTrackedQueries:!0});(function(e,t){var n=[];return e.getChildren().forEach(function(i){var a=i;if(a instanceof r(2).Field&&a.canHaveSubselections()){var o,s,u=r(25)(r(6).getField(a.getConcreteQueryNode())),c=u.calls&&u.calls[0];c&&(o=c.name,s=c.metadata&&c.metadata.type);var l={calls:u.calls,children:u.children,directives:[],fieldName:u.fieldName,isDeferred:!1,kind:"Query",metadata:{identifyingArgName:o,identifyingArgType:s,isAbstract:u.metadata&&u.metadata.isAbstract,isPlural:u.metadata&&u.metadata.isPlural},name:e.getName(),type:a.getType()},d=r(2).Root.create(l,r(9).get("$RelayEnvironment"),e.getVariables()),f=a.getSerializationKey(),h={};t.hasOwnProperty(f)&&(h[d.getFieldName()]=t[f],n.push({field:a,root:d,rootPayload:h}))}}),n})(e,t).forEach(function(t){var n=t.field,a=t.root,c=t.rootPayload;r(82)(u,a,c);var l=r(7).getRootRecordPath();s.putRecord(r(21).ROOT_ID,e.getType(),l),i._queuedStore.getRecordState(r(21).ROOT_ID)!==r(13).EXISTENT?o.createID(r(21).ROOT_ID):o.updateID(r(21).ROOT_ID);var d=[];r(4).getResultsFromPayload(a,c).forEach(function(e){e.result;var t=e.rootCallInfo,r=t.storageKey,n=t.identifyingArgKey,i=s.getDataID(r,n);null!=i&&d.push(i)});var f=n.getStorageKey();if(n.isPlural())s.putLinkedRecordIDs(r(21).ROOT_ID,f,d);else{var h=d[0];null!=h?s.putLinkedRecordID(r(21).ROOT_ID,f,h):s.putField(r(21).ROOT_ID,f,null)}}),this._handleChangedAndNewDataIDs(o.getChangeSet()),a.stop()},t.handleQueryPayload=function(e,t,n){var i=r(1).RelayProfiler.profile("RelayStoreData.handleQueryPayload"),a=new(r(29)),o=new(r(46))(this._queuedStore,this.getRecordWriter(),this._queryTracker,a,{forceIndex:n,updateTrackedQueries:!0});r(82)(o,e,t),this._handleChangedAndNewDataIDs(a.getChangeSet()),i.stop()},t.handleFragmentPayload=function(e,t,n,i,a){var o=r(1).RelayProfiler.profile("RelayStoreData.handleFragmentPayload"),s=new(r(29)),u=new(r(46))(this._queuedStore,this.getRecordWriter(),this._queryTracker,s,{forceIndex:a,updateTrackedQueries:!0});u.createRecordIfMissing(t,e,n,i),u.writePayload(t,e,i,n),this._handleChangedAndNewDataIDs(s.getChangeSet()),o.stop()},t.handleUpdatePayload=function(e,t,n){var i,a=n.configs,o=n.isOptimisticUpdate,s=r(1).RelayProfiler.profile("RelayStoreData.handleUpdatePayload"),u=new(r(29));if(o){var c=t[r(1).ConnectionInterface.get().CLIENT_MUTATION_ID];"string"!=typeof c&&r(0)(!1),i=this.getRecordWriterForOptimisticMutation(c)}else i=this._getRecordWriterForMutation();var l=new(r(46))(this._queuedStore,i,this._queryTracker,u,{forceIndex:r(57)(),isOptimisticUpdate:o,updateTrackedQueries:!1});r(130)(l,e,t,{configs:a,isOptimisticUpdate:o}),this._handleChangedAndNewDataIDs(u.getChangeSet()),s.stop()},t.buildFragmentQueryForDataID=function(e,t){if(r(3).isClientID(t)){var n=this._queuedStore.getPathToRecord(this._rangeData.getCanonicalClientID(t));return n||r(0)(!1),r(7).getQuery(this._cachedStore,n,e)}return r(2).Root.build(e.getDebugName()||"UnknownQuery",r(4).NODE,t,[i,a,e],{identifyingArgName:r(4).ID,identifyingArgType:r(4).ID_TYPE,isAbstract:!0,isDeferred:!1,isPlural:!1},r(4).NODE_TYPE)},t.getNodeData=function(){return this._records},t.getQueuedData=function(){return this._queuedRecords},t.clearQueuedData=function(){var e=this;r(10)(this._queuedRecords,function(t,r){delete e._queuedRecords[r],e._changeEmitter.broadcastChangeForID(r)})},t.getCachedData=function(){return this._cachedRecords},t.getMutationQueue=function(){return this._mutationQueue},t.getNetworkLayer=function(){return this._networkLayer},t.getCachedStore=function(){return this._cachedStore},t.getQueuedStore=function(){return this._queuedStore},t.getRecordStore=function(){return this._recordStore},t.getRecordWriter=function(){return new(r(62))(this._records,this._rootCallMap,!1,this._nodeRangeMap,this._cacheManager?this._cacheManager.getQueryWriter():null)},t.getQueryTracker=function(){return this._queryTracker},t.getQueryRunner=function(){return this._queryRunner},t.getChangeEmitter=function(){return this._changeEmitter},t.getRangeData=function(){return this._rangeData},t.getPendingQueryTracker=function(){return this._pendingQueryTracker},t.getTaskQueue=function(){return this._taskQueue},t.getRootCallData=function(){return this._rootCallMap},t._isStoreDataEmpty=function(){return 0===Object.keys(this._records).length&&0===Object.keys(this._queuedRecords).length&&0===Object.keys(this._cachedRecords).length},t._handleChangedAndNewDataIDs=function(e){var t=this,r=Object.keys(e.updated),n=Object.keys(e.created);r.forEach(function(e){return t._changeEmitter.broadcastChangeForID(e)}),n.forEach(function(e){t._changeEmitter.broadcastChangeForID(e)})},t._getRecordWriterForMutation=function(){return new(r(62))(this._records,this._rootCallMap,!1,this._nodeRangeMap,this._cacheManager?this._cacheManager.getMutationWriter():null)},t.getRecordWriterForOptimisticMutation=function(e){return new(r(62))(this._queuedRecords,this._rootCallMap,!0,this._nodeRangeMap,null,e)},t.toJSON=function(){var e=function(e){return e?r(37)(e,function(e){var t=(0,n.default)({},e);return delete t[r(3).MetadataKey.PATH],t}):null};return{cachedRecords:e(this._cachedRecords),cachedRootCallMap:this._cachedRootCallMap,queuedRecords:e(this._queuedRecords),records:e(this._records),rootCallMap:this._rootCallMap,nodeRangeMap:this._nodeRangeMap}},e.fromJSON=function(t){t||r(0)(!1);var n=t.cachedRecords,i=t.cachedRootCallMap,a=t.queuedRecords,o=t.records,u=t.rootCallMap,c=t.nodeRangeMap;return s(n),s(a),s(o),new e(n,i,a,o,u,c)},e}();function s(e){for(var t in e){var n=e[t],i=n.__range__;i&&(n.__range__=r(83).fromJSON(i))}}r(1).RelayProfiler.instrumentMethods(o.prototype,{handleQueryPayload:"RelayStoreData.prototype.handleQueryPayload",handleUpdatePayload:"RelayStoreData.prototype.handleUpdatePayload"}),e.exports=o},function(e,t,r){"use strict";var n=function(){function e(){this._rangeData={},this._rangeDataKeyMap={}}var t=e.prototype;return t.getClientIDForRangeWithID=function(e,t,n){var i=n+"_"+r(27)(e,t).map(function(e){return r(35)(e).substring(1)}).join(",");if(!this._rangeData[i]){this._rangeData[i]={dataID:n,calls:e,callValues:t};var a=this._rangeDataKeyMap[n];a||(this._rangeDataKeyMap[n]=a=[]),a.push(i)}return i},t.parseRangeClientID=function(e){return this._rangeData[e]||null},t.getCanonicalClientID=function(e){return this._rangeData[e]?this._rangeData[e].dataID:e},t.removeRecord=function(e){var t=this,r=this._rangeDataKeyMap[e];r&&(r.forEach(function(e){delete t._rangeData[e]}),delete this._rangeDataKeyMap[e])},e}();e.exports=n},function(e,t,r){"use strict";var n=function(){function e(e){this._batchUpdate=function(e){return e()},this._executingIDs={},this._rangeData=e,this._scheduledIDs=null,this._subscribers=[]}var t=e.prototype;return t.addListenerForIDs=function(e,t){var r=this,n=e.map(function(e){return r._getBroadcastID(e)}),i=this._subscribers.length;return this._subscribers.push({subscribedIDs:n,callback:t}),{remove:function(){delete r._subscribers[i]}}},t.broadcastChangeForID=function(e){var t=this,n=this._scheduledIDs;null==n&&(r(40)(function(){return t._processBroadcasts()}),n=this._scheduledIDs={}),n[this._getBroadcastID(e)]=this._subscribers.length-1},t.injectBatchingStrategy=function(e){this._batchUpdate=e},t._processBroadcasts=function(){var e=this;this._scheduledIDs&&(this._executingIDs=this._scheduledIDs,this._scheduledIDs=null,this._batchUpdate(function(){return e._processSubscribers()}))},t._processSubscribers=function(){var e=this;this._subscribers.forEach(function(t,r){return e._processSubscriber(t,r)})},t._processSubscriber=function(e,t){var n=e.subscribedIDs,i=e.callback;for(var a in this._executingIDs)if(this._executingIDs.hasOwnProperty(a)){if(this._executingIDs[a]<t)break;if(n.indexOf(a)>=0){r(44).applyWithGuard(i,null,null,null,"GraphQLStoreChangeEmitter");break}}},t._getBroadcastID=function(e){return this._rangeData.getCanonicalClientID(e)},e}();e.exports=n},function(e,t,r){"use strict";var n=r(5)(r(17)),i=r(5)(r(8)),a=0,o=function(){function e(e){this._collisionQueueMap={},this._pendingTransactionMap={},this._queue=[],this._storeData=e,this._willBatchRefreshQueuedData=!1}var t=e.prototype;return t.createTransaction=function(e,t){return this.createTransactionWithPendingTransaction(null,function(r,n){return new s({id:r,mutation:e,mutationTransaction:n,onFailure:t&&t.onFailure,onSuccess:t&&t.onSuccess})})},t.createTransactionWithPendingTransaction=function(e,t){e||t||r(0)(!1);var n=r(34)(a++),i=new(r(109))(this,n),o=e||t(n,i);return this._pendingTransactionMap[n]=o,this._queue.push(o),i},t.getTransaction=function(e){var t=this._pendingTransactionMap[e];return t?t.mutationTransaction:null},t.getError=function(e){return this._get(e).error},t.getStatus=function(e){return this._get(e).status},t.applyOptimistic=function(e){var t=this._get(e);t.status=r(11).UNCOMMITTED,t.error=null,this._handleOptimisticUpdate(t)},t.commit=function(e){var t=this._get(e),n=t.getCollisionKey(),i=n&&this._collisionQueueMap[n];if(i)return i.push(t),t.status=r(11).COMMIT_QUEUED,void(t.error=null);n&&(this._collisionQueueMap[n]=[t]),this._handleCommit(t)},t.rollback=function(e){var t=this._get(e),r=t.getCollisionKey();if(r){var n=this._collisionQueueMap[r];if(n){var i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&delete this._collisionQueueMap[r]}}this._handleRollback(t)},t._get=function(e){var t=this._pendingTransactionMap[e];return t||r(0)(!1),t},t._handleOptimisticUpdate=function(e){var t=e.getOptimisticResponse(),r=e.getOptimisticQuery(this._storeData);if(t&&r){var n=e.getOptimisticConfigs()||e.getConfigs();this._storeData.handleUpdatePayload(r,t,{configs:n,isOptimisticUpdate:!0})}},t._handleCommitFailure=function(e,t){var n=t?r(11).COMMIT_FAILED:r(11).COLLISION_COMMIT_FAILED;e.status=n,e.error=t;var i=!0,a=e.onFailure;if(a){r(44).applyWithGuard(a,null,[e.mutationTransaction,function(){i=!1}],null,"RelayMutationTransaction:onCommitFailure")}t&&this._failCollisionQueue(e),i&&this._pendingTransactionMap.hasOwnProperty(e.id)&&this._handleRollback(e),this._batchRefreshQueuedData()},t._handleCommitSuccess=function(e,t){this._advanceCollisionQueue(e),this._clearPendingTransaction(e),this._refreshQueuedData(),this._storeData.handleUpdatePayload(e.getQuery(this._storeData),t[e.getCallName()],{configs:e.getConfigs(),isOptimisticUpdate:!1});var n=e.onSuccess;n&&r(44).applyWithGuard(n,null,[t],null,"RelayMutationTransaction:onCommitSuccess")},t._handleCommit=function(e){var t=this;e.status=r(11).COMMITTING,e.error=null;var n=new(r(76))(e.getQuery(this._storeData),e.getFiles());this._storeData.getNetworkLayer().sendMutation(n),n.getPromise().then(function(r){return t._handleCommitSuccess(e,r.response)},function(r){return t._handleCommitFailure(e,r)}).catch(function(e){setTimeout(function(){throw e},0)})},t._handleRollback=function(e){this._clearPendingTransaction(e),this._batchRefreshQueuedData()},t._clearPendingTransaction=function(e){delete this._pendingTransactionMap[e.id],this._queue=this._queue.filter(function(t){return t!==e})},t._advanceCollisionQueue=function(e){var t=e.getCollisionKey();if(t){var r=this._collisionQueueMap[t];r&&(r.shift(),r.length?this._handleCommit(r[0]):delete this._collisionQueueMap[t])}},t._failCollisionQueue=function(e){var t=this,r=e.getCollisionKey();if(r){var n=this._collisionQueueMap[r];n&&(n.forEach(function(r){r!==e&&t._handleCommitFailure(r,null)}),delete this._collisionQueueMap[r])}},t._batchRefreshQueuedData=function(){var e=this;this._willBatchRefreshQueuedData||(this._willBatchRefreshQueuedData=!0,r(40)(function(){e._willBatchRefreshQueuedData=!1,e._refreshQueuedData()}))},t._refreshQueuedData=function(){var e=this;this._storeData.clearQueuedData(),this._queue.forEach(function(t){return e._handleOptimisticUpdate(t)})},e}(),s=function(){function e(e){this.error=null,this.id=e.id,this.mutation=e.mutation,this.mutationTransaction=e.mutationTransaction,this.onFailure=e.onFailure,this.onSuccess=e.onSuccess,this.status=r(11).CREATED}var t=e.prototype;return t.getCallName=function(){return this._callName||(this._callName=this.getMutationNode().calls[0].name),this._callName},t.getCollisionKey=function(){return void 0===this._collisionKey&&(this._collisionKey=this.mutation.getCollisionKey()||null),this._collisionKey},t.getConfigs=function(){return this._configs||(this._configs=this.mutation.getConfigs()),this._configs},t.getFatQuery=function(){if(!this._fatQuery){var e=r(110).Fragment(this.mutation.getFatQuery());e instanceof r(2).Fragment||r(0)(!1),this._fatQuery=r(25)(r(45)(e,{preserveEmptyNodes:!0,shouldRemoveFragments:!0}))}return this._fatQuery},t.getFiles=function(){return void 0===this._files&&(this._files=this.mutation.getFiles()||null),this._files},t.getInputVariable=function(){if(!this._inputVariable){var e=(0,i.default)({},this.mutation.getVariables(),(0,n.default)({},r(1).ConnectionInterface.get().CLIENT_MUTATION_ID,this.id));this._inputVariable=e}return this._inputVariable},t.getMutationNode=function(){if(!this._mutationNode){var e=r(6).getMutation(this.mutation.getMutation());e||r(0)(!1),this._mutationNode=e}return this._mutationNode},t.getOptimisticConfigs=function(){return void 0===this._optimisticConfigs&&(this._optimisticConfigs=this.mutation.getOptimisticConfigs()||null),this._optimisticConfigs},t.getOptimisticQuery=function(e){if(void 0===this._optimisticQuery){0;var t=this._getRawOptimisticResponse();if(t){var n=this.getOptimisticConfigs(),i=u(e);this._optimisticQuery=n?r(59).buildQuery({configs:n,fatQuery:this.getFatQuery(),input:this.getInputVariable(),mutationName:this.mutation.constructor.name,mutation:this.getMutationNode(),tracker:i}):r(59).buildQueryForOptimisticUpdate({response:t,fatQuery:this.getFatQuery(),mutation:this.getMutationNode()})}else this._optimisticQuery=null;0}return this._optimisticQuery},t._getRawOptimisticResponse=function(){if(void 0===this._rawOptimisticResponse){var e=this.mutation.getOptimisticResponse()||null;e&&(e[r(1).ConnectionInterface.get().CLIENT_MUTATION_ID]=this.id),this._rawOptimisticResponse=e}return this._rawOptimisticResponse},t.getOptimisticResponse=function(){if(void 0===this._optimisticResponse){var e=this._getRawOptimisticResponse();this._optimisticResponse=e?r(78).inferRelayPayloadFromData(e):e}return this._optimisticResponse},t.getQuery=function(e){if(!this._query){0;var t=u(e);this._query=r(59).buildQuery({configs:this.getConfigs(),fatQuery:this.getFatQuery(),input:this.getInputVariable(),mutationName:this.getMutationNode().name,mutation:this.getMutationNode(),tracker:t})}return this._query},e}();function u(e){var t=e.getQueryTracker();return t||r(0)(!1),t}e.exports=o},function(e,t,r){"use strict";var n=r(5)(r(17)),i=function(){function e(e,t){(0,n.default)(this,"_rolledBack",!1),this._id=t,this._mutationQueue=e}var t=e.prototype;return t.applyOptimistic=function(){return this.getStatus()!==r(11).CREATED&&r(0)(!1),this._mutationQueue.applyOptimistic(this._id),this},t.commit=function(){var e=this.getStatus();return e!==r(11).CREATED&&e!==r(11).UNCOMMITTED&&r(0)(!1),this._mutationQueue.commit(this._id),this},t.recommit=function(){var e=this.getStatus();e!==r(11).COLLISION_COMMIT_FAILED&&e!==r(11).COMMIT_FAILED&&e!==r(11).CREATED&&r(0)(!1),this._mutationQueue.commit(this._id)},t.rollback=function(){var e=this.getStatus();e!==r(11).COLLISION_COMMIT_FAILED&&e!==r(11).COMMIT_FAILED&&e!==r(11).COMMIT_QUEUED&&e!==r(11).CREATED&&e!==r(11).UNCOMMITTED&&r(0)(!1),this._rolledBack=!0,this._mutationQueue.rollback(this._id)},t.getError=function(){return this._mutationQueue.getError(this._id)},t.getStatus=function(){return this._rolledBack?r(11).ROLLED_BACK:this._mutationQueue.getStatus(this._id)},t.getHash=function(){return"".concat(this._id,":").concat(this.getStatus())},t.getID=function(){return this._id},e}();e.exports=i},function(e,t,r){"use strict";var n={Field:function(e){var t=i(e,r(2).Field);return t instanceof r(2).Field||r(0)(!1),t},Fragment:function(e){var t=i(e,r(2).Fragment);return t instanceof r(2).Fragment||r(0)(!1),t},Query:function(e){var t=i(e,r(2).Root);return t instanceof r(2).Root||r(0)(!1),t},Operation:function(e){var t=i(e,r(2).Operation);return t instanceof r(2).Operation||r(0)(!1),t}};function i(e,t){var n=r(9).get("$fromGraphQL");return t.create(e,n,{})}e.exports=n},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,r){"use strict";var n=function(){function e(){this._implementation=null,this._queue=null,this._subscribers=[]}var t=e.prototype;return t.injectDefaultImplementation=function(e){this._defaultImplementation,this._defaultImplementation=e},t.injectImplementation=function(e){this._implementation,this._implementation=e},t.addNetworkSubscriber=function(e,t){var r=this,n=this._subscribers.length;return this._subscribers.push({queryCallback:e,mutationCallback:t}),{remove:function(){delete r._subscribers[n]}}},t.sendMutation=function(e){var t=this._getImplementation();this._subscribers.forEach(function(t){var r=t.mutationCallback;r&&r(e)});var n=t.sendMutation(e);n&&r(41)(Promise.resolve(n))},t.sendQueries=function(e){!function(e){var t=r(1).RelayProfiler.profile("fetchRelayQuery");e.forEach(function(e){var n=r(1).RelayProfiler.profile("fetchRelayQuery.query",e.getQuery().getName()),i=function(){n.stop(),t&&(t.stop(),t=null)};e.getPromise().then(i,i).catch(function(e){setTimeout(function(){throw e},0)})})}(e);var t=this._getImplementation();this._subscribers.forEach(function(t){var r=t.queryCallback;r&&e.forEach(function(e){r(e)})});var n=t.sendQueries(e);n&&r(41)(Promise.resolve(n))},t.supports=function(){for(var e=this._getImplementation(),t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.supports.apply(e,r)},t._getImplementation=function(){var e=this._implementation||this._defaultImplementation;return e||r(0)(!1),e},t.fetchRelayQuery=function(e){var t=this,n=this._queue||[];this._queue||(this._queue=n,r(40)(function(){t._queue=null,t.sendQueries(n)}));var i=new(r(74))(e);return n.push(i),i.getPromise()},e}();r(1).RelayProfiler.instrumentMethods(n.prototype,{sendMutation:"RelayNetworkLayer.sendMutation",sendQueries:"RelayNetworkLayer.sendQueries"}),e.exports=n},function(e,t,r){"use strict";var n=function(){function e(e){this._pendingFetchMap={},this._preloadQueryMap=new(r(116)),this._storeData=e}var t=e.prototype;return t.add=function(e){return new i(e,{pendingFetchMap:this._pendingFetchMap,preloadQueryMap:this._preloadQueryMap,storeData:this._storeData})},t.hasPendingQueries=function(){return function(e){return!!Object.keys(e).length}(this._pendingFetchMap)},t.resetPending=function(){this._pendingFetchMap={}},t.resolvePreloadQuery=function(e,t){this._preloadQueryMap.resolveKey(e,t)},t.rejectPreloadQuery=function(e,t){this._preloadQueryMap.rejectKey(e,t)},e}(),i=function(){function e(e,t){var n=e.fetchMode,i=e.forceIndex,a=e.query,o=t.pendingFetchMap,s=t.preloadQueryMap,u=t.storeData,c=a.getID();this._forceIndex=i,this._pendingFetchMap=o,this._preloadQueryMap=s,this._query=a,this._resolvedDeferred=new(r(56)),this._resolvedQuery=!1,this._storeData=u,this._fetchQueryPromise=n===r(28).PRELOAD?this._preloadQueryMap.get(c):u.getNetworkLayer().fetchRelayQuery(a),this._fetchedQuery=!1,this._error=null,this._pendingFetchMap[c]={fetch:this,query:a},r(41)(this._fetchQueryPromise.then(this._handleQuerySuccess.bind(this),this._handleQueryFailure.bind(this)))}var t=e.prototype;return t.isResolvable=function(){return this._resolvedQuery},t.getQuery=function(){return this._query},t.getResolvedPromise=function(){return this._resolvedDeferred.getPromise()},t._handleQuerySuccess=function(e){var t=this;this._fetchedQuery=!0,r(41)(this._storeData.getTaskQueue().enqueue(function(){var n=e.response;n&&"object"==typeof n||r(0)(!1),t._storeData.handleQueryPayload(t._query,n,t._forceIndex)}).then(this._markQueryAsResolved.bind(this),this._markAsRejected.bind(this)))},t._handleQueryFailure=function(e){this._markAsRejected(e)},t._markQueryAsResolved=function(){var e=this.getQuery().getID();delete this._pendingFetchMap[e],this._resolvedQuery=!0,this._updateResolvedDeferred()},t._markAsRejected=function(e){var t=this.getQuery().getID();delete this._pendingFetchMap[t],console.warn(e.message),this._error=e,this._updateResolvedDeferred()},t._updateResolvedDeferred=function(){this._isSettled()&&!this._resolvedDeferred.isSettled()&&(this._error?this._resolvedDeferred.reject(this._error):this._resolvedDeferred.resolve(void 0))},t._isSettled=function(){return!!this._error||this._resolvedQuery},e}();e.exports=n},function(e,t){e.exports=m},function(e,t,r){"use strict";var n=r(5)(r(26)),i=function(){function e(e){this._storeData=e}var t=e.prototype;return t.run=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(28).CLIENT;return o(this._storeData,e,t,n)},t.forceFetch=function(e,t){var n=r(28).REFETCH;return o(this._storeData,e,t,n)},e}();function a(e){return!!Object.keys(e).length}function o(e,t,i,o){var s=o===r(28).REFETCH?r(1).RelayProfiler.profile("GraphQLQueryRunner.forceFetch"):r(1).RelayProfiler.profile("GraphQLQueryRunner.primeCache"),u=new(r(120))(i),c={},l={};function d(t){return r(122)(e.getQueuedStore(),t.getQuery())}return r(41)(e.getTaskQueue().enqueue(function(){var i=o===r(28).REFETCH?r(57)():null,f=[];o===r(28).CLIENT?r(10)(t,function(t){t&&f.push.apply(f,(0,n.default)(r(123)(t,e.getRecordStore(),e.getQueryTracker())))}):r(10)(t,function(e){e&&f.push(e)});var h=function(e,t){if(!e.getNetworkLayer().supports("defer"))return t;var i=[];return t.forEach(function(e){return i.push.apply(i,(0,n.default)(r(118)(r(119)(e))))}),i}(e,f),_=[];h.length&&_.push({type:"NETWORK_QUERY_START"}),h.forEach(function(t){var n=e.getPendingQueryTracker().add({query:t,fetchMode:o,forceIndex:i,storeData:e}),s=t.getID();c[s]=n,t.isDeferred()||(l[s]=n),n.getResolvedPromise().then(function(e){var t=e.getQuery(),n=t.getID();delete c[n],t.isDeferred()||delete l[n],a(l)||r(121)(c,function(e){return e.isResolvable()})||(a(c)?u.update({done:!1,ready:!0,stale:!1},[{type:"NETWORK_QUERY_RECEIVED_REQUIRED"}]):u.update({done:!0,ready:!0,stale:!1},[{type:"NETWORK_QUERY_RECEIVED_ALL"}]))}.bind(null,n),function(e,t){u.update({error:t},[{type:"NETWORK_QUERY_ERROR",error:t}])}.bind(null,n))}),a(c)?a(l)?(u.update({ready:!1},_.concat([{type:"CACHE_RESTORE_START"}])),r(40)(function(){if(e.hasCacheManager()){var t=r(37)(l,function(e){return e.getQuery()});e.restoreQueriesFromCache(t,{onSuccess:function(){u.update({ready:!0,stale:!0},[{type:"CACHE_RESTORED_REQUIRED"}])},onFailure:function(e){u.update({error:e},[{type:"CACHE_RESTORE_FAILED",error:e}])}})}else r(124)(l,d)&&a(l)?u.update({ready:!0,stale:!0},[{type:"CACHE_RESTORED_REQUIRED"}]):u.update({},[{type:"CACHE_RESTORE_FAILED"}])})):u.update({ready:!0},_.concat([{type:"STORE_FOUND_REQUIRED"}])):u.update({done:!0,ready:!0},_.concat([{type:"STORE_FOUND_ALL"}])),s.stop()})),{abort:function(){u.update({aborted:!0},[{type:"ABORT"}])}}}e.exports=i},function(e,t,r){"use strict";var n=r(5)(r(26));e.exports=function(e){for(var t=[],r=[e];r.length;){var i=e=r.shift(),a=i.required,o=i.deferred;a&&t.push(a),o.length&&r.push.apply(r,(0,n.default)(o))}return t}},function(e,t,r){"use strict";var n=r(5)(r(12));function i(e,t){return t.getChildren().filter(function(t){return t!==e&&t instanceof r(2).Field&&t.isRequisite()}).map(function(e){var t=e.getChildren().filter(function(e){return e instanceof r(2).Field&&e.isRequisite()}),n=e.clone(t);return n||r(0)(!1),n})}function a(e){return e.canHaveSubselections()?e.getChildren().every(a):e.isGenerated()&&!e.isRefQueryDependency()}var o=function(e){function t(){return e.apply(this,arguments)||this}(0,n.default)(t,e);var a=t.prototype;return a.visitField=function(e,t){if(!e.hasDeferredDescendant())return e;t.__nodePath__.push(e);var n=this.traverse(e,t);if(t.__nodePath__.pop(),n&&e.getInferredRootCallName()){var i=e.getInferredPrimaryKey(),a=n.getChildren().map(function(e){return e instanceof r(2).Field&&e.getSchemaName()===i?e.cloneAsRefQueryDependency():e});n=n.clone(a)}return n},a.visitFragment=function(e,t){if(!e.getChildren().length)return null;if(e.isDeferred()){var n=t.__nodePath__,a={__nodePath__:n,__parent__:t,__refQuery__:null,deferred:[],required:null},o=this.traverse(e,a);if(o){var s=function(e,t){for(var n=t.length-1;n>=0;n--){var a=t[n];if(a instanceof r(2).Field&&a.getInferredRootCallName())return new(r(79))(e,t.slice(0,n+1));var o=i(e,a),s=[e].concat(o);e=a.clone(s)}e instanceof r(2).Root||r(0)(!1);var u=e.getIdentifyingArg(),c=u&&u.name||null,l=u&&u.value||null,d={identifyingArgName:c,identifyingArgType:u&&u.type||r(4).ID_TYPE,isAbstract:!0,isDeferred:!0,isPlural:!1};return r(2).Root.build(e.getName(),e.getFieldName(),l,e.getChildren(),d,e.getType())}(o,n);s instanceof r(2).Root?a.required=s:s instanceof r(79)&&(a.__refQuery__=s)}return(o||a.deferred.length)&&t.deferred.push(a),null}return e.hasDeferredDescendant()?this.traverse(e,t):e},a.visitRoot=function(e,t){if(e.hasDeferredDescendant()){t.__nodePath__.push(e);var r=this.traverse(e,t);return t.__nodePath__.pop(),t.required=r,r}return t.required=e,e},t}(r(61));e.exports=r(1).RelayProfiler.instrument("splitDeferredRelayQueries",function(e){var t={__nodePath__:[],__parent__:null,__refQuery__:null,deferred:[],required:null};return(new o).visit(e,t),function e(t){return t.required&&a(t.required)&&(t.required=null),t.deferred=t.deferred.map(function(n){var i=n.__refQuery__;if(i){var a=t.required;if(!a)for(var o=t;o.__parent__&&!(a=o.__parent__.required);)o=o.__parent__;a||r(0)(!1),n.required=function(e,t){var n=e.node;n instanceof r(2).Field||n instanceof r(2).Fragment||r(0)(!1);for(var i,a=["$","*"],o=0;o<e.nodePath.length;o++)(i=e.nodePath[o])instanceof r(2).Field&&(a.push(i.getSerializationKey()),i.isPlural()&&a.push("*"));a.length>2||r(0)(!1);var s=i.getInferredPrimaryKey();return s||r(0)(!1),a.push(s),r(2).Root.build(t.getName(),r(4).NODES,r(6).createBatchCallVariable(t.getID(),a.join(".")),[n],{identifyingArgName:r(4).ID,identifyingArgType:r(4).ID_TYPE,isAbstract:!0,isDeferred:!0,isPlural:!1},r(4).NODE_TYPE)}(i,a)}return e(n)}),t}(t)})},function(e,t,r){"use strict";var n=r(5)(r(8)),i=r(5)(r(26)),a=function(){function e(e){this._onReadyStateChange=e,this._readyState={aborted:!1,done:!1,error:null,events:[],ready:!1,stale:!1},this._scheduled=!1}var t=e.prototype;return t.update=function(e,t){var r=this._readyState;r.aborted||(r.done||r.error?e.stale?r.error&&this._mergeState(e,t):e.aborted:this._mergeState(e,t))},t._mergeState=function(e,t){var a=this;this._readyState=(0,n.default)({},this._readyState,e,{events:t&&t.length?(0,i.default)(this._readyState.events).concat((0,i.default)(t)):this._readyState.events}),this._scheduled||(this._scheduled=!0,r(40)(function(){a._scheduled=!1,a._onReadyStateChange(a._readyState)}))},e}();e.exports=a},function(e,t){e.exports=D},function(e,t,r){"use strict";var n=r(5)(r(12));var i=function(e){function t(t){var r;return(r=e.call(this)||this)._store=t,r}(0,n.default)(t,e);var i=t.prototype;return i.traverse=function(e,t){for(var r=e.getChildren(),n=0;n<r.length;n++){if(!t.result)return;this.visit(r[n],t)}},i.visitRoot=function(e,t){var n=this,i=e.getStorageKey();r(23)(e,function(r){var a=r.identifyingArgKey,o=n._store.getDataID(i,a);if(null==o)t.result=!1;else{var s={dataID:o,rangeInfo:void 0,result:!0};n.traverse(e,s),t.result=t.result&&s.result}})},i.visitFragment=function(e,t){var n=t.dataID;n&&r(39)(e,this._store.getType(n))&&this.traverse(e,t)},i.visitField=function(e,t){var n=t.dataID,i=n&&this._store.getRecordState(n);if(i!==r(13).UNKNOWN){if(i!==r(13).NONEXISTENT){var a=r(1).ConnectionInterface.get(),o=a.EDGES,s=a.PAGE_INFO,u=t.rangeInfo;u&&e.getSchemaName()===o?this._checkEdges(e,t):u&&e.getSchemaName()===s?this._checkPageInfo(e,t):e.canHaveSubselections()?e.isPlural()?this._checkPlural(e,t):e.isConnection()?this._checkConnection(e,t):this._checkLinkedField(e,t):this._checkScalar(e,t)}}else t.result=!1},i._checkScalar=function(e,t){void 0===(t.dataID&&this._store.getField(t.dataID,e.getStorageKey()))&&(t.result=!1)},i._checkPlural=function(e,t){var r=t.dataID&&this._store.getLinkedRecordIDs(t.dataID,e.getStorageKey());if(void 0!==r){if(r)for(var n=0;n<r.length&&t.result;n++){var i={dataID:r[n],rangeInfo:void 0,result:!0};this.traverse(e,i),t.result=i.result}}else t.result=!1},i._checkConnection=function(e,t){var r=e.getCallsWithValues(),n=t.dataID&&this._store.getLinkedRecordID(t.dataID,e.getStorageKey());if(void 0!==n){var i={dataID:n,rangeInfo:null,result:!0},a=this._store.getRangeMetadata(n,r);a&&(i.rangeInfo=a),this.traverse(e,i),t.result=t.result&&i.result}else t.result=!1},i._checkEdges=function(e,t){var r=t.rangeInfo;if(r)if(r.diffCalls.length)t.result=!1;else for(var n=r.filteredEdges,i=0;i<n.length&&t.result;i++){var a={dataID:n[i].edgeID,rangeInfo:void 0,result:!0};this.traverse(e,a),t.result=a.result}else t.result=!1},i._checkPageInfo=function(e,t){var r=t.rangeInfo;r&&r.pageInfo||(t.result=!1)},i._checkLinkedField=function(e,t){var r=t.dataID&&this._store.getLinkedRecordID(t.dataID,e.getStorageKey());if(void 0!==r){if(r){var n={dataID:r,rangeInfo:void 0,result:!0};this.traverse(e,n),t.result=t.result&&n.result}}else t.result=!1},t}(r(20));e.exports=r(1).RelayProfiler.instrument("checkRelayQueryData",function(e,t){var r={dataID:void 0,rangeInfo:void 0,result:!0};return new i(e).visit(t,r),r.result})},function(e,t,r){"use strict";var n=r(2).Field.build({fieldName:r(4).ID,metadata:{isRequisite:!0},type:"String"}),i=r(2).Field.build({fieldName:r(4).TYPENAME,metadata:{isRequisite:!0},type:"String"}),a=r(2).Field.build({fieldName:r(4).NODE,children:[n,i],metadata:{canHaveSubselections:!0},type:r(4).NODE_TYPE});var o=function(){function e(e,t){this._store=e,this._splitQueries=[],this._queryTracker=t}var t=e.prototype;return t.splitQuery=function(e){this._splitQueries.push(e)},t.getSplitQueries=function(){return this._splitQueries},t.visit=function(e,t,n){return e instanceof r(2).Field?this.visitField(e,t,n):e instanceof r(2).Fragment?this.visitFragment(e,t,n):e instanceof r(2).Root?this.visitRoot(e,t,n):void 0},t.visitRoot=function(e,t,r){return this.traverse(e,t,r)},t.visitFragment=function(e,t,r){return this.traverse(e,t,r)},t.visitField=function(e,t,n){var i=n.connectionField,a=n.dataID,o=n.edgeID,s=n.rangeInfo;if(i&&s){var u=r(1).ConnectionInterface.get(),c=u.EDGES,l=u.PAGE_INFO;if(o)return e.getSchemaName()===c?this.diffConnectionEdge(i,e,r(7).getPath(t,e,o),o,s):null;if(e.getSchemaName()===c||e.getSchemaName()===l)return s.diffCalls.length>0?{diffNode:e,trackedNode:null}:null}return e.canHaveSubselections()?e.isGenerated()?{diffNode:e,trackedNode:null}:e.isConnection()?this.diffConnection(e,t,a):e.isPlural()?this.diffPluralLink(e,t,a):this.diffLink(e,t,a):this.diffScalar(e,a)},t.traverse=function(e,t,n){var i,a,o,s,u=this,c=!1,l=!1;return e.getChildren().forEach(function(e){if(e instanceof r(2).Field){var i=u.visitField(e,t,n),o=i?i.diffNode:null,d=i&&u._queryTracker?i.trackedNode:null;o?((a=a||[]).push(o),c=c||!o.isGenerated()):e.isRequisite()&&!n.rangeInfo&&(a=a||[]).push(e),u._queryTracker&&(d?((s=s||[]).push(d),l=l||!d.isGenerated()):e.isRequisite()&&(s=s||[]).push(e))}else if(e instanceof r(2).Fragment){if(r(39)(e,u._store.getType(n.dataID))){if(e.isTrackingEnabled()){var f=e.getCompositeHash();if(u._store.hasFragmentData(n.dataID,f))return{diffNode:null,trackedNode:null}}var h=u.traverse(e,t,n),_=h?h.diffNode:null,g=h?h.trackedNode:null;_&&((a=a||[]).push(_),c=!0),g&&((s=s||[]).push(g),l=!0)}else(a=a||[]).push(e)}}),a&&c&&(i=e.clone(a)),s&&l&&(o=e.clone(s)),!this._queryTracker||!o||o instanceof r(2).Fragment||this._queryTracker.trackNodeForID(o,n.dataID),{diffNode:i,trackedNode:o}},t.diffScalar=function(e,t){return void 0===this._store.getField(t,e.getStorageKey())?{diffNode:e,trackedNode:null}:null},t.diffLink=function(e,t,n){var i=this._store.getLinkedRecordID(n,e.getStorageKey());return void 0===i?{diffNode:e,trackedNode:null}:null===i?{diffNode:null,trackedNode:this._queryTracker?e:null}:this.traverse(e,r(7).getPath(t,e,i),s(i))},t.diffPluralLink=function(e,t,n){var i=this,a=r(1).ConnectionInterface.get().NODE,o=this._store.getLinkedRecordIDs(n,e.getStorageKey());if(void 0===o)return{diffNode:e,trackedNode:null};if(null===o||0===o.length)return{diffNode:null,trackedNode:this._queryTracker?e:null};if(e.getInferredRootCallName()===a){var c=!1;if(o.forEach(function(n){var a=i.traverse(e,r(7).getPath(t,e,n),s(n));a&&(c=c||!!a.trackedNode||!!a.diffNode,a.diffNode&&i.splitQuery(u(n,a.diffNode.getChildren(),r(7).getName(t),e.getType(),e.isAbstract())))}),c)return{diffNode:null,trackedNode:this._queryTracker?e:null}}else{var l=!1,d=!1;if(o.some(function(n){var a=i.traverse(e,r(7).getPath(t,e,n),s(n));return a&&a.diffNode&&(l=!0),a&&a.trackedNode&&(d=!0),l&&d}),l||d)return{diffNode:l?e:null,trackedNode:d?e:null}}return null},t.diffConnection=function(e,t,n){var i=this,a=this._store,o=a.getLinkedRecordID(n,e.getStorageKey()),u=a.getRangeMetadata(o,e.getCallsWithValues());if(void 0===o)return{diffNode:e,trackedNode:null};if(null===o)return this._queryTracker?{diffNode:null,trackedNode:e}:null;if(null==u)return this.traverse(e,r(7).getPath(t,e,o),s(o));var c=u.diffCalls,l=!1;u.filteredEdges.forEach(function(n){var a={connectionField:e,dataID:o,edgeID:n.edgeID,rangeInfo:u},s=i.traverse(e,r(7).getPath(t,e,n.edgeID),a);s&&(l=l||!!s.trackedNode)});var d={connectionField:e,dataID:o,edgeID:null,rangeInfo:u},f=this.traverse(e,r(7).getPath(t,e,o),d),h=f?f.diffNode:null,_=f?f.trackedNode:null;return c.length&&h instanceof r(2).Field&&(h=h.cloneFieldWithCalls(h.getChildren(),c)),l&&(_=e),{diffNode:h,trackedNode:this._queryTracker?_:null}},t.diffConnectionEdge=function(e,t,n,i,o){var c=r(1).ConnectionInterface.get().NODE,l=!1,d=this.traverse(t,r(7).getPath(n,t,i),s(i)),f=d?d.diffNode:null,h=d?d.trackedNode:null,_=this._store.getLinkedRecordID(i,c);if(f)if(!_||r(3).isClientID(_));else{var g=function e(t){var n=r(1).ConnectionInterface.get(),i=n.NODE;var a=t.getChildren();var o=[];var s=null;var u=[];var c=!1;for(var l=0;l<a.length;l++){var d=a[l];if(d instanceof r(2).Field)if(d.getSchemaName()===i){var f=d.getChildren();if(u=u.concat(f),!s)if(1===f.length){var h=f[0];h instanceof r(2).Field&&h.getSchemaName()===r(4).ID||(s=d)}else s=d}else o.push(d),c=c||!d.isRequisite();else if(d instanceof r(2).Fragment){var _=e(d),g=_.edges,p=_.node;g&&(o.push(g),c=!0),p&&(u.push(p),s=p)}}return{edges:c?t.clone(o):null,node:s&&r(2).Fragment.build("diffRelayQuery",s.getType(),u,{isAbstract:s.isAbstract()})}}(f),p=g.edges,v=g.node;if(v){l=!0;var y=t.getFieldByStorageKey("node");y||r(0)(!1),this.splitQuery(u(_,v.getChildren(),r(7).getName(n),y.getType(),y.isAbstract()))}if(p&&e.isFindable()){p=p.clone(p.getChildren().concat(a));var m=e.cloneFieldWithCalls([p],o.filterCalls.concat({name:"find",value:_}));if(m){l=!0;var D=r(7).getParent(r(7).getParent(n)),I=r(7).getQuery(this._store,D,m);this.splitQuery(I)}}}return this._queryTracker?{diffNode:null,trackedNode:l?t:h}:null},e}();function s(e){return{connectionField:null,dataID:e,edgeID:null,rangeInfo:null}}function u(e,t,a,o,s){var u=r(1).ConnectionInterface.get().NODE,c=[n,i],l=[];return t.forEach(function(e){e instanceof r(2).Field?l.push(e):c.push(e)}),c.push(r(2).Fragment.build("diffRelayQuery",o,l,{isAbstract:s})),r(2).Root.build(a,u,e,c,{identifyingArgName:r(4).ID,identifyingArgType:r(4).ID_TYPE,isAbstract:!0,isDeferred:!1,isPlural:!1},r(4).NODE_TYPE)}e.exports=r(1).RelayProfiler.instrument("diffRelayQuery",function(e,t,n){var i,a=r(7).create(e),u=[],c=new o(t,n),l=e.getIdentifyingArg(),d=l&&l.value||null,f=Array.isArray(d)&&d.length>1;null!=l&&(i={identifyingArgName:l.name,identifyingArgType:null!=l.type?l.type:r(4).ID_TYPE,isAbstract:e.isAbstract(),isDeferred:!1,isPlural:!1});var h=e.getFieldName(),_=e.getStorageKey();return r(23)(e,function(n){var o,l=n.identifyingArgValue,d=n.identifyingArgKey;f?(null==l&&r(0)(!1),o=r(2).Root.build(e.getName(),h,[l],e.getChildren(),i,e.getType())):o=e;var g=t.getDataID(_,d);if(null!=g){var p=s(g),v=c.visit(o,a,p),y=v?v.diffNode:null;y&&(y instanceof r(2).Root||r(0)(!1),u.push(y))}else u.push(o)}),u.concat(c.getSplitQueries())})},function(e,t){e.exports=I},function(e,t,r){"use strict";var n=r(5)(r(26)),i=function(){function e(){this._trackedNodesByID={}}var t=e.prototype;return t.trackNodeForID=function(e,t){this._trackedNodesByID[t]=this._trackedNodesByID[t]||{trackedNodes:[],isMerged:!1},this._trackedNodesByID[t].trackedNodes.push(e),this._trackedNodesByID[t].isMerged=!1},t.getTrackedChildrenForID=function(e){var t=this._trackedNodesByID[e];if(!t)return[];var i=t.isMerged,a=t.trackedNodes;if(!i){var o=[];a.forEach(function(e){o.push.apply(o,(0,n.default)(e.getChildren()))}),a.length=0,t.isMerged=!0;var s=r(2).Fragment.build("RelayQueryTracker",r(4).NODE_TYPE,o);(s=r(45)(s))&&a.push(s)}var u=a[0];return u?u.getChildren():[]},t.untrackNodesForID=function(e){delete this._trackedNodesByID[e]},e}();e.exports=i},function(e,t,r){"use strict";var n=function(){function e(e){this._queue=[],this._running=!1,this._schedule=e}var t=e.prototype;return t.enqueue=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=new Promise(function(t,n){var i=0,a=null;!function o(s){a?n(a):i>=r.length?t(s):e._queue.push(function(){o(function(){var e=r[i++];try{s=e(s)}catch(e){a=e,s=void 0}return s}())})}(void 0)});return this._scheduleIfNecessary(),i},t.injectScheduler=function(e){this._schedule=e},t._createTaskExecutor=function(e){var t=this,n=!1;return function(){n&&r(0)(!1),n=!0,t._invokeWithinScopedQueue(e),t._running=!1,t._scheduleIfNecessary()}},t._invokeWithinScopedQueue=function(e){var t=this._queue;this._queue=[];try{e()}finally{Array.prototype.unshift.apply(t,this._queue),this._queue=t}},t._scheduleIfNecessary=function(){if(!this._running)if(this._queue.length){this._running=!0;var e=this._createTaskExecutor(this._queue.shift());this._schedule?this._schedule(e):e()}else this._running=!1},e}();e.exports=n},function(e,t,r){"use strict";var n=r(5)(r(12));var i=function(e){function t(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r=e.call(this)||this)._store=t,r._cachedRecords=n,r._pendingNodeStates=[],r}(0,n.default)(t,e);var i=t.prototype;return i.getPendingNodeStates=function(){return this._pendingNodeStates},i.traverse=function(e,t){for(var r=e.getChildren(),n=0;n<r.length;n++){if(t.missingData)return;this.visit(r[n],t)}},i.visitFragment=function(e,t){var n=t.dataID,i=this._store.getRecordState(n);i!==r(13).UNKNOWN?i!==r(13).NONEXISTENT&&r(39)(e,this._store.getType(n))&&this.traverse(e,t):this._handleMissingData(e,t)},i.visitField=function(e,t){var n=r(1).ConnectionInterface.get(),i=n.EDGES,a=n.PAGE_INFO,o=t.dataID,s=this._store.getRecordState(o);if(s!==r(13).UNKNOWN){if(s!==r(13).NONEXISTENT){if(t.rangeCalls&&!t.rangeInfo){var u=this._store.getRangeMetadata(o,t.rangeCalls);u&&(t.rangeInfo=u)}var c=t.rangeInfo;c&&e.getSchemaName()===i?this._visitEdges(e,t):c&&e.getSchemaName()===a?this._visitPageInfo(e,t):e.canHaveSubselections()?e.isPlural()?this._visitPlural(e,t):e.isConnection()?this._visitConnection(e,t):this._visitLinkedField(e,t):this._visitScalar(e,t)}}else this._handleMissingData(e,t)},i._visitScalar=function(e,t){void 0===this._store.getField(t.dataID,e.getStorageKey())&&this._handleMissingData(e,t)},i._visitPlural=function(e,t){var n=this._store.getLinkedRecordIDs(t.dataID,e.getStorageKey());if(void 0!==n){if(n)for(var i=0;i<n.length&&!t.missingData;i++){var a={dataID:n[i],missingData:!1,path:r(7).getPath(t.path,e,n[i]),rangeCalls:void 0,rangeInfo:void 0};this.traverse(e,a),t.missingData=a.missingData}}else this._handleMissingData(e,t)},i._visitConnection=function(e,t){var n=e.getCallsWithValues(),i=this._store.getLinkedRecordID(t.dataID,e.getStorageKey());if(void 0!==i){if(i){var a={dataID:i,missingData:!1,path:r(7).getPath(t.path,e,i),rangeCalls:n,rangeInfo:null},o=this._store.getRangeMetadata(i,n);o&&(a.rangeInfo=o),this.traverse(e,a),t.missingData=t.missingData||a.missingData}}else this._handleMissingData(e,t)},i._visitEdges=function(e,t){var n=t.rangeInfo;if(n)if(n.diffCalls.length)t.missingData=!0;else for(var i=n.requestedEdgeIDs,a=0;a<i.length&&!t.missingData;a++){var o={dataID:i[a],missingData:!1,path:r(7).getPath(t.path,e,i[a]),rangeCalls:void 0,rangeInfo:void 0};this.traverse(e,o),t.missingData=t.missingData||o.missingData}else this._handleMissingData(e,t)},i._visitPageInfo=function(e,t){var r=t.rangeInfo;r&&r.pageInfo||this._handleMissingData(e,t)},i._visitLinkedField=function(e,t){var n=this._store.getLinkedRecordID(t.dataID,e.getStorageKey());if(void 0!==n){if(n){var i={dataID:n,missingData:!1,path:r(7).getPath(t.path,e,n),rangeCalls:void 0,rangeInfo:void 0};this.traverse(e,i),t.missingData=t.missingData||i.missingData}}else this._handleMissingData(e,t)},i._handleMissingData=function(e,t){var r=t.dataID;this._cachedRecords.hasOwnProperty(r)?t.missingData=!0:this._pendingNodeStates.push({dataID:r,node:e,path:t.path,rangeCalls:t.rangeCalls})},t}(r(20));e.exports=r(1).RelayProfiler.instrument("findRelayQueryLeaves",function(e,t,r,n,a,o){var s=new i(e,t),u={dataID:n,missingData:!1,path:a,rangeCalls:o,rangeInfo:void 0};return s.visit(r,u),{missingData:u.missingData,pendingNodeStates:s.getPendingNodeStates()}})},function(e,t,r){"use strict";var n=r(5)(r(12)),i=function(e){function t(t,r){var n;return(n=e.call(this)||this)._cacheManager=t,n._callbacks=r,n._pendingNextStates={},n._pendingRoots={},n._state="PENDING",n}(0,n.default)(t,e);var i=t.prototype;return i.abort=function(){this._state="COMPLETED"},i.handleFailure=function(e){"COMPLETED"===this._state&&r(0)(!1),this._state="COMPLETED",this._callbacks.onFailure&&this._callbacks.onFailure(e)},i.handleNodeVisited=function(e,t,r,n){},i.handleIdentifiedRootVisited=function(e,t,r,n){},i.process=function(e){"PENDING"!==this._state&&r(0)(!1),this._state="LOADING",e(),this._isDone()&&this._handleSuccess()},i.queueIdentifiedRoot=function(e,t,r){var n=this,i=e.getStorageKey();this._cacheManager.readRootCall(i,t||"",function(a,o){if("COMPLETED"!==n._state)if(a)n.handleFailure(a);else{n.handleIdentifiedRootVisited(e,o,t,r);var s=n._getRootKey(i,t),u=n._pendingRoots[s];delete n._pendingRoots[s];for(var c=0;c<u.length;c++){if("COMPLETED"===n._state)return;n.traverse(u[c],r)}n._isDone()&&n._handleSuccess()}})},i.queueNode=function(e,t,r){var n=this;this._cacheManager.readNode(t,function(i,a){if("COMPLETED"!==n._state)if(i)n.handleFailure(i);else{n.handleNodeVisited(e,t,a,r);var o=n._pendingNextStates[t];delete n._pendingNextStates[t];for(var s=0;s<o.length;s++){if("COMPLETED"===n._state)return;n.traverse(e,o[s])}n._isDone()&&n._handleSuccess()}})},i.visitIdentifiedRoot=function(e,t,r){var n=e.getStorageKey(),i=this._getRootKey(n,t);this._pendingRoots.hasOwnProperty(i)?this._pendingRoots[i].push(e):(this._pendingRoots[i]=[e],this.queueIdentifiedRoot(e,t,r))},i.visitNode=function(e,t,r){this._pendingNextStates.hasOwnProperty(t)?this._pendingNextStates[t].push(r):(this._pendingNextStates[t]=[r],this.queueNode(e,t,r))},i.visitRoot=function(e,t){var n=this;r(23)(e,function(r){var i=r.identifyingArgKey;"COMPLETED"!==n._state&&n.visitIdentifiedRoot(e,i,t)})},i._getRootKey=function(e,t){return"".concat(e,"*").concat(t||"")},i._handleSuccess=function(){"COMPLETED"===this._state&&r(0)(!1),this._state="COMPLETED",this._callbacks.onSuccess&&this._callbacks.onSuccess()},i._isDone=function(){return r(81)(this._pendingRoots)&&r(81)(this._pendingNextStates)&&"LOADING"===this._state},t}(r(20));e.exports=i},function(e,t){e.exports=b},function(e,t,r){"use strict";var n,i=r(5)(r(8)),a=r(1).RangeOperations.APPEND,o=r(1).RangeOperations.IGNORE,s=r(1).RangeOperations.PREPEND,u=r(1).RangeOperations.REFETCH,c=r(1).RangeOperations.REMOVE;var l="client:cursor";function d(e,t){var n=e.getRecordStore(),i=e.getRecordWriter();if(n.getRecordState(t)!==r(13).NONEXISTENT){var a=n.getConnectionIDsForRecord(t);a&&a.forEach(function(n){var a=r(47)(n,t);i.applyRangeUpdate(n,a,c),e.recordUpdate(a),e.recordUpdate(n),d(e,a)}),i.deleteRecord(t),e.recordUpdate(t)}}function f(e,t,n,i){var a=r(1).ConnectionInterface.get().CLIENT_MUTATION_ID;if("error"!==t&&t!==a)if(Array.isArray(n))n.forEach(function(n){"object"!=typeof n||null==n||Array.isArray(n)||_(n,r(4).ID)&&f(e,t,n,i)});else{var o,s=n,u=e.getRecordStore(),c=_(s,r(4).ID);null!=c?o=r(7).createForID(c,"writeRelayUpdatePayload"):((c=u.getDataID(t))||r(0)(!1),o=r(7).create(r(2).Root.build("writeRelayUpdatePayload",t,null,null,{identifyingArgName:null,identifyingArgType:null,isAbstract:!0,isDeferred:!1,isPlural:!1},r(4).ANY_TYPE)));!function n(i){i.getChildren().forEach(function(i){i instanceof r(2).Fragment?n(i):i instanceof r(2).Field&&i.getSerializationKey()===t&&o&&c&&(e.createRecordIfMissing(i,c,o,s),e.writePayload(i,c,s,o))})}(i)}}function h(e,t,n){if(1===t.length){var i=e.getDataID(t[0]);if(i)return[i]}var a=n;return t.forEach(function(e,n){a&&!Array.isArray(a)&&(a=n===t.length-1?function(e,t){var n=e[t];return null!=n&&"object"!=typeof n&&r(0)(!1),n}(a,e):g(a,e))}),a?(Array.isArray(a)||(a=[a]),a.map(function(e){var t=_(e,r(4).ID);return null==t&&r(0)(!1),t})):null}function _(e,t){var n=e[t];return"number"==typeof n&&(n=""+n),null!=n&&"string"!=typeof n&&r(0)(!1),n}function g(e,t){var n=e[t];return null==n||"object"==typeof n&&!Array.isArray(n)||r(0)(!1),n}e.exports=r(1).RelayProfiler.instrument("writeRelayUpdatePayload",function(e,t,p,v){var y=v.configs,m=v.isOptimisticUpdate;y.forEach(function(f){switch(f.type){case r(1).MutationTypes.NODE_DELETE:!function(e,t,r){var n=t[r.deletedIDFieldName];n&&(Array.isArray(n)?n.forEach(function(t){d(e,t)}):d(e,n))}(e,p,f);break;case r(1).MutationTypes.RANGE_ADD:!function(e,t,d,f,h){var p=r(1).ConnectionInterface.get().CLIENT_MUTATION_ID,v=_(t,p);v||r(0)(!1);var y=e.getRecordStore(),m=g(t,f.edgeName),D=m&&g(m,r(4).NODE);if(m&&D){var I=f.parentID;if(!I){var b=g(m,"source");b&&(I=_(b,r(4).ID))}I||r(0)(!1);var C=_(D,r(4).ID)||r(30)(),R=m.cursor||l,F=(0,i.default)({},m,{cursor:R,node:(0,i.default)({},D,{id:C})}),E=y.getConnectionIDsForField(I,f.connectionName);if(E&&E.forEach(function(t){return function(e,t,i,l,d,f){var h=e.getRecordStore(),_=e.getRecordWriter(),g=h.getRangeFilterCalls(l),p=g?r(77)(i.rangeBehaviors,g):null;if(p&&p!==o){var v=r(47)(l,d),y=h.getPathToRecord(l);y||r(0)(!1);var m=(n||(n=r(2).Field.build({fieldName:r(1).ConnectionInterface.get().EDGES,type:r(4).ANY_TYPE,metadata:{canHaveSubselections:!0,isPlural:!0}})),n);y=r(7).getPath(y,m,v),e.createRecordIfMissing(m,v,y,f);var D=!1;(function t(n){n.getChildren().forEach(function(n){n instanceof r(2).Fragment?t(n):n instanceof r(2).Field&&n.getSchemaName()===i.edgeName&&(D=!0,y&&e.writePayload(n,v,f,y))})})(t),!D&&r(0)(!1),p===a||p===o||p===s||p===u||p===c?(_.applyRangeUpdate(l,v,p),e.recordUpdate(l)):console.error("writeRelayUpdatePayload(): invalid range operation `%s`, valid options are `%s`, `%s`, `%s`, `%s`, or `%s`.",p,a,s,o,c,u)}}(e,d,f,t,C,F)}),h)r(48).putClientIDForMutation(C,v);else{var N=r(48).getClientIDForMutation(v);N&&(r(48).updateClientServerIDMap(N,C),r(48).deleteClientIDForMutation(v))}}}(e,p,t,f,m);break;case r(1).MutationTypes.RANGE_DELETE:!function(e,t,n){var i=e.getRecordStore(),a=null;Array.isArray(n.deletedIDFieldName)?a=h(i,n.deletedIDFieldName,t):("number"==typeof(a=t[n.deletedIDFieldName])&&(a=""+a),null!=a&&Array.isArray(a)&&"string"==typeof a&&r(0)(!1),Array.isArray(a)||(a=[a])),null==a&&r(0)(!1);var o=n.pathToConnection.pop(),s=h(i,n.pathToConnection,t);if(n.pathToConnection.push(o),s){var u=s[0],l=i.getConnectionIDsForField(u,o);l&&l.forEach(function(t){a&&a.forEach(function(n){!function(e,t,n){var i=e.getRecordWriter(),a=r(47)(t,n);i.applyRangeUpdate(t,a,c),d(e,a),e.recordUpdate(t)}(e,t,n)})})}}(e,p,f);break;case r(1).MutationTypes.FIELDS_CHANGE:case r(1).MutationTypes.REQUIRED_CHILDREN:break;default:console.error("Expected a valid mutation handler type, got `%s`.",f.type)}}),function(e,t,n){var i=e.getRecordStore();for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)){var o=t[a];"object"==typeof o&&null!=o&&(r(4).ID in o||i.getDataID(a)||Array.isArray(o))&&f(e,a,o,n)}}(e,p,t)})},function(e,t){e.exports=C},function(e,t,r){"use strict";e.exports={areEqualSelectors:r(22).areEqualSelectors,createFragmentSpecResolver:function(e,t,n,i,a){return new(r(133))(e,n,i,a)},createOperationDescriptor:r(134).createOperationDescriptor,getDataIDsFromObject:r(22).getDataIDsFromObject,getFragment:r(50).getClassicFragment,getRequest:r(50).getClassicOperation,getSelector:r(22).getSelector,getSelectorList:r(22).getSelectorList,getSelectorsFromObject:r(22).getSelectorsFromObject,getVariablesFromObject:r(22).getVariablesFromObject,isFragment:r(50).isClassicFragment,isRequest:r(50).isClassicOperation}},function(e,t,r){"use strict";var n=r(5)(r(8)),i=r(5)(r(17)),a=function(){function e(e,t,r,n){var a=this;(0,i.default)(this,"_onChange",function(){a._stale=!0,"function"==typeof a._callback&&a._callback()}),this._callback=n,this._context=e,this._data={},this._fragments=t,this._props=r,this._resolvers={},this._stale=!1,this.setProps(r)}var t=e.prototype;return t.dispose=function(){r(10)(this._resolvers,u)},t.resolve=function(){var e=this;if(this._stale){var t,i=this._data;r(10)(this._resolvers,function(a,o){var s=i[o];if(a){var u=a.resolve();(t||u!==s)&&((t=t||(0,n.default)({},i))[o]=u)}else{var c=e._props[o],l=void 0!==c?c:null;!t&&r(1).isScalarAndEqual(l,s)||((t=t||(0,n.default)({},i))[o]=l)}}),this._data=t||i,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=this,n=r(22).getSelectorsFromObject(this._context.variables,this._fragments,e);r(10)(n,function(e,n){var i=t._resolvers[n];null==e?(null!=i&&i.dispose(),i=null):Array.isArray(e)?null==i?i=new s(t._context.environment,e,t._onChange):(i instanceof s||r(0)(!1),i.setSelectors(e)):null==i?i=new o(t._context.environment,e,t._onChange):(i instanceof o||r(0)(!1),i.setSelector(e)),t._resolvers[n]=i}),this._props=e,this._stale=!0},t.setVariables=function(e){r(10)(this._resolvers,function(t){t&&t.setVariables(e)}),this._stale=!0},t.isLoading=function(){return!1},e}(),o=function(){function e(e,t,r){var n=this;(0,i.default)(this,"_onChange",function(e){n._data=e.data,n._callback()});var a=e.lookup(t);this._callback=r,this._data=a.data,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(){return this._data},t.setSelector=function(e){if(null==this._subscription||!r(22).areEqualSelectors(e,this._selector)){this.dispose();var t=this._environment.lookup(e);this._data=t.data,this._selector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e){var t=(0,n.default)({},this._selector,{variables:(0,n.default)({},this._selector.variables,e)});this.setSelector(t)},e}(),s=function(){function e(e,t,r){var n=this;(0,i.default)(this,"_onChange",function(e){n._stale=!0,n._callback()}),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelectors(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(u)},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)}this._data=e||t,this._stale=!1}return this._data},t.setSelectors=function(e){for(;this._resolvers.length>e.length;){this._resolvers.pop().dispose()}for(var t=0;t<e.length;t++)t<this._resolvers.length?this._resolvers[t].setSelector(e[t]):this._resolvers[t]=new o(this._environment,e[t],this._onChange);this._stale=!0},t.setVariables=function(e){this._resolvers.forEach(function(t){return t.setVariables(e)}),this._stale=!0},e}();function u(e){e&&e.dispose()}e.exports=a},function(e,t,r){"use strict";e.exports={createOperationDescriptor:function(e,t){var n=r(6).getFragment(e.node);n||r(0)(!1);var i=r(36).getOperationVariables(e,t),a={dataID:r(21).ROOT_ID,node:n,variables:i};return{fragment:a,node:e,root:a,variables:i}}}},function(e,t){e.exports=R},function(e,t){e.exports=F},function(e,t,r){"use strict";(function(t){void 0!==t.__REACT_DEVTOOLS_GLOBAL_HOOK__&&(t.__REACT_DEVTOOLS_GLOBAL_HOOK__._relayInternals=r(138));var n={Environment:r(69),GraphQLMutation:r(51),GraphQLStoreQueryResolver:r(85),Mutation:r(139),PropTypes:r(33),QL:r(42),QueryConfig:r(94),ReadyStateRenderer:r(95),RelayContainerProxy:r(97),Renderer:r(98),RootContainer:r(144),Route:r(145),Store:r(18),MutationTypes:r(1).MutationTypes,RangeOperations:r(1).RangeOperations,createContainer:r(146).create,createQuery:r(153),getQueries:r(65),injectNetworkLayer:r(18).injectNetworkLayer.bind(r(18)),injectTaskScheduler:r(18).injectTaskScheduler.bind(r(18)),isContainer:r(90)};e.exports=n}).call(this,r(87))},function(e,t,r){"use strict";var n={NetworkLayer:r(18).getStoreData().getNetworkLayer(),DefaultStoreData:r(18).getStoreData(),flattenRelayQuery:r(45),printRelayQuery:r(55)};e.exports=n},function(e,t,r){"use strict";var n=r(5)(r(8)),i=function(){function e(e){this._didShowFakeDataWarning=!1,this._didValidateConfig=!1,this._unresolvedProps=e}var t=e.prototype;return t.bindEnvironment=function(e){this._environment?e!==this._environment&&r(0)(!1):(this._environment=e,this._resolveProps())},t.getMutation=function(){r(0)(!1)},t.getFatQuery=function(){r(0)(!1)},t.getConfigs=function(){r(0)(!1)},t.getVariables=function(){r(0)(!1)},t.getFiles=function(){return null},t.getOptimisticResponse=function(){return null},t.getOptimisticConfigs=function(){return null},t.getCollisionKey=function(){return null},t._resolveProps=function(){var e=this,t=this.constructor.fragments,i=this.constructor.initialVariables||{},o=this._unresolvedProps,s=(0,n.default)({},o);r(10)(t,function(t,n){var u=o[n];if(null!=u&&"object"==typeof u){var c=r(2).Fragment.create(a(e.constructor.name,n,t,i),r(9).get("$RelayMutation_".concat(e.constructor.name)),i);if(c.isPlural()){Array.isArray(u)||r(0)(!1);var l=u.map(function(e,t){("object"!=typeof e||null==e)&&r(0)(!1);var n=r(3).getDataIDForObject(e);return n||r(0)(!1),n});s[n]=l.map(function(t){return e._environment.read(c,t)})}else{Array.isArray(u)&&r(0)(!1);var d=r(3).getDataIDForObject(u);d&&(s[n]=e._environment.read(c,d))}}}),this.props=s,this._didValidateConfig||(this.getConfigs().forEach(function(t){return r(140)(t,e.constructor.name)}),this._didValidateConfig=!0)},e.getFragment=function(e,t){var n=this,i=this.fragments[e];i||r(0)(!1);var o=this.initialVariables||{},s=this.prepareVariables;return r(38).createForContainer(function(){return a(n.name,e,i,o)},o,t,s)},e}();function a(e,t,n,i){var a=r(63).Fragment(n,i);return a||r(0)(!1),a}e.exports=i},function(e,t,r){"use strict";var n=3,i=(Object.freeze({assert:r(141),message:"has deprecated property",type:"DEPRECATED"}),Object.freeze({assert:function(){},message:"",type:"OPTIONAL"})),a={assert:r(0),message:"must have property",type:"REQUIRED"};e.exports=function(e,t){function o(i){Object.keys(e).forEach(function(a){"type"===a||i.hasOwnProperty(a)||(r(32)("validateMutationConfig: Unexpected key `%s` in `%s` config for `%s`",a,e.type,t),Object.keys(i).find(function(e){return r(142)(e,a,n)}),r(0)(!1))}),Object.keys(i).forEach(function(r){var n=i[r],a="REQUIRED"===n.type,o="DEPRECATED"===n.type,s=e.hasOwnProperty(r);(a&&!s||o&&s)&&n.assert(!1,"validateMutationConfig: `%s` config on `%s` %s `%s`.",e.type,t,n.message,r)})}switch(e.type){case"FIELDS_CHANGE":o({fieldIDs:a});break;case"RANGE_ADD":o({connectionName:a,edgeName:a,parentID:i,parentName:i,rangeBehaviors:a});break;case"NODE_DELETE":o({connectionName:a,deletedIDFieldName:a,parentID:i,parentName:a});break;case"RANGE_DELETE":o({connectionName:a,deletedIDFieldName:a,parentID:i,parentName:a,pathToConnection:a});break;case"REQUIRED_CHILDREN":o({children:a});break;default:r(0)(!1)}}},function(e,t){e.exports=E},function(e,t,r){"use strict";e.exports=function(e,t,r){var n=e.length,i=t.length;if(i<n){var a=[n,i];i=a[0],n=a[1];var o=[e,t];t=o[0],e=o[1]}if(!n)return i<=r;for(var s=i,u=2*s+1,c=Array.from(Array(u),function(){return[]}),l=-s;l<0;l++){var d=-l-1;c[l+s][d+1]=-l-1,c[l+s][d]=-1/0}c[s][0]=-1;for(var f=1;f<=s;f++){var h=f-1;c[f+s][h+1]=-1,c[f+s][h]=-1/0}var _=i-n-1;do{if(_>r)return!1;_++;for(var g=Math.floor((_-(i-n))/2);g>=1;g--)v(i-n+g,_-g);for(var p=Math.floor((i-n+_)/2);p>=1;p--)v(i-n-p,_-p);v(i-n,_)}while(c[i-n+s][_]!==n);return!0;function v(r,a){var o=c[r+s][a]+1,u=o;for(e[o-1]===t[r+o]&&e[o]===t[r+o-1]&&(u=o+1),o=Math.max(o,c[r-1+s][a],c[r+1+s][a]+1,u);e[o]===t[o+r]&&o<Math.min(n,i-r);)o++;c[r+s][a+1]=o}}},function(e,t,r){"use strict";var n=r(5)(r(12)),i=function(e){function t(){return e.apply(this,arguments)||this}(0,n.default)(t,e);var i=t.prototype;return i.shouldComponentUpdate=function(e){return!!e.shouldUpdate},i.render=function(){var e=this.props.children;return e?r(14).Children.only(e):null},t}(r(14).Component);e.exports=i},function(e,t,r){"use strict";function n(e){var t=e.Component,n=e.forceFetch,i=e.onReadyStateChange,a=e.renderFailure,o=e.renderFetched,s=e.renderLoading,u=e.route,c=e.shouldFetch;return r(14).createElement(r(98),{Container:t,forceFetch:n,onReadyStateChange:i,queryConfig:u,environment:r(18),shouldFetch:c,render:function(e){var n=e.done,i=e.error,u=e.props,c=e.retry,l=e.stale;if(i){if(a)return a(i,c)}else{if(u)return o?o(u,{done:n,stale:l}):r(14).createElement(t,u);if(s)return s()}}})}n.propTypes={Component:r(33).Container,forceFetch:r(15).bool,onReadyStateChange:r(15).func,renderFailure:r(15).func,renderFetched:r(15).func,renderLoading:r(15).func,route:r(33).QueryConfig.isRequired,shouldFetch:r(15).bool},e.exports=n},function(e,t,r){"use strict";var n=r(5)(r(12)),i=r(5)(r(66)),a=function(){return null},o=function(e){function t(n,o){var s,u=(s=e.call(this,n)||this).constructor,c=u.routeName,l=u.path;return u===t&&r(0)(!1),c||r(0)(!1),Object.defineProperty((0,i.default)((0,i.default)(s)),"uri",{enumerable:!0,get:function(){return!o&&l&&(o=a(u,this.params)),o}}),s}return(0,n.default)(t,e),t.prototype.prepareVariables=function(e){var t=this.constructor,n=t.paramDefinitions,i=t.prepareParams,a=(t.routeName,e);return i&&(a=i(a)),n&&r(10)(n,function(e,t){if(a){if(a.hasOwnProperty(t))return;a[t]=void 0}e.required&&r(0)(!1)}),a},t.injectURICreator=function(e){a=e},t}(r(94));e.exports=o},function(e,t,r){"use strict";var n=r(5)(r(147)),i=r(5)(r(148)),a=r(5)(r(8)),o=r(5)(r(12)),s=r(5)(r(66)),u=r(5)(r(17));function c(e,t){var c=r(149).getReactComponent(e),h=r(67).getComponentName(e),_=f(e),g=t.fragments,p=Object.keys(g),v=t.initialVariables||{},y=t.prepareVariables,m=t.shouldComponentUpdate,D=function(l){function f(e){var t;t=l.call(this,e)||this,(0,u.default)((0,s.default)((0,s.default)(t)),"_legacyStringishRef",r(150)((0,s.default)((0,s.default)(t)),h));var n=e.__relayContext.route;return r(151)({variables:e.__relayContext.variables,environment:e.__relayContext.environment})||r(0)(!1),n&&"string"==typeof n.name||r(0)(!1),t._didShowFakeDataWarning=!1,t._fragmentPointers={},t._hasStaleQueryData=!1,t._fragmentResolvers={},t.mounted=!0,t.pending=null,t.state={queryData:{},rawVariables:{},relayProp:{applyUpdate:t.props.__relayContext.environment.applyUpdate,commitUpdate:t.props.__relayContext.environment.commitUpdate,environment:t.props.__relayContext.environment,forceFetch:t.forceFetch.bind((0,s.default)((0,s.default)(t))),getPendingTransactions:t.getPendingTransactions.bind((0,s.default)((0,s.default)(t))),hasFragmentData:t.hasFragmentData.bind((0,s.default)((0,s.default)(t))),hasOptimisticUpdate:t.hasOptimisticUpdate.bind((0,s.default)((0,s.default)(t))),hasPartialData:t.hasPartialData.bind((0,s.default)((0,s.default)(t))),pendingVariables:null,route:n,setVariables:t.setVariables.bind((0,s.default)((0,s.default)(t))),variables:{}}},t}(0,o.default)(f,l);var D=f.prototype;return D.setVariables=function(e,t){this._runVariables(e,t,!1)},D.forceFetch=function(e,t){this._runVariables(e,t,!0)},D._createQuerySetAndFragmentPointers=function(e){var t=this,n={},i={},a=this.props.__relayContext.environment.getStoreData();return p.forEach(function(o){var s=I(o,t.props.__relayContext.route,e),u=t.state.queryData[o];if(s&&null!=u){var c;if(s.isPlural()){Array.isArray(u)||r(0)(!1);var l=[];u.forEach(function(e,t){var n=r(3).getDataIDForObject(e);n&&(i[o+t]=a.buildFragmentQueryForDataID(s,n),l.push(n))}),l.length&&(c={fragment:s,dataIDs:l})}else{var d=r(3).getDataIDForObject(u);d&&(c={fragment:s,dataIDs:d},i[o]=a.buildFragmentQueryForDataID(s,d))}n[o]=c}}),{fragmentPointers:n,querySet:i}},D._runVariables=function(e,t,n){var i=this;d(v,e);var o=this.state.rawVariables,s=function(e,t){if(t)for(var r in t)if(e[r]!==t[r])return(0,a.default)({},e,t);return e}(this.pending?this.pending.rawVariables:o,e),u=s;if(y){var c=r(9).get(this.props.__relayContext.route.name);u=y(s,c),d(v,u)}this.pending&&this.pending.request.abort();var l=r(1).RelayProfiler.profile("RelayContainer.setVariables",{containerName:_,nextVariables:u}),f=this._createQuerySetAndFragmentPointers(u),h=f.querySet,g=f.fragmentPointers,p=r(44).guard(function(e){var n,o=e.aborted,c=e.done,d=e.error,f=e.ready,h=o||c||d;if(h&&i.pending===m&&(i.pending=null),f){i._fragmentPointers=g,i._updateFragmentResolvers(i.props.__relayContext.environment);var _=i._getQueryData(i.props);n={queryData:_,rawVariables:s,relayProp:(0,a.default)({},i.state.relayProp,{pendingVariables:null,variables:u})}}else n={relayProp:(0,a.default)({},i.state.relayProp,{pendingVariables:h?null:u})};var p=i.mounted;if(p){var v=r(1).RelayProfiler.profile("RelayContainer.update");r(84)(function(){i.setState(n,function(){v.stop(),h&&l.stop()}),t&&t.call(i.refs.component||null,(0,a.default)({},e,{mounted:p}))})}else t&&t((0,a.default)({},e,{mounted:p})),h&&l.stop()},"RelayContainer.onReadyStateChange"),m={rawVariables:s,request:n?this.props.__relayContext.environment.forceFetch(h,p):this.props.__relayContext.environment.primeCache(h,p)};this.pending=m},D.hasOptimisticUpdate=function(e){var t=r(3).getDataIDForObject(e);return null==t&&r(0)(!1),this.props.__relayContext.environment.getStoreData().hasOptimisticUpdate(t)},D.getPendingTransactions=function(e){var t=r(3).getDataIDForObject(e);null==t&&r(0)(!1);var n=this.props.__relayContext.environment.getStoreData(),i=n.getClientMutationIDs(t);if(!i)return null;var a=n.getMutationQueue();return i.map(function(e){return a.getTransaction(e)})},D.hasFragmentData=function(e,t){var n=r(3).getDataIDForObject(t);null==n&&r(0)(!1);var i=function(e,t,n){var i=r(9).get(t.route.name),a=e.getFragment(n),o=e.getVariables(i,n);return r(2).Fragment.create(a,i,o,{isDeferred:!0,isContainerFragment:e.isContainerFragment(),isTypeConditional:!1})}(e,this.props.__relayContext,this.state.relayProp.variables);return i instanceof r(2).Fragment||r(0)(!1),this.props.__relayContext.environment.getStoreData().getCachedStore().hasFragmentData(n,i.getCompositeHash())},D.hasPartialData=function(e){return r(54).isPartialStatus(e[r(3).MetadataKey.STATUS])},D.UNSAFE_componentWillMount=function(){this.props.__relayContext.route.useMockData||this.setState(this._initialize(this.props,this.props.__relayContext,v,null))},D.UNSAFE_componentWillReceiveProps=function(e){var n=this;e.__relayContext||r(0)(!1),e.__relayContext.route.useMockData||this.setState(function(i){return n.props.__relayContext.environment===e.__relayContext.environment&&n.props.__relayContext.variables===e.__relayContext.variables||n._cleanup(),n._initialize(e,e.__relayContext,function(e,t,n){var i=e.initialVariables;for(var a in i)if(a in t&&!r(16)(t[a],n[a]))return i;return n}(t,e,i.rawVariables),i.rawVariables)})},D.componentWillUnmount=function(){this._cleanup(),this.mounted=!1},D._initialize=function(e,n,i,o){var s=function(e,t,r){var n=e.initialVariables;if(n){var i;for(var o in n)o in t&&((i=i||(0,a.default)({},r))[o]=t[o]);r=i||r}return r}(t,e,i),u=s;if(y){var c=r(9).get(n.route.name);u=y(s,c),d(v,u)}return this._updateFragmentPointers(e,n,u,o),this._updateFragmentResolvers(n.environment),{queryData:this._getQueryData(e),rawVariables:s,relayProp:this.state.relayProp.route===n.route&&r(53)(this.state.relayProp.variables,u)?this.state.relayProp:(0,a.default)({},this.state.relayProp,{route:n.route,variables:u})}},D._cleanup=function(){this._fragmentResolvers&&r(10)(this._fragmentResolvers,function(e){e&&e.dispose()}),this._fragmentPointers={},this._fragmentResolvers={};var e=this.pending;e&&(e.request.abort(),this.pending=null)},D._updateFragmentResolvers=function(e){var t=this,r=this._fragmentPointers,n=this._fragmentResolvers;p.forEach(function(i){var a=r[i],o=n[i];a?o||(o=e.getFragmentResolver(a.fragment,t._handleFragmentDataUpdate.bind(t)),n[i]=o):o&&(o.dispose(),n[i]=null)})},D._handleFragmentDataUpdate=function(){if(this.mounted){var e=this._getQueryData(this.props),t=r(1).RelayProfiler.profile("RelayContainer.handleFragmentDataUpdate");this.setState({queryData:e},t.stop)}},D._updateFragmentPointers=function(e,t,n,i){var a=this._fragmentPointers;p.forEach(function(i){var o=e[i];if(null!=o)if("object"==typeof o){var s,u=I(i,t.route,n);if(u.isPlural()){if(Array.isArray(o)||r(0)(!1),!o.length)return void(a[i]=null);var c=null;o.forEach(function(e,t){if("object"==typeof e&&null!=e&&r(19).hasConcreteFragment(e,u)){var n=r(3).getDataIDForObject(e);n&&(c=c||[]).push(n)}}),c&&c.length!==o.length&&r(0)(!1),s=c}else{Array.isArray(o)&&r(0)(!1),r(19).hasConcreteFragment(o,u)&&(s=r(3).getDataIDForObject(o))}a[i]=s?{fragment:u,dataIDs:s}:null}else a[i]=null;else a[i]=null})},D._getQueryData=function(e){var t=this,n={},i=this._fragmentPointers;return r(10)(this._fragmentResolvers,function(a,o){var s=e[o],u=i[o];s&&u?(a||r(0)(!1),n[o]=a.resolve(u.fragment,u.dataIDs)):(a&&a.dispose(),n[o]=s),t.state.queryData.hasOwnProperty(o)&&n[o]!==t.state.queryData[o]&&(t._hasStaleQueryData=!0)}),n},D.shouldComponentUpdate=function(e,t){if(m)return m();if(this._hasStaleQueryData)return this._hasStaleQueryData=!1,!0;if(this.props.__relayContext.environment!==e.__relayContext.environment||this.props.__relayContext.variables!==e.__relayContext.variables||this.props.__relayContext.route!==e.__relayContext.route)return!0;if(this.props.__relayContext.route.useMockData)return!0;var n=this.props,a=(n.__relayContext,(0,i.default)(n,["__relayContext"])),o=(e.__relayContext,(0,i.default)(e,["__relayContext"])),s=this._fragmentPointers;return!r(68).areNonQueryPropsEqual(g,a,o)||s&&!r(68).areQueryResultsEqual(s,this.state.queryData,t.queryData)||!r(68).areQueryVariablesEqual(this.state.relayProp.variables,t.relayProp.variables)},D.render=function(){if(c)return r(14).createElement(c,(0,n.default)({},this.props,this.state.queryData,{ref:this._legacyStringishRef,relay:this.state.relayProp}));var t=e;return r(14).createElement(t,(0,a.default)({},this.props,this.state.queryData,{relay:this.state.relayProp}))},f}(r(14).Component);function I(e,t,n){var i=g[e];i||r(0)(!1);var a=l(_,e,i,v),o=r(9).get(t.name);return r(2).Fragment.create(a,o,n)}return function(e){r(1).RelayProfiler.instrumentMethods(e.prototype,{UNSAFE_componentWillMount:"RelayContainer.prototype.UNSAFE_componentWillMount",UNSAFE_componentWillReceiveProps:"RelayContainer.prototype.UNSAFE_componentWillReceiveProps",shouldComponentUpdate:"RelayContainer.prototype.shouldComponentUpdate"})}(D),D.displayName=_,r(97).proxyMethods(D,e),D}function l(e,t,n,i){var a=r(63).Fragment(n,i);return a||r(0)(!1),a}function d(e,t){if(t)for(var r in t);}function f(e){return"Relay("+r(67).getComponentName(e)+")"}e.exports={create:function(e,t){r(67).getComponentName(e);var i=f(e);!function(e,t){var n=t.fragments;if("object"==typeof n&&n||r(0)(!1),t.initialVariables){var i=t.initialVariables||{};"object"==typeof i&&i||r(0)(!1),r(10)(n,function(e,t){})}}(0,t);var a,o,s=t.fragments,u=Object.keys(s),d=t.initialVariables||{},h=t.prepareVariables;function _(r){return null!=o&&r.__relayContext.environment===a||(a=r.__relayContext.environment,o=c(e,t)),new o(r)}var g=r(14).forwardRef(function(e,t){var i=r(152)(r(96));return i||r(0)(!1),r(14).createElement(_,(0,n.default)({},e,{__relayContext:i,ref:e.ref||t}))});return g.getFragmentNames=function(){return u},g.hasFragment=function(e){return!!s[e]},g.hasVariable=function(e){return Object.prototype.hasOwnProperty.call(d,e)},g.getFragment=function(e,t){var n=s[e];return n||r(0)(!1),"function"!=typeof n&&r(0)(!1),t&&(t=r(89)(t,function(e,t){return Object.prototype.hasOwnProperty.call(d,t)})),r(38).createForContainer(function(){return l(0,0,n,d)},d,t,h)},g.displayName=i,g.moduleName=null,g}}},function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}e.exports=r},function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},function(e,t,r){"use strict";e.exports={getReactComponent:function(e){return function(e){return null!=e&&(!("object"!=typeof e.prototype||!e.prototype||!e.prototype.isReactComponent)||"symbol"==typeof e.$$typeof&&"function"==typeof e.render)}(e)?e:null}}},function(e,t,r){"use strict";e.exports=function(e,t){return"component"}},function(e,t,r){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&r(64)(e.environment)&&r(93)(e.variables)}},function(e,t,r){"use strict";var n=r(14).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,i=r(14).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;e.exports=function(e){return(null!=n?n.current:i.currentDispatcher).readContext(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return("object"!=typeof t||null==t||Array.isArray(t))&&r(0)(!1),r(2).Root.create(e,r(9).get("$createRelayQuery"),t)}}])});
|